query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
b8f5105be52209f63eb4579eefe598a3
importar_linha importa a linha
[ { "docid": "70f4e804b7d45e162fe278cc09bca92c", "score": "0.7623563", "text": "public function importar_linha( $linha, $num ) {\n \n // percorre todos os campos\n foreach( $linha as $chave => $coluna ) {\n $linha[$chave] = in_cell( $linha[$chave] ) ? $linha[$chave] : null;\n }\n\n // pega as entidades relacionaveis\n $linha['CodFuncionario'] = $this->verificaEntidade( 'Funcionarios/Funcionario', 'email', $linha['FUNCIONARIO'], 'Funcionario', 'Clientes', $num, 'CodFuncionario', 'I' );\n $linha['CodTag'] = $this->verificaEntidade( 'Tags/Tag', 'tag', $linha['TAG'], 'Tag', 'Clientes', $num, 'CodTag', 'I' );\n\n // verifica se existe os campos\n if ( !in_cell( $linha['CodFuncionario'] ) ||\n !in_cell( $linha['EMAIL'] ) || \n !in_cell( $linha['CODXP'] ) || \n !in_cell( $linha['TELEFONE'] ) ||\n !in_cell( $linha['NOME'] ) ) {\n \n if ( !in_cell( $linha['EMAIL'] ) ) $erro = 'EMAIL';\n if ( !in_cell( $linha['CODXP'] ) ) {\n if( $erro ) $erro .= ', CODXP';\n else $erro = 'CODXP';\n }\n if ( !in_cell( $linha['TELEFONE'] ) ) {\n if( $erro ) $erro .= ', TELEFONE';\n else $erro = 'TELEFONE';\n }\n if ( !in_cell( $linha['NOME'] ) ) {\n if( $erro ) $erro .= ', NOME';\n else $erro = 'NOME';\n }\n if ( !in_cell( $linha['CodFuncionario'] ) ) {\n if( $erro ) $erro .= ', FUNCIONARIO';\n else $erro = 'FUNCIONARIO';\n }\n\n // grava o log\n $log = $this->Log->getEntity();\n $log->set( 'entidade', 'Clientes' )\n ->set( 'funcionario', $this->guard->currentUser()->CodFuncionario )\n ->set( 'mensagem', 'Não foi possivel inserir o cliente pois nenhum '. $erro .' foi informado - linha '.$num )\n ->set( 'status', 'B' )\n ->set( 'data', date( 'Y-m-d H:i:s', time() ) )\n ->set( 'acao', 'importação de planilha de Clientes' )\n ->save();\n\n } else {\n\n // tenta carregar a loja pelo nome\n $cliente = $this->Cliente->clean()->codXp( $linha['CODXP'] )->get( true );\n\n // verifica se carregou\n if ( !$cliente ) {\n $cliente = $this->Cliente->getEntity();\n $cliente->set( 'xp', $linha['CODXP'] );\n }\n\n // preenche os dados\n \n $cliente->set( 'nome', $linha['NOME'] )\n ->set( 'tel', $linha['TELEFONE'] )\n ->set( 'funcionario', $linha['CodFuncionario'] )\n ->set( 'email', $linha['EMAIL'] );\n \n // verifica se tem tag\n if ( $linha['CodTag'] ) {\n $cliente->set( 'tag', $linha['CodTag'] );\n } else {\n $cliente->set( 'tag', '' );\n }\n\n if ( !in_cell( $linha['ATRIBUTO'] ) ) $cliente->set( 'atributoSeg', '' );\n elseif ( $linha['ATRIBUTO'] == 'TRADER' ) $cliente->set( 'atributoSeg', 'T' );\n elseif ( $linha['ATRIBUTO'] == 'INATIVO' ) $cliente->set( 'atributoSeg', 'I' );\n else $cliente->set( 'atributoSeg', '' );\n \n // tenta salvar a loja\n if ( $cliente->save() ) {\n\n // grava o log\n $log = $this->Log->getEntity();\n $log->set( 'entidade', 'Clientes' )\n ->set( 'funcionario', $this->guard->currentUser()->CodFuncionario )\n ->set( 'mensagem', 'Cliente criado com sucesso - '.$num )\n ->set( 'status', 'S' )\n ->set( 'data', date( 'Y-m-d H:i:s', time() ) )\n ->set( 'acao', 'importação de planilha de Clientes' )\n ->save();\n\n } else {\n\n // grava o log\n $log = $this->Log->getEntity();\n $log->set( 'entidade', 'Clientes' )\n ->set( 'funcionario', $this->guard->currentUser()->CodFuncionario )\n ->set( 'mensagem', 'Não foi possivel inserir o cliente - linha '.$num )\n ->set( 'status', 'B' )\n ->set( 'data', date( 'Y-m-d H:i:s', time() ) )\n ->set( 'acao', 'importação de planilha de Clientes' )\n ->save();\n }\n }\n }", "title": "" } ]
[ { "docid": "3399a39097ba09dd71a1c02954f2c71f", "score": "0.67111355", "text": "public function importar_planilha() {\n\n // importa a planilha\n $this->load->library( 'Planilhas' );\n\n // faz o upload da planilha\n $planilha = $this->planilhas->upload();\n\n // tenta fazer o upload\n if ( !$planilha ) {\n\n // seta os erros\n $this->view->set( 'errors', $this->planilhas->errors );\n } else {\n $planilha->apply( function( $linha, $num ) {\n $this->importar_linha( $linha, $num );\n });\n $planilha->excluir();\n }\n\n // redireciona \n redirect( site_url( 'clientes/index' ) );\n }", "title": "" }, { "docid": "7073c68d7a8c4338d56af4e8b33ae25c", "score": "0.6583635", "text": "public function actividad_import()\n {\n $data['categoria_id'] = Modules::run('categoria_flujo/get_all');\n $data['menuactivo'] = 'flujo_informativo';\n //$data['controlador'] = 'directivo';\n $data['title'] = 'flujo_informativo';\n $data['vista'] = $this->load->view('flujo_import_form', $data, true);\n echo Modules::run('admintemplate/one_col', $data);\n }", "title": "" }, { "docid": "d1f1f689a1995e0622a9c88b0814e595", "score": "0.6245701", "text": "private function importeMonnaies()\n {\n $fichierCsv = new Csv($this->cheminLyssalMonnaieBundleFiles.'/csv/monnaies.csv', ',', '\"');\n $fichierCsv->importe(false);\n \n $this->monnaieManager->removeAll(true);\n \n foreach ($fichierCsv->getLignes() as $ligneCsv)\n {\n $symbole = $ligneCsv[0];\n $code = $ligneCsv[1];\n \n $monnaie = $this->monnaieManager->create();\n $monnaie->setSymbole($symbole);\n $monnaie->setCode($code);\n \n $this->monnaieManager->save($monnaie);\n }\n }", "title": "" }, { "docid": "7176c0d995e3be41fc1151df1d14db1b", "score": "0.6227707", "text": "private function getInfLine($linha){\n //retirar espaços em branco\n $texto = str_replace(\" \", \"\", $linha);\n //pega nome do pc\n $pos = strpos($texto, \";\");\n $nome = substr($texto, 0,$pos);\n //pega nome do usuario\n $pos = strpos($texto, \";\");\n $fimnome = strpos($texto, \"-\");\n $user = substr($texto, $pos+1, $fimnome-($pos+1));\n //pega ip do pc\n $pos = strpos($texto, \":\");\n $ip = substr($texto, $pos+1);\n \n //verifica dados do IP e nome da maquina\n if (substr($ip, 0, 3) != \"192\"){\n return NULL;\n } else {\n $dados[\"nome\"] = trim($nome);\n $dados[\"ip\"] = trim($ip);\n $dados[\"user\"] = trim($user);\n return $dados;\n }\n }", "title": "" }, { "docid": "891e7f275a22465bab015b8ea333517d", "score": "0.6193713", "text": "function spipbb_import_formulaire($id_rubrique=0,$id_secteur=0)\n{\n\tglobal $spipbb_import; // stockage des informations et des etapes\n\n\t// chryjs : 7/9/8 recuperer_fond est maintenant dans inc/utils\n\tif (!function_exists('recuperer_fond')) include_spip('inc/utils');\n\n\timport_load_metas('');\n\tif (!empty($spipbb_import['origine']) and $spipbb_import['etape'] != 0) {\n\t\t//\n\t\t// Il y a deja un import en cours...\n\t\t//\n\n\t\t$contexte = array( \n\t\t\t\t'lien_action' => generer_action_auteur('spipbb_import',$id_rubrique,$retour) ,\n\t\t\t\t'exec_script' => 'spipbb_fromphpbb',\n\t\t\t\t'origine' => $spipbb_import['origine'],\n\t\t\t\t'etape' => $spipbb_import['etape'],\n\t\t\t\t);\n\t\t$res = recuperer_fond(\"prive/spipbb_admin_import_relance\",$contexte) ;\n\n\t}\n\telse {\n\t\t//\n\t\t// C'est bien un nouvel import\n\t\t//\n\n\t\t$genere_liste_sources=import_charger_fonction(_request('origine'),'import_genere_liste_sources');\n\t\t$liste_sources=$genere_liste_sources($radio);\n\n\t\t$aider = charger_fonction('aider', 'inc');\n\t\t$config = \"\";\n\t\t$retour =\"exec=spipbb_admin_import\";\n\n\t\t$choix_rubrique = editer_article_rubrique($id_rubrique, $id_secteur, $config, $aider);\n\n\t\t$contexte = array( \n\t\t\t\t'lien_action' => generer_action_auteur('spipbb_import',$id_rubrique,$retour) ,\n\t\t\t\t'exec_script' => 'spipbb_fromphpbb',\n\t\t\t\t'import_liste_fichiers' => $liste_sources,\n\t\t\t\t'choix_rubrique' => $choix_rubrique,\n\t\t\t\t'radio_checked' => $radio,\n\t\t\t\t'import_test' => _SPIPBB_IMPORT_TEST,\n\t\t\t\t);\n\t\t$res = recuperer_fond(\"prive/spipbb_admin_import_depart\",$contexte) ;\n\n\t} // if (import en cours)\n\n\treturn $res;\n}", "title": "" }, { "docid": "4db0ea9c73b4e7c13aa895dbdfe3538a", "score": "0.61721474", "text": "function linha($iLargura, $sValor, $sBordas, $sAlinhamento, $iAlturaLinha = ALTURA_LINHA) {\n getPdf()->cell(larguraColuna($iLargura), $iAlturaLinha, $sValor, $sBordas, 0, $sAlinhamento);\n}", "title": "" }, { "docid": "5e4d04ebb8054cb95df844cc22346261", "score": "0.61358124", "text": "public function gerarLinhas() {\n \n $conteudo = '';\n ##### Inserimos as linhas ao arq:\n // Header de arquivo\n $conteudo .= HeaderArquivo::gerar($this->dados) . $this->quebra_linha;\n // Header de lote:\n $conteudo .= HeaderLote::gerar($this->dados) . $this->quebra_linha;\n // Detalhes:\n $sequencial = 1;\n foreach($this->detalhes as $detalhe){\n $detalhe['detalhe_numero_registro'] = $sequencial++;\n $conteudo .= DetalheSegmentoA::gerar($detalhe) . $this->quebra_linha;\n }\n // Trailer de lote:\n $conteudo .= TrailerLote::gerar($this->dados) . $this->quebra_linha;\n // Trailer de Arquivo:\n $conteudo .= TrailerArquivo::gerar($this->dados) . $this->quebra_linha;\n \n //\n return $conteudo;\n }", "title": "" }, { "docid": "37d1ee0d0219af9bca7dd4d14da2447b", "score": "0.6108624", "text": "public function importResumoMensal()\n {\n $dataMapper = new FaturamentoDataMapper($this->app['db'], $this->app['clientesExcluidos']);\n $Faturamento = $dataMapper->carregaFaturamentoMensal(new \\DateTime(), new \\DateTime());\n\n /* Traduzindo / Inserindo em FaturamentoValores */\n $FaturamentoTranslator = new ExternalAuperFaturamentoTranslator();\n $translated = $FaturamentoTranslator->translate($Faturamento);\n\n $auperFaturamentoMapper = new FaturamentoQtdValoresDataMapper($this->app['db']);\n $auperFaturamentoMapper->insertFaturamentoMensal($translated);\n\n /* Traduzindo / Inserindo em FaturamentoProdutos */\n $produtosTranslator = new ExternalAuperFaturamentoProdutosTranslator();\n $translated = $produtosTranslator->translate($Faturamento);\n\n $auperClientesMapper = new FaturamentoQtdValoresProdutosDataMapper($this->app['db']);\n $auperClientesMapper->insertFaturamentoMensal($translated);\n\n /* Traduzindo / Inserindo em VendasClientes */\n $clientesTranslator = new ExternalAuperFaturamentoClientesTranslator();\n $translated = $clientesTranslator->translate($Faturamento);\n\n $auperClientesMapper = new FaturamentoQtdValoresClientesDataMapper($this->app['db']);\n $auperClientesMapper->insertFaturamentoMensal($translated);\n\n /* Traduzindo / Inserindo em FaturamentoVendedores */\n $vendedoresTranslator = new ExternalAuperFaturamentoVendedoresTranslator();\n $translated = $vendedoresTranslator->translate($Faturamento);\n\n $auperClientesMapper = new FaturamentoQtdValoresVendedoresDataMapper($this->app['db']);\n $auperClientesMapper->insertFaturamentoMensal($translated);\n\n }", "title": "" }, { "docid": "4347b988bf2ab1880ab0e518f60e0410", "score": "0.60136306", "text": "function leggi_importi($_cosa, $_somma, $_conto_iva, $_codiva, $_nreg, $_anno)\n {\n global $conn;\n global $percorso;\n global $MASTRO_CLI;\n global $MASTRO_FOR;\n\n //leggo imposta\n\n\n if ($_cosa == \"clienti\")\n {\n $query = \"SELECT *, SUM($_somma) AS imposta FROM prima_nota where conto = '$_conto_iva' AND iva='$_codiva' AND nreg='$_nreg' AND anno='$_anno'\";\n\n $result = $conn->query($query);\n\n if ($conn->errorCode() != \"00000\")\n {\n $_errore = $conn->errorInfo();\n echo $_errore['2'];\n //aggiungiamo la gestione scitta dell'errore..\n $_errori['descrizione'] = \"Errore Query = $query - $_errore[2]\";\n $_errori['files'] = \"stampa_reg.php\";\n scrittura_errori($_cosa, $_percorso, $_errori);\n }\n\n foreach ($result as $dati)\n ;\n\n $return['imposta'] = $dati['imposta'];\n }\n else\n {\n $query = \"SELECT *, SUM($_somma) AS imposta FROM prima_nota where conto = '$_conto_iva' AND iva='$_codiva' AND nreg='$_nreg' AND anno='$_anno'\";\n\n $result = $conn->query($query);\n\n if ($conn->errorCode() != \"00000\")\n {\n $_errore = $conn->errorInfo();\n echo $_errore['2'];\n //aggiungiamo la gestione scitta dell'errore..\n $_errori['descrizione'] = \"Errore Query = $query - $_errore[2]\";\n $_errori['files'] = \"stampa_reg.php\";\n scrittura_errori($_cosa, $_percorso, $_errori);\n }\n\n foreach ($result as $dati)\n ;\n\n $return['imposta'] = $dati['imposta'];\n\n $query = \"SELECT *, SUM($_somma) AS imposta FROM prima_nota where iva='' AND nreg='$_nreg' AND anno='$_anno'\";\n\n $result = $conn->query($query);\n\n if ($conn->errorCode() != \"00000\")\n {\n $_errore = $conn->errorInfo();\n echo $_errore['2'];\n //aggiungiamo la gestione scitta dell'errore..\n $_errori['descrizione'] = \"Errore Query = $query - $_errore[2]\";\n $_errori['files'] = \"stampa_reg.php\";\n scrittura_errori($_cosa, $_percorso, $_errori);\n }\n\n foreach ($result as $dati)\n ;\n\n $return['imposta'] = $return['imposta'] + $dati['imposta'];\n }\n\n\n\n\n //leggiamo anche l'imponibile\n\n if ($_cosa == \"clienti\")\n {\n $query = \"SELECT *, SUM($_somma) AS imponibile FROM prima_nota where conto != '$_conto_iva' AND iva='$_codiva' AND nreg='$_nreg' AND anno='$_anno'\";\n }\n else\n {\n $query = \"SELECT *, SUM($_somma) AS imponibile FROM prima_nota where conto != '$_conto_iva' AND iva !='' AND iva NOT LIKE 'E%' AND nreg='$_nreg' AND anno='$_anno'\";\n }\n\n $result = $conn->query($query);\n\n if ($conn->errorCode() != \"00000\")\n {\n $_errore = $conn->errorInfo();\n echo $_errore['2'];\n //aggiungiamo la gestione scitta dell'errore..\n $_errori['descrizione'] = \"Errore Query = $query - $_errore[2]\";\n $_errori['files'] = \"stampa_reg.php\";\n scrittura_errori($_cosa, $_percorso, $_errori);\n }\n\n foreach ($result as $dati)\n ;\n\n $return['imponibile'] = $dati['imponibile'];\n\n return $return;\n }", "title": "" }, { "docid": "d37bdf586dcc7cd6110ba4250304ac41", "score": "0.59834903", "text": "function importNomenclature($ar=NULL){\n global $LIBTHEZORRO;\n $dir=$LIBTHEZORRO.'contrib/tourinfrance/';\n $dd=opendir($dir.'nomenclatures/');\n while($file=readdir($dd)) {\n if(is_file($dir.'nomenclatures/'.$file) && preg_match(\"/^nomenclature_([a-zA-Z0-9_]*)\\.csv$/\",$file,$ret)){\n \t$lines=file($dir.'nomenclatures/'.$file);\n \t$xset=XDataSource::objectFactoryHelper8('BCLASS=XDSTable&SPECS='.$this->prefixSQL.$ret[1]);\n \tforeach($lines as $i => $line){\n \t $data=explode(';',rtrim($line));\n \t if(!empty($data[0])) $oid=$this->prefixSQL.$ret[1].':'.str_replace('.','-',$data[0]);\n \t else $oid=$this->prefixSQL.$ret[1].':GITD_'.$data[2];\n \t if(isset($xset->desc['codesv2'])){\n \t updateQuery('insert ignore into '.$this->prefixSQL.$ret[1].' (KOID,LANG,UPD,code,libelle,codesv2) '.\n \t\t\t'values(\"'.$oid.'\",\"'.TZR_DEFAULT_LANG.'\",NOW(),\"'.$data[0].'\",\"'.addslashes($data[1]).'\",\"'.$data[2].'\")');\n \t }else{\n \t updateQuery('insert ignore into '.$this->prefixSQL.$ret[1].' (KOID,LANG,UPD,code,libelle) '.\n \t\t\t'values(\"'.$oid.'\",\"'.TZR_DEFAULT_LANG.'\",NOW(),\"'.$data[0].'\",\"'.addslashes($data[1]).'\")');\n \t }\n \t if($xset->getTranslatable() && $xset->getAutoTranslate()) {\n \t $xk=new Kernel;\n \t $xk->data_autoTranslate($oid);\n \t }\n \t}\n }\n }\n }", "title": "" }, { "docid": "29f64edcd46c737710846e36c06ecff5", "score": "0.5932557", "text": "function importar_planilla() {\n\t\tif (!empty($this->data['Formulario']['accion'])) {\n\t\t\tif ($this->data['Formulario']['accion'] === 'importar') {\n\t\t\t\tif (!empty($this->data['ConveniosCategoria']['planilla']['tmp_name'])) {\n\n\t\t\t\t\tset_include_path(get_include_path() . PATH_SEPARATOR . APP . 'vendors' . DS . 'PHPExcel' . DS . 'Classes');\n\t\t\t\t\tApp::import('Vendor', 'IOFactory', true, array(APP . 'vendors' . DS . 'PHPExcel' . DS . 'Classes' . DS . 'PHPExcel'), 'IOFactory.php');\n\n\t\t\t\t\tif (preg_match(\"/.*\\.xls$/\", $this->data['ConveniosCategoria']['planilla']['name'])) {\n\t\t\t\t\t\t$objReader = PHPExcel_IOFactory::createReader('Excel5');\n\t\t\t\t\t} elseif (preg_match(\"/.*\\.xlsx$/\", $this->data['ConveniosCategoria']['planilla']['name'])) {\n\t\t\t\t\t\t$objReader = PHPExcel_IOFactory::createReader('Excel2007');\n\t\t\t\t\t}\n $objReader->setReadDataOnly(true);\n\t\t\t\t\t$objPHPExcel = $objReader->load($this->data['ConveniosCategoria']['planilla']['tmp_name']);\n\n\n\t\t\t\t\tApp::import('Vendor', 'dates', 'pragmatia');\n\t\t\t\t\tfor ($i = 10; $i <= $objPHPExcel->getActiveSheet()->getHighestRow(); $i++) {\n\n\t\t\t\t\t\t$values[] = array(\n\t\t\t\t\t\t\t'ConveniosCategoriasHistorico' => array(\n\t\t\t\t\t\t\t\t'convenios_categoria_id' => $objPHPExcel->getActiveSheet()->getCellByColumnAndRow(0, $i)->getValue(),\n\t\t\t\t\t\t\t\t'desde' => $this->Util->format(Dates::dateAdd('1970-01-01', $objPHPExcel->getActiveSheet()->getCellByColumnAndRow(3, $i)->getValue() - 25569, 'd', array('fromInclusive' => false)), 'date'),\n\t\t\t\t\t\t\t\t'hasta' =>\n\t\t\t\t\t\t\t\t$this->Util->format(Dates::dateAdd('1970-01-01', $objPHPExcel->getActiveSheet()->getCellByColumnAndRow(4, $i)->getValue() - 25569, 'd', array('fromInclusive' => false)), 'date'),\n\t\t\t\t\t\t\t\t'costo' =>\n\t\t\t\t\t\t\t\t$objPHPExcel->getActiveSheet()->getCellByColumnAndRow(5, $i)->getValue()\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!empty($values)) {\n\t\t\t\t\t\tif ($this->Convenio->ConveniosCategoria->ConveniosCategoriasHistorico->saveAll($values)) {\n\t\t\t\t\t\t\t$this->Session->setFlash('Se importaron correctamente las categorias', 'ok');\n\t\t\t\t\t\t\t$this->redirect('index');\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this->Session->setFlash('No fue posible importar las categorias. Verifique la planilla', 'error');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c604429a606a214f93cd2141c5c13b45", "score": "0.59227675", "text": "function importer_entreprises_depuis_joomla () {\n /* on récupère les données de la table de départ */\n $tableau_entreprises = sql_allfetsel('Entreprise, Phrase, '.\n 'Rue1, CP1, Ville1, Commune1, Tel1, Fax1, Gsm1, Email1, Site1,'.\n 'Rue2, CP2, Ville2, Commune2, Tel2, Fax2, Gsm2, Email2, Site2,'.\n 'Rue3, CP3, Ville3, Commune3, Tel3, Fax3, Gsm3, Email3, Site3,'.\n 'Ouverture, Trouverez, Presentation, Infos, Type', 'Guilde_Entreprises');\n\n /* Dans notre cas, le champ Commune1 est en fait la région dans laquelle\n se trouve l'entreprise. Dans mon SPIP, je veux plutôt que la région\n soit donnée par des rubriques. */\n foreach ($tableau_entreprises as $i => $entreprise) {\n switch ($entreprise['Commune1']) {\n case 'Brabant Wallon':\n $entreprise['id_rubrique'] = $GLOBALS['id_rubrique_brabant'];\n break;\n case 'Bruxelles':\n $entreprise['id_rubrique'] = $GLOBALS['id_rubrique_bruxelles'];\n break;\n case 'Chimay':\n $entreprise['id_rubrique'] = $GLOBALS['id_rubrique_chimay'];\n break;\n case 'Charleroi':\n $entreprise['id_rubrique'] = $GLOBALS['id_rubrique_charleroi'];\n break;\n case 'Liège':\n $entreprise['id_rubrique'] = $GLOBALS['id_rubrique_liege'];\n break;\n case 'Mons':\n $entreprise['id_rubrique'] = $GLOBALS['id_rubrique_mons'];\n break;\n case 'Namur':\n $entreprise['id_rubrique'] = $GLOBALS['id_rubrique_namur'];\n break;\n case 'Sud-Luxembourg':\n $entreprise['id_rubrique'] = $GLOBALS['id_rubrique_sud_luxembourg'];\n break;\n default:\n $entreprise['id_rubrique'] = $GLOBALS['id_rubrique_entreprises'];\n break;\n }\n\n include_spip('action/editer_objet');\n\n /* On remplit alors la table spip que l'on a créé avec la Fabrique, en\n passant chaque champ dans html2spip.\n */\n $id_entreprise = objet_inserer('entreprise', $entreprise['id_rubrique']);\n if ($id_entreprise != 0) {\n objet_modifier('entreprise', $id_entreprise,\n array_map('html2spip_translate', array(\n 'entreprise' => $entreprise['Entreprise'],\n 'phrase' => $entreprise['Phrase'],\n 'rue1' => $entreprise['Rue1'],\n 'cp1' => $entreprise['CP1'],\n 'ville1' => $entreprise['Ville1'],\n 'tel1' => $entreprise['Tel1'],\n 'fax1' => $entreprise['Fax1'],\n 'gsm1' => $entreprise['Gsm1'],\n 'email1' => $entreprise['Email1'],\n 'site1' => $entreprise['Site1'],\n 'rue3' => $entreprise['Rue3'],\n 'cp3' => $entreprise['CP3'],\n 'ville3' => $entreprise['Ville3'],\n 'tel3' => $entreprise['Tel3'],\n 'fax3' => $entreprise['Fax3'],\n 'gsm3' => $entreprise['Gsm3'],\n 'email3' => $entreprise['Email3'],\n 'site3' => $entreprise['Site3'],\n 'rue3' => $entreprise['Rue3'],\n 'cp3' => $entreprise['CP3'],\n 'ville3' => $entreprise['Ville3'],\n 'tel3' => $entreprise['Tel3'],\n 'fax3' => $entreprise['Fax3'],\n 'gsm3' => $entreprise['Gsm3'],\n 'email3' => $entreprise['Email3'],\n 'site3' => $entreprise['Site3'],\n 'ouverture' => $entreprise['Ouverture'],\n 'trouverez' => $entreprise['Trouverez'],\n 'presentation' => $entreprise['Presentation'],\n 'infos' => $entreprise['Infos'],\n 'statut' => 'publie',\n )));\n }\n }\n}", "title": "" }, { "docid": "3b3dcf068a3b4dd06605adbc603ece9d", "score": "0.59096694", "text": "function importar_reloj() {\n\n\t\tif (!empty($this->data['Formulario']['accion'])) {\n\t\t\tif ($this->data['Formulario']['accion'] === 'importar') {\n\n\n\t\t\t\t$errors = array();\n\t\t\t\tif (empty($this->data['Hora']['empleador_id'])) {\n\t\t\t\t\t$errors[] = 'Debe seleccionar el empleador.';\n\t\t\t\t}\n\t\t\t\tif (empty($this->data['Hora']['periodo'])) {\n\t\t\t\t\t$errors[] = 'Debe seleccionar el periodo.';\n\t\t\t\t}\n\t\t\t\tif (empty($this->data['Hora']['archivo']['tmp_name'])) {\n\t\t\t\t\t$errors[] = 'Debe seleccionar el archivo proveniente desde el reloj.';\n\t\t\t\t}\n\n\t\t\t\tif (!empty($errors)) {\n\n\t\t\t\t\t$this->Session->setFlash(implode('<br/>', $errors), 'error');\n\n\t\t\t\t} else {\n\n\t\t\t\t\t$tmpColumns = explode(\"\\n\", $this->data['Hora']['columnas']);\n\t\t\t\t\tforeach ($tmpColumns as $v) {\n\t\t\t\t\t\t$tmp = explode('=>', $v);\n\t\t\t\t\t\t$columns[trim($tmp[0])] = trim($tmp[1]) - 1;\n\t\t\t\t\t}\n\n\n\n\t\t\t\t\t$rows = file($this->data['Hora']['archivo']['tmp_name']);\n\n\t\t\t\t\tforeach ($rows as $k => $row) {\n\n\t\t\t\t\t\t$row = trim($row);\n\n\t\t\t\t\t\tif (!empty($row)) {\n\n\t\t\t\t\t\t\t$d = explode(\"\\t\", $row);\n\n\t\t\t\t\t\t\t$data[$d[$columns['legajo']]][] = $d[$columns['fecha/hora']];\n\n\t\t\t\t\t\t\t$legajos[] = $d[$columns['legajo']];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\n\t\t\t\t\t$relations = $this->Hora->Relacion->find('all',\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'contain' => array('Trabajador'),\n\t\t\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t\t\t'Relacion.legajo' => $legajos,\n\t\t\t\t\t\t\t\t'Relacion.empleador_id' => $this->data['Hora']['empleador_id'],\n\t\t\t\t\t\t\t\t'Relacion.estado' => 'Activa'\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t\t$relations = Set::combine($relations, '{n}.Relacion.legajo', '{n}');\n\n\n\t\t\t\t\tApp::import('Vendor', 'dates', 'pragmatia');\n\n\t\t\t\t\tforeach($data as $k => $v) {\n\n\t\t\t\t\t\t$error = '';\n\t\t\t\t\t\tif ((count($v) & 1) == 1) {\n\n\t\t\t\t\t\t\t$error = 'Error: No existe un egreso para cada ingreso.';\n\n\t\t\t\t\t\t} else if (empty($relations[$k])) {\n\n\t\t\t\t\t\t\t$error = 'Error: El legajo no corresponde a una relación activa existente.';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (empty($error)) {\n\n\t\t\t\t\t\t\t$computedData[$k] = $relations[$k];\n\n\t\t\t\t\t\t\tforeach ($v as $kk => $vv) {\n\n\t\t\t\t\t\t\t\tif (($kk & 1) == 1) {\n\t\t\t\t\t\t\t\t\t$diff = Dates::dateDiff($v[$kk-1], $vv, array('toInclusive' => false));\n\t\t\t\t\t\t\t\t\t$computedData[$k]['records'][] = array(\n\t\t\t\t\t\t\t\t\t\t'from' \t\t\t=> $v[$kk-1],\n\t\t\t\t\t\t\t\t\t\t'to'\t\t\t=> $vv,\n\t\t\t\t\t\t\t\t\t\t'diff'\t\t\t=> $diff\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$computedData[$k]['error'] = $error;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$this->set('data', $computedData);\n\t\t\t\t\t$this->set('liquidacion_tipo', $this->data['Hora']['liquidacion_tipo']);\n\t\t\t\t\t$this->set('periodo', $this->data['Hora']['periodo']);\n\t\t\t\t\t$this->set('tipo', $this->data['Hora']['tipo']);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "fbb52feaaab1e4e66d9dfb7b696ed861", "score": "0.5907082", "text": "function lxfimportentries() {\n\t\t$app = JFactory::getApplication();\n\t\n\t\tJTable::addIncludePath(JPATH_ADMINISTRATOR.'/components/com_freestroke/tables');\n\t\n\t\t$overwriteprogram = $app->input->get('overwriteprogram');\n\t\n\t\tif ($file = $app->input->files->get('importfile')) {\n\t\t\t$handle = fopen($file ['tmp_name'], 'r');\n\t\t\tif (! $handle) {\n\t\t\t\t$app->enqueueMessage(JText::_('Cannot open uploaded file.'));\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfclose($handle);\n\t\t\t\t\n\t\t\t// parse the lenex file\n\t\t\t$xmlFile = $this->extractXMLfromArchive($file ['tmp_name']);\n\t\t\t$lenexXml = simplexml_load_file($xmlFile);\n\t\t\tif ($lenexXml === FALSE) {\n\t\t\t\t$app->enqueueMessage(\"Dit bestand wordt niet herkend. Is het wel een LXF bestand?\");\n\t\t\t} else {\n\t\t\t\trequire_once JPATH_COMPONENT . '/logic/lenexparser.php';\n\t\t\t\t$parser = new FreestrokeLenexParser();\n\t\t\t\t$lenex = $parser->parse($lenexXml);\n\t\n\t\t\t\t$meet = $lenex->meets[0];\n\t\t\t\t$name = $meet->name;\n\t\t\t\t$mindate = $meet->sessions[0]->date;\n\t\t\t\t$city = $meet->city;\n\n\t\t\t\trequire_once JPATH_COMPONENT . '/helpers/meets.php';\n\t\t\t\t$meetObject = FreestrokeMeetsHelper::findByNameCityAndDate($name, $city, $mindate);\n\t\t\t\tif($meetObject) {\n\t\t\t\t\tif (! empty($overwriteprogram)) {\n\t\t\t\t\t\trequire_once JPATH_COMPONENT . '/logic/invitationreader.php';\n\t\t\t\t\t\t$reader = new FreestrokeInvitationReader();\n\t\t\t\t\t\t$reader->process($lenex, $meetObject->id);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\trequire_once JPATH_COMPONENT . '/logic/entriesreader.php';\n\t\t\t\t\t$componentParams = &JComponentHelper::getParams('com_freestroke');\n\t\t\t\t\t$clubcode = $componentParams->get('associationcode', null);\n\t\t\t\t\tif ($clubcode != null && strlen($clubcode) > 0) {\n\t\t\t\t\t\t$reader = new FreestrokeEntriesReader();\n\t\t\t\t\t\t$hasentries = $reader->process($lenex, $meetObject->id, $clubcode);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$app->enqueueMessage(\"De KNZB Club code is niet ingevuld. Neem contact op met de website beheerder.\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$app->enqueueMessage(\"Deze wedstrijd is niet gevonden. Selecteer zelf eerst de juiste wedstrijd.\");\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t// Flush the data from the session.\n// \t\t\t\t$app->setUserState('com_freestroke.edit.meet.data', null);\n\t\t\t}\n\t\t}\n\t\n\t\t$this->setRedirect(JRoute::_('index.php?option=com_freestroke&view=meetscalendar'));\n\t}", "title": "" }, { "docid": "f12bd5cd0e40f31b7008b537f4211a4d", "score": "0.58841103", "text": "private function preparaDadosContador(DBLayoutLinha $oLinha) {\n\n $oLinha->cpf_cnpj = trim($oLinha->cpf_cnpj);\n\n if (strlen($oLinha->cpf_cnpj) == 0) {\n\n $oDadosContador->iInscricaoMunicipal = 0;\n $oDadosContador->sCpfCnpj = null;\n $oDadosContador->sNomeRazaoSocial = null;\n $oDadosContador->iNumeroCgm = null;\n\n return $oDadosContador;\n\n } else if (strlen($oLinha->cpf_cnpj) < 11 || strlen($oLinha->cpf_cnpj) > 14) {\n throw new Exception(\"O CPF/CNPJ \\\"{$oLinha->cpf_cnpj}\\\" do Contador/Escritório é inválido.\");\n }\n\n // Valida se o contador informado no arquivo e o mesmo do logado\n if ($oLinha->cpf_cnpj != $this->sCpfCnpjContador) {\n throw new Exception(\"Contador/Escritório sem permissão para importar os documentos.\");\n }\n\n $sSqlValidaDados = 'select ';\n $sSqlValidaDados .= ' issbase.q02_inscr, ';\n $sSqlValidaDados .= ' cgm.z01_nome, ';\n $sSqlValidaDados .= ' z01_cgccpf, ';\n $sSqlValidaDados .= ' z01_numcgm ';\n $sSqlValidaDados .= ' from issbase ';\n $sSqlValidaDados .= ' inner join cgm on z01_numcgm = q02_numcgm ';\n $sSqlValidaDados .= \" where z01_cgccpf = '{$oLinha->cpf_cnpj}' \";\n $sSqlValidaDados .= ' limit 1 ';\n $rsValidaDados = db_query($sSqlValidaDados);\n\n if (pg_numrows($rsValidaDados) == 0) {\n throw new Exception('Nenhuma Inscrição Municipal foi encontrada para o CNPJ/CPF.');\n }\n\n $oDadosContador->iInscricaoMunicipal = db_utils::fieldsMemory($rsValidaDados, 0)->q02_inscr;\n $oDadosContador->sCpfCnpj = db_utils::fieldsMemory($rsValidaDados, 0)->z01_cgccpf;\n $oDadosContador->sNomeRazaoSocial = db_utils::fieldsMemory($rsValidaDados, 0)->z01_nome;\n $oDadosContador->iNumeroCgm = db_utils::fieldsMemory($rsValidaDados, 0)->z01_numcgm;\n\n return $oDadosContador;\n }", "title": "" }, { "docid": "8883e60c60f16bf0bc2ddb7cf7eb7641", "score": "0.5849407", "text": "function AddImported()\n {\n $datas=preg_grep('/\\S/',$this->ImportDatas);\n array_unshift($datas,\"No\");\n $titles=$this->B($this->MyMod_Data_Titles($datas));\n\n $this->MyMod_Data_Add_Default_Init();\n\n $table=array($titles);\n foreach ($this->ImportItems as $n => $item)\n {\n $ritem=$item;\n foreach ($this->AddDefaults as $data => $value)\n {\n $ritem[ $data ]=$value;\n }\n\n array_push\n (\n $table,\n $this->MyMod_Group_Row_Item(0,$item,$n+1,$datas)\n );\n }\n\n print\n $this->H(2,\"Itens Importados\").\n $this->H(3,count($this->ImportItems).\" \".$this->ItemsName).\n $this->HtmlTable(\"\",$table).\n $this->MakeHidden(\"Import\",1);\n }", "title": "" }, { "docid": "2d07e7d6fc50edb6c7ee287fa6099fc3", "score": "0.5785757", "text": "public function getImporto()\n {\n return $this->importo;\n }", "title": "" }, { "docid": "11f22f6f33391d25fa5d0e912fd65c42", "score": "0.5768127", "text": "private function _lineas() \n\t{\n\t\t\n\t\t$consulta = new Mysql;\n\t\tforeach($this->_buscar as $palabra) {\n\t\t\t$sql_lineas = \"SELECT idlinea FROM lineas WHERE eliminado = 0 AND linea LIKE '%\".$palabra.\"%';\";\n\t\t\t$consulta->ejecutar_consulta($sql_lineas);\n\t\t\tif($consulta->numero_registros==1) {\n\t\t\t\t$this->_lineas[] = 'idlinea = ' . $consulta->registros[0]->idlinea;\n\t\t\t} else {\n\t\t\t\t$palabras[]=$palabra;\n\t\t\t}\n\t\t}\n\t\t$consulta->__destruct;\n\t\t$this->_asignar_buscar($palabras);\n\t}", "title": "" }, { "docid": "72c8d67aee22bfef3c5cac74e0e4fe09", "score": "0.5756059", "text": "function taxonomy_csv_vocabulary_import($options) {\n // Check options and return array of messages in case of errors.\n if ($options['check_options']) {\n $module_dir = drupal_get_path('module', 'taxonomy_csv');\n require_once(\"$module_dir/import/taxonomy_csv.import.admin.inc\");\n $result = _taxonomy_csv_import_check_options($options);\n if (count($result)) {\n return $result;\n }\n }\n\n // Complete $options.\n // Switch soft tab delimiter with a true one if needed.\n if (drupal_strlen($options['delimiter']) > 1) {\n $result = _taxonomy_csv_import_soft_tab($options['file'], $options['delimiter']);\n $options['delimiter'] = \"\\t\";\n }\n\n // Calculates number of lines to be imported. File is already checked.\n $options['total_lines'] = count(file($options['file']->filepath));\n\n // Prepare vocabularies.\n $name = _taxonomy_csv_import_vocabulary_prepare($options);\n\n // Set locale if needed.\n // See http://drupal.org/node/872366\n $options['locale_previous'] = setlocale(LC_CTYPE, 0);\n if ($options['locale_custom']) {\n setlocale(LC_CTYPE, $options['locale_custom']);\n }\n\n // Prepare import batch.\n // Use a one step batch in order to avoid memory crash in case of big import.\n $batch = array(\n 'title' => ($name != '') ?\n t('Importing !total_lines lines from CSV file \"%filename\"...', array(\n '%filename' => $name,\n '!total_lines' => $options['total_lines'])) :\n t('Importing !total_lines lines from text...', array(\n '!total_lines' => $options['total_lines'])),\n 'init_message' => t('Starting uploading of datas...'),\n 'progress_message' => '',\n 'error_message' => t('An error occurred during the import.'),\n 'finished' => '_taxonomy_csv_vocabulary_import_finished',\n 'file' => drupal_get_path('module', 'taxonomy_csv') . '/import/taxonomy_csv.import.api.inc',\n 'progressive' => TRUE,\n 'operations' => array(\n 0 => array('_taxonomy_csv_vocabulary_import_process', array($options)),\n ),\n );\n\n batch_set($batch);\n}", "title": "" }, { "docid": "b2865429cfa01c59f4af0bf8ea0e8d66", "score": "0.57485193", "text": "function importDonnees($nomfichier, $dbname)\n{\n return import(\"D\", \"sauvegarde\\\\\".$nomfichier, $dbname);\n}", "title": "" }, { "docid": "2c2ec3f83ecb868fe44ae4f83d711f98", "score": "0.5699332", "text": "public function import(){\n return view('pages.administration.pluviometries.import');\n }", "title": "" }, { "docid": "b2b463b529fb5f7efc2340bbfe8dc936", "score": "0.5685631", "text": "private function preparaDadosNota(DBLayoutLinha $oLinha, $oContribuinte) {\n\n $oDaoEmpresaPretServico = db_utils::getDao('issbase');\n\n $sSql = $oDaoEmpresaPretServico->sql_queryAtividadeServico($oContribuinte->iInscricaoMunicipal);\n $rsResult = db_query($sSql);\n\n if (strtoupper(trim($oLinha->operacao)) == 'S' && (pg_numrows($rsResult) == 0)) {\n throw new Exception('O Contribuinte não é prestador de serviço');\n }\n\n if (!in_array(trim(strtoupper($oLinha->situacao_nota)), array('T', 'R', 'C', 'E', 'IS', 'IM', 'N', 'S'))) {\n throw new Exception('Situação da Nota inválida');\n }\n\n if (trim($oLinha->situacao_nota) == 'R') {\n\n $oDadosNota->bRetido = true;\n\n if (strlen(trim($oLinha->nome_razao_social_tomador)) == 0) {\n throw new Exception('Nome/Razão Social não informado');\n }\n\n if (strlen(trim($oLinha->cpf_cnpj_tomador)) == 0 || !ctype_digit(trim($oLinha->cpf_cnpj_tomador))) {\n throw new Exception(\"CPF/CNPJ do Tomador ({$oLinha->nome_razao_social_tomador}) não informado\");\n }\n\n $oDaoCgm = new cl_cgm;\n $sSqlCgm = $oDaoCgm->sql_query_file(null, '1', null, \"z01_cgccpf = '{$oLinha->cpf_cnpj_tomador}'\");\n $rsRecord = $oDaoCgm->sql_record($sSqlCgm);\n\n if (pg_numrows($rsRecord) == 0) {\n throw new Exception(\"Tomador ({$oLinha->nome_razao_social_tomador}) não cadastrado na prefeitura\");\n }\n\n if ((strlen(trim($oLinha->inscricao_municipal)) == 0) && (trim(strtoupper($oLinha->situacao_nota)) == 'E')) {\n throw new Exception('Inscrição Municipal não informada para nota com situação de Retida');\n }\n }\n\n if (strlen($oLinha->serie_nota) > 5) {\n throw new Exception('Tamanho do Campo Série da Nota está maior do que o permitido. (Nota: '.$oLinha->numero_nota.'. Série: '.$oLinha->serie_nota.')');\n }\n\n\n if (trim($oLinha->tipo_nota) == '') {\n\n $sMensagemErro = \"Tipo de Documento não informado ou incorreto para o documento nº \\\"{$oLinha->numero_nota}\\\".\";\n\n throw new Exception($sMensagemErro);\n } else {\n\n $oDaoTipoNota = new cl_notasiss();\n $sSqlNotas = $oDaoTipoNota->sql_query_file($oLinha->tipo_nota);\n $rsNota = pg_query($sSqlNotas);\n\n if (pg_numrows($rsNota) == 0) {\n\n $sMensagemErro = \"Tipo de Documento \\\"{$oLinha->tipo_nota}\\\" é inválido no \";\n $sMensagemErro.= \"documento nº \\\"{$oLinha->numero_nota}\\\".\";\n\n throw new Exception($sMensagemErro);\n }\n }\n\n // Valida a data de emissão do documento\n if (!self::dataValida(trim($oLinha->data_emissao))) {\n\n $sMensagemErro = \"Data de Emissão \\\"{$oLinha->data_emissao}\\\" inválida no \";\n $sMensagemErro.= \"documento nº \\\"{$oLinha->numero_nota}\\\".\";\n\n throw new Exception($sMensagemErro);\n }\n\n // Valida a data de prestação do serviço do documento\n if (!self::dataValida(trim($oLinha->data_prestacao))) {\n\n $sMensagemErro = \"Data de Prestação do Serviço \\\"{$oLinha->data_prestacao}\\\" inválida no \";\n $sMensagemErro.= \"documento nº \\\"{$oLinha->numero_nota}\\\".\";\n\n throw new Exception($sMensagemErro);\n }\n\n $sAnoMesCompetencia = $oContribuinte->iAnoCompetencia . $oContribuinte->iMesCompetencia;\n\n if (substr(trim($oLinha->data_emissao), 0, 6) != $sAnoMesCompetencia) {\n\n $sMensagemErro = \"Data de Emissão da Documento \\\"{$oLinha->data_emissao}\\\" difere da competência sendo \";\n $sMensagemErro.= \"importada no documento nº \\\"{$oLinha->numero_nota}\\\".\";\n\n throw new Exception($sMensagemErro);\n }\n\n if (strtoupper(trim($oLinha->operacao)) == 'S') {\n if (trim($oLinha->codigo_servico) == '') {\n throw new Exception('Código de Serviço não informado.');\n } else {\n\n $oDaoGrpServAtivid = new cl_issgruposervicoativid;\n $sWhere = \"db121_tipoconta = 2 and db_estruturavalor.db121_estrutural = '{$oLinha->codigo_servico}'\";\n $sSqlGrpServAtiv = $oDaoGrpServAtivid->sql_query('', 'q03_ativ', '', $sWhere);\n $rsGrpServAtiv = $oDaoGrpServAtivid->sql_record($sSqlGrpServAtiv);\n $aCodigoAtividade = db_utils::getCollectionByRecord($rsGrpServAtiv);\n\n // Valida se existe o grupo de serviço / atividade\n if (count($aCodigoAtividade) <= 0) {\n throw new Exception(\"Grupo Atividade/Serviço \\\"{$oLinha->codigo_servico}\\\" não encontrado.\");\n }\n\n // Recupera a lista de atividades do grupo de serviço\n foreach ($aCodigoAtividade as $oAtividade) {\n $aAtividades[] = $oAtividade->q03_ativ;\n }\n\n // Se for DMS de saída pega a inscrição do prestador do serviço, caso contrário pega do contribuinte\n if (strtoupper(trim($oLinha->operacao)) == 'S') {\n $iInscricaoMunicipal = $oContribuinte->iInscricaoMunicipal;\n } else {\n $iInscricaoMunicipal = $oLinha->inscricao_municipal;\n }\n\n $lExisteServicoEAtividadeEmpresa = self::existeServicoEAtividadeEmpresa($iInscricaoMunicipal,\n $oLinha->codigo_servico,\n $oLinha->codigo_atividade);\n\n // Valida se existe alguma atividade com o grupo informado, somente para serviços prestados (saída)\n if (!$lExisteServicoEAtividadeEmpresa) {\n\n $sMensagemErro = \"O Código do Serviço \\\"{$oLinha->codigo_servico}\\\" ou Atividade \";\n $sMensagemErro.= \"\\\"{$oLinha->codigo_atividade}\\\" não está vinculado ao Contribuinte de inscrição \";\n $sMensagemErro.= \" municipal \\\"{$iInscricaoMunicipal}\\\".\";\n\n throw new Exception($sMensagemErro);\n }\n }\n }\n // Valida o tipo de operacao do documento (E=Entrada | S=Saída)\n $oDadosNota->sOperacao = trim(strtolower($oLinha->operacao));\n\n switch ($oDadosNota->sOperacao) {\n\n case 'e':\n $oDadosNota->iTipoServico = NotaPlanilhaRetencao::SERVICO_TOMADO;\n break;\n\n case 's':\n $oDadosNota->iTipoServico = NotaPlanilhaRetencao::SERVICO_PRESTADO;\n break;\n\n default :\n throw new Exception('O Tipo de Operação do documento é inválido.');\n }\n\n // Formatação das datas\n $iDiaEmissao = substr($oLinha->data_emissao, 6, 8);\n $iMesEmissao = substr($oLinha->data_emissao, -4, -2);\n $iAnoEmissao = substr($oLinha->data_emissao, -8, -4);\n $iDiaPrestacao = substr($oLinha->data_prestacao, 6, 8);\n $iMesPrestacao = substr($oLinha->data_prestacao, -4, -2);\n $iAnoPrestacao = substr($oLinha->data_prestacao, -8, -4);\n $iDataEmissao = strtotime($iAnoEmissao .'/'.$iMesEmissao .'/'.$iDiaEmissao);\n $iDataPrestacao = strtotime($iAnoPrestacao.'/'.$iMesPrestacao.'/'.$iDiaPrestacao);\n\n // Dados da nota\n $oDadosNota->sDataEmissao = new DBDate(date('Y-m-d', $iDataEmissao));\n $oDadosNota->sHora = db_hora();\n $oDadosNota->sNomeRazaoSocial = trim($oLinha->nome_razao_social_tomador);\n $oDadosNota->iStatus = NotaPlanilhaRetencao::STATUS_ATIVO;\n $oDadosNota->iSituacao = 1;\n\n /*\n * Situação do Documento\n *\n * T = tributada\n * R = retido\n * C = cancelada\n * E = extraviada\n * Is = isento\n * Im = imune\n * N = não tributada\n * S = Tributação suspensa\n */\n switch (trim(strtoupper($oLinha->situacao_nota))) {\n\n case 'T':\n $oDadosNota->lEmiteGuia = true;\n $oDadosNota->bRetido = ($oDadosNota->iTipoServico == NotaPlanilhaRetencao::SERVICO_TOMADO);\n break;\n\n case 'R':\n $oDadosNota->lEmiteGuia = true;\n $oDadosNota->bRetido = ($oDadosNota->iTipoServico == NotaPlanilhaRetencao::SERVICO_PRESTADO);\n break;\n\n case 'C':\n $oDadosNota->lEmiteGuia = false;\n $oDadosNota->iSituacao = 0;\n $oDadosNota->iStatus = NotaPlanilhaRetencao::STATUS_INATIVO_EXCLUSAO;\n break;\n\n case 'E':\n $oDadosNota->lEmiteGuia = false;\n $oDadosNota->iSituacao = 0;\n $oDadosNota->iStatus = NotaPlanilhaRetencao::STATUS_INATIVO_ALTERACAO;\n break;\n\n default:\n $oDadosNota->lEmiteGuia = false;\n }\n\n /**\n * Natureza da operação\n *\n * @tutorial\n * 1 (Tributação dentro do município)\n * 2 (Tributação fora do município)\n *\n * * Deverá emitir a guia somente se for tributado dentro do município\n */\n switch (trim($oLinha->natureza_operacao)) {\n\n case 1:\n // Mantém a validação da situação do documento\n break;\n\n case 2:\n $oDadosNota->lEmiteGuia = false;\n break;\n\n default:\n throw new Exception(\"A Natureza da Operação \\\"{$oLinha->natureza_operacao}\\\" inválida.\");\n }\n\n $oDadosNota->sDataPrestacao = new DBDate(date('Y-m-d', $iDataPrestacao));\n $oDadosNota->iCpfCnpjTomador = trim($oLinha->cpf_cnpj_tomador);\n $oDadosNota->sSerie = trim($oLinha->serie_nota);\n $oDadosNota->sNumeroNota = trim($oLinha->numero_nota);\n $oDadosNota->fValorServico = trim($oLinha->valor_servico);\n $oDadosNota->fValorIssqn = trim($oLinha->valor_issqn);\n $oDadosNota->fValorAliquota = trim($oLinha->valor_aliquota);\n $oDadosNota->fValorDeducao = trim($oLinha->valor_deducao);\n $oDadosNota->fValorBaseCalculo = trim($oLinha->valor_base_calculo);\n $oDadosNota->sDescricaoServico = trim($oLinha->descricao_servico);\n $oDadosNota->iCodigoServico = trim($oLinha->codigo_servico);\n $oDadosNota->iCodigoAtividade = trim($oLinha->codigo_atividade);\n $oDadosNota->fValorDescontoIncondicional = trim($oLinha->valor_desconto_incondicional);\n $oDadosNota->fValorDescontoCondicional = trim($oLinha->valor_desconto_condicional);\n $oDadosNota->fValorNota = trim($oLinha->valor_nota);\n $oDadosNota->iCodigoCidadeTomador = trim($oLinha->cidade_tomador);\n $oDadosNota->iCodigoTipoNota = trim($oLinha->tipo_nota);\n $oDadosNota->sSituacao = trim($oLinha->situacao_nota);\n $oDadosNota->iNaturezaOperacao = trim($oLinha->natureza_operacao);\n $oDadosNota->sCodigoObra = trim($oLinha->codigo_obra);\n $oDadosNota->sArt = trim($oLinha->art);\n $oDadosNota->sInformacoesComplementares = trim($oLinha->outras_informacoes);\n\n return $oDadosNota;\n }", "title": "" }, { "docid": "224103abca7838ba66d148f9886f301e", "score": "0.5657634", "text": "public function processamentoArquivo() {\n\n try {\n\n /**\n * Verifica o nome do arquivo\n */\n if (!$this->sNomeArquivo) {\n $this->oModeloImportacao->setMensagemErro('E160');\n }\n\n /**\n * Verifica se existe algum registro de usuário\n */\n if (!is_object($this->oDadosUsuario)) {\n throw new Exception('Usuario não encontrado!', 157);\n }\n\n /**\n * Verifica se o usuário está autenticado\n */\n if (!$this->autenticaUsuario($this->oDadosUsuario->getLogin())) {\n $this->oModeloImportacao->setMensagemErro('E157', 'Usuario: ' . $this->oDadosUsuario->getLogin());\n }\n\n $this->oModeloImportacao->setArquivoCarregado($this->sCaminhoNomeArquivo);\n\n $oArquivoCarregado = $this->oModeloImportacao->carregar();\n\n /**\n * Verifica se o modelo está válido e processa o arquivo de importação\n */\n if ($oArquivoCarregado && !$this->oModeloImportacao->getErro() && $this->oModeloImportacao->validaArquivoCarregado()) {\n\n /**\n * Valida as regras de negócio e processa a importação\n */\n $oImportacaoProcessamento = new Contribuinte_Model_ImportacaoArquivoProcessamento();\n\n $oImportacaoProcessamento->setCodigoUsuarioLogado($this->oDadosUsuario->getId());\n\n $oImportacaoProcessamento->setArquivoCarregado($oArquivoCarregado);\n\n /**\n * Processa a importação\n */\n $oDadosImportacao = $oImportacaoProcessamento->processarImportacaoRps();\n\n return $this->oModeloImportacao->processaSucessoWebService($oDadosImportacao);\n } else {\n return $this->oModeloImportacao->processaErroWebService($oArquivoCarregado->lote->numero);\n }\n } catch (Exception $oErro) {\n throw new Exception($oErro->getMessage(), $oErro->getCode());\n }\n }", "title": "" }, { "docid": "26ab0321d82b63655cdd294ec836a98d", "score": "0.5620424", "text": "public function import($data);", "title": "" }, { "docid": "26ab0321d82b63655cdd294ec836a98d", "score": "0.5620424", "text": "public function import($data);", "title": "" }, { "docid": "5128373a0ff82e87b036359546ce6db3", "score": "0.55941087", "text": "function recupera_linha_pesquisa($text) {\n\t\t$sc = 'id=\"linhaPesquisa\"';\n\t\t$text = substr($text, strpos($text, $sc) + strlen($sc) + 1, strlen($text));\n\t\t$text = substr($text, 0, strpos($text, '</fieldset>') + 1);\n\n\t\t/* */\n\t\t$text = troca($text, '<span >ui-button</span>', '');\n\t\t$text = troca($text, '<span >', '');\n\t\t$text = troca($text, '</span>', '');\n\t\t$text = troca($text, chr(13) . chr(10) . chr(13) . chr(10), chr(13) . chr(10));\n\t\t$text = troca($text, chr(13) . chr(10) . ' ', '');\n\n\t\t/* */\n\t\t$data = array();\n\t\t$data['linhas'] = $this -> recupera_method_4($text, '<legend>Linhas de pesquisa', '</table>');\n\n\t\treturn ($data);\n\t}", "title": "" }, { "docid": "2977775d7f0bd3963ec00000194f662c", "score": "0.5586308", "text": "function llenatablas($archorig, $usu,$cliente){\n \n \n if (($handle = fopen($archorig, \"r\")) != FALSE) {\n $fila=0;\n //si puede abrir el archivo, prodede a la lectura, hasta terminar con el string. \n \n while (($data = fgetcsv($handle, 1000, \",\")) !== FALSE) {\n \n if ($fila == 1){\n //llenado de encabezado\n \n // hace las conversiones necesarias para llenar la tabla resumen\n \n $campo6=qblanco($data[6]);\n $campo7=qblanco($data[7]);\n $campo8=qblanco($data[8]);\n $campo9=qblanco($data[9]);\n $campo10=qblanco($data[10]);\n $campo11=qblanco($data[11]);\n $campo12=qblanco($data[12]);\n $campo14=qblanco($data[14]);\n $fecha1=convfecha($data[19]);\n $fecha2=convfecha($data[20]);\n $fecha3=convfecha($data[21]);\n $campo22 = qblanco($data[22]);\n $campo23 = qblanco($data[23]);\n $campo24 = qblanco($data[24]);\n $campo27 = qblanco($data{27});\n $campo28 = qblanco($data[28]);\n $campo29 = qblanco($data[29]);\n $campo30 = qblanco($data[30]);\n $campo31 = qblanco($data[31]);\n $campo32 = qblanco($data[32]);\n $campo33 = qblanco($data[33]);\n $campo34 = qblanco($data[34]);\n $campo35 = qblanco($data[35]);\n $notienda =notienda($data[10]);\n \n //obtencion de datos recurrentes\n \n $orden = $data[1]; \n \n//VALIDACIONES PREVIAS ---------------------------------------------------------------------------------------------------------------- \n \n //definicion de cadena\n switch ($campo11) {\n //caso bodega\n case 7507003100025:\n $cadena = 1;\n break;\n //caso superama \n case 7507003100032:\n $cadena = 2;\n break;\n//caso wal-mart \n case 7507003100001:\n $cadena = 3;\n break;\n \n \n default:\n//caso desconocido\n return 2;\n break;\n }\n \n// ese numero de orden ya existe \n \n \n $sql=\"SELECT orden FROM orden_resumen WHERE orden = $orden\";\n $result1=mysql_query($sql);\n $row=mysql_fetch_array($result1); \n $count=mysql_num_rows($result1);\n \n //Si el numero de orden ya existe, sale de la rutina\n if($count!=0)\n {\n echo '<script type=\"text/javascript\">alert(\"La orden de compra ya existe, revise.\")</script>';\n fclose($handle);\n return 3; \n \n }\n \n \n //LLENADO DE TABLAS ------------------------------------\n \n //string de llenado de campos tabla orden_resumen siempre se da de alta con status 0 = por confirmar.\n \n $queryr = \"INSERT INTO orden_resumen (cadena,cliente_zerby,orden,tipo_orden,vendedor,moneda,depto,monto_total,\n promocion,no_partidas,no_comprador,comprador,no_formato_tienda, formato_tienda,lugar_embarque,fecha_orden, \n fecha_canc, fecha_ent,dias_pago,dias_ppago,p_desc,cargo_flete,libre1,libre2,libre3,libre4,libre5,libre6,libre7,libre8,\n dadealta,status,no_tienda) VALUES ($cadena,$cliente,$orden,$data[2],$data[3],'$data[4]',$data[5],$campo6,'$campo7',$campo8,$campo9,\n '$campo10',$campo11,'$campo12','$campo14',$fecha1,$fecha2,$fecha3,$campo22,$campo23,$campo24,'$campo27',\n '$campo28','$campo29','$campo30','$campo31','$campo32','$campo33','$campo34','$campo35','$usu',0,$notienda)\";\n \n //lenado de campos\n \n $result2=mysql_query($queryr) ;\n \n if(!$result2){\n //No se pudo lograr la insercion, crea una entrada en el log\n creaLog(mysql_error());\n //intenta eliminar el archivo original para que se pueda importar correctamente \n chmod($archorig, 0777);\n unlink($archorig);\n \n if (is_file($archorig) == true){\n //si no lo puede eliminar, avisa \n echo \"el archivo no se pudo eliminar\";\n } \n fclose($handle);\n return 4;\n //-----------fin del if no se pudo lograr la insercion\n }\n \n //-----------fin del if fila 1\n }\n \n //---------------------------------llenado de orden_detalle----------------------------------------------------------------------\n if($fila>2){\n //Hace las conversiones necesarias para el llenado de la tabla detalle\n \n\n $cadart= 7;\n //definicion de cadena por articulo para distinguir el articulo patyleta con upc repetido\n if($data[2]=='605391414759' && $cadena== 1){\n $cadart= 1;\n }\n \n elseif($data[2]=='605391414759' && $cadena== 3){\n $cadart=3;\n }\n else{\n $cadart=99;\n }\n \n //string de llenado de campos tabla orden_detalle \n $queryd = \"INSERT INTO orden_detalle (orden,no,upc,cad_art,no_comprador,size,cantidad,medida,precio,\n empaque,color,monto_linea)\n VALUES ($orden,$data[1],$data[2],$cadart,$data[3],'$data[5]',$data[7],'$data[8]',$data[9],$data[10],\n '$data[11]',$data[12])\";\n \n //llenado de campos\n \n $resultd = mysql_query($queryd);\n \n if(!$resultd){\n //No se pudo lograr la insercion, crea una entrada en el log\n creaLog(mysql_error());\n fclose($handle);\n return 5;\n }\n // fin del if de fila > 2 \n }\n //se incrementa la fila\n $fila++; \n //cierre de while data\n }\n //cierre de archivos\n fclose($handle);\n return 0;\n// fin de if si se pudo abrir el archivo----------------------------------------------------------------------------\n }\nelse{\n//no se pudo abrir el archivo\n \n}\n// fin de la funcion---------------------------------------------------------------------------------------------------\n }", "title": "" }, { "docid": "3c7c83f6a7f8bdeac6121b547e817c81", "score": "0.5583995", "text": "function locale_translate_batch_import($filepath, &$context) {\n // The filename is either {langcode}.po or {prefix}.{langcode}.po, so\n // we can extract the language code to use for the import from the end.\n if (preg_match('!(/|\\.)([^\\./]+)\\.po$!', $filepath, $langcode)) {\n $file = entity_create('file', array(\n 'filename' => drupal_basename($filepath),\n 'uri' => $filepath,\n ));\n _locale_import_read_po('db-store', $file, LOCALE_IMPORT_KEEP, $langcode[2]);\n $context['results'][] = $filepath;\n }\n}", "title": "" }, { "docid": "fb73640c9546c30385fbb25b4ac4b849", "score": "0.55776393", "text": "static public function ctrSubirImporte(){\n\n\t\t\t/*=============================================\n\t\t\tGUARDAR EL AUTOCONSUMO\n\t\t\t=============================================*/\t\n\n\t\t\tif(isset($_FILES['file_importar']['name'])){\n\n\t\t\t$file_importar=$_FILES['file_importar']['name'];\n\n\t\t\t\n\t\t\t$rows=0;\n\t\t\t$datos1=array();\n\t\t\t$datos3=array();\n\t\t\t$datos;\n\t\t\t$elementos='';\n\t\t\t$id_responsable=$_POST['idResponsable'];\n\t\t\t$productos=$_POST['listaProductosEntradaImporte'];\n\t\t\t$fecha='';\n\t\t\t$fecha_vencimiento='';\n\t\t\t$id_proveedor='';\n\t\t\t$id_proveedor='';\n\t\t\t$id_documento='';\n\t\t\t$codigo='';\n\t\t\t$secuencia='';\n\t\t\t$forma_cobro='';\n\t\t\t$descripcion='';\n\t\t\t$subtotal=0;\n\t\t\t$impuesto=0;\n\t\t\t$total=0;\n\t\t\t$codigoEntr=0;\n\n\t\t\n\t\t\n\n\t\t\techo $file_importar;\n\n\n\t\t\t$archivocopiado=$_FILES['file_importar']['tmp_name'];\n\n\t\t\t$archivoguardado='copia_'.$file_importar;\n\n\n\t\t\techo '<br> El '.$file_importar.' esta en la ruta de: '.$archivocopiado;\n\n\t\t\tif (copy($archivocopiado,$archivoguardado)) {\n\t\t\t\techo '<br> Se copio correctamente a la carpeta<br>';\n\t\t\t}else {\n\t\t\t\techo 'hubo un error';\n\t\t\t}\n\t\t\t\n\t\t\tif (file_exists($archivoguardado)) {\n\n\n\n\t\t\t\t$fp=fopen($archivoguardado,'r');\n\n\n\n\t\t\t\t\n\n\t\t\t\twhile ($datos=fgetcsv($fp,1000,\";\")) {\n\n\t\t\t\t\t$rows++;\n\n\t\t\t\t\tif ($rows>1) {\n\t\t\t\t\t\t\n\t\t\t\t\t$id_proveedor=$datos[0];\n\t\t\t\t\t$id_documento=$datos[1];\n\t\t\t\t\t$codigo=$datos[2];\n\t\t\t\t\t$secuencia=$datos[3];\n\t\t\t\t\t$forma_cobro=$datos[6];\n\t\t\t\t\t$descripcion=$datos[7];\n\t\t\t\t\t$fecha=date( \"Y-m-d\", strtotime(str_replace('/', '-', $datos[2])) );\n\t\t\t\t\t$fecha_vencimiento=date( \"Y-m-d\", strtotime(str_replace('/', '-', $datos[3])) );\n\t\t\t\t\t\n\n\t\t\t\t\t\n\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t$item = \"codigo\";\n\t\t\t\t\t$valor = $datos[5];\n\t\t\t\t\t$orden = \"id\";\n\n\t\t\t\t\t$respuestaProducto = ControladorProductos::ctrMostrarProductos($item, $valor,\n\t\t\t\t\t\t$orden);\n\n\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t$item=\"id\";\n\t\t\t\t\t\t$valor=$respuestaProducto['id_impuesto'];\n\n\t\t\t\t\t\t\n\n\t\t\t\t\t$respuestaImpuesto=ControladorImpuestos::ctrMostrarImpuestoVentasVarios($item,$valor);\n\n\t\t\t\t\t\n\t\t\t\t\t\tforeach ($respuestaImpuesto as $key => $valueImpuesto) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t$calculoImpuesto=$respuestaProducto['precio_compra']*$valueImpuesto['valor'];\n\n\n\t\t\t\t\t\t$precioImpuesto=$calculoImpuesto/100;\n\n\t\t\t\t\t\t$cantidadConImpuesto=$datos[7]*$precioImpuesto;\n\n\t\t\t\t\t\t$valorUnitario=$respuestaProducto['precio_compra']*$datos[7];\n\n\t\t\t\t\t\t$item=\"id\";\n\t\t\t\t\t\t$valor=$respuestaProducto['id_impuesto'];\n\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t\n\n\t\t\t\t\t$datos2=array(\n\t\t\t\t\t\t'id'=>$respuestaProducto['id'],\n\t\t\t\t\t\t'codigo'=>$datos[5],\n\t\t\t\t\t\t\"descripcion\"=>substr($datos[6],1),'cantidad'=>$datos[7], \n\t\t\t\t\t'precio'=>$respuestaProducto['precio_compra'],\n\t\t\t\t\t'valorimpuesto'=>$valueImpuesto['valor'],'impuesto'=>$precioImpuesto,\n\t\t\t\t\t'valorimpuesto'=>$valueImpuesto['valor'],\n\t\t\t\t\t'totalimpuesto'=>$cantidadConImpuesto, 'valorUnitario'=>$valorUnitario);\n\n\t\t\t\t\t\n\n\t\t\t\t\tif ($rows==2) {\n\n\t\t\t\t\t\t$itemEntr = null;\n\t\t\t\t\t\t$valorEntr = null;\n\n\t\t\t\t\t\t$respuestaEntradaMostrar=ControladorEntradas::ctrMostrarEntradas($itemEntr,$valorEntr);\n\n\t\t\t\t\t\tforeach ($respuestaEntradaMostrar as $key => $valueEntr) {\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$codigoEntr = ($valueEntr[\"codigo\"]);\n\t\t\t\t\t\t\t\tif ($valueEntr[\"codigo\"]==0) {\n\t\t\t\t\t\t\t\t\t$codigoEntr=$valueEntr[\"codigo\"]+2;\n\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t$codigoEntr=$valueEntr[\"codigo\"]+1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n \n\t\t\t\t\t\t\t\n \n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n \n\t\t\t\t\t\t\n\n\t\t\t\t\t\t$datos1=[\n\t\t\t\t\t\t\t\"id_responsable\"=>$_POST['idResponsable'],\n\t\t\t\t\t\t\t\"proveedor\"=>$datos[0],\n\t\t\t\t\t\t\t\"transaccion\"=>$codigoEntr,\"referencia\"=>$datos[1],\n\t\t\t\t\t\t\"fecha\"=>$fecha,\n\t\n\t\t\t\t\t\t\"fecha_vencimiento\"=>$fecha_vencimiento,\n\t\t\t\t\t\t\"forma_cobro\"=>$datos[4],\n\t\t\t\t\t\t\"descripcion\"=>$datos[7],\n\t\t\t\t\t\t];\n\t\t\t\t\t\techo '\n\t\t\t\t\t\tId responsabe:&nbsp\n\t\t\t\t\t\t<input class=\"col-xs-* id_responsableImportar\" type=\"text\" value=\"'.$datos1['id_responsable'].'\" readonly>&nbsp &nbsp\n\t\t\t\t\t\tCodigo proveedor: &nbsp\n\t\t\t\t\t\t<input class=\"col-xs-* id_proveedorImportar\" type=\"text\" value=\"'.$datos1['proveedor'].'\" readonly>&nbsp &nbsp\n\t\t\t\t\t\t\n\t\t\t\t\t\tTransaccion: &nbsp';\n\t\t\t\t\t\tif ($datos1['transaccion']==0) {\n\t\t\t\t\t\t\techo '<input class=\"col-xs-* codigoImportar\" type=\"text\" value=\"1\" readonly>&nbsp &nbsp<p></p>';\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\techo '<input class=\"col-xs-* codigoImportar\" type=\"text\" value=\"'.$datos1['transaccion'].'\" readonly>&nbsp &nbsp<p></p>';\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\techo '\n\t\t\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t\t \n\t\t\t\t\t\t<div class=\"input-group\">\n\t\t\t\t\t \n\t\t\t\t\t <span>Tipo de comprobante</span> \n\t\t\n\t\t\t\t\t <select class=\"id_documentoImportar\" name=\"nuevoComprobante\" required>\n\t\t\t\t\t\t';\n\t\t\n\t\t\t\t\t\t\n\t\t\n\t\t\t\t\t\t$item = 'estado';\n\t\t\t\t\t\t$valor = 1;\n\t\t\n\t\t\t\t\t\t$comprobantes = ControladorComprobantes::ctrMostrarComprobantesHabilitados($item, $valor);\n\t\t\n\t\t\t\t\t\tforeach ($comprobantes as $key => $value) {\n\t\t\t\t\t\t \n\t\t\t\t\t\t echo '<option value=\"'.$value[\"id\"].'\">'.$value[\"codigo\"].' '.$value[\"nombre\"].'</option>';\n\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\n\t\t\n\t\t\t\t\t echo ' </select>\n\t\t\n\t\t\t\t\t\n\t\t\n\t\t\n\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\n\t\t\t\t </div>\n\t\t\t\t\t\t<p></p>\n\t\t\t\t\t\tEstablecimiento:&nbsp\n\t\t\t\t\t\t<input class=\"col-xs-* establecimientoImportar\" type=\"text\" maxlength=\"3\" placeholder=\"Establecimiento\">&nbsp &nbsp\n\t\t\t\t\t\tPunto de emision:&nbsp\n\t\t\t\t\t\t<input class=\"col-xs-* puntoImportar\" type=\"text\" maxlength=\"3\" placeholder=\"Punto de emision\">&nbsp &nbsp\n\t\t\t\t\t\tReferencia:&nbsp\n\t\t\t\t\t\t<input class=\"col-xs-* secuenciaImportar\" type=\"text\" value=\"'.$datos1['referencia'].'\" readonly>&nbsp &nbsp\n\t\t\t\t\t\tReferenciaComprobante:&nbsp\n\t\t\t\t\t\t<input class=\"col-xs-* secuenciaComprobante\" type=\"text\" value=\"'.str_pad($datos1['referencia'], 9, \"0\", STR_PAD_LEFT).'\" readonly>&nbsp &nbsp<p></p>\n\t\t\t\t\t\tForma de cobro: &nbsp\n\t\t\t\t\t\t<input class=\"col-xs-* forma_cobroImportar\" type=\"text\" value=\"'.$datos1['forma_cobro'].'\" readonly>&nbsp &nbsp\n\t\t\t\t\t\tDescripcion: &nbsp\n\t\t\t\t\t\t<input class=\"col-xs-* descripcionImportar\" type=\"text\" value=\"Entrada\">&nbsp &nbsp\n\t\t\t\t\t\tfecha_emision:&nbsp\n\t\t\t\t\t\t<input class=\"col-xs-* fechaImportar\" type=\"text\" value=\"'.$datos1['fecha'].'\" readonly>&nbsp &nbsp<p></p>\n\t\t\t\t\t\tFecha vencimiento:&nbsp\n\t\t\t\t\t\t<input class=\"col-xs-* fecha_vencimientoImportar\" type=\"text\" value=\"'.$datos1['fecha_vencimiento'].'\" readonly>&nbsp &nbsp\n\t\t\t\t\t\t<p></p>';\n\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\n\n\t\t\t\t\t$listaProductos='\n\t\t\t\t\t<br>\n\t\t\t\t\t\t<input class=\"col-xs-* idEntradaImporte\" type=\"text\" value=\"'.$datos2['id'].'\" readonly>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<input class=\"col-xs-* codigoEntradaImporte\" type=\"text\" value=\"'.$datos2['codigo'].'\" readonly>\n\n\t\t\t\t\t\t<input class=\"col-xs-* descripcionEntradaImporte\" type=\"text\" value=\"'.$datos2['descripcion'].'\" readonly>\n\n\t\t\t\t\t\t<input class=\"col-xs-* cantidadEntradaImporte\" type=\"text\" value=\"'.$datos2['cantidad'].'\" readonly>\n\n\t\t\t\t\t\t<input class=\"col-xs-* impuestoEntradaImporte\" type=\"text\" value=\"'.$datos2['valorimpuesto'].'\" readonly>\n\t\t\t\t\t\t<input class=\"col-xs-* impuestoImporte\" type=\"text\" value=\"'.$datos2['impuesto'].'\" readonly>\n\t\t\t\t\t\t<input class=\"col-xs-* impuestoValorTotal\" type=\"text\" value=\"'.$datos2['totalimpuesto'].'\" readonly>\n\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t<input class=\"col-xs-* precioImporte\" type=\"text\" value=\"'.$datos2['precio'].'\" readonly>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<input class=\"col-xs-* valorUnitarioImporte\" type=\"text\" value=\"'.$datos2['valorUnitario'].'\" readonly>';\n\n\t\t\t\t\t\techo $listaProductos;\n\n\t\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\t}\n\n\n\t\t\t}else {\n\t\t\t\t\n\t\t\t\techo '<br>No existe una copia';\n\t\t\t}\t\t\n\t\t\t\n\t\t}\n\n\t\techo '<p></p><label class=\"subtotal\">Subtotal:</label>&nbsp&nbsp&nbsp <input class=\"col-xs-* subtotalImportar\" type=\"text\" readonly><br>\n\t\t\t\t\t\t<label class=\"impuesto\">Impuesto:</label>&nbsp&nbsp<input class=\"col-xs-* impuestoImportar\" type=\"text\" readonly><br>\n\t\t\t\t\t\t<label class=\"total\">Total:</label>\n\t\t\t\t\t\t&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp <input class=\"col-xs-* totalImportar\" type=\"text\" readonly>';\n\n\t\n\n\t\t\t\n\t}", "title": "" }, { "docid": "7e711e38c7b03a991c6d80cd5b96764a", "score": "0.55529875", "text": "private function preparaDadosContribuinte(DBLayoutLinha $oLinha, $oContador) {\n\n if (trim($oLinha->inscricao_municipal) == '') {\n throw new Exception('Informe a Inscrição Municipal da Empresa.');\n } else {\n\n $oEmpresa = new Empresa($oLinha->inscricao_municipal);\n\n // Verifica se a empresa está ativa\n if (!$oEmpresa->isAtiva()) {\n throw new Exception(\"A Empresa com inscrição municipal \\\"{$oLinha->inscricao_municipal}\\\" não está ativa.\");\n }\n\n if (!empty($oContador->iNumeroCgm)) {\n\n // Verifica se o contibuinte está vinculado ao escritório\n $lVinculado = EscritorioContabil::getInscricaoVinculadaEscritorio($oContador->iNumeroCgm,\n $oLinha->inscricao_municipal);\n if (!$lVinculado) {\n\n $sMensagemErro = \"O Contribuinte com inscrição \\\"{$oLinha->inscricao_municipal}\\\" não \";\n $sMensagemErro .= \"está vinculado ao escritório.\";\n\n throw new Exception($sMensagemErro);\n }\n } else {\n\n if ($oLinha->inscricao_municipal != $this->iInscricaoMunicipalContribuinte) {\n throw new Exception(\"Não é permitido importar documentos do contribuinte informado no arquivo.\");\n }\n }\n }\n\n if (strlen(trim($oLinha->cpf_cnpj)) < 11) {\n throw new Exception('Informe o CPF/CNPF da Empresa.');\n }\n\n if (trim($oLinha->mes_competencia) == '') {\n throw new Exception('Mês de Competência não informado.');\n }\n\n if (trim($oLinha->ano_competencia) == '') {\n throw new Exception('Ano de Competência não informado.');\n }\n\n $oDadosContribuinte->iCgmEmpresa = trim($oEmpresa->getCgmEmpresa()->getCodigo());\n $oDadosContribuinte->sCpfCnpj = trim($oLinha->cpf_cnpj);\n $oDadosContribuinte->iInscricaoMunicipal = trim($oEmpresa->getInscricao());\n $oDadosContribuinte->sNomeRazaoSocial = trim($oLinha->nome_razao_social);\n $oDadosContribuinte->iMesCompetencia = trim($oLinha->mes_competencia);\n $oDadosContribuinte->iAnoCompetencia = trim($oLinha->ano_competencia);\n\n return $oDadosContribuinte;\n }", "title": "" }, { "docid": "b87d8a86444da5ffb36aacbfa1ee64ad", "score": "0.5542301", "text": "public function setImporto($importo)\n {\n $this->importo = $importo;\n\n return $this;\n }", "title": "" }, { "docid": "1d64fd5cf102b0dcc63791328c4ef45e", "score": "0.55251205", "text": "function borraMaterialsImportados()\n{\n pintaln(\"Borrando materials importados de documentos_adjuntos si los hubiese\",\"azul\");\n $lista_adjuntos = creaListaAdjuntos();\n foreach ($lista_adjuntos as $mm_id => $array_adjuntos){\n foreach ($array_adjuntos as $url => $descripcion){\n if (UnedDesbrozatorHardcoded::checkExtensionErronea($url)){\n pintaln(\"Material erróneo no importado, saltando el borrado \" . $url,\"gris\",4);\n } else {\n borraMaterial($mm_id, $url);\n } \n }\n }\n\n pintaln(\"Borrando materials importados de subtitulos si los hubiese\",\"azul\");\n $lista_subtitulos = creaListaSubtitulos();\n foreach ($lista_subtitulos as $mm_id => $url){\n borraMaterial($mm_id, $url); \n }\n}", "title": "" }, { "docid": "587affbf1a757d81fde46f41840de9c7", "score": "0.5522277", "text": "function importar($filename) {\n \t\n\t\t// open the file\n \t\t$handle = fopen($filename, \"r\");\n \t\t// read the 1st row as headings\n \t\t$header = fgetcsv($handle);\n\n\t\t// create a message container\n\t\t$return = array(\n\t\t\t'messages' => array(),\n\t\t\t'errors' => array(),\n\t\t);\n\n $nuevo_afiliado = array();\n\t\t\n\t\t\n\t\t$i = 0;\n\t\t$cantidad_afiliados = 0;\n while ( ($row = fgetcsv($handle) ) !== FALSE ) {\t\t\t\n \tif ( $i > -1 ) { \t\t\n\t\t\t\t$dosep = array();\n\t\t\t\t$dosep[\"numeroDoc\"] = $row[0];\n\t\t\t\t$dosep[\"Genero\"] = $row[1];\n\t\t\t\t$dosep[\"ApellidoNombre\"] = $row[2];\n\t\t\t\t$dosep[\"fechaNacimientoPers\"] = $row[3];\n\t\t\t\t$dosep[\"tipoRelacion\"] = $row[4];\n\t\t\t\t$dosep[\"localidad\"] = $row[5];\n\t\t\t\t$dosep[\"Empleador\"] = $row[6];\n\t\t\t\t$dosep[\"Plan\"] = $row[7];\n\t\t\t\techo \"<br>\";\n\t\t\t\tprint_r( $row);\n echo \"<br>\";\n\t\t\t\tprint_r( $dosep);\n\t\t\t\techo \"<br>\";\t\t\t\t\t \n\t\t\t\t$this->create();\n\t\t\t\t$this->save( $dosep );\n\t\t\t}\t\n \t$cantidad_afiliados++;\n\t\t}\n \t\tfclose($handle);\n\n \t\t// return the messages\n \t\treturn $cantidad_afiliados;\n\n\t \n\t \n\t \n\t}", "title": "" }, { "docid": "1ee82b6fd5d608f6b87a60a17c2a3a9c", "score": "0.5496542", "text": "function compruebaImportaCsv($fuerza_borrado_uned_media_old = false)\n{\n if ($fuerza_borrado_uned_media_old){\n borraTablasAPelo(array('uned_media_old'), true);\n }\n \n $umo_count = UnedMediaOldPeer::doCount(new Criteria());\n if (0 == $umo_count) {\n pintaln(\"Tabla uned_media_old vacía - importando todos los ficheros .csv desde \" . \n IMPORT_CSV_FOLDER, \"azul\");\n $csv_files = glob(IMPORT_CSV_FOLDER . '/*.csv');\n\n if (0 === count($csv_files)){\n throw new Exception (\"No se encuentran ficheros ?.csv en \" . IMPORT_CSV_FOLDER); \n }\n\n foreach ($csv_files as $csv_file){\n pintaln(\"Procesando fichero \" . $csv_file, \"azul\");\n parseCsv($csv_file);\n }\n } else{\n pintaln(\"Tabla uned_media_old poblada con importados\", \"azul\", 1);\n reseteaUmoMmId();\n }\n}", "title": "" }, { "docid": "f6933cb1f3683182a64769bff0ecd24d", "score": "0.5485215", "text": "public static function importar($archivo, $formato)\r\n {\r\n $importacion = true; // inicializamos a true la variable\r\n $fechaActual = date('Ymd'); // variable que almacena formateada la fecha actual\r\n $sentenciaSQL = \"Insert into T02_Departamento values (?, ?, ?, ?, ?)\";\r\n\r\n switch ($formato) {\r\n case 'text/xml':\r\n move_uploaded_file($archivo, './tmp/' . $fechaActual . 'importacion.xml'); // guarda en el directorio el fichero subido \r\n $documentoXML = new DOMDocument(\"1.0\", \"utf-8\"); // creo el objeto de tipo DOMDocument que recibe 2 parametros: la version y la codificacion del XML que queremos crear\r\n $documentoXML->load('./tmp/' . $fechaActual . 'importacion.xml');\r\n\r\n $nDepartamentos = $documentoXML->getElementsByTagName('Departamento')->length; // obtiene cuantos departamentos hay en el fichero\r\n if ($nDepartamentos != 0) { // si hay algun fichero\r\n for ($nDepartamento = 0; $nDepartamento < $nDepartamentos && $importacion; $nDepartamento++) { // recorro los departamentos\r\n // por cada departamento del documento obtengo los diferentes campos y almacenamos en cada variable el valor del campo del departamento que indica $nDepartamento\r\n $codDepartamento = $documentoXML->getElementsByTagName(\"CodDepartamento\")->item($nDepartamento)->nodeValue;\r\n $descDepartamento = $documentoXML->getElementsByTagName(\"DescDepartamento\")->item($nDepartamento)->nodeValue;\r\n $fechaCreacionDepartamento = $documentoXML->getElementsByTagName(\"FechaCreacionDepartamento\")->item($nDepartamento)->nodeValue;\r\n $volumenNegocio = $documentoXML->getElementsByTagName(\"VolumenNegocio\")->item($nDepartamento)->nodeValue;\r\n $fechaBajaDepartamento = $documentoXML->getElementsByTagName(\"FechaBajaDepartamento\")->item($nDepartamento)->nodeValue;\r\n\r\n\r\n if (!self::validarCodNoExiste($codDepartamento)) { // si existe el departamento\r\n self::bajaFisicaDepartamento($codDepartamento); // elimina el departamento\r\n }\r\n\r\n if (empty($fechaBajaDepartamento)) { // si la fecha de baja esta vacia\r\n $fechaBajaDepartamento = null; // establece el parametro fecha de baja a null\r\n }\r\n\r\n\r\n $parametros = [$codDepartamento, $descDepartamento, $fechaCreacionDepartamento, $volumenNegocio, $fechaBajaDepartamento];\r\n\r\n if (!DBPDO::ejecutarConsulta($sentenciaSQL, $parametros)) { //Ejecutamos la consulta con los parámetros\r\n $importacion = false;\r\n exit;\r\n }\r\n }\r\n } else {\r\n $importacion = false;\r\n }\r\n break;\r\n\r\n case 'application/json':\r\n move_uploaded_file($archivo, './tmp/' . $fechaActual . 'importacion.json'); // guarda en el directorio el fichero subido \r\n\r\n $archivoJSON = file_get_contents(\"./tmp/\" . $fechaActual . \"importacion.json\"); // coge el contenido del archivo json\r\n $aJSON = json_decode($archivoJSON); // decodifica el fichero json\r\n if ($aJSON) {\r\n for ($nDepartamento = 0; $nDepartamento < count($aJSON) && $importacion; $nDepartamento++) { // recorro los departamentos del fichero\r\n\r\n $parametros = [ // alamcenamos los datos del departamento actual\r\n $aJSON[$nDepartamento]->CodDepartamento,\r\n $aJSON[$nDepartamento]->DescDepartamento,\r\n $aJSON[$nDepartamento]->FechaCreacionDepartamento,\r\n $aJSON[$nDepartamento]->VolumenNegocio,\r\n $aJSON[$nDepartamento]->FechaBajaDepartamento\r\n ];\r\n\r\n if (!self::validarCodNoExiste($parametros[0])) { // si existe el departamento\r\n self::bajaFisicaDepartamento($parametros[0]); // elimina el departamento\r\n }\r\n\r\n if (!DBPDO::ejecutarConsulta($sentenciaSQL, $parametros)) { //Ejecutamos la consulta con los parámetros\r\n $importacion = false;\r\n }\r\n }\r\n } else {\r\n $importacion = false;\r\n }\r\n break;\r\n\r\n case 'application/vnd.ms-excel':\r\n move_uploaded_file($archivo, './tmp/' . $fechaActual . 'importacion.csv'); // guarda en el directorio el fichero subido \r\n\r\n if (($puntero = fopen(\"./tmp/\" . $fechaActual . \"importacion.csv\", \"r\"))) { // abre el puntero en modo lectura\r\n while (($departamento = fgetcsv($puntero))) { // va recorriendo las lineas del fichero csv\r\n $parametros = [\r\n $departamento[0], // T02_CodDepartamento\r\n $departamento[1], // T02_DescDepartamento\r\n $departamento[2], // T02_FechaCreacionDepartamento\r\n $departamento[3], // T02_VolumenNegocio\r\n $departamento[4] // T02_FechaBajaDepartamento\r\n ];\r\n\r\n if (!self::validarCodNoExiste($parametros[0])) { // si el departamento existe\r\n self::bajaFisicaDepartamento($parametros[0]); // borramos el departamento\r\n }\r\n\r\n if (empty($parametros[4])) { // si la fecha de baja esta vacia\r\n $parametros[4] = null; // establece el parametro fecha de baja a null\r\n }\r\n\r\n if (!DBPDO::ejecutarConsulta($sentenciaSQL, $parametros)) { //Ejecutamos la consulta con los parámetros\r\n $importacion = false;\r\n }\r\n }\r\n return fclose($puntero); // cierra el puntero\r\n } else {\r\n $importacion = false;\r\n }\r\n break;\r\n }\r\n\r\n return $importacion;\r\n }", "title": "" }, { "docid": "f909cecf83dc3ef4c8025c00cfd29f63", "score": "0.54669684", "text": "function import($lib)\n\t{\n\t\t//capturador de error\n\t\ttry \n\t\t{\n\t\t\t//detectando si es un string\n\t\t\tif (gettype($lib) == 'string') {\n\t\t\t\t//importando y verificando si se importo la libreria\n\t\t\t\tif (!include_once($lib)) {\n\t\t\t\t\t//enviando una exepcion con un mensaje de error\n\t\t\t\t\tthrow new Exception('Ha ocurrido un error a la hora de imprtar la libreria ' . $lib);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//detectando si es un array\n\t\t\telseif (gettype($lib) == 'array') {\n\t\t\t\t//recorriendo el array\n\t\t\t\tforeach ($lib as $key => $value) {\n\t\t\t\t\t//detectando si es un string\n\t\t\t\t\tif (gettype($value) !== 'string') {\n\t\t\t\t\t\t//enviando una exepcion con un mensaje de error\n\t\t\t\t\t\tthrow new Exception('Estas tratando de importar un archivo incorrecto ' . $value);\n\t\t\t\t\t}\n\t\t\t\t\t//importando y verificando si se importo la libreria\n\t\t\t\t\telseif (!include_once($value)) {\n\t\t\t\t\t\t//enviando una exepcion con un mensaje de error\n\t\t\t\t\t\tthrow new Exception('Ha ocurrido un error a la hora de importar la libreria ' . $value);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//si el tipo de dato no es array y tampoco string envia un error\n\t\t\t\tthrow new Exception('Estas tratando de importar un archivo incorrecto ' . $value);\n\t\t\t}\t\t\t\n\t\t} \n\t\tcatch (Exception $e)\n\t\t{\n\t\t\t//mostrando el error capturado en pantallas\n\t\t\techo '<br><b>Error de Import: ', $e->getMessage(), \"\\n</b>\";\n\t\t}\n\t}", "title": "" }, { "docid": "5c92b4dcbcf45da77fb9c81241f0c714", "score": "0.5457888", "text": "public function import_rune_data(){\n\n\n }", "title": "" }, { "docid": "b1af036b142cbe0c9cdb5b93ffdaab18", "score": "0.5451795", "text": "function lista_notas(){\n if(file_exists(\"notas.txt\")){\n\n //abrir o arquivo para leitura\n $arq = fopen(\"notas.txt\", \"r\");\n\n //gerar tabela\n echo\"<table border=\\\"1\\\">\";\n echo\"<thead>\n <tr>\n <th>Nome</th>\n <th>Prova 1</th>\n <th>Prova 2</th>\n <th>Media</th>\n </tr>\n </thead>\";\n echo\"<tbody>\";\n while(!feof($arq)){\n $nome = fgets($arq); \n $nota1 = fgets($arq); \n $nota1 = floatval($nota1);\n $nota2 = fgets($arq); \n $nota2 = floatval($nota2);\n $media = ($nota1+$nota2)/2;\n if(!empty($nome))\n { // evita imprimir linha vazia na tabela devido o \\n\n echo\"\n <tr>\t\n <td>$nome</td>\n <td>$nota1</td>\n <td>$nota2</td>\n <td>$media</td>\n </tr>\";\n }\n }\n\n\n echo\"</tbody>\";\n echo\"</table\";\n \n fclose($arq);\n \n\n }\n else{\n echo\"Nenhuma nota inserida!\";\n }\n\n\n\n}", "title": "" }, { "docid": "debb0844bcc31de8e40503df8ab9456b", "score": "0.5432068", "text": "public function import(){\n\t\tinclude APPPATH.'third_party/PHPExcel/PHPExcel.php';\n\t\t\n\t\t$excelreader = new PHPExcel_Reader_Excel2007();\n\t\t$loadexcel = $excelreader->load('excel/'.$this->filename.'.xlsx'); // Load file yang telah diupload ke folder excel\n\t\t$sheet = $loadexcel->getActiveSheet()->toArray(null, true, true ,true);\n\t\t\n\t\t// Buat sebuah variabel array untuk menampung array data yg akan kita insert ke database\n\t\t$data = array();\n\t\t\n\t\t$numrow = 1;\n\t\tforeach($sheet as $row){\n\t\t\t// Cek $numrow apakah lebih dari 1\n\t\t\t// Artinya karena baris pertama adalah nama-nama kolom\n\t\t\t// Jadi dilewat saja, tidak usah diimport\n\t\t\tif($numrow > 1){\n\t\t\t\t// Kita push (add) array data ke variabel data\n\t\t\t\tarray_push($data, array(\n\t\t\t\t\t'fk_lokasi'=>$row['A'],\n\t\t\t\t\t'produksi'=>$row['B'], \n\t\t\t\t\t'luas_panen'=>$row['C'], \n\t\t\t\t\t'produktivitas'=>$row['D'],\n\t\t\t\t\t'tahun'=>$row['E'],\n\t\t\t\t));\n\t\t\t}\n\t\t\t\n\t\t\t$numrow++; // Tambah 1 setiap kali looping\n\t\t}\n\n\t\t// Panggil fungsi insert_multiple yg telah kita buat sebelumnya di model\n\t\t$this->Admin_model->insert_multiple($data);\n\t\t\n\t\tredirect(\"Admin/kelola_jagung\"); // Redirect ke halaman awal (ke controller siswa fungsi index)\n\t}", "title": "" }, { "docid": "d64ad9f7e5cf8932bf63d9fe06920be1", "score": "0.54297894", "text": "function importer_stgilles() {\n include_spip('action/editer_objet');\n\n // On va sélécitonner toutes les adresses mail de newsletter\n $emails = sql_allfetsel('id_mailsubscriber, email', 'spip_mailsubscribers');\n\n // Ensuite on va aller chercher les champs extra qui corresponde dans la table auteur\n\n $champ_auteur = array(\n 'a_pren',\n 'a_genre',\n 'a_tel',\n 'a_org',\n 'a_rec',\n 'a_rue',\n 'a_num',\n 'a_postal',\n 'a_ville',\n 'a_cla'\n );\n foreach ($emails as $email) {\n // On récupère l'auteur en fonction de son adresse mail\n $auteur = sql_allfetsel($champ_auteur, 'spip_auteurs', 'email='.sql_quote($email['email']));\n\n // On envoie les donnée dans le mailsuscribers\n objet_modifier('mailsubscriber', $email['id_mailsubscriber'], $auteur[0]);\n }\n}", "title": "" }, { "docid": "6821d0548d69da29b4f993d356f342e5", "score": "0.54293823", "text": "private function processarEstrutura() {\n\n /**\n * verificar se existe o esquema o nome informado\n */\n $sSqlVerificaSchema = \"select j142_sequencial from atualizacaoiptuschema where j142_schema = '{$this->nomeImportacao}'\";\n $rsSchema = db_query($sSqlVerificaSchema);\n\n if (!$rsSchema) {\n throw new \\Exception(\"Não foi possivel importar os arquivos!\");\n }\n\n\n if (pg_num_rows($rsSchema) > 0) {\n\n $oDaoAtualizacaoiptuschemaarquivo = new \\cl_atualizacaoiptuschemaarquivo();\n $this->iCodigoSchema = \\db_utils::fieldsMemory($rsSchema,0)->j142_sequencial;\n\n foreach ($this->aArquivosImportados as $sArquivo) {\n\n $sWhere = \" j143_arquivo = '{$sArquivo}' and j143_atualizacaoiptuschema = {$this->iCodigoSchema} \";\n $sSqlAtualizacao = $oDaoAtualizacaoiptuschemaarquivo->sql_query_file(null, 'j143_sequencial', null, $sWhere);\n $rsAtualizacao = db_query($sSqlAtualizacao);\n\n if (!$rsAtualizacao) {\n throw new \\DBException('Erro ao buscar arquivos importados.');\n }\n\n if (pg_num_rows($rsAtualizacao) > 0) {\n\n $iCodigoSchemaArquivo = \\db_utils::fieldsMemory($rsAtualizacao,0)->j143_sequencial;\n $oDaoAtualizacaoiptuschemaarquivo->j143_sequencial = $iCodigoSchemaArquivo;\n $oDaoAtualizacaoiptuschemaarquivo->j143_dataimportacao = date(\"Y-m-d\");\n $oDaoAtualizacaoiptuschemaarquivo->j143_arquivo = $sArquivo;\n $oDaoAtualizacaoiptuschemaarquivo->j143_atualizacaoiptuschema = $this->iCodigoSchema;\n $oDaoAtualizacaoiptuschemaarquivo->alterar();\n\n if ($oDaoAtualizacaoiptuschemaarquivo->erro_status == '0') {\n throw new \\DBException(\"Erro ao atualizar o arquivo.\");\n }\n\n continue;\n }\n\n $oDaoAtualizacaoiptuschemaarquivo->j143_sequencial = null;\n $oDaoAtualizacaoiptuschemaarquivo->j143_arquivo = $sArquivo;\n $oDaoAtualizacaoiptuschemaarquivo->j143_dataimportacao = date(\"Y-m-d\");\n $oDaoAtualizacaoiptuschemaarquivo->j143_atualizacaoiptuschema = $this->iCodigoSchema;\n $oDaoAtualizacaoiptuschemaarquivo->incluir();\n\n if ($oDaoAtualizacaoiptuschemaarquivo->erro_status == '0') {\n throw new \\DBException(\"Erro ao cadastrar nome do arquivo.\");\n }\n\n }\n return true;\n }\n\n $rsNovoSchema = db_query(\"CREATE SCHEMA {$this->nomeImportacao};\");\n\n if (!$rsNovoSchema) {\n throw new \\Exception(\"Erro ao criar novo Schema\");\n }\n\n $aTabelasParaDuplicar = json_decode(file_get_contents('config/configuracaoTabelasRecadastramentoIptu.json'));\n $this->processaTabelas($aTabelasParaDuplicar);\n\n\n $oDaoAtualizacaoiptuschema = new \\cl_atualizacaoiptuschema();\n $oDaoAtualizacaoiptuschema->j142_schema = $this->nomeImportacao;\n $oDaoAtualizacaoiptuschema->j142_dataarquivo = $this->oDataArquivo->getDate();\n $oDaoAtualizacaoiptuschema->incluir();\n\n if ($oDaoAtualizacaoiptuschema->erro_status == '0') {\n throw new \\DBException(\"Erro ao cadastrar nome da atualização.\");\n }\n $this->iCodigoSchema = $oDaoAtualizacaoiptuschema->j142_sequencial;\n $oDaoAtualizacaoiptuschemaarquivo = new \\cl_atualizacaoiptuschemaarquivo();\n\n foreach ($this->aArquivosImportados as $sArquivo) {\n\n $oDaoAtualizacaoiptuschemaarquivo->j143_sequencial = null;\n $oDaoAtualizacaoiptuschemaarquivo->j143_arquivo = $sArquivo;\n $oDaoAtualizacaoiptuschemaarquivo->j143_dataimportacao = date(\"Y-m-d\");\n $oDaoAtualizacaoiptuschemaarquivo->j143_atualizacaoiptuschema = $this->iCodigoSchema;\n $oDaoAtualizacaoiptuschemaarquivo->incluir();\n\n if ($oDaoAtualizacaoiptuschemaarquivo->erro_status == '0') {\n throw new \\DBException(\"Erro ao cadastrar nome do arquivo.\");\n }\n\n }\n\n return true;\n }", "title": "" }, { "docid": "fc6847ee076242a5de279c6cef636ccf", "score": "0.5424831", "text": "function _import($ar=NULL){\n $p=new XParam($ar,NULL);\n $file=$p->get('file');\n $limit=$p->get('limit');\n $xmlstring=$p->get('xmlstring');\n if(!empty($xmlstring)) $sxml=$xmlstring;\n else $sxml=file_get_contents($file);\n $idlist=array();\n $dom = new DOMDocument();\n $dom->preserveWhiteSpace=false;\n $dom->validateOnParse = true;\n $dom->loadXML($sxml);\n $this->xpath=new DOMXpath($dom);\n $this->xpath->registerNamespace('dc','http://purl.org/dc/elements/1.1/');\n $this->xpath->registerNamespace('dcterms', 'http://purl.org/dc/terms/');\n if(!empty($this->NSURI)){\n $this->xpath->registerNamespace('tzrns',$this->NSURI);\n $this->tzrns='tzrns:';\n }else{\n $this->tzrns='';\n }\n\n $this->prepareParam();\n $ois=$this->xpath->query('/'.$this->tzrns.'OI');\n if($ois->length==0)\n $ois=$this->xpath->query('/ListeOI/'.$this->tzrns.'OI');\n foreach($ois as $i => $oi){\n $oiddc=$this->importDC($oi); // DublinCore\n XLogs::notice('ModTif::_import', \"import $oiddc\");\n if(!empty($oiddc)){\n\t$this->oiddc=$oiddc;\n\t$this->importMultimedia($oi,$oiddc);\t // Multimédia\n\t$this->importContacts($oi,$oiddc); \t // Contacts (Adresses - Personnes - Moyens de communications)\n\t$this->importStructuresGestion($oi,$oiddc); \t// Structures gestion (Contacts)\n\t$this->importStructuresInformation($oi,$oiddc); // Structures information (Contacts)\n\t$this->importInfosLegales($oi,$oiddc);\t // Informations légales\n\t$this->importClassements($oi,$oiddc);\t // Classements\n\t$this->importGeolocs($oi,$oiddc);\t // Geolocalisation (Zones - Points - Coords - Envs - Cartes - Acces - Multimédia)\n\t$this->importPeriodes($oi,$oiddc);\t // Periodes (Dates - Details jours - Jours - Horaires)\n\t$this->importClienteles($oi,$oiddc);\t // Clientèles (Details client)\n\t$this->importUsages($oi,$oiddc);\t // Usages/Langues\n\t$this->importModesResa($oi,$oiddc);\t // Modes de réservation\n\t$this->importCapacites($oi,$oiddc);\t // Capacités\n\t$this->importOffresPresta($oi,$oiddc);\t // Offres de prestation (Prestations)\n\t$this->importTarifs($oi,$oiddc);\t // Tarifs et modes de paiement\n\t$this->importDescrComp($oi,$oiddc);\t // Descriptions complémentaires\n\t$this->importItineraires($oi,$oiddc);\t // Itinéraires\n\t$this->importPlannings($oi,$oiddc);\t // Plannings (Presta planning - Jour planning)\n\t$this->importPresationsLiees($oi,$oiddc);\t// Prestations liées\n\t$this->importOther($oi,$oiddc);\t // Fonction à personnaliser\n\tif(!empty($limit) && $limit<=$i) break;\n }\n }\n unset($dom,$xmlstring,$sxml,$ois);\n }", "title": "" }, { "docid": "f6f692c608f1d384d30424f03c97efa3", "score": "0.54108727", "text": "public function import(Request $request) \n {\n //Validasi tipe data\n $this->validate($request, [\n 'file' => 'required|mimes:csv,xls,xlsx,ods'\n ]);\n //Ambil file yang terupload\n $file = $request->file('file'); \n //buat nama file sembarang\n $nama_file = rand().$file->getClientOriginalName();\n // menaruh fil di folder public\n $file->move('uploads',$nama_file);\n //mengimport ke database\n Excel::import(new NisbisImport, public_path('/uploads/'.$nama_file));\n \\Alert::success(trans('backpack::crud.insert_success'))->flash();\n return redirect('/admin/nisbi')->with('success', 'Data berhasil terimport!');\n }", "title": "" }, { "docid": "0be5399482dcde99aabfd3cc31583e2f", "score": "0.54087955", "text": "public function InsLineaPedido($datoslinped) {\n $this->db->insert('linea_pedido', $datoslinped); \n }", "title": "" }, { "docid": "aa3ebff259baeacc29ef94e505b78c83", "score": "0.53799963", "text": "function load_joined($condicion)\n {\n if ($this->load($condicion))\n {\n $linea_entidad = new linea_titulacion();\n $this->entidades = $linea_entidad->Find_entidades(\"id_linea = $this->id_linea\");\n return true;\n }\n else\n {\n return false;\n }\n }", "title": "" }, { "docid": "5fb0b2c7e31e0be0ff18f32097d55828", "score": "0.5364964", "text": "public function __construct() {\n\t\t$conf = ConfigFramework::getConfig();\n\t\t$g_dsn = $conf->getDSN('g_dsn');\n\n\t\t$nombreTablas= array('linea_pedido');\n\t\tparent::__construct($g_dsn, $nombreTablas);\n\n\n\n\t\t/************************ QUERYs ************************/\n\t\t\n\t\t//Consulta del modo de trabajo LIS\n\t\t$str_select = \"SELECT idpedido as \\\"lis_idpedido\\\", idarticulo as \\\"lis_idarticulo\\\", nombre as \\\"lis_nombre\\\",unidad as \\\"lis_unidad\\\", precio as \\\"lis_precio\\\", precioTotal as \\\"lis_precioTotal\\\" FROM linea_pedido NATURAL JOIN articulo\";\n\t\t$this->setSelectForSearchQuery($str_select);\n\n\t\t//Where del modo de trabajo LIS\n\t\t//$str_where = \"\";\n\t\t//$this->setWhereForSearchQuery($str_where);\n\n\t\t//Order del modo de trabajo LIS\n\t\t$this->setOrderByForSearchQuery('1');\n\n\t\t/************************ END QUERYs ************************/\n\t\t\n\n\n\t\t/************************ MATCHINGs ************************/\n\n\t\t//Seccion de matching: asociacion campos TPL y campos BD\n\t\t$this->addMatching(\"lis_idpedido\", \"idpedido\", \"linea_pedido\");\n\t\t$this->addMatching(\"lis_idarticulo\", \"idarticulo\", \"linea_pedido\");\n\t\t$this->addMatching(\"lis_unidad\", \"unidad\", \"linea_pedido\");\n\t\t$this->addMatching(\"lis_precio\", \"precio\", \"linea_pedido\");\n\t\t$this->addMatching(\"lis_precioTotal\", \"precioTotal\", \"linea_pedido\");\n\n\t\t/************************ END MATCHINGs ************************/\n\n\n\t\t/************************ TYPEs ************************/\n\t\n\t\t//Fechas: gvHidraDate type\n\n\t\t//Strings: gvHidraString type\n\n\t\t//Integers: gvHidraInteger type\n\t\t$int = new gvHidraInteger(false, 4);\n\t\t$this->addFieldType('lis_idpedido',$int);\n\t\t\n\t\t$int = new gvHidraInteger(false, 4);\n\t\t$this->addFieldType('lis_idarticulo',$int);\n\t\t\n\t\t$int = new gvHidraInteger(false, 4);\n\t\t$this->addFieldType('lis_unidad',$int);\n\t\t\n\n\t\t//Floats: gvHidraFloat type\n\t\t$float = new gvHidraFloat(false, 7);\n\t\t$float->setFloatLength(2);\n\t\t$this->addFieldType('lis_precio',$float);\n\t\t\n\t\t$float = new gvHidraFloat(false, 7);\n\t\t$float->setFloatLength(2);\n\t\t$this->addFieldType('lis_precioTotal',$float);\n\t\t\n\n\t\t/************************ END TYPEs ************************/\n\t\t\t\t\n\t\t/************************ COMPONENTS ************************/\n\t\t\n\t\t//Declaracion de Listas y WindowSelection\n\t\t//La definición debe estar en el AppMainWindow.php\n\n\t\t/************************ END COMPONENTS ************************/\t\t\t\t\t\t\n\t\t\n\t\t//Asociamos con la clase maestro\n\t\t$this->addMaster(\"PedidoMaestro\");\n\t\t\n\t}", "title": "" }, { "docid": "862a753d163e18e5f7fcfd5eb40a43b3", "score": "0.53594327", "text": "protected function typeInitialImport() {\n // read and parse csv\n $row = 0;\n $filepath = 'Resources/Raw/Daten_01012006_bis_30062016.csv';\n // $filepath = 'Resources/Raw/Daten_01012006_bis_30062016_mit_Schmerztherapie.csv';\n if (($handle = fopen($filepath, 'r')) !== FALSE) {\n $lines = min(intval(exec('wc -l ' . $filepath)-1), $this->config->general->importAmount);\n $this->progressBar->init($lines);\n\n while (($data = fgetcsv($handle, 100000, ';')) !== FALSE AND $row <= $this->config->general->importAmount) {\n $row++;\n // skip head line\n if ($row == 1) continue;\n /*\n $num = count($data);\n echo \"<p> $num fields in line $row: <br /></p>\\n\";\n */\n\n // insert all records\n $this->dbHelper->importOp($data, $row);\n\n /*\n for ($c=0; $c < $num; $c++) {\n echo $c . ': ' . $data[$c] . '<br />'.\"\\n\";\n }\n echo '<hr>';\n */\n $this->progressBar->addStep();\n }\n $this->progressBar->finish();\n fclose($handle);\n }\n echo 'fixed sgarcode3: ' . $this->missingSgarCode3 . '<br>';\n }", "title": "" }, { "docid": "62ac74354ba3b78e7da3f0b174e44bcb", "score": "0.5347986", "text": "public function executeImport()\n {\n // mailinglist 15 = groupon be\n // mailinglist 13 = groupon nl\n $files[2] = sfConfig::get('sf_root_dir').'/web/docs/adressen.csv';\n $files[6] = sfConfig::get('sf_root_dir').'/web/docs/importbsd.csv';\n $files[15] = sfConfig::get('sf_root_dir').'/web/docs/import-20120125-groupon-be.csv';\n $files[13] = sfConfig::get('sf_root_dir').'/web/docs/import-20120125-groupon-nl.csv';\n $file = file_get_contents($files[$category]);\n \n $category = $_GET['group'];\n $lines = explode(\"\\r\", $file);\n\n $headers = array();\n $subscriptions = array();\n \n foreach ($lines as $line) {\n $row = explode(';', $line);\n if (count($headers) == 0) {\n $headers = $row;\n }\n else {\n $subscriptions[] = array(\n 'title' => trim($row[array_search('name', $headers)]).' '.trim($row[array_search('title', $headers)]),\n 'name' => trim($row[array_search('name', $headers)]),\n 'email' => $row[array_search('email', $headers)]\n );\n }\n }\n \n $imported = 0;\n \n $c = new Criteria;\n \n foreach ($subscriptions as $subscription)\n {\n $c->clear();\n $c->add(MailinguserPeer::EMAIL, $subscription['email']);\n $mailinguser = MailinguserPeer::doSelectOne($c);\n if (!$mailinguser) {\n // user does not exist, import it\n $mailinguser = new Mailinguser;\n $mailinguser->setTitle($subscription['title']);\n $mailinguser->setName($subscription['name']);\n $mailinguser->setEmail($subscription['email']);\n $mailinguser->save();\n \n $subscription_o = new Subscription;\n $subscription_o->setMailinguserId($mailinguser->getId());\n \n $subscription_o->setMailinglistId($category);\n $subscription_o->save();\n \n $imported++;\n }\n }\n \n echo 'Klaar met het importeren van '.$imported.' gebruikers.';\n exit;\n }", "title": "" }, { "docid": "9a654aa18c2d9b915c9e915fb7fc56bb", "score": "0.5335048", "text": "public function actionImportarconceptosalarios($id_pago, $fecha_inicio, $fecha_corte, $autorizado)\n {\n $pilotoDetalle = \\app\\models\\ConceptoSalarios::find()->Where(['=','adicion', 1])\n ->andWhere(['=','tipo_adicion', 1])\n ->andWhere(['=','debito_credito', 0]) \n ->orderBy('nombre_concepto asc')->all();\n $form = new \\app\\models\\FormMaquinaBuscar();\n $q = null;\n $mensaje = '';\n if ($form->load(Yii::$app->request->get())) {\n if ($form->validate()) {\n $q = Html::encode($form->q); \n if ($q){\n $pilotoDetalle = \\app\\models\\ConceptoSalarios::find()\n ->where(['like','nombre_concepto',$q])\n ->orwhere(['like','codigo_salario',$q])\n ->orderBy('nombre_concepto asc')\n ->all();\n } \n } else {\n $form->getErrors();\n } \n } else {\n $pilotoDetalle = \\app\\models\\ConceptoSalarios::find()->Where(['=','adicion', 1])\n ->andWhere(['=','tipo_adicion', 1])\n ->andWhere(['=','debito_credito', 0]) \n ->orderBy('nombre_concepto asc')->all();\n }\n if (isset($_POST[\"codigo_salario\"])) {\n $intIndice = 0;\n foreach ($_POST[\"codigo_salario\"] as $intCodigo) {\n $table = new \\app\\models\\PagoNominaServicioDetalle();\n // $detalle = PilotoDetalleProduccion::find()->where(['id_proceso' => $intCodigo])->one();\n $table->id_pago = $id_pago;\n $table->codigo_salario = $intCodigo;\n $table->devengado = 0;\n $table->deduccion = 0;\n $table->save(false); \n }\n $this->redirect([\"valor-prenda-unidad/vistadetallepago\", 'id_pago' => $id_pago, 'fecha_inicio' => $fecha_inicio, 'fecha_corte' => $fecha_corte, 'autorizado' => $autorizado]);\n }\n return $this->render('importarconceptosalarios', [\n 'pilotoDetalle' => $pilotoDetalle, \n 'mensaje' => $mensaje,\n 'id_pago' => $id_pago,\n 'fecha_inicio' => $fecha_inicio,\n 'fecha_corte' => $fecha_corte,\n 'autorizado' => $autorizado,\n 'form' => $form,\n\n ]);\n }", "title": "" }, { "docid": "a99117c1d7c1b6c3225eef1cfefc0ba2", "score": "0.531167", "text": "function masEstilos()\n\t{\n\t\tforeach($this->estilos as $estilo)\n\t\t{\n\t\t\techo '<style type=\"text/css\">@import \"'.$estilo.'\";</style>',\"\\n\";\n\t\t}\n\t}", "title": "" }, { "docid": "6a0fc0c272de8e0081129f324816cb58", "score": "0.5306749", "text": "public function insertLeCaIpImport($nhtd0a3e7f81a9885e99049d1cae0336d269d5e47a9, $nht3517fcc8fec5023f7acb1a96d8cc7642bc4e6595, $nht32e0b4164798121e0ed86fc6820775f185e5ea3c, $nht48a3661d846478fa991a825ebd10b78671444b5b, $nhtf32b67c7e26342af42efabc674d441dca0a281c5){\n return $this->insertTable(self::TABLE_IMPORT, array(\n 'domain' => $this->_cart_url,\n 'type' => $nhtd0a3e7f81a9885e99049d1cae0336d269d5e47a9,\n 'id_src' => $nht3517fcc8fec5023f7acb1a96d8cc7642bc4e6595,\n 'id_desc' => $nht32e0b4164798121e0ed86fc6820775f185e5ea3c,\n 'status' => $nht48a3661d846478fa991a825ebd10b78671444b5b,\n 'value' => $nhtf32b67c7e26342af42efabc674d441dca0a281c5\n ));\n }", "title": "" }, { "docid": "3ab9f26d77cfafbf026bcf229ad4e864", "score": "0.53026104", "text": "function import()\n\t{\n\t\t$this->title = 'import file';\n\n\t\tif (isset($_POST['id'])) {\n\t\t\t$content = \"\";\n\n\t\t\tif($_FILES['filedata']['name'] <> '') {\n\n\t\t\t\t$new_file_name = md5($_FILES['filedata']['name']).'.xlsx';\n\t\t\t\t$uploaddir = ROOT_PATH.'files/kelompok/';\n\n\t\t\t\t// [anovedit][workaround]\n\t\t\t\tif (!file_exists($uploaddir) || !is_dir($uploaddir)) mkdir($uploaddir);\n\n\t\t\t\t// uploading files\n\t\t\t\t$upload = new UploadClass();\n\t\t\t\t$upload->SetFileName($new_file_name);\n\t\t\t\t$upload->SetTempName($_FILES['filedata']['tmp_name']);\n\t\t\t\t$upload->SetUploadDirectory($uploaddir); //Upload directory, this should be writable\n\t\t\t\t$upload->SetValidExtensions(array('xlsx')); \n\t\t\t\t$upload->SetMaximumFileSize(30000000); //Maximum file size in bytes\n\t\t\t\t$upload->ReplaceFile(true);\n\t\t\t\tif ($upload->UploadFile()) {\n\t\t\t\t\t$_SESSION['temp_xlsfile'] = $uploaddir.$new_file_name;\n\t\t\t\t\t$content .= \"<li>File berhasil di upload</li>\";\n\t\t\t\t\t// lanjutkan proses import : validasi file\n\n\t\t\t\t\t$objReader = PHPExcel_IOFactory::createReader('Excel2007');\n\t\t\t\t\t$objReader->setReadDataOnly(true);\n\n\t\t\t\t\t$objPHPExcel = $objReader->load($_SESSION['temp_xlsfile']);\n\t\t\t\t\t$objWorksheet = $objPHPExcel->getActiveSheet();\n\n\t\t\t\t\t$startedRow = 4;\n\t\t\t\t\t$highestRow = $objWorksheet->getHighestRow(); \n\t\t\t\t\t$highestColumn = $objWorksheet->getHighestColumn(); \n\n\t\t\t\t\t$highestColumnIndex = PHPExcel_Cell::columnIndexFromString($highestColumn); \n\n\t\t\t\t\t// index tahun\n\t\t\t\t\tfor ($col = 5; $col < $highestColumnIndex; $col++) {\n\t\t\t\t\t\t$tahun[$col] = $objWorksheet->getCellByColumnAndRow($col, 3)->getValue();\n\t\t\t\t\t\t$tahun_header .= \"<th>{$tahun[$col]}</th>\";\n\t\t\t\t\t}\n\n\t\t\t\t\t// cek file code dan submit variablenya\n\t\t\t\t\t$check_code = $objWorksheet->getCell('A1')->getValue();\n\t\t\t\t\t$submit_code = $this->makeExcelFileCode($_POST['type'], (int) $_POST['id'], (int) $_POST['tahun_awal'], (int) $_POST['tahun_akhir']);\n\n\t\t\t\t\tif ($check_code == $submit_code) {\n\t\t\t\t\t\t$content .= \"<li>File excell terbaca.. </li>\";\n\n\t\t\t\t\t\t// listing data\n\t\t\t\t\t\t$cellData = array();\n\t\t\t\t\t\tfor ($row = $startedRow; $row <= $highestRow; $row++) {\n\t\t\t\t\t\t\t$getId = $objWorksheet->getCellByColumnAndRow(0, $row)->getValue();\n\t\t\t\t\t\t\t$getCode = $objWorksheet->getCellByColumnAndRow(1, $row)->getValue();\n \t\t\t\t\t\t\tif (!empty($getId) && $getCode == $this->encodeId_excel($getId)) {\n \t\t\t\t\t\t\t\t$cellData[$getId]['no'] = $objWorksheet->getCellByColumnAndRow(2, $row)->getValue();\n \t\t\t\t\t\t\t\t$cellData[$getId]['uraian'] = $objWorksheet->getCellByColumnAndRow(3, $row)->getValue();\n \t\t\t\t\t\t\t\t$cellData[$getId]['satuan'] = $objWorksheet->getCellByColumnAndRow(4, $row)->getValue();\n \t\t\t\t\t\t\t\tfor ($col = 5; $col < $highestColumnIndex; $col++) {\n\t\t\t\t\t\t\t\t $cellData[$getId][$tahun[$col]] = $objWorksheet->getCellByColumnAndRow($col, $row)->getValue();\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\n\t\t\t\t\t\t$table = \"\n\t\t\t\t\t\t\t<div class='table-responsive'>\n\t\t\t\t\t\t\t\t<table id='table_kelompok_input' class='detail_data table table-striped table-condensed table-bordered'>\n\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<th rowspan=2>No</th>\n\t\t\t\t\t\t\t\t\t\t<th rowspan=2>Kelompok/Sub Kelompok</th>\n\t\t\t\t\t\t\t\t\t\t<th rowspan=2>Satuan</th>\n\t\t\t\t\t\t\t\t\t\t<th colspan=\".count($tahun).\">Tahun</th>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t<tr>{$tahun_header}</tr>\";\n\n\t\t\t\t\t\t// listing and Processing data\n\t\t\t\t\t\t$datausr = $this->auth->getDetail();\n\t\t\t\t\t\t$updated = $inserted = $nochange = 0;\n\t\t\t\t\t\tforeach ($cellData as $id => $cellContent) {\n\t\t\t\t\t\t\t// cek ini kelompok terdetail apa bukan\n\t\t\t\t\t\t\t$sql_cek = \"SELECT idkelompok FROM kelompok_matrix WHERE idparent='{$this->db->escape_string($id)}'\";\n\t\t\t\t\t\t\t$res_cek \t= $this->db->query($sql_cek);\n\t\t\t\t\t\t\t$num_child \t= $this->db->numRows($res_cek);\n\n\t\t\t\t\t\t\t$table .= \"<tr>\";\n\t\t\t\t\t\t\t$table .= \"<td>{$cellContent['no']}</td>\";\n\t\t\t\t\t\t\t$table .= \"<td>{$cellContent['uraian']}</td>\";\n\t\t\t\t\t\t\t$table .= \"<td>{$cellContent['satuan']}</td>\";\n\n\t\t\t\t\t\t\tforeach ($tahun as $tahun_detail) {\n\t\t\t\t\t\t\t\t$nominal = (int) $cellContent[$tahun_detail];\n\t\t\t\t\t\t\t\t// update | inseritng data\n\t\t\t\t\t\t\t\t$bgc = '';\n\t\t\t\t\t\t\t\tif ($num_child == 0) {\n\t\t\t\t\t\t\t\t\t// kelompok_detail : idkelompok, tahun, nilai, postdate, iduser\n\t\t\t\t\t\t\t\t\t$sql_dtl = \"SELECT *\n\t\t\t\t\t\t\t\t\t\tFROM kelompok_detail_matrix\n\t\t\t\t\t\t\t\t\t\tWHERE idkelompok='{$this->db->escape_string($id)}'\n\t\t\t\t\t\t\t\t\t\tAND tahun='{$this->db->escape_string($tahun_detail)}'\";\n\t\t\t\t\t\t\t\t\t$res_dtl = $this->db->query($sql_dtl);\n\t\t\t\t\t\t\t\t\t$data_dtl = $this->db->fetchAssoc($res_dtl);\n\t\t\t\t\t\t\t\t\t$num_dtl = $this->db->numRows($res_dtl);\n\n\t\t\t\t\t\t\t\t\tif ($num_dtl == 0 && $nominal > 0) {\n\t\t\t\t\t\t\t\t\t\t//add record\n\t\t\t\t\t\t\t\t\t\t$sql_ins = \"INSERT INTO kelompok_detail_matrix SET\n\t\t\t\t\t\t\t\t\t\t\tnilai='{$this->db->escape_string($nominal)}',\n\t\t\t\t\t\t\t\t\t\t\ttahun='{$this->db->escape_string($tahun_detail)}',\n\t\t\t\t\t\t\t\t\t\t\tiduser='{$this->db->escape_string($datausr['iduser'])}',\n\t\t\t\t\t\t\t\t\t\t\tpostdate=NOW(),\n\t\t\t\t\t\t\t\t\t\t\tidkelompok='{$this->db->escape_string($id)}'\";\n\t\t\t\t\t\t\t\t\t\t$this->db->query($sql_ins);\n\t\t\t\t\t\t\t\t\t\t$inserted++;\n\t\t\t\t\t\t\t\t\t\t$bgc = 'bg-info';\n\n\t\t\t\t\t\t\t\t\t} else if ($num_dtl > 0 && $data_dtl['nilai'] <> $nominal) {\n\t\t\t\t\t\t\t\t\t\t// [anovedit][workaround] kalau nilainya kosong, hapus saja karena\n\t\t\t\t\t\t\t\t\t\tif (empty($nominal)) {\n\t\t\t\t\t\t\t\t\t\t\t$sql_upd = \"DELETE FROM kelompok_detail_matrix\n\t\t\t\t\t\t\t\t\t\t\t\tWHERE tahun='{$this->db->escape_string($tahun_detail)}'\n\t\t\t\t\t\t\t\t\t\t\t\tAND idkelompok='{$this->db->escape_string($id)}'\";\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t$sql_upd = \"UPDATE kelompok_detail_matrix SET\n\t\t\t\t\t\t\t\t\t\t\t\tnilai={$this->db->ci3db->escape($nominal)},\n\t\t\t\t\t\t\t\t\t\t\t\tiduser='{$this->db->escape_string($datausr['iduser'])}',\n\t\t\t\t\t\t\t\t\t\t\t\tpostdate=NOW()\n\t\t\t\t\t\t\t\t\t\t\t\tWHERE tahun='{$this->db->escape_string($tahun_detail)}'\n\t\t\t\t\t\t\t\t\t\t\t\tAND idkelompok='{$this->db->escape_string($id)}'\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t$this->db->query($sql_upd);\n\n\t\t\t\t\t\t\t\t\t\t$updated++;\n\t\t\t\t\t\t\t\t\t\t$bgc = 'bg-success';\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t$nochange++;\n\t\t\t\t\t\t\t\t\t\t$bgc = 'bg-warning';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t$table .= \"<td class='{$bgc}'>{$nominal}</td>\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$table .= \"</tr>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$table .= \"</table></div>\";\n\t\t\t\t\t\t$content .= ($inserted > 0) ? \"<li><span class='bg-info'>{$inserted} detail data baru di masukkan</span></li>\" : \"\" ;\n\t\t\t\t\t\t$content .= ($updated > 0) ? \"<li><span class='bg-success'>{$updated} detail data telah diperbarui</span></li>\" : \"\" ;\n\t\t\t\t\t\t$content .= ($nochange > 0) ? \"<li><span class='bg-warning'>{$nochange} detail tidak mengalami perubahan data</span></li>\" : \"\" ;\n\t\t\t\t\t\t$content .= \"<li>import data berhasil!, silakan pilih menu disamping untuk melanjutkan</li>\" ;\n\t\t\t\t\t\t$content .= $table;\n\n\t\t\t\t\t\t// remove files\n\t\t\t\t\t\tunlink($_SESSION['temp_xlsfile']);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$content .= \"<li>file ditolak, file dihapus, silakan kembali kehalaman sebelumnya</li>\";\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$content = \"file gagal di upload, file tidak dapat di upload ke server\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$content = \"file gagal di upload, file tidak ditemukan\";\n\t\t\t}\n\n\t\t\t$this->content = \"<div class='import_process'>{$content}</div>\"; \n\n\t\t} else {\n\t\t\t$idimport \t\t\t= $_GET['id'];\n\t\t\t$this->typeImport \t= $_GET['type'];\n\t\t\t$this->tahunImport = array((int) $_GET['tahun_awal'], (int) $_GET['tahun_akhir']);\n\n\t\t\t#get data\t\n\t\t\t// format nama file, sesuaikan, skpd x, bidang n. etc\n\t\t\tif ($this->typeImport == 'kelompok') {\n\t\t\t\t$sqlKlp\t= \"SELECT *\n\t\t\t\t\tFROM kelompok_matrix\n\t\t\t\t\tWHERE idkelompok={$this->db->escape_string($idimport)}\";\n\t\t\t\t$resKelp \t\t= $this->db->query($sqlKlp);\n\t\t\t\t$dataKelompok \t= $this->db->fetchAssoc($resKelp);\n\t\t\t\t$excel_filename = $dataKelompok['idkelompok'].\".\".$dataKelompok['urai'].\"_\".min($this->tahunImport).\"_\".max($this->tahunImport).\".xlsx\";\n\t\t\t} else if ($this->typeImport == 'instansi') {\n\t\t\t\t$sqlIns\t= \"SELECT *\n\t\t\t\t\tFROM instansi\n\t\t\t\t\tWHERE idinstansi={$this->db->escape_string($idimport)}\";\n\t\t\t\t$resIns \t\t= $this->db->query($sqlIns);\n\t\t\t\t$dataInstansi \t= $this->db->fetchAssoc($resIns);\n\t\t\t\t$excel_filename = $dataInstansi['idinstansi'].\".\".$dataInstansi['nama_instansi'].\"_\".min($this->tahunImport).\"_\".max($this->tahunImport).\".xlsx\";\n\t\t\t}\n\n\t\t\t$excel_filename = (!empty($excel_filename)) ? \", Nama file : <b>{$excel_filename}</b>\" : $excel_filename ;\n\n\t\t\t#build form\n\t\t\t$tplform = new TemplateClass;\n\t\t\t$tplform->defineTag([\n\t\t\t\t'type' => $this->typeImport,\n\t\t\t\t'id' => $idimport,\n\t\t\t\t'tahun_awal' => min($this->tahunImport),\n\t\t\t\t'tahun_akhir' => max($this->tahunImport),\n\t\t\t\t'nama_file' => $excel_filename,\n\t\t\t\t'rootdir' \t=> ROOT_URL,\n\t\t\t\t'action' \t=> 'import'\n\t\t\t]);\n\t\t\t$tplform->init(THEME.'/forms/progis_file.html');\n\t\t\t$form = $tplform->parse();\t\n\t\t\t$this->content = $form; \n\t\t}\n\t}", "title": "" }, { "docid": "bf348d3ec39209ccb7e408c67b7a93ab", "score": "0.5287584", "text": "function importar_maparesumoimposto($dir_name, $caixa, $dtmovto, $codmaparesumo){\r\n if(!($dir = opendir($dir_name))){\r\n $_SESSION[\"ERROR\"] = \"N&atilde;o foi poss&iacute;vel encontrar o diret&oacute;rio:<br>\".$this->path;\r\n return FALSE;\r\n }\r\n\r\n // Acha todos os arquivos gerados pelo emporium\r\n $i = 1;\r\n while($file = readdir($dir)){\r\n if((strcasecmp(substr($file, 0, 7), \"exptrib\") == 0) && (intval(substr($file, 18, 4)) == $this->pdvconfig->getestabelecimento()->getcodestabelec() && str_replace(\"-\", \"\", $dtmovto) == substr($file, 8, 8))){\r\n $file_name = $file;\r\n break;\r\n }\r\n }\r\n\r\n // Percorre o arquivo\r\n setprogress(75, \"Processando Impostos do Mapa Resumo\");\r\n $linhas = array();\r\n $file = fopen($dir_name.$file_name, \"r\");\r\n while(!feof($file)){\r\n $linha = fgets($file, 4096);\r\n $linhas[] = $linha;\r\n }\r\n fclose($file);\r\n\r\n $this->arr_arquivo[] = $dir_name.$file_name;\r\n\r\n $arr_maparesumoimposto = Array();\r\n\r\n $this->con->start_transaction();\r\n foreach($linhas as $i=> $linha){\r\n $arr_leiturapdv = explode(\"|\", $linha);\r\n\r\n if($caixa == $arr_leiturapdv[0]){\r\n $arr_maparesumoimposto[$arr_leiturapdv[1]][\"codmaparesumo\"] = ($codmaparesumo);\r\n $arr_maparesumoimposto[$arr_leiturapdv[1]][\"tptribicms\"] = (substr($arr_leiturapdv[1], 0, 1));\r\n $arr_maparesumoimposto[$arr_leiturapdv[1]][\"aliqicms\"] = (strlen($arr_leiturapdv[4]) == 0 ? 0 : $arr_leiturapdv[4]) / 100;\r\n $arr_maparesumoimposto[$arr_leiturapdv[1]][\"totalliquido\"] += ($arr_leiturapdv[2] / 100);\r\n $arr_maparesumoimposto[$arr_leiturapdv[1]][\"totalicms\"] += ($arr_leiturapdv[3] / 100);\r\n }\r\n }\r\n\r\n if(isset($arr_maparesumoimposto)){\r\n foreach($arr_maparesumoimposto as $mapa){\r\n $maparesumoimposto = objectbytable(\"maparesumoimposto\", NULL, $this->con);\r\n $maparesumoimposto->setcodmaparesumo($mapa[\"codmaparesumo\"]);\r\n $maparesumoimposto->settptribicms($mapa[\"tptribicms\"]);\r\n $maparesumoimposto->setaliqicms($mapa[\"aliqicms\"]);\r\n $maparesumoimposto->settotalliquido($mapa[\"totalliquido\"]);\r\n $maparesumoimposto->settotalicms($mapa[\"totalicms\"]);\r\n if(!$maparesumoimposto->save()){\r\n $this->con->rollback();\r\n return FALSE;\r\n }\r\n }\r\n unset($arr_maparesumoimposto);\r\n }\r\n\r\n $this->arqtrib = $file_name;\r\n $this->con->commit();\r\n unset($_SESSION[\"dtmovto_emporium\"]);\r\n return TRUE;\r\n }", "title": "" }, { "docid": "1d66e559cf4f3bd65a305f329b4b7e34", "score": "0.528346", "text": "protected function processarHeaderArquivo($linha)\n {\n $header = $this->createHeader();\n //X = ALFANUMÉRICO 9 = NUMÉRICO V = VÍRGULA DECIMAL ASSUMIDA\n $header->setRegistro($linha->substr(1, 1)->trim());\n $header->setTipoOperacao($linha->substr(2, 1)->trim());\n $header->setIdTipoOperacao($linha->substr(3, 7)->trim());\n $header->setIdTipoServico($linha->substr(10, 2)->trim());\n $header->setTipoServico($linha->substr(12, 8)->trim());\n $header->addComplemento($linha->substr(20, 7)->trim());\n\n $bancoArray = array();\n if (!preg_match('#^([\\d]{3})(.+)#', $linha->substr(77, 18)->trim(), $bancoArray)) {\n throw new InvalidArgumentException('Banco invalido');\n }\n\n $banco = new Banco();\n $banco\n ->setCod($bancoArray[1])\n ->setNome($bancoArray[2])\n ->setAgencia($linha->substr(27, 4)->trim())\n ->setDvAgencia($linha->substr(31, 1)->trim())\n ->setConta($linha->substr(32, 8)->trim())\n ->setDvConta($linha->substr(40, 1)->trim());\n\n\n $cedente = new Cedente();\n $cedente->setBanco($banco)\n ->setNome($linha->substr(47, 30)->trim());\n\n $header->setCedente($cedente);\n $header->setDataGravacao($this->createDate($linha->substr(95, 6)->trim()));\n $header->setSequencialReg($linha->substr(395, 6)->trim());\n\n return $header;\n }", "title": "" }, { "docid": "9585e9052cec0e3cc0fd093038360887", "score": "0.5278503", "text": "public function import(Request $request)\n {\n $this->validate($request,[\n 'selectFile'=>'required|mimes:xls,xlsx'\n ]);\n $path=$request->file('selectFile')->getRealPath();\n $data =\\Excel::load($path)->get();\n if($data->count()>0){\n $insert_data=[];\n $data2=[];\n foreach($data->toArray()[0] as $key =>$value){\n if (isset($value['stt'])){\n $data3=array(\n 'stt'=>$value['stt'],\n 'tenbenhnhan'=>$value['hoten'],\n 'tuoi'=>$value['tuoi'],\n 'khoa'=>$value['khoa'],\n 'chandoan'=>$value['chandoan'],\n 'ppphauthuat'=>$value['ppphauthuat'],\n 'bsphauthuat'=>$value['bsphauthuat'],\n 'ppvocamvagiamdau'=>$value['ppvocam'],\n 'bsgayme'=>$value['bsgayme'],\n 'trangthaicuabenhnhan'=>$value['trangthai'],\n );\n array_push($data2,$data3);\n }\n }\n LichMo::insert($data2);\n }\n return back()->with('success','import thành công');\n }", "title": "" }, { "docid": "72d955e328447128f096cb86e88398f1", "score": "0.52562547", "text": "function import() {\n if(!$b=$this->api->business) {\n if($this->api->admin) {\n // admin not yet working but then you need to get business via connect\n $b=$this->model->ref('connect_id')->ref('business_id');\n }\n }\n \n // http://agiletoolkit.org/learn/tutorial/jobeet/day9\n \n $batch_file_name = $this->add(\"filestore/Model_File\")->load($this->model->get('filestore_id'))->getPath();\n \n \n if (($handle = fopen($batch_file_name, 'r')) !== FALSE) {\n $d=$b->ref('Document')->tryLoadBy('batch_id',$this->model->id);\n $d\n ->set('type','b')\n ->set('transdate',$d->dsql()->expr('now()'))\n ->set('currency','EUR')\n ->set('contact_id','13115') // TODO: ?\n ->set('employee_id','1')\n ->set('chart_agains_id','298') // 2100 vraagstukken\n ->save();\n\n $m=$d->ref('Transaction');\n $m->deleteAll();\n\n while (($raw = fgets($handle)) !== FALSE) {\n $m->unload();\n \n // $data=str_getcsv($raw,\"\\t\",''); \n // cannot use getcsv as note starts with a space and getcsv is trimming it.\n // https://bugs.php.net/bug.php?id=53848&edit=3\n \n $data=explode(\"\\t\",$raw);\n \n $content = $data[7];\n $content_line = str_split($content,33);\n $content_first = $content_line[0];\n \n $remote_account = \"\";\n $remote_owner = \"\";\n $notes=$data[7];\n if( $content_first[0] == ' ' ) {\n for ($i = 1; $i < strlen($content_first); $i++) {\n if( is_numeric( $content_first[$i] ) ) {\n $remote_account .= $content_first[$i];\n } elseif ( $content_first[$i] == ' ' ) {\n break;\n } elseif ( $content_first[$i] != '.' ) {\n $remote_account = \"\";\n break;\n }\n }\n \n // so bank number found\n if($remote_account) {\n // on same line the owner is there\n $remote_owner=trim(substr($content_first,$i));\n// unset($content_line[0]);\n // and if not then the next line\n if(!$remote_owner) {\n $remote_owner=trim($content_line[1]);\n // unset($content_line[1]);\n }\n // rest is for notes\n $notes=implode($content_line);\n }\n }\n \n // http://bazaar.launchpad.net/~pieterj/account-banking/trunk/view/head:/account_banking_nl_abnamro/abnamro.py\n \n if( strpos($content,'GIRO') === 0 ) {\n for ($i = 4; $i < strlen($content); $i++) {\n if( is_numeric( $content[$i] ) ) {\n $remote_account .= $content[$i];\n } elseif ( $content[$i] == ' ' and $remote_account != '' ) {\n break;\n } elseif ( $content[$i] != ' ' and $remote_account != '' ) {\n $remote_account = \"\";\n break;\n }\n }\n // so bank number found\n if($remote_account) {\n $remote_account='P'.$remote_account;\n // on same line the owner is there\n $remote_owner=trim(substr($content_first,$i));\n// unset($content_line[0]);\n // and if not then the next line\n if(!$remote_owner) {\n $remote_owner=trim($content_line[1]);\n // unset($content_line[1]);\n }\n // rest is for notes\n $notes=implode($content_line);\n }\n }\n //ONZE REF: NI28061S32096100 OORSPR. EUR 89,50 ONTV AAB EUR 89,50 GEDEELDE KOSTEN OPDR./BEGUNST. SEVILLA CARRASCO DANIEL ES N 52912022Q PAGO PEDIDO .422 ( DANIEL SEVILL A C ARRASCO ) EU BUITENLAND OVERBOEKING \n //ONZE REF: NI28061S32269400 OORSPR. EUR 35,00 ONTV AAB EUR 35,00 GEDEELDE KOSTEN OPDR./BEGUNST. ALTMANN JAN 75223 NIEFERN-OSCHELBRONN 0000136131 ORDER 306 TW-STEEL-ARMBAND EU BUITENLAND OVERBOEKING \n\n\n // international bank transfer starts with EL\n if( strpos($content_first,'E') === 0 and preg_match('/^E[LMN][0-9]{13}I/',$content_first) ) {\n if(preg_match('/\\/([a-zA-Z]{2}[0-9]{2}[a-zA-Z0-9]{11}[a-zA-Z0-9]{0,16})\\s/',$content_line[2] )) {\n $remote_account=trim(substr($content_line[2],1));\n $remote_owner=trim($content_line[3]);\n }\n } \n\n \n // international bank transfer starts with EL\n if( strpos($content_first,'BEA') === 0 ) {\n $split=explode(',',$content_line[1],2);\n $remote_owner=trim($split[0]);\n } \n //SEPA Overboeking IBAN: DE57422600010244357700 BIC: GENODEM1GBU Naam: Boeck Mirko Omschrijving: T UCHKELSTER UHR R ETRO XL MIRKO BOECK Kenmerk: 51010114020 \n if( strpos($content_first,'SEPA') === 0 ) {\n preg_match('/IBAN: ([a-zA-Z]{2}[0-9]{2}[a-zA-Z0-9]{11}[a-zA-Z0-9]{0,16})\\s/',$content,$iban);\n $remote_account=$iban[1]; // first match in array\n preg_match('/Naam: (.*?)\\s*(\\S*):/',$content,$owner);\n $remote_owner=trim($owner[1]);\n } \n\n\n ///TRTP/SEPA OVERBOEKING/IBAN/DE73651901100009605002/BIC/GENODES1VF N/NAME/Paulo Jorge Dos Santos Lopes/REMI/Bestell ID 732 Gaeste Ge schenke/Promotion/EREF/NOTPROVIDE \n $iban='';\n if(!$remote_account and preg_match('/IBAN\\/([a-zA-Z]{2}[0-9]{2}[a-zA-Z0-9]{4}[0-9]{7}[a-zA-Z0-9]{0,16})\\//',$content,$iban))\n $remote_account=$iban[1]; // first match in array\n// commented as it shows also bad ibans\n// if(!$remote_account and preg_match('/\\s([a-zA-Z]{2}[0-9]{2}[a-zA-Z0-9]{4}[0-9]{7}[a-zA-Z0-9]{0,16})\\s/',$content,$iban))\n// $remote_account=$iban[1]; // first match in array\n \n $transdate=$data[2][0].$data[2][1].$data[2][2].$data[2][3].'-'.$data[2][4].$data[2][5].'-'.$data[2][6].$data[2][7];\n $m->unload()->set( array(\n 'raw' => $raw,\n 'own_account' => $data[0],\n 'currency' => $data[1],\n 'remote_account' => $remote_account,\n 'remote_owner' => $remote_owner,\n 'transdate' => $transdate,\n 'amount' => str_replace(',','.',$data[6]), // positive means added to bank account (klanten betaling) ar\n 'description' => '',\n 'notes' => $notes,\n 'hash' => md5($raw),\n 'batch_id',$this->model->id,\n ) );\n $m->update();\n /*\n\n Array\n (\n [0] => 429296339\n [1] => EUR\n [2] => 20110107\n [3] => 1515,68\n [4] => 1924,68\n [5] => 20110107\n [6] => 409,00\n [7] => 88.75.01.818 OUDE G DEN ZWALUWSINGEL 15 2289 EP RYSWYK ZH 2011000003TRNW_NL tbv BTB chain big Dames \n )\n\n */\n }\n fclose($handle);\n }\n }", "title": "" }, { "docid": "0c483465e834d3c5650bdbef46e84306", "score": "0.52435315", "text": "public function leerLinea(){\n $linea = $this->limpiarLinea(reset($this->data));\n array_shift($this->data);\n return $linea;\n }", "title": "" }, { "docid": "58446f564da7bec648b0ab9c7559f028", "score": "0.5234799", "text": "public static function csvimportImportLine($line, &$context) {\n\n $context['results']['rows_imported']++;\n $line = array_map('base64_decode', $line);\n\n $context['message'] = t('Importing row !c' , ['!c' => $context['results']['rows_imported']]);\n\n if ($context['results']['rows_imported'] > 1) { \n $new_name = new Random();\n $user = User::create([\n 'name' => $new_name->name(5, TRUE),\n 'mail' => $line[0],\n 'pass' => $line[1],\n 'status' => TRUE,\n 'init' => $line[0],\n ]) ->save(); \n }\n }", "title": "" }, { "docid": "2945a324880afc539efce6486d33b528", "score": "0.52302724", "text": "public function import(Request $request)\n {\n $listar = Libreria::getParam($request->input('listar'), 'NO');\n $entidad = \"Producto\";\n $producto = null;\n $formData = array('producto.saveimport');\n $formData = array('route' => $formData, 'class' => 'form-horizontal', 'id' => 'formMantenimiento' . $entidad, 'autocomplete' => 'off', 'enctype' => 'multipart/form-data');\n $boton = 'Importar';\n return view($this->folderview . '.mant2')->with(compact('producto', 'formData', 'entidad', 'boton', 'listar'));\n }", "title": "" }, { "docid": "db77fdbd6f0098669c757c19d2556e0c", "score": "0.5227105", "text": "public function import(){\n\t include APPPATH.'third_party/PHPExcel/PHPExcel.php';\n\t \n\t $excelreader = new PHPExcel_Reader_Excel2007();\n\t $loadexcel = $excelreader->load(FCPATH . 'assets/file/'.$this->filename.'.xlsx'); // Load file yang telah diupload ke folder excel\n\t $sheet = $loadexcel->getActiveSheet()->toArray(null, true, true ,true);\n\t \n\t // Buat sebuah variabel array untuk menampung array data yg akan kita insert ke database\n\t $data = array();\n\t \n\t $numrow = 1;\n\t foreach($sheet as $row){\n\t // Cek $numrow apakah lebih dari 1\n\t // Artinya karena baris pertama adalah nama-nama kolom\n\t // Jadi dilewat saja, tidak usah diimport\n\t if($numrow > 1){\n\t // Kita push (add) array data ke variabel data\n\t array_push($data, array(\n\t 'nis'=>$row['A'], // Insert data nis dari kolom A di excel\n\t 'nama'=>$row['B'], // Insert data nama dari kolom B di excel\n\t 'jenis_kelamin'=>$row['C'], // Insert data jenis kelamin dari kolom C di excel\n\t 'alamat'=>$row['D'], // Insert data alamat dari kolom D di excel\n\t ));\n\t }\n\t \n\t $numrow++; // Tambah 1 setiap kali looping\n\t }\n\t // Panggil fungsi insert_multiple yg telah kita buat sebelumnya di model\n\t $this->Model_excel->insert_multiple($data);\n\t \n\t redirect(\"admin/dataPonpes\"); // Redirect ke halaman awal (ke controller siswa fungsi index)\n\t}", "title": "" }, { "docid": "a91fde9239d6a58d01060737a7c6d6e4", "score": "0.5221183", "text": "public function import()\n\t{\n\t\t$data = $this->input->post();\n\t\t$data['asset_category'] = 'a';\n\t\t\n\t\tif (empty($data['skpd_id'])) {\n\t\t\t$this->message('Pilih OPD','danger');\n\t\t\t$this->go('admin/asset_a/add');\n\t\t}\n\n\t\t# BEGIN UPLOAD\n\t\tif ($_FILES['file']['size'] > 0) {\n\t\t\t$config['upload_path'] = realpath(FCPATH.'/res/docs/imports/');\n\t\t\t$config['file_name']\t = date('Ymdhis').'-kiba-'.$data['skpd_id'];\n\t\t\t$config['allowed_types'] = 'xls|xlsx';\n\t\t\t$config['max_size'] = 1500;\n\t\t\t$config['overwrite'] = TRUE;\n\n\t\t\t$this->load->library('upload', $config);\n\t\t\tif ($this->upload->do_upload('file')) {\n\t\t\t\t$data['file'] = $this->upload->data('file_name');\n\t\t\t} else {\n\t\t\t\t$this->message($this->upload->display_errors(), 'danger');\n\t\t\t\t$this->go('admin/asset_a/add');\n\t\t\t}\n\n\t\t\t$this->load->model('admin/Proposal_model', 'proposal');\n\t\t\t$sukses = $this->proposal->insert($data);\n\t\t\tif($sukses) {\n\t\t\t\t$this->message('Pengajuan data berhasil disimpan dan <b>menunggu persetujuan BPKA</b>','success');\n\t\t\t\t$this->go('admin/asset_a');\n\t\t\t} else {\n\t\t\t\tunlink(realpath(FCPATH.'/res/docs/imports/'.$data['file']));\n\t\t\t\t$this->message('Pengajuan gagal disimpan, perikas kembali data anda','danger');\n\t\t\t\t$this->go('admin/asset_a/add');\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "45157695f1d71e05906b518170e6ca7e", "score": "0.5218812", "text": "public function import(Request $request)\n {\n $data = $request->all();\n $input = Input::all();\n $filename = $_FILES['file_import']['name'];\n $uploadedFile = '';\n $id_tipo = $_POST['id_tipo'];\n $id_subtipo = $_POST['id_subtipo']; \n \n\n if(isset($_FILES['file_import']['name'])) {\n //return Response::json($filename);\n $arr_file = explode('.', $_FILES['file_import']['name']);\n $extension = end($arr_file);\n if('csv' == $extension) {\n $reader = new Csv();\n } else {\n $reader = new Xlsx();\n }\n $spreadsheet = $reader->load($_FILES['file_import']['tmp_name']);\n\n $sheetData = $spreadsheet->getActiveSheet()->toArray();\n //iniciamos transacción para ver que no ocurre ningún error en la insersión\n DB::beginTransaction();\n try {\n //recorremos las filas\n for ($i=1;$i<count($sheetData);$i++){\n //colocamos cada registro en un arreglo\n $dispo = [\n 'name' => $sheetData[$i][0],\n 'id_tipo' => $id_tipo,\n 'id_subtipo' => $id_subtipo,\n 'id_kontaktTag' => $sheetData[$i][1],\n 'UUDD' => $sheetData[$i][2],\n 'date_up' => $sheetData[$i][4],\n 'date_down' => $sheetData[$i][4],\n ];\n\n //insertamos el registro en la bd\n $result = Iot_dispositivo::insert($dispo); \n }//for\n \n DB::commit();\n $success = true;\n } catch (\\Exception $e) {\n $success = false;\n $error = $e->getMessage();\n DB::rollback();\n $mess=trans('adminlte_lang::message.importNOK').\": \".$error;\n return Response::json(array('errors' => [$mess]));\n }\n\n if ($success) {\n $mess=trans('adminlte_lang::message.importOK');\n return response()->json(array('mnsj' => [$mess]));\n } \n //print_r($sheetData);\n }//if file\n $mess= trans('adminlte_lang::message.updateOK'); \n return redirect()->route('devices.index')->with('success',$mess); \n }", "title": "" }, { "docid": "26f2230398be34b6dc4cdac8ad9be92e", "score": "0.52053154", "text": "function import($data, $lesson, $language, $method = self::IMPORT_FILE) {\n // $lekce is a string: Create a new lesson, $lesson is its name.\n if(!is_int($lesson)) { $name = $lesson; $lesson = null; }\n\n\t\t\tswitch($method) {\n\t\t\t\tcase self::IMPORT_FILE:\n\t\t\t\t\t// Get the data from the file.\n\t\t\t\t\tif(!file_exists($data))\tthrow new Exception(lang::import_file_does_not_exist);\n\t\t\t\t\tif(is_dir($data)) throw new Exception(lang::import_file_is_dir);\n\t\t\t\t\tif(!$data = trim(file_get_contents($data))) throw new Exception(lang::import_file_empty_or_unreadable);\n\t\t\t\tcase self::IMPORT_STRING:\n\t\t\t\t\t// Process the data.\n\t\t\t\t\t$data = explode(self::TERM_DELIMITER, $data);\n \n // Remove empty rows.\n foreach($data as $key => $line) if(!trim($line)) unset($data[$key]);\n \n\t\t\t\t\tif(!$this->validate($data)) throw new Exception(lang::import_data_invalid);\n\n if(!$lesson && !$language) throw new Exception(lang::new_lesson_must_have_language);\n\n\t\t\t\t\t$lesson = new Lesson($lesson);\n\t\t\t\t\tif(isset($name)) $name = $lesson->setName($name);\n else $name = $lesson->getName();\n\t\t\t\t\tif($language) $lesson->setLanguage($language);\n\t\t\t\t\tforeach($data as $line) {\n\t\t\t\t\t\tlist($term, $metadata, $translation) = explode(self::COLUMN_DELIMITER, $line);\n\t\t\t\t\t\t$lesson->addTerm($term, $translation, $metadata);\n\t\t\t\t\t}\n\t\t\t\t\t$lesson->save();\n\t\t\t\t\t\n\t\t\t\t\t$this->notice[] = \"Lekce «<span class=\\\"code\\\">$name</span>» byla úspěšně importována.\";\n\t\t\t\t\t\n\t\t\t\t\treturn(true);\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new Exception(lang::unsupported_import_method);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "45e1d116bfe399b362964c9759c91edf", "score": "0.519747", "text": "function lxfimportinvitation() {\n\t\t$app = JFactory::getApplication();\n\t\n\t\tJTable::addIncludePath(JPATH_ADMINISTRATOR.'/components/com_freestroke/tables');\n\t\n\t\tif ($file = $app->input->files->get('importfile')) {\n\t\t\t$handle = fopen($file ['tmp_name'], 'r');\n\t\t\tif (! $handle) {\n\t\t\t\t$app->enqueueMessage(JText::_('Cannot open uploaded file.'));\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfclose($handle);\n\t\t\t\t\n\t\t\t// parse the lenex file\n\t\t\t$xmlFile = $this->extractXMLfromArchive($file ['tmp_name']);\n\t\t\t$lenexXml = simplexml_load_file($xmlFile);\n\t\t\tif ($lenexXml === FALSE) {\n\t\t\t\t$app->enqueueMessage(\"Dit bestand wordt niet herkend. Is het wel een LXF bestand?\");\n\t\t\t} else {\n\t\t\t\trequire_once JPATH_COMPONENT . '/logic/lenexparser.php';\n\t\t\t\t$parser = new FreestrokeLenexParser();\n\t\t\t\t$lenex = $parser->parse($lenexXml);\n\n\t\t\t\t$meet = $lenex->meets[0];\n\t\t\t\t$name = $meet->name;\n\t\t\t\t$mindate = $meet->sessions[0]->date;\n\t\t\t\t$city = $meet->city;\n\t\t\t\t\n\t\t\t\trequire_once JPATH_COMPONENT . '/helpers/meets.php';\n\t\t\t\t$meetObject = FreestrokeMeetsHelper::findByNameCityAndDate($name, $city, $mindate);\n\t\t\t\tif($meetObject) {\n\t\t\t\t\trequire_once JPATH_COMPONENT . '/logic/invitationreader.php';\n\t\t\t\t\t$reader = new FreestrokeInvitationReader();\n\t\t\t\t\t$hasinvite = $reader->process($lenex, $meetObject->id);\n\t\t\n\t\t\t\t\t// Flush the data from the session.\n// \t\t\t\t\t$app->setUserState('com_freestroke.edit.meet.data', null);\n\t\t\t\t} else {\n\t\t\t\t\t$app->enqueueMessage(\"Deze wedstrijd is niet gevonden. Selecteer zelf eerst de juiste wedstrijd.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->setRedirect(JRoute::_('index.php?option=com_freestroke&view=meetscalendar'));\n\t}", "title": "" }, { "docid": "7c441f9c5b5be764e0ed419e3fb3e568", "score": "0.51943535", "text": "function importeContableDeposito(){\n\t\t$this->procedimiento='tes.ft_proceso_caja_ime';\n\t\t$this->transaccion='TES_IMPDEP_IME';\n\t\t$this->tipo_procedimiento='IME';\n\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('importe_contable_deposito','importe_contable_deposito','numeric');\n\t\t$this->setParametro('id_cuenta_doc','id_cuenta_doc','integer');\n\t\t$this->setParametro('id_proceso_caja','id_proceso_caja','integer');\n\t\t$this->setParametro('id_libro_bancos','id_libro_bancos','integer');\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": "8d9f8a1d50b086c47e89d12993bdda30", "score": "0.5171888", "text": "private function processaTabelas( $aTabelasParaDuplicar) {\n\n foreach ($aTabelasParaDuplicar as $tabela) {\n\n $sSqlCriaTabela = \" CREATE TABLE {$this->nomeImportacao}.{$tabela->nome} AS SELECT * from {$tabela->schema}.{$tabela->nome} \";\n if (!$tabela->incluir_dados) {\n $sSqlCriaTabela .= \" limit 0\";\n }\n $rsCriarTabela = db_query($sSqlCriaTabela);\n if (!$rsCriarTabela) {\n throw new \\Exception(\"Erro ao processar dados da tabela {$tabela->schema}.{$tabela->nome}\");\n }\n\n if ($tabela->sequence != '') {\n\n $sSqlultimoValorSequence = \"select last_value + 1 as valor from {$tabela->schema}.{$tabela->sequence}\";\n $rsULtimoValorSequence = db_query($sSqlultimoValorSequence);\n if (!$rsULtimoValorSequence) {\n throw new \\Exception(\"Erro ao processar valores da sequence da tabela {$tabela->schema}.{$tabela->nome} \");\n }\n $iValorSequence = \\db_utils::fieldsMemory($rsULtimoValorSequence, 0)->valor;\n $sSqlCriarSequence = \"create sequence {$this->nomeImportacao}.{$tabela->sequence} START {$iValorSequence}\";\n $rsCriarSequence = db_query($sSqlCriarSequence);\n if (!$rsCriarSequence) {\n throw new \\Exception(\"Erro ao processar sequence da tabela {$tabela->schema}.{$tabela->nome} \");\n }\n }\n\n if ( isset($tabela->index) && is_array($tabela->index) ) {\n\n foreach ( $tabela->index as $sCampo) {\n\n $rs = db_query(\"create index {$this->nomeImportacao}_{$tabela->nome}_{$sCampo} on {$this->nomeImportacao}.{$tabela->nome}({$sCampo})\");\n if ( !$rs ) {\n throw new \\Exception(\"Não foi possível criar index no schema '{$this->nomeImportacao}' na tabela '{$tabela->nome}' para o campo '{$sCampo}'.\");\n }\n }\n }\n }\n }", "title": "" }, { "docid": "a4f4c904e7414d84820340efee248d4e", "score": "0.51685756", "text": "function lxfimportresults() {\n\t\t$app = JFactory::getApplication();\n\t\n\t\tJTable::addIncludePath(JPATH_ADMINISTRATOR.'/components/com_freestroke/tables');\n\t\n\t\t$overwriteprogram = $app->input->get('overwriteprogram');\n\t\t$deleteresults = $app->input->get('deleteresults');\n\t\t$deletefirst = false;\n\t\tif (! empty($deleteresults)) {\n\t\t\t$deletefirst = true;\n\t\t}\n\t\n\t\tif ($file = $app->input->files->get('importfile')) {\n\t\t\t$handle = fopen($file ['tmp_name'], 'r');\n\t\t\tif (! $handle) {\n\t\t\t $app->enqueueMessage(JText::_('Cannot open uploaded file.'));\n\t\t\t return;\n\t\t\t}\n\t\t\tfclose($handle);\n\t\t\t\t\n\t\t\t// parse the lenex file\n\t\t\t$xmlFile = $this->extractXMLfromArchive($file ['tmp_name']);\n\t\t\t$lenexXml = simplexml_load_file($xmlFile);\n\t\t\tif ($lenexXml === false) {\n\t\t\t\t$app->enqueueMessage(\"Dit bestand wordt niet herkend. Is het wel een LXF bestand?\");\n\t\t\t} else {\n\t\t\t\trequire_once JPATH_COMPONENT . '/logic/lenexparser.php';\n\t\t\t\t$parser = new FreestrokeLenexParser();\n\t\t\t\t$lenex = $parser->parse($lenexXml);\n\t\t\t\t\n\t\t\t\t$meet = $lenex->meets[0];\n\t\t\t\t$name = $meet->name;\n\t\t\t\t$mindate = $meet->sessions[0]->date;\n\t\t\t\t$city = $meet->city;\n\t\t\t\t\n\t\t\t\trequire_once JPATH_COMPONENT . '/helpers/meets.php';\n\t\t\t\t$countMeets = FreestrokeMeetsHelper::countByNameCityAndDate($name, $city, $mindate);\n\t\t\t\tif($countMeets == 1 ) {\n\t\t\t\t\t$meetObject = FreestrokeMeetsHelper::findByNameCityAndDate($name, $city, $mindate);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$countMeets = FreestrokeMeetsHelper::countByCityAndDate($city, $mindate);\n\t\t\t\t\tif($countMeets == 1 ) {\n\t\t\t\t\t\t$meetObject = FreestrokeMeetsHelper::findByCityAndDate($city, $mindate);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif($countMeets > 1) {\n\t\t\t\t\t\t\t$app->enqueueMessage(\"Meerdere wedstrijden komen in aanmerking voor dit bestand.\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$app->enqueueMessage(\"Geen wedstrijd gevonden voor dit bestand.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif($meetObject) {\n\t\t\t\t\tif (! empty($overwriteprogram)) {\n\t\t\t\t\t\trequire_once JPATH_COMPONENT . '/logic/invitationreader.php';\n\t\t\t\t\t\t$reader = new FreestrokeInvitationReader();\n\t\t\t\t\t\t$hasinvite = $reader->process($lenex, $meetObject->id);\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\trequire_once JPATH_COMPONENT . '/logic/resultsreader.php';\n\t\t\t\t\t$componentParams = &JComponentHelper::getParams('com_freestroke');\n\t\t\t\t\t$clubcode = $componentParams->get('associationcode', null);\n\t\t\t\t\t$clubname = $componentParams->get('clubname', null);\n\t\t\t\t\tif ($clubcode != null && strlen($clubcode) > 0) {\n\t\t\t\t\t\t$reader = new FreestrokeResultsReader();\n\t\t\t\t\t\t$hasresults = $reader->process($lenex, $meetObject->id, $clubcode, $clubname, $deletefirst);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Flush the data from the session.\n// \t\t\t\t\t$app->setUserState('com_freestroke.edit.meet.data', null);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\t$this->setRedirect(JRoute::_('index.php?option=com_freestroke&view=meetscalendar'));\n\t}", "title": "" }, { "docid": "ed70057a4b2522e13e30dcaf83cff3a1", "score": "0.51564157", "text": "function choose_importer()\n\t{\n\t\t$title=get_page_title('IMPORT');\n\n\t\t$hooks=new ocp_tempcode();\n\t\t$_hooks=find_all_hooks('modules','admin_import');\n\t\trequire_code('form_templates');\n\t\tforeach (array_keys($_hooks) as $hook)\n\t\t{\n\t\t\trequire_code('hooks/modules/admin_import/'.filter_naughty_harsh($hook));\n\t\t\tif (class_exists('Hook_'.filter_naughty_harsh($hook)))\n\t\t\t{\n\t\t\t\t$object=object_factory('Hook_'.filter_naughty_harsh($hook),true);\n\t\t\t\tif (is_null($object)) continue;\n\t\t\t\t$info=$object->info();\n\t\t\t\t$hooks->attach(form_input_list_entry($hook,false,$info['product']));\n\t\t\t}\n\t\t}\n\t\tif ($hooks->is_empty()) warn_exit(do_lang_tempcode('NO_CATEGORIES'));\n\t\t$fields=form_input_list(do_lang_tempcode('IMPORTER'),do_lang_tempcode('DESCRIPTION_IMPORTER'),'importer',$hooks,NULL,true);\n\n\t\t$post_url=build_url(array('page'=>'_SELF','type'=>'session'),'_SELF');\n\n\t\tbreadcrumb_set_self(do_lang_tempcode('IMPORT'));\n\n\t\treturn do_template('FORM_SCREEN',array('_GUID'=>'02416e5e9d6cb64248adeb9d2e6f2402','GET'=>true,'HIDDEN'=>'','SKIP_VALIDATION'=>true,'SUBMIT_NAME'=>do_lang_tempcode('PROCEED'),'TITLE'=>$title,'FIELDS'=>$fields,'URL'=>$post_url,'TEXT'=>''));\n\t}", "title": "" }, { "docid": "2e4ed1ae7b450ab0e96f363054fbc36a", "score": "0.51542896", "text": "private function get_import_content() {\n\t\n\t\n\t\n\t}", "title": "" }, { "docid": "be300be9d98d7cd1f5a533b11bad7739", "score": "0.5154061", "text": "public function getImport()\n\t{\t\n\t\t$path = Input::get('path', $this->masterDir);\n\t\t//$this->masterDir = \"/Library/WebServer/Documents/pine/pineneedles/contents/02_Documentation/01_Sugar_Editions/01_Sugar_Ultimate/Sugar_Ultimate_7.1/Administration_Guide/07_Developer_Tools/01_Studio/\";\n\t\t$this->loadDirectory($path);\n\t}", "title": "" }, { "docid": "e995b9094119999cb23e74e72ee56ea5", "score": "0.51520157", "text": "static public function mdlLimpiarTablaImport($tabla){\n\t\t\n\t\t$stmt = Conexion::conectar()->prepare(\"DELETE FROM $tabla \");\n\t\n\t\tif($stmt -> execute()){\n\n\t\t\treturn \"ok\";\n\t\t\n\t\t}else{\n\n\t\t\treturn \"error\";\t\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "97be1a1a8c83f7f10b68716c839f9ca6", "score": "0.51478195", "text": "public function f_import_siswa()\n \t{\t\n\t\t$data['judul_halaman'] = \"Form Import Siswa\";\n\t\t$data['files'] = array(\n\t\t\tAPPPATH . 'modules/import_user/views/v-form_import_siswa.php',\n\t\t\t);\n\t\t$hakAkses = $this->session->userdata['HAKAKSES'];\n\t\tif ($hakAkses == 'admin') {\n\t\t\t$this->parser->parse('admin/v-index-admin', $data);\n\t\t} elseif ($hakAkses == 'guru') {\n\t\t\tredirect(site_url('guru/dashboard/'));\n\t\t} elseif ($hakAkses == 'siswa') {\n\t\t\tredirect(site_url('welcome'));\n\t\t} else {\n\t\t\tredirect(site_url('login'));\n\t\t}\n \t}", "title": "" }, { "docid": "048c1d0432d8672d16b159dd3eea2879", "score": "0.51451445", "text": "public function actionImportarDescuentos()\n\t{\n $total_prod = 0;\n $total = 0;\n $actualizar = 0;\n $tabla = \"\";\n $totalInbound = 0;\n $actualizadosInbound = 0;\n\n if (isset($_POST['valido'])) { // enviaron un archivo\n\n /*Primer paso - Validar el archivo*/\n if(isset($_POST[\"validar\"])){\n \n $archivo = CUploadedFile::getInstancesByName('validar');\n \n //Guardarlo en el servidor para luego abrirlo y revisar\n \n if (isset($archivo) && count($archivo) > 0) {\n foreach ($archivo as $arc => $xls) {\n $nombre = Yii::getPathOfAlias('webroot') . '/docs/xlsDescuentosLooks/' . \"Temporal\";//date('d-m-Y-H:i:s', strtotime('now'));\n $extension = '.' . $xls->extensionName; \n\n if ($xls->saveAs($nombre . $extension)) {\n\n } else {\n Yii::app()->user->updateSession();\n Yii::app()->user->setFlash('error', UserModule::t(\"Error al cargar el archivo.\"));\n $this->render('importar_descuentos', array(\n 'tabla' => $tabla,\n 'total' => $total,\n 'actualizar' => $actualizar,\n 'totalInbound' => $totalInbound,\n 'actualizadosInbound' => $actualizadosInbound,\n ));\n Yii::app()->end();\n }\n }\n } \n \n //Si no hubo errores\n if(is_array($resValidacion = $this->validarArchivo($nombre . $extension))){\n \n Yii::app()->user->updateSession();\n Yii::app()->user->setFlash('success', \"Éxito! El archivo no tiene errores.\n Puede continuar con el siguiente paso.<br><br>\n Este archivo contiene <b>{$resValidacion['nLooks']}\n </b> looks.\"); \n } \n \n $this->render('importar_descuentos', array(\n 'tabla' => $tabla,\n 'total' => $total,\n 'actualizar' => $actualizar,\n 'totalInbound' => $totalInbound,\n 'actualizadosInbound' => $actualizadosInbound,\n ));\n Yii::app()->end();\n\n //Segundo paso - Subir el Archivo\n }\n else if(isset($_POST[\"cargar\"])){\n \n $archivo = CUploadedFile::getInstancesByName('url');\n \n if (isset($archivo) && count($archivo) > 0) {\n $nombreTemporal = \"Archivo\";\n $rutaArchivo = Yii::getPathOfAlias('webroot').'/docs/xlsDescuentosLooks/';\n foreach ($archivo as $arc => $xls) {\n\n $nombre = $rutaArchivo.$nombreTemporal;\n $extension = '.' . $xls->extensionName;\n \n if ($xls->saveAs($nombre . $extension)) {\n \n } else {\n Yii::app()->user->updateSession();\n Yii::app()->user->setFlash('error', UserModule::t(\"Error al cargar el archivo.\"));\n $this->render('importar_descuentos', array(\n 'tabla' => $tabla,\n 'total' => $total,\n 'actualizar' => $actualizar,\n 'totalInbound' => $totalInbound,\n 'actualizadosInbound' => $actualizadosInbound,\n ));\n Yii::app()->end();\n \n }\n }\n }\n \n // ==============================================================================\n\n // Validar (de nuevo)\n if( !is_array($resValidacion = $this->validarArchivo($nombre . $extension)) ){\n \n // Archivo con errores, eliminar del servidor\n unlink($nombre . $extension);\n \n $this->render('importar_descuentos', array(\n 'tabla' => $tabla,\n 'total' => $total,\n 'actualizar' => $actualizar,\n 'totalInbound' => $totalInbound,\n 'actualizadosInbound' => $actualizadosInbound,\n ));\n Yii::app()->end();\n }\n \n // Si pasa la validacion\n $sheet_array = Yii::app()->yexcel->readActiveSheet($nombre . $extension);\n $errores = '';\n \n // segundo foreach, si llega aqui es para insertar y todo es valido\n foreach ($sheet_array as $row) {\n \n if ($row['A'] != \"\" && $row['A'] != \"CÓDIGO\") { // para que no tome la primera ni vacios\n \n //Modificaciones a las columnas\n //antes de procesarlas \n //Transformar los datos numericos\n $row['B'] = str_replace(\",\", \".\", $row['B']);\n $row['C'] = str_replace(\",\", \".\", $row['C']);\n $row['D'] = str_replace(\",\", \".\", $row['D']); \n $row['E'] = str_replace(\",\", \".\", $row['E']); \n \n $look = Look::model()->findByPK($row['A']);\n if($look){\n \tif(!$look->hasProductosExternos()){\n\t \t$look->scenario = 'descuentosMasivos';\n\t \tif($row['D'] > 0){\n\t\t \t$look->tipoDescuento = 0;\n\t\t \t$look->valorDescuento = $row['D'];\n\t\t }else{\n\t\t \t$look->tipoDescuento = NULL;\n\t\t \t$look->valorDescuento = NULL;\n\t\t }\n\t \t//$look->save();\n\t \tif(!$look->save()){\n\t \t\tforeach ($look->getErrors() as $key => $value) {\n\t \t\t\t$errores .= $value;\n\t \t\t}\n\t \t}\n \t}\n }\n \n $anterior = $row;\n \n } \n \n }// foreach\n \n $mensajeSuccess = \"Se ha cargado con éxito el archivo.<br>\";\n Yii::app()->user->setFlash(\"success\", $mensajeSuccess.$errores); \n }\n }// isset\n\n $this->render('importar_descuentos', array(\n 'tabla' => $tabla,\n 'total' => $total,\n 'actualizar' => $actualizar,\n 'totalInbound' => $totalInbound,\n 'actualizadosInbound' => $actualizadosInbound,\n ));\n\n\t}", "title": "" }, { "docid": "529c96c0d2c2a3355174e6b1cec3cc62", "score": "0.51325387", "text": "public function actprecios($archivo){\n $lineas= file($archivo);\n $i=0;\n $done=0;\n $error=0;\n\n ?>\n <center>\n \t<table border='1'>\n \t\t<tr>\n \t\t\t<th>Linea</th>\n \t\t\t<th>Resultado</th> \n \t\t</tr>\n \t\t\t<?php \n\t\t\t\tforeach ($lineas as $linea){\n\n\t\t\t /*Cuando pase la primera pasada se incrementar?nuestro valor y a la siguiente pasada ya \n\t\t\t entraremos en la condici?, de esta manera conseguimos que no lea la primera liea.*/\n\t\t\t $i++;\n\n\t\t\t //abrimos bucle\n\t\t\t /*si es diferente a 0 significa que no se encuentra en la primera l?ea \n\t\t\t (con los t?ulos de las columnas) y por lo tanto puede leerla*/\n\t\t\t if($i != 0){ \n\n\t\t\t //abrimos condici?, solo entrar?en la condici? a partir de la segunda pasada del bucle.\n\t\t\t /* La funcion explode nos ayuda a delimitar los campos, por lo tanto ir?\n\t\t\t leyendo hasta que encuentre un ; */\n\t\t\t $datos = explode(\";\",$linea);\n\n\t\t\t //Almacenamos los datos que vamos leyendo en una variable\n\t\t\t //usamos la funci? utf8_encode para leer correctamente los caracteres especiales\n\t\t\t $codigo = $datos[0];\n\t\t\t $preci = intval($datos[1]);\n\n\t\t\t //guardamos en base de datos la l?ea leida\n\t\t\t $res= $this->conexion->query(\"SELECT id FROM dtm_productos WHERE codigo='$codigo'\");\n\t\t\t if (mysqli_num_rows($res)>=1) { \n\n\t\t\t if ($this->conexion->query(\"UPDATE dtm_productos SET precio='$preci' WHERE codigo='$codigo'\")) {\n\t\t\t //cada vez que encuentra un codigo en la consulta suma 1 a done\n\t\t\t $done=$done+1;\n\t\t\t //Y MANDA UNA FILA DE TIPO TABLA haciendo la descripcion del del cogigo y el precio\n\t\t\t ?>\n\t\t \t<tr>\n\t\t \t\t<td><?php echo $i;?></td>\n\t\t \t\t<td> El producto <font color='green'><?php echo $codigo;?></font> ahora es <?php echo $preci;?> $ </td> \n\t\t \t</tr>\n\t\t\t <?php \n\t\t\t }\n\t\t\t }else{\n\t\t\t $error=$error+1;\n\t\t\t ?>\n\t\t\t <tr>\n\t\t\t \t<td><?php echo $i;?></td>\n\t\t\t \t<td> <font color='red'><?php echo $codigo;?></font> este precio no se actualizara debido a que no existe el codigo<br></td> \n\t\t\t </tr>\n\t\t\t <?php \n\t\t\t }\n\t \n\t \t\t}//cerramos condicional\n \n\t\t\t\t}//cerramos bucle\n\n\t\t\t if ($i==0){\n $historial = new historial();\n $historial->registro_historial('Se intentó cambiar el precio de los productos desde un archivo');\n\t\t\t ?>\n\t\t <script>\n\t\t alert(\"Error al subir archivo\");\n\t\t location.href=\"paneladm.php\";\n\t\t </script>\n\t\t\t <?php\n\t\t\t }else{\n $historial = new historial();\n $historial->registro_historial('Se cambió con éxito el precio de los productos desde un archivo. Se actualizaron '.$done.' productos');\n\t\t \t\t?>\n\t\t\t\t </table>\n\t\t\t \t<br>\n\t\t\t \tSe actualizaron <?php echo $done;?> productos y <?php echo $error;?> codigos no existen en los productos del sistema\n\t\t\t \t<br>\n\t\t\t \t<a href='paneladm.php'>Ir al panel de administracion</a>\t\n\t\t</center>\n\t\t\t\t<?php \n\t\t \t} \n\t}", "title": "" }, { "docid": "8829bc3808609c2f3886fc09cb375943", "score": "0.51217324", "text": "function import_file()\n {\n $this->load_ui();\n\n $this->ui->import_file();\n }", "title": "" }, { "docid": "b95c433b5207e3950dbef368e38928a6", "score": "0.5117949", "text": "function SITRAImport($sched, $o=NULL, $more=NULL) {\n XLogs::notice('ModTif::SITRAImport', 'start import');\n $this->NSURI=$this->SITRANSUri;\n $params=XSystem::xml2array($this->SITRADirs);\n foreach($params as $rechname => $dir){\n $this->acttype='SITRA ('.$rechname.')';\n $list=array();\n $list2=array();\n $fdir=opendir($dir);\n // Liste les fichiers à traiter et les tri par date de création\n while($file=readdir($fdir)) { \n $matches=array();\n if(is_file($dir.$file)){\n if(preg_match($this->SITRAExportFileRegex,$file,$matches) || preg_match($this->SITRADelFileRegex,$file,$matches))\n $list[filemtime($dir.$file)][]=$file;\n elseif(preg_match($this->SITRASelectionsFileRegex,$file,$matches))\n $list2[filemtime($dir.$file)][]=$file;\n elseif(preg_match($this->SITRAImagesFileRegex,$file))\n if ($more->keep_files)\n rename($dir.$file, TZR_VAR2_DIR.'sitra_backup/'.$file);\n else\n unlink($dir.$file);\n }\n }\n ksort($list);\n // Traite les imports et les suppressions\n if ($more->keep_files)\n @mkdir(TZR_VAR2_DIR.'sitra_backup/');\n foreach($list as $mfiles){\n foreach($mfiles as $file){\n XLogs::notice('ModTif::SITRAImport', \"processing $file\");\n $msg .= \"processing $file\\n\";\n $i++;\n echo $i.' : '.$file.'...';\n if(preg_match($this->SITRAExportFileRegex,$file)){\n $this->_import(array('file' => $dir.$file));\n }elseif(preg_match($this->SITRADelFileRegex,$file)){\n $content=file_get_contents($dir.$file);\n $dom=new DOMDocument();\n $dom->preserveWhiteSpace=false;\n $dom->validateOnParse = true;\n $dom->loadXML($content);\n $xpath=new DOMXpath($dom);\n $todels=$xpath->query('/ListeOI/identifier');\n foreach($todels as $todel){\n $oid=$this->prefixSQL.'DC:'.preg_replace('/[^a-z0-9_-]/i','_',$todel->textContent);\n XLogs::notice('ModTif::SITRAImport', \"deleting $oid\");\n $this->del(array('oid' => $oid,'_options' => array('local' => true),'_nolog' => true));\n }\n }\n if ($more->keep_files)\n rename($dir.$file, TZR_VAR2_DIR.'sitra_backup/'.$file);\n else\n unlink($dir.$file);\n }\n }\n foreach($list2 as $mfiles2){\n foreach($mfiles2 as $file2){\n XLogs::notice('ModTif::SITRAImport', \"processing $file2 for selection\");\n $msg .= \"processing $file2 for selection\\n\";\n $xssels = XDataSource::objectFactoryHelper8('BCLASS=XDSTable&SPECS='.$this->prefixSQL.'LS_Selections');\n $content=file_get_contents($dir.$file2);\n $dom=new DOMDocument();\n $dom->preserveWhiteSpace=false;\n $dom->validateOnParse = true;\n $dom->loadXML($content);\n $xpath=new DOMXpath($dom);\n $sels=$xpath->query('/Selections/Selection');\n $selstorec=array();\n foreach($sels as $sel){\n $ar=array();\n $ar['tplentry']=TZR_RETURN_DATA;\n foreach($sel->attributes as $selatt){\n $attname = $selatt->name;\n $attfield = 'att_'.$attname;\n if(isset($xssels->desc[$attfield])){\n $value=$selatt->value;\n $ar[$attfield]=$value;\n if($attname == 'code')\n $oid=$this->prefixSQL.'LS_Selections:'.$value;\n }\n }\n $rcss = countSelectQuery('select count(*) from '.$this->prefixSQL.'LS_Selections where KOID=\"'.$oid.'\" limit 1');\n if($rcss > 0){\n $ar['oid']=$oid;\n $xssels->procEdit($ar);\n }else{\n $ar['newoid']=$oid;\n $xssels->procInput($ar);\n }\n foreach($sel->childNodes as $node){\n $dcoid=$this->prefixSQL.'DC:'.preg_replace('/[^a-z0-9_-]/i','_',$node->nodeValue);\n $selstorec[$dcoid][]=$oid;\n }\n }\n foreach($selstorec as $oiddc => $asels){\n $rcdc = countSelectQuery('select count(*) from '.$this->table.' where KOID=\"'.$oiddc.'\" limit 1');\n if($rcdc){\n $this->procEdit(array('tplentry' => TZR_RETURN_DATA,'oid' => $oiddc,'dc__selection' => implode('||',$asels)));\n }\n }\n if (@$more->keep_files)\n rename($dir.$file2, TZR_VAR2_DIR.'sitra_backup/'.$file2);\n else\n unlink($dir.$file2);\n }\n }\n }\n if (is_object($sched))\n $sched->setStatusJob($o->KOID, 'finished', $msg);\n else\n echo $msg;\n XLogs::notice('ModTif::SITRAImport', 'end import');\n }", "title": "" }, { "docid": "2b03e8aba79da44b3a3215739c3171dd", "score": "0.5116216", "text": "public function import($in) {\n\t\t$this->exchangeArray( array_merge($this->export(), $in) );\n\t}", "title": "" }, { "docid": "445ebe2f8f923e5678909fcf98923b73", "score": "0.51161003", "text": "public function learningline()\n {\n $data = array(\n 'judul_halaman' => 'Sibejoo - Learning Line',\n 'judul_header' => 'Layanan Edu Drive',\n );\n\n $konten = 'modules/layanan/views/r-layanan-learning.php';\n\n $data['files'] = array(\n APPPATH . 'modules/homepage/views/r-header-detail.php',\n APPPATH . $konten,\n APPPATH . 'modules/homepage/views/r-footer.php',\n );\n\n $this->parser->parse('r-index-layanan', $data);\n }", "title": "" }, { "docid": "03df9c4afc7cbcc69c5871dfce2c5d0d", "score": "0.5109327", "text": "public function importPost(ImportTranslationRequest $request)\n {\n $filePath = $request->file->path();\n\n $fileds = ['key', 'value'];\n $file = fopen($filePath, \"r\");\n\n $i = 1;\n $fieldValue = [];\n $fieldValidation = [];\n $fieldValidationMsg = [];\n\n while (($getData = fgetcsv($file, 10000, \",\")) !== FALSE){\n if($i == 1){\n $fieldValue['title_name'] = count($getData);\n $fieldValidation['title_name'] = 'required|numeric|min:2|max:2';\n $fieldValidationMsg['title_name.*'] = 'Must be add 2 column in first row of file with Key and Value';\n }else{\n // Key Field\n $fieldValue['file'][$i]['key'] = isset($getData[0]) ? $getData[0] : '';\n $fieldValidation['file.'.$i.'.key'] = 'required';\n $fieldValidationMsg['file.'.$i.'.key.required'] = 'Row no.'.$i. ' key field is required.';\n\n // Value Field\n $fieldValue['file'][$i]['value'] = isset($getData[1]) ? $getData[1] : '';\n $fieldValidation['file.'.$i.'.value'] = 'required';\n $fieldValidationMsg['file.'.$i.'.value.required'] = 'Row no.'.$i. ' value field is required.';\n }\n ++$i;\n }\n\n $validator = Validator::make($fieldValue, $fieldValidation, $fieldValidationMsg);\n\n if ($validator->fails()) {\n return redirect()->back()\n ->withErrors($validator)\n ->withInput();\n }\n\n $data = $this->openJSONFile($request->language_id);\n foreach ($fieldValue['file'] as $translate) {\n $data[$translate['key']] = $translate['value'];\n }\n $this->saveJSONFile($request->language_id, $data);\n\n session()->put('success', count($fieldValue['file']).' '.__('admin.general.importMsg'));\n return back();\n }", "title": "" }, { "docid": "c83d0dc6ac380dda04c5969aacd2c078", "score": "0.51038617", "text": "public static function import_process() {}", "title": "" }, { "docid": "00c3dfedcb33720fb9608414ca83a20c", "score": "0.51018155", "text": "public function load() {\n for ($i = 0; $i < 100; $i++) {\n $r = $i / 100;\n $g = $i / 200;\n $b = (100 - $i) / 100;\n // altera a cor da fonte \n $this->setColor($r, $g, $b);\n // adiciona o texto no documento - avança automaticamente para proxima linha\n $this->text((($i == 0) ? 'Fonte: ' . $font . ' - ' : '') . 'Linha = ' . $i . '[ y = ' . $this->getY() . ' ] ');\n }\n // executa o report obtendo a url do arquivo gerado\n $url = $this->execute();\n $this->page->window($url);\n }", "title": "" }, { "docid": "97048ee9e9cfa38dd706f37a7cf493b0", "score": "0.510126", "text": "protected function processarDetalhe($linha)\n {\n $detail = $this->createDetail();\n\n $bancoEmissor = new Banco();\n $bancoEmissor\n ->setAgencia($linha->substr(22, 1)->trim())\n ->setDvAgencia($linha->substr(31, 1)->trim())\n ->setConta($linha->substr(23, 8)->trim())\n ->setDvConta($linha->substr(31, 1)->trim());\n\n $bancoRecebedor = new Banco();\n $bancoRecebedor\n ->setCod($linha->substr(166, 3)->trim())\n ->setAgencia($linha->substr(169, 4)->trim())\n ->setDvAgencia($linha->substr(173, 1)->trim());\n\n $detail\n ->setBancoEmissor($bancoEmissor)\n ->setBancoRecebedor($bancoRecebedor)\n ->setRegistro($linha->substr(1, 1)->trim())\n ->setTaxaDesconto($this->formataNumero($linha->substr(96, 5)->trim()))\n ->setTaxaIof($linha->substr(101, 5)->trim())\n ->setCateira($linha->substr(107, 2)->trim())\n ->setComando($linha->substr(109, 2)->trim())\n ->setDataOcorrencia($this->createDate($linha->substr(111, 6)->trim()))\n ->setNumTitulo($linha->substr(117, 10)->trim())\n ->setDataVencimento($this->createDate($linha->substr(147, 6)->trim()))\n ->setValor($this->formataNumero($linha->substr(153, 13)->trim()))\n ->setEspecie($linha->substr(174, 2)->trim())\n ->setDataCredito($this->createDate($linha->substr(176, 6)->trim()))\n ->setValorTarifa($this->formataNumero($linha->substr(182, 7)->trim()))\n ->setOutrasDespesas($this->formataNumero($linha->substr(189, 13)->trim()))\n ->setJurosDesconto($this->formataNumero($linha->substr(202, 13)->trim()))\n ->setIofDesconto($this->formataNumero($linha->substr(215, 13)->trim()))\n ->setValorAbatimento($this->formataNumero($linha->substr(228, 13)->trim()))\n ->setDescontoConcedido($this->formataNumero($linha->substr(241, 13)->trim()))\n ->setValorRecebido($this->formataNumero($linha->substr(254, 13)->trim()))\n ->setJurosMora($this->formataNumero($linha->substr(267, 13)->trim()))\n ->setOutrosRecebimentos($this->formataNumero($linha->substr(280, 13)->trim()))\n ->setAbatimentoNaoAprovado($this->formataNumero($linha->substr(293, 13)->trim()))\n ->setValorLancamento($this->formataNumero($linha->substr(306, 13)->trim()))\n ->setIndicativoDc($linha->substr(319, 1)->trim())\n ->setIndicadorValor($linha->substr(320, 1)->trim())\n ->setValorAjuste($this->formataNumero($linha->substr(321, 12)->trim()))\n ->setCanalPagTitulo($linha->substr(393, 2)->trim())\n ->setSequencial($linha->substr(395, 6)->trim());\n\n return $detail;\n }", "title": "" }, { "docid": "6c3d8fdf9c83ec4be567653db091f9c0", "score": "0.50995815", "text": "public function atualizarDadosEscolaridade($oLinha) {\n\n $oDaoRechumano = new cl_rechumano();\n if (isset($oLinha->escolaridade) && !empty($oLinha->escolaridade)) {\n $oDaoRechumano->ed20_i_escolaridade = $oLinha->escolaridade;\n }\n\n $oDaoRechumano->ed20_i_codigo = $this->iCodigoDocente;\n $oDaoRechumano->alterar($oDaoRechumano->ed20_i_codigo);\n\n if ($oDaoRechumano->erro_status == '0') {\n throw new Exception(\"Erro na alteração dos dados de endereço do Recurso Humano. Erro da classe: \".$oDaoRechumano->erro_msg);\n }\n $oDaoCursoFormacao = new cl_cursoformacao();\n $oDaoFormacao = new cl_formacao();\n $oDaoFormacao->excluir(null,\"ed27_i_rechumano = {$this->iCodigoDocente}\");\n $aFormacao = array();\n for ($i = 1; $i <= 3; $i++) {\n\n if ( isset($oLinha->{\"situacao_curso_superior_$i\"}) && isset($oLinha->{\"formacao_complementacao_pedagogica_$i\"})\n && isset($oLinha->{\"codigo_curso_superior_$i\"}) && isset($oLinha->{\"ano_inicio_curso_superior_$i\"})\n && isset($oLinha->{\"ano_conclusao_curso_superior_$i\"}) && isset($oLinha->{\"tipo_instituicao_curso_superior_$i\"})\n && isset($oLinha->{\"instituicao_curso_superior_$i\"})) {\n\n $aFormacao[] = array(trim($oLinha->{\"situacao_curso_superior_$i\"}),\n trim($oLinha->{\"formacao_complementacao_pedagogica_$i\"}),\n trim($oLinha->{\"codigo_curso_superior_$i\"}),\n trim($oLinha->{\"ano_inicio_curso_superior_$i\"}),\n trim($oLinha->{\"ano_conclusao_curso_superior_$i\"}),\n trim($oLinha->{\"tipo_instituicao_curso_superior_$i\"}),\n trim($oLinha->{\"instituicao_curso_superior_$i\"})\n );\n }\n }\n\n /**\n * Inclui os cursos do Recurso Humano (Aba Formação)\n */\n foreach ($aFormacao as $iFormacao => $aFormacaoDecente) {\n\n if ( empty($aFormacaoDecente[2]) ) {\n continue;\n }\n\n $sWhereCursoFormacao = \"ed94_c_codigocenso = '\".$aFormacaoDecente[2].\"'\";\n $sSqlCursoFormacao = $oDaoCursoFormacao->sql_query(\"\", \"*\", \"\", $sWhereCursoFormacao);\n $rsCursoFormacao = $oDaoCursoFormacao->sql_record($sSqlCursoFormacao);\n\n if ($oDaoCursoFormacao->numrows > 0) {\n\n if ($aFormacaoDecente[0] != null) {\n\n $oDaoFormacao->ed27_i_rechumano = $this->iCodigoDocente;\n $oDaoFormacao->ed27_i_cursoformacao = db_utils::fieldsmemory($rsCursoFormacao, 0)->ed94_i_codigo;\n $oDaoFormacao->ed27_c_situacao = 'CON';\n $oDaoFormacao->ed27_i_licenciatura = (isset($aFormacaoDecente[0]) ? $aFormacaoDecente[0] : '');\n $oDaoFormacao->ed27_i_anoconclusao = (isset($aFormacaoDecente[4]) ? $aFormacaoDecente[4] : '');\n $oDaoFormacao->ed27_i_censosuperior = (isset($aFormacaoDecente[5]) ? $aFormacaoDecente[5] : '');\n $oDaoFormacao->ed27_i_censoinstsuperior = (isset($aFormacaoDecente[6]) ? $aFormacaoDecente[6] : '');\n $oDaoFormacao->incluir(null);\n if ($oDaoFormacao->erro_status == '0') {\n\n throw new Exception(\"Erro na alteração dos dados da Formação do professor. Erro da classe: \".\n $oDaoFormacao->erro_msg\n );\n\n }\n }\n }\n }\n }", "title": "" }, { "docid": "ab6f13f25184f61c3a9647c08849ae9f", "score": "0.50956666", "text": "function exec_spipbb_admin_import()\n{\n\tspipbb_log(\"CALL\",3,\"exec_spipbb_admin_import()\");\n\n\t# initialiser spipbb\n\tinclude_spip('inc/spipbb_init');\n\n\tglobal $connect_statut, $connect_id_rubrique;\n\t// [fr] Pour le moment l acces est reserve a l administrateur, a voir plus tard\n\t// [fr] pour tester plutot en fonction rubrique de l import comme pour les articles...\n\t// [en] For now the access is only allowed to the admin, will check it later\n\t// [en] in order to check it for each rubrique like for the articles...\n\n\tif ($connect_statut != '0minirezo') {\n\t\tdebut_page(_T('icone_admin_plugin'), \"configuration\", \"plugin\");\n\t\techo \"<strong>\"._T('avis_non_acces_page').\"</strong>\";\n\t\techo fin_page();\n\t\texit;\n\t}\n\n\t// [fr] initialisations\n\t// [en] initialize\n\n\t// [fr] La conf pre-existante domine\n\t// [en] Pre-existing config leads\n\t$id_rubrique = $GLOBALS['spipbb']['id_secteur'];\n\tif (!$id_rubrique) {\n\t\tif ($connect_id_rubrique)\n\t\t\t$id_rubrique = $connect_id_rubrique[0];\n\t\telse {\n\t\t\t$row_rub = sql_fetsel('id_rubrique','spip_rubriques','','',array('id_rubriques DESC'),'0,1');\n\t\t\t$id_rubrique = $row_rub['id_rubrique'];\n\t\t}\n\t\tif (!autoriser('creerarticledans','rubrique',$id_rubrique )){\n\t\t\t// [fr] manque de chance, la rubrique n'est pas autorisee, on cherche un des secteurs autorises\n\t\t\t// [en] too bad , this rubrique is not allowed, we look for the first allowed sector\n\t\t\t$res = sql_select('id_rubrique','spip_rubriques',array('id_parent=0'));\n\t\t\twhile (!autoriser('creerarticledans','rubrique',$id_rubrique ) && $row_rub = sql_fetch($res)){\n\t\t\t\t$id_rubrique = $row_rub['id_rubrique'];\n\t\t\t}\n\t\t}\n\t}\n\t// [fr] recuperer les donnees du secteur\n\t// [en] load the sector datas\n\t$row_rub = sql_fetsel('id_secteur','spip_rubriques',array(\"id_rubrique=\".$GLOBALS['spipbb']['id_secteur']));\n\t$id_secteur = $row_rub['id_secteur'];\n\n\t$commencer_page = charger_fonction('commencer_page', 'inc');\n\techo $commencer_page(_T('spipbb:admin_titre_page_'._request('exec')), \"forum\", \"spipbb_admin\", '');\n\n\tif (empty($id_rubrique)\n\t OR !autoriser('creerarticledans','rubrique',$id_rubrique)) {\n\t\techo \"<strong>\"._T('avis_acces_interdit').\"</strong>\";\n\t\techo fin_page();\n\t\texit;\n\t}\n\n\techo \"<a name='haut_page'></a>\";\n\techo debut_gauche('',true);\n\t\tspipbb_menus_gauche(_request('exec'));\n\n\techo creer_colonne_droite($id_rubrique,true);\n\techo debut_droite($id_rubrique,true);\n\n\techo spipbb_import_formulaire($id_rubrique,$id_secteur);\n\techo fin_gauche(), fin_page();\n}", "title": "" }, { "docid": "78c55b8797039b6ce2f2bad09c77142a", "score": "0.5094013", "text": "private function _idlinea($idfabricante) \n\t{\n\n\t\t$consulta_idlinea = new Mysql;\n\t\t$sql_linea = \"SELECT idlinea FROM lineas WHERE eliminado = 0 AND idfabricante='$idfabricante';\";\n\t\t$consulta_idlinea->ejecutar_consulta($sql_linea);\n\t\tforeach($consulta_idlinea->registros as $registro) {\n\t\t\t$this->_lineas[] = 'idlinea = ' . $registro->idlinea;\n\t\t}\n\t\t$consulta_idlinea->__destruct;\n\t\t\n\t}", "title": "" }, { "docid": "336e8bb7039dc553a1590dd9af82142c", "score": "0.5086523", "text": "function psaume_invitatoire($ref,$ant_lat,$ant_fr) {\r\n\r\n$row = 0;\r\n$fp = fopen (\"calendrier/liturgia/$ref.csv\",\"r\");\r\n while ($data = fgetcsv ($fp, 1000, \";\")) {\r\n switch ($row){\r\n\r\n case 0:\r\n if ($data[0]!=\"&nbsp;\") {\r\n $latin=\"<b><center><font color=red>$data[0]</font></b></center>\";\r\n $francais=\"<b><center><font color=red>$data[1]</b></font></center>\";\r\n }\r\n\r\n break;\r\n\r\n\r\n\r\n case 1:\r\n if ($data[0]!=\"&nbsp;\") {\r\n $latin=\"<center><font color=red>$data[0]</font></center>\";\r\n $francais=\"<center><font color=red>$data[1]</font></center>\";\r\n }\r\n\r\n break;\r\n\r\n\r\n\r\n case 2:\r\n\r\n if ($data[0]!=\"&nbsp;\") {\r\n $latin=\"<center><i>$data[0]</i></center>\";\r\n $francais=\"<center><i>$data[1]</i></center>\";\r\n }\r\n\r\n break;\r\n\r\n\r\n\r\n case 3:\r\n\r\n if($data[0]==\"antiphona\"){\r\n $latin=\"V/. \".$ant_lat;\r\n $francais=\"V/. \".$ant_fr;\r\n }\r\n\r\n break;\r\n\r\n\r\n\r\n default:\r\n\r\n switch ($data[0]){\r\n\r\n case \"antiphona\":\r\n $latin=\"R/. \".$ant_lat;\r\n $francais=\"R/. \".$ant_fr;\r\n break;\r\n\r\n default :\r\n $latin=$data[0];\r\n $francais=$data[1];\r\n break;\r\n }\r\n\r\n break;\r\n\r\n }\r\n\r\n //$num = count ($data);\r\n\r\n //print \"<p> $num fields in line $row: <br>\\n\";\r\n\r\n $psaume_invitatoire .=\"\r\n \r\n <tr>\r\n <td id=\\\"colgauche\\\">$latin</td>\r\n <td id=\\\"coldroite\\\">$francais</td>\r\n </tr>\";\r\n $row++;\r\n }\r\n //$psaume_invitatoire.=\"</table>\";\r\n fclose ($fp);\r\n return $psaume_invitatoire;\r\n\r\n}", "title": "" }, { "docid": "d467cf4a808f71c583b5c6a57c3adc1e", "score": "0.50788754", "text": "function listarCatalogosLinea($cadena) {\n global $sql;\n $respuesta = array();\n\n $tablas = array(\n 'c' => 'catalogos',\n 'm' => 'motos',\n 'l' => 'lineas'\n );\n $columnas = array(\n 'id' => 'c.id',\n 'idLinea' => 'l.id',\n 'nombre' => 'l.nombre'\n );\n $condicion = 'c.id_moto = m.id AND m.id_linea = l.id AND l.nombre LIKE \"%' . $cadena . '%\" AND m.activo = \"1\"';\n\n $consulta = $sql->seleccionar($tablas, $columnas, $condicion, 'l.id', 'm.nombre ASC', 0, 20);\n\n while ($fila = $sql->filaEnObjeto($consulta)) {\n $respuesta1 = array();\n $respuesta1['label'] = $fila->nombre;\n $respuesta1['value'] = $fila->idLinea;\n $respuesta[] = $respuesta1;\n }\n\n Servidor::enviarJSON($respuesta);\n}", "title": "" }, { "docid": "3577f0d69fcef1a4cc92c7e936f9c7a9", "score": "0.5072285", "text": "public function testImport() {\n // We use vocabularies to demonstrate importing and rolling back\n // configuration entities.\n $vocabulary_data_rows = [\n ['id' => '1', 'name' => 'categories', 'weight' => '2'],\n ['id' => '2', 'name' => 'tags', 'weight' => '1'],\n ];\n $ids = ['id' => ['type' => 'integer']];\n $definition = [\n 'id' => 'vocabularies',\n 'migration_tags' => ['Import and rollback test'],\n 'source' => [\n 'plugin' => 'embedded_data',\n 'data_rows' => $vocabulary_data_rows,\n 'ids' => $ids,\n ],\n 'process' => [\n 'vid' => 'id',\n 'name' => 'name',\n 'weight' => 'weight',\n ],\n 'destination' => ['plugin' => 'entity:taxonomy_vocabulary'],\n ];\n\n /** @var \\Drupal\\migrate\\Plugin\\MigrationInterface $vocabulary_migration */\n $vocabulary_migration = \\Drupal::service('plugin.manager.migration')->createStubMigration($definition);\n $vocabulary_id_map = $vocabulary_migration->getIdMap();\n\n // Test id list import.\n $executable = new MigrateExecutable($vocabulary_migration, $this, ['idlist' => 2]);\n $executable->import();\n\n /** @var \\Drupal\\taxonomy\\Entity\\Vocabulary $vocabulary */\n $vocabulary = Vocabulary::load(1);\n $this->assertFalse($vocabulary);\n $map_row = $vocabulary_id_map->getRowBySource(['id' => 1]);\n $this->assertFalse($map_row);\n /** @var \\Drupal\\taxonomy\\Entity\\Vocabulary $vocabulary */\n $vocabulary = Vocabulary::load(2);\n $this->assertTrue($vocabulary);\n $map_row = $vocabulary_id_map->getRowBySource(['id' => 2]);\n $this->assertNotNull($map_row['destid1']);\n }", "title": "" }, { "docid": "d34b4a9ea8ddc052cbeaebe989d15a94", "score": "0.50658613", "text": "function import_file()\n {\n $this->load_engine();\n $this->engine->import_file();\n }", "title": "" }, { "docid": "b802d7e5ea1e2e89e4e2fd276c0d0617", "score": "0.5062997", "text": "public function importIndex(int $idNovel);", "title": "" }, { "docid": "d0685ce7815abf5911932765b9a2b181", "score": "0.50593734", "text": "public function import_exec() {\n setlocale( LC_ALL, 'ja_JP.UTF-8' );\n\n $this->csv_file = $_POST['file'];\n\n if ( !$this->check() ) {\n $this->response['status'] = 'ng';\n $this->response['msg'] = 'not csv';\n }\n\n // set the shop-csv\n if ( get_option( 'shop-csv-file' ) === false ) {\n add_option( 'shop-csv-file', $this->csv_file );\n } else {\n update_option( 'shop-csv-file', $this->csv_file );\n }\n\n\n if ( strpos( $this->csv_file, 'sched' ) > -1 ) {\n // カスタム営業時間\n $this->sched_create_update_insert_query();\n } else {\n // 店舗情報のデータ\n $this->create_update_insert_query();\n }\n\n echo json_encode( $this->response );\n return;\n }", "title": "" }, { "docid": "dda772adbc878877a9727e2a6447d7a0", "score": "0.5050523", "text": "private function imprimeLinhasEmBranco ($iLinhasEmBranco) {\n\n while ($iLinhasEmBranco != 0) {\n\n $this->oPdf->Cell(5, 4, \"\", 1);\n $this->oPdf->Cell(65, 4, \"\", 1, 0, \"L\");\n $this->imprimeColunasEmBranco(9);\n $this->oPdf->Cell(10, 4, \"\", 1, 1);\n\n $iLinhasEmBranco--;\n }\n }", "title": "" }, { "docid": "fe19a0bd6716d4e621fdecad606ee83e", "score": "0.50464696", "text": "private function import()\n {\n global $_ARRAYLANG, $objTemplate;\n \n \\Permission::checkAccess(102, 'static');\n \n $objTemplate->addBlockfile('ADMIN_CONTENT', 'skins_import', 'skins_import.html');\n $this->pageTitle = $_ARRAYLANG['TXT_THEME_IMPORT'];\n \n if (!empty($_GET['import'])) {\n $this->importFile();\n }\n \n $objTemplate->setVariable(array(\n 'TXT_THEMES_EDIT' => $_ARRAYLANG['TXT_SETTINGS_MODFIY'],\n 'TXT_THEMES_CREATE' => $_ARRAYLANG['TXT_CREATE'],\n 'TXT_THEME_IMPORT' => $_ARRAYLANG['TXT_THEME_IMPORT'],\n 'TXT_THEME_LOCAL_FILE' => $_ARRAYLANG['TXT_THEME_LOCAL_FILE'],\n 'TXT_THEME_SPECIFY_URL' => $_ARRAYLANG['TXT_THEME_SPECIFY_URL'],\n 'TXT_THEME_IMPORT_INFO' => $_ARRAYLANG['TXT_THEME_IMPORT_INFO'],\n 'TXT_THEME_NO_URL_SPECIFIED' => $_ARRAYLANG['TXT_THEME_NO_URL_SPECIFIED'],\n 'TXT_THEME_NO_FILE_SPECIFIED' => $_ARRAYLANG['TXT_THEME_NO_FILE_SPECIFIED'],\n 'TXT_THEME_FILESYSTEM' => sprintf($_ARRAYLANG['TXT_THEME_FILESYSTEM'], \\Cx\\Core\\Core\\Controller\\Cx::instanciate()->getThemesFolderName()),\n 'THEMES_MENU' => $this->getDropdownNotInDb(),\n 'TXT_THEME_DO_IMPORT' => $_ARRAYLANG['TXT_THEME_DO_IMPORT'],\n 'TXT_THEME_IMPORT_THEME' => $_ARRAYLANG['TXT_THEME_IMPORT_THEME'],\n 'TXT_VIEWMANAGER_THEME_SELECTION_TXT' => $_ARRAYLANG['TXT_VIEWMANAGER_THEME_SELECTION_TXT'],\n 'TXT_VIEWMANAGER_THEME' => $_ARRAYLANG['TXT_VIEWMANAGER_THEME'],\n 'TXT_VIEWMANAGER_SOURCE' => $_ARRAYLANG['TXT_VIEWMANAGER_SOURCE'],\n ));\n \n }", "title": "" }, { "docid": "29926579059e84a54b0b38318d3c701e", "score": "0.5032522", "text": "public function criteriaImport()\n {\n include APPPATH . 'third_party/PHPExcel/PHPExcel.php';\n\n $excelreader = new PHPExcel_Reader_Excel2007();\n $loadexcel = $excelreader->load('excel/' . $this->filename . '.xlsx'); // Load file yang telah diupload ke folder excel\n $sheet = $loadexcel->getActiveSheet()->toArray(null, true, true, true);\n\n // Buat sebuah variabel array untuk menampung array data yg akan kita insert ke database\n $data = array();\n\n $numrow = 1;\n foreach ($sheet as $row) {\n // Cek $numrow apakah lebih dari 1\n // Artinya karena baris pertama adalah nama-nama kolom\n // Jadi dilewat saja, tidak usah diimport\n if ($numrow > 1) {\n // Kita push (add) array data ke variabel data\n array_push($data, array(\n 'code_criteria' => $row['A'],\n 'criteria' => $row['B'],\n 'weight' => $row['C'],\n 'attribute_id' => $row['D'],\n ));\n }\n\n $numrow++; // Tambah 1 setiap kali looping\n }\n\n $this->db->insert_batch('dss_criteria_ipa', $data);\n\n redirect(\"IPAManagement/criteria\");\n }", "title": "" }, { "docid": "fa1aa7476273818b3b8e14c2e5d955ef", "score": "0.502613", "text": "function import(){\n\t \tinclude APPPATH.'third_party/PHPExcel/PHPExcel.php'; \n\t \t$excelreader = new PHPExcel_Reader_Excel2007(); \n\t $loadexcel = $excelreader->load('excel/'.$this->filename.'.xlsx'); // Load file yang telah diupload ke folder excel \n\t $sheet = $loadexcel->getActiveSheet()->toArray(null, true, true ,true); // Buat sebuah variabel array untuk menampung array data yg akan kita insert ke database \n\t $data = array(); \n\t $numrow = 1; \n\t foreach($sheet as $row){ // Cek $numrow apakah lebih dari 1 // Artinya karena baris pertama adalah nama-nama kolom // Jadi dilewat saja, tidak usah diimport \n\t if($numrow > 1){ // Kita push (add) array data ke variabel data \n\t \tarray_push($data, array( \n\t 'id_barang'=>$row['A'], // Insert data nis dari kolom A di excel \n\t 'nama_barang'=>$row['B'], // Insert data nama dari kolom B di excel \n\t 'satuan_besar'=>$row['C'],// Insert data alamat dari kolom D di excel \n\t 'modal'=>str_replace(\",\", \"\", $row['D']),// Insert data alamat dari kolom D di excel \n\t 'harga_jual'=>str_replace(\",\", \"\", $row['E']),// Insert data alamat dari kolom D di excel \n\t 'walk'=>str_replace(\",\", \"\", $row['F']),// Insert data alamat dari kolom D di excel \n\t 'tk'=>str_replace(\",\", \"\", $row['G']),// Insert data alamat dari kolom D di excel \n\t 'tb'=>str_replace(\",\", \"\", $row['H']),// Insert data alamat dari kolom D di excel \n\t 'sls'=>str_replace(\",\", \"\", $row['I']),// Insert data alamat dari kolom D di excel \n\t 'id_k_barang'=>$row['J'],// Insert data alamat dari kolom D di excel \n\t 'jual'=>$row['K'],// Insert data alamat dari kolom D di excel \n\t 'minimum'=>$row['L'],// Insert data alamat dari kolom D di excel \n\t 'tgl'=>$row['M'],// Insert data alamat dari kolom D di excel \n\t \n\t)); \n\t } \n\t $numrow++; // Tambah 1 setiap kali looping \n\t $id_barang \t\t= $row['A']; \n\t $nama_barang \t= $row['B']; \n\t $satuan_besar \t= $row['C']; \n\t $modal \t\t\t= $row['D']; \n\t $harga_jual \t= $row['E']; \n\t $walk \t\t\t= $row['F']; \n\t $tk \t\t\t= $row['G']; \n\t $tb \t\t\t= $row['H']; \n\t $sls \t\t\t= $row['I']; \n\t $id_k_barang \t= $row['J']; \n\t $jual \t\t\t= $row['K']; \n\t $minimum \t\t= $row['L']; \n\t $tgl \t\t\t= $row['M']; \t\n\t} \n\t\n\t$query = $this->db->query(\"SELECT * FROM tb_barang WHERE id_barang='$id_barang'\");\n\t$result = $query->result_array();\n\t$count = count($result);\n\tif (empty($count)) {\n\t\t$this->Model_barang->insert_multiple($data);\n\t\tredirect(\"Barang/view_barang\");\n\t}elseif ($count == 1) {\n\t\t$this->Model_barang->update_multiple($data);\n\t\tredirect(\"Barang/view_barang\");\n\t\t\n\t}\n\t\n}", "title": "" }, { "docid": "9f0cb79b0678060fe56f9bf02c8dc76d", "score": "0.5024605", "text": "public function importAction():void {\n $files = glob($this->config->application->messagesDir.'*.php');\n $this->di->get('db')->query('delete from LangMessage');\n foreach($files as $file){\n include($file);\n $langName = basename($file,'.php');\n $lang = LangType::findFirstByLaty_name($langName);\n foreach($messages as $name => $message){\n $langMessage = new LangMessage([\n 'lame_name'=>$name,\n 'lame_value'=>html_entity_decode($message),\n 'lame_lang_id'=>$lang->laty_id\n ]);\n $langMessage->save();\n }\n }\n }", "title": "" }, { "docid": "e1be8ab8487ee5eb1fd0c87f1fc546bc", "score": "0.50236547", "text": "function getImporteCliente($ticket){\n $partes=explode(' ',$ticket);\n //$partes[1]=substr($partes[1],6,4).'-'.substr($partes[1],3,2).'-'.substr($partes[1],0,2);\n //importante esto se hace para buscar el RASA de una fecha determinada\n \n $sql=\"SELECT b.ZEIS as fecha, b.RASA as RASA, b.BONU as BONU,b.BT20 as BT20,b.SNR1 as SNR1,c.id_cliente as id_cliente,c.nombre as nombre,c.empresa as empresa FROM pe_boka b \"\n . \" LEFT JOIN pe_clientes c ON c.id_cliente=b.SNR1 DIV 10 \"\n . \" WHERE STYP=1 AND RASA='$partes[0]' AND b.SNR1%10>=5 AND ZEIS='$partes[1] $partes[2]'\";\n log_message('INFO', $sql);\n \n $query=$this->db->query($sql);\n $row=$query->row();\n $bonu=\"\";\n $rasa=\"\";\n $importe=\"\";\n $cliente=\"\";\n $nombre=\"\";\n $empresa=\"\";\n $id_cliente=\"\";\n $fecha=\"\";\n if($row){\n $fecha=$row->fecha;\n $id_cliente=$row->SNR1;\n $id_cliente=(int)($id_cliente/10);\n $rasa=$row->RASA;\n $bonu=$row->BONU;\n $importe=$row->BT20;\n $cliente=$row->id_cliente;\n $nombre=$row->nombre;\n $empresa=$row->empresa;\n }\n return array('fecha'=>$fecha,'id_cliente'=>$id_cliente, 'rasa'=>$rasa,'bonu'=>$bonu, 'importe'=>$importe,'cliente'=>$cliente,'nombre'=>$nombre,'empresa'=>$empresa, 'sql'=>$sql); \n}", "title": "" }, { "docid": "86d466707ba827423085b36f9f2974cf", "score": "0.50059223", "text": "function _ads_import($operation, $type, &$context) {\n $context['message'] = t('@operation', array('@operation' => $type));\n $migration = Migration::getInstance($operation);\n $migration->processImport();\n}", "title": "" }, { "docid": "f3738aa43a8035df70c2f459f68a44d6", "score": "0.49974176", "text": "public function assessmentImport()\n {\n include APPPATH . 'third_party/PHPExcel/PHPExcel.php';\n\n $excelreader = new PHPExcel_Reader_Excel2007();\n $loadexcel = $excelreader->load('excel/' . $this->filename . '.xlsx'); // Load file yang telah diupload ke folder excel\n $sheet = $loadexcel->getActiveSheet()->toArray(null, true, true, true);\n\n // Buat sebuah variabel array untuk menampung array data yg akan kita insert ke database\n $data = array();\n\n $numrow = 1;\n foreach ($sheet as $row) {\n // Cek $numrow apakah lebih dari 1\n // Artinya karena baris pertama adalah nama-nama kolom\n // Jadi dilewat saja, tidak usah diimport\n if ($numrow > 1) {\n // Kita push (add) array data ke variabel data\n array_push($data, array(\n 'nis' => $row['E'],\n 'code_criteria' => $row['F'],\n 'value' => $row['G']\n ));\n }\n\n $numrow++; // Tambah 1 setiap kali looping\n }\n\n $this->db->insert_batch('dss_assessment_ipa', $data);\n\n redirect(\"IPAManagement/assessment\");\n }", "title": "" }, { "docid": "1b0bceeb9f07db4d0758055c9a866c50", "score": "0.4990814", "text": "function ler($path) // ler arquivo\r\n {\r\n if (file_exists($path)) {\r\n $arquivo = fopen($path, 'r');\r\n while ($linha = fgets($arquivo)) {\r\n echo $linha . \"<br>\";\r\n }\r\n fclose($arquivo);\r\n /*\r\n $arquivo = file($path); // file converte para array\r\n foreach($arquivo as $linha){\r\n echo $linha.\"<br>\";\r\n }*/\r\n /*\r\n $arquivo = file_get_contents($path);\r\n echo $arquivo;\r\n */\r\n } else {\r\n echo \"O arquivo $path não existe!\";\r\n }\r\n }", "title": "" } ]
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "17259964b1e8d67eed2f6e20c7d9fa22", "score": "0.0", "text": "public function create()\n {\n }", "title": "" } ]
[ { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.7571966", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.7571966", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "735e465640db5c659ac193ab8af1f08c", "score": "0.75648046", "text": "public function createAction ()\n\t{\n\t\t$this->view->form = $this->_form;\n\t}", "title": "" }, { "docid": "c22dae1333d29c28ed855dcb7f069232", "score": "0.749277", "text": "public function create()\n {\n return view('resources.create');\n }", "title": "" }, { "docid": "1f9733369c1aaf55c73aa4d1a8a80882", "score": "0.7457956", "text": "public function create()\n {\n\n return view('resources.create');\n\n }", "title": "" }, { "docid": "1da53c4d224bfa3bc44c0fabd927bedd", "score": "0.7453354", "text": "public function create()\n {\n return view ('rol.form_create');\n }", "title": "" }, { "docid": "1b16c1f4677bd0ac799e087490d4d05b", "score": "0.734924", "text": "public function create() {\n return view($this->className . '/form', [\n 'className' => $this->className,\n 'pageTitle' => $this->classNameFormatado . '- Cadastro de registro'\n ]);\n }", "title": "" }, { "docid": "edabb98341a0b5aadd47c2864942b8db", "score": "0.733851", "text": "protected function create()\n {\n $form = Form::create($this->resource);\n $model = $form->model;\n\n $model->hasAccessOrFail('create');\n\n $model->fill($this->getOldInput());\n\n $form->fields()->each(function (Field $field) use (&$model) {\n $field->setValue($model);\n });\n\n return view('crud::form.create', compact('form'));\n }", "title": "" }, { "docid": "9814fd9ae63509e6eb41bf23f7a94615", "score": "0.7277869", "text": "public function create()\n {\n return view('forms.create');\n }", "title": "" }, { "docid": "6ed61a57fb61b517537e754054cffc2f", "score": "0.72555596", "text": "public function create()\n {\n return view(\"stok.form\");\n }", "title": "" }, { "docid": "42de9969dbd16cbf3f496acd505422d8", "score": "0.72494155", "text": "public function create()\n {\n // shows a view to create a new resource\n return view('dashboard.admin.create');\n \n }", "title": "" }, { "docid": "d777482ca48a952bda74d0486cdad76a", "score": "0.723632", "text": "public function create()\n {\n return \"Here is the creating form page.\";\n }", "title": "" }, { "docid": "8a257056a97a8ef04b6027c8bfb8cad1", "score": "0.72293997", "text": "public function create()\n {\n\n $title = 'Add '. $this->getName();\n $form = $this->form($this->getFormClass(), [\n 'method' => 'POST',\n 'url' => route($this->getRouteFor('store')),\n ]);\n return view('.admin.form', compact('form', 'title'));\n }", "title": "" }, { "docid": "4b9c0332c0bc5feb4fa5c4c15ff4cda0", "score": "0.7221649", "text": "public function create()\n {\n $this->authorize('create', $this->getResourceModel());\n\n $class = $this->getResourceModel();\n return view($this->getResourceCreatePath(), $this->filterCreateViewData([\n 'record' => new $class(),\n ] + $this->resourceData()));\n }", "title": "" }, { "docid": "f5f050d80230f2f0b6313a13b65e7a0b", "score": "0.72211087", "text": "public function newAction()\n {\n $entity = new Faq();\n $form = $this->createCreateForm($entity);\n\n $form->add('question', 'text', array('label' => 'Ask Your Question :')); \n $form->add('answer', 'text', array('label' => 'Give an answer :'));\n $form->add('submit', 'submit', array('label' => 'Submit question'));\n\n return $this->render('FaqBundle:Faq:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "29282129b8e24a976f037c589580f34b", "score": "0.72092897", "text": "public function create()\n {\n $this->page_title = trans('resource_sub_type.new');\n\n return view('resource_sub_type.new', $this->vdata);\n }", "title": "" }, { "docid": "85bc1c405768493e40df217a0040f018", "score": "0.71893287", "text": "function showCreateForm(){\n return view('admin.Direktori.Pendeta.create');\n }", "title": "" }, { "docid": "9493a84894964b34fd6021b3786bcc7a", "score": "0.71867675", "text": "public function create()\n {\n return view('crops.forms.create');\n }", "title": "" }, { "docid": "68716ed8c8a7c02d13766dd274f478a3", "score": "0.7184405", "text": "public function create()\n {\n return view('user_resources/create');\n }", "title": "" }, { "docid": "f6d3fc80bf700f89fa22e42e685b217d", "score": "0.71813214", "text": "public function create()\n {\n return view ('penilaiansmp.form');\n }", "title": "" }, { "docid": "643073da4582f0c5ee209f1f696bb305", "score": "0.7164174", "text": "public function create()\n {\n return view('admin/records/forms/record-create-form');\n }", "title": "" }, { "docid": "86e44150333771a80ff3634ffc76f344", "score": "0.71504635", "text": "public function create()\n {\n return view('dashboard.form.create');\n }", "title": "" }, { "docid": "75889c35cd5f200bf02a5b21774293e1", "score": "0.7137173", "text": "public function create()\n {\n $this->data['titlePage'] = trans('admin.obj_new',['obj' => trans('admin.'.$this->titleSingle)]);\n $breadcrumbs = array();\n $breadcrumbs[] = [ 'title' => trans('admin.home'), 'link' => route($this->routeRootAdmin), 'icon' => $this->iconDashboard ];\n $breadcrumbs[] = [ 'title' => trans('admin.'.$this->titlePlural), 'link' => route(GetRouteAdminResource($this->resourceRoute)), 'icon' => $this->iconMain ];\n $breadcrumbs[] = [ 'title' => $this->data['titlePage'], 'icon' => $this->iconNew ];\n $this->data['breadcrumbs'] = $breadcrumbs;\n $this->data['category'] = $this->getModelArray($this->modelCategory);\n $this->data['province'] = $this->getModelArray($this->modelProvince);\n $this->data['district'] = $this->getModelArray($this->modelDistrict);\n $this->data['ward'] = $this->getModelArray($this->modelWard);\n $this->data['direction'] = $this->getModelArray($this->modelDirection);\n\n return view(GetViewAdminResource($this->resourceView, 'create'))->with($this->data);\n }", "title": "" }, { "docid": "7e262dd36752e23255d5ea03566e8de7", "score": "0.7120378", "text": "public function create()\n {\n $model = $this->model;\n return view('pages.admin.graha.form', compact('model'));\n }", "title": "" }, { "docid": "0a067c68f8000d9eb913daf36e5e607c", "score": "0.71182096", "text": "public function create()\n {\n return view('FullForm.create');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71129704", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71129704", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "c88daeaad1f2ef73dd9534351ceea67a", "score": "0.7093717", "text": "public function newAction()\n {\n $entity = new FormEntity();\n $entity->setTemplate('keltanasTrackingBundle:Form:form.html.twig');\n $form = $this->createCreateForm($entity);\n\n return $this->render('keltanasTrackingBundle:Form:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "a7352ebb77d0418eb30e8fe2e7bfb857", "score": "0.70862806", "text": "public function actionCreate()\n\t{\n\t\t$this->render('create');\n\t}", "title": "" }, { "docid": "c27004d00e3f9afb85f74623ec456ca9", "score": "0.70779085", "text": "public function create()\n {\n //\n return view('form');\n }", "title": "" }, { "docid": "8e0fde88926c98fb2c54ba67ab5b36a7", "score": "0.70612365", "text": "public function create()\n\t{\n\t\treturn View::make('librarians.create');\n\t}", "title": "" }, { "docid": "345c70747deda30c3482e759c25c4d12", "score": "0.70575905", "text": "public function create()\n {\n return view('passenger.forms.create');\n }", "title": "" }, { "docid": "2b41dd9ed0cf1461dd65f8e05b0a94a1", "score": "0.7056524", "text": "public function create()\n {\n return $this->showForm();\n }", "title": "" }, { "docid": "20ab9d62fc4da5013c56daa9183bfe28", "score": "0.70548934", "text": "public function create()\n {\n return view('admin.client.form');\n }", "title": "" }, { "docid": "c69f303d7cafa0864b25b452417d3c13", "score": "0.705063", "text": "public function create()\n\t{\n\t\treturn view('actions.create');\n\t}", "title": "" }, { "docid": "b7f63db5c5ecb7bba494b8a81ce69874", "score": "0.7049288", "text": "public function create(AdminResource $resource)\n {\n $form = $resource->getForm();\n\n return view('admin::resource.form', compact('form'));\n }", "title": "" }, { "docid": "8f53ed51f8136e8e32a2c0525120a50f", "score": "0.7044314", "text": "public function create()\n {\n //\n\n \n return view('student/ResourceStd');\n\n }", "title": "" }, { "docid": "f1f40cbb0cad3cf320b4c0ec09b3b428", "score": "0.7037469", "text": "public function create()\n {\n return view('form');\n\n }", "title": "" }, { "docid": "607b994b80e66fe45602a00379ab7779", "score": "0.70293975", "text": "public function create()\n {\n //return the create view (form)\n return view('books.create');\n }", "title": "" }, { "docid": "643fd44e4ced88a8aac481ced428c5ca", "score": "0.70245254", "text": "public function create()\n {\n $title = 'CRIAR REGISTRO';\n return view('forms.create',['title' => $title]);\n }", "title": "" }, { "docid": "66b746538eaf7a550c7b3a12968b96a6", "score": "0.70131594", "text": "public function create()\n {\n return view('supplier.form');\n }", "title": "" }, { "docid": "8074165780da4d1be303d3e9d8c535ba", "score": "0.7009979", "text": "public function create()\n {\n return view ('owner/form');\n }", "title": "" }, { "docid": "06af90c4292c136aaaf9329cfae0b3fc", "score": "0.70096827", "text": "public function create()\r\n {\r\n //mengarahkan ke form\r\n return view('rental.form');\r\n }", "title": "" }, { "docid": "248b476c0f07013b389c79c904231f2a", "score": "0.70035815", "text": "public function create()\n {\n return view('admin.car.add');\n }", "title": "" }, { "docid": "75fb4bc6a7a5df1f1f5cd380b0cd4aec", "score": "0.69990563", "text": "public function create()\n {\n //New Property form\n return view('properties.addproperty');\n }", "title": "" }, { "docid": "91dd937891cf552bdb6c058f3730d93b", "score": "0.69976497", "text": "public function newAction()\n {\n $entity = new foo();\n $form = $this->createForm(new fooType(), $entity);\n\n return $this->render('ScrunoBoardBundle:foo:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "c6f4cc7fdd05567403f39d82ae477eb4", "score": "0.6993963", "text": "public function create()\n\t{\n\t\treturn view('kasus.create');\n\t}", "title": "" }, { "docid": "68eb563182e9ed0d6524bc0b6aac22af", "score": "0.6992363", "text": "public function create()\n\t{\n\t\t// load the create form (app/views/professor/create.blade.php)\n\t\t$this->layout->content = View::make('professor.create');\n\t}", "title": "" }, { "docid": "6c77fcad45300d9322c483f2cf6f0bf9", "score": "0.69892037", "text": "public function create()\n\t{\n\t\treturn view('proyek.create');\n\t}", "title": "" }, { "docid": "355b502cb4384aeb8c0d1322a57b7677", "score": "0.69876677", "text": "public function create()\n {\n return view ('show.create', [\n ]); \n }", "title": "" }, { "docid": "033dad9a04f818507b4dc909e40e2cca", "score": "0.6985993", "text": "public function create()\n {\n $data[\"action\"] = 'anggota.store';\n return view('anggota.form', $data);\n }", "title": "" }, { "docid": "afec885a1ddf009d317c5bca27be7983", "score": "0.6984491", "text": "public function create()\n {\n\t\treturn view('admin.pages.supplier-form-create', ['page' => 'supplier']);\n }", "title": "" }, { "docid": "93cdfcc841a0d10e976bbc17fe7020ec", "score": "0.6976729", "text": "public function create()\n {\n return view('rombel.create');\n }", "title": "" }, { "docid": "eb3ba5c68f25897de6ed50346b9959f7", "score": "0.69741565", "text": "public function create()\n {\n $crud = crud_entry(new \\App\\Employee);\n\n return view('crud::scaffold.bootstrap3-form', ['crud' => $crud]);\n }", "title": "" }, { "docid": "432a42bd0e4b7b7dd13b0343e81c9f33", "score": "0.69720113", "text": "public function create()\n {\n //\n return view('libros/libroForm');\n }", "title": "" }, { "docid": "27f66e57741013d1d7bd227b0a1ae6cc", "score": "0.6969458", "text": "public function create()\n {\n return view('radars/create');\n }", "title": "" }, { "docid": "db317dc07de792187038b7e4a5f863fd", "score": "0.6962943", "text": "public function newAction()\n {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('ManuTfeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "58119c678c7b859b3d2fcb9d4e2544e9", "score": "0.69599855", "text": "public function create()\n {\n return view('forms.girders.create');\n }", "title": "" }, { "docid": "6e09ea0495ecf33b6615199f96a87dd9", "score": "0.6957388", "text": "public function create()\n {\n return view('inventaris.create');\n }", "title": "" }, { "docid": "cfb06a7f594e86d7fe22432b5bd18371", "score": "0.6956602", "text": "public function newAction()\n {\n $entity = new Ministro();\n $form = $this->createCreateForm($entity);\n\n return $this->render('ParroquiaCertificadoBundle:Ministro:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "121c8c321a85cfc3184f64d92ecfca6c", "score": "0.69543755", "text": "public function create()\n\t{\n\t\treturn view ('oficinas.create');\n\t}", "title": "" }, { "docid": "9cc1ebbeb06fe2564e0fa603d2c72f75", "score": "0.69524705", "text": "public function create()\n {\n //\n return view('product.form');\n }", "title": "" }, { "docid": "ad86bd025139be91b2df85c83f79d4bd", "score": "0.6951772", "text": "public function create()\n {\n return view('syllabus.create');\n }", "title": "" }, { "docid": "1276876980c60661df1af9ecd3659454", "score": "0.69452083", "text": "public function create()\n\t{\n\t\treturn View::make('nssf.create');\n\t}", "title": "" }, { "docid": "29d1eb6a37de9bf5891c3b5b4ef4fa2d", "score": "0.69423175", "text": "public function newForm()\n {\n $this->pageTitle = \"Création d'une question\";\n\n //initialisation des selects list\n $this->initSelectList();\n\n parent::newForm();\n }", "title": "" }, { "docid": "7c12821aa5d613a86cc8ba0cf190e6fd", "score": "0.693066", "text": "public function create()\n {\n return view('tutores.new');\n }", "title": "" }, { "docid": "07e409b45065624d003704ab3b447aec", "score": "0.69249916", "text": "public function create()\n {\n return view('admin.product.form');\n }", "title": "" }, { "docid": "60c9cc4899b058bc51c74601c8025ebe", "score": "0.69225484", "text": "public function create()\n {\n return view('adminCreateForm');\n }", "title": "" }, { "docid": "38a6849d5b56a77b178a1fc8297c2e4e", "score": "0.6921667", "text": "public function create()\n\t{\n\t\treturn view('information.create');\n\t}", "title": "" }, { "docid": "466006539e9b1da8c7c2e06a069c4e2e", "score": "0.69203454", "text": "public function create()\n {\n return view('layout_admin.thenew.create_new');\n }", "title": "" }, { "docid": "50d6adc18861a552fb9ddb0969a2630f", "score": "0.69198334", "text": "public function create()\n {\n return view('umbooks::admin.models.book.create');\n }", "title": "" }, { "docid": "83ebdde393be7960c0a3149b40b830fa", "score": "0.69190884", "text": "public function create()\n {\n //\n return view('guest.sample.submit-property2');\n }", "title": "" }, { "docid": "ce1853ac01959995d112bb4d44014367", "score": "0.6918046", "text": "public function create()\n {\n //\n return view('ijinkeluars.create');\n }", "title": "" }, { "docid": "87632e3ed9e4e251e3f5a4dfa4cc4e5e", "score": "0.69175214", "text": "public function create()\n {\n // Place here the initial data and show\n // Ahh screw it, Show Everything!!!\n\n return view('record.create');\n\n }", "title": "" }, { "docid": "1b49a8bc053be1715bbf5620cf797e18", "score": "0.6917381", "text": "public function create()\n\t{\n\t\treturn View::make('product.create'); //form to create new product \n\t}", "title": "" }, { "docid": "27e5069596828984f14a92c012c1e448", "score": "0.69130754", "text": "public function newAction()\n {\n $entity = new Inicio();\n $form = $this->createForm(new InicioType(), $entity);\n\n return $this->render('SisafBundle:Inicio:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "98e3bff438d778b0a9ccaad60778cf09", "score": "0.69084096", "text": "public function create()\n {\n return view('admin/car/add-car');\n }", "title": "" }, { "docid": "51a5131df9fc2dcd5b65b5ca8aa614d0", "score": "0.69084007", "text": "public function create()\n {\n //To show the required create page when its clicked\n return view('admin.create');\n \n \n }", "title": "" }, { "docid": "4b3f5241c4a2f638b9ee19747079b7a2", "score": "0.69062227", "text": "public function create()\n {\n return view('stus.add');\n }", "title": "" }, { "docid": "0b940b83fdd9503e0b64330c52106d41", "score": "0.69051635", "text": "public function create()\n {\n return view('inventariss.create');\n }", "title": "" }, { "docid": "eec374cbf73315b7af3e5f2b21f37d4d", "score": "0.69049346", "text": "public function create()\n {\n return view('linhvuc.create');\n }", "title": "" }, { "docid": "ecc913c81504bfd8529f7b7feaef7080", "score": "0.69029534", "text": "public function create(){\n return view('person/form', ['action'=>'create']);\n }", "title": "" }, { "docid": "64d616e79a29573ea35b962756917c05", "score": "0.6899146", "text": "public function create()\n {\n\t\t$d['action'] = route('product.store');\n\t\treturn view('back.pages.product.form', $d);\n }", "title": "" }, { "docid": "61066352fa31a37b0f1d8bc9fd229ea9", "score": "0.6895845", "text": "public function create()\n {\n /* $this->authorize('create'); */\n return view('refugio.refugioForm');\n }", "title": "" }, { "docid": "70820d35b4d8e319baa89b6f91a3d029", "score": "0.6894885", "text": "public function newAction() {\n $entity = new Recommandation();\n $form = $this->createCreateForm($entity);\n\n return $this->render('MyAppFrontBundle:Recommandation:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "27fad6d884340578087d232e3218a94d", "score": "0.68935895", "text": "public function create()\n {\n return view('backpages.formInfo');\n }", "title": "" }, { "docid": "6769fe63e35d4f98abe507728065b246", "score": "0.6889731", "text": "public function create()\r\n {\r\n return view('superadmin::create');\r\n }", "title": "" }, { "docid": "619fa64afd3457bdc8d1c1a041acff47", "score": "0.688799", "text": "public function create()\n {\n return View(\"$this->view_folder.form\", $this->data);\n }", "title": "" }, { "docid": "09fab99adf688ea100aa90694eab5889", "score": "0.6887706", "text": "public function create()\n {\n return view(\"Amenity::add\");\n }", "title": "" }, { "docid": "985e9c7c0b741b5b1eb67c091e5ad371", "score": "0.68861634", "text": "public function create()\n\t{\n\t\t//\n\t\treturn View::make('oficinas.create');\n\t}", "title": "" }, { "docid": "9664795bf81cca0f3e65d94f0f595082", "score": "0.6878992", "text": "public function create()\n\t{\n\t\treturn view('questao.create');\n\t}", "title": "" }, { "docid": "6648fe4f8fd4df24b091c04829b92bbb", "score": "0.687801", "text": "public function create()\n\t{\n\t\treturn View::make('powerful.create');\n\t}", "title": "" }, { "docid": "623f899bed6c6f380a03ffc99508b73d", "score": "0.68776965", "text": "public function newAction()\n {\n $entity = new Candidato();\n $form = $this->createForm(new CandidatoType(), $entity);\n\n return $this->render('EleicaoAdmBundle:Candidato:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "06fe0499ccb2038bd9c25e7ef14289e2", "score": "0.6876303", "text": "public function create()\n {\n //Return item details form\n return view('home.create');\n }", "title": "" }, { "docid": "a3b3bbcce8f8a6239dadc2917240252b", "score": "0.6875676", "text": "public function showForm()\n {\n return view('AdminView.create');\n }", "title": "" }, { "docid": "b3998fa6dce49f97902e942f97d98ede", "score": "0.68714374", "text": "public function newAction()\n {\n $entity = new Escuelas();\n $form = $this->createForm(new EscuelasType(), $entity);\n\n return $this->render('QQiRecordappBundle:Escuelas:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "60ee9672a795f51a440ede1e68b26045", "score": "0.6869642", "text": "public function create()\n {\n return view('smp.create');\n }", "title": "" }, { "docid": "9f18b1b1a35a9af23eb1d4bbdba665f8", "score": "0.68683904", "text": "public function create()\n {\n return view('admin.car_com.create');\n }", "title": "" }, { "docid": "d14776cad1affd8d37756a185e7fe660", "score": "0.68661827", "text": "public function create()\n {\n return view('relasi.create');\n }", "title": "" }, { "docid": "96c76b820b73f95fa584de07ad04ad0a", "score": "0.68645674", "text": "public function create()\n {\n return view('nasabah/addnasabah');\n }", "title": "" }, { "docid": "e3cfac3178d9c5cb5ab322fa4785604c", "score": "0.68615323", "text": "public function create()\n {\n return view('Prenda.create');\n }", "title": "" } ]
1369119583636916ec269f8b6a3efddb
Get character index of the winner, or null if there is no winner yet
[ { "docid": "dacfb4e09f3fafd5fd90a6ecb01ce82c", "score": "0.70001596", "text": "public function getWinnerIndex() {\n\t\tif( $this->_iDebate >= $this->_iDebateGoal0 )\n\t\t\treturn 0;\n\t\tif( $this->_iDebate <= -$this->_iDebateGoal1 )\n\t\t\treturn 1;\n\t\treturn null;\n\t}", "title": "" } ]
[ { "docid": "fe4657df723d6d57ac877f60b1c32464", "score": "0.65013605", "text": "public function getWinner()\r\n {\r\n// todo\r\n $p = $this->pieces;\r\n $i=0;\r\n //check the rows for winner\r\n for($i=0;$i<self::ROWS;$i++)\r\n {\r\n if(($p[$i][0] == $p[$i][1]) && ($p[$i][1] == $p[$i][2]) && $p[$i][0] != '')\r\n {\r\n if($p[$i][0] == 'O')\r\n\t\t\t{\r\n\t\t\t\treturn 'O';\r\n\t\t\t}\r\n else\r\n\t\t\t{\r\n\t\t\t\treturn 'X';\r\n\t\t\t}\r\n }\r\n }\r\n\r\n //check the columns for winner\r\n for($j=0;$j<self::ROWS;$j++)\r\n {\r\n if(($p[0][$j] == $p[1][$j]) && ($p[1][$j] == $p[2][$j]) && $p[0][$j] != '')\r\n {\r\n if($p[0][$j] == 'O')\r\n \t{\r\n\t\t\t\treturn 'O';\r\n\t\t\t}\r\n else\r\n\t\t\t{\r\n \t\treturn 'X';\r\n\r\n\t\t\t}\r\n }\r\n\r\n }\r\n\r\n //check the diagonals for winner\r\n if(($p[0][0]==$p[1][1] && $p[1][1] == $p[2][2] && $p[0][0] != '') || ($p[0][2] == $p[1][1] && $p[1][1] == $p[2][0] && $p[0][2] != ''))\r\n {\r\n if($p[1][1] == 'O')\r\n\t\t{\r\n\t\t\treturn 'O';\r\n\t\t}\r\n else\r\n\t\t{\r\n \t\treturn 'X';\r\n\r\n\t\t}\r\n }\r\n return -1; //return -1, keep playing\r\n }", "title": "" }, { "docid": "eb5fb470e4971ae908839321b2bf2af9", "score": "0.59825957", "text": "protected function getPlayerIndexMarker(): int\n {\n $ind = 0;\n\n foreach ($this->players as $key => $player) {\n if ($player->marker) {\n $ind = $key;\n\n break;\n }\n }\n\n return $ind;\n }", "title": "" }, { "docid": "26d02c5a01eaef30de38a3709d75795e", "score": "0.59051347", "text": "public function getWinner() {\n if($this->winnerType == \"draw\") {\n return \"draw\";\n } elseif($this->winnerID == $this->combatantAID && $this->winnerType == \"player\") {\n return $this->combatantA;\n } else {\n return $this->combatantB;\n }\n }", "title": "" }, { "docid": "875cc873c73e8f4960bf341cdf3dabc9", "score": "0.5703208", "text": "public function overallWinner(): string\r\n {\r\n $playerWins = 0;\r\n $serverWins = 0;\r\n\r\n foreach ($this->rounds as $round) {\r\n if ($round->isPlayerWinner()) {\r\n $playerWins++;\r\n } elseif ($round->isServerWinner()) {\r\n $serverWins++;\r\n }\r\n }\r\n\r\n if ($playerWins > $serverWins) {\r\n return 'player';\r\n } elseif ($playerWins < $serverWins) {\r\n return 'server';\r\n }\r\n\r\n return 'tie';\r\n }", "title": "" }, { "docid": "fb893ee713ba07df8fb54e90d979f38e", "score": "0.56853545", "text": "public function winner() {\n if (empty($this->roundWins)) {\n return;\n }\n if (empty($this->player1)) {\n throw new Exception('Player1 is invalid.');\n }\n if (empty($this->player2)) {\n throw new Exception('Player2 is invalid.');\n }\n\n $roundsWon = [];\n foreach ($this->roundWins as $roundWinner) {\n if (empty($roundWinner)) {\n continue;\n }\n\n $roundsWon[$roundWinner->getName()] = (!isset($roundsWon[$roundWinner->getName()]) || !is_numeric($roundsWon[$roundWinner->getName()])) ?\n 1 :\n ($roundsWon[$roundWinner->getName()] + 1);\n }\n\n asort($roundsWon, SORT_NUMERIC);\n if (1 < array_keys($roundsWon) &&\n $roundsWon[array_keys($roundsWon)[count($roundsWon) - 1]] === $roundsWon[array_keys($roundsWon)[count($roundsWon) - 2]]\n ) {\n echo sprintf(\"The game is draw\\n\");\n\n return;\n }\n\n $firstPlayer = array_keys($roundsWon)[count($roundsWon) - 1];\n echo sprintf(\"%s has won the game\\n\", $firstPlayer);\n }", "title": "" }, { "docid": "34ff52c2214ba5d362eeece7863e4d31", "score": "0.568152", "text": "public function getLoser() {\n if ($this->getWinner()) {\n $contestants = $this->getContestants();\n foreach($contestants as $eid => $contestant)\n if ($eid != $this->getWinner())\n return $eid;\n }\n return NULL;\n }", "title": "" }, { "docid": "f46fe29ebed4990bf4bea3939e0fc008", "score": "0.5610775", "text": "public function currentPlayer() {\n $p = 'x';\n foreach ($this->moves as $move) {\n $p = ($move->player == 'x') ? 'o' : 'x';\n }\n return $p;\n }", "title": "" }, { "docid": "fd47ef74021dbeb0d6df5d0a03ed7df4", "score": "0.5445976", "text": "public function findMove(Collection $cells, string $piece, string $opponentPiece): ?string\n {\n return optional($this->findFirstFree($cells, $this->corners))->location;\n }", "title": "" }, { "docid": "ae3ae76123e7e01132c590b1bfc2566c", "score": "0.5440909", "text": "public function getWinner();", "title": "" }, { "docid": "f37b45201d87e77cf406c7d85c65d81b", "score": "0.54221886", "text": "function getMatchup()\n\t{\n return -1;\n\t}", "title": "" }, { "docid": "dbeb4ed180302f033fe7dbeaf08a995b", "score": "0.5420983", "text": "public function getNextPosition(string $string): ?int;", "title": "" }, { "docid": "989e328e005394cb0d4aa13cdee0f193", "score": "0.54197705", "text": "function findTwoOfClubsOwner() {\n\t\tfor ($i = 0; $i < self::N_OF_PLAYERS; ++$i) {\n\t\t\tif ($this->players[$i]->hasCard(self::CLUBS . '2')) {\n\t\t\t\treturn $i;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4dfa5824c2c6a1d27368d2501bb7e69e", "score": "0.5419712", "text": "public function getMatchOffset(): ?int\n {\n return $this->getOption('matchoffset');\n }", "title": "" }, { "docid": "0a7c220d871ac8f7bf5e60f483086b31", "score": "0.541378", "text": "abstract public function winner();", "title": "" }, { "docid": "58e3d3f7f8826a801b2bcb5ce857d4aa", "score": "0.5356102", "text": "function winner($token) {\n $won = false;\n \n for($row=0; $row<3; $row++){\n if(($this->position[3*$row] == $token) &&\n ($this->position[3*$row+1] == $token) &&\n ($this->position[3*$row+2] == $token)) {\n $won = true;\n } \n }\n for($col=0; $col<3; $col++) {\n if(($this->position[$col] == $token) &&\n ($this->position[$col+3] == $token) &&\n ($this->position[$col+6] == $token)) {\n $won = true;\n } \n }\n if (($this->position[0] == $token) &&\n ($this->position[4] == $token) &&\n ($this->position[8] == $token)) \n {\n $won = true;\n } else if (($this->position[2] == $token) &&\n ($this->position[4] == $token) &&\n ($this->position[6] == $token)) \n {\n $won = true;\n }\n \n return $won;\n }", "title": "" }, { "docid": "84a36c97239f911ad1dbd6a3024925ba", "score": "0.5308747", "text": "function winner($token) {\n $won = false;\n for($row = 0; $row < 3; $row++) {\n if ($this->position[3 * $row] == $token && \n $this->position[3 * $row + 1] == $token &&\n $this->position[3 * $row + 2] == $token) {\n return true;\n }\n }\n \n for($col = 0; $col < 3; $col++) {\n if ($this->position[$col] == $token && \n $this->position[$col + 3] == $token &&\n $this->position[$col + 6] == $token) {\n return true;\n }\n }\n \n if ($this->position[0] == $token &&\n $this->position[4] == $token &&\n $this->position[8] == $token) {\n return true;\n }\n \n if ($this->position[2] == $token &&\n $this->position[4] == $token &&\n $this->position[6] == $token) {\n return true;\n }\n return $won;\n }", "title": "" }, { "docid": "e85126187b4cae0cfd3d288c68c67904", "score": "0.52938205", "text": "function checkWinner($game) {\n\tglobal $message ;\n\t$winner = \"999\";\n\t$board = $game[\"board\"];\n\t$cellClicked = $game[\"clicked\"];\n\tif ($game[\"clicked\"] !== 9) {\n\t\tsettype($cellClicked, \"string\");\n\t\t$winCombo = array(\"012\",\"345\",\"678\",\"036\",\"147\",\"258\",\"840\",\"246\");\n\t\tfor( $row = 0; $row < 8; $row++ ) {\t\n\t\t\t// identify which row, column, and diag has been changed by current selection\n\t\t\t$idx = ($cellClicked < 9) \n\t\t\t\t? substr_count($winCombo[$row], $cellClicked)\n\t\t\t\t: -1;\n\t\t\t// test only the changed row, columns, and diags\n\t\t\tif ($idx == 1) { \n\t\t\t\tif ( $board[$winCombo[$row][0]] == $board[$winCombo[$row][1]] && \n\t\t\t\t\t $board[$winCombo[$row][1]] == $board[$winCombo[$row][2]] ) \t{\t\n\t\t\t\t\t\t$game[\"winningCombo\"] = $board[$winCombo[$row][0]];\n\t\t\t\t\t\t$winner = $winCombo[$row];\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\t\n\t\tif ($game[\"winningCombo\"] != -1) {\n\t\t\t$message = substr($game[\"playToken\"],$game[\"winningCombo\"],1) . \" wins\";\n\t\t}\n\t\telseif (count_chars($board,3) == \"01\") {\n\t\t\t$message = \"Game over. No winner\";\n\t\t}\n\t} \n\treturn $winner;\n}", "title": "" }, { "docid": "fc5a4d7063cd3baec9384a2e8c339fb2", "score": "0.52896947", "text": "function chooseWinner($players)\n{\n $highestScore = max(array_column($players, 'score'));\n $winnerString = '';\n foreach ($players as $key => $player) {\n if ($player['score'] == $highestScore) {\n $winnerString = $winnerString . \" \" . $key;\n }\n }\n return $winnerString . \" with \" . $highestScore . \" points\";\n}", "title": "" }, { "docid": "0e3e8aea1e7317fc01bbcdbd1a8075c2", "score": "0.5269092", "text": "function checkWinner($game) {\n\tglobal $_POST, $outwho, $message ;\n\t$winner = \"999\";\n\t$board = $game[\"board\"];\n\t// $cellClicked = $game[\"clicked\"];\n\tif ($game[\"clicked\"] !== 9) {\n\t\tsettype($cellClicked, \"string\");\n\t\t$winCombo = array(\"012\",\"345\",\"678\",\"036\",\"147\",\"258\",\"840\",\"246\");\n\t\tfor( $row = 0; $row < 8; $row++ ) {\t\n\t\t\t// identify which row, column, and diag has been changed by current selection\n\t\t\t($cellClicked < 9) \n\t\t\t\t? $idx = substr_count($winCombo[$row], $cellClicked)\n\t\t\t\t: $idx = -1;\n\t\t\t// test only the changed row, columns, and diags\n\t\t\tif ($idx == 1) { \n\t\t\t\tif ( $board[$winCombo[$row][0]] == $board[$winCombo[$row][1]] && \n\t\t\t\t\t $board[$winCombo[$row][1]] == $board[$winCombo[$row][2]] ) \t{\t\n\t\t\t\t\t\t$game[\"win\"] = $board[$winCombo[$row][0]];\n\t\t\t\t\t\t$winner = $winCombo[$row];\t\t\n $game[\"endGame\"] = 99;\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\t\n\t\tif ($game[\"win\"] != -1) {\n\t\t\t$message = \"<p>\" . substr($game[\"playToken\"],$game[\"win\"],1) . \" wins</p>\";\n\t\t\t$outwho = \"\";\n\t\t}\n\t\telseif (count_chars($board,3) == \"01\") {\n\t\t\t$message = \"<p>Game over. No winner</p>\";\n\t\t\t$outwho = \"\";\n\t\t}\n\t} \n\treturn $winner;\n}", "title": "" }, { "docid": "419892b691be9f1614ced84f3e4b8a26", "score": "0.52679497", "text": "private function char(): int\n {\n $message = s($this->message);\n\n $offset = $this->position->offset;\n if ($offset >= $message->length()) {\n throw new \\OutOfBoundsException();\n }\n\n $code = $message->slice($offset, 1)->codePointsAt(0)[0] ?? null;\n if (null === $code) {\n throw new \\Exception(\"Offset {$offset} is at invalid UTF-16 code unit boundary\");\n }\n\n return $code;\n }", "title": "" }, { "docid": "7d78e7478c0d51d14d44bf763ca9638e", "score": "0.525392", "text": "public function testOIsWinner()\n {\n $answers = [1,1,0,0,0,0,2,2,2];\n $winner = Match::getWinner($answers);\n $this->assertEquals(2, $winner);\n }", "title": "" }, { "docid": "30b877fa6fc9cc5b39c86c96bc97cb2e", "score": "0.52348864", "text": "public function findMove(Collection $cells, string $piece, string $opponentPiece): ?string\n {\n foreach ($this->calculateWinningCombinations() as $combination) {\n $combinationCells = $this->combinationCells($cells, $combination);\n\n if ($this->cannotLeadToSuccess($combinationCells)) {\n continue;\n }\n\n if ($this->cellsAreFilledWithPeice($combinationCells, $opponentPiece)) {\n return $this->findMissingPiece($combinationCells)->location;\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "2b30be01ff59af2302568fa7ffea71b2", "score": "0.5228429", "text": "function coin_index($coins, $symbol) {\n\tforeach($coins as $i => $c) {\n\t\tif ($c['symbol'] == $symbol)\n\t\t\treturn $i;\n\t}\n\treturn -1;\n}", "title": "" }, { "docid": "771b632b8698bd18f7c795b7c9d546c9", "score": "0.5226861", "text": "public function testXIsWinner()\n {\n $answers = [1,1,1,0,0,0,2,2,0];\n $winner = Match::getWinner($answers);\n $this->assertEquals(1, $winner);\n }", "title": "" }, { "docid": "6bde7fd72309fd0882b803fc2d0f1e0f", "score": "0.5215759", "text": "public function getRank(Player $player) : string\n\t{\n \t\t$name = $player->getName();\n \t\t$result = $this->main->db->query(\"SELECT rank FROM elo WHERE name = '$name';\");\n \t\treturn $result->fetchArray(SQLITE3_ASSOC)[\"rank\"];\n\t}", "title": "" }, { "docid": "727526842ab209da83dbfff880a0386e", "score": "0.5194223", "text": "public function \tGetCurrentPlayer() {\n\t\t\t$player = $this->_db->GetRows(\"SELECT `games`.`game_current_player` FROM `games` WHERE `games`.`game_id` = '$this->_gameID'\");\n\t\t\tif (is_null($player) || is_null($player[0]))\n\t\t\t\treturn (null);\n\t\t\treturn (intval($player[0]['game_current_player']));\n\t\t}", "title": "" }, { "docid": "de7c9817d112eeb314c0ba7ed1be4118", "score": "0.5187115", "text": "protected function getCurrentIndex(): ?int\n {\n $index = $this->flatTree->search(function (Entity $entity) {\n return get_class($entity) === get_class($this->relativeBookItem)\n && $entity->id === $this->relativeBookItem->id;\n });\n\n return $index === false ? null : $index;\n }", "title": "" }, { "docid": "07c9ce720738368c1e682ff7c70c04fa", "score": "0.51799506", "text": "function xstats_getShipOwnerIndexAtTurn( $gameId, $shipId, $turn ) {\n $query = \"SELECT ownerindex FROM skrupel_xstats_shipowner WHERE gameid=\".$gameId.\" AND shipid=\".$shipId.\" AND turn=\".$turn;\n $result = @mysql_query($query) or die(mysql_error());\n if( mysql_num_rows($result)>0 ) {\n $result = @mysql_fetch_array($result);\n return( $result['ownerindex']);\n }\n}", "title": "" }, { "docid": "e3a3afbaeceda13d9775f9d2e0d22fc9", "score": "0.5174167", "text": "public function getPreviousPosition(string $string): ?int;", "title": "" }, { "docid": "4efdf4688db6fad16775498203461152", "score": "0.5127381", "text": "public function getIndiceRectif(): ?int {\n return $this->indiceRectif;\n }", "title": "" }, { "docid": "ddb71c3f96053135ba02ef363c7e371b", "score": "0.5125032", "text": "function letter2Index(string $letter): int\n{\n // Could add a check if the letter is uppercase\n return ord($letter) - ord('a');\n}", "title": "" }, { "docid": "fa5e1b7a100b82152bc4eb5805d1459d", "score": "0.5112789", "text": "function xstats_getLastShipOwnerIndexAtTurn( $gameId, $shipId ) {\n $query = \"SELECT ownerindex FROM skrupel_xstats_shipowner WHERE gameid=\".$gameId.\" AND shipid=\".$shipId.\" ORDER BY turn DESC\";\n $result = @mysql_query($query) or die(mysql_error());\n if( mysql_num_rows($result)>0 ) {\n $result = @mysql_fetch_array($result);\n return( $result['ownerindex']);\n }\n}", "title": "" }, { "docid": "959da5e52c6c900184910a7b116ae8ea", "score": "0.51044554", "text": "public function getCurRank()\n {\n return $this->get(self::_CUR_RANK);\n }", "title": "" }, { "docid": "887af6824f32159b14014084658da58d", "score": "0.5100447", "text": "public function getNextPlayerId()\n {\n $nbPlayers = count($this->gameOrder);\n $currentPlayerId = (string) $this->currentPlayer->getId();\n $nextPlayerPosition = (array_search($currentPlayerId, $this->gameOrder) + 1) % $nbPlayers;\n\n $pos = $nextPlayerPosition;\n do {\n $player = $this->get($this->gameOrder[$pos]);\n\n if ($player->getState() === HangmanPlayer::STATE_IN_GAME) {\n return PlayerId::create($this->gameOrder[$pos]);\n }\n\n $pos = ($pos + 1) % $nbPlayers;\n } while ($pos !== $nextPlayerPosition);\n\n return null;\n }", "title": "" }, { "docid": "63a8c9dbadd51b6e6a1efcf319714e5e", "score": "0.5079011", "text": "public function indexOf(mixed $value): ?int;", "title": "" }, { "docid": "69fe91c7538573e9cbeece3e00b2d64d", "score": "0.50438994", "text": "public function getMatch()\n {\n assert(is_int($this->match), 'Member \"match\" is expected to be an integer');\n return $this->match;\n }", "title": "" }, { "docid": "82f1eaa67c32f1c3122aa5e7df33bdcb", "score": "0.50282", "text": "public function getConversationIndex()\n {\n if (array_key_exists(\"conversationIndex\", $this->_propDict)) {\n if (is_a($this->_propDict[\"conversationIndex\"], \"\\GuzzleHttp\\Psr7\\Stream\") || is_null($this->_propDict[\"conversationIndex\"])) {\n return $this->_propDict[\"conversationIndex\"];\n } else {\n $this->_propDict[\"conversationIndex\"] = \\GuzzleHttp\\Psr7\\Utils::streamFor($this->_propDict[\"conversationIndex\"]);\n return $this->_propDict[\"conversationIndex\"];\n }\n }\n return null;\n }", "title": "" }, { "docid": "d5a53f24a5c64a3a917bbe164d4c0c5f", "score": "0.5025824", "text": "public function getPlayersNbr ()\r\n {\r\n return $this->playersNbr;\r\n }", "title": "" }, { "docid": "9ea384ca3916fe0c5156de2a8d2df70f", "score": "0.5023035", "text": "public function testNoWinner()\n {\n $answers = [1,1,0,0,0,0,2,2,0];\n $winner = Match::getWinner($answers);\n $this->assertEquals(0, $winner);\n }", "title": "" }, { "docid": "15b104e3bac6d3f1b0f169e5f88ef9de", "score": "0.50111055", "text": "public function getIndex() : ?string\n {\n return $this->index;\n }", "title": "" }, { "docid": "fcda491b086fb6cceedb31db62758b44", "score": "0.49930736", "text": "public function getIndex(): ?int\n {\n return $this->index;\n }", "title": "" }, { "docid": "ac36e8ca9dfeb16c40d370e47a05ac76", "score": "0.49666375", "text": "abstract function index(): ?string;", "title": "" }, { "docid": "c8c866cbdf80d9134191b5dd50c6a518", "score": "0.49655572", "text": "public function check_winner($active_players_move, $winner_declared){\n\t\t\tif($active_players_move == 1)\n\t\t\t{\n\t\t\t\tif($winner_declared == 'x')\n\t\t\t\t{\n\t\t\t\t\t$winner_declared = \"x\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif($winner_declared == -1)\n\t\t\t\t{\n\t\t\t\t\t$winner_declared = \"d\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif($active_players_move == 2)\n\t\t\t{\n\t\t\t\tif($winner_declared == 'o')\n\t\t\t\t{\n\t\t\t\t\t$winner_declared = \"o\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif($winner_declared == -1)\n\t\t\t\t{\n\t\t\t\t\t$winner_declared = \"d\";\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $winner_declared;\n\t\t}", "title": "" }, { "docid": "806a924a29885cb98a3e1fe9e2712ee5", "score": "0.49635178", "text": "private function \tgetTerritoryOwner($place) {\n\t\t\t$pl = $this->_db->GetRows(\"SELECT `boards`.`board_player` FROM `boards` WHERE `boards`.`board_game` = '$this->_gameID' AND `boards`.`board_place` = '$place' ORDER BY `boards`.`board_id` DESC LIMIT 0, 1\");\n\n\t\t\tif (is_null($pl))\n\t\t\t\treturn (null);\n\n\t\t\treturn (intval($pl[0]['board_player']));\n\t\t}", "title": "" }, { "docid": "ab4c7a9c6bec9b1992b54fc6ec9026d6", "score": "0.49608073", "text": "public function getInGame() : int {\n\t\treturn $this->generator->getInGame();\n\t}", "title": "" }, { "docid": "96278dfea11f23ad5d74d17d9bc6df9c", "score": "0.49591026", "text": "public function getOrdinal(): ?int\n {\n return $this->ordinal;\n }", "title": "" }, { "docid": "a48d8eaf023953a99cef75a254ad8987", "score": "0.49553463", "text": "public function getRank()\n {\n if (array_key_exists(\"rank\", $this->_propDict)) {\n return $this->_propDict[\"rank\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "33f0025133959844c12dabab9ab25506", "score": "0.49420375", "text": "public function getBestRank()\n {\n return $this->get(self::_BEST_RANK);\n }", "title": "" }, { "docid": "c0e7385eb7b0f069e26c2d4c98f13cce", "score": "0.49302483", "text": "public function getRank();", "title": "" }, { "docid": "b9a3f970173a0dc2024beaf16653261f", "score": "0.49125224", "text": "public function getSelfRank()\n {\n $value = $this->get(self::SELF_RANK);\n return $value === null ? (integer)$value : $value;\n }", "title": "" }, { "docid": "03bb5eb8fa9aabf78e56a7a41aded68a", "score": "0.49088565", "text": "public function currentSheetIndex(): ?int\n {\n if (!$this->valid()) {\n $this->sheetIndex = null;\n $this->sheetName = null;\n } elseif (is_null($this->sheetIndex)) {\n $sheet = $this->sheetIterator->current();\n $this->sheetIndex = $sheet->getIndex();\n $this->sheetName = $sheet->getName();\n }\n return $this->sheetIndex;\n }", "title": "" }, { "docid": "f56db5921dcb22a600f36f1f978dd163", "score": "0.49075514", "text": "private function getFirstPlayer() {\n $doubles = (array_map(\n function ($p) {\n return $p->getBiggerDouble();\n },\n $this->players\n ));\n\n $max = max($biggerDoubleValues = array_map(\n function ($d) {\n return (empty($d)) ? 0 : $d->getX();\n }\n , $doubles\n ));\n\n return $this->players[array_keys($biggerDoubleValues, $max)[0]];\n }", "title": "" }, { "docid": "e1d4685b2ed5a31b6d8feec464d91da6", "score": "0.4902274", "text": "private function peek(): ?int\n {\n if ($this->isEOF()) {\n return null;\n }\n\n $code = $this->char();\n $offset = $this->offset();\n $nextCodes = s($this->message)->codePointsAt($offset + ($code >= 0x10000 ? 2 : 1));\n\n return $nextCodes[0] ?? null;\n }", "title": "" }, { "docid": "b9707718f803aca2272f60037064f0dd", "score": "0.4887473", "text": "public function getNumVoie(): ?string {\n return $this->numVoie;\n }", "title": "" }, { "docid": "7158c4336940bee7165e14a046c26432", "score": "0.48830456", "text": "function get_index($message){\r\n\tpreg_match('/^\\D*(?=\\d)/', $message, $i);\r\n\treturn isset($i[0]) ? strlen($i[0]) : false;\r\n}", "title": "" }, { "docid": "14b205865d99f702a5d5bcb219a27d0c", "score": "0.48824874", "text": "public function getColumnIndexFor($row, $columnName)\n {\n \t$index = 0;\n \tforeach ($row as $column)\n \t{\n \t\tif ($column === $columnName) {\n \t\t\treturn $index;\n \t\t}\n \t\t$index++;\n \t}\n\n \treturn null;\n\t}", "title": "" }, { "docid": "4592b8c55a093b34386f2f1fd25a8b86", "score": "0.48699558", "text": "public static function getColIndex($col) {\r\n\t\t$value = 0;\r\n\t\tfor ($i = 0; $i < strlen($col); $i++) {\r\n\t\t\t$ch = strtolower($col[$i]);\r\n\t\t\t$ord = ord($ch) - 96;\r\n\t\t\tif ($ord < 0 || $ord > 26) continue;\r\n\t\t\t$value += $ord*pow(26, strlen($col) - $i - 1);\r\n\t\t}\r\n\t\treturn $value;\r\n\t}", "title": "" }, { "docid": "ea3aff8ac2f5b73764dd0617036dfd70", "score": "0.48572212", "text": "public function getScore(): ?int\n {\n return $this->_score;\n }", "title": "" }, { "docid": "35d264133ed1a6fa4e7233e658bda5f4", "score": "0.48547646", "text": "private static function _get_char_loc($str, $char, $n) {\n if (count(str_split($char)) > 1) {\n throw new Exception (\"Second argument must be a single character.\");\n }\n if (!is_int($n)) {\n throw new Exception (\"Third argument must be an integer.\");\n }\n if ($n <= 0) {\n throw new Exception (\"Third argument must be bigger than 0.\");\n }\n $char_array = str_split($str);\n $counter = 0;\n for ($i = 0; $i < count($char_array); $i++) {\n if ($char_array[$i] === $char) {\n $counter++;\n }\n if ($counter === $n) {\n return $i;\n }\n }\n return -1;\n }", "title": "" }, { "docid": "1a7735aef0dd88e593eac6e1a1361dbc", "score": "0.48496592", "text": "public function getWord() {\n while ( isset( $this->words[$this->wCounter] ) ) {\n $wr = $this->words[$this->wCounter];\n $this->wCounter++;\n return $wr;\n }\n if ( !isset( $this->words[$this->wCounter] ) ) {\n $this->wCounter = 0;\n return END_LINE;\n }\n }", "title": "" }, { "docid": "5a7737c55347c4a9280e9579d413ccac", "score": "0.48406926", "text": "public function key()\n {\n $pos = $this->_itpos;\n return (isset($this->_it[$pos])) ? $this->_it[$pos] : null;\n }", "title": "" }, { "docid": "0bbb68f1de341dbc41967d117586de50", "score": "0.48374552", "text": "public function testCheckWinner()\n {\n $rawBoard = [2,2,1,0,1,1,2,2,2];\n $feedback = [0=>8, 1=>1, 2=>6, 3=>3, 4=>5, 5=>7, 6=>4, 7=>9, 8=>2];\n $formatedBoardRow = 0;\n foreach ($feedback as $index=>$value) {\n if ($index%3==0) {\n $formatedBoardRow++;\n }\n if ($rawBoard[$index] == 1) {\n $formatedBoard[$formatedBoardRow][$value] = \"X\";\n }\n if ($rawBoard[$index] == 2) {\n $formatedBoard[$formatedBoardRow][$value] = \"O\";\n }\n }\n $this->_board = $formatedBoard;\n\n $playerOneAnswers = [];\n $playerTwoAnswers = [];\n foreach ($this->_board as $boardIndex => $boardRow) {\n foreach ($boardRow as $boardRowIndex => $boardRowValue) {\n if ($boardRowValue == \"X\") {\n $this->_scorePlayerOne += $boardRowIndex;\n $playerOneAnswers[] = $boardRowIndex;\n }\n if ($boardRowValue == \"O\") {\n $this->_scorePlayerTwo += $boardRowIndex;\n $playerTwoAnswers[] = $boardRowIndex;\n }\n }\n }\n\n $whoHasWon = 0;\n if ($this->_scorePlayerOne == 15) {\n $whoHasWon = 1;\n }\n\n if ($this->_scorePlayerTwo == 15) {\n $whoHasWon = 2;\n }\n\n if ($whoHasWon == 0) {\n foreach ($this->_winningConditions as $winningCondition) {\n $playerOneMatchResult = array_intersect(\n $playerOneAnswers, $winningCondition\n );\n if (count($playerOneMatchResult) ==3) {\n $whoHasWon = 1;\n }\n\n $playerTwoMatchResult = array_intersect(\n $playerTwoAnswers, $winningCondition\n );\n if (count($playerTwoMatchResult) ==3) {\n $whoHasWon = 2;\n }\n }\n }\n\n //$this->assertGreaterThan($this->_maxScore, $this->_scorePlayerOne);\n //$this->assertEquals($this->_scorePlayerTwo, 10);\n\n $this->assertNotEquals(1, $whoHasWon);\n $this->assertEquals(2, $whoHasWon);\n }", "title": "" }, { "docid": "66b1f93cd60606ca3ef2f05c41e62015", "score": "0.48342648", "text": "public function find_winner($id = null)\n {\n $competition = $this->Competition->find('first', array('conditions' => array('Competition.id' => $id)));\n\n // Does the item exist?\n if(empty($competition))\n {\n // Tell the user this item did not exist\n $this->Session->setFlash('Denne konkurrence findes ikke.'.$this->Session->read('Message.warning.message'), null, array(), 'warning');\n\n // Send the user to the index\n $this->redirect(array('controller' => 'competitions', 'action' => 'index'));\n }\n else if(!$competition['Competition']['is_active'])\n {\n // Tell the user this item did not exist\n $this->Session->setFlash('Denne konkurrence er ikke aktiv.'.$this->Session->read('Message.warning.message'), null, array(), 'warning');\n\n // Send the user to the index\n $this->redirect(array('controller' => 'competitions', 'action' => 'index'));\n }\n\n $winner = null;\n\n if($this->request->is('post'))\n { \n $count = $this->Competition->Participant->find('count', array('conditions' => array('Participant.competition_id' => $id)));\n $winner = $competition['Participant'][rand(0, $count-1)]; \n }\n\n $this->set('competition', $competition);\n $this->set('winner', $winner);\n }", "title": "" }, { "docid": "c107d50ac76eeba47fa3a97ddda4c105", "score": "0.48257607", "text": "function xstats_getPlayerIndex($gameId, $playerId) {\n for($k=1; $k<=10; $k++) {\n $xstatsQuery = \"SELECT spieler_\".$k.\" FROM skrupel_spiele WHERE id=\".$gameId;\n $xstatsResult = @mysql_query($xstatsQuery) or die(mysql_error());\n $xstatsResult = @mysql_fetch_array($xstatsResult);\n if($xstatsResult['spieler_'.$k] == $playerId) {\n return( $k );\n }\n }\n return -1;\n}", "title": "" }, { "docid": "a4e34f488892b434448a087cf4a9667f", "score": "0.4824511", "text": "public function getTeamMemberId(): ?string\n {\n if (count($this->teamMemberId) == 0) {\n return null;\n }\n return $this->teamMemberId['value'];\n }", "title": "" }, { "docid": "2855ba2311be43f51f617d0e796829e6", "score": "0.48232573", "text": "public function key(): ?int\n {\n return $this->key;\n }", "title": "" }, { "docid": "ae696609787239a2b2466aeeaee309d5", "score": "0.48187464", "text": "public function testNoWinnerEither()\n {\n $answers = [2,2,1,0,1,1,0,2,2];\n $winner = Match::getWinner($answers);\n $this->assertEquals(0, $winner);\n }", "title": "" }, { "docid": "90143015f2a28e13986e9c7710aaf283", "score": "0.48168084", "text": "public function getCharacter()\n\t{\n\t\treturn $this->character;\n\t}", "title": "" }, { "docid": "8dbd79accbf2c0106efae41dce133eaf", "score": "0.48096064", "text": "public function getWins()\n {\n return $this->wins;\n }", "title": "" }, { "docid": "562495496796c53c68dd83a1de642a97", "score": "0.48076594", "text": "function fiftyone_degrees_get_node_index_in_string($node, $useragent_bytes, $headers)\n{\n $characters = fiftyone_degrees_get_node_characters($node, $headers);\n $char_count = count($characters);\n $final_index = $char_count - 1;\n $ua_count = count($useragent_bytes);\n for ($index = 0; $index < $ua_count - $char_count; $index++) {\n for ($node_index = 0, $target_index = $index; \n $node_index < $char_count && $target_index < $ua_count; \n $node_index++, $target_index++) {\n\n if ($characters[$node_index] != $useragent_bytes[$target_index])\n break;\n else if ($node_index == $final_index)\n return $index;\n }\n }\n return -1;\n}", "title": "" }, { "docid": "48168af52b68b973e5b2118fcb0f59dd", "score": "0.48069355", "text": "public function getWinnerSymbolIfPresent($boardState) : string;", "title": "" }, { "docid": "ce2eb3712b73ee22b14ed273739dcbae", "score": "0.4803737", "text": "private function findNextChar(int $offset, string $char) : int\n {\n for ($i = $offset, $j = count($this->tokens); $i < $j; ++$i) {\n if (is_string($this->tokens[$i])\n && $this->tokens[$i] === $char\n ) {\n return $i;\n }\n }\n throw new TokenNotFoundException(\"'$char' token char has not been found from $offset position\");\n }", "title": "" }, { "docid": "f6b6b6559b167ca53a95293a8cab3834", "score": "0.4802059", "text": "public function indexOfProvider(ProviderInterface $provider): int;", "title": "" }, { "docid": "62475e38c1120dc5dad237b3400348dd", "score": "0.479742", "text": "public function indexOf($value): ?int\n {\n $i = 0;\n foreach ($this->items as $key => $iValue) {\n if ($value === $iValue) {\n return $i;\n }\n ++$i;\n }\n\n return null;\n }", "title": "" }, { "docid": "35541a744055d099cad0184f2e83da30", "score": "0.47965884", "text": "public function getCurrentPlayer()\n\t\t{\n\t\t\tif ($this->turn === 1)\n\t\t\t{\n\t\t\t\treturn $this->player1;\n\t\t\t}\t//end if\n\t\t\t\n\t\t\treturn $this->player2;\n\t\t}", "title": "" }, { "docid": "caf7746a1283d746a1bb3ca6bbae3ff1", "score": "0.4796037", "text": "public function getRank(): int {\n return ($this->value >> 8) & 0xF;\n }", "title": "" }, { "docid": "0ec7c8d5f80c144abec36e6a1e94542e", "score": "0.47857043", "text": "public function getHumanWins($controller)\n {\n $sql = 'select count(e.victor) c from gamelog g '\n . 'inner join evaluation e on g.computer_choice = e.vanquished and g.player_choice = e.victor';\n return $this->query($controller, $sql)['c'];\n }", "title": "" }, { "docid": "37e28d47ad4289ee26b7fdad2193d41e", "score": "0.47838157", "text": "function zeroOneTeamGamesLostStat($player) {\n $val = (int)zeroOneTeamGamesPlayedStat($player) - (int)zeroOneTeamGamesWonStat($player);\n\n if($val == 0)\n {\n return '';\n }\n\n return $val;\n}", "title": "" }, { "docid": "e680ace84895506a6cfa9fd52b88cb6a", "score": "0.478204", "text": "public function totalComputerWins()\n {\n $qb = $this->createQueryBuilder('r')\n ->select('COUNT(r)')\n ->where('r.win = false AND r.tie = false')\n ;\n\n return $qb->getQuery()->getSingleScalarResult();\n }", "title": "" }, { "docid": "68a28fe946411a447752eb9d0a30fc55", "score": "0.47767428", "text": "public function getLine(): ?int\n\t{\n\t\treturn isset($this->tokens[$this->position]) ? $this->tokens[$this->position]->line : null;\n\t}", "title": "" }, { "docid": "d540b27a5fef126c8926bd9407a3ff92", "score": "0.47706044", "text": "private function whoWins($moveA, $moveB)\n {\n if($moveA == $moveB) return 0;\n if($moveA == 'Paper' \t&& $moveB == 'Scissors') \treturn 2;\n if($moveA == 'Paper' \t&& $moveB == 'Rock') \t\treturn 1;\n if($moveA == 'Rock' \t&& $moveB == 'Scissors') \treturn 1;\n if($moveA == 'Rock' \t&& $moveB == 'Paper') \t\treturn 2;\n if($moveA == 'Scissors' && $moveB == 'Rock') \t\treturn 2;\n if($moveA == 'Scissors' && $moveB == 'Paper') \t\treturn 1;\n return -1;\n }", "title": "" }, { "docid": "9da882e4d34281eac0fa262f25898b63", "score": "0.47519156", "text": "public function leader() : ?Player\n {\n foreach ($this->players as $player) {\n if ($player->leader) {\n return $player;\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "9101e47fd945e2898cd1acd4b04d1c0d", "score": "0.47516233", "text": "public static function char()\n {\n return Player::find(self::char_id());\n }", "title": "" }, { "docid": "cc08e427a87c466dbd8bb8a7ea5b841e", "score": "0.47492477", "text": "private function getPlayerCount() {\n if (isset($this->players))\n return count($this->players);\n return 0;\n }", "title": "" }, { "docid": "a411e6c4d21abebd045fe633df73fb7e", "score": "0.47480363", "text": "public function key(): int\n {\n return $this->index;\n }", "title": "" }, { "docid": "525c4acfb26837c3e84a3372e68a182f", "score": "0.47458532", "text": "public function getNbMatch()\n {\n return $this->nbMatch;\n }", "title": "" }, { "docid": "8a58f62105958ad723f6c3566a6039b3", "score": "0.47450805", "text": "public function getSelfRanking()\n {\n return $this->get(self::_SELF_RANKING);\n }", "title": "" }, { "docid": "ce0673ddd48a39b9b444b9dcca24cf6d", "score": "0.4738871", "text": "public function totalPlayerWins()\n {\n $qb = $this->createQueryBuilder('r')\n ->select('COUNT(r)')\n ->where('r.win = true')\n ;\n\n return $qb->getQuery()->getSingleScalarResult();\n }", "title": "" }, { "docid": "ebe6564a6a5d757e4171d472081cea44", "score": "0.47344625", "text": "public function getPosition(): ?int {\n\t\treturn $this->position;\n\t}", "title": "" }, { "docid": "e74eb5fd12188cdb20b402f6c9b3d798", "score": "0.47337916", "text": "public function key(): int {\n\t\treturn $this->position;\n\t}", "title": "" }, { "docid": "563d6d5876a97d5eeb559848af95144e", "score": "0.47309893", "text": "public function getUnknownRank()\n {\n return $this->unknown_rank;\n }", "title": "" }, { "docid": "bfe03f27d700b88ceab38247e7e69688", "score": "0.47277054", "text": "abstract protected function winnerExists();", "title": "" }, { "docid": "218af640067678a6b6d03a11ee938dea", "score": "0.47145125", "text": "public function getLoser() {\n if($this->winnerType == \"draw\") {\n return \"draw\";\n } elseif($this->winnerID == $this->combatantAID && $this->winnerType == \"player\") {\n return $this->combatantB;\n } else {\n return $this->combatantA;\n }\n }", "title": "" }, { "docid": "20f5f27cba43499fe700254d4623c4ea", "score": "0.470928", "text": "public function testCheckNoWinner()\n {\n $this->_board[0][8] = \"O\";\n $this->_board[0][1] = \"O\";\n $this->_board[0][6] = \"X\";\n $this->_board[1][5] = \"X\";\n $this->_board[1][7] = \"X\";\n $this->_board[2][9] = \"O\";\n $this->_board[2][2] = \"O\";\n\n $playerOneAnswers = [];\n $playerTwoAnswers = [];\n foreach ($this->_board as $boardIndex => $boardRow) {\n foreach ($boardRow as $boardRowIndex => $boardRowValue) {\n if ($boardRowValue == \"X\") {\n $this->_scorePlayerOne += $boardRowIndex;\n $playerOneAnswers[] = $boardRowIndex;\n }\n if ($boardRowValue == \"O\") {\n $this->_scorePlayerTwo += $boardRowIndex;\n $playerTwoAnswers[] = $boardRowIndex;\n }\n }\n }\n\n $whoHasWon = 0;\n if ($this->_scorePlayerOne == 15) {\n $whoHasWon = 1;\n }\n\n if ($this->_scorePlayerTwo == 15) {\n $whoHasWon = 2;\n }\n\n if ($whoHasWon == 0) {\n foreach ($this->_winningConditions as $winningCondition) {\n\n $playerOneMatchResult = array_intersect(\n $playerOneAnswers, $winningCondition\n );\n if (count($playerOneMatchResult) ==3) {\n $whoHasWon = 1;\n }\n\n $playerTwoMatchResult = array_intersect(\n $playerTwoAnswers, $winningCondition\n );\n if (count($playerTwoMatchResult) ==3) {\n $whoHasWon = 2;\n }\n }\n }\n\n $this->assertNotEquals(1, $whoHasWon);\n $this->assertNotEquals(2, $whoHasWon);\n }", "title": "" }, { "docid": "197467c3094de516e2920cb680182e4d", "score": "0.4708066", "text": "public function selectMinKey(): ?int;", "title": "" }, { "docid": "42d6cf6220dfc20d7ae042296ef6a8b8", "score": "0.47073263", "text": "public function key(): int\n {\n return $this->position;\n }", "title": "" }, { "docid": "42d6cf6220dfc20d7ae042296ef6a8b8", "score": "0.47073263", "text": "public function key(): int\n {\n return $this->position;\n }", "title": "" }, { "docid": "42d6cf6220dfc20d7ae042296ef6a8b8", "score": "0.47073263", "text": "public function key(): int\n {\n return $this->position;\n }", "title": "" }, { "docid": "61663e286879bdeecad76e38bf5c0cd0", "score": "0.47055042", "text": "public function lookahead(): Byte|Token|null\n {\n if ($this->replay !== []) {\n return $this->replay[0];\n }\n\n $n = $this->next();\n if ($n !== null) {\n \\array_unshift($this->replay, $n);\n }\n\n return $n;\n }", "title": "" }, { "docid": "69ac719dc48e163858016bffb115a4e6", "score": "0.4700516", "text": "public function char() {\n return ($this->char++ < $this->EOF)\n ? $this->data[$this->char - 1]\n : false;\n }", "title": "" } ]
1dd88815035207f926d8b71d9b363d4c
Require a simple login for a page based on cookie
[ { "docid": "7ad9a73cba7ed8e58adbe1c0ef475716", "score": "0.7571861", "text": "public static function requireLogin()\n\t{\n\t\t$fieldName \t= 'logged';\n\t\t$correct = md5('MY_SUPER_SERCET_PASSWORD');\n\n\t\tself::normalizeDomain();\n\n\t\t$protocol = (isset($_SERVER['HTTPS']) && $_SERVER[\"HTTPS\"] == \"on\") ? \"https://\" : \"http://\";\n\t\t$referUrl = $protocol . $_SERVER['HTTP_HOST'] . $_SERVER[\"REQUEST_URI\"];\n\n\t\tif (!empty($_COOKIE[$fieldName]) && $_COOKIE[$fieldName] == $correct){\n\t\t\tsetcookie($fieldName, $correct, time() + 60 * 60 * 8, '/');\n\t\t\treturn; //access granted\t\t\t\n\t\t} else if (!empty($_POST[$fieldName]) && md5($_POST[$fieldName]) == $correct) {\n\t\t\tsetcookie($fieldName, $correct, time() + 60 * 60 * 8, '/');\n\t\t\theader('Location: ' . $referUrl);\n\t\t\treturn;\t//access granted\t\t\n\t\t}\n\n\t\tinclude(dirname(__FILE__) . '/tpl/header.php');\n\n\t\tif (!empty($_POST[$fieldName])){\t\t\t\n\t\t\techo '<p class=\"alert alert-danger\">Wrong password</p>';\n\t\t}\n\n\t\tinclude(dirname(__FILE__) . '/tpl/access.php');\n\t\tinclude(dirname(__FILE__) . '/tpl/footer.php');\n\t\texit;\t\t\t\n\t}", "title": "" } ]
[ { "docid": "1c52f33a1600341607d46390a5565278", "score": "0.7321469", "text": "function checkCookie(){\n $user = User::getUserByLoginId(htmlspecialchars($_COOKIE['auth']));\n if($user){\n connectUser($user->getPseudo(), false);\n header(\"Location: index.php\");\n } else logout();\n}", "title": "" }, { "docid": "288813580650809ff1ec293011808eb0", "score": "0.7246575", "text": "private function cookieLogin() {\n try {\n $token = $this->credentialsHandler->getCredentials();\n $this->loginModel->logInByToken($token);\n $this->loginView->setCookieLoginMessage();\n } catch (\\Exception $e) {\n $this->credentialsHandler->clearCredentials();\n $this->loginView->setFaultyCookieMessage();\n }\n }", "title": "" }, { "docid": "3f006c7e0effa9eca1a10922687b6ba1", "score": "0.7022589", "text": "private function require_login()\n\t{\n\t\tglobal $User;\n\t\t\n\t\tif ( !$User->logged_in() )\n\t\t{\n\t\t\t// Save this page's URL variables.\n\t\t\t$_SESSION['post-login'] = $_SERVER['QUERY_STRING'];\n\t\t\t\n\t\t\t// Redirect to login page.\n\t\t\theader('Location: /?p=login');\n\t\t\t\n\t\t\t// Halt execution of the current page and script.\n\t\t\texit();\n\t\t}\n\t}", "title": "" }, { "docid": "d5d741770f454ba1d06fa79d966acec5", "score": "0.7004204", "text": "function Admin_login() \n{\n if ($_POST['password'] == option('password') ) {\n setcookie(\"user\", \"Alex Porter\", time()+3600);\n return html('admin/index.html.php');\n } else {\n return html('admin/index_login.html.php');\n }\n}", "title": "" }, { "docid": "4a07fdc7ff25a0774a62aebc9cd1443b", "score": "0.68741494", "text": "abstract public function requireLogin();", "title": "" }, { "docid": "0983866c17a44978ab08100f4466e65a", "score": "0.6852278", "text": "public function cookieLogin() {\r\n\t\tif (!isset($_COOKIE[$this->cookieName]) || $_COOKIE[$this->cookieName] == '')\r\n\t\t\treturn false;\r\n\r\n\t\t$id = $this->db->query('SELECT id FROM '.$this->tableName.' WHERE md5(id || \\'|\\' || username || \\'|\\' || created) = %',\r\n\t\t\t$_COOKIE[$this->cookieName])->fetchCell();\r\n\r\n\t\tif ($id) {\r\n\t\t\t$this->doLogin($id, true);\r\n\t\t\treturn $this->loggedIn;\r\n\t\t} else\r\n\t\t\treturn false;\r\n\t}", "title": "" }, { "docid": "eae515986de0c2e258548457d9678e55", "score": "0.682016", "text": "function _authenticate(){\r\n\t\tif(!isset($_SESSION['admin_login'])) {\r\n\t\t\t//checking is the cookie is set or not\r\n\t\t\tif(isset($_COOKIE['username']) && isset($_COOKIE['password'])) {\r\n\t\t\t\t//cookie found, checking if is it really in use\r\n\t\t\t\tif($this->_check_db($_COOKIE['username'], $_COOKIE['password'])){\r\n\t\t\t\t\t$_SESSION['admin_login'] = $_COOKIE['username'];\r\n\t\t\t\t\theader(\"Location: index.php\");\r\n\t\t\t\t\tdie();\r\n\t\t\t\t}else{\r\n\t\t\t\t\theader(\"Location: login.php\");\r\n\t\t\t\t\tdie();\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\theader(\"Location: login.php\");\r\n\t\t\t\tdie();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "60caa093e8473e77712ccfcdc120e160", "score": "0.6751037", "text": "public function login_check()\n\t\t{\n\t\t\t$this->session_start();\n\n\t\t\t\n\t\t\t\tif(isset($_COOKIE['admin_id'])){\n\n\t\t\t\t\t$_SESSION['admin_id'] = $_COOKIE['admin_id'];\n\n\t\t\t\t} elseif(isset($_COOKIE['user_id'])) {\n\n\t\t\t\t\t$_SESSION['user_id'] = $_COOKIE['user_id'];\n\n\t\t\t\t} \n\n\t\t}", "title": "" }, { "docid": "a3f624cb63232505a722973d121f5a7a", "score": "0.6705625", "text": "abstract protected function _frontend_login();", "title": "" }, { "docid": "af7d2c2d9391470a43af0b4f30f5800f", "score": "0.67041767", "text": "public function p_login(){\n $_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\n # Hash submitted password so we can compare it agains db\n $_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\n\n # Search the db for this email and password\n # Grab token, if it's there\n $token = Token::look_for_token($_POST['email'], $_POST['password']);\n\n # If we don't find a token, login fails\n if (!$token){\n Router::redirect(\"/users/signin/errorLogin\");\n\n # Otherwise, login\n } else {\n setcookie(\"token\", $token, strtotime('+1 year'), '/');\n\n # Send them to the main page - or wherever\n Router::redirect(\"/users/profile\"); \n }\n }", "title": "" }, { "docid": "eba98ac5e691eb20252f5aae8aa16c43", "score": "0.66280764", "text": "public function requireLogin()\n {\n if (!$this->user = Auth::getUser()) {\n\n Auth::rememberRequestedPage();\n Flash::addMessage('Please login to access that page.', Flash::ERROR);\n\n $this->redirect('/');\n }\n }", "title": "" }, { "docid": "c7178630013f6bfb001b92f87ac06adb", "score": "0.6626513", "text": "public function login_requires(){\n session_start();\n if($_SESSION['user_id'] == FALSE){\n $this->redirect_js('../login.php');\n }\n }", "title": "" }, { "docid": "ae7b5c169dbe8888e43fd48c1768d2eb", "score": "0.66184545", "text": "public function requireLogin(): void {\n\t\tif (! Auth::getUser()) {\n\t\t\tFlash::addMessage('Please log in to access that page', Flash::INFO);\n\t\t\tAuth::rememberRequestedPage();\n\n\t\t\tUtilities::redirect('/login', 303);\n\t\t}\n\t}", "title": "" }, { "docid": "3d5c30232a39a7bb521967addf532ec1", "score": "0.6611124", "text": "public function p_login() {\n\t\t$_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\t\n\t\t# Hash submitted password we can compare it against one in the db\n\t\t$_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\n\n\t\t# Search the db for this email and password\n\t\t# Retrieve the token if it's available\n\t\t$q = \"SELECT token \n\t\t\tFROM users \n\t\t\tWHERE email = '\".$_POST['email'].\"' \n\t\t\tAND password = '\".$_POST['password'].\"'\";\n\t\t\n\t\t$token = DB::instance(DB_NAME)->select_field($q);\n\t\t\n\t\t# Login failed\n\t\tif(!$token) {\n\t\t\n\t\t\t# Dispay error message\n\t\t\tRouter::redirect(\"/users/login/error\");\n\t\t\n\t\t# Login succeeded! \n\t\t} else {\n\t\t\n\t\t\t# Store cookie for 4 weeks\n\t\t\tsetcookie(\"token\", $token, strtotime('+4 weeks'), '/');\n\t\t\t\n\t\t\t# Redirect to the main page\n\t\t\tRouter::redirect(\"/\");\n\t\t}\n }", "title": "" }, { "docid": "57a27b2ee85e2b05e796c42f31f75ed0", "score": "0.6597809", "text": "function requireLogin(){\r\n\tglobal $session;\r\n\tif(!$session->isLogedIn()){\r\n\t\t header(\"Location: \" .URL.'../login');\r\n\t}else{\r\n\t\t//.............allow the page....................\r\n\t}\r\n}", "title": "" }, { "docid": "12ecf1f8a9e8ea60b53f7fe93d44e354", "score": "0.6571226", "text": "function require_login() {\n if(!is_logged_in()) {\n redirect_to(url_for('/login.php'));\n } else {\n // Do nothing, let the rest of the page proceed\n }\n}", "title": "" }, { "docid": "89a41a4fd0c1d9a0b857a8c860c3b4d0", "score": "0.6570934", "text": "function askLogin()\n{\n\t$requestUrl\t=\tstr_replace('/alisoncms/','',$_SERVER['REQUEST_URI']);\n\t$sessionErrorFlag\t=\t0;\n\tif(!isset($_SESSION[\"id\"]))\n\t{\n\t\t$sessionErrorFlag\t=\t1;\n\t}else\n\t{\n\t\tif($_SESSION[\"id\"]=='' || $_SESSION[\"id\"]==NULL)\n\t\t{\n\t\t\t$sessionErrorFlag\t=\t1;\t\t\n\t\t}\n\t}\n\tif($sessionErrorFlag\t==\t1)\n\t{\n\t\techo \"<script> window.location.href='\".WEBSITE_URL.\"theme.php?go=signin&requestUrl=\".$requestUrl.\"'</script>\";\n\t\texit;\n\t}\n\t\n}", "title": "" }, { "docid": "b8d31f65c27ba0073a995fdc4b750ef9", "score": "0.654551", "text": "function auto_login()\n{\nif(!empty($_COOKIE['auth'])){\n\t$split = explode(':',$_COOKIE['auth']);\n\tif(count($split) !== 2)\n\t{\n\t\treturn false;\n\t}\n\t// recuperer via ce cookie $selector, $token\n$selector = $split[0];\n$token = $split[1];\nglobal $db;\n$q = $db->prepare('SELECT auth_tokens.token, auth_tokens.user_id, \nusers.id , users.pseudo, users.url, users.email\nFROM auth_tokens\nLEFT JOIN users\non users.id = auth_tokens.user_id\n WHERE selector = ? AND expires >= CURDATE()');\n$q->execute([base64_decode($selector)]);\n$data = $q->fetch(PDO::FETCH_OBJ);\n\n\nif($data)\n{\n\tif(hash_equals($data->token,hash('sha256', base64_decode($token))))\n\t{\n\t\tsession_regenerate_id(true); \n$_SESSION['user_id'] =$data->id;\n$_SESSION['pseudo'] =$data->pseudo;\n$_SESSION['email'] =$data->email;\n$_SESSION['url'] =$data->url;\t\nreturn true;\n\t}\n\t\n\t}\n}\t\nreturn false;\n\n\t\t}", "title": "" }, { "docid": "bb188facd7a4c8e64b74de1cf6350961", "score": "0.6536583", "text": "protected function cookieLoggin()\r\n {\r\n //cookie expiration time\r\n $currentTime = time();\r\n $currentDate = date('Y-m-d H:i:s', $currentTime);\r\n\r\n //set auth token directive to false\r\n if (!empty($_COOKIE['user_login']) && !empty($_COOKIE['random_password']) && !empty($_COOKIE['random_selector'])) {\r\n $isPasswordVerified = false;\r\n $isSelectorVerified = false;\r\n $isExpiryDateVerified = false;\r\n\r\n //Get token from id\r\n $db = Db::connect();\r\n $userToken = new Token($db);\r\n $userToken = $userToken->getTokenByUserId($_COOKIE['user_login'], 0);\r\n\r\n //validate random_password\r\n if (password_verify($_COOKIE['random_password'], $userToken->passwordHash)) {\r\n $isPasswordVerified = true;\r\n }\r\n\r\n //validate random selector\r\n if (password_verify($_COOKIE['random_selector'], $userToken->selectorHash)) {\r\n $isSelectorVerified = true;\r\n }\r\n\r\n //check cookie expiration date\r\n if ($userToken->expiryDate >= $currentDate) {\r\n $isExpiryDateVerified = true;\r\n }\r\n\r\n //check and redirect if cookie based validation returns ture else mark token as expired and clear cookies\r\n if (!empty($userToken->id) && $isPasswordVerified && $isSelectorVerified && $isExpiryDateVerified) {\r\n $user = new User($db);\r\n $user = $user->findById($_COOKIE['user_login']);\r\n return $user;\r\n } else {\r\n //clear cookies\r\n if (!empty($userToken->id)) {\r\n $userToken->setTokenExpired($userToken->id);\r\n }\r\n if (isset($_COOKIE['user_login'])) {\r\n setcookie('user_login', '', '-1', '/');\r\n }\r\n\r\n if (isset($_COOKIE['random_password'])) {\r\n setcookie('random_password', '', '-1', '/');\r\n }\r\n\r\n if (isset($_COOKIE['random_selector'])) {\r\n setcookie('random_selector', '', '-1', '/');\r\n }\r\n return false;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "7a598efd30eb49c667bf6bc21b7249ee", "score": "0.6534142", "text": "public function doLoginWithCredentials()\n {\n $inputIP = $this->view->getIP();\n $inputBrowser = $this->view->getBrowserInfo();\n $savedCredentials = $this->view->getSavedCredentials();\n\n try\n {\n /* $savedCredentials[0] == username\n * $savedCredentials[1] == password */\n $this->model->loginUserWithCredentials($savedCredentials[0], $savedCredentials[1], $inputIP, $inputBrowser);\n $this->view->addSuccessMessage('Inloggning lyckades via cookies');\n }\n catch (Exception $e)\n {\n $this->view->addErrorMessage('Felaktig information i cookies');\n $this->view->removeCredentials();\n }\n\n $this->view->redirect($_SERVER['PHP_SELF']);\n }", "title": "" }, { "docid": "831fb1e2daaf6300da328bf39a35faaf", "score": "0.6528648", "text": "public function login()\n {\n // set the cookie params.\n $cookieParams = [\n // set the cookies for 30 days.\n 'expires' => time() + 2592000,\n 'path' => '/',\n 'domain' => '',\n ];\n\n // set the cookie.\n setcookie('permission', 'granted', $cookieParams);\n }", "title": "" }, { "docid": "9b88e48a90b4bc8dd047647890847a0b", "score": "0.6515183", "text": "static function requireLogin($redirect = '/sign-in') {\n\t\t\tglobal $site;\n\t\t\theader(\"Expires: on, 01 Jan 1970 00:00:00 GMT\");\n\t\t\theader(\"Last-Modified: \" . gmdate(\"D, d M Y H:i:s\") . \" GMT\");\n\t\t\theader(\"Cache-Control: no-store, no-cache, must-revalidate\");\n\t\t\theader(\"Cache-Control: post-check=0, pre-check=0\", false);\n\t\t\theader(\"Pragma: no-cache\");\n\t\t\t# Check user\n\t\t\tif ( self::$user_id ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif ($redirect) {\n\t\t\t\t$site->redirectTo( $site->urlTo($redirect) );\n\t\t\t\texit;\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "5ccfa30fa259ece308cae02141f4434c", "score": "0.6512691", "text": "public function authenticate() {\n $name = config::get(CookieAuthentication::KEY_COOKIE_NAME,'leptonauth');\n $ca = Cookies::getInstance(Cookies);\n if ($ca->has($name)) {\n $kd = $ca->get($name);\n $c = $this->decryptCookie($kd);\n $db = DBX::getInstance(DBX);\n $r = $db->getSingleRow(\"SELECT id FROM users WHERE id='%d' AND username='%s'\", $c['uid'], $c['uname']);\n if ($r) {\n User::setActiveUser($r['id']);\n return true;\n }\n }\n }", "title": "" }, { "docid": "4baaf59f03fcab77739ed3c7720296eb", "score": "0.650485", "text": "function Admin_index() \n{\n if (isset($_COOKIE[\"user\"]) ) {\n return html('admin/index.html.php');\n } else {\n return html('admin/index_login.html.php');\n }\n}", "title": "" }, { "docid": "f49e1a14ebbc292a4512ae1c738728c1", "score": "0.6497103", "text": "static private function enforceLogin(){\r\n\r\n\t\tif (self::$page !== 'login' && self::$page !== 'install' && self::$page !== '404' && !Session::isLoggedIn()){\r\n\t\t\theader('Location: index.php?p=login');\r\n\t\t\texit;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6126b8ece2a2cb3fd97165368c4d72e2", "score": "0.6463715", "text": "function initWithCookie() {\n\tif (!isset($_COOKIE['username']) || !isset($_COOKIE['passhash'])) {\n\t\treturn false;\n\t}\n\treturn $this->initWithAuth($_COOKIE['username'],$_COOKIE['passhash']);\n}", "title": "" }, { "docid": "fa8674232e2f129f4ea71524a4f8fd06", "score": "0.64568627", "text": "public function login();", "title": "" }, { "docid": "ae66d9eb719597bd6b48fc14302f73f6", "score": "0.6437015", "text": "function isLoggedIn(){\n return (isset($_COOKIE['logcheck'])) ? true : false;\n }", "title": "" }, { "docid": "bcda556768ac17a4bfedb7cb20f26977", "score": "0.64246887", "text": "public function requireLogin()\n {\n if(! Authenticate::getUser())\n {\n //echo \"got profile index<br/>\";\n Flash::addMessage('Please log in to access requested page');\n\n Authenticate::rememberRequestedPage();\n\n $this->redirect('/fyp/public/?Admin/Login/new');\n }\n }", "title": "" }, { "docid": "3a2c07b13bba544ae392ee3913b4ccab", "score": "0.640798", "text": "public static function getCookieForLogin() {\n $userSession = UserSessions::getUserCookie();\n if($userSession) {\n $user = new self((int)$userSession->user_id);\n if($user) {\n $user->login();\n }\n }\n }", "title": "" }, { "docid": "2179b5e3949d3ee830297a67905e5650", "score": "0.64033973", "text": "function login_by_cookie($iduser)\n{\n\tglobal $d;\n\t$cond=true;\n\t$d->reset();\n $sql = \"select * from #_user where id = '\".$iduser.\"' and hienthi='1' and role=1\";\n $d->query($sql);\n if($d->num_rows() == 1)\n {\n $row = $d->fetch_array();\n $_SESSION[$login_name][$login_name] = true;\n $_SESSION[$login_name]['id'] = $row['id'];\n $_SESSION[$login_name]['username'] = $row['username'];\n $_SESSION[$login_name]['dienthoai'] = $row['dienthoai'];\n $_SESSION[$login_name]['diachi'] = $row['diachi'];\n $_SESSION[$login_name]['email'] = $row['email'];\n $_SESSION[$login_name]['ten'] = $row['ten'];\n $time_expiry=time()+3600*24*7;\n $iduser=$row['id'];\n setcookie('iduser',$iduser,$time_expiry,'/');\n }\n else\n {\n \t$cond=false;\n }\n return $cond;\n}", "title": "" }, { "docid": "c8018feda6828a99884f6bd5d2d0832c", "score": "0.6382883", "text": "public function loginRequired();", "title": "" }, { "docid": "3886df33ff9a26c73edb2a317f1cd577", "score": "0.63787436", "text": "function my_gal_set_login_cookie($dosetcookie) {\n return $GLOBALS['pagenow'] == 'wp-login.php';\n}", "title": "" }, { "docid": "37da5a85cbc35dd13c69ceba44e3fc1c", "score": "0.636695", "text": "public function p_login() {\n\t \n\t # Sanitize Data Entry\n \t$_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\t \n\t # Compare password to database\n\t\t$_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\n\t \n\t # Search the db for this email and password\n\t\t# Retrieve the token if it's available\n\t\t$q = \n\t\t\t'SELECT token\n\t\t\tFROM users \n\t\t\tWHERE email = \"'.$_POST['email'].'\" \n\t\t\tAND password = \"'.$_POST['password'].'\"';\n\t\n\t \n\t # If there was, this will return the token\n\t $token = DB::instance(DB_NAME)->select_field($q);\n\t \n\t # Login failed\n\t\tif(!$token) {\n \n\t\t\t # Note the addition of the parameter \"error\"\n\t\t\t Router::redirect(\"/users/login/invalid-login\"); \n\t\t}\n \n\t\t# Login passed\n\t\telse {\n \tsetcookie(\"token\", $token, strtotime('+2 weeks'), '/');\n\t\t\tRouter::redirect(\"/\");\n\t\t\t}\n \t}", "title": "" }, { "docid": "926fd0dd4796662502474810c193d60e", "score": "0.63579184", "text": "private function logIn()\n {\n $session = $this->client->getContainer()->get('session');\n\n $firewallName = 'main';\n $token = new UsernamePasswordToken('Matteo', null, $firewallName, ['ROLE_USER']);\n $session->set('_security_'.$firewallName, serialize($token));\n $session->save();\n\n $cookie = new Cookie($session->getName(), $session->getId());\n $this->client->getCookieJar()->set($cookie);\n }", "title": "" }, { "docid": "9a21cab869fd95b6ba7edb1e46a4b197", "score": "0.6357073", "text": "function loggedInCheck()\n{\n\t// ALLEEN TE GEBRUIKEN VOOR LOG IN REQUIRED PAGES\n\tif (!isset($_SESSION['user_id'])) {\n\t\tsession_start();\n\t}\n}", "title": "" }, { "docid": "b88a1e7aa9bd64f210b03ac9c2a3c615", "score": "0.6356116", "text": "protected function _check_login()\n\t{\n\t\t$this->_no_cache();\n\n\t\t// load this after the the above because it needs a database connection. Avoids a database connection error if there isn't one'\n\t\t$this->load->module_library(FUEL_FOLDER, 'fuel_auth');\n\t\t\n\t\t// check if logged in\n\t\tif (!$this->fuel_auth->is_logged_in() OR !is_fuelified())\n\t\t{\n\t\t\t$login = $this->config->item('fuel_path', 'fuel').'login';\n\t\t\t\n\t\t\t// logout officially to unset the cookie data\n\t\t\t$this->fuel_auth->logout();\n\t\t\t\n\t\t\tif (!is_ajax())\n\t\t\t{\n\t\t\t\tredirect($login.'/'.uri_safe_encode($this->uri->uri_string()));\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\t$output = \"<script type=\\\"text/javascript\\\" charset=\\\"utf-8\\\">\\n\";\n\t\t\t\t$output .= \"top.window.location = '\".site_url($login).\"'\\n\";\n\t\t\t\t$output .= \"</script>\\n\";\n\t\t\t\t$this->output->set_output($output);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t\n\t}", "title": "" }, { "docid": "a77f00113c27526f9f1b77eddcd50f07", "score": "0.63560414", "text": "function cookie_auth($user_login, $user){\n\n $url = $_SERVER['HTTP_REFERER'];\n $Token = md5(uniqid(rand(), true));\n\n setcookie(\"wp_la_token\", $Token, time() + 86400 , \"/\", \".churchfuel.com\"); // 86400 = 1 day\n //setcookie(\"User_detail\", $user_detail, time() + 86400, \".churchfuel.com\"); // 86400 = 1 day\n database_conn($Token, $user);\n la_flag($url);\n}", "title": "" }, { "docid": "2c021d0e5a1b7ff9e33a3b605215a04b", "score": "0.6355817", "text": "function is_login_from_cookie(){\n\t\tif(isset($_COOKIE['is_org']))\n\t\t{\n\t\t\tif(!isset($_SESSION['is_org']))\n\t\t\t{\n\t\t\t\tif($_COOKIE['is_org'] == \"yes\")\n\t\t\t\t\t$_SESSION['is_org']=true;\n\t\t\t\telse\n\t\t\t\t\t$_SESSION['is_org']=false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}else\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "8b760e2bdf1ea177f3cd14a9e93e23a1", "score": "0.6353999", "text": "public function p_login () {\n $_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\n # Hash submitted password so we can compare it against one in the db\n $_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\n\n # Search the db for this email and password\n # Retrieve the token if it's available\n $q = \"SELECT token \n FROM users \n WHERE email = '\".$_POST['email'].\"' \n AND password = '\".$_POST['password'].\"'\";\n\n $token = DB::instance(DB_NAME)->select_field($q);\n\n # If we didn't find a matching token in the database, it means login failed\n if(!$token) {\n\n # Send them back to the login page\n Router::redirect(\"/users/login/error\");\n\n }\n\n # But if we did, login succeeded! \n else {\n\n /* \n Store this token in a cookie using setcookie()\n Important Note: *Nothing* else can echo to the page before setcookie is called\n Not even one single white space.\n param 1 = name of the cookie\n param 2 = the value of the cookie\n param 3 = when to expire\n param 4 = the path of the cooke (a single forward slash sets it for the entire domain)\n */\n setcookie(\"token\", $token, strtotime('+1 year'), '/');\n \n #Route to profile\n Router::redirect(\"/users/profile/\");\n \n }\n\n }", "title": "" }, { "docid": "ab6d7d5a15a5109009422e3a29bbb12b", "score": "0.6350287", "text": "public function login() {\n\t\t$uri = new URI();\n\n\t\t// Redirect to invite page if not logged or signing in\n\t\tif (!in_array($uri->string(), array('invite', 'sign/in')) && strpos($uri->string(), 'sign/up') !== 0 && !Visitor::instance()->logged_in()) {\n\n\t\t\t// Stop execution if ajax, ie. expired session and trying to do ajax call\n\t\t\tif (request::is_ajax()) {\n\t\t\t\texit;\n\t\t\t}\n\n\t\t\turl::redirect('invite');\n\t\t}\n\n\t}", "title": "" }, { "docid": "830095cca4aefe60db2e0c916b272ae1", "score": "0.63460386", "text": "public static function checklogin(){\n\t\t$password = EHeaderDataParser::get_cookie(EProtect::$localkey);\n\t\tif($password){\n\t\t\tif($password == EConfig::$data['generic']['password']){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(isset($_POST['password'])){\n\t\t\t$password = $_POST['password'];\n\t\t\tif($password == EConfig::$data['generic']['password']){\n\t\t\t\tEHeaderDataParser::set_cookie(EProtect::$localkey, $password, 60); //60seconds*30 = max 30 minutes session\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "a3d7e4e88e8b87cf587b59227b1577e4", "score": "0.63407195", "text": "function index_login_cookie_check($p_redirect_url = \"\")\n{\n global $g_string_cookie_val, $g_project_cookie_val,\n $g_login_page, $g_logout_page, $g_login_select_proj_page,\n $g_hostname, $g_db_username, $g_db_password, $g_database_name,\n $g_mantis_user_table;\n\n # if logged in\n if (!empty($g_string_cookie_val)) {\n if (empty($g_project_cookie_val)) {\n print_header_redirect($g_login_select_proj_page);\n exit;\n }\n\n # set last visit cookie\n\n db_connect($g_hostname, $g_db_username, $g_db_password, $g_database_name);\n\n # get user info\n $t_enabled = get_current_user_field(\"enabled\");\n\n # check for acess enabled\n if (OFF == $t_enabled) {\n print_header_redirect($g_login_page);\n }\n\n # update last_visit date\n login_update_last_visit($g_string_cookie_val);\n db_close();\n\n # go to redirect\n if (!empty($p_redirect_url)) {\n print_header_redirect($p_redirect_url);\n exit;\n } else { # continue with current page\n return;\n }\n } else { # not logged in\n print_header_redirect($g_login_page);\n exit;\n }\n}", "title": "" }, { "docid": "551bb2f28dc48e2a84799624e159700e", "score": "0.6338052", "text": "function isLoggedIn()\n{\n if (isset($_SESSION['user_id']) && isset($_SESSION['nickname']))\n {\n return true; // the user is loged in\n } \n elseif (cookieValid()) {\n \n return true; //cookie is available, log in that way\n }\n else\n {\n return false; // not logged in\n }\n \n return false;\n \n}", "title": "" }, { "docid": "a81d52a3de13ca87228e3923ac24f8a2", "score": "0.63353777", "text": "function authenticated() {\n return isset($_COOKIE['openid']) && wasUserValidatedBefore($_COOKIE['openid']);\n}", "title": "" }, { "docid": "11d20fe7821ba4a56f4a8d3c31fa445f", "score": "0.6329766", "text": "function check_login() {\n // we will get the cookies up and going for this later. \n\t// base url\n\t$user_privileges = 0; // for possible later use\n\t$userid = '';\n if( array_key_exists('uid', $_SERVER)){\n $userid = $_SERVER['uid'];\n } else {\n $userid= 'enoon';\n $user_privileges = 0;\n if($_SERVER['HTTP_HOST'] == '127.0.0.1' || $_SERVER['HTTP_HOST'] == 'localhost') // debug on the local host \n $userid = 'cfschulte';\n }\n $userInfo = getUserInfo( $userid );\n // showArray($userInfo);\n // Let them through if they are on the list, otherwise send them to disallow.\n if( empty($userInfo) ){\n header('Location: /build_lab_inventory/unauthorized.php');\n }\n // else follow through to the called page \n return $userInfo;\n}", "title": "" }, { "docid": "c4125cb6bb99f3205ae04e933a5c8204", "score": "0.63259", "text": "function login_cookie_check($p_redirect_url = \"\")\n{\n global $g_string_cookie_val, $g_project_cookie_val,\n $g_login_page, $g_logout_page, $g_login_select_proj_page,\n $g_hostname, $g_db_username, $g_db_password, $g_database_name,\n $g_mantis_user_table;\n\n # if logged in\n //echo \"Jumanji.....$g_string_cookie_val\";\n if (!empty($g_string_cookie_val)) {\n db_connect($g_hostname, $g_db_username, $g_db_password, $g_database_name);\n\n # get user info\n $t_enabled = get_current_user_field(\"enabled\");\n # check for acess enabled\n if (OFF == $t_enabled) {\n print_header_redirect($g_logout_page);\n }\n\n # update last_visit date\n login_update_last_visit($g_string_cookie_val);\n db_close();\n # if no project is selected then go to the project selection page\n if (empty($g_project_cookie_val)) {\n print_header_redirect($g_login_select_proj_page);\n exit;\n }\n\n # go to redirect if set\n if (!empty($p_redirect_url)) {\n print_header_redirect($p_redirect_url);\n exit;\n } else { # continue with current page\n return;\n }\n } else { # not logged in\n print_header_redirect($g_login_page);\n exit;\n }\n}", "title": "" }, { "docid": "b4ea4df121b3370e46493098a71ce90a", "score": "0.6316177", "text": "function login($name, $pass) {\n //load users database \n require(\"data/users.php\");\n\n foreach($users as $user){\n if ($user['name'] === $name){\n if ($user['password'] === $pass){\n // to connect user using cookie in browser\n // setcookie('blog_login', $name, strtotime(\"+ 1 week\"), \"/\");\n\n $_SESSION['user'] = $user;\n\n return true;\n }\n }\n // if nothing correspon\n return false;\n }\n\n return false;\n}", "title": "" }, { "docid": "3b9c1ac4a6a74729e957620ce106fe86", "score": "0.6311923", "text": "static function ForceLogin() {\n if(isset($_SESSION['user_id'])) {\n // user is logged in\n } else {\n // user is not logged in\n header(\"Location: /login.php\"); exit;\n }\n }", "title": "" }, { "docid": "5ecb00b68b9bb2830fe7b77827a66d72", "score": "0.63108176", "text": "function logged_in(){\n\t\tif(isset($_SESSION['username']) || isset($_COOKIE['username'])){\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "7264a97be595a4a58a0854797279467b", "score": "0.63098145", "text": "function loginSubmit(){\n\tglobal $db;\n\tif (isset($_POST['submit'])) {\n\t\textract($_POST);\n\t\t$pwd = sha1($pwd);\n\t\t$statement = $db->prepare(\"SELECT * FROM users WHERE email = ? AND pwd = ?\");\n\t\t$statement->execute([$email, $pwd]);\n\t\tsql_check_error($statement);\n\t\tif ($action = $statement->fetch()) {\n\t\t\t$_SESSION['connected'] = true;\n\t\t\t$_SESSION['id_u'] = $action['id_u'];\n\t\t\t$_SESSION['username'] = $action['username'];\n\t\t\t$_SESSION['alias'] = $action['alias'];\n\n\t\t\tif (isset($_POST['remember']) && ($_POST['remember'] == \"cookie_verif\")) {\n\t\t\t\tsetcookie('auth',$action['id_u'].\"-----\".sha1($action['email'].$action['pwd']),time()+(3600*24*3),'/','localhost',false,true);\n\t\t\t\t//le dernier argument évite que le cookie soit éditable en javascript\n\t\t\t}\n\t\t\theader(\"Location:index.php?p=home\");\n\t\t}\n\t\tif(isset($_COOKIE['auth']))\n\t\t{\n\t\t\textract($_SERVER);\n\t\t\textract($_COOKIE);\n\t\t\t// $auth = $_COOKIE['auth'];\n\t\t\t$auth = explode('-----',$auth);\n\t\t\t$statement = $db->prepare(\"SELECT * FROM users WHERE id_u = ?\");\n\t\t\t$statement->execute([$auth[0]]);\n\t\t\t$action = $statement->fetch();\n\t\t\t$key = sha1($email.$pwd.$REMOTE_ADDR);\n\t\t\tif ($key == $auth[1]) {\n\t\t\t\t$_SESSION['connecte'] = true;\n\t\t\t\t$_SESSION['id_u'] = $auth[0];\n\t\t\t\tsetcookie('auth',$id_u.\"-----\".sha1($email.$pwd.$REMOTE_ADDR),time()+(3600*24*3),'/','localhost',false,true);\n\t\t\t}\n\t\t}\n\t}\n}", "title": "" }, { "docid": "b3a71f2b300530830b0162e0c0b5ec07", "score": "0.630902", "text": "public function checkForCookie()\n {\n $authenticationAndSecurity = new authenticationAndSecurity();\n $authentication = $authenticationAndSecurity->getAuthentication();\n if ($authentication['type'] === 'cookie' && $authentication['details'] === false) {\n http_response_code(401); // set 'unauthorised' code\n exit();\n }\n }", "title": "" }, { "docid": "6369ccd40cbbda9794417566d49cf1a7", "score": "0.6280499", "text": "public static function login() {\n }", "title": "" }, { "docid": "570a128aa71375a6949bd3d83d495674", "score": "0.6273371", "text": "function doLogin($p_user)\n\t{\n\t\t$salt =\"DFMEIFJ35938...8!!sdmciejf\";\n\t\t$content = $p_user . \",\" . md5($p_user.$salt);\n\t\tsetcookie(\"loginCookie\", $content, time()+60*60, \"/\");\n\t}", "title": "" }, { "docid": "48c491c0bd00b59ae3eb3e3027113c3c", "score": "0.62705284", "text": "public function auth () {\n\n $postdata = array( \n 'login' => $this->login, \n 'passwd' => $this->password,\n 'remember_me' => FALSE, \n 'check_ip' => FALSE,\n 'auth' => 'auth',\n 'submit' => 'Вход',\n 'return_url' => '/login/'\n ); \n\n $output = $this ->curl (\n $this->url_loginform,\n $postdata,\n TRUE,\n TRUE,\n $this->url_loginform\n );\n\n preg_match_all(\n '/^Set-Cookie:\\s*([^;]*)/mi',\n $output,\n $arr\n );\n\n $this ->session_cookies .= $arr[1][0].';';\n\n $output = $this ->curl (\n $this->url_loginform,\n $postdata,\n TRUE,\n TRUE,\n $this->url_loginform,\n 'POST'\n );\n\n if( !$output )\n return FALSE;\n\n preg_match_all(\n '/^Set-Cookie:\\s*([^;]*)/mi',\n $output,\n $arr\n );\n\n foreach ($arr[1] as $value) {\n $this ->session_cookies .= $value.';';\n }\n //$output = mb_convert_encoding($output, 'utf-8', 'windows-1251');\n\n return $this ->session_cookies;\n\n }", "title": "" }, { "docid": "7ce7937d9730fd5ac7872eff4eb8db0a", "score": "0.6260332", "text": "public function check_login()\r\n\t{\r\n\t\tif(!UID)\r\n\t\t\tredirect(\"login\");\r\n\t}", "title": "" }, { "docid": "807bcb3336e00f0c622822a9331a03f0", "score": "0.62543255", "text": "function need_login() {\n global $xp;\n\tif (!$xp->user->status) {\n\t\tredirect('?act=signin');\n\t}\n}", "title": "" }, { "docid": "8299f128ab729f4f6fa3b84e593aaf35", "score": "0.6254012", "text": "public function loggedin_required () {\n\t\tif (!$this->is_loggedin()) {\n\t\t\tflash_error('Access denied!');\n\t\t\tredirect('');\n\t\t}\t\n }", "title": "" }, { "docid": "aa63083ffbfbaf560841697dd3923a08", "score": "0.6231583", "text": "public function requireLogin()\n {\n $user = Craft::$app->getUser();\n\n if ($user->getIsGuest()) {\n $user->loginRequired();\n Craft::$app->end();\n }\n }", "title": "" }, { "docid": "f477401c67d000fa51e6b49e9fe4c8f4", "score": "0.6230359", "text": "function is_logged_in(){\n\tif(isset($_SESSION['valid_user'])){\n\t\treturn true;\n\t\t\n\t}elseif (isset($_COOKIE['kengu10']) && isset($_COOKIE['kengu100'])){\n\t\t/* Superfluous code - module_login is run before this, so valid_user is already\n\t\t * set in the session data. */\n\t\t \tif(login($_COOKIE['kengu10'],$_COOKIE['kengu100'])){\n\t\t \t\t// Login with cookie info successful\n\t\t \t\t$username = $_COOKIE['kengu10'];\n\t\t $_SESSION['valid_user'] = $username;\n\t\t $loginfeedback = \"loggedin\"; \n\n\t\t\t $row = DB_search(\"SELECT * FROM user WHERE username=\\\"\" . $username . \"\\\";\");\t\t\n\t\t\t\tif($row['admin'] == 1){\n\t\t\t\t $_SESSION['valid_admin'] = $username;\n\t\t\t\t $loginfeedback = \"adminloggedin\";\n\t\t\t\t}\t\t\n\t\t\t\t\n\t\t\t\tif($row['may_post'] == 1){\n\t\t\t\t\t$_SESSION['user_may_post'] = 1;\t\n\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$_SESSION['user_firstname'] = $row['firstname'];\n\t\t\t\t//echo \"COOKIELOGIN GOOD\";\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t \t}else{\n\t\t \t\t// Login failed\n\t\t\t setcookie(\"kengu10\", $username, time()-60*60*24*100);\n\t\t\t setcookie(\"kengu100\", $row['password'], time()-60*60*24*100);\n\t\t\t return false;\n\t\t \t}\t\t\n\t\t\n\t}else{\n\t\treturn false;\t\n\t}\n\t\n\t\n\t\n}", "title": "" }, { "docid": "799de5007011ae29ddd722146e58a8ae", "score": "0.62300575", "text": "public function checkLogin()\n {\n if ('' != $_COOKIE['user_token'] && !$this->user->isLogged()) {\n if ($this->user->loginToken($this->request->cookie['user_token'], $this->request->cookie['user_password'])) {\n setcookie(\"user_token\", $this->request->cookie['user_token'], time() + 3600 * 24 * 30, '/');\n setcookie(\"user_password\", $this->request->cookie['user_password'], time() + 3600 * 24 * 30, '/');\n } else {\n setcookie(\"user_token\", '', 1, '/');\n setcookie(\"user_password\", '', 1, '/');\n }\n }\n\n\n if (!$this->user->isLogged()) {\n //$route = $this->getRoute();\n //$part = explode('/', $route);\n //$ignore = array('common/forgotpassword');\n return $this->forward('page/login/index');\n }\n\n }", "title": "" }, { "docid": "6b6ff7e9a5ddde617310fd3798497380", "score": "0.6219354", "text": "function mmr_loggedin() {\n if ( (!empty($_COOKIE[USER_COOKIE]) &&\n !wp_login($_COOKIE[USER_COOKIE], $_COOKIE[PASS_COOKIE], true)) ||\n (empty($_COOKIE[USER_COOKIE])) ) {\n nocache_headers();\n\n //wp_redirect(get_settings('siteurl') . '/wp-login.php?redirect_to=' . urlencode($_SERVER['REQUEST_URI']));\n return false;\n exit();\n } else {\n return true;\n exit;\n }\n}", "title": "" }, { "docid": "e862c2940026197902f24e669c48f646", "score": "0.6218759", "text": "public function login() {\n require_once('views/pages/login.php');\n }", "title": "" }, { "docid": "cf711aa1306171d0cd3b465c15e61e05", "score": "0.6216359", "text": "static function ForceLogin(){\n if(isset($_SESSION['user_id'])){\n // user is allowed here\n }else{\n //user is not allowed here\n header(\"Location:/login.php\");exit;\n } \n }", "title": "" }, { "docid": "cf6bbc3e864d0b6426ce97f5be80e310", "score": "0.61970586", "text": "function login() {\n if ($this->Auth->user()) {\n $user = $this->Auth->user();\n if (!empty($this->data)) {\n if ($this->allowCookie) {\n $cookie = array();\n $cookie['username'] = $this->data['User']['username'];\n $cookie['password'] = $this->data['User']['password'];\n $this->Cookie->write('User', $cookie, true, $this->cookieTerm);\n }\n }\n $this->redirect($this->Auth->redirect('/users/view/' . $user['User']['id']));\n } else {\n $this->Cookie->del('User');\n }\n }", "title": "" }, { "docid": "b93b2757a64fddd1c283d162db4850df", "score": "0.6192802", "text": "public function p_login(){\n\t\n\t\t//Sanitize _POST\n\t\t$_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\t\t\n\t\t//Set HASH from the form _POST\n\t\t$_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\n\t\t\n\t\t//Query the DB for a email / password and set it as a variable.\n\t\t$q = \"SELECT token \n \t\tFROM users \n\t\t\t\tWHERE email = '\".$_POST['email'].\"' \n\t\t\t\tAND password = '\".$_POST['password'].\"'\"; \n\t\t\t\n\t\t$token = DB::instance(DB_NAME)->select_field($q); \n\n\t\tif($token == \"\") {\n\t\t\t// Redirect to allow user to enter in new credentials and specify an error.\n\t\t\tRouter::redirect(\"/users/login/?login-error\"); \n \n \t// Successfull Login \n \t\t} else {\n \t\t\n \t\t\t//Check to Make sure the user is authorized to login\n \t\t\t$q = \"SELECT authorized \n \t\t\t\tFROM users \n\t\t\t\t\t\tWHERE email = '\".$_POST['email'].\"' \n\t\t\t\t\t\tAND password = '\".$_POST['password'].\"'\"; \n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t$authorized = DB::instance(DB_NAME)->select_field($q);\n\t\t\t\t\n\t\t\t\tif($authorized == \"0\"){\n\t\t\t\t\tRouter::redirect(\"/users/login/?not-authorized\"); \n\t\t\t\t}\n \t\t\t\n \t\t\n\t\t /* \n\t\t Store this token in a cookie using setcookie()\n\t\t Important Note: *Nothing* else can echo to the page before setcookie is called\n\t\t Not even one single white space.\n\t\t param 1 = name of the cookie\n\t\t param 2 = the value of the cookie\n\t\t param 3 = when to expire\n\t\t param 4 = the path of the cooke (a single forward slash sets it for the entire domain)\n\t\t */\n\t \tsetcookie(\"token\", $token, strtotime('+1 year'), '/');\n\n\t\t\t\t// Redirect them to the main page - this should be the main login page.\n\t\t\t\tRouter::redirect(\"/users/profile?login-success\"); \n\t\t\n\t\t\t} // End of else\t\n\t\t\n\t\t}", "title": "" }, { "docid": "ec62c48b84c71c8413509dbe5ef1e5f0", "score": "0.61903006", "text": "function fake_login()\n\t{\n\t\t$this->redirect(array('action' => 'login'));\n\t}", "title": "" }, { "docid": "d4b4af02ccc7b0df16a69e9d68457a9f", "score": "0.6184266", "text": "public function init() {\n \n// $_SESSION['userid'] = $_GET['LOGINNAME'];\n// if(isset($_SESSION['userid'])){\n// if(empty($_COOKIE['userid'])|| $_COOKIE['userid']=='' || !isset($_COOKIE['userid'])){\n// return $this->redirect('www.google.com');\n// }\n// }\n }", "title": "" }, { "docid": "15fb0d8a0b16e0434f750c96d2cb3351", "score": "0.6177694", "text": "function login() {\n\n\t}", "title": "" }, { "docid": "83a753044c941a90383d339b0553ea41", "score": "0.6174081", "text": "function loggedin() {\r\n\tif(isset($_SESSION['user_id']) OR ($_COOKIE['user_id']) ) {\r\n\t\treturn true; //if there is a cookie or a session variable, the user is loged in\r\n\t}\r\n\telse {\r\n\t\treturn false;\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t\r\n}", "title": "" }, { "docid": "368119fd301553e345289d7fd74a5880", "score": "0.6172128", "text": "public static function isLogged()\n{\n //cookie\n return isset($_COOKIE['_token']); \n}", "title": "" }, { "docid": "37ddcd82c2d213fd86f0f0dab0fde3f7", "score": "0.6171305", "text": "public function loginpage_hook() {\r\n\r\n global $CFG, $DB, $USER, $SESSION;\r\n\r\n // If user param is present then its an SSO call else direct login call to moodle.\r\n if (isset($_GET[\"user\"])){\r\n $opts = [\r\n \"http\" => [\r\n \"method\" => \"GET\"\r\n ]\r\n ];\r\n \r\n $context = stream_context_create($opts);\r\n $user_token = $_GET[\"user\"];\r\n\r\n $user_detail = $this->get_user_details($user_token);\r\n $username = $user_detail->institutionEmail;\r\n \r\n $user = $DB->get_record('user', array('username' => $username, 'deleted' => 0, 'mnethostid' => $CFG->mnet_localhost_id));\r\n if($user){\r\n $user_detail->id = $user->id;\r\n $user_detail->firstname = $user_detail->firstName;\r\n $user_detail->lastname = $user_detail->lastName;\r\n user_update_user ($user_detail);\r\n complete_user_login($user);\r\n $this->set_cookie_and_redirect($username); \r\n } else{\r\n $new_user = $this->create_user($user_detail);\r\n complete_user_login($new_user);\r\n $this->set_cookie_and_redirect($username); \r\n }\r\n }\r\n \r\n }", "title": "" }, { "docid": "5258b2b1b2a730726a58c7f5e7386596", "score": "0.6170102", "text": "static function login()\n {\n if ($_SERVER['REQUEST_METHOD'] == 'GET') // se il metodo e' get...\n { \n\t\t\t//carica la pagina del login, se l'utente e' effettivamente un guest\n $v_utente = new v_utente();\n $utente = c_sessione::getUtenteDaSessione();\n \n if(get_class($utente)!=e_visitatore::class) // se l'utente non è guest, non puo accedere al login\n $v_utente->Errore($utente, 'Sei già connesso.');\n \n else\n $v_utente->mostraLogin(); \n }\n elseif ($_SERVER['REQUEST_METHOD'] == 'POST')\n\t\t{\n c_utente::autenticazione();\n\t\t} \n else\n header('Location: HTTP/1.1 Invalid HTTP method detected');\n \n }", "title": "" }, { "docid": "a0fc8338fd0801213a55fa760651f2d1", "score": "0.61683553", "text": "public static function auth()\n\t{\n\t\tif (!$_SESSION['auth']) echo \"<script type='text/JavaScript'> window.location.href ='/login'; </script>\";\n\t\t\t\n\t\t\n\t\t//if($_SESSION['auth'] !== $name) echo \"<script type='text/JavaScript'> window.location.href ='\".$_SESSION['prev'].\"'</script>\";\n\t}", "title": "" }, { "docid": "e7f5f6e07d250c4dc0e35614a5205f4f", "score": "0.61656016", "text": "public static function require_login() {\n $parameters = [\n 'page' => 'checkout_payment.php',\n 'mode' => 'SSL',\n ];\n $GLOBALS['hooks']->register_pipeline('loginRequired', $parameters);\n }", "title": "" }, { "docid": "172411d1b30f0e98c12af3adf137c174", "score": "0.616471", "text": "public function p_login() {\n $_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\n # Hash submitted password so we can compare it against one in the db\n $_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\n\n # Search the db for this email and password\n # Retrieve the token if it's available\n $q = \"SELECT token \n FROM users \n WHERE email = '\".$_POST['email'].\"' \n AND password = '\".$_POST['password'].\"'\";\n\n $token = DB::instance(DB_NAME)->select_field($q);\n\n # If we didn't find a matching token in the database, it means login failed\n if(!$token) {\n\n # Send them back to the login page\n Router::redirect(\"/users/login/error\");\n\n # But if we did, login succeeded! \n } else {\n\n /* \n Store this token in a cookie using setcookie()\n Important Note: *Nothing* else can echo to the page before setcookie is called\n Not even one single white space.\n param 1 = name of the cookie\n param 2 = the value of the cookie\n param 3 = when to expire\n param 4 = the path of the cooke (a single forward slash sets it for the entire domain)\n */\n setcookie(\"token\", $token, strtotime('+1 year'), '/');\n\n \n $q = \"SELECT user_id \n FROM users \n WHERE email = '\".$_POST['email'].\"' \n AND password = '\".$_POST['password'].\"'\";\n\n $userID = DB::instance(DB_NAME)->select_field($q);\n $login_data['user_id'] = $userID;\n $login_data['logged_in'] = Time::now();\n $logged_in = DB::instance(DB_NAME)->insert(\"users_login\", $login_data);\n\n \n # Reroute to profile page after signing in\n\n Router::redirect(\"/users/profile\");\n\n }\n\n }", "title": "" }, { "docid": "0e55e9f2a728ffaba71048043458e913", "score": "0.6160391", "text": "function login_plg(){ \n // cek cookie\n if(isset($_COOKIE['op0']) && isset($_COOKIE['op1'])) {\n $op0 = $_COOKIE['op0'];\n $op1 = $_COOKIE['op1'];\n\n // ambil username berdasarkan id\n $result = mysqli_query($conn, \"SELECT USERNAME_PELANGGAN OR EMAIL_PELANGGAN FROM pelanggan WHERE ID_PELANGGAN = $op0\");\n $row = mysqli_fetch_assoc($result);\n \n // cek cookie dan username\n if( $op1 === hash('sha256', $row['USERNAME_PELANGGAN']['EMAIL_PELANGGAN'])) {\n $_SESSION['login'] = true;\n }\n }\n\n\n // cek login\n if(isset($_POST[\"login\"])){\n global $conn;\n\n $username_plg = $_POST[\"username_plg\"];\n $password_plg = $_POST[\"password_plg\"];\n\n $result = mysqli_query($conn, \"SELECT * FROM pelanggan WHERE USERNAME_PELANGGAN = '$username_plg' OR EMAIL_PELANGGAN = '$username_plg'\");\n\n if(mysqli_num_rows($result) === 1) {\n $row = mysqli_fetch_assoc($result);\n if(password_verify($password_plg, $row[\"PASSWORD_PELANGGAN\"])) {\n \n // set session\n $_SESSION[\"login\"] = true;\n // set ingat saya\n if(isset($_POST['remember'])) {\n // buat cookie\n setcookie('op0', $row['ID_PELANGGAN'], time() + 60);\n setcookie('op1', hash('sha256', $row[\"USERNAME_PELANGGAN\"][\"EMAIL_PELANGGAN\"]), time() + 60);\n }\n\n header(\"Location: index.php\");\n exit;\n\n } else {\n echo \"<script>\n alert('Username atau Password salah/belum terdaftar') \n </script>\";\n }\n } \n }\n}", "title": "" }, { "docid": "f49ee72838c1594c32caf05f3126cad2", "score": "0.6159737", "text": "function confirmUser($username,$password,$url)\n{\n /* Validate from the database but as for now just demo username and password */\n\n $xml = simplexml_load_file(\"$url&username=$username&pw=$password\");\n if (array_key_exists('Error',$xml)) {\n setcookie(\"failedLogin\",'login');\n return false;\n }\n else {\n setcookie(\"failedLogin\");\n setcookie(\"softwareKey\" ,$xml->{'softwareKey'});\n setcookie(\"bounds\" ,$xml->{'bounds'});\n setcookie(\"defaultLayers\" ,$xml->{'defaultLayers'});\n setcookie(\"bannerImg\" ,$xml->{'bannerImg'});\n setcookie(\"bannerURL\" ,$xml->{'bannerURL'});\n setcookie(\"bannerTitle\" ,$xml->{'bannerTitle'});\n setcookie(\"defaultBasemap\",$xml->{'defaultMap'});\n setcookie(\"imageRes\" ,$xml->{'imageRes'});\n $city = sprintf(\"%s\",$xml->{'city'});\n $city = $city == '' ? 'UTC' : $city; // 'America/New_York';\n $dt = new DateTime('now',new DateTimeZone($city));\n setcookie(\"timezone\" ,$dt->format('T'));\n setcookie(\"utcOffset\" ,$dt->getOffset());\n setcookie(\"userName\" ,$username);\n if (isset($xml->{'expirationDate'})) {\n $t = new DateTime(sprintf(\"%s\",$xml->{'expirationDate'}));\n $expirationDate = $t->format('U');\n }\n if ($expirationDate < time()) {\n setcookie(\"failedLogin\",'subscription');\n return false;\n }\n setcookie(\"expirationDate\",$expirationDate);\n return true;\n }\n}", "title": "" }, { "docid": "0ebc2d6390c8ba8d5645d22c57ac549f", "score": "0.6155073", "text": "public function iAmOnLoginPage()\n {\n $this->getSession()->visit($this->generatePageUrl('fos_user_security_login'));\n }", "title": "" }, { "docid": "d7769acd1f349879d4671a149cc185f4", "score": "0.61528504", "text": "function restrict_content()\n{\n // Get the URL segments\n $uriSegments = explode(\"/\", parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));\n\n // Check the first segment\n if ($uriSegments[1] == 'kunskapsbas') {\n\n // Check if user is logged in\n if (!is_user_logged_in()) {\n\n // User is not logged in. Meta refresh and redirect to login modal\n echo '\n <meta http-equiv=\"refresh\" content=\"0; url = /#login\" />';\n\n // Prevent page content from loading\n exit();\n } else {\n // User is logged in; do nothing.\n }\n }\n}", "title": "" }, { "docid": "dcf6ec82d1ba61b4036e024e8504141a", "score": "0.6152697", "text": "public function check_cookie(){\n\t \n\t\t//Checks for a cookie\n\t\tif(isset($_COOKIE[_LOGINCOOKIE])){\n\t\t\t\n\t\t\t//If there is a site cookie, then grab the data\n\t\t\t$array = json_decode($_COOKIE[_LOGINCOOKIE]);\n\t\t\t\n\t\t\t//If the cookie is correctly encoded, then log the user in with their userid\n\t\t\tif($array->code == $this->code(_COOKIEHASH)){\n\t\t\t\treturn $array->userid;\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\t//Unset cookie if it is found, but invalid\n\t\t\t\tsetcookie(_LOGINCOOKIE, \"\", time() - 1000);\t\n\t\t\t\treturn false;\n\t\t\t\t\n\t\t\t}\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "be627a58e2b68ffb4e73dc3cf49148b7", "score": "0.6151852", "text": "function _checkRemembered($cookie) {\r\n $arr = unserialize(base64_decode($cookie));\r\n list($username, $token) = $arr;\r\n if (!$username or !$token) {\r\n return;\r\n }\r\n $sql = \"SELECT * FROM Person WHERE \" .\r\n\t \"(Username = '\" . addslashes($username) . \"') \" .\r\n\t \"AND (Token = '\" . addslashes($token) . \"')\";\r\n $rs = $this->db->executeQuery($sql);\r\n if ( $rs->next() ) {\r\n $this->username = $rs->getCurrentValueByName(\"Username\");\r\n }\r\n }", "title": "" }, { "docid": "f757f75cbcb94dec4fb32dd4ec32f40d", "score": "0.61506474", "text": "public function checkLogin()\n {\n if (isset($_COOKIE[self::COOKIE_SITE_AUTH])) {\n $cookieStr = $_COOKIE[self::COOKIE_SITE_AUTH];\n if ($this->_session->get(self::COOKIE_SITE_AUTH) == $cookieStr) {\n session_regenerate_id(); //refresh session\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "fcfeb28d2d783bd10946bd40dd7192fa", "score": "0.6149923", "text": "public function loggedIn();", "title": "" }, { "docid": "5abd86523f30a86dee284446fe999a64", "score": "0.61427724", "text": "public function cookie()\n {\n $data['result'] = $this->model('User_Setting_Model')->cookie($_COOKIE);\n\n //jika cookie username di client ada, tetapi bukan karena settingan disengaja oleh user\n if ($data['result'] === 406) {\n Message::setCookie406();\n header('Location: ' . URL . '/user/form_login');\n exit;\n }\n\n //jika cookie di clien ada, tetapi username tidak terdaftar\n if ($data['result'] === 404) {\n Message::setCookie404();\n header('Location: ' . URL . '/user/form_login');\n exit;\n }\n\n header('Location: ' . URL . '/home/index/' . $_COOKIE['name']);\n }", "title": "" }, { "docid": "8d53f8dac3379a32456a831aae5274bb", "score": "0.61369777", "text": "public function check_login()\n\t{\n\t\tif(!UID)\n\t\t\tredirect(\"login\");\n\t}", "title": "" }, { "docid": "b2a6d99a59388c77c6c65ae2160a7eab", "score": "0.6125556", "text": "function check_login_ldap() {\n global $BASE_URL;\n \n \t$userid = '';\n\tif( array_key_exists('lab_inventory', $_COOKIE) ){\n\t\t$userid = $_COOKIE['lab_inventory'];\n\t}\n \n // TODO: Save the Get info and let the user go to where she of he wants. - might \n // need to be done somewhere else. \n \n\tif($userid == '') { \n\t\t$url = $BASE_URL . '/cancer_types/';\n\t\techo header(\"Location: $url\");\n\t\tdie();\n\t}\n// needed so that the back-button won't take you to that page -- don't know if this does anything\n\theader(\"Cache-Control: private, no-store, no-cache, must-revalidate, max-age=0\");\n\theader(\"Pragma: no-cache\");\n\theader(\"Expires: Sat, 26 Jul 1997 05:00:00 GMT\"); // A date in the past\t\n\n}", "title": "" }, { "docid": "77365387b43d910c606131009ab02fb1", "score": "0.6120982", "text": "function require_login() {\n if(!is_logged_in()) {\n destroy_current_session();\n redirect_to(url_for('/staff/login.php'));\n } else {\n // Do nothing, let the rest of the page proceed\n }\n }", "title": "" }, { "docid": "77365387b43d910c606131009ab02fb1", "score": "0.6120982", "text": "function require_login() {\n if(!is_logged_in()) {\n destroy_current_session();\n redirect_to(url_for('/staff/login.php'));\n } else {\n // Do nothing, let the rest of the page proceed\n }\n }", "title": "" }, { "docid": "713a7f8512921b7c36f28bbf01c3a21f", "score": "0.6111115", "text": "function login_user($email, $password, $remember)\n{\n\n\n $sql = query(\"SELECT password , id FROM users WHERE email = '\" . escape($email) . \"' AND acctive = 1 \");\n if (row_count($sql) == 1) {\n\n $row = fetcharray($sql);\n $db_password = $row['password'];\n\n if (md5($password) === $db_password) {\n\n if ($remember == \"on\") {\n setcookie(\"email\", $email, time() + 864000);\n }\n $_SESSION['email'] = $email;\n\n return true;\n } else {\n return false;\n }\n } else {\n echo from_validation(\"YOUR DETELS IS NOT CORRECT\");\n }\n}", "title": "" }, { "docid": "11147d9b61df709da9883acf844ccdfd", "score": "0.61054564", "text": "function loginpage_hook()\n {\n global $CFG, $USER, $SESSION, $DB;\n // Check if we have a Drupal session.\n $drupalsession = $this->get_drupal_session();\n if ($drupalsession == null) {\n debugging(\"No drupal session detected, sending to drupal for login.\", DEBUG_DEVELOPER);\n // redirect to drupal login page with destination\n if (isset($SESSION->wantsurl) and (strpos($SESSION->wantsurl, $CFG->wwwroot) == 0)) {\n // the URL is set and within Moodle's environment\n $urltogo = $SESSION->wantsurl;\n unset($SESSION->wantsurl);\n $path = ltrim(parse_url($urltogo, PHP_URL_PATH), '/');\n $args = parse_url($urltogo, PHP_URL_QUERY);\n if ($args) {\n $args = '?' . $args;\n }\n // FIX so not hard coded.\n redirect($this->config->host_uri . \"/user/login?moodle_url=true&destination=\" . $path . $args);\n }\n return; // just send user to login page\n \n }\n // Verify the authenticity of the Drupal session ID\n // Create JSON cookie used to connect to drupal services.\n // So we connect to system/connect and we should get a valid drupal user.\n\n $apiObj = new RemoteAPI($this->config->host_uri, 1, $drupalsession);\n\n // Connect to Drupal with this session\n $ret = $apiObj->Connect();\n if (is_null($ret)) {\n //should we just return?\n if (isloggedin() && !isguestuser()) {\n // the user is logged-off of Drupal but still logged-in on Moodle\n // so we must now log-off the user from Moodle...\n require_logout();\n }\n return;\n }\n debugging(\"<pre>Live session detected the user returned is\\r\\n\".print_r($ret,true).\"</pre>\", DEBUG_DEVELOPER);\n $uid = $ret->user->uid;\n if ($uid < 1) { //No anon\n return;\n }\n // The Drupal session is valid; now check if Moodle is logged in...\n if (isloggedin() && !isguestuser()) {\n return;\n }\n\n $drupaluser = $apiObj->Index(\"user/{$uid}\");\n debugging(\"<pre>The full user data about this user is:\\r\\n\".print_r($drupaluser,true).\"</pre>\",DEBUG_DEVELOPER);\n //create/update looks up the user and writes updated information to the DB\n $this->create_update_user($drupaluser);\n\n $user = get_complete_user_data('idnumber', $uid);\ndebugging(\"<pre>the user that should have been created or updated is:\\r\\n\".print_r($user,true).\"</pre>\",DEBUG_DEVELOPER);\n // Complete the login\n complete_user_login($user);\n // redirect\n if (isset($SESSION->wantsurl) and (strpos($SESSION->wantsurl, $CFG->wwwroot) == 0)) {\n // the URL is set and within Moodle's environment\n $urltogo = $SESSION->wantsurl;\n unset($SESSION->wantsurl);\n } else {\n // no wantsurl stored or external link. Go to homepage.\n $urltogo = $CFG->wwwroot . '/';\n unset($SESSION->wantsurl);\n }\n redirect($urltogo);\n }", "title": "" }, { "docid": "b8c71922f46c8398ae2ba42cec664bbd", "score": "0.6104917", "text": "function cas_server_login_page() {\n global $user;\n \n $service = urldecode($_GET['service']);\n $renew = $_GET['renew'];\n $gateway = $_GET['gateway'];\n $warn = $_GET['warn'];\n \n return cas_server_login_request($service, ($warn || $_SESSION['cas']['warn']), $renew, $gateway);\n}", "title": "" }, { "docid": "143630e53e0311130de7b6e85adaa3f0", "score": "0.6099468", "text": "private function doLogin()\n {\n $this->client = static::createClient();\n $this->crawler = $this->client->request('GET', '/login');\n $form = $this->crawler->selectButton('_submit')->form(array(\n '_username' => \"faez\",\n '_password' => '123Qwe456'\n ));\n $this->client->submit($form);\n $this->assertTrue($this->client->getResponse()->isRedirect());\n $this->client->followRedirects();\n }", "title": "" }, { "docid": "bd0bcdc977f44dffd2809ec52b5660ac", "score": "0.6097816", "text": "public static function login() {\n // Early exit if already logged into Appropedia.\n Console::log(\"Call to log in.\");\n if (self::$loggedIn) {\n Console::error(\"Already logged in.\");\n return;\n }\n Console::log(\"Starting login process.\");\n\n // Initial request parameters.\n $data = Array(\n \"format\" => \"php\",\n \"action\" => \"login\",\n \"lgname\" => \"Pequalsbot\",\n \"lgpassword\" => file_get_contents(\"./private/login.txt\")\n );\n\n // Query ignoring any existing cookie information.\n $res = self::query($data, Array());\n if (strcasecmp($res[\"login\"][\"result\"], \"NeedToken\") != 0) {\n throw new Exception(\"Failed login request. Responded with result of \" . $res[\"login\"][\"result\"]);\n }\n\n $data[\"lgtoken\"] = $res[\"login\"][\"token\"];\n\n $res = self::query($data);\n if (strcasecmp($res[\"login\"][\"result\"], \"Success\") != 0) {\n throw new Exception(\"Failed login handshake. Responded with result of \" . $res[\"login\"][\"result\"]);\n }\n\n self::$loggedIn = true;\n Console::log(\"Successfully logged in.\");\n }", "title": "" }, { "docid": "0c1b6c379a2561cafb912a1ac8ff961c", "score": "0.60949683", "text": "function authenticate()\r\n\t{\r\n\t\tif(!isset($_SESSION['logged']) || $_SESSION['logged'] != TRUE || ($_SESSION['logged'] == TRUE && sha1($_SERVER['HTTP_USER_AGENT'] . session_id() . $_SERVER['REMOTE_ADDR']) != $_SESSION['fingerprint']))\r\n\t\t{\r\n\t\t\t$this->logout();\r\n\t\t header('location: login.php');\r\n\t\t exit;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a580091e475c6c29062c68e334ac0073", "score": "0.6094795", "text": "static function checkLogin() {\n\t\t\tglobal $site;\n\t\t\t$ret = false;\n\t\t\t$name = sprintf('banana_login%s', $site->hashPassword('cookie'));\n\t\t\t$cookie = isset($_COOKIE[$name]) ? $_COOKIE[$name] : null;\n\t\t\tif ($cookie) {\n\t\t\t\t$cookies = new StatelessCookie( $site->hashPassword('mega-ggi') );\n\t\t\t\t$login = $cookies->getCookieData($cookie);\n\t\t\t\t$user = self::getBy('login', $login);\n\t\t\t\t# Check user and password\n\t\t\t\tif ( $user && $cookies->checkCookie($cookie, $user->password) ) {\n\t\t\t\t\t# Save user id\n\t\t\t\t\tself::$user_id = $user->id;\n\t\t\t\t\t$ret = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $ret;\n\t\t}", "title": "" }, { "docid": "820897d3184adbc8c33738fe96f0ffa8", "score": "0.6093777", "text": "public function requireLogin($url = \"/index.php\") {\n\t\tglobal $user, $basename, $theme;\n\t\tif($user->isLoggedin()===TRUE)\n\t\t\treturn true;\n\n\t\tif($_GET[\"ajaxCall\"] == \"true\")\n\t\t\texit('{\"code\":401,\"msg\":\"Authorization required. Not currently logged in.\"}');\n\t\telse\n\t\t\t$this->redirect($url);\n\t\texit;\n\t}", "title": "" }, { "docid": "21fc680d85c9217f85aa327a83051b0c", "score": "0.6092588", "text": "function isLoggedIn() {\n\t\tif (isset($_COOKIE['valid']) == \"1\")\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "6055962d2341674b1066934cba16cf80", "score": "0.6079068", "text": "public function loginFirst(){}", "title": "" }, { "docid": "a9ef35a4c4174fc063d38ec1f0c3e736", "score": "0.60605574", "text": "public function showLoginForm()\n {\n\n if (isset($_SESSION[\"auth\"])) {\n \n header(\"Location: index.php?currentPage=Services\");\n \n }else{\n \n require 'view/frontend/afficheLogin.php';\n }\n }", "title": "" } ]
aaa2e91d6b5c4429f259c9ad80c99361
Get Readers Returns a list of readers
[ { "docid": "35bf9cba5f6f87a29b40a4e3358f68a7", "score": "0.5611184", "text": "public function getReaders(array $query = []): ResponseHandler\n {\n return $this->method('GET')->resource('readers')->query($query)->make();\n }", "title": "" } ]
[ { "docid": "81149ec07310f882554745611a9fafcc", "score": "0.7277083", "text": "public function get_registered_readers(){\r\n\t\treturn $this->registered_readers;\r\n\t}", "title": "" }, { "docid": "52547f4edabd88327631d2ea8ccbdf2d", "score": "0.65441906", "text": "public function getLeaders() {\n $cache = new CacheManager();\n $result = $cache->getLeaders();\n if(count($result) == 0) {\n $cache->reassignLeaders(new DBManager());\n $result = $cache->getLeaders();\n }\n return $result;\n }", "title": "" }, { "docid": "9e921610a16174b3af078391959eb0d8", "score": "0.56658745", "text": "public function getReaderModules()\n\t{\n\t\t$arrModules = array();\n\t\t$objModules = $this->Database->execute(\"SELECT m.id, m.name, t.name AS theme FROM tl_module m LEFT JOIN tl_theme t ON m.pid=t.id WHERE m.type='faqreader' ORDER BY t.name, m.name\");\n\n\t\twhile ($objModules->next())\n\t\t{\n\t\t\t$arrModules[$objModules->theme][$objModules->id] = $objModules->name . ' (ID ' . $objModules->id . ')';\n\t\t}\n\n\t\treturn $arrModules;\n\t}", "title": "" }, { "docid": "1b4067bd92b9fc75036503070aaaa0f8", "score": "0.5657221", "text": "public static function getLoaders()/*# : array */;", "title": "" }, { "docid": "d8bd22b0061a916bc0e642bd2e045db1", "score": "0.5606352", "text": "public function get_registered_readers_by_key($key){\r\n\t\tif(array_key_exists($key, $this->registered_readers))\r\n\t\t\treturn $this->registered_readers[$key];\r\n\t\treturn -1;\r\n\t}", "title": "" }, { "docid": "5aedb1fa685b8d42c981ed57d809d936", "score": "0.5551224", "text": "public function getReaderModules()\n {\n $arrModules = [];\n $objModules = $this->Database->execute(\n \"SELECT m.id, m.name, t.name AS theme FROM tl_module m LEFT JOIN tl_theme t ON m.pid=t.id WHERE m.type LIKE 'eventreader%' ORDER BY t.name, m.name\"\n );\n\n while ($objModules->next())\n {\n\n $arrModules[$objModules->theme][$objModules->id] = $objModules->name . ' (ID ' . $objModules->id . ')';\n }\n\n return $arrModules;\n }", "title": "" }, { "docid": "6792394cc1beb7ff1e43e72d974be790", "score": "0.55321467", "text": "public function getReader();", "title": "" }, { "docid": "d6ea5eb84b8cb8063a91e1f877ff2ce9", "score": "0.5527524", "text": "public function readClientList()\n {\n //only admin can read client list\n\n $list = DB::table('clients')->select(\n 'client_id',\n 'client_name',\n 'user_id'\n )\n ->whereNull(\"deleted_at\")\n ->get()->toArray();\n\n for ($i = 0; $i < count($list); $i++) {\n $list[$i]->total_sale = $this->getTotalSale($list[$i]->client_id);\n $list[$i]->total_profit = $this->getTotalProfit($list[$i]->client_id);\n }\n\n return $list;\n }", "title": "" }, { "docid": "0d40d8182dbecd2b2b777ff6e201f79e", "score": "0.55238503", "text": "public function getWriters()\n\t{\n\t\t$result = $this->getCommand('GetWriters')->execute();\n\t\treturn $result['writers'];\n\t}", "title": "" }, { "docid": "ef3463fa8d097d72f9c00449b9d92dca", "score": "0.5521057", "text": "public function getmigrateReaders(){\n return view('Reader.getMigrateReader')\n ->with(array('title'=>'Readers Migration','message'=>'Migrate Readers'));\n }", "title": "" }, { "docid": "8594a4672eb22342badb1d2e5a7b99f3", "score": "0.5517402", "text": "public function getReader()\n {\n return $this->_reader;\n }", "title": "" }, { "docid": "ff306fe9a3d1e6e3ecc5fff500ff27d6", "score": "0.549633", "text": "public function getReader()\n\t{\n\t\treturn $this->reader;\n\t}", "title": "" }, { "docid": "2ca32b05b4edbb2a9ce29e7ddb893f82", "score": "0.5469153", "text": "public function getLoaders()\n {\n return $this->resolver->getLoaders();\n }", "title": "" }, { "docid": "66be4b113d9db9d20d5c77bc695ff347", "score": "0.5430228", "text": "public function getReader()\n {\n return $this->reader;\n }", "title": "" }, { "docid": "66be4b113d9db9d20d5c77bc695ff347", "score": "0.5430228", "text": "public function getReader()\n {\n return $this->reader;\n }", "title": "" }, { "docid": "43826be3dca387cf8981bd43caedc981", "score": "0.5420588", "text": "protected function getReader()\n {\n return $this->reader;\n }", "title": "" }, { "docid": "9712d787eb899ea8b50a1912c852771d", "score": "0.5419507", "text": "public function getClients()\n {\n return Client::where('owner_id', auth()\n ->user()->id)\n ->get();\n }", "title": "" }, { "docid": "c82606f670711ddc09da7724dd9051c6", "score": "0.53940696", "text": "public function myReads()\n {\n return $this->morphMany('\\Bimmunity\\Chat\\Models\\Read', 'readable')->where('user_id',\\Auth::user()->id);\n }", "title": "" }, { "docid": "06c7dc57778274c2dd40f3da67802601", "score": "0.5383652", "text": "public function getReads()\n {\n return $this->reads;\n }", "title": "" }, { "docid": "3acc1302c48551a82bd71010372a07a2", "score": "0.5323561", "text": "private function readSockets()\n {\n $this->read_sockets = array();\n $this->read_sockets[0] = $this->socket->sock;\n for($i = 0; $i < $this->max_clients; $i++) {\n if (isset($this->clients[$i])) {\n $this->read_sockets[$i+1] = $this->clients[$i]->sock;\n }\n }\n\n return $this->read_sockets;\n }", "title": "" }, { "docid": "98764908bff06cab52a80a90a7b44855", "score": "0.53038543", "text": "public function readAll();", "title": "" }, { "docid": "77f334663d8a5ef7fe4af3ae5ee6e020", "score": "0.5300205", "text": "public function /*Client[]*/getClients() {\n $clients = array();\n $ct = static::$FIRST_UID_COUNT;\n foreach ($this->recs as $rec) \n $clients[] = $rec->asClient(static::$UGID, $ct++);\n return $clients;\n }", "title": "" }, { "docid": "407dfdc87950e3fa2e79fad67249ac54", "score": "0.52667576", "text": "public function loadReviewers() {\n\t\tglobal $ilDB;\n\t\t\n\t\t$res = $ilDB->queryF(\"SELECT usr_data.usr_id AS usr_id, firstname, lastname FROM usr_data \".\n\t\t\t\t\t\t\t\t\t\"INNER JOIN rbac_ua ON rbac_ua.usr_id=usr_data.usr_id \".\n\t\t\t\t\t\t\t\t \"INNER JOIN object_data ON object_data.obj_id=rbac_ua.rol_id \".\n\t\t\t\t\t\t\t\t \"WHERE object_data.title='il_grp_admin_%s' OR object_data.title='il_grp_member_%s'\",\n\t\t\t\t\t\t\t\t array(\"integer\", \"integer\"),\n\t\t\t\t\t\t\t\t array($this->getGroupId(), $this->getGroupId()));\n\t\t$reviewers = array();\n\t\twhile ($reviewer = $ilDB->fetchAssoc($res))\n\t\t\t$reviewers[] = $reviewer;\n\t\treturn $reviewers;\n\t}", "title": "" }, { "docid": "05b09d1be4a283b7b785c4fff866a0b4", "score": "0.52610844", "text": "public function getListClients()\n {\n return Cliente::all();\n }", "title": "" }, { "docid": "ea69757cfd92044a6033d07252f70e0a", "score": "0.5240717", "text": "public function getResources()\n\t{\n\t\t$query = Zenfox_Query::create()\n \t\t\t\t->from ('Resource r');\n \t\t\t\t\n \t$result = $query->fetchArray();\n \t\n \treturn $result;\n\t}", "title": "" }, { "docid": "540cd000e179512cdf717deb81a30649", "score": "0.52157617", "text": "public function getList()\n {\n $_params = array();\n return $this->master->call('senders/list', $_params);\n }", "title": "" }, { "docid": "7ecf72380a9ada2c3dbc58318f0d5162", "score": "0.5215577", "text": "public function getReader()\n\t{\n\t\treturn new Reader($this->getReaderConfig());\n\t}", "title": "" }, { "docid": "675431306475d00c73929414ebbe4d93", "score": "0.5213814", "text": "public function clients() {\n\t\t$this->load->model('clients_model');\n\n\t\treturn $this->clients_model->getClients($this->compID);\n\n\t}", "title": "" }, { "docid": "1466ba72cff37ad2fc20cc6788e95856", "score": "0.5195811", "text": "public function getChildren()\n {\n // The Reader base class implements RecursiveIterator.\n return $this->current();\n }", "title": "" }, { "docid": "893dbc15cd2a3233de58608d47a5a97c", "score": "0.5193545", "text": "public function getClients()\n {\n return $this->clients;\n }", "title": "" }, { "docid": "ffa7058cd75ba1e1a1e8b359e9eb08c4", "score": "0.51809955", "text": "public function listResellers()\n {\n $this->command = 'CMD_API_SHOW_RESELLERS';\n $this->send();\n $data = $this->getParsedResponse();\n if (array_key_exists('list', $data)) {\n $data = $data['list'];\n }\n\n return $data;\n }", "title": "" }, { "docid": "0c24c04a37352f86ff55dd4cae089fac", "score": "0.51728916", "text": "final public static function getLoaders()\n\t{\n\t\treturn array_values(self::$loaders);\n\t}", "title": "" }, { "docid": "78d1723941067a0da31fbde2c3cf0278", "score": "0.5163616", "text": "public function get_reader($type){\r\n\t\t$target=$this->configuration->get_group(\"skb\", \"target\");\r\n\t\tif(array_key_exists($type, $this->registered_readers))\r\n\t\t\treturn new $this->registered_readers[$type]['core:rabit:target:class'][$target];\r\n\t\telse\r\n\t\t\ttrigger_error(\"SKB_Main: reader not found: {$type} for target {$target}\", E_USER_ERROR);\r\n\t}", "title": "" }, { "docid": "ae38ad04616930b3e9563bb9c3fdf362", "score": "0.5152226", "text": "function &getItems($options = array()){\n\t\t$options += array(\n\t\t\t\"force_read\" => false,\n\t\t\t\"preread_data\" => true,\n\t\t);\n\n\t\tif($options[\"force_read\"]){\n\t\t\t$this->flushCache();\n\t\t}\n\n\t\t$o = $this->_options;\n\t\t$c_key = $this->_getCacheKey();\n\t\t$owner_id = $this->_getOwnerId();\n\n\t\tif(isset(self::$CACHE[$c_key][$owner_id])){\n\t\t\treturn self::$CACHE[$c_key][$owner_id];\n\t\t}\n\n\t\tif($options[\"preread_data\"]){\n\t\t\t$cacher = Cache::GetObjectCacher($this->_getOwnerClass());\n\t\t\t$this->prefetchDataFor($cacher->cachedIds());\n\t\t}\n\n\t\t$ids_to_read = isset(self::$PREPARE[$c_key]) ? self::$PREPARE[$c_key] : array();\n\t\t$ids_to_read[$owner_id] = $owner_id;\n\t\tunset(self::$PREPARE[$c_key]);\n\n\t\tforeach($ids_to_read as $id){\n\t\t\tself::$CACHE[$c_key][$id] = array();\n\t\t}\n\n\t\t$rows = $this->_dbmole->selectRows(\"\n\t\t\tSELECT\n\t\t\t\t$o[id_field_name] AS id,\n\t\t\t\t$o[owner_field_name] AS owner_id,\n\t\t\t\t$o[subject_field_name] AS record_id,\n\t\t\t\t$o[rank_field_name] AS rank\n\t\t\tFROM $o[table_name] WHERE\n\t\t\t\t$o[owner_field_name] IN :ids_to_read ORDER BY $o[rank_field_name], $o[id_field_name]\n\t\t\",array(\n\t\t\t\":ids_to_read\" => $ids_to_read\n\t\t));\n\t\t$rank = 0;\n\t\tforeach($rows as $row){\n\t\t\tself::$CACHE[$c_key][$row[\"owner_id\"]][] = new TableRecord_ListerItem($this,$row,$rank);\n\t\t\t//Cache::Prepare($this->getClassNameOfRecords(),$row[\"record_id\"]);\n\t\t\t$rank++;\n\t\t}\n\n\t\treturn self::$CACHE[$c_key][$owner_id];\n\t}", "title": "" }, { "docid": "94d51b2cdae46241418433faa7b2f7ec", "score": "0.51424", "text": "public function getManagers();", "title": "" }, { "docid": "e25a205613a04bac610828b7645ff03c", "score": "0.5138318", "text": "public static function getClients()\n\t{\n\t\t$me = self::getInstance();\n\t\treturn $me->nodeCommand('getClients', array('fooo'));\n\t}", "title": "" }, { "docid": "79bd459b29511752a485d08b2c318df3", "score": "0.5127969", "text": "public function readers(): BelongsToMany\n {\n return $this->belongsToMany(User::class, 'book_user');\n }", "title": "" }, { "docid": "0017871340f01cf9c831ba85fabb956f", "score": "0.5113834", "text": "protected function getAnnotations_ReaderService()\n {\n include_once \\dirname(__DIR__, 4).''.\\DIRECTORY_SEPARATOR.'vendor'.\\DIRECTORY_SEPARATOR.'doctrine'.\\DIRECTORY_SEPARATOR.'annotations'.\\DIRECTORY_SEPARATOR.'lib'.\\DIRECTORY_SEPARATOR.'Doctrine'.\\DIRECTORY_SEPARATOR.'Common'.\\DIRECTORY_SEPARATOR.'Annotations'.\\DIRECTORY_SEPARATOR.'Reader.php';\n include_once \\dirname(__DIR__, 4).''.\\DIRECTORY_SEPARATOR.'vendor'.\\DIRECTORY_SEPARATOR.'doctrine'.\\DIRECTORY_SEPARATOR.'annotations'.\\DIRECTORY_SEPARATOR.'lib'.\\DIRECTORY_SEPARATOR.'Doctrine'.\\DIRECTORY_SEPARATOR.'Common'.\\DIRECTORY_SEPARATOR.'Annotations'.\\DIRECTORY_SEPARATOR.'AnnotationReader.php';\n include_once \\dirname(__DIR__, 4).''.\\DIRECTORY_SEPARATOR.'vendor'.\\DIRECTORY_SEPARATOR.'doctrine'.\\DIRECTORY_SEPARATOR.'annotations'.\\DIRECTORY_SEPARATOR.'lib'.\\DIRECTORY_SEPARATOR.'Doctrine'.\\DIRECTORY_SEPARATOR.'Common'.\\DIRECTORY_SEPARATOR.'Annotations'.\\DIRECTORY_SEPARATOR.'AnnotationRegistry.php';\n\n $this->privates['annotations.reader'] = $instance = new \\Doctrine\\Common\\Annotations\\AnnotationReader();\n\n $a = new \\Doctrine\\Common\\Annotations\\AnnotationRegistry();\n $a->registerUniqueLoader('class_exists');\n\n $instance->addGlobalIgnoredName('required', $a);\n\n return $instance;\n }", "title": "" }, { "docid": "dadcdf64c2772c368a656d7cf7f40d3e", "score": "0.5093866", "text": "protected function getReader(){\n if($this->_reader===null){\n $this->_reader = $this->getResource()->getConnection('core_read');\n }\n return $this->_reader;\n }", "title": "" }, { "docid": "aed6dedb75612495f77c47eaf47f1d4f", "score": "0.50884724", "text": "protected function getAnnotations_CachedReaderService()\n {\n return $this->privates['annotations.cached_reader'] = new \\Doctrine\\Common\\Annotations\\CachedReader(($this->privates['annotations.reader'] ?? $this->getAnnotations_ReaderService()), $this->load('getAnnotations_CacheService'), true);\n }", "title": "" }, { "docid": "5577eb83393d7372791e80ee1d18c67b", "score": "0.508531", "text": "function resourceList() {\n\t\t$resources = $this->getResources();\n\t\treturn $resources;\n\t}", "title": "" }, { "docid": "92caafa63a3be013cc4bc05686f6ea9c", "score": "0.50635463", "text": "public function readAll()\n\t{\n\t\treturn $this->dao->readAll();\n\t}", "title": "" }, { "docid": "b4828b51f80b2ec1919994422ac37ac8", "score": "0.50242835", "text": "protected function getReader()\n {\n $reader = new SimpleAnnotationReader();\n\n foreach ($this->namespaces as $namespace) {\n $reader->addNamespace($namespace);\n }\n\n return $reader;\n }", "title": "" }, { "docid": "984058f4632b39b8490b1c45b3735c22", "score": "0.50228155", "text": "public function GetClients()\n {\n $list = array();\n foreach ($this->Items as $Client) {\n $list[$Client->ClientIP . $Client->ClientPort] = $Client;\n }\n return $list;\n }", "title": "" }, { "docid": "b5f5b9c45ef802e4425bcb5fce699bba", "score": "0.500633", "text": "function resourcesList() {\n\t\t$resources = array();\n\t\treturn $resources;\n\t}", "title": "" }, { "docid": "1b5c57393cd7784c59bfd86f64d0bd40", "score": "0.49878603", "text": "protected function getAnnotations_ReaderService()\n {\n return $this->services['annotations.reader'] = new \\Doctrine\\Common\\Annotations\\AnnotationReader();\n }", "title": "" }, { "docid": "bb2943e15d3342f05be94d3cfe2c58f2", "score": "0.49761602", "text": "public function getReader()\n {\n Deprecation::trigger(\n 'doctrine/orm',\n 'https://github.com/doctrine/orm/pull/9587',\n '%s is deprecated with no replacement',\n __METHOD__\n );\n\n return $this->reader;\n }", "title": "" }, { "docid": "18bf18cf7e5a70eeaede08f54ed2dff9", "score": "0.49634612", "text": "public function getPerformers($params)\n {\n return $this->requestProcessor('performers', 'GET', $params);\n }", "title": "" }, { "docid": "f2a3033a62a2ff3e8d64683c216fae8d", "score": "0.49433064", "text": "public function getWriters()\n {\n return $this->writers;\n }", "title": "" }, { "docid": "705bb6c6785ceb2812977be74d16c8c2", "score": "0.49392802", "text": "public function getResources()\r\n\t{\r\n\t\t// Load the resources\r\n\t\tif ($this->resources == null) $this->loadResources();\r\n\t\t// Return the resources\r\n\t\treturn $this->resources;\r\n\t}", "title": "" }, { "docid": "641ef1e46250d103be151cb64f8f9ffd", "score": "0.4939185", "text": "public function nextForgers(): array\n {\n return $this->get('delegates/getNextForgers');\n }", "title": "" }, { "docid": "802780da2c46205c192303412938d12a", "score": "0.49285698", "text": "function ReadPersons()\n {\n return ReadAllRecords('personnes');\n }", "title": "" }, { "docid": "52644acf3431af2986d07a27678957a2", "score": "0.49249384", "text": "protected function getAnnotationReaderService()\n {\n return $this->services['annotation_reader'] = new \\Doctrine\\Common\\Annotations\\CachedReader(${($_ = isset($this->services['annotations.reader']) ? $this->services['annotations.reader'] : $this->getAnnotations_ReaderService()) && false ?: '_'}, new \\Symfony\\Component\\Cache\\DoctrineProvider(\\Symfony\\Component\\Cache\\Adapter\\PhpArrayAdapter::create((__DIR__.'/annotations.php'), ${($_ = isset($this->services['cache.annotations']) ? $this->services['cache.annotations'] : $this->getCache_AnnotationsService()) && false ?: '_'})), true);\n }", "title": "" }, { "docid": "52644acf3431af2986d07a27678957a2", "score": "0.49249384", "text": "protected function getAnnotationReaderService()\n {\n return $this->services['annotation_reader'] = new \\Doctrine\\Common\\Annotations\\CachedReader(${($_ = isset($this->services['annotations.reader']) ? $this->services['annotations.reader'] : $this->getAnnotations_ReaderService()) && false ?: '_'}, new \\Symfony\\Component\\Cache\\DoctrineProvider(\\Symfony\\Component\\Cache\\Adapter\\PhpArrayAdapter::create((__DIR__.'/annotations.php'), ${($_ = isset($this->services['cache.annotations']) ? $this->services['cache.annotations'] : $this->getCache_AnnotationsService()) && false ?: '_'})), true);\n }", "title": "" }, { "docid": "4a21fda7773217d9c9d786c4db4fe3f4", "score": "0.4919321", "text": "public function getResources() {\n\t\treturn $this->resources;\n\t}", "title": "" }, { "docid": "394791ede5199b8aa9f616ca089f69d8", "score": "0.48979214", "text": "public function get_list()\n\t{\n\t\t$result = $this->get('docs.getList');\n\t\treturn $result['resultset'];\n\t}", "title": "" }, { "docid": "4aa824cbf0f62d27178a0a9de82eb268", "score": "0.4892428", "text": "function getList() {\n $rta = array();\n $rta[0] = $this->getCliente(1);\n $rta[1] = $this->getCliente(2);\n return $rta;\n }", "title": "" }, { "docid": "7a657f1081809427f8ef292a45f14666", "score": "0.48846757", "text": "protected function getAnnotationReaderService()\n {\n return $this->services['annotation_reader'] = new \\Doctrine\\Common\\Annotations\\CachedReader(${($_ = isset($this->services['annotations.reader']) ? $this->services['annotations.reader'] : $this->getAnnotations_ReaderService()) && false ?: '_'}, new \\Symfony\\Component\\Cache\\DoctrineProvider(\\Symfony\\Component\\Cache\\Adapter\\PhpArrayAdapter::create(($this->targetDirs[0].'/annotations.php'), ${($_ = isset($this->services['cache.annotations']) ? $this->services['cache.annotations'] : $this->getCache_AnnotationsService()) && false ?: '_'})), false);\n }", "title": "" }, { "docid": "88f7c50d3bde5e0d231830be5ee59225", "score": "0.48742238", "text": "public function getreader()\n {\n return view('Reader.findreader')\n ->with(array('title'=>'Find Reader','message'=>'Find Reader'));\n }", "title": "" }, { "docid": "fea75eca7d95a09fdd161290e1e1a217", "score": "0.4871593", "text": "public function getReaderConfig()\n\t{\n\t\t$acl = [];\n\t\tforeach ($this->getActionsGroups() as $actions)\n\t\t{\n\t\t\t$grant = array_intersect_key($this->rules['grant'], array_flip($actions));\n\t\t\t$require = array_intersect_key($this->rules['require'], array_flip($actions));\n\t\t\t$settings = array_intersect_key($this->settings, array_flip($actions));\n\n\t\t\t$acl += $this->finalize(new Matrix($settings, $grant, $require));\n\t\t}\n\t\tksort($acl);\n\n\t\treturn $acl;\n\t}", "title": "" }, { "docid": "844e763459bba02c739efb9437c8f196", "score": "0.4868276", "text": "public static function GetAllResources()\n {\n $resources = self::GetAllRecordsFromTable(\"resources\");\n return $resources;\n }", "title": "" }, { "docid": "9c28f559cf5a29f15e038e9198028d78", "score": "0.486447", "text": "public function getUsers(){\n return $this->fetchUsers();\n }", "title": "" }, { "docid": "c120a03483370b11cd7443bb13bd349c", "score": "0.48631316", "text": "function GetFollowers() {\n\t\t\treturn $this->process($this->api['followers']);\n\t\t}", "title": "" }, { "docid": "d8fe7dcf49a72f46b6ae8cfd49dd442e", "score": "0.48618335", "text": "public function get() {\n $result = $this->connection()->get($this->url, $this->filters);\n return $this->collectionFromResult($result);\n }", "title": "" }, { "docid": "4011a914d947d7e6805b07cc90ee7ad9", "score": "0.4855098", "text": "public function provides()\n\t{\n\t\treturn array('feed-reader');\n\t}", "title": "" }, { "docid": "14dea0a7ea2bc45df1b993dd1526c891", "score": "0.48527932", "text": "public function getResources()\n {\n return $this->privateResources;\n }", "title": "" }, { "docid": "dbdd4334337a2317e34cdc1ed25159a4", "score": "0.48512512", "text": "public function getAllNavigators(){\n\t\treturn $this->navigatorsById;\n\t}", "title": "" }, { "docid": "8f94684bdeeea26bada7d3e8d54e7774", "score": "0.48459747", "text": "public function client()\n {\n return Client::all()->lists('name','name')->sort();\n }", "title": "" }, { "docid": "1e348baa89063954f96133b6198a919e", "score": "0.48447812", "text": "public function getResources()\n {\n return $this->resources;\n }", "title": "" }, { "docid": "fed998bc9570af95a9f781a8ce0e5dbc", "score": "0.484452", "text": "protected function getCachedReader()\n {\n \tif (null === self::$cachedReader) {\n\t \t$annotationReader = new AnnotationReader;\n\t\t\t//$indexedReader \t = new IndexedReader($annotationReader);\n\t\t\t//self::$cachedReader = new CachedReader($indexedReader, $this->cache);\n\t\t\tself::$cachedReader = new CachedReader($annotationReader, $this->cache);\n \t}\n \treturn self::$cachedReader;\n }", "title": "" }, { "docid": "a9768ed55933e3dc5491522fd19e4151", "score": "0.4843055", "text": "public function getClients( $compact = false ) {\n\t\treturn $this->emdeon_xml_api->getClients( $compact );\n\t}", "title": "" }, { "docid": "bf3fd0b6f3f40fe5757534355b73c1bc", "score": "0.48421368", "text": "public function get(): array\n {\n try{\n $clients = $this->clientRepository->paginate(10);\n\n return $this->clientResponse->formatResponseCollection($clients);\n } catch(\\Throwable $th) {\n throw $th;\n }\n }", "title": "" }, { "docid": "37756a57173bb3f285adafe5ae18a2a5", "score": "0.48377535", "text": "public function getClients()\n {\n if (!static::_isValidId($this->getId())) {\n throw new P4_Spec_Exception(\"Cannot get clients. No user id has been set.\");\n }\n\n return P4_Client::fetchAll(\n array(P4_Client::FETCH_BY_OWNER => $this->getId()),\n $this->getConnection()\n );\n }", "title": "" }, { "docid": "f8de137c7ec6d5ad44e16c197bf7103d", "score": "0.4832666", "text": "public function listRecords($params)\n\t{\n\t\t$params = array_merge(array('verb'=>'ListRecords'), $params);\n\t\t$this->url->setQuery($params);\n\t\t\n\t\treturn $this->_getXMLReader();\n\t}", "title": "" }, { "docid": "829638b62c69a0513f91a598551bb011", "score": "0.48217356", "text": "public function getManagerList()\n {\n return $this->ManagerList;\n }", "title": "" }, { "docid": "fb5fb35f8c3697a6fcdc69ac21df68b6", "score": "0.48033926", "text": "public function getSearchers()\n {\n return $this->searchers;\n }", "title": "" }, { "docid": "87c51d31986ec30710380a464f642619", "score": "0.48022076", "text": "public function getList($allConsumers = FALSE);", "title": "" }, { "docid": "f618e7e90d988c88b68a8710b988dc7f", "score": "0.4792586", "text": "public function show()\n {\n\n $clients = client::with('dirigeant')->get();\n return $clients;\n }", "title": "" }, { "docid": "0b3a49055344b7791f034899c365eb8d", "score": "0.47911012", "text": "public function getRecReadRecords($userid = null){\n\t\t$sql = \"SELECT userid, bookid FROM rec_read_records %s ORDER BY userid;\";\n\t\tif ($userid == null) $sql = vsprintf($sql, '');\n\t\telse $sql = vsprintf($sql, \"WHERE userid = \".$userid);\n\t\t$result = $this->conn->query($sql);\n\t\t$records = Array();\n\t\twhile($row = $result->fetch_assoc()) {\n\t\t\t$userid = $row['userid'];\n\t\t\t$bookid = $row['bookid'];\n\t\t\t$record = Array();\n\t\t\t$record['userid'] = $userid;\n\t\t\t$record['bookid'] = $bookid;\n\t\t\tarray_push($records, $record);\n\t\t}\n\t\treturn $records;\n\t}", "title": "" }, { "docid": "72b16c12891236cd591580e3f31d3b50", "score": "0.47899082", "text": "public function all()\n\t{\n\t\treturn $this->providers;\n\t}", "title": "" }, { "docid": "9d1186c5ee5bad3f2254bd55ae4af3f2", "score": "0.4789779", "text": "public function getResources()\n {\n if (empty($this->_oResources)) {\n $this->fetchResources();\n }\n\n return $this->_oResources;\n }", "title": "" }, { "docid": "71ca683ef3c38e8e0f3ca4184c71a5b0", "score": "0.47859925", "text": "private function getList()\n {\n $client = new Client(KEY);\n $response = $client->getListOfBeers(5);\n\n if (!$response->isSuccess()) {\n throw new \\Exception('API returned error when trying to getListOfBeers: ' . $response->getError());\n }\n\n return $response->getData();\n }", "title": "" }, { "docid": "373c9f02a9c8ad0a7cf6085da9d78f8e", "score": "0.47847408", "text": "public function get_resources() {\n\n // The containers should be ordered in the array after their elements.\n // Lineitems should be after lineitem and scores should be after score.\n if (empty($this->resources)) {\n $this->resources = array();\n $this->resources[] = new \\ltiservice_gradebookservices\\local\\resource\\lineitem($this);\n $this->resources[] = new \\ltiservice_gradebookservices\\local\\resource\\result($this);\n $this->resources[] = new \\ltiservice_gradebookservices\\local\\resource\\score($this);\n $this->resources[] = new \\ltiservice_gradebookservices\\local\\resource\\lineitems($this);\n $this->resources[] = new \\ltiservice_gradebookservices\\local\\resource\\results($this);\n $this->resources[] = new \\ltiservice_gradebookservices\\local\\resource\\scores($this);\n\n }\n\n return $this->resources;\n\n }", "title": "" }, { "docid": "297eb010a57f314b7eb20b624d27ce2d", "score": "0.47839627", "text": "public function getLoadRoleInfos()\n {\n return $this->LoadRoleInfos;\n }", "title": "" }, { "docid": "35ee64c423713fc598963917c58a73a0", "score": "0.47721142", "text": "public function getList()\n {\n $clients = [];\n $q = $this->_db->query('SELECT id_client,Prenom_client,Nom_client,Mail_client,Adresse_client,PWD_client FROM client ORDER BY Nom_client');\n while ($donnees = $q->fetch(PDO::FETCH_ASSOC))\n {\n $clients[] = new Client($donnees);\n }\n return $clients; // On retourne un tableau d'objets client\n }", "title": "" }, { "docid": "b1b46ca77e1c8423050306cc7cd4dd21", "score": "0.47698382", "text": "public function doRetrieveAll(){\n $this->openConnection();\n $prDao=new PrDAO();\n $listClient = [];\n $query=\"SELECT client_lists.*\n FROM client_lists\n ORDER BY surname,name\";\n $result = $this->connessione->query($query);\n\n while($row = $result->fetch_array(MYSQLI_ASSOC))\n {\n $cList=new ClientList();\n $cList->setClient_id($row[\"client_id\"]);\n $cList->setName($row[\"name\"]);\n $cList->setSurname($row[\"surname\"]);\n $cList->setEntered($row[\"entered\"]);\n $cList->setAdded_date($row[\"added_date\"]);+\n $cList->setPr($prDao->doRetrieveById($row[\"pr\"]));\n $listClient[]=$cList;\n }\n $result->close();\n $this->closeConnection();\n return $listClient;\n }", "title": "" }, { "docid": "0b724539426b704ef62a3565b9811810", "score": "0.47634667", "text": "public function getMatchingResources(): Generator;", "title": "" }, { "docid": "c41ac979418632d45bbc4351da3314b7", "score": "0.4763314", "text": "public function listGunners(){\n\t\treturn $this->playerCO->_listGunners();\n\t}", "title": "" }, { "docid": "48077d0f33f82b6b9ad2d5df4c0b8433", "score": "0.476162", "text": "public function getClients(string $room);", "title": "" }, { "docid": "c82fc08028070d87bd07326f531965f8", "score": "0.47573054", "text": "public function getWorkers()\n {\n return $this->discovery->getWorkers();\n }", "title": "" }, { "docid": "b219d5e1a4fb74d2ebbc7a357da60d7f", "score": "0.4753309", "text": "public function readAll(Request $request)\n\t{\n\t\t// paginator parameters\n\t\t$currentCursor = $request->input('cursor', null);\n\t\t$limit = $request->input('limit', 20);\n\t\t// activated or not user parameter\n\t\t$activated = $request->input('activated', null);\n\t\t// constain paginated users\n\t\t$this->users = User::pagination($currentCursor, $limit, $activated);\n\n\t\treturn $this->readedUsersResponse();\n\t}", "title": "" }, { "docid": "2bc9d282861f54c5305a95f6713736ed", "score": "0.47493517", "text": "public function getAccesses()\n {\n return $this->accesses;\n }", "title": "" }, { "docid": "270f89d59071798072863aab0522bcda", "score": "0.4743424", "text": "public function getUsers(){\n\t\t//TODO\n\t}", "title": "" }, { "docid": "2ac6e99ac363da766b616d27d6f22dae", "score": "0.47420287", "text": "public function getResources()\n {\n $resources = [];\n foreach ($this->resources as $r) {\n $resources = array_merge($resources, $r);\n }\n\n return $resources;\n }", "title": "" }, { "docid": "f21658cb15dca716c039f6b5ca41cc9b", "score": "0.47417715", "text": "public function all()\n\t{\n\t\treturn $this->drivers;\n\t}", "title": "" }, { "docid": "f70f7de3474cb29331a0aaeda11cc4aa", "score": "0.4739358", "text": "public function getList() {\n\n\t\t$complete = false;\n\t\twhile( $complete === false ){\n\n\t\t\t$data = $this->curler( $this->list_endpoint );\n\t\t\t\n\t\t\tif ( $data <> false ) {\n\n\t\t\t\t$complete = true;\n\t\n\t\t\t\treturn json_decode( $data['data'] );\n\t\t\t\t\n\t\n\t\t\t}\n\t\t}\n\n\n\t}", "title": "" }, { "docid": "da2d696266db454b1abfe1cbe4cf7f62", "score": "0.47384566", "text": "public function all()\n {\n return $this->resource_requester->request('GET', $this->url());\n }", "title": "" }, { "docid": "abf32853136673b8928774f2d9bcead1", "score": "0.47357327", "text": "function getList()\n {\n return($this->accessList);\n }", "title": "" }, { "docid": "b9fbb9ad49520efd105ba0110dc46724", "score": "0.47300345", "text": "public function index()\n {\n $clientes = Clientes::all();\n return $clientes;\n }", "title": "" }, { "docid": "329df89a93e99542a4ce6cc24962e30e", "score": "0.4726141", "text": "function getLinks() {\n # Set the clients before returning...\n foreach ($this->links as $link) {\n $link->client = $this->client;\n }\n return $this->links;\n }", "title": "" } ]
b9772183936af075ce82723cd4efa95c
Product Banner Ends Price Banner Starts
[ { "docid": "9e461738d26b51020b35d33f0c21fcd6", "score": "0.0", "text": "public function price_banner(){\n\tif ($this->session->userdata('logged_in')){\n\t\t$dataList['title'] = 'Price Banner';\n\t\t$dataList['key'] = \"Add New\";\n\t\t$error=NULL;\n\t\t$bannerReturn = '0';\n\t\t$fr_id = 1;\n\t\t$dataList['existingBanner'] = $this->common_model->get_row(array('fr_id'=>'1'),'fr_page_banner');\n\t\tif($dataList['existingBanner']){\n\t\t\t$dataList['price_banner'] = ($dataList['existingBanner']->fr_price_banner!=NULL)?UPLOAD_PATH.\"Price_banner/\".$dataList['existingBanner']->fr_price_banner:'';\n\t\t}\n\t\tif(!empty($_FILES['fr_price_banner']['name'])){\n\t\t\t$topimagePath = FCPATH.'/uploads/Price_banner/';\n\t\t\tif (!file_exists($topimagePath)) {\n\t\t\t\tmkdir($topimagePath, 0777, true);\n\t\t\t}\n\t\t\t$config = array(\n\t\t\t\t'file_name' => 'price_banner_'.date('ymdhis'),\n\t\t\t\t'allowed_types' => 'jpg|jpeg|png|gif',\n\t\t\t\t'max_size' => 3000,\n\t\t\t\t'overwrite' => FALSE,\n\t\t\t\t'upload_path' => $topimagePath\n\t\t\t);\n\t\t\t$this->load->library('upload', $config);\n\t\t\t$this->upload->initialize($config);\n\t\t\tif($this->upload->do_upload('fr_price_banner')){\n\t\t\t\tif($fr_id!=0){\n\t\t\t\t\t$existingbanner = $this->common_model->get_row(array('fr_id'=>$fr_id),'fr_page_banner');\n\t\t\t\t\tif($existingbanner->fr_price_banner!=NULL){\n\t\t\t\t\t\tunlink($topimagePath.$existingbanner->fr_price_banner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$filename = $this->upload->data();\n\t\t\t\t$data['fr_price_banner'] = $filename['file_name'];\n\t\t\t}else{\n\t\t\t\t$error = $this->upload->display_errors();\n\t\t\t}\n\t\t\tif($error!=NULL){\n\t\t\t\t$dataList['error_msg'] = $error;\n\t\t\t\t$this->set_layout('page_banner/_price_banner',$dataList);\n\t\t\t}else{\n\t\t\t\tif($fr_id!=0){\n\t\t\t\t\t$bannerReturn = $this->common_model->update_row($data, array('fr_id'=>$fr_id), 'fr_page_banner');\n\t\t\t\t\t$status = \"success\";\n\t\t\t\t\t$message = \"Flash card banner updated succesfully\";\n\t\t\t\t}else{\n\t\t\t\t\t$bannerReturn = $this->common_model->insert_data('fr_page_banner',$data);\n\t\t\t\t\t$status = \"success\";\n\t\t\t\t\t$message = \"Flash card banner added succesfully\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($bannerReturn!=0){\n \t\t\t$this->set_flash($status,$message);\n \t\t\tredirect('service/price_banner/', 'refresh');\n \t\t}\n\t\t}else{\n\t\t $this->set_layout('page_banner/_price_banner',$dataList);\n\t\t}\n\t}else{\n\t\t$this->load->view('site/login');\n\t}\n}", "title": "" } ]
[ { "docid": "7494585efe7d1602819e2b840538508e", "score": "0.5848754", "text": "public function finishPurchase() {}", "title": "" }, { "docid": "099c7874dafd0bf97912050bffcc29ce", "score": "0.5677859", "text": "public function bannerAction()\n {\n $brand = $this->route['brand'];\n $category = $this->route['category'];\n $vars['products'] = $this->model->getProductsByCategoryAndBrand($category,$brand);\n $this->view->render('Riding Gear', $vars);\n }", "title": "" }, { "docid": "548168d387aaddbcd698b5e6e5929703", "score": "0.55657023", "text": "public function perBill()\n\t{\n\t\t$this->restart( 'shop/finish' );\n\t}", "title": "" }, { "docid": "734727b23d4161f2c3c4f1f827ad94de", "score": "0.554711", "text": "public function deliveryPriceOutDhaka()\n {\n }", "title": "" }, { "docid": "753b9562983deb348b95dcd94c1a7578", "score": "0.554383", "text": "function product_content_offer_thumbnail() {\n global $product, $post, $offer;\n $offer_validity = date('Y-m-d', strtotime($offer['offer_end_date']));\n\n printf( '<div class=\"mf-product-thumbnail\">' );\n\n wc_get_template('loop/offer-badge.php');\n\n printf('<a href=\"%s\" target=\"_blank\">', esc_url($offer['url']));\n\n $image_size = 'shop_catalog';\n if ( has_post_thumbnail() ) {\n $thumbnail_class = apply_filters( 'martfury_product_thumbnail_classes', '' );\n $post_thumbnail_id = get_post_thumbnail_id( $post );\n echo martfury_get_image_html( $post_thumbnail_id, $image_size, $thumbnail_class );\n\n } elseif ( function_exists( 'woocommerce_get_product_thumbnail' ) ) {\n echo woocommerce_get_product_thumbnail();\n }\n\n do_action( 'martfury_after_product_loop_thumbnail' );\n\n echo '</a>';\n\n do_action( 'martfury_after_product_loop_thumbnail_link' );\n\n //Price -->\n echo '<b style=\"color: green;font-size: 18px;\"> ' . $offer['summary']['formatted_actual_product_price'] . '</b> ';\n if ($offer['summary']['formatted_actual_default_product_price'] != $offer['summary']['formatted_actual_product_price']) {\n echo '<b style=\"text-decoration: line-through;color:grey;font-weight: 400;\">' . $offer['summary']['formatted_actual_default_product_price'] . '</b>';\n }\n if ($offer['summary']['current_discount_percentage_from_default_price'] != 0) {\n echo '<b style=\"color: red;font-weight: 400;\">' . '(-' . $offer['summary']['current_discount_percentage_from_default_price'] . '%)' . '</b>';\n }\n\n echo '<br>';\n //<!-- End price\n echo '</div>';\n\n //<!-- More details\n echo '<div class=\"card-more-info\">';\n echo '<b>' . 'Lowest available price: ' . '</b>' . '<b>'. $offer['summary']['max_price_step_price'] .'</b>';echo '<br>';\n echo '<b style=\"font-weight: 400;color:red;\">' . 'Offer validity: ' . $offer_validity . '</b>';echo '<br>';\n if ($offer['summary']['actual_applicant_product_number'] != 0) {\n echo '<b style=\"font-weight: 400;\">' . 'Sold: ' . '</b>' . $offer['summary']['actual_applicant_product_number'];\n }\n echo '</div>';\n //<!-- End Details\n\n if (is_page(\"Network\")) {\n printf('<a href=\"%s\" class=\"button offer_list\" rel=\"nofollow\"><span class=\"add-to-cart-text\">Read more</span></a>', esc_url($offer['url']));\n }\n }", "title": "" }, { "docid": "944a69f461d4a9997d9c10591d0ed7d6", "score": "0.5538627", "text": "function woo_bundles_loop_price_11() {\n\t\tglobal $product;\n\n\t\tif ( $product->is_type( 'bundle' ) && $product->is_priced_per_product() )\n\t\t\t$product->microdata_display = false;\n\t}", "title": "" }, { "docid": "13419f11d695514248e6c0484e499eff", "score": "0.5470447", "text": "function on_buy()\r\n\t{\r\n\t}", "title": "" }, { "docid": "f3a3c914e898c6ec086d893c72244c85", "score": "0.541023", "text": "function pricing() {\n\t\t\tparent::controller();\n\t\t\t\n\t\t}", "title": "" }, { "docid": "1a43698ab5360fa2b963ebe14c326312", "score": "0.5405339", "text": "public function beforeShopLoop()\n {\n echo '</div>';\n }", "title": "" }, { "docid": "f24d87e76119db8e4183e42eae447bf2", "score": "0.53949654", "text": "public function swc_homepage_on_sale_products_description() {\n\t\t$description = get_theme_mod( 'swc_homepage_on_sale_products_description', '' );\n\n\t\tif ( '' !== $description ) {\n\t\t\techo '<div class=\"swc-section-description\">' . wpautop( wptexturize( $description ) ) . '</div>';\n\t\t}\n\t}", "title": "" }, { "docid": "e80700a5e534b7c55cd902b532eb9964", "score": "0.5358864", "text": "public function hookFooter()\n {\n $ga_scripts = '';\n $this->js_state = 0;\n\n if (isset($this->context->cookie->ga_cart)) {\n $this->filterable = 0;\n\n $gacarts = unserialize($this->context->cookie->ga_cart);\n foreach ($gacarts as $gacart) {\n if ($gacart['quantity'] > 0) {\n } elseif ($gacart['quantity'] < 0) {\n $gacart['quantity'] = abs($gacart['quantity']);\n }\n }\n unset($this->context->cookie->ga_cart);\n }\n\n $controller_name = Tools::getValue('controller');\n $products = $this->wrapProducts($this->context->smarty->getTemplateVars('products'), [], true);\n\n if ($controller_name == 'order' || $controller_name == 'orderopc') {\n $this->eligible = 1;\n $step = Tools::getValue('step');\n if (empty($step)) {\n $step = 0;\n }\n }\n\n if (version_compare(_PS_VERSION_, '1.5', '<')) {\n if ($controller_name == 'orderconfirmation') {\n $this->eligible = 1;\n }\n } else {\n $confirmation_hook_id = (int) Hook::getIdByName('orderConfirmation');\n if (isset(Hook::$executed_hooks[$confirmation_hook_id])) {\n $this->eligible = 1;\n }\n }\n\n if (isset($products) && count($products) && $controller_name != 'index') {\n if ($this->eligible == 0) {\n $ga_scripts .= $this->addProductImpression($products);\n }\n $ga_scripts .= $this->addProductClick($products);\n }\n\n return $this->_runJs($ga_scripts);\n }", "title": "" }, { "docid": "512008a4103f6b47067e9b131d451ac2", "score": "0.5337248", "text": "function get_new_in_products()\n{\n $sql = \"SELECT * ,SUBSTRING(product_short_description, 1, 20) as sub_description \n FROM products where publish_status = 'public' order by date_time desc limit 3\";\n $query = query($sql);\n confirm($query);\n\n $heading = true;\n while ($row = fetch_array($query)) {\n $product_image = display_image($row['product_image']);\n if ($row['product_disc_price'] != '0') {\n $discount_button = \"<span class='pull-right'><span class='label label-danger blink'> Sale</span> <strong> Rs. {$row['product_disc_price']}</strong></span>\";\n $sale_price = \"<s style='color: #adadad'>Rs. {$row['product_price']}</s>\";\n } else {\n $discount_button = '';\n $sale_price = \"Rs. {$row['product_price']}\";\n }\n\n if ($heading == true) {\n echo '<h4 class=\"breadcrumb\"><span class=\"glyphicon glyphicon-share-alt\"><span> NEW ARRIVALS</h4>';\n $heading = false;\n }\n\n $product = <<<DELIMETER\n \n <div class='col-sm-4 col-lg-4 col-md-4'>\n <div class='thumbnail'>\n <a href='item.php?id={$row['product_id']}'><img style=\"height: 300px\" class=\"img-responsive img-thumbnail\" src='../resources/{$product_image}' alt=''></a>\n <div class='caption'> \n <h4 class='pull-right'>{$sale_price}</h4>\n <h4><a href='item.php?id={$row['product_id']}'>{$row['product_title']}</a> </h4>\n \n\n <a class='btn btn-primary pull-left' href='../resources/cart.php?add={$row['product_id']}&page=index'> Add to <span class=\"glyphicon glyphicon-shopping-cart\"><span></a>\n \n {$discount_button}\n \n \n </div> \n </div>\n </div> \nDELIMETER;\n\n echo $product;\n }\n}", "title": "" }, { "docid": "e9c477f8d942bb791649831d75b7322d", "score": "0.53068805", "text": "private function _recalcBanner() {\n // @TODO Here is no params for recalc...?\n }", "title": "" }, { "docid": "76c96296abc78071c803d753d656962a", "score": "0.5286852", "text": "public function productAmazonPriceIsZero( $thisProd ) {\n\t\t\t$multiply_factor = ($this->amz_settings[\"country\"] == 'co.jp') ? 1 : 0.01;\n \n\t\t\t$price_setup = (isset($this->amz_settings[\"price_setup\"]) && $this->amz_settings[\"price_setup\"] == 'amazon_or_sellers' ? 'amazon_or_sellers' : 'only_amazon');\n\t\t\t//$offers_from = ( $price_setup == 'only_amazon' ? 'Amazon' : 'All' );\n\t\t\t\n $prodprice = array('regular_price' => '');\n \n\t\t\t// list price\n\t\t\t$offers = array(\n\t\t\t\t'ListPrice' => isset($thisProd['ItemAttributes']['ListPrice']['Amount']) ? ($thisProd['ItemAttributes']['ListPrice']['Amount'] * $multiply_factor ) : '',\n\t\t\t\t'LowestNewPrice' => isset($thisProd['Offers']['Offer']['OfferListing']['Price']['Amount']) ? ($thisProd['Offers']['Offer']['OfferListing']['Price']['Amount'] * $multiply_factor) : '',\n\t\t\t\t'Offers'\t=> isset($thisProd['Offers']) ? $thisProd['Offers'] : array()\n\t\t\t);\n \n\t\t\tif( $price_setup == 'amazon_or_sellers' && isset($thisProd['OfferSummary']['LowestNewPrice']['Amount']) ) {\n\t\t\t\t$offers['LowestNewPrice'] = ($thisProd['OfferSummary']['LowestNewPrice']['Amount'] * $multiply_factor);\n\t\t\t}\n\n\t\t\t$prodprice['regular_price'] = $offers['ListPrice'];\n\n\t\t\t// if regular price is empty setup offer price as regular price\n\t\t\tif( \n\t\t\t\t(!isset($offers['ListPrice']) || (float)$offers['ListPrice'] == 0.00)\n\t\t\t\t|| (isset($offers['ListPrice']) && $offers['LowestNewPrice'] > $offers['ListPrice'])\n\t\t\t) {\n\t\t\t\t$prodprice['regular_price'] = $offers['LowestNewPrice'];\n\t\t\t}\n\n\t\t\t// if still don't have any regular price, try to get from VariationSummary (ex: Apparel category)\n\t\t\tif( !isset($prodprice['regular_price']) || (float)$prodprice['regular_price'] == 0.00 ) {\n\t\t\t\t$prodprice['regular_price'] = isset($thisProd['VariationSummary']['LowestPrice']['Amount']) ? ( $thisProd['VariationSummary']['LowestPrice']['Amount'] * $multiply_factor ) : '';\n\t\t\t}\n \n\t\t\tif ( empty($prodprice['regular_price']) || (float)$prodprice['regular_price'] <= 0.00 ) return true;\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "c57b7c66b2cb7691bedc5b051d8f4c2e", "score": "0.52702504", "text": "function woo_bundles_loop_price_9() {\n\t\tglobal $product;\n\n\t\tif ( $product->is_type( 'bundle' ) && $product->is_priced_per_product() )\n\t\t\t$product->microdata_display = true;\n\t}", "title": "" }, { "docid": "151aeeaac321a9e25c12c42a0c1179b8", "score": "0.5256716", "text": "private function SetPricingDetails()\n\t{\n\t\t$product = $this->productClass->getProduct();\n\n\t\t$GLOBALS['PriceLabel'] = GetLang('Price');\n\n\t\tif($this->productClass->GetProductCallForPricingLabel()) {\n\t\t\t$GLOBALS['ProductPrice'] = $GLOBALS['ISC_CLASS_TEMPLATE']->ParseGL($this->productClass->GetProductCallForPricingLabel());\n\t\t}\n\t\t// If prices are hidden, then we don't need to go any further\n\t\telse if($this->productClass->ArePricesHidden()) {\n\t\t\t$GLOBALS['HidePrice'] = \"display: none;\";\n\t\t\t$GLOBALS['HideRRP'] = 'none';\n\t\t\t$GLOBALS['ProductPrice'] = '';\n\t\t\treturn;\n\t\t}\n\t\telse if (!$this->productClass->IsPurchasingAllowed()) {\n\t\t\t$GLOBALS['ProductPrice'] = GetLang('NA');\n\t\t}\n\t\telse {\n\t\t\t$options = array('strikeRetail' => false);\n\t\t\t$GLOBALS['ProductPrice'] = formatProductDetailsPrice($product, $options);\n\t\t}\n\n\t\t// Determine if we need to show the RRP for this product or not\n\t\t// by comparing the price of the product including any taxes if\n\t\t// there are any\n\t\t$GLOBALS['HideRRP'] = \"none\";\n\t\t$productPrice = $product['prodcalculatedprice'];\n\t\t$retailPrice = $product['prodretailprice'];\n\t\tif($retailPrice) {\n\t\t\t// Get the tax display format\n\t\t\t$displayFormat = getConfig('taxDefaultTaxDisplayProducts');\n\t\t\t$options['displayInclusive'] = $displayFormat;\n\n\t\t\t// Convert to the browsing currency, and apply group discounts\n\t\t\t$productPrice = formatProductPrice($product, $productPrice, array(\n\t\t\t\t'localeFormat' => false, 'displayInclusive' => $displayFormat\n\t\t\t));\n\t\t\t$retailPrice = formatProductPrice($product, $retailPrice, array(\n\t\t\t\t'localeFormat' => false, 'displayInclusive' => $displayFormat\n\t\t\t));\n\n\t\t\tif($productPrice < $retailPrice) {\n\t\t\t\t$GLOBALS['HideRRP'] = '';\n\n\t\t\t\t// Showing call for pricing, so just show the RRP and that's all\n\t\t\t\tif($this->productClass->GetProductCallForPricingLabel()) {\n\t\t\t\t\t$GLOBALS['RetailPrice'] = CurrencyConvertFormatPrice($retailPrice);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// ISC-1057: do not apply customer discount to RRP in this case\n\t\t\t\t\t$retailPrice = formatProductPrice($product, $product['prodretailprice'], array(\n\t\t\t\t\t\t'localeFormat' => false,\n\t\t\t\t\t\t'displayInclusive' => $displayFormat,\n\t\t\t\t\t\t'customerGroup' => 0,\n\t\t\t\t\t));\n\t\t\t\t\t$GLOBALS['RetailPrice'] = '<strike>' . formatPrice($retailPrice) . '</strike>';\n\t\t\t\t\t$GLOBALS['PriceLabel'] = GetLang('YourPrice');\n\t\t\t\t\t$savings = $retailPrice - $productPrice;\n\t\t\t\t\t$string = sprintf(getLang('YouSave'), '<span class=\"YouSaveAmount\">'.formatPrice($savings).'</span>');\n\t\t\t\t\t$GLOBALS['YouSave'] = '<span class=\"YouSave\">'.$string.'</span>';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1502d729e2c9fb5b66e37a53e1352568", "score": "0.52505565", "text": "function woocommerce_product_loop_end( $echo = true ) {\r\n ob_start();\r\n\r\n if ( $echo )\r\n echo '</div>';\r\n else\r\n return '</div>';\r\n }", "title": "" }, { "docid": "df36ed400200616806d29a117e0f87b8", "score": "0.52368146", "text": "public function handle(AmazonGrab $amazonGrab, AmazonOkProduct $amazonOkProducts)\n {\n\n $amazonGrab->grabOKProductFromAmazon();\n\n // $amazonGrab->grabProduct('https://www.amazon.com/gp/product/B017B19UL0/ref=s9u_simh_gw_i1?ie=UTF8&fpl=fresh&pd_rd_i=B017B19UL0&pd_rd_r=1SM216WV1B9FRF8ES420&pd_rd_w=Z0Umu&pd_rd_wg=bD4Kv&pf_rd_m=ATVPDKIKX0DER&pf_rd_s=&pf_rd_r=V6SM63VH079ASK60PKGW&pf_rd_t=36701&pf_rd_p=1cf9d009-399c-49e1-901a-7b8786e59436&pf_rd_i=desktop');\n // $amazonGrab->grabProduct('https://www.amazon.com/dp/B0725QQMRG?psc=1');\n // $amazonGrab->grabProduct('https://www.amazon.com/Intex-River-Lounge-Inflatable-Diameter/dp/B000PEOMC8/ref=sr_1_1?s=toys-and-games&ie=UTF8&qid=1504430266&sr=1-1&refinements=p_n_age_range%3A5442387011');\n //$amazonGrab->grabProduct('https://www.amazon.com/dp/B0722LDB7C?psc=1');\n // $amazonGrab->grabProduct('https://www.amazon.com/Tiana-Womens-Scallop-Sheath-Dress/dp/B07357K4XV/ref=lp_17051271011_1_2?s=apparel&ie=UTF8&qid=1505004923&sr=1-2&nodeID=17051271011&psd=1');\n return;\n $amazonGrab->grabCategories(); //抓分类页\n //$amazonGrab->grabFirstPage();//抓首页\n return;\n\n $this->argument('user');\n\n\n\n\n /**\n * 并发任务 测试\n */\n\n\n $client = new Client();\n $this->totalPageCount = 11;\n\n $requests = function ($total) use ($client) {\n for($i=1;$i<=$total;$i++) {\n $uri = 'http://www.baidu.com/';\n yield function() use ($client, $uri) {\n return $client->getAsync($uri,['verify'=>false,'allow_redirects' => false,'referer'=> true ]);\n };\n }\n };\n\n $pool = new Pool($client, $requests($this->totalPageCount), [\n 'concurrency' => $this->concurrency,\n 'fulfilled' => function ($response, $index){\n $res = $response->getBody()->getContents();\n if($res)\n file_put_contents(storage_path().'/logs/'.$index.'.txt',$res);\n $this->info(\"requests $index No:\" . $index .'');\n $this->countedAndCheckEnded();\n },\n 'rejected' => function ($reason, $index){\n $this->error(\"rejected\".$index );\n $this->error(\"rejected reason: \" . $reason );\n $this->countedAndCheckEnded();\n },\n ]);\n\n // 开始发送请求\n $promise = $pool->promise();\n $promise->wait();\n }", "title": "" }, { "docid": "a9609592845040e96efec2746c933d30", "score": "0.52294844", "text": "function DiscountBody()\n\t{\t\n\t}", "title": "" }, { "docid": "704c86af049c0d76ea7ce61451d37979", "score": "0.521494", "text": "function writeAdvertises() {\n //products list\n $products = require DATA_PATH . 'products.php';\n\n\n //the first product is twice price\n $twiceProduct = array_shift($products);\n //normal price\n $normalProducts = $products;\n\n echo '<div class=\"product\" id=\"product\">';\n echo \"<div class=\\\"product-item twice\\\">\n <a href=\\\"//www.google.com\\\"><img src=\\\" {$twiceProduct['image']}\\\"/></a>\n <div class=\\\"info\\\">\n <div>{$twiceProduct['name']}</div>\n <div>\\${$twiceProduct['price']}</div>\n </div>\n </div>\";\n\n foreach ($normalProducts as $item) {\n echo \"<div class=\\\"product-item normal\\\">\n <a href=\\\"//www.google.com\\\"><img src=\\\"{$item['image']}\\\"/></a>\n <div class=\\\"info\\\">\n <div>{$item['name']}</div>\n <div>\\${$item['price']}</div>\n </div>\n </div>\";\n }\n\necho \"</div>\";\n}", "title": "" }, { "docid": "5f9db3903b0960e69d2ba4198b65f18c", "score": "0.5210916", "text": "function custom_template_single_yousave()\n {\n global $product;\n ?>\n <span class=\"save-cs-tag\">\n <span>You save:</span>\n <span class=\"discounted-price\">-</span>\n </span>\n <?php\n }", "title": "" }, { "docid": "bf1ab12c9825a69fc42cd5aaa64b4853", "score": "0.5208682", "text": "function tdl_custom_latest_products($atts, $content = null) {\n\t$sliderrandomid = rand();\n\textract(shortcode_atts(array(\n\t\t\"title\" => '',\n\t\t'per_page' => '8',\n\t\t'orderby' => 'date',\n\t\t'order' => 'desc',\n\t\t'category' => '',\n\t), $atts));\n\tob_start();\n\n\t?>\n\t\n\t<?php \n\t/**\n\t* Check if WooCommerce is active\n\t**/\n\tif ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {\n\t?>\n\t\n\t<script>\n\t(function($){\n\t\t$(window).load(function(){\n\t\t/* items_slider */\n\t\t$('.items_slider_id_<?php echo $sliderrandomid ?> .items_slider').iosSlider({\n\t\t\tsnapToChildren: true,\n\t\t\tdesktopClickDrag: true,\n\t\t\tnavNextSelector: $('.items_slider_id_<?php echo $sliderrandomid ?> .items_sliders_nav .big_arrow_right'),\n\t\t\tnavPrevSelector: $('.items_slider_id_<?php echo $sliderrandomid ?> .items_sliders_nav .big_arrow_left'),\n\t\t\tonSliderLoaded: custom_latest_products_UpdateSliderHeight,\n\t\t\tonSlideChange: custom_latest_products_UpdateSliderHeight,\n\t\t\tonSliderResize: custom_latest_products_UpdateSliderHeight\n\t\t});\n\t\t\n\t\tfunction custom_latest_products_UpdateSliderHeight(args) {\n\t\t\t\t\t\t\t\t\n\t\t\tcurrentSlide = args.currentSlideNumber;\n\t\t\t\n\t\t\t/* update height of the first slider */\n\n\t\t\t\tsetTimeout(function() {\n\t\t\t\t\t<?php global $sellegance_op; ?>\n\t\t\t\t\t<?php if ($sellegance_op['tdl_product_animation']) { ?>\n\t\t\t\t\t<?php if ($sellegance_op['tdl_productanim_type'] == \"productanim3\") { ?>\n\t\t\t\t\t$('li.productanim3').each(function() {\n\t\t\t\t\t\t\t\tvar productImageHeight = $(this).find('.loop_product > img').height();\n\t\t\t\t\t\t\t\t$(this).find('.image_container').css('padding-bottom', productImageHeight + 'px');\n\t\t\t\t\t});\n\t\t\t\t\t<?php } ?>\n\t\t\t\t\t <?php } ?>\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tvar setHeight = $('.items_slider_id_<?php echo $sliderrandomid ?> .items_slider .product_item:eq(' + (args.currentSlideNumber-1) + ')').outerHeight(true);\n\t\t\t\t\t$('.items_slider_id_<?php echo $sliderrandomid ?> .items_slider').animate({ height: setHeight+20 }, 300);\n\t\t\t\t},300);\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t})\n\t})(jQuery);\n\t</script>\n\t\n\t<div class=\"woocommerce prod_slider items_slider_id_<?php echo $sliderrandomid ?> four_side\">\n\t\n\t\t<div class=\"items_sliders_header\">\n\t\t\t<div class=\"items_sliders_title\">\n\t\t\t\t<div class=\"featured_section_title\"><span><?php echo $title ?></span></div>\n\t\t\t</div>\n\t\t\t<div class=\"clearfix\"></div>\n\t\t\t<div class=\"items_sliders_nav\"> \n\t\t\t\t<a class='big_arrow_right'></a>\n\t\t\t\t<a class='big_arrow_left'></a>\n\t\t\t\t<div class='clearfix'></div>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div class=\"items_slider_wrapper\">\n\t\t\t<div class=\"items_slider\">\n\t\t\t\t<ul class=\"slider\">\n\t\t\t\t\t<?php\n\t\t\t\t\t\n\t\t\t\t\t$args = array(\n\t\t\t\t\t\t'post_type' => 'product',\n\t\t\t\t\t\t'product_cat' => $category,\n\t\t\t\t\t\t'post_status' => 'publish',\n\t\t\t\t\t\t'ignore_sticky_posts' => 1,\n\t\t\t\t\t\t'posts_per_page' => $per_page\n\t\t\t\t\t);\n\t\t\t\t\t\n\t\t\t\t\t$products = new WP_Query( $args );\n\t\t\t\t\t\n\t\t\t\t\tif ( $products->have_posts() ) : ?>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t<?php while ( $products->have_posts() ) : $products->the_post(); ?>\n\t\t\t\t\t\n\t\t\t\t\t\t\t<?php woocommerce_get_template_part( 'content', 'product' ); ?>\n\t\t\t\t\n\t\t\t\t\t\t<?php endwhile; // end of the loop. ?>\n\t\t\t\t\t\t\n\t\t\t\t\t<?php\n\t\t\t\t\t\n\t\t\t\t\tendif; \n\t\t\t\t\t//wp_reset_query();\n\t\t\t\t\twp_reset_postdata();\n\t\t\t\t\t?>\n\t\t\t\t</ul> \n\t\t\t</div>\n\t\t</div>\n\t\n\t</div>\n\t\n\t<?php } ?>\n\n\t<?php\n\t$content = ob_get_contents();\n\tob_end_clean();\n\treturn $content;\n}", "title": "" }, { "docid": "cc4e44708d0c26de04888d20a437ea74", "score": "0.5182295", "text": "function stop(){\n\t\tif($this->time_end==0){\n\t\t\t $this->time_end = $this->microtime_float();\n\t\t\t $this->time_spend = $this->time_end - $this->time_start;\n\t\t}\n\t}", "title": "" }, { "docid": "a6f44546f1426775c02f28e5ab551148", "score": "0.5173492", "text": "function endRound() {\n\n\t\t$this->console_text('End Round');\n\t\t$this->releaseEvent('onEndRound', null);\n\t}", "title": "" }, { "docid": "a992797daea3e3a86899b2583e47fb53", "score": "0.516488", "text": "public function end() {\n\n $this->current = 0;\n\n // remove the suffix which was set by self::start()\n $suffixes = Zend_Registry::get(\"pimcore_tag_block_current\");\n array_pop($suffixes);\n Zend_Registry::set(\"pimcore_tag_block_current\", $suffixes);\n\n $this->outputEditmode(\"</div>\");\n }", "title": "" }, { "docid": "427a091acfa2738c7d00508082749545", "score": "0.5160864", "text": "public function SetStart()\n\t\t{\n\t\t\t$start = 0;\n\n\t\t\tswitch ($this->_pricepage) {\n\t\t\t\tcase 1: {\n\t\t\t\t\t$start = 0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// Page 2 or more\n\t\t\t\tdefault: {\n\t\t\t\t\t$start = ($this->GetPage() * GetConfig('CategoryProductsPerPage')) - GetConfig('CategoryProductsPerPage');\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->_pricestart = $start;\n\t\t}", "title": "" }, { "docid": "9fee13256bfc4b9671a26e4bee054fcb", "score": "0.51500297", "text": "public function expiresAfterSale(): void\n {\n if ($this->isPerishable() && $this->isAfterSale()) {\n $this->setToLowestQuality();\n }\n }", "title": "" }, { "docid": "af4fabc54ca2c29c97537072661011e5", "score": "0.51411915", "text": "function wc_marketplace_product() {\n global $wmp;\n $wmp->output_report_product();\n }", "title": "" }, { "docid": "b3020fc7ee3cdaf70d284d5970916631", "score": "0.51298547", "text": "public function hookDisplayFooterProduct($params)\n {\n $config = Tools::jsonDecode(Configuration::get('KB_PUSH_NOTIFICATION'), true);\n if (!empty($config) && isset($config['module_config']['enable'])) {\n $product_config = $config['product_signup_setting'];\n if (!empty($product_config) && isset($product_config['enable']) && $product_config['enable']) {\n// $product = $params['product'];\n// Tools::dieObject($product);\n $id_lang = Context::getContext()->language->id;\n $product = new Product($params['product']['id'], true, $id_lang);\n $product_image = Image::getCover($product->id);\n $id_image = 0;\n if (!empty($product_image)) {\n $id_image = $product_image['id_image'];\n }\n $id_guest = Context::getContext()->cookie->id_guest;\n $id_shop = Context::getContext()->shop->id;\n $id_lang = Context::getContext()->language->id;\n \n $getSubscriber = KbPushSubscribers::getSubscriberRegIDs($id_guest, $id_shop);\n $priceDisplay = Product::getTaxCalculationMethod((int)$this->context->cookie->id_customer);\n $productPrice = Product::getPriceStatic($product->id, false, null, 6);\n if (!$priceDisplay ||$priceDisplay == 2) {\n $productPrice = Product::getPriceStatic($product->id, true, null, 6);\n }\n $reg_id = '';\n if (!empty($getSubscriber) && count($getSubscriber) > 0) {\n $reg_id = $getSubscriber[0]['reg_id'];\n }\n $product_price = Tools::displayPrice($productPrice);\n $product_img = $this->context->link->getImageLink($product->link_rewrite, $id_image, ImageType::getFormatedName('medium'));\n \n $ecotax_rate = (float) Tax::getProductEcotaxRate(\n $this->context->cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')}\n );\n $id_group = (int) Group::getCurrent()->id;\n $group_reduction = GroupReduction::getValueForProduct($product->id, $id_group);\n if ($group_reduction === false) {\n $group_reduction = Group::getReduction((int) $this->context->cookie->id_customer) / 100;\n }\n \n $is_registered = KbPushProductSubscribers::getSubscriberByProductANDRegID($product->id, $reg_id, $id_guest);\n \n $product_price_message = '';\n if (isset($product_config['kbsignup_price_message'][$id_lang]) &&\n !empty($product_config['kbsignup_price_message'][$id_lang])) {\n $product_price_message = $product_config['kbsignup_price_message'][$id_lang];\n $product_price_message = str_replace('{{kb_item_name}}', $product->name, $product_price_message);\n $product_price_message = str_replace('{{kb_item_current_price}}', $product_price, $product_price_message);\n $product_price_message = str_replace('{{kb_item_reference}}', $product->reference, $product_price_message);\n }\n $product_stock_message = '';\n if (isset($product_config['kbsignup_stock_message'][$id_lang]) &&\n !empty($product_config['kbsignup_stock_message'][$id_lang])) {\n $product_stock_message = $product_config['kbsignup_stock_message'][$id_lang];\n $product_stock_message = str_replace('{{kb_item_name}}', $product->name, $product_stock_message);\n $product_stock_message = str_replace('{{kb_item_current_price}}', $product_price, $product_stock_message);\n $product_stock_message = str_replace('{{kb_item_reference}}', $product->reference, $product_stock_message);\n }\n $price_info = array(\n 'heading' => (isset($product_config['kbsignup_price_heading'][$id_lang]) && !empty($product_config['kbsignup_price_heading'][$id_lang])) ? $product_config['kbsignup_price_heading'][$id_lang] : $this->l('Set Price Alert'),\n 'message' => $product_price_message,\n );\n $stock_info = array(\n 'heading' => (isset($product_config['kbsignup_stock_heading'][$id_lang]) && !empty($product_config['kbsignup_stock_heading'][$id_lang])) ? $product_config['kbsignup_stock_heading'][$id_lang] : $this->l('Set Product Stock Alert'),\n 'message' => $product_stock_message,\n );\n \n $this->context->smarty->assign(array(\n 'product_signup' => $product_config,\n 'product_price' => $product_price,\n 'product_img' => $product_img,\n 'price_info' => json_encode($price_info),\n 'stock_info' => json_encode($stock_info),\n 'reg_id' => $reg_id,\n 'product_price_message' => $product_price_message,\n 'product_stock_message' => $product_stock_message,\n 'id_product' => $product->id,\n 'allow_oosp' => $product->isAvailableWhenOutOfStock((int)$product->out_of_stock),\n 'id_guest' => $id_guest,\n 'PS_CATALOG_MODE' => (bool)Configuration::get('PS_CATALOG_MODE') || (Group::isFeatureActive() && !(bool)Group::getCurrent()->show_prices),\n 'id_shop' => $id_shop,\n 'product_price_wt_sign' => $productPrice,\n 'currency_code' => $this->context->currency->iso_code,\n 'product' => $product,\n 'ecotax_rate' => $ecotax_rate,\n 'group_reduction' => $group_reduction,\n 'id_lang' => Context::getContext()->language->id,\n 'loader' => $this->getModuleDirUrl() . $this->name . '/views/img/popup_loader.svg',\n 'kb_push_signup_url' => $this->context->link->getModuleLink($this->name, 'productalert', array('action' => 'signup'), (bool) Configuration::get('PS_SSL_ENABLED')),\n ));\n return $this->context->smarty->fetch(_PS_MODULE_DIR_ . $this->name . '/views/templates/hook/signup_product.tpl');\n }\n }\n }", "title": "" }, { "docid": "abc81b24389945f9229bb7d926c34814", "score": "0.51105577", "text": "public function hookProductFooter($params)\r\n\t{\r\n\t\t$product_quantity = Product::getQuantity((int)Tools::getValue('id_product'));\r\n\t\tif ($product_quantity == 0)\r\n\t\t\treturn;\r\n\t\tif (Configuration::get('PAYPAL_USA_EXPRESS_CHECKOUT') == 1 && Configuration::get('PAYPAL_USA_EXP_CHK_PRODUCT'))\r\n\t\t{\r\n\t\t\t$this->smarty->assign('paypal_usa_action', $this->context->link->getModuleLink('paypalusa', 'expresscheckout', array('pp_exp_initial' => 1)));\r\n\t\t\t$this->smarty->assign('paypal_usa_merchant_country_is_mx', (Validate::isLoadedObject($this->_shop_country) && $this->_shop_country->iso_code == 'MX'));\r\n\r\n\t\t\treturn $this->display(__FILE__, 'views/templates/hooks/express-checkout.tpl');\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4ded758d1635ce7cee07a62bf0297f2c", "score": "0.50915647", "text": "function product_content_offerList_thumbnail() {\n global $product, $post, $offer;\n $offer_validity = date('Y-m-d', strtotime($offer['offer_end_date']));\n\n printf( '<div class=\"mf-product-thumbnail\">' );\n\n printf('<a href=\"%s\" target=\"_blank\">', esc_url($offer['url']));\n\n $image_size = 'shop_catalog';\n if ( has_post_thumbnail() ) {\n $thumbnail_class = apply_filters( 'martfury_product_thumbnail_classes', '' );\n $post_thumbnail_id = get_post_thumbnail_id( $post );\n echo martfury_get_image_html( $post_thumbnail_id, $image_size, $thumbnail_class );\n\n } elseif ( function_exists( 'woocommerce_get_product_thumbnail' ) ) {\n echo woocommerce_get_product_thumbnail();\n }\n\n do_action( 'martfury_after_product_loop_thumbnail' );\n\n echo '</a>';\n\n do_action( 'martfury_after_product_loop_thumbnail_link' );\n\n //Price -->\n echo '<b style=\"color: green;font-size: 18px;\"> ' . $offer['summary']['formatted_actual_product_price'] . '</b> ';\n if ($offer['summary']['formatted_actual_default_product_price'] != $offer['summary']['formatted_actual_product_price']) {\n echo '<b style=\"text-decoration: line-through;color:grey;font-weight: 400;\">' . $offer['summary']['formatted_actual_default_product_price'] . '</b>';\n }\n if ($offer['summary']['current_discount_percentage_from_default_price'] != 0) {\n echo '<b style=\"color: red;font-weight: 400;\">' . '(-' . $offer['summary']['current_discount_percentage_from_default_price'] . '%)' . '</b>';\n }\n echo '<br>';\n //<!-- End price\n echo '</div>';\n\n //<!-- More details\n echo '<div class=\"card-more-info\">';\n echo '<b>' . 'Lowest available price: ' . '</b>' . '<b>'. $offer['summary']['max_price_step_price'] .'</b>'; echo '<br>';\n echo '<b style=\"font-weight: 400;color:red;\">' . 'Offer validity: ' . $offer_validity . '</b>'; echo '<br>';\n\n if ($offer['summary']['actual_applicant_product_number'] != 0) {\n echo '<b style=\"font-weight: 400;\">' . 'Sold: ' . '</b>' . $offer['summary']['actual_applicant_product_number'];\n }\n echo '</div>';\n //<!-- End details\n\n //Badge -->\n echo '<div class=\"box\">';\n wc_get_template('loop/offer-badge.php');\n echo '</div>';\n //<!-- End badge\n\n if (is_page(\"Network\")) {\n echo'<div class=\"buttons-offer-list\">';\n do_action('synerbay_synerBayInviteShortcodeList', $offer['url']);\n printf('<a href=\"%s\" class=\"button offer_list\" rel=\"nofollow\"><span class=\"add-to-cart-text\">Read more</span></a>', esc_url($offer['url']));\n echo '</div>';\n }\n }", "title": "" }, { "docid": "11b15af844d3df0c496a508a72b2d17c", "score": "0.50887674", "text": "function endGallery() {\n $content = '</div></div>';\n if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rgsmoothgallery']['extraEndGalleryHook'])) {\n foreach($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rgsmoothgallery']['extraEndGalleryHook'] as $_classRef) {\n\t\t\t\t$_procObj = & t3lib_div::getUserObj($_classRef);\n\t\t\t\t$content = $_procObj->extraEndGalleryProcessor($content, $this);\n }\n } \n return $content;\n }", "title": "" }, { "docid": "d40d511a2d204d6ec508ee8a762afaa8", "score": "0.5080696", "text": "function example_price_free_delivery_note()\n{\n ?>\n <style>\n .delivery-note .head-item-price,\n .delivery-note .head-price,\n .delivery-note .product-item-price,\n .delivery-note .product-price,\n .delivery-note .order-items tfoot {\n display: none;\n }\n .delivery-note .head-name,\n .delivery-note .product-name {\n width: 50%;\n }\n .delivery-note .head-quantity,\n .delivery-note .product-quantity {\n width: 50%;\n }\n .delivery-note .order-items tbody tr:last-child {\n border-bottom: 0.24em solid black;\n }\n </style>\n <?php\n}", "title": "" }, { "docid": "21b9bc9cf95a357fd97b2d25182448d8", "score": "0.50787634", "text": "public function hookProductFooter($params)\n {\n $controller_name = Tools::getValue('controller');\n if ($controller_name == 'product') {\n $paramProd = null;\n\n if (version_compare(_PS_VERSION_, '1.7', '>=')) {\n $paramProd = $params['product'];\n } else {\n $paramProd = (array) $params['product'];\n }\n\n // Add product view\n\n $category = new Category((int) $paramProd['id_category_default'], (int) $this->context->language->id);\n $paramProd['category_name'] = $category->name;\n\n $ga_product = $this->wrapProduct($paramProd, null, 0, true);\n $js = 'NMBG.addProductDetailView(' . Tools::jsonEncode($ga_product) . ');';\n\n if (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST']) > 0) {\n if ($this->context->cookie->prodclick != $ga_product['name']) {\n $this->context->cookie->prodclick = $ga_product['name'];\n\n $js .= $this->addProductClickByHttpReferal([$ga_product]);\n }\n }\n\n $this->js_state = 1;\n\n return $this->_runJs($js);\n }\n }", "title": "" }, { "docid": "87645d23f3bbea7a688d35422141f184", "score": "0.5070933", "text": "public function swc_homepage_best_sellers_products_description() {\n\t\t$description = get_theme_mod( 'swc_homepage_best_sellers_products_description', '' );\n\n\t\tif ( '' !== $description ) {\n\t\t\techo '<div class=\"swc-section-description\">' . wpautop( wptexturize( $description ) ) . '</div>';\n\t\t}\n\t}", "title": "" }, { "docid": "ae116c2636e1a0e596d43763ad8c3eeb", "score": "0.5063379", "text": "public function upgradebanner()\n {\n if (get_option('is_on_banner_buy') == '0') {\n return new Tempcode();\n }\n\n $title = get_screen_title('TITLE_BANNER_UPGRADE');\n\n breadcrumb_set_parents(array(\n array('_SELF:_SELF:browse', do_lang_tempcode('POINTSTORE')),\n array('_SELF:_SELF:bannerinfo:banners', do_lang_tempcode('BANNERS')),\n ));\n\n $impcost = intval(get_option('banner_imp'));\n $hitcost = intval(get_option('banner_hit'));\n\n $this->handle_has_no_banner();\n\n // Screen\n require_code('form_templates');\n $post_url = build_url(array('page' => '_SELF', 'type' => '_upgradebanner', 'id' => 'banners'), '_SELF');\n $text = paragraph(do_lang_tempcode('IMPORTANCE_BUY', escape_html(integer_format($hitcost)), escape_html(integer_format($impcost))));\n $fields = form_input_line(do_lang_tempcode('IMPORTANCE'), do_lang_tempcode('IMPORTANCE_UPGRADE_DESCRIPTION'), 'importance', '1', true);\n $fields->attach(form_input_line(do_lang_tempcode('EXTRA_HITS'), do_lang_tempcode('EXTRA_HITS_DESCRIPTION'), 'hits', '50', true));\n return do_template('FORM_SCREEN', array('_GUID' => '550b0368236dcf58726a1895162ad6c2', 'SUBMIT_ICON' => 'buttons__proceed', 'SUBMIT_NAME' => do_lang_tempcode('UPGRADE'), 'HIDDEN' => '', 'URL' => $post_url, 'TITLE' => $title, 'FIELDS' => $fields, 'TEXT' => $text));\n }", "title": "" }, { "docid": "48a0a8cec01b53b4fab3f595264f1413", "score": "0.506115", "text": "public function hookProductFooter($params)\n {\n\n $cache_id = 'crossselling|productfooter|'.(int)$params['product']->id;\n if (!$this->isCached('improved_crossselling.tpl', $this->getCacheId($cache_id))) {\n $final_products_list = $this->getOrderProducts(array($params['product']->id));\n if (count($final_products_list) > 0) {\n $this->smarty->assign(\n array(\n 'orderProducts' => $final_products_list,\n 'middlePosition_crossselling' => round(count($final_products_list) / 2, 0),\n 'crossDisplayPrice' => Configuration::get('IMPROVED_XSELLING_DISPLAY_PRICE')\n )\n );\n }\n }\n $strOut = $this->display(__FILE__, 'improved_crossselling.tpl', $this->getCacheId($cache_id));\n return $strOut;\n }", "title": "" }, { "docid": "0417787449a465ee840add308fa5f25a", "score": "0.5059675", "text": "public function endPage() {}", "title": "" }, { "docid": "142119f3a286ccd710721b16388cc4e2", "score": "0.50542027", "text": "function wpsc_also_bought($product_id) {\n global $wpdb;\n $siteurl = get_option('siteurl');\n \n if(get_option('wpsc_also_bought') == 0) {\n //returns nothing if this is off\n return '';\n } \n \n // to be made customiseable in a future release\n $also_bought_limit = 3;\n $element_widths = 96; \n $image_display_height = 96; \n $image_display_width = 96; \n \n $also_bought = $wpdb->get_results(\"SELECT `\".$wpdb->prefix.\"product_list`.* FROM `\".$wpdb->prefix.\"also_bought_product`, `\".$wpdb->prefix.\"product_list` WHERE `selected_product`='\".$product_id.\"' AND `\".$wpdb->prefix.\"also_bought_product`.`associated_product` = `\".$wpdb->prefix.\"product_list`.`id` AND `\".$wpdb->prefix.\"product_list`.`active` IN('1') ORDER BY `wp_also_bought_product`.`quantity` DESC LIMIT $also_bought_limit\",ARRAY_A);\n if(count($also_bought) > 0) {\n $output = \"<p class='wpsc_also_bought_header'>\".TXT_WPSC_ALSO_BOUGHT.\"</p>\";\n $output .= \"<div class='wpsc_also_bought'>\";\n foreach((array)$also_bought as $also_bought_data) {\n $output .= \"<p class='wpsc_also_bought' style='width: \".$element_widths.\"px;'>\";\n if(get_option('show_thumbnails') == 1) {\n if($also_bought_data['image'] !=null) {\n $image_size = @getimagesize(WPSC_THUMBNAIL_DIR.$also_bought_data['image']);\n $largest_dimension = ($image_size[1] >= $image_size[0]) ? $image_size[1] : $image_size[0];\n $size_multiplier = ($image_display_height / $largest_dimension);\n // to only make images smaller, scaling up is ugly, also, if one is scaled, so must the other be scaled\n if(($image_size[0] >= $image_display_width) || ($image_size[1] >= $image_display_height)) {\n $resized_width = $image_size[0]*$size_multiplier;\n $resized_height =$image_size[1]*$size_multiplier;\n\t\t\t\t\t} else {\n $resized_width = $image_size[0];\n $resized_height =$image_size[1];\n\t\t\t\t\t} \n $margin_top = floor((96 - $resized_height) / 2);\n $margin_top = 0;\n \n $image_link = WPSC_IMAGE_URL.$also_bought_data['image']; \n if($also_bought_data['thumbnail_image'] != null) {\n $image_file_name = $also_bought_data['thumbnail_image'];\n\t\t\t\t\t} else {\n $image_file_name = $also_bought_data['image'];\n\t\t\t\t\t} \n \n $output .= \"<a href='\".wpsc_product_url($also_bought_data['id']).\"' class='preview_link' rel='\".str_replace(\" \", \"_\",$also_bought_data['name']).\"'>\"; \n $image_url = \"index.php?productid=\".$also_bought_data['id'].\"&amp;thumbnail=true&amp;width=\".$resized_width.\"&amp;height=\".$resized_height.\"\"; \n $output .= \"<img src='$siteurl/$image_url' id='product_image_\".$also_bought_data['id'].\"' class='product_image' style='margin-top: \".$margin_top.\"px'/>\";\n $output .= \"</a>\";\n\t\t\t\t} else {\n if(get_option('product_image_width') != '') {\n $output .= \"<img src='\".WPSC_URL.\"/no-image-uploaded.gif' title='\".$also_bought_data['name'].\"' alt='\".$also_bought_data['name'].\"' width='$image_display_height' height='$image_display_height' id='product_image_\".$also_bought_data['id'].\"' class='product_image' />\";\n\t\t\t\t\t} else {\n $output .= \"<img src='\".WPSC_URL.\"/no-image-uploaded.gif' title='\".$also_bought_data['name'].\"' alt='\".$product['name'].\"' id='product_image_\".$also_bought_data['id'].\"' class='product_image' />\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n $output .= \"<a class='wpsc_product_name' href='\".wpsc_product_url($also_bought_data['id']).\"'>\".$also_bought_data['name'].\"</a>\";\n //$output .= \"<a href='\".wpsc_product_url($also_bought_data['id']).\"'>\".$also_bought_data['name'].\"</a>\";\n $output .= \"</p>\";\n\t\t}\n $output .= \"</div>\";\n $output .= \"<br clear='all' />\";\n\t}\n return $output;\n}", "title": "" }, { "docid": "a73394dda09daff3eafe438973ae2ea7", "score": "0.5050767", "text": "protected function calculatePrices()\n {\n }", "title": "" }, { "docid": "264ed383632e511fde3dd35c0cc44a8b", "score": "0.5029211", "text": "function farmhouse_do_top_banner() {\n\n if ( get_theme_mod( 'farmhouse-top-banner-visibility', true ) ) {\n\n $button = sprintf( '<button id=\"farmhouse-top-banner-close\"><span class=\"dashicons dashicons-no-alt\"></span><span class=\"screen-reader-text\">%s</span></button>', __( 'Close Top Banner', 'farmhouse-theme' ) );\n printf(\n '<div class=\"farmhouse-top-banner\"><div class=\"farmhouse-top-banner-inner\">%s</div>%s</div>',\n get_theme_mod( 'farmhouse-top-banner-text', farmhouse_get_default_top_banner_text() ),\n $button\n );\n\n }\n\n}", "title": "" }, { "docid": "c28af2639a4c8daac98311389a7b92a5", "score": "0.50277567", "text": "function ycb_add_discount_badge($content, $post, $product){\r\n global $ycb_using_flatsome;\r\n\r\n $ycb_settings = ycb_get_settings();\r\n\r\n //var_dump(get_class_methods($product));\r\n $base_price = $product->get_regular_price();\r\n $discount_price = $product->get_sale_price();\r\n\r\n if($product->is_type( 'variable' )){\r\n $variations = $product->get_available_variations();\r\n if(isset($variations[0])){\r\n $variation = $variations[0];\r\n $base_price = $variation[\"display_regular_price\"];\r\n $discount_price = $variation[\"display_price\"];\r\n }\r\n }\r\n\r\n if(class_exists(\"WC_Dynamic_Pricing\")){\r\n $discount_price = apply_filters(\"woocommerce_product_get_price\", $base_price, $product, false);\r\n }\r\n\r\n $percentage = round( ( ( floatval($base_price) - floatval($discount_price) ) / (floatval($base_price) > 0 ? floatval($base_price) : 1) ) * 100 );\r\n\r\n $sale_style = ycb_get_styles($ycb_settings, $percentage);\r\n $inner_content = \"-\" . $percentage . \"%\";\r\n $filtered_content = apply_filters('ycb_discount_badge_override_hook', $inner_content);\r\n $sale_tag = \"<span class='onsale ycb_on_sale yoohoo_badge \".ycb_get_badge_shape_class(false, $ycb_settings).\"' style='$sale_style'>\" . $filtered_content . \"</span>\";\r\n\r\n $force_remove_internal_tag = apply_filters('ycb_hide_internal_sale_tag', true, $ycb_settings);\r\n if(!$force_remove_internal_tag){\r\n $sale_tag = \"\";\r\n }\r\n\r\n $hide_sale_tag = isset($ycb_settings['ycb_hide_default_sale_tag']) && $ycb_settings['ycb_hide_default_sale_tag'] === \"true\" ? true : false;\r\n\r\n if($hide_sale_tag){\r\n $content = $sale_tag;\r\n } else {\r\n $content .= $sale_tag;\r\n }\r\n\r\n if($percentage > 0){\r\n if($hide_sale_tag){\r\n if($ycb_using_flatsome){\r\n ycb_custom_badge_hide_woo_sales_badge_on_page(true);\r\n $content .= $sale_tag;\r\n } else {\r\n $content = $sale_tag;\r\n }\r\n } else {\r\n $content .= $sale_tag;\r\n }\r\n }\r\n\r\n //$content = apply_filters(\"ycb_discount_badge_internal_filter\", $content, $product, $hide_sale_tag, $ycb_settings);\r\n\r\n return $content;\r\n}", "title": "" }, { "docid": "2aa260e028670d323f79acc310289eb6", "score": "0.5027711", "text": "function ProductsBody()\n\t{\tparent::ProductsBody();\n\t\techo $this->product->DownloadsList();\n\t}", "title": "" }, { "docid": "d5dcd02e026c55ec6d2efce7d85e9317", "score": "0.50263494", "text": "private function endItem()\n {\n if ($this->version == self::Turbo) {\n echo '</item>' . PHP_EOL;\n }\n }", "title": "" }, { "docid": "0087ed83e4928c60599e9da5da8361ee", "score": "0.5016667", "text": "private function endAuction() {\n $queryBuilder = $this->manager->getRepository(Grund::class)->createQueryBuilder('g');\n $entities = $queryBuilder\n ->andWhere('g.status in (:statuses)')\n ->setParameter('statuses', [GrundStatus::FREMTIDIG, GrundStatus::ANNONCERET])\n ->andWhere('g.auktionslutdato IS NOT NULL')\n ->andWhere('g.auktionslutdato < :now')\n ->setParameter('now', new \\DateTime(null, new \\DateTimeZone('UTC')))\n ->getQuery()->getResult();\n\n $this->write(sprintf('End auction; #entities: %d', count($entities)));\n foreach ($entities as $entity) {\n $this->write(\n sprintf(\n \"% 8d: %s\\t%s\",\n $entity->getId(),\n (string) $entity,\n $entity->getAuktionslutdato()->format(\\DateTime::ISO8601)\n )\n );\n $entity->setStatus(GrundStatus::AUKTION_SLUT);\n $this->manager->persist($entity);\n }\n $this->manager->flush();\n }", "title": "" }, { "docid": "27ffce742deb01c67036799ca83f9719", "score": "0.5015963", "text": "function sale_regular_price_html() {\n\t\t$price = '';\n\t\t\n\t\tif( $this->_apptivo_sale_price <= 0)\n\t\t{\n\t\t\t $price .= 'This product is not ready for sale';\n\t\t\t $price = apply_filters('apptivo_ecommerce_empty_price_html', $price, $this);\n\t\t\t return $price;\t\t\n\t\t}\n\t\t\tif ($this->_apptivo_sale_price) :\n\t\t\t\tif (isset($this->_apptivo_regular_price)) :\n\t\t\t\t if($this->_apptivo_regular_price == '' ) { $this->_apptivo_regular_price = '0.00'; } \t\t\t\t\n\t\t\t\t\t$price .= '<del>'.apptivo_ecommerce_price( $this->_apptivo_regular_price ).'</del> <ins>'.apptivo_ecommerce_price($this->_apptivo_sale_price).'</ins>';\n\t\t\t\t\t$price = apply_filters('apptivo_ecommerce_sale_price_html', $price, $this);\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\telse :\t\n\t\t\t\t $price .= apptivo_ecommerce_price($this->sale_price());\t\t\t\t\t\n\t\t\t\t\t$price = apply_filters('apptivo_ecommerce_price_html', $price, $this);\t\t\t\t\t\n\t\t\t\tendif;\n\t\t\telseif ($this->_apptivo_sale_price === '' ) :\n\t\t\t $price .= 'This product is not ready for sale';\n\t\t\t $price = apply_filters('apptivo_ecommerce_empty_price_html', $price, $this);\t\t\t\t\n\t\t\telseif ($this->_apptivo_sale_price === '0' ) :\t\t\t\n\t\t\t\t$price = __('Free!', 'apptivo_ecommerce'); \n\t\t\t\t$price = apply_filters('apptivo_ecommerce_free_price_html', $price, $this);\n\t\t\t\t\n\t\t\tendif;\n\t\n\t\t\n\t\treturn $price;\n\t}", "title": "" }, { "docid": "e3cde305c742ab309dcda52ce9fc6467", "score": "0.501401", "text": "function product_brag()\n\t{\n\t\t$storeid = $this->input->get('store_id', TRUE);\n\t\t$prodid = $this->input->get('product_id', TRUE);\n\t\t$userid = $this->session->userdata('id');\n\t\t$this->brag->brag_product($prodid, $userid);\n\t\t$this->brag->increment_product_brag_count($storeid, $prodid);\n\t\t$data = $this->brag->get_product_brag_count($storeid, $prodid);\n\t\techo ($data['0']->brag_counter);\n\t}", "title": "" }, { "docid": "037ffcd9d8b7696a221381a106b5a942", "score": "0.5013786", "text": "function ycb_custom_badge_shop_loop_opened(){\r\n if(class_exists(\"WC_Product_Factory\")){\r\n $_pf = new WC_Product_Factory();\r\n $product = $_pf->get_product(get_the_ID());\r\n\r\n $base_price = $product->get_regular_price();\r\n $discount_price = $product->get_sale_price();\r\n\r\n if($product->is_type( 'variable' )){\r\n $variations = $product->get_available_variations();\r\n if(isset($variations[0])){\r\n $variation = $variations[0];\r\n $base_price = $variation[\"display_regular_price\"];\r\n $discount_price = $variation[\"display_price\"];\r\n }\r\n }\r\n\r\n if(class_exists(\"WC_Dynamic_Pricing\")){\r\n $discount_price = apply_filters(\"woocommerce_product_get_price\", $base_price, $product, false);\r\n }\r\n\r\n $is_on_sale = true;\r\n if(!isset($discount_price) || floatval($base_price) === floatval($discount_price)){\r\n $is_on_sale = false;\r\n }\r\n\r\n $ycb_settings = ycb_get_settings();\r\n $hide_sale_tag = isset($ycb_settings['ycb_hide_default_sale_tag']) && $ycb_settings['ycb_hide_default_sale_tag'] === \"true\" ? true : false;\r\n\r\n $hide_sale_tag = $is_on_sale !== false ? $hide_sale_tag : false;\r\n\r\n $is_on_sale = apply_filters('ycb_hide_internal_sale_tag', $is_on_sale, $ycb_settings);\r\n\r\n $addition = apply_filters(\"ycb_discount_badge_internal_filter\", \"\", $product, $hide_sale_tag, $ycb_settings, $is_on_sale);\r\n\r\n echo $addition;\r\n }\r\n}", "title": "" }, { "docid": "fbb11728d67c18858f4a4a3dcf294bc8", "score": "0.50076914", "text": "protected function _getProductData() {\n\n\n $cat_id = Mage::getModel('catalog/layer')->getCurrentCategory()->getId();\n $category = Mage::getModel('catalog/category')->load($cat_id);\n $data['event'] = 'product';\n\n $finalPrice = $this->getFinalPriceDiscount();\n if($finalPrice):\n $google_tag_params = array();\n $google_tag_params['ecomm_prodid'] = $this->getProduct()->getSku();\n $google_tag_params['name'] = $this->getProduct()->getName();\n $google_tag_params['brand'] = $this->getProduct()->getBrand();\n $google_tag_params['ecomm_pagetype'] = 'product';\n $google_tag_params['ecomm_category'] = $category->getName();\n $google_tag_params['ecomm_totalvalue'] = (float)$this->formatNumber($finalPrice);\n \n $customer = Mage::getSingleton('customer/session');\n if ($customer->getCustomerId()){\n $google_tag_params['user_id'] = (string) $customer->getCustomerId(); \n }\n if($this->IsReturnedCustomer()){\n $google_tag_params['returnCustomer'] = 'true';\n }\n else {\n $google_tag_params['returnCustomer'] = 'false';\n }\n\n $data['google_tag_params'] = $google_tag_params;\n\n /* Facebook Conversion API Code */\n $custom_data = array(\n \"content_name\" => $this->getProduct()->getName(),\n \"content_ids\" => [$this->getProduct()->getSku()],\n \"content_category\" => $category->getName(),\n \"content_type\" => \"product\",\n \"value\" => (float)$this->formatNumber($finalPrice),\n \"currency\" => \"BRL\"\n );\n $this->createFacebookRequest(\"ViewContent\", [], [], $custom_data);\n /* End Facebook Conversion API Code */\n\n endif;\n\n return $data;\n }", "title": "" }, { "docid": "6ce34a7b84e56d5cdbce32417080adcd", "score": "0.49970254", "text": "function viewlisting_end($listing_rs)\n\t{\n\t\t//get the listing category\n\t\t$class_tpl = Library::loadLibrary('Template');\n\t\t$db = Library::loadDb();\n\t\t$category = $class_tpl->get_template_vars('section');\n\t\t$sql = 'SELECT ccnoprice FROM ' . PREFIX . 'categories WHERE id=' . (int)$category;\n\t\t$result = $db->query($sql);\n\t\t$row = $result->fetch();\n\t\tif ($row['ccnoprice'] == 'Y') \n\t\t{\n\t\t\t$class_tpl->assign('viewprice', 'N');\n\t\t}\n\t}", "title": "" }, { "docid": "3c2cb01f470843ef9bd9637e13359dd2", "score": "0.49941033", "text": "public static function banner() {?>\n \n <section class=\"container-fluid st-banner\" data-aos=\"fade-up\" data-aos-duration=\"800\">\n \t<div class=\"row container\">\n \t\t<div class=\"col-md-12\">\n \t\t\t<h3 class=\"hero-title-w text-center\">Nos adaptamos a ti</h3>\n \t\t\t<ul>\n \t\t\t\t<li><i class=\"far fa-clock\"></i> <span>Elige tu horario</span></li>\n \t\t\t\t<li><i class=\"far fa-heart\"></i><span>Tarifa plana</span></li>\n \t\t\t\t<li><i class=\"far fa-calendar-check\"></i><span>Empieza cuando\n \t\t\t\t\t\tquieras</span></li>\n \t\t\t</ul>\n \t\t\t<ul>\n \t\t\t\t<li><i class=\"fas fa-university\"></i> <span>Clases en la academia y\n \t\t\t\t\t\ten videoconferencia</span></li>\n \t\t\t\t<li><i class=\"fas fa-edit\"></i><span>Tutorías personalizadas con tu\n \t\t\t\t\t\tCoach de Idioma</span></li>\n \t\t\t</ul>\n \t\t</div>\n \t</div>\n </section>\n \n\t<?php }", "title": "" }, { "docid": "a448b24763e45a6365b7bf41a0918a04", "score": "0.49849948", "text": "public function woocommerce_order_review_end() {\n\t\t\techo '</div>';\n\t\t}", "title": "" }, { "docid": "22cbc7c80834792223985ae6edf06b87", "score": "0.49697453", "text": "public function index() {\n\t\tif (isset($this->request->post['payment_status']) && strtolower($this->request->post['payment_status']) == 'completed') {\n\t\t\t$this->data['success'] = $this->language->get('ms_success_product_published');\n\t\t}\n\n\t\t$seller_id = $this->customer->getId();\n\t\t$seller_group = $this->MsLoader->MsSellerGroup->getSellerGroupBySellerId($seller_id);\n\t\t$seller_group_id = isset($seller_group['seller_group']) ? $seller_group['seller_group'] : NULL;\n\n\t\t$total_products = $this->MsLoader->MsProduct->getTotalProducts(array(\n\t\t\t'seller_id' => $seller_id,\n\t\t\t'product_status' => array(MsProduct::STATUS_ACTIVE, MsProduct::STATUS_INACTIVE, MsProduct::STATUS_DISABLED, MsProduct::STATUS_UNPAID)\n\t\t));\n\n\t\t$slr_gr_settings = $this->MsLoader->MsSetting->getSellerGroupSettings(array('seller_group_id' => $seller_group_id));\n\t\tif(isset($slr_gr_settings['slr_gr_product_number_limit']) && $slr_gr_settings['slr_gr_product_number_limit'] !== '' && $total_products + 1 > (int)$slr_gr_settings['slr_gr_product_number_limit']) {\n\t\t\t$this->data['product_number_limit_exceeded'] = $this->language->get('ms_error_slr_gr_product_number_limit_exceeded');\n\t\t}\n\t\t\n\t\t// Links\n\t\t$this->data['link_back'] = $this->url->link('account/account', '', 'SSL');\n\t\t$this->data['link_create_product'] = $this->url->link('seller/account-product/create', '', 'SSL');\n\n\t\t// Title and friends\n\t\t$this->document->setTitle($this->language->get('ms_account_products_heading'));\t\t\n\t\t$this->data['breadcrumbs'] = $this->MsLoader->MsHelper->setBreadcrumbs(array(\n\t\t\tarray(\n\t\t\t\t'text' => $this->language->get('text_account'),\n\t\t\t\t'href' => $this->url->link('account/account', '', 'SSL'),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'text' => $this->language->get('ms_account_dashboard_breadcrumbs'),\n\t\t\t\t'href' => $this->url->link('seller/account-dashboard', '', 'SSL'),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'text' => $this->language->get('ms_account_products_breadcrumbs'),\n\t\t\t\t'href' => $this->url->link('seller/account-product', '', 'SSL'),\n\t\t\t)\n\t\t));\n\n\t\tlist($template, $children) = $this->MsLoader->MsHelper->loadTemplate('account-product');\n\t\t$this->response->setOutput($this->load->view($template, array_merge($this->data, $children)));\n\t}", "title": "" }, { "docid": "532eb07107a4837fd3a067557a11e4f4", "score": "0.4958261", "text": "function theme_nt_landium_section_pricing($atts){\r\n\textract(shortcode_atts(array(\r\n\t\t'section_id'\t\t=> '',\r\n\t\t'heading_display'\t=> 'show',\r\n\t\t'section_heading'\t=> '',\r\n\t\t'section_desc'\t\t=> '',\r\n\t\t'sectionbgcss'\t\t=> '',\r\n\t\t//post options\r\n\t\t'priceanimation'\t\t=> '',\r\n\t\t'pack_style'\t\t=> '',\r\n\t\t'orderby' \t=> 'date',\r\n\t\t'order' \t=> 'DESC',\r\n\t\t'post_number' \t=> '4',\r\n\t\t'price_category' \t=> 'all',\r\n\t\t'pricelink' \t\t=> '',\r\n\t\t//custom style\r\n\t\t\"customstyle\"\t\t=> '',\r\n\t\t\"currentitem\"\t\t=> '',\r\n\t\t\"animation\"\t\t\t=> '',\r\n\t\t\"size\"\t\t\t\t=> '',\r\n\t\t\"lineh\"\t\t\t\t=> '',\r\n\t\t\"weight\"\t\t\t=> '',\r\n\t\t\"color\"\t\t\t\t=> '',\r\n\t\t\"position\"\t\t\t=> '',\r\n\t\t\"bgcolor\"\t\t\t=> '',\r\n\t\t\"padtop\"\t\t\t=> '',\r\n\t\t\"padright\"\t\t\t=> '',\r\n\t\t\"padbottom\"\t\t\t=> '',\r\n\t\t\"padleft\"\t\t\t=> '',\r\n\t\t\"brdtop\"\t\t\t=> '',\r\n\t\t\"brdright\"\t\t\t=> '',\r\n\t\t\"brdbottom\"\t\t\t=> '',\r\n\t\t\"brdleft\"\t\t\t=> '',\r\n\t\t\"borderstyl\"\t\t=> '',\r\n\t\t\"bordercolor\"\t\t=> '',\r\n\t\t\"borderradius\"\t\t=> '',\r\n\t\t), $atts));\r\n\r\n\t\t$custom_style = (array) vc_param_group_parse_atts($customstyle);\r\n\t\tforeach ( $custom_style as $styl ) {\r\n\t\t\tif ( !empty( $styl ) ){\r\n\t\t\t\t$currentitem= ( !empty( $styl['currentitem'] ) ) ? $styl['currentitem'] : '';\r\n\t\t\t\t$size \t\t= ( !empty( $styl['size'] ) ) ? $styl['size'] : '';\r\n\t\t\t\t$weight \t= ( !empty( $styl['weight'] ) ) ? $styl['weight'] : '';\r\n\t\t\t\t$lineh \t\t= ( !empty( $styl['lineh'] ) ) ? $styl['lineh'] : '';\r\n\t\t\t\t$color \t\t= ( !empty( $styl['color'] ) ) ? $styl['color'] : '';\r\n\t\t\t\t$position \t= ( !empty( $styl['position'] ) ) ? $styl['position'] : '';\r\n\t\t\t\t$fstyle \t= ( !empty( $styl['fstyle'] ) ) ? $styl['fstyle'] : '';\r\n\t\t\t\t$bgcolor \t= ( !empty( $styl['bgcolor'] ) ) ? $styl['bgcolor'] : '';\r\n\t\t\t\t$padtop \t= ( !empty( $styl['padtop'] ) ) ? ' padding-top:'.$styl['padtop'].';' : '';\r\n\t\t\t\t$padright \t= ( !empty( $styl['padright'] ) ) ? ' padding-right:'.$styl['padright'].';' : '';\r\n\t\t\t\t$padbottom \t= ( !empty( $styl['padbottom'] ) ) ? ' padding-bottom:'.$styl['padbottom'].';' : '';\r\n\t\t\t\t$padleft \t= ( !empty( $styl['padleft'] ) ) ? ' padding-left:'.$styl['padleft'].';' : '';\r\n\t\t\t\t$padding \t= ( $padtop || $padright || $padbottom || $padleft ) ? $padtop.$padright.$padbottom.$padleft : '';\r\n\t\t\t\t$brdtop \t= ( !empty( $styl['brdtop'] ) ) ? ' border-top:'.$styl['brdtop'].';' : '';\r\n\t\t\t\t$brdright \t= ( !empty( $styl['brdright'] ) ) ? ' border-right:'.$styl['brdright'].';' : '';\r\n\t\t\t\t$brdbottom \t= ( !empty( $styl['brdbottom'] ) ) ? ' border-bottom:'.$styl['brdbottom'].';' : '';\r\n\t\t\t\t$brdleft \t= ( !empty( $styl['brdleft'] ) ) ? ' border-left:'.$styl['brdleft'].';' : '';\r\n\t\t\t\t$border \t= ( $brdtop || $brdright || $brdbottom || $brdleft ) ? $brdtop.$brdright.$brdbottom.$brdleft : '';\r\n\t\t\t\t$borderstyl = ( !empty( $styl['borderstyl'] ) ) ? $styl['borderstyl'] : '';\r\n\t\t\t\t$bordercolor= ( !empty( $styl['bordercolor'] ) ) ? $styl['bordercolor'] : '';\r\n\t\t\t\t$borderradius= ( !empty( $styl['borderradius'] ) ) ? $styl['borderradius'] : '';\r\n\r\n\t\t\t\tif ( $currentitem == '1' ){\r\n\t\t\t\t\t$current1 = nt_landium_customstyle( $size, $lineh, $weight, $color, $position, $fstyle, $bgcolor, $padding, $border, $borderstyl, $bordercolor, $borderradius );\r\n\t\t\t\t\t$animation1 = nt_landium_animation( $styl['animation']);\r\n\t\t\t\t}elseif ( $currentitem == '2' ){\r\n\t\t\t\t\t$current2 = nt_landium_customstyle( $size, $lineh, $weight, $color, $position, $fstyle, $bgcolor, $padding, $border, $borderstyl, $bordercolor, $borderradius );\r\n\t\t\t\t\t$animation2 = nt_landium_animation( $styl['animation']);\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$current1 = $current2 = $animation1 = $animation2 = '';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tglobal $post;\r\n\t\t$args = array( 'post_type' => 'price',\r\n\t\t\t'posts_per_page' => $post_number,\r\n\t\t\t'order' \t\t => $order,\r\n\t\t\t'orderby' \t\t => $orderby,\r\n\t\t\t'post_status' \t => 'publish'\r\n\t\t);\r\n\t\tif($price_category != 'all'){\r\n\t\t\t$str = $price_category;\r\n\t\t\t$arr = explode(',', $str);\r\n\t\t\t$args['tax_query'][] = array( 'taxonomy' => 'price_category', 'field' => 'slug', 'terms' => $arr );\r\n\t\t}\r\n\r\n\t$sectionbg_css = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $sectionbgcss, ' ' ), $atts );\r\n\t$id = ($section_id != '') ? 'id=\"'. esc_attr($section_id) . '\"' : '';\r\n $out = '';\r\n\r\n\t\t$out .= '<!-- start section -->';\r\n\t\t$out .= '<a '.$id.' class=\"ancor\"></a>';\r\n\t\t$out .= '<section class=\"section'.esc_attr( $sectionbg_css ).'\">';\r\n\t\t\t$out .= '<div class=\"container\">';\r\n\r\n\t\t\tif ( $heading_display != 'hide' ){\r\n\t\t\t\t$out .= '<div class=\"section-heading section-heading--center\">';\r\n\t\t\t\t\tif ( $section_heading !='' ) { $out .= '<h2 class=\"title h1\"'.$current1.'>'.landium_sanitize_data( $section_heading ).'</h2>'; }\r\n\r\n\t\t\t\t\tif ( $section_desc !='' ) { $out .= '<p class=\"sec-desc\"'.$current2.'>'.landium_sanitize_data( $section_desc ).'</p>'; }\r\n\t\t\t\t$out .= '</div>';\r\n\t\t\t}\r\n\r\n\t\t\t\t$packstyle = $pack_style ? $pack_style : '1';\r\n\t\t\t\t$out .= '<div class=\"pricing-table pricing-table--style-'.esc_attr( $packstyle ).'\">';\r\n\t\t\t\t\t$out .= '<div class=\"pricing__inner\">';\r\n\t\t\t\t\t\t$out .= '<div class=\"row\">';\r\n\r\n\t\t\t\t\t\t$nt_landium_price_query = new WP_Query($args);\r\n\t\t\t\t\t\tif( $nt_landium_price_query->have_posts() ) :\r\n\t\t\t\t\t\twhile ($nt_landium_price_query->have_posts()) : $nt_landium_price_query->the_post();\r\n\r\n\t\t\t\t\t\t\t$column_mobile\t= get_post_meta( get_the_ID(), 'nt_landium_column_mobile', true );\r\n\t\t\t\t\t\t\t$column_desk\t= get_post_meta( get_the_ID(), 'nt_landium_column_desk', true );\r\n\t\t\t\t\t\t\t$column_offset\t= get_post_meta( get_the_ID(), 'nt_landium_column_offset', true );\r\n\r\n\t\t\t\t\t\t\t$packcolor\t\t= get_post_meta( get_the_ID(), 'nt_landium_packcolor', true );\r\n\t\t\t\t\t\t\t$bestpack\t\t= get_post_meta( get_the_ID(), 'nt_landium_bestpack', true );\r\n\t\t\t\t\t\t\t$bestpacktag\t= get_post_meta( get_the_ID(), 'nt_landium_bestpacktag', true );\r\n\t\t\t\t\t\t\t$packname\t\t= get_post_meta( get_the_ID(), 'nt_landium_packname', true );\r\n\t\t\t\t\t\t\t$currency\t\t= get_post_meta( get_the_ID(), 'nt_landium_currency', true );\r\n\t\t\t\t\t\t\t$price\t\t\t= get_post_meta( get_the_ID(), 'nt_landium_price', true );\r\n\t\t\t\t\t\t\t$subprice\t\t= get_post_meta( get_the_ID(), 'nt_landium_subprice', true );\r\n\t\t\t\t\t\t\t$period\t\t\t= get_post_meta( get_the_ID(), 'nt_landium_period', true );\r\n //button\r\n $price_btnhref\t\t\t= get_post_meta( get_the_ID(), 'nt_landium_btn_url', true );\r\n $price_btntitle\t\t\t= get_post_meta( get_the_ID(), 'nt_landium_btn_text', true );\r\n $pricebtntarget\t\t\t= get_post_meta( get_the_ID(), 'nt_landium_btn_target', true );\r\n\r\n\t\t\t\t\t\t\t$tablefeatures\t= get_post_meta( get_the_ID(), 'nt_landium_features_list', true );\r\n\r\n\t\t\t\t\t\t\t$columnmobile = $column_mobile ? $column_mobile : 'col-sm-6';\r\n\t\t\t\t\t\t\t$columndesk = $column_desk ? $column_desk : 'col-md-3';\r\n\t\t\t\t\t\t\t$columnoffset = $column_offset ? $column_offset : '';\r\n\r\n\t\t\t\t\t\t\t$col_str = ''.esc_attr( $columnmobile ).' '.esc_attr( $columndesk ).' '.esc_attr( $columnoffset ).'';\r\n\t\t\t\t\t\t\t$coltotal = preg_replace('/\\s\\s+/', ' ', $col_str);\r\n\r\n\t\t\t\t\t\t\t$price_animation = nt_landium_animation( $priceanimation );\r\n\r\n\t\t\t\t\t\t\t$out .= '<!-- start item -->';\r\n\t\t\t\t\t\t\t$out .= '<div class=\"col-xs-12 '.$coltotal.'\">';\r\n\t\t\t\t\t\t\tif ( $packstyle =='1' ) { $pack_color = $packcolor ? $packcolor : 'price-item__blue'; } else{ $pack_color = '' ; }\r\n\t\t\t\t\t\t\t\t$out .= '<div class=\"price-item '.esc_attr( $pack_color ).' '.esc_attr( $bestpack ).' center-block'.$price_animation.'\">';\r\n\t\t\t\t\t\t\t\tif ( $bestpack =='price-item__active' ) {\r\n\t\t\t\t\t\t\t\t\t$out .= '<div class=\"price-item__label\">'.esc_html( $bestpacktag ).'</div>';\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t$out .= '<div class=\"price-item__price\" data-before=\"'.esc_attr( $currency ).'\">'.esc_html( $price ).'<sup>'.esc_html( $subprice ).'</sup><span>'.esc_html( $period ).'</span>\r\n\t\t\t\t\t\t\t\t\t\t\t</div>';\r\n\r\n\t\t\t\t\t\t\t\t\tif ( $packname !='' ) { $out .= '<h3 class=\"price-item__title\">'.esc_html( $packname ).'</h3>'; }\r\n\r\n\t\t\t\t\t\t\t\t\tif ( !empty($tablefeatures) ) {\r\n\t\t\t\t\t\t\t\t\t\t$out .= '<ul class=\"price-item__list\">';\r\n\t\t\t\t\t\t\t\t\t\tforeach ( $tablefeatures as $listitem ) {\r\n\t\t\t\t\t\t\t\t\t\t\t$out .= '<li>'.esc_html( $listitem ).'</li>';\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t$out .= '</ul>';\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\tif ( $price_btntitle !='' ) {\r\n\t\t\t\t\t\t\t\t\t\t$out .= '<a href=\"'.esc_attr( $price_btnhref ).'\" target=\"'.$pricebtntarget.'\" class=\"price-item__btn\">'.esc_html( $price_btntitle ).'</a>';\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t$out .= '<span class=\"price-item__bg\"></span>';\r\n\t\t\t\t\t\t\t\t$out .= '</div>';\r\n\t\t\t\t\t\t\t$out .= '</div>';\r\n\t\t\t\t\t\t\t$out .= '<!-- end item -->';\r\n\r\n\t\t\t\t\t\tendwhile;\r\n\t\t\t\t\t\tendif;\r\n\t\t\t\t\t\twp_reset_postdata();\r\n\r\n\t\t\t\t\t\t$out .= '</div>';\r\n\t\t\t\t\t$out .= '</div>';\r\n\t\t\t\t$out .= '</div>';\r\n\t\t\t$out .= '</div>';\r\n\t\t$out .= '</section>';\r\n\t\t$out .= '<!-- end section -->';\r\n\treturn $out;\r\n}", "title": "" }, { "docid": "18b93547e8661ad77f4cf8e8130df0ba", "score": "0.49440834", "text": "function lb_get_seo_title($product) {\n //$price = lb_format_price($product['finalprice'], true, true);\n $price = round((float)$product['finalprice']/100, 0) . ':-';\n \n $seo_title = 'Köp ' . $product['name'] . (isset($product['merchant'])?' från ' . $product['merchant']:'') . ' för ' . $price . (true == (bool)$product['onsale']?' (' . $product['salediscount'] . '% rabatt!)':'');\n \n error_log('lb_get_seo_title - product[finalprice]=' . $product['finalprice'] . ', price=' . $price . ', product: ' . print_r($product, true));\n\n return wpts_spin($seo_title);\n}", "title": "" }, { "docid": "db718b0ed1a0402372e0a38b244bce0b", "score": "0.49418703", "text": "public function sell()\n {\n }", "title": "" }, { "docid": "29e2526eab34208bf25d421cb7b87f9b", "score": "0.49418613", "text": "function getPro(){\n\nglobal $db;\n\n$get_products = \"select * from products order by 1 DESC LIMIT 0,3\";\n\n$run_products = mysqli_query($db,$get_products);\n\nwhile($row_products=mysqli_fetch_array($run_products)){\n\n$pro_id = $row_products['product_id'];\n\n$pro_title = $row_products['product_title'];\n\n$pro_price = $row_products['product_price'];\n\n$pro_img1 = $row_products['product_img1'];\n\n$pro_label = $row_products['product_label'];\n\n$manufacturer_id = $row_products['manufacturer_id'];\n\n$get_manufacturer = \"select * from manufacturers where manufacturer_id='$manufacturer_id'\";\n\n$run_manufacturer = mysqli_query($db,$get_manufacturer);\n\n$row_manufacturer = mysqli_fetch_array($run_manufacturer);\n\n$pro_psp_price = $row_products['product_psp_price'];\n\n$pro_url = $row_products['product_url'];\n\nif($pro_label == \"Sale\" or $pro_label == \"Gift\"){\n\n $product_price = \"<del> PHP$pro_price </del>\";\n \n $product_psp_price = \"| PHP$pro_psp_price\";\n \n }\n else{\n \n $product_psp_price = \"\";\n \n $product_price = \"PHP$pro_price\";\n \n }\n \n \n if($pro_label == \"\"){\n \n \n }\n else{\n \n $product_label = \"\n \n <a class='label sale' href='#' style='color:black;'>\n \n <div class='thelabel'>$pro_label</div>\n \n <div class='label-background'> </div>\n \n </a>\n \n \";\n \n }\n\nif(empty($product_label)){\n\n echo \"\n\n<div class='col-lg-6 col-sm-6 single' >\n\n<div class=' product-content height-constraint' >\n\n<div class = 'product-overlay'></div>\n<img src='admin_area/product_images/$pro_img1' class='img-responsive product-image' >\n\n<div class='product-details fadeIn-top'>\n\n<h3><a href='$pro_url' >$pro_title</a></h3>\n\n<p> $product_price $product_psp_price </p>\n</div>\n</a>\n\n\n\n\n</div>\n\n</div>\n\n\";\n }\n\nelse {\n\n\n echo \"\n\n<div class='col-lg-6 col-sm-6 single' >\n\n$product_label\n<div class=' product-content height-constraint' >\n\n<div class = 'product-overlay'></div>\n<img src='admin_area/product_images/$pro_img1' class='img-responsive product-image' >\n\n<div class='product-details fadeIn-top'>\n\n<h3><a href='$pro_url' >$pro_title</a></h3>\n\n<p> $product_price $product_psp_price </p>\n</div>\n</a>\n\n\n\n\n</div>\n\n</div>\n\n\";\n }\n\n}\n\n}", "title": "" }, { "docid": "448bdf29fe9da2a23b1fce5fc245dc40", "score": "0.49388093", "text": "public function deliveryPriceDhaka()\n {\n }", "title": "" }, { "docid": "4799d83935b029bb45cdc55240696243", "score": "0.49246803", "text": "public function end()\n\t{\n\n\t\tif (is_tax('cat_article') || is_post_type_archive('article') || is_singular('article')) {\n\t\t\t$this->bread_list[] = [\n\t\t\t\t'link' => get_permalink(pll_get_post(17)),\n\t\t\t\t'title' => get_the_title(pll_get_post(17))\n\t\t\t];\n\t\t}\n\n\t\tif (is_tax('cat_article')) {\n\t\t\t$category = get_queried_object();\n\t\t\tif ($category->parent != 0) {\n\t\t\t\t$this->bread_list[] = [\n\t\t\t\t\t'link' => get_term_link($category->parent),\n\t\t\t\t\t'title' => get_term($category->parent)->name\n\t\t\t\t];\n\t\t\t}\n\t\t\t$this->bread_list[] = [\n\t\t\t\t'link' => get_term_link($category->term_id),\n\t\t\t\t'title' => $category->name\n\t\t\t];\n\t\t}\n\n\t\tif (is_singular('article')) {\n\t\t\t$category = get_the_terms($post->ID, 'cat_article');\n\t\t\tif ($category) {\n\t\t\t\t$this->bread_list[] = [\n\t\t\t\t\t'link' => get_term_link($category[0]->term_id),\n\t\t\t\t\t'title' => $category[0]->name\n\t\t\t\t];\n\n\t\t\t\tif ($category[1]->parent != 0) {\n\t\t\t\t\t$this->bread_list[] = [\n\t\t\t\t\t\t'link' => get_term_link($category[1]->term_id),\n\t\t\t\t\t\t'title' => $category[1]->name\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->bread_list[] = [\n\t\t\t\t'link' => '',\n\t\t\t\t'title' => get_the_title()\n\t\t\t];\n\t\t}\n\n\t\t/* ===========================\n\n\t\t\t\t\tServices\n\n\t\t=========================== */\n\n\t\tif (is_post_type_archive('services') || is_singular('services')) {\n\t\t\t$this->bread_list[] = [\n\t\t\t\t'link' => get_permalink(pll_get_post(13)),\n\t\t\t\t'title' => get_the_title(pll_get_post(13))\n\t\t\t];\n\t\t}\n\t\tif (is_singular('services')) {\n\t\t\t$this->bread_list[] = [\n\t\t\t\t'link' => '',\n\t\t\t\t'title' => get_the_title()\n\t\t\t];\n\t\t}\n\t\t/* ===========================\n\n\t\t\t\t\tCases\n\n\t\t=========================== */\n\t\tif (is_tax('cat_cases') || is_post_type_archive('case') || is_singular('case')) {\n\t\t\t$this->bread_list[] = [\n\t\t\t\t'link' => get_permalink(pll_get_post(15)),\n\t\t\t\t'title' => get_the_title(pll_get_post(15))\n\t\t\t];\n\t\t}\n\t\tif (is_tax('cat_cases')) {\n\t\t\t$category = get_queried_object();\n\t\t\tif ($category->parent != 0) {\n\t\t\t\t$this->bread_list[] = [\n\t\t\t\t\t'link' => get_term_link($category->parent),\n\t\t\t\t\t'title' => get_term($category->parent)->name\n\t\t\t\t];\n\t\t\t}\n\t\t\t$this->bread_list[] = [\n\t\t\t\t'link' => get_term_link($category->term_id),\n\t\t\t\t'title' => $category->name\n\t\t\t];\n\t\t}\n\n\t\tif (is_singular('case')) {\n\t\t\t$category = get_the_terms($post->ID, 'cat_cases');\n\t\t\tif ($category) {\n\n\t\t\t\t// Если первая категория первого уровня\n\t\t\t\tif ($category[0]->parent == 0) {\n\t\t\t\t\t$this->bread_list[] = [\n\t\t\t\t\t\t'link' => get_term_link($category[0]->term_id),\n\t\t\t\t\t\t'title' => $category[0]->name\n\t\t\t\t\t];\n\t\t\t\t\tif ($category[1]->parent != 0) {\n\t\t\t\t\t\t$this->bread_list[] = [\n\t\t\t\t\t\t\t'link' => get_term_link($category[1]->term_id),\n\t\t\t\t\t\t\t'title' => $category[1]->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\tif ($category[0]->parent != 0) {\n\t\t\t\t\t$this->bread_list[] = [\n\t\t\t\t\t\t'link' => get_term_link($category[0]->parent),\n\t\t\t\t\t\t'title' => get_term($category[0]->parent, 'cat_cases')->name\n\t\t\t\t\t];\n\t\t\t\t\t$this->bread_list[] = [\n\t\t\t\t\t\t'link' => get_term_link($category[0]->term_id),\n\t\t\t\t\t\t'title' => $category[0]->name\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->bread_list[] = [\n\t\t\t\t'link' => '',\n\t\t\t\t'title' => get_the_title()\n\t\t\t];\n\t\t}\n\n\n\n\t}", "title": "" }, { "docid": "54dd6c6161618813691c473781f96e68", "score": "0.49200255", "text": "public function swc_homepage_featured_products_description() {\n\t\t$description = get_theme_mod( 'swc_homepage_featured_products_description', '' );\n\n\t\tif ( '' !== $description ) {\n\t\t\techo '<div class=\"swc-section-description\">' . wpautop( wptexturize( $description ) ) . '</div>';\n\t\t}\n\t}", "title": "" }, { "docid": "d5250f6d9360d725a6e16cc4279589af", "score": "0.4917041", "text": "function update_end()\n {\n }", "title": "" }, { "docid": "fdd8a0b13766133eac8cd56e82b0e0fe", "score": "0.48971424", "text": "function honeycomb_page_banner() {\n\t\tglobal $post;\n\n\t\tif ( !isset($post->ID) )\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t$post_id = $post->ID;\n\t\tif ( is_post_type_archive('property') )\n\t\t{\n\t\t\t$post_id = ph_get_page_id( 'search_results' );\n\t\t}\n\n\t\t$banner_type = get_post_meta( $post_id, '_banner_type', TRUE );\n\n\t\tswitch ( $banner_type )\n\t\t{\n\t\t\tcase \"map\":\n\t\t\t{\n\t\t\t\tif ( class_exists( 'PH_Map_Search' ) )\n\t\t\t\t{\n\t\t\t\t\t$query = '';\n\n\t\t\t\t\tif ( is_post_type_archive('property') )\n\t\t\t\t\t{\n\t\t\t\t\t\tglobal $wp_query;\n\n\t\t\t\t $query = $wp_query->request;\n\n\t\t\t\t // Remove limit\n\t\t\t\t $last_limit_pos = strrpos(strtolower($query), \"limit\");\n\t\t\t\t if ($last_limit_pos !== FALSE)\n\t\t\t\t {\n\t\t\t\t // We found a limit\n\t\t\t\t $query = substr($query, 0, $last_limit_pos - 1); // -1 because strrpos return starts at zero\n\t\t\t\t }\n\n\t\t\t\t $query = base64_encode($query);\n\t\t\t\t\t}\n\n\t\t\t\t\techo do_shortcode('[propertyhive_map_search scrollwheel=\"false\" query=\"' . $query . '\"]');\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\techo __( 'The Property Hive Map Search add on does not exist or is not activated', 'honeycomb' );\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"revslider\":\n\t\t\t{\n\t\t\t\tif ( class_exists( 'RevSlider' ) ) \n\t\t\t\t{\n\t\t\t\t\t$rev_slider = esc_html( get_post_meta( $post_id, '_banner_rev_slider', TRUE ) ); \n\t\t\t\t\tputRevSlider($rev_slider);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\techo __( 'Revolution Slider does not exist or is not activated', 'honeycomb' );\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"featured\":\n\t\t\t{\n\t\t\t\tif ( has_post_thumbnail($post_id) ) \n\t\t\t\t{\n\t\t\t\t\t$url = get_the_post_thumbnail_url($post_id, 'full');\n\t\t\t\t\techo '<div class=\"featured-image-page-banner\" style=\"background-image:url(\\'' . $url . '\\');\"></div>';\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "17861b312aa9b8d4645fdecddd6e7280", "score": "0.48953685", "text": "public function endRoundStart() {\n\t\t$this->displayTeamScoreWidget(false);\n\t}", "title": "" }, { "docid": "e7ba09e10f5fc6107b52f1734fa27d63", "score": "0.48949194", "text": "public function execute()\n\t{\n\t\tif (!$this->_formKeyValidator->validate($this->getRequest())) {\n\t\t\treturn $this->resultRedirectFactory->create()->setPath('*/*/');\n\t\t}\n\n\t\t$params = $this->getRequest()->getParams();\n $productId = $this->getRequest()->getParam('product');\n $currentProduct = $this->_objectManager->create('Magento\\Catalog\\Model\\Product')->load($productId); \n\n //check if not booking type product\n if ($currentProduct->getTypeId() != 'booking'){\n return parent::execute(); \n }\n\n //show booking product page\n if ($currentProduct->getTypeId() == 'booking' && !isset($params['booking-type'])) {\n return $this->goBack($currentProduct->getProductUrl());\n }\n\n\t\ttry {\n\n\t\t\tif (isset($params['qty'])) {\n\n\t\t\t\t$filter = new \\Zend_Filter_LocalizedToNormalized(\n\t\t\t\t\t['locale' => $this->_objectManager->get('Magento\\Framework\\Locale\\ResolverInterface')->getLocale()]\n\t\t\t\t);\n\t\t\t\t$params['qty'] = $filter->filter($params['qty']);\n\t\t\t}\n\n\t\t\t$product = $this->_initProduct();\n\t\t\t$related = $this->getRequest()->getParam('related_product');\n\t\t\t/**\n\t\t\t * Check product availability\n\t\t\t */\n\t\t\tif (!$product) {\n\t\t\t\t\n\t\t\t\treturn $this->goBack();\n\t\t\t}\n\t\t\t//var_dump($params['product']); die;\n\t\t\t/*start booking code */\n\t\t\t\n\t\t\t// if(isset($params['product']) && (int)$params['product'] > 0)\n\t\t\t// {\n\t\t\t// \t$productId = (int)$params['product'];\n\t\t\t// \t$this->cart->removeItem($productId);\n\t\t\t// }\n \n //$product->addCustomOption('additional_options', serialize($additionalOptions));\n\n\t\t\t$this->cart->addProduct($product, $params);\n\n\t\t\tif (!empty($related)) {\n\n\t\t\t\t$this->cart->addProductsByIds(explode(',', $related));\n\t\t\t}\n\n\t\t\t$this->cart->save();\n\n\n\t\t\t/**\n\t\t\t * @todo remove wishlist observer \\Magento\\Wishlist\\Observer\\AddToCart\n\t\t\t */\n\t\t\t$this->_eventManager->dispatch(\n\t\t\t\t'checkout_cart_add_product_complete',\n\t\t\t\t['product' => $product, 'request' => $this->getRequest(), 'response' => $this->getResponse()]\n\t\t\t);\n\n\t\t\tif (!$this->_checkoutSession->getNoCartRedirect(true)) {\n\t\t\t\tif (!$this->cart->getQuote()->getHasError()) {\n\t\t\t\t\t$message = __(\n\t\t\t\t\t\t'You added %1 to your shopping cart.',\n\t\t\t\t\t\t$product->getName()\n\t\t\t\t\t);\n\t\t\t\t\t$this->messageManager->addSuccessMessage($message);\n\t\t\t\t}\n\t\t\t\treturn $this->goBack(null, $product);\n\t\t\t}\n\t\t} catch (\\Magento\\Framework\\Exception\\LocalizedException $e) {\n\t\t\tif ($this->_checkoutSession->getUseNotice(true)) {\n\t\t\t\t$this->messageManager->addNotice(\n\t\t\t\t\t$this->_objectManager->get('Magento\\Framework\\Escaper')->escapeHtml($e->getMessage())\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\t$messages = array_unique(explode(\"\\n\", $e->getMessage()));\n\t\t\t\tforeach ($messages as $message) {\n\t\t\t\t\t$this->messageManager->addError(\n\t\t\t\t\t\t$this->_objectManager->get('Magento\\Framework\\Escaper')->escapeHtml($message)\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$url = $this->_checkoutSession->getRedirectUrl(true);\n\n\n\t\t\tif (!$url) {\n\t\t\t\t$cartUrl = $this->_objectManager->get('Magento\\Checkout\\Helper\\Cart')->getCartUrl();\n\t\t\t\t$url = $this->_redirect->getRedirectUrl($cartUrl);\n\t\t\t}\n\n\t\t\treturn $this->goBack($url);\n\n\t\t} catch (\\Exception $e) {\n\n\t\t\t$this->messageManager->addException($e, __('We can\\'t add this item to your shopping cart right now.'));\n\t\t\t$this->_objectManager->get('Psr\\Log\\LoggerInterface')->critical($e);\n\t\t\treturn $this->goBack();\n\t\t}\n\t}", "title": "" }, { "docid": "336488c2b80034124dd2fb0d37a8fb64", "score": "0.48926985", "text": "function showEnd()\n {\n if (Event::handle('StartCloseNoticeListItemElement', array($this))) {\n $this->out->elementEnd('li');\n Event::handle('EndCloseNoticeListItemElement', array($this));\n }\n }", "title": "" }, { "docid": "c3bd2d0767d849f4e96a0ed9302b054f", "score": "0.48864493", "text": "public function render() {\n $htmlContent = \"\";//Main Content\n \n //id und class Bezeichnungen der HTML Elementen\n $idContent = \"content\";\n $classProduct = \"product-detail\";\n $classImage = \"img-preview-detail\";\n $classDescription = \"description\";\n $classDescriptionText = \"description-text-detail\";\n $label1 = \"label1\";\n\n //local config\n $maxDescriptionCharlenght = 20000;\n $imagePath = \"/src/theme/images/\";\n $lang_pageTitel = i(\"Productview\");\n $button1 = (\"Buy\");\n \n //Product array\n $products = array();\n\n //TSCM TODO get from DB instead from Session..\n $products = $_SESSION['products'];\n\n\n //Array erstellen\n //TODO Array aus DB holen und verifizieren\n foreach($products as $book){\n\n// exit;\n if($_GET['id'] != $book['ISBN Number']){\n continue;\n }\n\n $paragraph = Utilities::buildParagraph($book);\n\n //too long text?\n if(strlen ( $book['Description'] ) > $maxDescriptionCharlenght)\n {\n $book['Description'] = substr ( $book['Description'] , 0 , $maxDescriptionCharlenght );\n $book['Description'] = $book['Description'] . \"...\";\n }else{\n //not too long, display it all\n $modDescription = $book['Description'];\n }\n \n/*\n * schwf5: Element in Warenkorb legen \n */\n\n//Auslesen der BuchID\nif(isset($_GET[\"id\"])) \n$currentID = $_GET[\"id\"];\nelse \n\t$currentID = 0; \n \n//Prüfen ob Seite mit added action geladen wurde (d.h. dass Buch in Korb gelegt wurde)\nif((isset($_GET[\"action\"])) && $_GET[\"action\"]==\"added\") {\n\n\t$amount = $_POST[\"amountSelection\"];\n\t//Seite wurde neu geladen. Prüfen, ob bereits ein Warenkorb existiert\n\t\n\t//Korb existiert schon. Items also in den Warenkorb hinzufügen\n\tif(isset($_COOKIE[\"shoppingCart\"])) {\n\t\t$cartArray = json_decode($_COOKIE[\"shoppingCart\"]);\n\t\tarray_push($cartArray, array (\"ID\"=>$currentID, \"amount\"=>$amount));\n\t\tsetcookie(\"shoppingCart\", json_encode($cartArray));\n\t}\n\t\n\t\n\t//neuen Korb machen mit erstem Item\n\telse { \n\t$cartArray = array\t(\n\t\tarray (\"ID\"=>$currentID, \"amount\"=>$amount));\n\tsetcookie(\"shoppingCart\", json_encode($cartArray));\n\t}\n\t\n\t//\n\t\n\t\n} \n\n\nelse \n\t;\n\n$htmlContent .= \"\n <div class=\\\"$classProduct\\\">\n <div class=\\\"$classImage\\\"><img src=\\\"\".$imagePath.$book['Picture'].\"\\\" />\n </div>\n <div class=\\\"$classDescription\\\">\n\n $paragraph\n\n <div>\n <a href='index.php?view=payment&id={$_GET[\"id\"]}'>\n <input class='buy_button' type='button' value='\".$button1.\"'></input>\n </a>\n \n <br>Amount: \n <form action='index.php?view=productdetail&id=$currentID&action=added' method='post'>\n <select name='amountSelection'>\n\t\t\t\t\n \t\t\t\t\t <option value='1'>1</option>\n \t\t\t\t\t <option value='2'>2</option>\n \t\t\t\t\t <option value='3'>3</option>\n \t\t\t\t\t <option value='4'>4</option>\n \t\t\t\t\t <option value='5'>5</option>\n \t\t\t\t\t \n\t\t\t\t\t</select>\n\t\t\t\t\t<input type='submit' name='submit' value='Add to Cart' />\n\t\t\t\t\t</form>\n \t\t\n \t\t\n \t\t\n </div>\n \n </div>\n </div>\";\n \n\n }\n\n\nif(isset($_GET[\"action\"])){\n\t\n\t$buyState= \"Produkt wurde in den Warenkorb gelegt.<br>\";\n\t\t\n} else $buyState=\"\";\n\t\n$htmlContentBody = \"\n\t\t<div id=\\\"content\\\">\n <span style='color:red'>$buyState</span>\n \n <h1>$lang_pageTitel</h1>\n $htmlContent\n </div>\n \n\";\n\n\nreturn $htmlContentBody;\n\n\n}", "title": "" }, { "docid": "f2e7eaffbd38e30452e575a0ffec8001", "score": "0.48842174", "text": "public function product_detail() {\n\t\t// double tracking as there could be multiple buy buttons on the page.\n\t\tif ( $this->has_tracked_detail ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->has_tracked_detail = true;\n\n\t\t// If page reload, then return\n\t\tif ( monsterinsights_is_page_reload() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$product_id = get_the_ID();\n\n\t\t// Output view product details EE\n\t\t$js = $this->enhanced_ecommerce_add_product( $product_id );\n\n\t\t// Output setAction for EC funnel\n\t\t$js .= $this->get_funnel_js( 'viewed_product' );\n\n\t\t// Add JS to output queue\n\t\t$this->enqueue_js( 'event', $js );\n\n\t\t// Send view product event\n\t\t$properties = array(\n\t\t\t'eventCategory' => 'Products',\n\t\t\t'eventLabel' => esc_js( get_the_title() ),\n\t\t\t'nonInteraction' => true,\n\t\t);\n\n\t\t$this->js_record_event( 'Viewed Product', $properties );\n\t}", "title": "" }, { "docid": "578efaf91c9aa70c15464b557b511344", "score": "0.48838478", "text": "public function catchCatalogProductLoadAfter($observer){\r\n\t\tif (Mage::getStoreConfig('catalog/price_rounding/enable_price_rounding') == 1\r\n\t\t&& Mage::getStoreConfig('catalog/price_rounding/rounding_machanism') == 2){\r\n\t\t\t$product = $observer->getEvent()->getProduct();\r\n\t\t\t$this->_adjustProductPrice($product);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "391792de0589e73208311aac351340a0", "score": "0.48802006", "text": "function atcf_theme_variable_pricing() {\n\tremove_action( 'edd_purchase_link_top', 'edd_purchase_variable_pricing' );\n\tadd_action( 'edd_purchase_link_top', 'atcf_purchase_variable_pricing' );\n}", "title": "" }, { "docid": "7f834e97fdd1a55973636c157c707093", "score": "0.4877808", "text": "static function add_bod_voting_end(): void {\r\n\t\tself::add_acf_inner_field(self::bods, self::bod_voting_end, [\r\n\t\t\t'label' => 'Voting period end',\r\n\t\t\t'type' => 'text',\r\n\t\t\t'instructions' => 'e.g. March 29 @ 6 p.m.',\r\n\t\t\t'required' => 1,\r\n\t\t\t'conditional_logic' => [\r\n\t\t\t\t[\r\n\t\t\t\t\t[\r\n\t\t\t\t\t\t'field' => self::qualify_field(self::bod_finished),\r\n\t\t\t\t\t\t'operator' => '!=',\r\n\t\t\t\t\t\t'value' => '1',\r\n\t\t\t\t\t],\r\n\t\t\t\t],\r\n\t\t\t],\r\n\t\t\t'wrapper' => [\r\n\t\t\t\t'width' => '',\r\n\t\t\t\t'class' => '',\r\n\t\t\t\t'id' => '',\r\n\t\t\t],\r\n\t\t]);\r\n\t}", "title": "" }, { "docid": "700431095bb8ca5afbddd40be31f6e24", "score": "0.48685768", "text": "function _endpage()\n\t\t{\n\t\t\t$this->state=1;\n\t\t}", "title": "" }, { "docid": "6561b221b030b3f3346a478d40f4f06b", "score": "0.48684782", "text": "function jet_woo_oceanwp_close_site_main_wrap() {\n\n\tif ( ! is_singular( array( jet_woo_builder_post_type()->slug(), 'product' ) ) ) {\n\t\treturn;\n\t}\n\n\techo '</div>';\n\n}", "title": "" }, { "docid": "87c091bd85f3b951ccc1fd285608dcfd", "score": "0.48683527", "text": "function end() {\n $this->messages[] = array('', $this->page->getLocale('install.end'));\n }", "title": "" }, { "docid": "4573d14482a2a2976e444b3e3a4b3c10", "score": "0.48672947", "text": "function cool_carousel_activation(){}", "title": "" }, { "docid": "f718470b1738aeb986c115e2d2efa5d5", "score": "0.4861521", "text": "function simpleshop_before_shop_loop_item() {\n echo '<div class=\"product-wrap\">';\n}", "title": "" }, { "docid": "801466c50b029773e5e2760bd0f971cc", "score": "0.48603746", "text": "public function sectionEnd() {}", "title": "" }, { "docid": "801466c50b029773e5e2760bd0f971cc", "score": "0.48603746", "text": "public function sectionEnd() {}", "title": "" }, { "docid": "516df9cf26094cfd116de1ea993d56b5", "score": "0.4859605", "text": "public function endPeriod() {\n $this->checkStopLoss();\n //Handle Trailing Stop\n $this->checkTrailingStop();\n $this->checkMarketIfTouched();\n //Check to see if take profit was hit\n $this->checkTakeProfit();\n }", "title": "" }, { "docid": "36b992afd29cad7702cbd631429811b6", "score": "0.4854291", "text": "public function end()\n {\n }", "title": "" }, { "docid": "8a157b57a755a2614cbd271a3b2822a9", "score": "0.48518375", "text": "public function swc_homepage_popular_products_description() {\n\t\t$description = get_theme_mod( 'swc_homepage_top_rated_products_description', '' );\n\n\t\tif ( '' !== $description ) {\n\t\t\techo '<div class=\"swc-section-description\">' . wpautop( wptexturize( $description ) ) . '</div>';\n\t\t}\n\t}", "title": "" }, { "docid": "958288ab1a0f5bb59738d26fbf590fd5", "score": "0.48493868", "text": "public function expiresAfterSale()\n {\n if ($this->isAfterSale())\n {\n /* @var $this Product */\n (new ChangeQualityCommand($this))->setQuality(0)->execute();\n }\n return null;\n }", "title": "" }, { "docid": "2e4e0f83c8eb97ec259baa0365868448", "score": "0.4847574", "text": "public function __newbanner()\n {\n if (get_option('is_on_banner_buy') == '0') {\n return new Tempcode();\n }\n\n $title = get_screen_title('ADD_BANNER');\n\n breadcrumb_set_parents(array(\n array('_SELF:_SELF:browse', do_lang_tempcode('POINTSTORE')),\n array('_SELF:_SELF:bannerinfo:banners', do_lang_tempcode('BANNERS')),\n array('_SELF:_SELF:newbanner:banners', do_lang_tempcode('ADD_BANNER')),\n ));\n\n\n breadcrumb_set_self(do_lang_tempcode('DONE'));\n\n $this->check_afford_banner();\n\n // So we don't need to call these big ugly names, again...\n $image_url = post_param_string('image_url');\n $site_url = post_param_string('site_url');\n $caption = post_param_string('caption');\n $direct_code = post_param_string('direct_code', '');\n $notes = post_param_string('notes', '');\n $name = post_param_string('name');\n\n $cost = intval(get_option('banner_setup'));\n\n $this->handle_has_banner_already();\n\n check_banner();\n add_banner($name, $image_url, '', $caption, $direct_code, intval(get_option('initial_banner_hits')), $site_url, 3, $notes, BANNER_PERMANENT, null, get_member(), 0);\n $GLOBALS['SITE_DB']->query_insert('sales', array('date_and_time' => time(), 'memberid' => get_member(), 'purchasetype' => 'banner', 'details' => $name, 'details2' => ''));\n require_code('points2');\n charge_member(get_member(), $cost, do_lang('ADD_BANNER'));\n\n // Send mail to staff\n require_code('submit');\n $edit_url = build_url(array('page' => 'cms_banners', 'type' => '_edit', 'name' => $name), get_module_zone('cms_banners'), null, false, false, true);\n if (addon_installed('unvalidated')) {\n send_validation_request('ADD_BANNER', 'banners', true, $name, $edit_url);\n }\n\n $stats_url = build_url(array('page' => 'banners', 'type' => 'browse'), get_module_zone('banners'));\n $text = do_lang_tempcode('PURCHASED_BANNER');\n\n $_banner_type_row = $GLOBALS['SITE_DB']->query_select('banner_types', array('t_image_width', 't_image_height'), array('id' => ''), '', 1);\n if (array_key_exists(0, $_banner_type_row)) {\n $banner_type_row = $_banner_type_row[0];\n } else {\n $banner_type_row = array('t_image_width' => 728, 't_image_height' => 90);\n }\n $banner_code = do_template('BANNER_SHOW_CODE', array('_GUID' => 'c96f0ce22de97782b1ab9bee3f43c0ba', 'TYPE' => '', 'NAME' => $name, 'WIDTH' => strval($banner_type_row['t_image_width']), 'HEIGHT' => strval($banner_type_row['t_image_height'])));\n\n return do_template('BANNER_ADDED_SCREEN', array('_GUID' => '68725923b19d3df71c72276ada826183', 'TITLE' => $title, 'TEXT' => $text, 'BANNER_CODE' => $banner_code, 'STATS_URL' => $stats_url, 'DO_NEXT' => ''));\n }", "title": "" }, { "docid": "3a70df62ce69faf72e6c5b337ab11d7a", "score": "0.48376176", "text": "function theme_nt_landium_section_pricingitem($atts){\r\n\textract(shortcode_atts(array(\r\n\t\t'post_name'\t\t\t=> '',\r\n\t\t'sectionbgcss'\t\t=> '',\r\n\t\t'pack_style'\t\t=> '',\r\n\r\n\t\t), $atts));\r\n\r\n\t\tglobal $post;\r\n\t\t$args = array(\r\n\t\t\t'post_type' \t\t=> 'price',\r\n\t\t\t'name'\t\t\t\t=> $post_name,\r\n\t\t\t'posts_per_page' \t=> 1,\r\n\t\t\t'post_status' \t \t=> 'publish'\r\n\t\t);\r\n\r\n\t$sectionbg_css = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $sectionbgcss, ' ' ), $atts );\r\n\r\n $out = '';\r\n\r\n\t\t$nt_landium_price_query = new WP_Query($args);\r\n\t\tif( $nt_landium_price_query->have_posts() ) :\r\n\t\twhile ($nt_landium_price_query->have_posts()) : $nt_landium_price_query->the_post();\r\n\r\n\t\t\t$packcolor\t\t= get_post_meta( get_the_ID(), 'nt_landium_packcolor', true );\r\n\t\t\t$bestpack\t\t= get_post_meta( get_the_ID(), 'nt_landium_bestpack', true );\r\n\t\t\t$bestpacktag\t= get_post_meta( get_the_ID(), 'nt_landium_bestpacktag', true );\r\n\t\t\t$packname\t\t= get_post_meta( get_the_ID(), 'nt_landium_packname', true );\r\n\t\t\t$currency\t\t= get_post_meta( get_the_ID(), 'nt_landium_currency', true );\r\n\t\t\t$price\t\t\t= get_post_meta( get_the_ID(), 'nt_landium_price', true );\r\n\t\t\t$subprice\t\t= get_post_meta( get_the_ID(), 'nt_landium_subprice', true );\r\n\t\t\t$period\t\t\t= get_post_meta( get_the_ID(), 'nt_landium_period', true );\r\n\r\n\t\t\t$tablefeatures\t= get_post_meta( get_the_ID(), 'nt_landium_features_list', true );\r\n\r\n //button\r\n $price_btnhref\t\t\t= get_post_meta( get_the_ID(), 'nt_landium_btn_url', true );\r\n $price_btntitle\t\t\t= get_post_meta( get_the_ID(), 'nt_landium_btn_text', true );\r\n $pricebtntarget\t\t\t= get_post_meta( get_the_ID(), 'nt_landium_btn_target', true );\r\n\r\n\t\t\t$out .= '<!-- start item -->';\r\n\t\t\t$packstyle = $pack_style ? $pack_style : '1';\r\n\t\t\t$out .= '<div class=\"pricing-table pricing-table--style-'.esc_attr( $packstyle ).''.esc_attr( $sectionbg_css ).'\">';\r\n\t\t\tif ( $packstyle =='1' ) { $pack_color = $packcolor ? $packcolor : 'price-item__blue'; } else{ $pack_color = '' ; }\r\n\t\t\t\t$out .= '<div class=\"price-item '.esc_attr( $pack_color ).' '.esc_attr( $bestpack ).' center-block\">';\r\n\t\t\t\tif ( $bestpack =='price-item__active' ) {\r\n\t\t\t\t\t$out .= '<div class=\"price-item__label\">'.esc_html( $bestpacktag ).'</div>';\r\n\t\t\t\t}\r\n\t\t\t\t\t$out .= '<div class=\"price-item__price\" data-before=\"'.esc_attr( $currency ).'\">'.esc_html( $price ).'<sup>'.esc_html( $subprice ).'</sup><span>'.esc_html( $period ).'</span>\r\n\t\t\t\t\t\t\t</div>';\r\n\r\n\t\t\t\t\tif ( $packname !='' ) { $out .= '<h3 class=\"price-item__title\">'.esc_html( $packname ).'</h3>'; }\r\n\r\n\t\t\t\t\tif ( !empty($tablefeatures) ) {\r\n\t\t\t\t\t\t$out .= '<ul class=\"price-item__list\">';\r\n\t\t\t\t\t\tforeach ( $tablefeatures as $listitem ) {\r\n\t\t\t\t\t\t\t$out .= '<li>'.esc_html( $listitem ).'</li>';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$out .= '</ul>';\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif ( $price_btntitle !='' ) {\r\n\t\t\t\t\t\t$out .= '<a href=\"'.esc_attr( $price_btnhref ).'\" target=\"'.$pricebtntarget.'\" class=\"price-item__btn\">'.esc_html( $price_btntitle ).'</a>';\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t$out .= '<span class=\"price-item__bg\"></span>';\r\n\t\t\t\t$out .= '</div>';\r\n\t\t\t$out .= '</div>';\r\n\t\t\t$out .= '<!-- end item -->';\r\n\r\n\t\tendwhile;\r\n\t\tendif;\r\n\t\twp_reset_postdata();\r\n\r\n\treturn $out;\r\n}", "title": "" }, { "docid": "e2a7f8f2216ccfe1bdef8605ca8e219c", "score": "0.4836373", "text": "function showprod(){\n\t\t$id = $_GET['id'];\n\t\t$conn = mysqli_connect('localhost', 'root', '',\"biddingsystemdb\");\n\t\t$query = mysqli_query($conn,\"SELECT * FROM products WHERE categoryid = '$id' AND status = 0\") or die (mysqli_error());\n\t\t$res = mysqli_num_rows($query);\n\t\tif($res == 0){\n\t\t\techo \"<div class='prod_box'>\";\n\t\t\t\techo \"<div class='top_prod_box'></div>\";\n\t\t\t\techo \"<div class='center_prod_box'>\";\n\t\t\t\t\techo \"<div class='product_title'>There is no available product on this category</div>\";\n\t\t\t\techo \"<div class='product_img'><img src='administrator/images/products/nocateg.jpg' width='94' height='92' alt='' border='0' /></div>\";\n\t\t\t\techo \"<div class='prod_price'></div>\";\n\t\t\techo \"</div>\";\n\t\t\techo \"<div class='bottom_prod_box'></div>\";\n\t\t\techo \"<div class='prod_details_tab'><a href='details.html' class='prod_details'>details</a> </div>\";\n\t\t\techo \"</div>\";\n\t\t}else{\n\t\twhile($row = mysqli_fetch_array($query))\n\t\t{\n\t\t\t$prodid = $row['productid'];\n\t\t\t$prodsbid = $row['startingbid'];\n\t\t\t//for displaying highest bid and no of bidders\n\t\t\t$query2 = mysqli_query($conn,\"SELECT * FROM bidreport WHERE productid = '$prodid'\") or die (mysqli_error());\n\t\t\t$noofbidders = MYSQLI_NUM_ROWS($query2);\n\t\t\t$highbid = $prodsbid;\n\t\t\twhile($highonthis = mysqli_fetch_array($query2)){\n\t\t\t\t$checkthis = $highonthis['bidamount'];\n\t\t\t\tif($checkthis > $highbid){\n\t\t\t\t\t$highbid = $checkthis;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$highestbidder = mysqli_query($conn,\"SELECT * FROM bidreport WHERE bidamount = '$highbid'\")or die(mysqli_error());\n\t\t\t$highestbiddera = mysqli_fetch_array($highestbidder);\n\t\t\t$hibidder = $highestbiddera['bidder'];\n\t\t\t$name = mysqli_query($conn,\"SELECT * FROM member WHERE memberid = '$hibidder'\")or die(mysqli_error());\n\t\t\t$namea = mysqli_fetch_array($name);\n\t\t\t$highname = $namea['userid'];\n\t\t\techo \"<div class='prod_box'>\";\n\t\t\t\techo \"<div class='top_prod_box'></div>\";\n\t\t\t\techo \"<div class='center_prod_box'>\";\n\t\t\t\t\techo \"<div class='product_title'><a href='details.php?id=\".$row['productid'].\"'>\".$row['prodname'].\"</a></div>\";\n\t\t\t\techo \"<div class='product_img'><a href='details.php?id=\".$row['productid'].\"'><img src='administrator/images/products/\".$row['prodimage'].\"' width='94' height='92' alt='' border='0' /></a></div>\";\n\t\t\t\techo \"<div class='prod_price'><span>Start Bid at: </span> <span class='price'>P \".$row['startingbid'].\"</span><br />\n\t\t\t\t<span>Highest Bidder: </span> <span class='price'>\".$highname.\"</span>\n\t\t\t\t</div>\";\n\t\t\techo \"</div>\";\n\t\t\techo \"<div class='bottom_prod_box'></div>\";\n\t\t\techo \"<div class='prod_details_tab'><a href='details.php?id=\".$row['productid'].\"' class='prod_details' title='header=[Click to Bid] body=[&nbsp;] fade=[on]'>Bid Now</a> </div>\";\n\t\t\techo \"</div>\";\n\t\t}\n\t }\n\t}", "title": "" }, { "docid": "845ad6972a522148c2e6ef77104dffa7", "score": "0.4822567", "text": "public function handlePodiumEnd() {\n\t\t$this->closeWidget(self::SETTING_TEAMSCORE_TITLE);\n\t}", "title": "" }, { "docid": "f6cee5f032f9f6fbfa884b833827e747", "score": "0.4816134", "text": "public function homepagebanner()\n\t {\n\t\t\n\t\t$objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance(); // Instance of object manager\n\t\t$resource = $objectManager->get('Magento\\Framework\\App\\ResourceConnection');\n\t\t$connection = $resource->getConnection();\n\t\t$sql = \"Select * FROM custom_productbanner where status=1 order by productbanner_id asc\";\n\t\t$result1 = $connection->fetchAll($sql);\t\n\n if(!empty($result1))\n\t\t{\t\t\t\n\t\t\t\n\t\tforeach ($result1 as $data) {\n\t\t$banner_id=$data['productbanner_id'];\n $image_name=$data['name'];\n\t\t$image_background=$data['background'];\n\t\t$image_caption=$data['imagecaption'];\n\t\t$result[]=array('homepagebanner'=>array(array('Id'=>$banner_id,'Image Name'=>$image_name,'img'=>'http://localhost/markateplace/pub/media/Gridpart4/background/image'.$image_background.'','Image Caption'=>$image_caption)));\t\n\t\t\t\n\t\t}\t\t\t\n\t\t}\t\n\t\telse\n\t\t{\n\t\t\t$result[]=array('status'=>array(\"code\"=>\"1\",\"message\"=>\"error\"));\n\t\t\t\n\t\t}\n\n\t\t\t\t\n\t return $result; \n\t\n\t }", "title": "" }, { "docid": "7ffed681e7629174499eeb8be266a5f7", "score": "0.48120868", "text": "public function end()\n\t{\n\t\t$this->set_process_state(false);\n\t}", "title": "" }, { "docid": "5f2d5404babfd9f1d9e2ec23c78706ad", "score": "0.4811056", "text": "public function onTemplateProductDetail(TemplateEvent $event)\r\n {\r\n /** @var Product $Product */\r\n $product = $event->getParameter('Product');\r\n\r\n\r\n if(!empty($product['target_sell']) && !empty($product['point_offer']) && !empty($product['days']) && $product['isFlag_special_offer'] == 0) {\r\n $numBuyers = $this->configRepository->getRemainBuyers($product);\r\n $dateCreate = $numBuyers['updateDate'];\r\n $getNumBuyers = $numBuyers['remainBuyer'];\r\n $specailOfferDay = $product['days'];\r\n $from_time = date_create(date('Y-m-d H:i:s'));\r\n $to_time = date_create($specailOfferDay->format('Y-m-d H:i:s'));\r\n $dateRemain = date_diff($from_time, $to_time)->format('%R%a days %H:%I:%S');\r\n $parameters = $event->getParameters();\r\n $parameters['ProductSpecialOfferRemainDays'] = $specailOfferDay->format('Y-m-d H:i:s');//date_diff($from_time, $to_time)->format('%a days %Hh %Imin %Sss');\r\n $parameters['ProductSpecialOfferRemainBuyer'] = $getNumBuyers;\r\n $event->setParameters($parameters);\r\n\r\n if($product['flagSpecialOffer'] != true) {\r\n if(strpos($dateRemain, '+') !== false) {\r\n if($product['target_sell'] > $getNumBuyers ) {\r\n if($product['target_sell'] == $getNumBuyers) {\r\n $this->configRepository->getUpdateCustomerPoint($numBuyers);\r\n }\r\n $event->addSnippet('@ProductSpecialOffer/default/ProductSpecialOffer.twig');\r\n }\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "380c95afb8ca9934d85ef90294249810", "score": "0.48088092", "text": "public function hookProductFooter($params)\n {\n\n $current_language_id = $this->context->language->id;\n\n $current_manufacturer_id = $params['product']->id_manufacturer;\n $current_manufacturer_name = $params['product']->manufacturer_name;\n\n $manufacturer = new ManufacturerCore($current_manufacturer_id);\n\n $current_manufacturer_description = $manufacturer->short_description;\n\n $current_manufacturer_image = $current_manufacturer_id.\".jpg\";\n\n $this->context->smarty->assign(\n array(\n 'current_manufacturer_id' => $current_manufacturer_id,\n 'current_manufacturer_name' => $current_manufacturer_name,\n 'current_manufacturer_description' => $current_manufacturer_description[$current_language_id],\n 'current_manufacturer_image' => $current_manufacturer_image,\n )\n );\n\n return $this->display(__FILE__, 'blockproductmanufacturer.tpl');\n }", "title": "" }, { "docid": "920f489cb180cde233d17855b88973aa", "score": "0.48078105", "text": "function section_text_nr_ad() {\n\t\t_e('<p>Become a part of the nrelate advertising network and earn some extra money on your blog. Click on the ADVERTISING tab of a participating nRelate product settings page.</p>','nrelate');\n}", "title": "" }, { "docid": "dd9684456e596f283851486695b46118", "score": "0.48074314", "text": "abstract protected function doEnd();", "title": "" }, { "docid": "fa70467face3ed703597a843d2763db0", "score": "0.4802894", "text": "private function prepareSimpleProduct() {\n if ($this->getSaverData()->isFirstPage()) {\n $this->setPrice();\n $this->setDownloadOptions();\n $this->setSKU();\n $this->setStockOptions();\n $this->setSoldIndividually();\n $this->setShippingOptions();\n $this->setPurchaseNote();\n $this->setEnableReviews();\n $this->setMenuOrder();\n }\n\n $this->setTags();\n $this->setAttributes();\n }", "title": "" }, { "docid": "a367a9c4bba4e040c3d1eb4b0e4789be", "score": "0.48022458", "text": "function es_set_sale_price( $price, $product ) {\n\t\n\t$exclude_skus = array( 'COEBRCE', 'COEPOSTER', 'PUB41' );\n\t$exclude_cats = array( 'specials', 'clearance' );\n\t$date_now = new DateTime();\n\t$start_dtm = new DateTime( '2016-10-03' );\n\t$end_dtm = new DateTime( '2016-10-11' );\n\t\n\t// exclude SKUs\n\tif ( in_array( $product->sku, $exclude_skus ) )\n\t\treturn $price;\n\t\n\t// exclude specials category\n\t$product_cat = wp_get_post_terms( $product->id, 'product_cat' );\n\t\n\tforeach ( $product_cat as $term ){\n\t\tif( in_array( $term->slug, $exclude_cats ) ){\n\t\t\treturn $price;\n\t\t}\n\t}\t\n\t\n\tif ( ! $product->is_virtual() AND ( $date_now >= $start_dtm AND $date_now <= $end_dtm ) ) {\n\t\t$member_exists = es_check_membership_held();\n\t\t$member_price = get_post_meta($product->id, 'member_price', true);\n\t\t$price = $product->get_regular_price() * ( 0.9 );\n\t\t\n\t\tif ( ! empty( $member_price ) AND $member_exists ) {\n\t\t\t$product->set_price( $member_price );\n\t\t\t$product->sale_price = $price;\n\t\t\t$price = $member_price;\t\t\n\t\t}\n\t\telse {\n\t\t\t$product->set_price( $price );\n\t\t\t$product->sale_price = $price;\t\n\t\t}\n\t\t\n\t}\n\t\n\treturn $price;\n}", "title": "" }, { "docid": "2ea9e0c7bba866cd83801874dd05e18b", "score": "0.47975373", "text": "function _call_banner( $options )\n\t{\n\n\t\t\t$button = false;\n\t\t\t$div_size = 'span12';\n\t\t\t\n\t\t\tif ( !empty ( $options['cab_button_text'] ) && !empty ( $options['cab_button_link']['url'] ) ) {\n\t\t\t\t$button = true;\n\t\t\t\t$div_size = 'span10';\n\t\t\t}\n\t\t\n\t\t\tif ( !empty ( $options['cab_main_title'] ) || !empty ( $options['cab_sec_title'] ) ) {\n\t\t\t\t\n\t\t\t\techo '<div class=\"'.$div_size.'\">';\n\t\t\t\n\t\t\t\tif ( !empty ( $options['cab_main_title'] ) ) {\n\t\t\t\t\techo '<h3 class=\"m_title\" style=\"margin-top:25px;\">'.$options['cab_main_title'].'</h3>';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ( !empty ( $options['cab_sec_title'] ) ) {\n\t\t\t\t\techo '<p>'.$options['cab_sec_title'].'</p>';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\techo '</div>';\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif ( $button ) {\n\t\t\t\techo '<div class=\"span2\">';\n\t\t\t\t\n\t\t\t\t\techo '<a href=\"'.$options['cab_button_link']['url'].'\" class=\"circlehover with-symbol\" data-size=\"\" data-position=\"top-left\" data-align=\"right\" target=\"'.$options['cab_button_link']['target'].'\">';\n\t\t\t\t\t\techo '<span class=\"text\">'.$options['cab_button_text'].'</span>';\n\t\t\t\t\t\tif ( !empty ( $options['cab_button_image'] ) ) {\n\t\t\t\t\t\t\techo '<span class=\"symbol\"><img src=\"'.$options['cab_button_image'].'\" alt=\"\"></span>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\techo '<span class=\"symbol\"><img src=\"'.MASTER_THEME_DIR.'/images/ok.png\" alt=\"\"></span>';\n\t\t\t\t\t\t}\n\t\t\t\t\techo '</a>';\n\t\t\t\techo '</div>';\n\t\t\t}\n\n\t}", "title": "" }, { "docid": "2ea9e0c7bba866cd83801874dd05e18b", "score": "0.47975373", "text": "function _call_banner( $options )\n\t{\n\n\t\t\t$button = false;\n\t\t\t$div_size = 'span12';\n\t\t\t\n\t\t\tif ( !empty ( $options['cab_button_text'] ) && !empty ( $options['cab_button_link']['url'] ) ) {\n\t\t\t\t$button = true;\n\t\t\t\t$div_size = 'span10';\n\t\t\t}\n\t\t\n\t\t\tif ( !empty ( $options['cab_main_title'] ) || !empty ( $options['cab_sec_title'] ) ) {\n\t\t\t\t\n\t\t\t\techo '<div class=\"'.$div_size.'\">';\n\t\t\t\n\t\t\t\tif ( !empty ( $options['cab_main_title'] ) ) {\n\t\t\t\t\techo '<h3 class=\"m_title\" style=\"margin-top:25px;\">'.$options['cab_main_title'].'</h3>';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ( !empty ( $options['cab_sec_title'] ) ) {\n\t\t\t\t\techo '<p>'.$options['cab_sec_title'].'</p>';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\techo '</div>';\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif ( $button ) {\n\t\t\t\techo '<div class=\"span2\">';\n\t\t\t\t\n\t\t\t\t\techo '<a href=\"'.$options['cab_button_link']['url'].'\" class=\"circlehover with-symbol\" data-size=\"\" data-position=\"top-left\" data-align=\"right\" target=\"'.$options['cab_button_link']['target'].'\">';\n\t\t\t\t\t\techo '<span class=\"text\">'.$options['cab_button_text'].'</span>';\n\t\t\t\t\t\tif ( !empty ( $options['cab_button_image'] ) ) {\n\t\t\t\t\t\t\techo '<span class=\"symbol\"><img src=\"'.$options['cab_button_image'].'\" alt=\"\"></span>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\techo '<span class=\"symbol\"><img src=\"'.MASTER_THEME_DIR.'/images/ok.png\" alt=\"\"></span>';\n\t\t\t\t\t\t}\n\t\t\t\t\techo '</a>';\n\t\t\t\techo '</div>';\n\t\t\t}\n\n\t}", "title": "" }, { "docid": "4e117f6730127d2d31d601241fe10a4c", "score": "0.47961313", "text": "public function hookDisplayProductButtons($params)\n {\n if (Configuration::get('PS_CATALOG_MODE') || false == Configuration::get('TPAY_BANNER')) {\n return;\n }\n if (!$this->isCached('paymentlogo.tpl', $this->getCacheId())) {\n $this->smarty->assign([\n 'banner_img' => 'https://tpay.com/img/banners/tpay-160x75.svg',\n ]);\n }\n\n return $this->display(__FILE__, 'paymentlogo.tpl', $this->getCacheId());\n }", "title": "" }, { "docid": "dbf31a8c93ec0e00b45bdbcefcd139c1", "score": "0.47938648", "text": "public function endPageJS() {}", "title": "" }, { "docid": "7f8714b686643cc747956c08dd36f337", "score": "0.47915637", "text": "function end()\n\t{\n\t\t$this->over = true;\n\t}", "title": "" }, { "docid": "fcbe4fe8b010e8b95fad5a6274f91881", "score": "0.47790295", "text": "public function cal_sell_price_by_price_break(){\n\t\t$price_break = $this->price_break_from_to;\n\t\tif(!isset($price_break['sell_price_plus']))\n\t\t\t$price_break['sell_price_plus'] = 0;\n\t\t//Dò trong bảng company_price_break trước\n\t\tif(isset($price_break['company_price_break']) && is_array($price_break['company_price_break']) && count($price_break['company_price_break'])>0){\n\n\t\t\t$price_break['company_price_break'] = $this->aasort($price_break['company_price_break'],'range_from');\n\n\t\t\tforeach($price_break['company_price_break'] as $keys=>$value){\n\t\t\t\tif($this->arr_product_items['adj_qty']<=(float)$value['range_to'] && $this->arr_product_items['adj_qty']>=(float)$value['range_from']){\n\t\t\t\t\t//neu thoa dieu kien\n\t\t\t\t\tif(!isset($value['unit_price']))\n\t\t\t\t\t\t$value['unit_price'] = 0;\n\t\t\t\t\t$this->arr_product_items['sell_price'] = (float)$value['unit_price'] + (float)$price_break['sell_price_plus'];\n\t\t\t\t\t$this->price_break_from_to = $price_break; //luu lai bang price_break da sort\n\t\t\t\t\treturn 'company_price_break';\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t}\n\n\n\t\t//Nếu không có trong company_price_break thì tìm trong product_price_break\n\t\tif(isset($price_break['product_price_break']) && is_array($price_break['product_price_break']) && count($price_break['product_price_break'])>0){\n\t\t\t$price_break['product_price_break'] = $this->aasort($price_break['product_price_break'],'range_from');\n\t\t\tforeach($price_break['product_price_break'] as $keys=>$value){\n\t\t\t\tif($this->arr_product_items['adj_qty']<=(float)$value['range_to'] && $this->arr_product_items['adj_qty']>=(float)$value['range_from']){\n\t\t\t\t\t//neu thoa dieu kien\n\t\t\t\t\tif(!isset($value['unit_price']))\n\t\t\t\t\t\t$value['unit_price'] = 0;\n\t\t\t\t\t$this->arr_product_items['sell_price'] = (float)$value['unit_price'] + (float)$price_break['sell_price_plus'];\n\t\t\t\t\t$this->discount(); //và tính discount\n\t\t\t\t\t$this->price_break_from_to = $price_break; //luu lai bang price_break da sort\n\t\t\t\t\treturn 'product_price_break';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\t//Ngược lại thì lấy sell_price trong price_break_from_to\n\t\tif(isset($price_break['sell_price'])){\n\t\t\t$this->arr_product_items['sell_price'] = (float)$price_break['sell_price'];\n\t\t\t$this->discount();//và tính discount\n\t\t\treturn 'sell_price';\n\t\t}\n\n\n\n\t}", "title": "" }, { "docid": "2a671775c6ad01a56ac6df0bc42f75fa", "score": "0.47778338", "text": "public function end();", "title": "" }, { "docid": "2a671775c6ad01a56ac6df0bc42f75fa", "score": "0.47778338", "text": "public function end();", "title": "" } ]
1a83af195f6139a940e03bef750da02d
Method: saveItem Params: $post Return: True/False
[ { "docid": "c1d4bb2a28b8e9f46d7da1f70abfed7b", "score": "0.66824317", "text": "public function saveItem($post, $image) {\n\n \n\n \n\n $id = $post['user_id'];\n\n $data_insert = array();\n\n if (is_array($post)) {\n\n foreach ($post as $k => $v) {\n\n if ($k != 'user_id' && $k != 'action') {\n\n $data_insert[$k] = $v;\n\n }\n\n }\n\n }\n\n \n\n if ($image <> '') {\n\n $data_insert['file_name'] = $image;\n\n unset($data_insert['old_file_name']);\n\n } else {\n\n if($data_insert['old_file_name'] != '')\n\n $data_insert['file_name'] = $data_insert['old_file_name'];\n\n else\n\n unset($data_insert['file_name']);\n\n unset($data_insert['old_file_name']);\n\n }\n\n\n\n if ($post['action'] == 'add') {//Save Data\n\n \n\n $data_insert['created_date'] = date('Y-m-d H:i:s');\n\n return $this->db->insert($this->tbl, $data_insert);\n\n } else {//Update Data\n\n $this->db->where('id', $id);\n\n return $this->db->update($this->tbl, $data_insert);\n\n }\n\n }", "title": "" } ]
[ { "docid": "ecb5bf2b46458d752f9919f14070e706", "score": "0.7604439", "text": "function saveItem() \n {\n $db = factory::getDatabase();\n $app = factory::getApplication();\n \n $id = $app->getVar('id', 0, 'post');\n \n if($id == 0) {\n \t$result = $db->insertRow($this->table, $_POST);\n } else {\n \t$result = $db->updateRow($this->table, $_POST, 'id', $id);\n }\n \n if($result) {\n \t$msg = \"El impost ha estat guardada\";\n \t$type = 'success';\n } else {\n \t$msg = \"El impost no s'ha pogut guardar\";\n \t$type = 'danger';\n }\n \n $app->redirect('index.php?view='.$this->view, $msg, $type);\n }", "title": "" }, { "docid": "8258332130642d9655541defe9b7ac52", "score": "0.72520375", "text": "public function saveItem(){\n\n\t\t$postData=$this->input->post();\n\n\t\t$providerObject=array(\n\t\t\"categoryid\"=>\"\",\n\t\t\"billerid\"=>$postData['billerId'],\n\t\t\"paymentitemname\"=>$postData['itemName'],\n\t\t\"amount\"=>$postData['amount'],\n\t\t\"isAmountFixed\"=>($postData['amount']>0)?1:0\n\t\t);\n\n\n\t\t$itemData=array(\n\t\t\t\"billerId\"=>$postData['billerId'],\n\t\t\t\"itemName\"=>$postData['itemName'],\n\t\t\t\"itemAmount\"=>$postData['amount'],\n\t\t\t\"itemCode\"=>$postData['itemCode'],\n\t\t\t\"providerObject\"=>json_encode($providerObject)\n\t\t);\n\n\t\t$save = $this->billers_mdl->saveItems($itemData);\n\n\t\tif($save){\n\n\t\t$msg= '<i class=\"icon icon-check text-main s-18\"></i> Item successfully created';\n\n\t\t}\n\n\t\telse{\n\n\t\t$msg= \"Operation failed, please try again\";\n\n\t\t}\n\t\tModules::run(\"templates/setFlash\",$msg);\n\n\t\tredirect('billers/createItem');\n\n\t}", "title": "" }, { "docid": "8b74baba4a7e6a2bbcec615c6a1d94f2", "score": "0.72443223", "text": "public function save()\n\t{\n\t\t// validate required fields\n\t\tif($this->name === null) return false;\n\t\tif($this->collection_id === null) return false;\n\n\t\t$db = Site::getDB(true);\n\n\t\tif($this->created_on === null) $this->created_on = Site::getUTCDate();\n\t\t$item = get_object_vars($this);\n\t\tunset($item['custom']);\n\n\t\t// update\n\t\tif($this->id !== null) $db->update('items', $item, 'id = ?', $this->id);\n\n\t\t// insert\n\t\telse $this->id = $db->insert('items', $item);\n\n\t\t// (re-)insert custom values\n\t\t$i = 0;\n\t\t$db->delete('items_properties', 'item_id = ?', array($this->id));\n\t\tforeach((array) $this->custom as $custom)\n\t\t{\n\t\t\t$property = array(\n\t\t\t\t'item_id' => $this->id,\n\t\t\t\t'name' => $custom['name'],\n\t\t\t\t'value' => $custom['value'],\n\t\t\t\t'sequence' => $i++\n\t\t\t);\n\t\t\t$db->insert('items_properties', $property);\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ec8ed517210fc2b421d4e8002fcde928", "score": "0.6989963", "text": "public function save() {\n\t\t$update_post_args = array();\n\t\tforeach ( $this->post_obj as $key => $value ) {\n\t\t\tif ( $value !== $this->post_obj_pristine->{$key} ) {\n\t\t\t\t$update_post_args[ $key ] = $value;\n\t\t\t}\n\t\t}\n\n\t\t$update_post_args['ID'] = $this->id;\n\t\t$saved = wp_update_post( $update_post_args );\n\n\t\tif ( $saved ) {\n\t\t\t$this->populate( $this->id );\n\t\t}\n\n\t\treturn (bool) $saved;\n\t}", "title": "" }, { "docid": "d7335eff88568d8ca73d9e6bb8e8666e", "score": "0.6970766", "text": "function save()\n\t{\n\t\t// Check for request forgeries\n\t\tJRequest::checkToken() or jexit( 'Invalid Token' );\n\n\t\t$model\t=& $this->getModel( 'Item' );\n\t\t$post\t= JRequest::get('post');\n\t\t// allow name only to contain html\n\t\t$post['name'] = JRequest::getVar( 'name', '', 'post', 'string', JREQUEST_ALLOWHTML );\n\t\t$model->setState( 'request', $post );\n\n\t\tif ($model->store()) {\n\t\t\t$msg = JText::_( 'Menu item Saved' );\n\t\t} else {\n\t\t\t$msg = JText::_( 'Error Saving Menu item' );\n\t\t}\n\n\t\t$item =& $model->getItem();\n\t\tswitch ( $this->_task ) {\n\t\t\tcase 'apply':\n\t\t\t\t$this->setRedirect( 'index.php?option=com_menus&menutype='.$item->menutype.'&task=edit&cid[]='.$item->id.'' , $msg );\n\t\t\t\tbreak;\n\n\t\t\tcase 'save':\n\t\t\tdefault:\n\t\t\t\t$this->setRedirect( 'index.php?option=com_menus&task=view&menutype='.$item->menutype, $msg );\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "fa50fc48f6064097b123a65de2594b29", "score": "0.69683164", "text": "function save(&$item_data,$item_id=false)\r\n\t{\r\n\t\tif (!$item_id or !$this->exists($item_id))\r\n\t\t{\r\n\t\t\tif($this->db->insert('items',$item_data))\r\n\t\t\t{\r\n\t\t\t\t$item_data['item_id']=$this->db->insert_id();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t$this->db->where('item_id', $item_id);\r\n\t\t$this->db->update('items',$item_data);\r\n return $this->update_all_bom_cost();\r\n\t}", "title": "" }, { "docid": "fe174231696484f668367855042abedd", "score": "0.6852725", "text": "public function Save($item)\n {\n $this->_Save($item);\n }", "title": "" }, { "docid": "0649fb0525ee1351cec340a609dac31f", "score": "0.6808017", "text": "public function saveItemOffer($ItemOfferData=null){\n if($ItemOfferData){\n if($this->save($ItemOfferData)){\t\t \n return true; //Success\n }else{\t\t\t\n return false;// Failure \n }\t \n } \n }", "title": "" }, { "docid": "5a0e3b11fafc3c4d2640721c177edc46", "score": "0.6670455", "text": "public function save()\t{\n\t\t$post = json_decode( file_get_contents('php://input') );\n\t\t$item = $post->item;\n\t\t$this->load->model('apu_db', 'apu');\n\t\t$idproyecto = $post->idproyecto;\n\t\t$ret = new stdClass();\n\t\t\n\t\t$this->apu->start();\n\t\tif(isset($item->idapu)){\n\t\t\t$this->mod($item);\n\t\t\t$ret->status = TRUE;\n\t\t}else{\n\t\t\t$apus_similares = $this->apu->getBy(array('item'=>$item->item, 'proyecto_idproyecto'=>$idproyecto));\n\t\t\tif($apus_similares->num_rows() > 0){\n\t\t\t\t$ret->status = FALSE;\n\t\t\t\t$ret->msj = 'El item ya existe';\n\t\t\t}else{\n\t\t\t\t$item->idapu = $this->add($item, $idproyecto);\n\t\t\t\t$ret->status = TRUE;\n\t\t\t}\n\t\t}\n\t\t$ret->item = $item;\n\t\t$ret->db_status= $this->apu->end();\n\t\techo json_encode($ret);\n\t}", "title": "" }, { "docid": "b796539e8963fec0b92b445100d3e71c", "score": "0.6615663", "text": "function post() {\n // Redirects to the put method if no id is provided\n if (!isset($this->params['id'])) return $this->put();\n // Checks if method is allowed\n if (!in_array('post', $this->allow)) throw new xException(\"Method not allowed\", 403);\n // Checks provided parameters\n if (!isset($this->params['items'])) throw new xException('No items provided', 400);\n // Database action\n $r = xModel::load($this->model, $this->params['items'])->post();\n // Result\n $r['items'] = array_shift(xModel::load($this->model, array('id'=>$this->params['items']['id']))->get());\n return $r;\n }", "title": "" }, { "docid": "fcbed90c3984525203fad54ccb8495b0", "score": "0.6603793", "text": "public function save()\n {\n $operations = [];\n\n $this->items->each(function ($item) use(&$operations) {\n $operation = $this->setOperator();\n $operation->setOperand($item);\n $operation->setOperator('SET');\n\n $operations[] = $operation;\n });\n\n if(empty($operations))\n return false;\n\n return $this->adWordsServices->mutate($operations)->getValue();\n }", "title": "" }, { "docid": "7046e1bc0926b14812d40814e5518646", "score": "0.6591997", "text": "function save()\n\t{\n\t\t$token = JUtility::getToken();\n\t\tif (!JRequest::getInt($token, 0, 'post')) {\n\t\t\tJError::raiseError(403, 'Request Forbidden');\n\t\t}\n\n\t\t$post\t= JRequest::get('post');\n\t\t$cid\t= JRequest::getVar('cid', array(0), 'post', 'array');\n\t\t$post['cid'] = (int) $cid[0];\n\n\t\t$model = $this->getModel('client');\n\n\t\tif ($model->store($post)) {\n\t\t\t$msg = JText::_('Item Saved');\n\t\t} else {\n\t\t\t$msg = JText::_('Error Saving Item');\n\t\t}\n\n\t\t// Check the table in so it can be edited.... we are done with it anyway\n\t\t$model->checkin();\n\n\t\tswitch (JRequest::getCmd('task'))\n\t\t{\n\t\t\tcase 'apply':\n\t\t\t\t$link = 'index.php?option=com_banners&c=client&task=edit&cid[]='. $post['cid'];\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$link = 'index.php?option=com_banners&c=client';\n\t\t\t\tbreak;\n\t\t}\n\n\t\t$this->setRedirect($link, $msg);\n\t}", "title": "" }, { "docid": "03b7de4be8e04d734f2986b79896d310", "score": "0.65400213", "text": "protected function savePost(){\n\t\tglobal $cUser, $db;\n\t\tif (!ACL::canModify('module', $this->id)){\n\t\t\tnew Alert('error', 'Vous n\\'avez pas l\\'autorisation de faire ceci !');\n\t\t\treturn false;\n\t\t}\n\t\tif (!isset($this->postedData['content']) or empty($this->postedData['content'])){\n\t\t\tnew Alert('error', 'Le post-it est vide !');\n\t\t\treturn false;\n\t\t}\n\t\t$encryptData = $this->settings['encryptData']->getValue();\n\t\t$fields['content'] = \\Sanitize::SanitizeForDb($this->postedData['content'], false);\n\t\tif ($encryptData){\n\t\t\t$fields['content'] = \\Sanitize::encryptData($fields['content']);\n\t\t}\n\t\t$fields['shared'] = \\Sanitize::SanitizeForDb($this->postedData['shared']);\n\t\t$fields['encrypted'] = $encryptData;\n\t\tif (isset($this->postedData['id'])){\n\t\t\t$fields['modified'] = time();\n\t\t\t$where['id'] = $this->postedData['id'];\n\t\t\t$ret = $db->update('module_postit', $fields, $where);\n\t\t}else{\n\t\t\t$fields['author'] = $cUser->getId();\n\t\t\t$fields['created'] = time();\n\t\t\t$ret = $db->insert('module_postit', $fields);\n\t\t}\n\t\tif (!$ret){\n\t\t\tnew Alert('error', 'Impossible de sauvegarder le post-it !');\n\t\t\treturn false;\n\t\t}else{\n\t\t\tnew Alert('success', 'Le post-it a été sauvegardé !');\n\t\t\t$_REQUEST['itemsPage'] = $this->postedData['page'];\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "07a264b97971aee0e7dba6e9f11db421", "score": "0.65221024", "text": "public function saveAction()\r\n {\r\n if ($this->request->hasPost('json_data')) {\r\n $historyService = $this->getService('Cms', 'historyManager');\r\n $historyService->write('Menu', 'Menu items have been sorted');\r\n\r\n $jsonData = $this->request->getPost('json_data');\r\n\r\n return $this->getItemManager()->save($jsonData);\r\n }\r\n }", "title": "" }, { "docid": "2cf330d7600690bfd74eba499ad6b905", "score": "0.6511141", "text": "public function save($groceryListItem){\n\n $success = false;\n if($groceryListItem->getId() && $this->find($groceryListItem->getId()))\n {\n $success = $this->update($groceryListItem);\n }\n else {\n $success = $this->insert($groceryListItem);\n }\n\n return $success;\n }", "title": "" }, { "docid": "9e6b534a3ce69f1abdcfd247b8586acf", "score": "0.64809245", "text": "public static function save( $post_id, $post ) {\n\t\t// wc_save_order_items( $post_id, $_POST );\n\t}", "title": "" }, { "docid": "7f75c86f7fcfc88f4950d19308064109", "score": "0.63999254", "text": "function save(SupplierItemInterface $supplierItem);", "title": "" }, { "docid": "a01f54a37d374c93a408e63c307a44bb", "score": "0.6393541", "text": "public function itemList_post()\n {\n $wishlistDetails = $this->WishListModel->findWishList($this->session->userdata('user_name'));\n\n $userData = array(\n 'id' => '',\n 'item_name' => $this->post('item_name'),\n 'item_description' => $this->post('item_description'),\n 'item_url' => $this->post('item_url'),\n 'item_price' => $this->post('item_price'),\n 'item_priority' => $this->post('item_priority'),\n 'parent_wish_list_id' => $wishlistDetails->id\n );\n\n $isInserted = $this->WishListModel->insertItem($userData);\n\n\n if ($isInserted) {\n\n $message = [\n 'id' => $this->post('id'), // Automatically generated by the model\n 'name' => $this->post('list_name'),\n 'email' => $this->post('list_description'),\n 'status' => 'success',\n 'message' => 'Item added'\n ];\n\n $this->response($message, REST_Controller::HTTP_OK);\n }\n\n $this->response(['status' => 'failed'], REST_Controller::HTTP_NOT_FOUND);\n }", "title": "" }, { "docid": "7204513c079202c09f6c2484ae28fc49", "score": "0.63631195", "text": "function saveEditItem($form) {\n $data = array();\n $id_booster = $form->getData('id');\n $dt = new jDateTime();\n $dt->now();\n\n $dao = jDao::get('boosteradmin~boo_items_mod','booster');\n $record = jDao::createRecord('booster~boo_items','booster');\n $record->id = $id_booster;\n $record->name = $form->getData('name');\n $record->item_info_id = $form->getData('item_info_id');\n $record->short_desc = $form->getData('short_desc');\n $record->short_desc_fr = $form->getData('short_desc_fr'); \n $record->type_id = $form->getData('type_id');\n $record->url_website = $form->getData('url_website');\n $record->url_repo = $form->getData('url_repo');\n $record->author = $form->getData('author');\n $record->item_by = $form->getData('item_by');\n $record->tags = $form->getData(\"tags\");\n $record->status = 0; //will need moderation\n $record->created = jDao::get('booster~boo_items','booster')->get($id_booster)->created;\n $record->modified = $dt->toString(jDateTime::DB_DTFORMAT);\n\n $return = ($dao->insert($record)) ? true : false;\n\n //$form->saveControlToDao('jelix_versions', 'booster~boo_items_jelix_versions', null, array('id_item', 'id_version'));\n\n return $return;\n }", "title": "" }, { "docid": "a56f629f744a372d1aeb345b895272ea", "score": "0.63042873", "text": "public function save() {\n $db = db::instance();\n\n // Create an array of properties to store in the database\n $db_properties = array(\n 'title' => $this->title);\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n\n // Return successful save\n return true;\n }", "title": "" }, { "docid": "b07de63abae23a7b468da2b3bcc5eea3", "score": "0.62878674", "text": "function saveEditItem($form) {\n $dao_modif = \\jDao::get('boosteradmin~boo_items_modifs');\n $id = $form->getData('id');\n $this->saveImage($id, $form, false);\n foreach($form->getModifiedControls() as $field => $old_value){\n if($field == '_submit')\n continue;\n\n $record = \\jDao::createRecord('boosteradmin~boo_items_modifs');\n $record->field = $field;\n $record->item_id = $id;\n $record->old_value = $old_value;\n $record->new_value = $form->getData($field);\n $dao_modif->insert($record);\n }\n\n return true;\n }", "title": "" }, { "docid": "508b924fbc6cab341aa7acf3a55ed860", "score": "0.62872416", "text": "public function salvar(array $listPost=[]) {\n if (empty($listPost[$this->primaryKey])) {\n /* Cadastra Item */\n if($item = $this->insert($listPost)){\n $item = $this->getInsertID();\n $this->message->success('Registro inserido com sucesso');\n } else {\n $this->message->error('Falha ao inserir registro');\n }\n\n } else {\n /* Atualiza Item */\n if($this->update($listPost[$this->primaryKey],$listPost)){\n $item = $listPost[$this->primaryKey];\n $this->message->success('Registro atualizado com sucesso');\n } else {\n $this->message->error('Falha ao atualizar registro');\n }\n\n }\n\n return ($item??false);\n }", "title": "" }, { "docid": "7d60aad7c2703ca737e41ba765bffe0f", "score": "0.62857807", "text": "public function save(): bool;", "title": "" }, { "docid": "11b416028f6e373876d39629bc226a18", "score": "0.6278942", "text": "function claimreview_meta_save( $post_id ) {\n \n // Checks save status - overcome autosave, etc.\n $is_autosave = wp_is_post_autosave( $post_id );\n $is_revision = wp_is_post_revision( $post_id );\n $is_valid_nonce = ( isset( $_POST[ 'claimreview_nonce' ] ) && wp_verify_nonce( $_POST[ 'claimreview_nonce' ], basename( __FILE__ ) ) ) ? 'true' : 'false';\n \n // Exits script depending on save status\n if ( $is_autosave || $is_revision || !$is_valid_nonce ) {\n return;\n }\n \n// Checks for input and saves - save checked as 1 (yes) and unchecked at 0 (no)\nif( isset( $_POST[ 'claimreview_itemReviewed_status' ] ) ) {\n update_post_meta( $post_id, 'claimreview_itemReviewed_status', '1' );\n} else {\n update_post_meta( $post_id, 'claimreview_itemReviewed_status', '0' );\n}\n \n}", "title": "" }, { "docid": "82f79cab9ee2eb6dc9de090879e22adf", "score": "0.626989", "text": "function postSave($entity);", "title": "" }, { "docid": "24deedb27f44fcdda3500ac64504cb3a", "score": "0.62569886", "text": "public function _saveItem($type)\r\n\t{\r\n\t\t// Get item\r\n\t\t$itemsModel = BluApplication::getModel('items');\r\n\t\t$item = $itemsModel->getItem($this->_itemId);\r\n\t\t\r\n\t\t// Got a logged in user?\r\n\t\t$userModel = BluApplication::getModel('user');\r\n\t\tif (!$user = $this->_requireUser()) {\r\n\t\t\tswitch ($type) {\r\n\t\t\t\tcase 'shopping_list':\r\n\t\t\t\t\t$task = 'save_to_shopping_list';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 'recipebox':\r\n\t\t\t\t\t$task = 'save_to_recipe_box';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 'recipe_note':\r\n\t\t\t\t\t$task = 'save_recipe_note';\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t$url = $itemsModel->getTaskLink($item['link'], $task);\r\n\t\t\t$url = '/account/login?redirect='.base64_encode($url);\r\n\t\t\treturn $this->_redirect($url, Text::get('item_msg_save_add_login', array('itemName' => $item['title'])), 'warn');\r\n\t\t}\r\n\t\t\r\n\t\t// Get request\r\n\t\t$comments = Request::getString('comments');\r\n\r\n\t\t// Add to saved items list\r\n\t\tswitch ($type) {\r\n\t\t\tcase 'shopping_list':\r\n\t\t\t\t$userModel->addToShoppinglist($item['id'], $user['id'], $comments);\r\n\t\t\t\tMessages::addMessage(Text::get('item_msg_save_added', array(\r\n\t\t\t\t\t'itemName' => $item['title'],\r\n\t\t\t\t\t'save_how' => 'to your shopping list'\r\n\t\t\t\t)), 'info');\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase 'recipebox':\r\n\t\t\t\t$userModel->addToRecipeBox($item['id'], $user['id'], $comments);\r\n\t\t\t\tMessages::addMessage(Text::get('item_msg_save_added', array(\r\n\t\t\t\t\t'itemName' => $item['title'],\r\n\t\t\t\t\t'save_how' => 'to your recipe box'\r\n\t\t\t\t)), 'info');\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase 'recipe_note':\r\n\t\t\t\t$userModel->saveRecipeNote($item['id'], $user['id'], $comments);\r\n\t\t\t\t$userModel->addToRecipeBox($item['id'], $user['id'], $comments);\t// No point saving a note to find out you've forgotten what the damn recipe was called again, let's save it in the account area too.\r\n\t\t\t\tMessages::addMessage(Text::get('item_msg_save_added', array(\r\n\t\t\t\t\t'itemName' => $item['title'],\r\n\t\t\t\t\t'save_how' => 'with your recipe note'\r\n\t\t\t\t)), 'info');\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\t// Display messages\r\n\t\tswitch ($type) {\r\n\t\t\tcase 'shopping_list':\r\n\t\t\t\treturn $this->_redirect('/account/shopping_list');\r\n\t\t\t\t\r\n\t\t\tcase 'recipebox':\r\n\t\t\t\treturn $this->_redirect('/account/recipe_box');\r\n\t\t\t\t\r\n\t\t\tcase 'recipe_note':\r\n\t\t\tdefault:\r\n\t\t\t\treturn $this->_showMessages(null, 'view', 'saveitem', true);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "389a8bfe27e0718356d1255a220aa5f6", "score": "0.62331367", "text": "protected function _postSave()\r\n\t{\r\n\t\t// soft delete - now deleted but was visible\r\n\t\tif ($this->isUpdate() && $this->get('item_state') != 'visible' && $this->getExisting('item_state') == 'visible')\r\n\t\t{\r\n\t\t\t$itemId = $this->get('item_id');\r\n\t\t\t$bookmarksModel = $this->getModelFromCache('Bookmarks_Model_Bookmarks');\r\n\t\t\t\r\n\t\t\t// send bookmark alert\r\n\t\t\t$bookmarksModel->sendBookmarkAlerts('showcase_item', $itemId, 'content_not_viewable', 'delete');\r\n\t\t\t\r\n\t\t\t// delete all bookmarks that point to this un-viewable showcase item\r\n\t\t\t$bookmarksModel->deleteAllByContentTypeId('showcase_item', $itemId);\r\n\t\t}\r\n\t\telse if ($this->isChanged('message') || $this->isChanged('message_t2') || $this->isChanged('message_t3') || $this->isChanged('message_t4') || $this->isChanged('message_t5'))\r\n\t\t{\r\n\t\t\t$itemId = $this->get('item_id');\r\n\t\t\t$bookmarksModel = $this->getModelFromCache('Bookmarks_Model_Bookmarks');\r\n\t\t\t\r\n\t\t\t// send bookmark alert\r\n\t\t\t$bookmarksModel->sendBookmarkAlerts('showcase_item', $itemId, 'content_edit', 'edit');\r\n\t\t}\r\n\t\t\r\n\t\tparent::_postSave();\r\n\t}", "title": "" }, { "docid": "7b36a25c878e29fe6fffb1083598f5ac", "score": "0.62203825", "text": "function savePost($data) {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "df020e47a319bf261feb72f053158cf8", "score": "0.62126034", "text": "public function post () {\n $this->_request->validate_unique();\n // TODO check on how not to mention field names (ID) here\n if (!empty($this->_model->id)) {\n $this->_options['fields']['id'] = $this->_model->id;\n }\n $this->_options = $this->_model->validate_save($this->_options);\n $result = $this->_model->save($this->_options['fields']);\n if ($result) {\n // We need to check for true because update\n // returns true instead of the entity id\n if ($result !== true) {\n // TODO avoid ID if possible, seems not to\n $this->_model->id = $result;\n }\n $this->_post_relations($this->_options['relations']);\n }\n return $result;\n // TODO check on how to return 201 HTTP code\n }", "title": "" }, { "docid": "30c2617df86464f2c58d5fa4bfe16b39", "score": "0.62063634", "text": "public function save(): bool\n {\n $data = [\n 'name' => $this->getName(),\n 'uid' => $this->getUid(),\n 'mileage' => $this->getMileage(),\n 'avg_consuption' => $this->getAvgConsuption()\n ];\n if ($this->getId()) {\n if ((new db\\Update('vehicle', $data, $this->getId()))->run() !== false) {\n return true;\n }\n } else {\n if ($newId = (new db\\Insert('vehicle', $data))->run()) {\n $this->setId($newId);\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "853055247f8cb8f93f1f95be14327dea", "score": "0.6198522", "text": "function onSaveBefor(&$modelItem){\r\n\t}", "title": "" }, { "docid": "84465ea3c16189a0ebc253d35da055c2", "score": "0.6184831", "text": "public function Save()\n {\n $dbMain = db_getDBObject(DEFAULT_DB, true);\n\n if ($this->domain_id) {\n $dbObj = db_getDBObjectByDomainID($this->domain_id, $dbMain);\n } else {\n if (defined('SELECTED_DOMAIN_ID')) {\n $dbObj = db_getDBObjectByDomainID(SELECTED_DOMAIN_ID, $dbMain);\n } else {\n $dbObj = db_getDBObject();\n }\n }\n\n unset($dbMain);\n\n /* it checks if the social_network is already a json, if it's does not encode again */\n if (is_array($this->social_network)) {\n $this->social_network = count($this->social_network) > 0 ? json_encode($this->social_network) : null;\n }\n\n /* ModStores Hooks */\n HookFire(\"classlisting_before_preparesave\", [\n \"that\" => &$this\n ]);\n\n $this->prepareToSave();\n\n $aux_old_account = str_replace(\"'\", '', $this->old_account_id);\n $aux_account = str_replace(\"'\", '', $this->account_id);\n\n $this->friendly_url = string_strtolower($this->friendly_url);\n\n /*\n * TODO\n * Review calls of method save when adding/editing an item\n * Right now it's been called several times messing up some attributes values\n */\n if ($this->image_id === \"''\") {\n $this->image_id = 'NULL';\n }\n\n if ($this->cover_id === \"''\") {\n $this->cover_id = 'NULL';\n }\n if ($this->logo_id === \"''\") {\n $this->logo_id = 'NULL';\n }\n if($this->account_id === \"''\") {\n $this->account_id = 'NULL';\n }\n if($this->listingtemplate_id === \"''\") {\n $this->listingtemplate_id = 'NULL';\n }\n\n if ($this->id) {\n\n $updateItem = true;\n\n $sql = 'UPDATE Listing SET'\n . \" account_id = $this->account_id,\"\n . \" image_id = $this->image_id,\"\n . \" cover_id = $this->cover_id,\"\n . \" logo_id = $this->logo_id,\"\n . \" location_1 = $this->location_1,\"\n . \" location_2 = $this->location_2,\"\n . \" location_3 = $this->location_3,\"\n . \" location_4 = $this->location_4,\"\n . \" location_5 = $this->location_5,\"\n . \" renewal_date = $this->renewal_date,\"\n . \" discount_id = $this->discount_id,\"\n . \" reminder = $this->reminder,\"\n . ' updated = NOW(),'\n . \" title = $this->title,\"\n . \" seo_title = $this->seo_title,\"\n . \" claim_disable = $this->claim_disable,\"\n . \" friendly_url = $this->friendly_url,\"\n . \" email = $this->email,\"\n . \" url = $this->url,\"\n . \" display_url = $this->display_url,\"\n . \" address = $this->address,\"\n . \" address2 = $this->address2,\"\n . \" zip_code = $this->zip_code,\"\n . \" phone = $this->phone,\"\n . \" label_additional_phone = $this->label_additional_phone,\"\n . \" additional_phone = $this->additional_phone,\"\n . \" description = $this->description,\"\n . \" seo_description = $this->seo_description,\"\n . \" long_description = $this->long_description,\"\n . \" video_snippet = $this->video_snippet,\"\n . \" video_url = $this->video_url,\"\n . \" video_description = $this->video_description,\"\n . \" keywords = $this->keywords,\"\n . \" seo_keywords = $this->seo_keywords,\"\n . \" attachment_file = $this->attachment_file,\"\n . \" attachment_caption = $this->attachment_caption,\"\n . \" features = $this->features,\"\n . \" price = $this->price,\"\n . \" social_network = $this->social_network,\"\n . \" status = $this->status,\"\n . \" level = $this->level,\"\n . \" hours_work = $this->hours_work,\"\n . \" locations = $this->locations,\"\n . \" listingtemplate_id = $this->listingtemplate_id,\"\n . \" custom_text0 = $this->custom_text0,\"\n . \" custom_text1 = $this->custom_text1,\"\n . \" custom_text2 = $this->custom_text2,\"\n . \" custom_text3 = $this->custom_text3,\"\n . \" custom_text4 = $this->custom_text4,\"\n . \" custom_text5 = $this->custom_text5,\"\n . \" custom_text6 = $this->custom_text6,\"\n . \" custom_text7 = $this->custom_text7,\"\n . \" custom_text8 = $this->custom_text8,\"\n . \" custom_text9 = $this->custom_text9,\"\n . \" custom_short_desc0 = $this->custom_short_desc0,\"\n . \" custom_short_desc1 = $this->custom_short_desc1,\"\n . \" custom_short_desc2 = $this->custom_short_desc2,\"\n . \" custom_short_desc3 = $this->custom_short_desc3,\"\n . \" custom_short_desc4 = $this->custom_short_desc4,\"\n . \" custom_short_desc5 = $this->custom_short_desc5,\"\n . \" custom_short_desc6 = $this->custom_short_desc6,\"\n . \" custom_short_desc7 = $this->custom_short_desc7,\"\n . \" custom_short_desc8 = $this->custom_short_desc8,\"\n . \" custom_short_desc9 = $this->custom_short_desc9,\"\n . \" custom_long_desc0 = $this->custom_long_desc0,\"\n . \" custom_long_desc1 = $this->custom_long_desc1,\"\n . \" custom_long_desc2 = $this->custom_long_desc2,\"\n . \" custom_long_desc3 = $this->custom_long_desc3,\"\n . \" custom_long_desc4 = $this->custom_long_desc4,\"\n . \" custom_long_desc5 = $this->custom_long_desc5,\"\n . \" custom_long_desc6 = $this->custom_long_desc6,\"\n . \" custom_long_desc7 = $this->custom_long_desc7,\"\n . \" custom_long_desc8 = $this->custom_long_desc8,\"\n . \" custom_long_desc9 = $this->custom_long_desc9,\"\n . \" custom_checkbox0 = $this->custom_checkbox0,\"\n . \" custom_checkbox1 = $this->custom_checkbox1,\"\n . \" custom_checkbox2 = $this->custom_checkbox2,\"\n . \" custom_checkbox3 = $this->custom_checkbox3,\"\n . \" custom_checkbox4 = $this->custom_checkbox4,\"\n . \" custom_checkbox5 = $this->custom_checkbox5,\"\n . \" custom_checkbox6 = $this->custom_checkbox6,\"\n . \" custom_checkbox7 = $this->custom_checkbox7,\"\n . \" custom_checkbox8 = $this->custom_checkbox8,\"\n . \" custom_checkbox9 = $this->custom_checkbox9,\"\n . \" custom_dropdown0 = $this->custom_dropdown0,\"\n . \" custom_dropdown1 = $this->custom_dropdown1,\"\n . \" custom_dropdown2 = $this->custom_dropdown2,\"\n . \" custom_dropdown3 = $this->custom_dropdown3,\"\n . \" custom_dropdown4 = $this->custom_dropdown4,\"\n . \" custom_dropdown5 = $this->custom_dropdown5,\"\n . \" custom_dropdown6 = $this->custom_dropdown6,\"\n . \" custom_dropdown7 = $this->custom_dropdown7,\"\n . \" custom_dropdown8 = $this->custom_dropdown8,\"\n . \" custom_dropdown9 = $this->custom_dropdown9,\"\n . \" number_views = $this->number_views,\"\n . \" avg_review = $this->avg_review,\"\n . \" latitude = $this->latitude,\"\n . \" longitude = $this->longitude,\"\n . \" map_zoom = $this->map_zoom,\"\n . \" package_id = $this->package_id,\"\n . \" package_price = $this->package_price\"\n . \" WHERE id = $this->id\";\n\n /* ModStores Hooks */\n HookFire(\"classlisting_before_updatequery\", [\n \"that\" => &$this,\n \"sql\" => &$sql,\n ]);\n\n $dbObj->query($sql);\n\n /* ModStores Hooks */\n HookFire(\"classlisting_after_updatequery\", [\n \"that\" => &$this,\n ]);\n\n if ($aux_old_account != $aux_account && $aux_account != 0) {\n $accDomain = new Account_Domain($aux_account, SELECTED_DOMAIN_ID);\n $accDomain->Save();\n $accDomain->saveOnDomain($aux_account, $this);\n }\n\n } else {\n $sql = 'INSERT INTO Listing'\n .' (account_id,'\n .' image_id,'\n .' cover_id,'\n .' logo_id,'\n .' location_1,'\n .' location_2,'\n .' location_3,'\n .' location_4,'\n .' location_5,'\n .' renewal_date,'\n .' discount_id,'\n .' reminder,'\n .' fulltextsearch_keyword,'\n .' fulltextsearch_where,'\n .' updated,'\n .' entered,'\n .' title,'\n .' seo_title,'\n .' claim_disable,'\n .' friendly_url,'\n .' email,'\n .' url,'\n .' display_url,'\n .' address,'\n .' address2,'\n .' zip_code,'\n .' phone,'\n .' label_additional_phone,'\n .' additional_phone,'\n .' description,'\n .' seo_description,'\n .' long_description,'\n .' video_snippet,'\n .' video_url,'\n .' video_description,'\n .' keywords,'\n .' seo_keywords,'\n .' attachment_file,'\n .' attachment_caption,'\n .' features,'\n .' price,'\n .' social_network,'\n .' status,'\n .' level,'\n .' hours_work,'\n .' locations,'\n .' listingtemplate_id,'\n .' custom_text0,'\n .' custom_text1,'\n .' custom_text2,'\n .' custom_text3,'\n .' custom_text4,'\n .' custom_text5,'\n .' custom_text6,'\n .' custom_text7,'\n .' custom_text8,'\n .' custom_text9,'\n .' custom_short_desc0,'\n .' custom_short_desc1,'\n .' custom_short_desc2,'\n .' custom_short_desc3,'\n .' custom_short_desc4,'\n .' custom_short_desc5,'\n .' custom_short_desc6,'\n .' custom_short_desc7,'\n .' custom_short_desc8,'\n .' custom_short_desc9,'\n .' custom_long_desc0,'\n .' custom_long_desc1,'\n .' custom_long_desc2,'\n .' custom_long_desc3,'\n .' custom_long_desc4,'\n .' custom_long_desc5,'\n .' custom_long_desc6,'\n .' custom_long_desc7,'\n .' custom_long_desc8,'\n .' custom_long_desc9,'\n .' custom_checkbox0,'\n .' custom_checkbox1,'\n .' custom_checkbox2,'\n .' custom_checkbox3,'\n .' custom_checkbox4,'\n .' custom_checkbox5,'\n .' custom_checkbox6,'\n .' custom_checkbox7,'\n .' custom_checkbox8,'\n .' custom_checkbox9,'\n .' custom_dropdown0,'\n .' custom_dropdown1,'\n .' custom_dropdown2,'\n .' custom_dropdown3,'\n .' custom_dropdown4,'\n .' custom_dropdown5,'\n .' custom_dropdown6,'\n .' custom_dropdown7,'\n .' custom_dropdown8,'\n .' custom_dropdown9,'\n .' number_views,'\n .' avg_review,'\n .' latitude,'\n .' longitude,'\n .' map_zoom,'\n .' package_id,'\n .' package_price,'\n .' last_traffic_sent)'\n .' VALUES'\n . \" ($this->account_id,\"\n . \" $this->image_id,\"\n . \" $this->cover_id,\"\n . \" $this->logo_id,\"\n . \" $this->location_1,\"\n . \" $this->location_2,\"\n . \" $this->location_3,\"\n . \" $this->location_4,\"\n . \" $this->location_5,\"\n . \" $this->renewal_date,\"\n . \" $this->discount_id,\"\n . \" $this->reminder,\"\n . \" '',\"\n . \" '',\"\n .' NOW(),'\n .' NOW(),'\n . \" $this->title,\"\n . \" $this->seo_title,\"\n . \" $this->claim_disable,\"\n . \" $this->friendly_url,\"\n . \" $this->email,\"\n . \" $this->url,\"\n . \" $this->display_url,\"\n . \" $this->address,\"\n . \" $this->address2,\"\n . \" $this->zip_code,\"\n . \" $this->phone,\"\n . \" $this->label_additional_phone,\"\n . \" $this->additional_phone,\"\n . \" $this->description,\"\n . \" $this->seo_description,\"\n . \" $this->long_description,\"\n . \" $this->video_snippet,\"\n . \" $this->video_url,\"\n . \" $this->video_description,\"\n . \" $this->keywords,\"\n . \" $this->seo_keywords,\"\n . \" $this->attachment_file,\"\n . \" $this->attachment_caption,\"\n . \" $this->features,\"\n . \" $this->price,\"\n . \" $this->social_network,\"\n . \" $this->status,\"\n . \" $this->level,\"\n . \" $this->hours_work,\"\n . \" $this->locations,\"\n . \" $this->listingtemplate_id,\"\n . \" $this->custom_text0,\"\n . \" $this->custom_text1,\"\n . \" $this->custom_text2,\"\n . \" $this->custom_text3,\"\n . \" $this->custom_text4,\"\n . \" $this->custom_text5,\"\n . \" $this->custom_text6,\"\n . \" $this->custom_text7,\"\n . \" $this->custom_text8,\"\n . \" $this->custom_text9,\"\n . \" $this->custom_short_desc0,\"\n . \" $this->custom_short_desc1,\"\n . \" $this->custom_short_desc2,\"\n . \" $this->custom_short_desc3,\"\n . \" $this->custom_short_desc4,\"\n . \" $this->custom_short_desc5,\"\n . \" $this->custom_short_desc6,\"\n . \" $this->custom_short_desc7,\"\n . \" $this->custom_short_desc8,\"\n . \" $this->custom_short_desc9,\"\n . \" $this->custom_long_desc0,\"\n . \" $this->custom_long_desc1,\"\n . \" $this->custom_long_desc2,\"\n . \" $this->custom_long_desc3,\"\n . \" $this->custom_long_desc4,\"\n . \" $this->custom_long_desc5,\"\n . \" $this->custom_long_desc6,\"\n . \" $this->custom_long_desc7,\"\n . \" $this->custom_long_desc8,\"\n . \" $this->custom_long_desc9,\"\n . \" $this->custom_checkbox0,\"\n . \" $this->custom_checkbox1,\"\n . \" $this->custom_checkbox2,\"\n . \" $this->custom_checkbox3,\"\n . \" $this->custom_checkbox4,\"\n . \" $this->custom_checkbox5,\"\n . \" $this->custom_checkbox6,\"\n . \" $this->custom_checkbox7,\"\n . \" $this->custom_checkbox8,\"\n . \" $this->custom_checkbox9,\"\n . \" $this->custom_dropdown0,\"\n . \" $this->custom_dropdown1,\"\n . \" $this->custom_dropdown2,\"\n . \" $this->custom_dropdown3,\"\n . \" $this->custom_dropdown4,\"\n . \" $this->custom_dropdown5,\"\n . \" $this->custom_dropdown6,\"\n . \" $this->custom_dropdown7,\"\n . \" $this->custom_dropdown8,\"\n . \" $this->custom_dropdown9,\"\n . \" $this->number_views,\"\n . \" $this->avg_review,\"\n . \" $this->latitude,\"\n . \" $this->longitude,\"\n . \" $this->map_zoom,\"\n . \" $this->package_id,\"\n . \" $this->package_price,\"\n .' NOW())';\n\n /* ModStores Hooks */\n HookFire(\"classlisting_before_insertquery\", [\n \"that\" => &$this,\n \"sql\" => &$sql,\n ]);\n\n $dbObj->query($sql);\n\n /* ModStores Hooks */\n HookFire(\"classlisting_after_insertquery\", [\n \"that\" => &$this,\n \"dbObj\" => &$dbObj,\n ]);\n\n\n $this->id = (($___mysqli_res = mysqli_insert_id($dbObj->link_id)) === null ? false : $___mysqli_res);\n\n /*\n * Used to package\n */\n $this->prepareToUse(); //prevent some fields to be saved with empty quotes\n\n //Reload the Listing object variables\n\n $sql = \"SELECT * FROM Listing WHERE id = $this->id\";\n $row = mysqli_fetch_array($dbObj->query($sql));\n $this->makeFromRow($row);\n $this->prepareToSave();\n\n if ($aux_account != 0) {\n domain_SaveAccountInfoDomain($aux_account, $this);\n }\n\n }\n\n if ((sess_getAccountIdFromSession() && string_strpos($_SERVER['PHP_SELF'],\n 'listing.php') !== false) || string_strpos($_SERVER['PHP_SELF'], 'order_') !== false\n ) {\n $rowTimeline = array();\n $rowTimeline['item_type'] = 'listing';\n $rowTimeline['action'] = ($updateItem ? 'edit' : 'new');\n $rowTimeline['item_id'] = str_replace(\"'\", '', $this->id);\n $timelineObj = new Timeline($rowTimeline);\n $timelineObj->Save();\n }\n\n /* ModStores Hooks */\n HookFire(\"classlisting_before_prepareuse\", [\n \"that\" => &$this,\n ]);\n\n $this->prepareToUse();\n\n $this->setFullTextSearch();\n\n /* ModStores Hooks */\n HookFire(\"classlisting_after_save\", [\n \"that\" => &$this,\n ]);\n }", "title": "" }, { "docid": "3672ecdc3c54e3f3acb84ca18f5af06c", "score": "0.61814934", "text": "abstract protected function actualSave();", "title": "" }, { "docid": "22f08834caa48ae0ab698bcd77c263f1", "score": "0.61707926", "text": "public function save()\n {\n if (!$this->checkRequiredAttribute()) {\n return false;\n }\n $this->connector->doCommand($this->command . ' -a');\n\n foreach ($this->attributes as $property_key => $property_value) {\n $this->connector->doCommand($property_key . ' ' . $property_value);\n }\n $result = $this->connector->doCommand('ok');\n if (!!strstr(strtolower($result), 'successfully added')) {\n return true;\n } else {\n $this->errors['save'] = strtolower($result);\n return false;\n }\n }", "title": "" }, { "docid": "51ff6797bb79744f4fb529055efd8aae", "score": "0.6168941", "text": "function onAfterSaveField( &$field, &$post, &$file, &$item ) {\n\t}", "title": "" }, { "docid": "9caf27911cf9cbee9ecd121c7932d822", "score": "0.6164482", "text": "public function onAfterSaveField( &$field, &$post, &$file, &$item ) {\n\t}", "title": "" }, { "docid": "6d20aa84661351e4924a89a0b9b71329", "score": "0.61592007", "text": "abstract protected function save();", "title": "" }, { "docid": "6d20aa84661351e4924a89a0b9b71329", "score": "0.61592007", "text": "abstract protected function save();", "title": "" }, { "docid": "dbe97de1fb4f3da23ff75cb6d976de9a", "score": "0.61467", "text": "function save_post() {\r\n\n\t}", "title": "" }, { "docid": "3cc0188a043a6c45c56d8f90340b616c", "score": "0.61443806", "text": "public abstract function save(): bool;", "title": "" }, { "docid": "019d731595d072c6a0a09edd0c86a773", "score": "0.613393", "text": "public function store()\n\t{\n\t\t$this->form_validation->set_rules('title', 'Title', 'required');\n\t\t$this->form_validation->set_rules('description', 'Description', 'required');\n\n\t\tif ($this->form_validation->run() == false) {\n\t\t\t$this->session->set_flashdata('errors', validation_errors());\n\t\t\tredirect(base_url('item/create'));\n\t\t} else {\n\t\t\t$this->item->insert_item();\n\t\t\tredirect(base_url('item'));\n\t\t}\n\t}", "title": "" }, { "docid": "670aa76bd71cecce1f85672b9c1d90bb", "score": "0.6133879", "text": "private static function doSaveFormsItems() {\n\t\t$save = array();\n\t\t$save['system_language_id'] = (int) wgLang::getLanguageId();\n\t\t$save['system_websites_id'] = (int) wgSystem::getCurrentWebsite();\n\t\t$save['mailfield'] = wgPost::getValue('mailfield');\n\t\t$save['forms_messages_group_id'] = (int) wgPost::getValue('forms_messages_group_id');\n\t\t$save['adminmail'] = wgPost::getValue('adminmail');\n\t\t$save['template'] = wgPost::getValue('template');\n\t\t$save['usehtml'] = (int) wgPost::getValue('usehtml');\n\t\t$save['usetxt'] = (int) wgPost::getValue('usetxt');\n\t\t$save['mailhtml'] = wgPost::getValue('mailhtml');\n\t\t$save['mailtxt'] = wgPost::getValue('mailtxt');\n\t\t$save['okmessage'] = wgPost::getValue('okmessage');\n\t\t$save['errormessage'] = wgPost::getValue('errormessage');\n\t\t$save['warningmessage'] = wgPost::getValue('warningmessage');\n\t\t$save['redirect'] = wgPost::getValue('redirect');\n\t\t$save['name'] = wgPost::getValue('name');\n\t\t$save['identifier'] = valid::safeText(wgPost::getValue('identifier'));\n\t\t$save['changed'] = 'NOW()';\n\t\tif ((bool) wgPost::getValue('edit')) {\n\t\t\t$save['where'] = (int) wgPost::getValue('edit');\n\t\t\t$id = (int) $save['where'];\n\t\t\tself::saveRecipients($id);\n\t\t\tself::saveFields($id);\n\t\t\tself::$_par['edit'] = $id;\n\t\t\t$ok = (bool) FormsItemsModel::doUpdate($save);\n\t\t}\n\t\telse {\n\t\t\t$save['added'] = 'NOW()';\n\t\t\t$id = (int) FormsItemsModel::doInsert($save);\n\t\t\tself::saveRecipients($id);\n\t\t\tself::saveFields($id);\n\t\t\tself::$_par['edit'] = $id;\n\t\t\t$ok = (bool) $id;\n\t\t}\n\t\treturn $ok;\n\t}", "title": "" }, { "docid": "4db5e2d8f4e3f372d57ea06a9b47e2d6", "score": "0.6133842", "text": "function saveItem() {\n $data = array();\n $id_booster = 0;\n\n $form = jForms::fill('booster~items');\n $dao = jDao::get('booster~boo_items','booster');\n $record = jDao::createRecord('booster~boo_items','booster');\n $record->name = $form->getData('name');\n $record->item_info_id = $form->getData('item_info_id');\n $record->short_desc = $form->getData('short_desc');\n $record->short_desc_fr = $form->getData('short_desc_fr');\n $record->type_id = $form->getData('type_id');\n $record->url_website = $form->getData('url_website');\n $record->url_repo = $form->getData('url_repo');\n $record->author = $form->getData('author');\n $record->item_by = $form->getData('item_by');\n $record->status = 0; //will need moderation\n\n if ($dao->insert($record)) {\n $id_booster = $record->id;\n $data['id'] = $id_booster;\n $data['name'] = $form->getData('name');\n }\n\n if ($id_booster != 0) {\n $tagStr ='';\n $tagStr = str_replace('.',' ',$form->getData(\"tags\"));\n $tags = explode(\",\", $tagStr);\n\n jClasses::getService(\"jtags~tags\")->saveTagsBySubject($tags, 'booscope', $id_booster);\n }\n\n return $data;\n }", "title": "" }, { "docid": "624ed870a4ef5b9432a90dd573dfe524", "score": "0.6132842", "text": "public function return_item ($item) {\n if ($item instanceof Item == false) return FALSE;\n\n $item->on_hold = false;\n return $item->save();\n }", "title": "" }, { "docid": "0203ec6412a03edcbc2425504af50253", "score": "0.61318696", "text": "protected function saveItem(EntityInterface $entity, SyncDataItem $item) {\n return $entity->save();\n }", "title": "" }, { "docid": "56d37a1cc47036c066c6b9e2d6aa3dd7", "score": "0.61318433", "text": "public function bulk_save($item){\r\n if ( $this->options_merge($item) ){\r\n $this->save_options();\r\n return true;\r\n\r\n }else{\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "b5b4e93da3591f789b0462e42e4a9e84", "score": "0.6122252", "text": "public function saveField($itemid){\n\t\treturn\t$this->saveIPE($itemid);\n\t}", "title": "" }, { "docid": "d21973c14160279ec7f7307822cde82e", "score": "0.6116247", "text": "public function save()\n {\n if(!$this->isValid(new Validator($this->arrFieldsMapping))){\n return false;\n }\n $dbConn = new Database($di);\n\n $strSql = \"INSERT INTO product \n (product_code, \n barcode, \n description, \n price, \n date_created) \n VALUES (:product_code, \n :barcode, \n :description, \n :price, \n :date_created) \";\n\n $arrParameters = ['product_code' => $this->_strProductCode, \n 'barcode' => $this->_intBarcode, \n 'description' => $this->_intBarcode, \n 'price' => $this->_intBarcode,\n 'date_created' => $this->_dateCreated];\n\n if (!$dbConn->execute($strSql, $arrParameters)){\n $this->_log->logRequest(\"Unable to insert product code\", [], Level::ALERT);\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "475ff2f74f39e084c53e07d3c52337a7", "score": "0.61083734", "text": "public function save() : bool {\n\t}", "title": "" }, { "docid": "041828d07ff10485e784b10ec01038db", "score": "0.6101469", "text": "protected function _save()\n {\n if ($this->isSaveToDataBaseEnabled()) {\n\n if ($oUser = $this->getBasketUser()) {\n //first delete all contents\n //#2039\n $oSavedBasket = $oUser->getBasket('savedbasket');\n $oSavedBasket->delete();\n\n //then save\n foreach ($this->_aBasketContents as $oBasketItem) {\n // discount or bundled products will be added automatically if available\n if (!$oBasketItem->isBundle() && !$oBasketItem->isDiscountArticle()) {\n $oSavedBasket->addItemToBasket($oBasketItem->getProductId(), $oBasketItem->getAmount(), $oBasketItem->getSelList(), true, $oBasketItem->getPersParams());\n }\n }\n }\n }\n }", "title": "" }, { "docid": "8d39860440c9c2e17b2aadb53c8ebacd", "score": "0.6100724", "text": "public function save()\n\t{\n\t\tif($this->check())\n\t\t{\n\t\t\tif($this->isReaded())\n\t\t\t{\n\t\t\t\treturn $this->update();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn $this->create();\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": "837211f52d84b8d2c34fe1a376e074c7", "score": "0.6100658", "text": "public function save() {\n return true;\n //return $this->set($this->value);\n }", "title": "" }, { "docid": "9106d4524354412517731aa8baff3948", "score": "0.61005646", "text": "function submit()\n\t{\n\t\t// Check for request forgeries.\n\t\tJSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));\n\n\t\t$input \t= JFactory::getApplication()->input;\n\n\t\t$post\t= $input->post->getArray(array());\n\t\t$itemid =@ $post[itemid];\n\n\t\t$user = JFactory::getUser();\n\t\tif (!$user->authorise('core.create', 'com_gmapfp'))\n\t\t{\n\t\t\t$msg = JText::_('JLIB_APPLICATION_ERROR_SAVE_NOT_PERMITTED');\n\t\t} else {\n\n\t\t\t$model = $this->getModel('editlieux');\n\t\t\t$returnid = $model->store($post);\n\t\t\tif ($returnid > 0) {\n\t\t\t\t$msg = JText::_( 'GMAPFP_SUBMIT' );\n\t\t\t} else {\n\t\t\t\t$msg = JText::_( 'GMAPFP_SUBMIT_ERROR' );\n\t\t\t}\n\t\t}\n\n\t\t$link = JRoute::_('index.php?Itemid='.$itemid,false);\n\t\t$this->setRedirect($link, $msg);\n\t}", "title": "" }, { "docid": "d4650b1c692ee1b50a52c67bbc8976b5", "score": "0.60998124", "text": "function save()\n\t{\n\t\t// Check for request forgeries.\n\t\tJSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));\n\n\t\t$user = JFactory::getUser();\n\t\tif (!$user->authorise('core.create', 'com_gmapfp'))\n\t\t{\n\t\t\t$this->setMessage(JText::_('JLIB_APPLICATION_ERROR_SAVE_NOT_PERMITTED'), 'error');\n\t\t} else {\n\t\t\t$input \t= JFactory::getApplication()->input;\n\t\t\t\n\t\t\t$post\t= $input->post->getArray(array());\n\t\t\t\n\t\t\t$model = $this->getModel('editlieux');\n\t\t\t$returnid=$model->store($post);\n\t\t\tif ($returnid>0) {\n\t\t\t\t$msg = JText::_( 'GMAPFP_SAVED' );\n\t\t\t} else {\n\t\t\t\t$msg = JText::_( 'GMAPFP_SAVED_ERROR' );\n\t\t\t}\n\t\t}\n\n\t\t$link = JRoute::_('index.php?option=com_gmapfp&view=gestionlieux&controller=gestionlieux&task=view');\n\t\t// Check the table in so it can be edited.... we are done with it anyway\n\t\t$this->setRedirect($link, $msg);\n\t}", "title": "" }, { "docid": "4a65f8f1f6031e9d9cd1c1e1853cfca1", "score": "0.60968554", "text": "function Save()\n {\n\n $dbMain = db_getDBObject(DEFAULT_DB, true);\n\n if ($this->domain_id) {\n $dbObj = db_getDBObjectByDomainID($this->domain_id, $dbMain);\n } else {\n if (defined(\"SELECTED_DOMAIN_ID\")) {\n $dbObj = db_getDBObjectByDomainID(SELECTED_DOMAIN_ID, $dbMain);\n } else {\n $dbObj = db_getDBObject();\n }\n }\n\n unset($dbMain);\n\n /* it checks if the social_network is already a json, if it's does not encode again */\n if (is_array($this->social_network)) {\n $this->social_network = json_encode($this->social_network);\n }\n\n $this->prepareToSave();\n\n $aux_old_account = str_replace(\"'\", \"\", $this->old_account_id);\n $aux_account = str_replace(\"'\", \"\", $this->account_id);\n\n $this->friendly_url = string_strtolower($this->friendly_url);\n\n /*\n * TODO\n * Review calls of method save when adding/editing an item\n * Right now it's been called several times messing up some attributes values\n */\n if ($this->image_id == \"''\") {\n $this->image_id = \"NULL\";\n }\n if ($this->thumb_id == \"''\") {\n $this->thumb_id = \"NULL\";\n }\n if ($this->cover_id == \"''\") {\n $this->cover_id = \"NULL\";\n }\n if($this->account_id == \"''\") {\n $this->account_id = 'NULL';\n }\n\n if ($this->id) {\n\n $updateItem = true;\n\n $sql = \"UPDATE Listing SET\"\n . \" account_id = $this->account_id,\"\n . \" image_id = $this->image_id,\"\n . \" thumb_id = $this->thumb_id,\"\n . \" cover_id = $this->cover_id,\"\n . \" location_1 = $this->location_1,\"\n . \" location_2 = $this->location_2,\"\n . \" location_3 = $this->location_3,\"\n . \" location_4 = $this->location_4,\"\n . \" location_5 = $this->location_5,\"\n . \" renewal_date = $this->renewal_date,\"\n . \" discount_id = $this->discount_id,\"\n . \" reminder = $this->reminder,\"\n . \" updated = NOW(),\"\n . \" title = $this->title,\"\n . \" seo_title = $this->seo_title,\"\n . \" claim_disable = $this->claim_disable,\"\n . \" friendly_url = $this->friendly_url,\"\n . \" email = $this->email,\"\n . \" url = $this->url,\"\n . \" display_url = $this->display_url,\"\n . \" address = $this->address,\"\n . \" address2 = $this->address2,\"\n . \" zip_code = $this->zip_code,\"\n . \" phone = $this->phone,\"\n . \" fax = $this->fax,\"\n . \" description = $this->description,\"\n . \" seo_description = $this->seo_description,\"\n . \" long_description = $this->long_description,\"\n . \" video_snippet = $this->video_snippet,\"\n . \" video_url = $this->video_url,\"\n . \" video_description = $this->video_description,\"\n . \" keywords = $this->keywords,\"\n . \" seo_keywords = $this->seo_keywords,\"\n . \" attachment_file = $this->attachment_file,\"\n . \" attachment_caption = $this->attachment_caption,\"\n . \" features = $this->features,\"\n . \" price = $this->price,\"\n . \" social_network = $this->social_network,\"\n . \" status = $this->status,\"\n . \" level = $this->level,\"\n . \" hours_work = $this->hours_work,\"\n . \" locations = $this->locations,\"\n . \" listingtemplate_id = $this->listingtemplate_id,\"\n . \" custom_text0 = $this->custom_text0,\"\n . \" custom_text1 = $this->custom_text1,\"\n . \" custom_text2 = $this->custom_text2,\"\n . \" custom_text3 = $this->custom_text3,\"\n . \" custom_text4 = $this->custom_text4,\"\n . \" custom_text5 = $this->custom_text5,\"\n . \" custom_text6 = $this->custom_text6,\"\n . \" custom_text7 = $this->custom_text7,\"\n . \" custom_text8 = $this->custom_text8,\"\n . \" custom_text9 = $this->custom_text9,\"\n . \" custom_short_desc0 = $this->custom_short_desc0,\"\n . \" custom_short_desc1 = $this->custom_short_desc1,\"\n . \" custom_short_desc2 = $this->custom_short_desc2,\"\n . \" custom_short_desc3 = $this->custom_short_desc3,\"\n . \" custom_short_desc4 = $this->custom_short_desc4,\"\n . \" custom_short_desc5 = $this->custom_short_desc5,\"\n . \" custom_short_desc6 = $this->custom_short_desc6,\"\n . \" custom_short_desc7 = $this->custom_short_desc7,\"\n . \" custom_short_desc8 = $this->custom_short_desc8,\"\n . \" custom_short_desc9 = $this->custom_short_desc9,\"\n . \" custom_long_desc0 = $this->custom_long_desc0,\"\n . \" custom_long_desc1 = $this->custom_long_desc1,\"\n . \" custom_long_desc2 = $this->custom_long_desc2,\"\n . \" custom_long_desc3 = $this->custom_long_desc3,\"\n . \" custom_long_desc4 = $this->custom_long_desc4,\"\n . \" custom_long_desc5 = $this->custom_long_desc5,\"\n . \" custom_long_desc6 = $this->custom_long_desc6,\"\n . \" custom_long_desc7 = $this->custom_long_desc7,\"\n . \" custom_long_desc8 = $this->custom_long_desc8,\"\n . \" custom_long_desc9 = $this->custom_long_desc9,\"\n . \" custom_checkbox0 = $this->custom_checkbox0,\"\n . \" custom_checkbox1 = $this->custom_checkbox1,\"\n . \" custom_checkbox2 = $this->custom_checkbox2,\"\n . \" custom_checkbox3 = $this->custom_checkbox3,\"\n . \" custom_checkbox4 = $this->custom_checkbox4,\"\n . \" custom_checkbox5 = $this->custom_checkbox5,\"\n . \" custom_checkbox6 = $this->custom_checkbox6,\"\n . \" custom_checkbox7 = $this->custom_checkbox7,\"\n . \" custom_checkbox8 = $this->custom_checkbox8,\"\n . \" custom_checkbox9 = $this->custom_checkbox9,\"\n . \" custom_dropdown0 = $this->custom_dropdown0,\"\n . \" custom_dropdown1 = $this->custom_dropdown1,\"\n . \" custom_dropdown2 = $this->custom_dropdown2,\"\n . \" custom_dropdown3 = $this->custom_dropdown3,\"\n . \" custom_dropdown4 = $this->custom_dropdown4,\"\n . \" custom_dropdown5 = $this->custom_dropdown5,\"\n . \" custom_dropdown6 = $this->custom_dropdown6,\"\n . \" custom_dropdown7 = $this->custom_dropdown7,\"\n . \" custom_dropdown8 = $this->custom_dropdown8,\"\n . \" custom_dropdown9 = $this->custom_dropdown9,\"\n . \" number_views = $this->number_views,\"\n . \" avg_review = $this->avg_review,\"\n . \" latitude = $this->latitude,\"\n . \" longitude = $this->longitude,\"\n . \" map_zoom = $this->map_zoom,\"\n . \" package_id = $this->package_id,\"\n . \" package_price = $this->package_price,\"\n . \" clicktocall_number = $this->clicktocall_number,\"\n . \" clicktocall_extension = $this->clicktocall_extension,\"\n . \" clicktocall_date = $this->clicktocall_date\"\n . \" WHERE id = $this->id\";\n\n $dbObj->query($sql);\n\n $this->updateCategoryStatusByID();\n\n if ($aux_old_account != $aux_account && $aux_account != 0) {\n $accDomain = new Account_Domain($aux_account, SELECTED_DOMAIN_ID);\n $accDomain->Save();\n $accDomain->saveOnDomain($aux_account, $this);\n }\n\n } else {\n $sql = \"INSERT INTO Listing\"\n . \" (account_id,\"\n . \" image_id,\"\n . \" thumb_id,\"\n . \" cover_id,\"\n . \" location_1,\"\n . \" location_2,\"\n . \" location_3,\"\n . \" location_4,\"\n . \" location_5,\"\n . \" renewal_date,\"\n . \" discount_id,\"\n . \" reminder,\"\n . \" fulltextsearch_keyword,\"\n . \" fulltextsearch_where,\"\n . \" updated,\"\n . \" entered,\"\n . \" title,\"\n . \" seo_title,\"\n . \" claim_disable,\"\n . \" friendly_url,\"\n . \" email,\"\n . \" url,\"\n . \" display_url,\"\n . \" address,\"\n . \" address2,\"\n . \" zip_code,\"\n . \" phone,\"\n . \" fax,\"\n . \" description,\"\n . \" seo_description,\"\n . \" long_description,\"\n . \" video_snippet,\"\n . \" video_url,\"\n . \" video_description,\"\n . \" keywords,\"\n . \" seo_keywords,\"\n . \" attachment_file,\"\n . \" attachment_caption,\"\n . \" features,\"\n . \" price,\"\n . \" social_network,\"\n . \" status,\"\n . \" level,\"\n . \" hours_work,\"\n . \" locations,\"\n . \" listingtemplate_id,\"\n . \" custom_text0,\"\n . \" custom_text1,\"\n . \" custom_text2,\"\n . \" custom_text3,\"\n . \" custom_text4,\"\n . \" custom_text5,\"\n . \" custom_text6,\"\n . \" custom_text7,\"\n . \" custom_text8,\"\n . \" custom_text9,\"\n . \" custom_short_desc0,\"\n . \" custom_short_desc1,\"\n . \" custom_short_desc2,\"\n . \" custom_short_desc3,\"\n . \" custom_short_desc4,\"\n . \" custom_short_desc5,\"\n . \" custom_short_desc6,\"\n . \" custom_short_desc7,\"\n . \" custom_short_desc8,\"\n . \" custom_short_desc9,\"\n . \" custom_long_desc0,\"\n . \" custom_long_desc1,\"\n . \" custom_long_desc2,\"\n . \" custom_long_desc3,\"\n . \" custom_long_desc4,\"\n . \" custom_long_desc5,\"\n . \" custom_long_desc6,\"\n . \" custom_long_desc7,\"\n . \" custom_long_desc8,\"\n . \" custom_long_desc9,\"\n . \" custom_checkbox0,\"\n . \" custom_checkbox1,\"\n . \" custom_checkbox2,\"\n . \" custom_checkbox3,\"\n . \" custom_checkbox4,\"\n . \" custom_checkbox5,\"\n . \" custom_checkbox6,\"\n . \" custom_checkbox7,\"\n . \" custom_checkbox8,\"\n . \" custom_checkbox9,\"\n . \" custom_dropdown0,\"\n . \" custom_dropdown1,\"\n . \" custom_dropdown2,\"\n . \" custom_dropdown3,\"\n . \" custom_dropdown4,\"\n . \" custom_dropdown5,\"\n . \" custom_dropdown6,\"\n . \" custom_dropdown7,\"\n . \" custom_dropdown8,\"\n . \" custom_dropdown9,\"\n . \" number_views,\"\n . \" avg_review,\"\n . \" latitude,\"\n . \" longitude,\"\n . \" map_zoom,\"\n . \" package_id,\"\n . \" package_price,\"\n . \" clicktocall_number,\"\n . \" clicktocall_extension,\"\n . \" clicktocall_date)\"\n . \" VALUES\"\n . \" ($this->account_id,\"\n . \" $this->image_id,\"\n . \" $this->thumb_id,\"\n . \" $this->cover_id,\"\n . \" $this->location_1,\"\n . \" $this->location_2,\"\n . \" $this->location_3,\"\n . \" $this->location_4,\"\n . \" $this->location_5,\"\n . \" $this->renewal_date,\"\n . \" $this->discount_id,\"\n . \" $this->reminder,\"\n . \" '',\"\n . \" '',\"\n . \" NOW(),\"\n . \" NOW(),\"\n . \" $this->title,\"\n . \" $this->seo_title,\"\n . \" $this->claim_disable,\"\n . \" $this->friendly_url,\"\n . \" $this->email,\"\n . \" $this->url,\"\n . \" $this->display_url,\"\n . \" $this->address,\"\n . \" $this->address2,\"\n . \" $this->zip_code,\"\n . \" $this->phone,\"\n . \" $this->fax,\"\n . \" $this->description,\"\n . \" $this->seo_description,\"\n . \" $this->long_description,\"\n . \" $this->video_snippet,\"\n . \" $this->video_url,\"\n . \" $this->video_description,\"\n . \" $this->keywords,\"\n . \" $this->seo_keywords,\"\n . \" $this->attachment_file,\"\n . \" $this->attachment_caption,\"\n . \" $this->features,\"\n . \" $this->price,\"\n . \" $this->social_network,\"\n . \" $this->status,\"\n . \" $this->level,\"\n . \" $this->hours_work,\"\n . \" $this->locations,\"\n . \" $this->listingtemplate_id,\"\n . \" $this->custom_text0,\"\n . \" $this->custom_text1,\"\n . \" $this->custom_text2,\"\n . \" $this->custom_text3,\"\n . \" $this->custom_text4,\"\n . \" $this->custom_text5,\"\n . \" $this->custom_text6,\"\n . \" $this->custom_text7,\"\n . \" $this->custom_text8,\"\n . \" $this->custom_text9,\"\n . \" $this->custom_short_desc0,\"\n . \" $this->custom_short_desc1,\"\n . \" $this->custom_short_desc2,\"\n . \" $this->custom_short_desc3,\"\n . \" $this->custom_short_desc4,\"\n . \" $this->custom_short_desc5,\"\n . \" $this->custom_short_desc6,\"\n . \" $this->custom_short_desc7,\"\n . \" $this->custom_short_desc8,\"\n . \" $this->custom_short_desc9,\"\n . \" $this->custom_long_desc0,\"\n . \" $this->custom_long_desc1,\"\n . \" $this->custom_long_desc2,\"\n . \" $this->custom_long_desc3,\"\n . \" $this->custom_long_desc4,\"\n . \" $this->custom_long_desc5,\"\n . \" $this->custom_long_desc6,\"\n . \" $this->custom_long_desc7,\"\n . \" $this->custom_long_desc8,\"\n . \" $this->custom_long_desc9,\"\n . \" $this->custom_checkbox0,\"\n . \" $this->custom_checkbox1,\"\n . \" $this->custom_checkbox2,\"\n . \" $this->custom_checkbox3,\"\n . \" $this->custom_checkbox4,\"\n . \" $this->custom_checkbox5,\"\n . \" $this->custom_checkbox6,\"\n . \" $this->custom_checkbox7,\"\n . \" $this->custom_checkbox8,\"\n . \" $this->custom_checkbox9,\"\n . \" $this->custom_dropdown0,\"\n . \" $this->custom_dropdown1,\"\n . \" $this->custom_dropdown2,\"\n . \" $this->custom_dropdown3,\"\n . \" $this->custom_dropdown4,\"\n . \" $this->custom_dropdown5,\"\n . \" $this->custom_dropdown6,\"\n . \" $this->custom_dropdown7,\"\n . \" $this->custom_dropdown8,\"\n . \" $this->custom_dropdown9,\"\n . \" $this->number_views,\"\n . \" $this->avg_review,\"\n . \" $this->latitude,\"\n . \" $this->longitude,\"\n . \" $this->map_zoom,\"\n . \" $this->package_id,\"\n . \" $this->package_price,\"\n . \" $this->clicktocall_number,\"\n . \" $this->clicktocall_extension,\"\n . \" $this->clicktocall_date)\";\n\n $dbObj->query($sql);\n $this->id = mysql_insert_id($dbObj->link_id);\n\n /*\n * Used to package\n */\n $this->prepareToUse(); //prevent some fields to be saved with empty quotes\n\n //Reload the Listing object variables\n\n $sql = \"SELECT * FROM Listing WHERE id = $this->id\";\n $row = mysql_fetch_array($dbObj->query($sql));\n $this->makeFromRow($row);\n $this->prepareToSave();\n\n if ($aux_account != 0) {\n domain_SaveAccountInfoDomain($aux_account, $this);\n }\n\n }\n\n if ((sess_getAccountIdFromSession() && string_strpos($_SERVER[\"PHP_SELF\"],\n \"listing.php\") !== false) || string_strpos($_SERVER[\"PHP_SELF\"], \"order_\") !== false\n ) {\n $rowTimeline = array();\n $rowTimeline[\"item_type\"] = \"listing\";\n $rowTimeline[\"action\"] = ($updateItem ? \"edit\" : \"new\");\n $rowTimeline[\"item_id\"] = str_replace(\"'\", \"\", $this->id);\n $timelineObj = new Timeline($rowTimeline);\n $timelineObj->save();\n }\n\n $this->prepareToUse();\n\n $this->setFullTextSearch();\n }", "title": "" }, { "docid": "fea1e2a124809f3b4d95f137b050541d", "score": "0.60938364", "text": "public function item_save($record) {\n global $DB;\n\n // $this->userfeedbackmask\n // +--- children inherited limited access\n // | +--- parents were made available for all\n // | | +--- children were hided because this item was hided\n // | | | +--- parents were shown because this item was shown\n // | | | | +--- new|edit\n // | | | | | +--- success|fail\n // [0|1] - [0|1] - [0|1] - [0|1] - [0|1] - [0|1]\n // last digit (on the right, of course) == 1 means that the process was globally successfull\n // last digit (on the right, of course) == 0 means that the process was globally NOT successfull\n\n // beforelast digit == 0 means NEW\n // beforelast digit == 1 means EDIT\n\n // (digit in place 2) == 1 means items were shown because this (as child) was shown\n // (digit in place 3) == 1 means items were hided because this (as parent) was hided\n // (digit in place 4) == 1 means items reamin as they are because unlimiting parent does not force any change to children\n // (digit in place 5) == 1 means items inherited limited access because this (as parent) got a limited access\n\n $tablename = 'surveypro'.$this->type.'_'.$this->plugin;\n $this->userfeedbackmask = SURVEYPRO_NOFEEDBACK;\n\n // Does this record need to be saved as new record or as un update on a preexisting record?\n if (empty($record->itemid)) {\n // item is new\n\n // sortindex\n $sql = 'SELECT COUNT(\\'x\\')\n FROM {surveypro_item}\n WHERE surveyproid = :surveyproid\n AND sortindex > 0';\n $whereparams = array('surveyproid' => $this->cm->instance);\n $record->sortindex = 1 + $DB->count_records_sql($sql, $whereparams);\n\n // itemid\n try {\n $transaction = $DB->start_delegated_transaction();\n\n if ($itemid = $DB->insert_record('surveypro_item', $record)) { // <-- first surveypro_itemsave\n\n // $tablename\n // before saving to the the plugin table, validate the variable name\n $this->item_validate_variablename($record, $itemid);\n\n $record->itemid = $itemid;\n if ($pluginid = $DB->insert_record($tablename, $record)) { // <-- first $tablename save\n $this->userfeedbackmask += 1; // 0*2^1+1*2^0\n }\n }\n\n // special care to \"editors\"\n if ($editors = $this->get_editorlist()) {\n $editoroptions = array('trusttext' => true, 'subdirs' => false, 'maxfiles' => -1, 'context' => $this->context);\n foreach ($editors as $fieldname => $filearea) {\n $record = file_postupdate_standard_editor($record, $fieldname, $editoroptions, $this->context, 'mod_surveypro', $filearea, $record->itemid);\n $record->{$fieldname.'format'} = FORMAT_HTML;\n }\n\n // tablename\n // id\n $record->id = $pluginid;\n\n if (!$DB->update_record($tablename, $record)) { // <-- $tablename update\n $this->userfeedbackmask -= ($this->userfeedbackmask % 2); // whatever it was, now it is a fail\n // } else {\n // leave the previous $this->userfeedbackmask\n // if it was a success, leave it as now you got one more success\n // if it was a fail, leave it as you can not cover the previous fail\n }\n // record->content follows standard flow and has already been saved at first save time\n }\n\n $transaction->allow_commit();\n\n // event: item_created\n $eventdata = array('context' => $this->context, 'objectid' => $record->itemid);\n $eventdata['other'] = array('type' => $record->type, 'plugin' => $record->plugin, 'view' => SURVEYPRO_EDITITEM);\n $event = \\mod_surveypro\\event\\item_created::create($eventdata);\n $event->trigger();\n } catch (Exception $e) {\n // extra cleanup steps\n $transaction->rollback($e); // rethrows exception\n }\n } else {\n // item is already known\n\n // special care to \"editors\"\n if ($editors = $this->get_editorlist()) {\n $editoroptions = array('trusttext' => true, 'subdirs' => false, 'maxfiles' => -1, 'context' => $this->context);\n foreach ($editors as $fieldname => $filearea) {\n $record = file_postupdate_standard_editor($record, $fieldname, $editoroptions, $this->context, 'mod_surveypro', $filearea, $record->itemid);\n $record->{$fieldname.'format'} = FORMAT_HTML;\n }\n // } else {\n // record->content follows standard flow and will be evaluated in the standard way\n }\n\n // hide/unhide part 1\n $oldhidden = $this->get_hidden(); // used later\n // $oldhidden = $DB->get_field('surveypro_item', 'hidden', array('id' => $record->itemid)); // used later\n // end of: hide/unhide 1\n\n // limit/unlimit access part 1\n $oldadvanced = $this->get_advanced(); // used later\n // end of: limit/unlimit access part 1\n\n // sortindex\n // doesn't change at item editing time\n\n // surveypro_item\n // id\n $record->id = $record->itemid;\n\n try {\n $transaction = $DB->start_delegated_transaction();\n\n if ($DB->update_record('surveypro_item', $record)) {\n // $tablename\n\n // before saving to the the plugin table, I validate the variable name\n $this->item_validate_variablename($record, $record->itemid);\n\n $record->id = $record->pluginid;\n if ($DB->update_record($tablename, $record)) {\n $this->userfeedbackmask += 3; // 1*2^1+1*2^0 alias: editing + success\n } else {\n $this->userfeedbackmask += 2; // 1*2^1+0*2^0 alias: editing + fail\n }\n } else {\n $this->userfeedbackmask += 2; // 1*2^1+0*2^0 alias: editing + fail\n }\n\n $transaction->allow_commit();\n } catch (Exception $e) {\n // extra cleanup steps\n $transaction->rollback($e); // rethrows exception\n }\n\n // save process is over\n\n $this->item_manage_chains($record->itemid, $oldhidden, $record->hidden, $oldadvanced, $record->advanced);\n\n // event: item_modified\n $eventdata = array('context' => $this->context, 'objectid' => $record->itemid);\n $eventdata['other'] = array('type' => $record->type, 'plugin' => $record->plugin, 'view' => SURVEYPRO_EDITITEM);\n $event = \\mod_surveypro\\event\\item_modified::create($eventdata);\n $event->trigger();\n }\n\n // $this->userfeedbackmask is going to be part of $returnurl in items_setup.php and to be send to items_manage.php\n return $record->itemid;\n }", "title": "" }, { "docid": "15d11192346c779d979376fafb85c239", "score": "0.609021", "text": "abstract public function save() : bool;", "title": "" }, { "docid": "6363743bef51ae48a9662d91a0daed43", "score": "0.6078698", "text": "public function save()\n {\n try {\n $self = self::toArray();\n self::insert($self);\n $success = $self;\n } catch (Exeption $e) {\n $success = false;\n }\n\n return $success;\n }", "title": "" }, { "docid": "be0fb0abdc584228b2fb1236ebfad936", "score": "0.60755193", "text": "public function update_slider_item_post()\n\t{\n\t\t//item id\n\t\t$id = $this->input->post('id', true);\n\t\tif ($this->slider_model->update_item($id)) {\n\t\t\t$this->session->set_flashdata('success', trans(\"msg_updated\"));\n\t\t\tredirect(admin_url() . 'slider-items');\n\t\t} else {\n\t\t\t$this->session->set_flashdata('error', trans(\"msg_error\"));\n\t\t\tredirect($this->agent->referrer());\n\t\t}\n\t}", "title": "" }, { "docid": "f443578aa1cd6e4dbae7ff0e597a67d0", "score": "0.6074579", "text": "public function add_to_save_list()\n {\n\n $output = array();\n\n if(!empty($this->user_info)){\n\n //first validate the post variable\n $_POST=filter_var_array($_POST, FILTER_SANITIZE_STRING);\n\n //store `post_id` index from $_POST variable\n $post_id = isset($_POST[\"post_id\"]) ? $_POST[\"post_id\"] : null;\n\n //store the `saved_post` model's object from $this->modal variable\n $sp_obj = $this->model_objs[\"sp_obj\"];\n \n \n if($this->if_user_saved_the_post($post_id)){\n\n //user already saved the post let's remove from her/his saved list\n $delete_saved_post=$sp_obj->delete(array(\n \"where\"=>\"saved_posts.user_id={$this->user_info['user_id']} AND saved_posts.post_id={$post_id}\"\n ));\n \n if($delete_saved_post[\"status\"] == 1 && $delete_saved_post[\"affected_rows\"] == 1){\n\n $output = array(\n \"error_status\"=>0\n );\n\n }else{\n\n $output = array(\n \"error_status\"=>100,\n \"errors\"=>$delete_saved_post\n );\n\n }\n\n }else{\n \n //user did not save the post. let's add the post in saved list\n $saved_post=$sp_obj->insert(array(\n \"fields\"=>array(\n \"user_id\"=>$this->user_info[\"user_id\"],\n \"post_id\"=>$post_id\n )\n ));\n \n if($saved_post[\"status\"] == 1 && isset($saved_post[\"insert_id\"])){\n\n $output = array(\n \"error_status\"=>0\n );\n\n }else{\n\n $output = array(\n \"error_status\"=>100,\n \"errors\"=>$saved_post\n );\n\n }\n }\n \n }else{\n\n $output = array(\n \"error_status\"=>1\n );\n }\n\n\n echo json_encode($output);\n\n \n }", "title": "" }, { "docid": "e801ee47adb44fd3257fdc0d23b7751d", "score": "0.606494", "text": "function UKMwpat_ma_save($post_id) {\n\t// so we dont want to do anything\n \tif ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) \n \treturn $post_id;\n\n\tglobal $post;\n\tif( isset( $_POST['ukm_ma_author'] ) ) {\n\t\trequire_once('class/Bidragsytere.php');\n\t\t$bidragsytere = new Bidragsytere($post->ID);\n\t\n\t\t$bidragsytere->leggTil($_POST['ukm_ma_author'], $_POST['ukm_ma_role']);\n\t\t$bidragsytere->lagre();\n\t}\n\treturn true;\n}", "title": "" }, { "docid": "0f8f0de7302ee65da63abeb2e9750467", "score": "0.60564834", "text": "public function save() {\n $goaround = array();\n foreach($this->developer as $needed) {\n $goaround[] = '\"'.$needed.'\"';\n }\n try {\n $save = $this->insertData($goaround);\n if ($save) {\n return true;\n }\n }\n catch (Exception $e) {\n echo \"An Error there was.<br>\".\n \"error code:\".$e->getCode().\"<br>\".\n $e->getMessage();\n }\n return false;\n }", "title": "" }, { "docid": "6e2b2393268023739a7afe0e913ea304", "score": "0.605176", "text": "public function store()\n\t{\n $item = new PurchasedItem();\n $item->userId = $this->user->id;\n $item->description = Input::get('description');\n $item->price = Input::get('price');\n $validator = Validator::make($item->toArray(), PurchasedItem::$rules);\n if($validator->passes() && $item->push()) {\n return Redirect::action('PurchasedItemController@create')\n ->with('message', 'Item has been added.');\n }\n return Redirect::action('PurchasedItemController@create')\n ->with('message', 'Item not added.')\n ->withInput();\n\t}", "title": "" }, { "docid": "290035c21e1e72a05960c49ff8b96fe3", "score": "0.6050328", "text": "public function testPersistAndSave()\n {\n $emotico = $this->getItem();\n\n /**\n * test add\n */\n self::$ItemId = $this->_genericRepository->persistAndSave($emotico);\n\n $this->assertGreaterThan(0, self::$ItemId);\n\n /**\n * test update\n */\n $emotico->setId(self::$ItemId);\n\n $id_update = $this->_genericRepository->persistAndSave($emotico);\n\n $this->assertEquals(self::$ItemId, $id_update);\n }", "title": "" }, { "docid": "1386d80765f95323500d891626bcd54b", "score": "0.60450834", "text": "public function saveItem(array $itemData)\n {\n $errors = array();\n if(!isset($itemData['item']['cat_id'])){\n $errors[] = 'undefined_category';\n }else{\n if(intval($itemData['item']['cat_id']) == 0){\n $errors[] = 'undefined_category';\n }\n }\n if(!isset($itemData['item']['item_status'])){\n $itemData['item']['item_status'] == 3;\n }else{\n if(!array_key_exists($itemData['item_status'],App_Items_Shared_Core::itemStatus())){\n $itemData['item']['item_status'] == 3;\n }\n }\n if(!isset($itemData['item_langs'])){\n $errors[] = 'item_lang_array_empty';\n }\n\n //All fine save item\n if(count($errors) == 0){\n if(intval($itemData['item']['item_id']) == 0){\n #-------------------------------\n # Add new item\n #-------------------------------\n $this->db->insert('items',$itemData['item']);\n $itemId = $this->db->lastInsertId();\n //-------------------------------\n // Save item Lang\n //-------------------------------\n foreach($itemData['item_langs'] as $itemLang )\n {\n $itemLang['item_id'] = $itemId;\n $this->db->insert('items_lang',$itemLang);\n }\n //-------------------------------\n // Save item fields\n //-------------------------------\n $this->db->insert('items_fields_data',array('item_id'=>$itemId));\n foreach($itemData['fields'] as $field_id=>$field_value)\n {\n $where = $this->db->quoteInto('item_id = ? ', $itemId);\n $this->db->update('items_fields_data',array('field_'.$field_id=>$field_value),$where);\n }\n //-------------------------------\n // Save item fields lang\n //-------------------------------\n foreach($itemData['fields_lang'] as $lang_id=>$fields)\n {\n $this->db->insert('items_fields_data_lang',array('item_id'=>$itemId,'lang_id'=>$lang_id));\n if(is_array($fields)){\n foreach($fields as $field_id=>$field_value)\n {\n $where = $this->db->quoteInto('item_id = ? AND ', $itemId);\n $where.= $this->db->quoteInto('lang_id = ? ', $lang_id);\n $this->db->update('items_fields_data_lang',array('field_'.$field_id=>$field_value),$where);\n }\n }\n }\n }else{\n #-------------------------------\n # Update exists item\n #-------------------------------\n $itemId = $itemData['item']['item_id'];\n unset($itemData['item']['item_id']);\n $where = $this->db->quoteInto('item_id = ? ', $itemId);\n $this->db->update('items',$itemData['item'],$where);\n #-------------------------------\n # Update/Insert item lang\n #-------------------------------\n foreach($itemData['item_langs'] as $itemLang )\n {\n $itemLang['item_id'] = $itemId;\n $query = $this->db->select()->from('items_lang');\n $query->where('item_id = ?',$itemLang['item_id']);\n $query->where('lang_id = ?',$itemLang['lang_id']);\n if(!$this->db->fetchRow($query)){\n //-------------------------------\n // Insert item lang\n //-------------------------------\n $this->db->insert('items_lang',$itemLang);\n }else{\n //-------------------------------\n // Update item lang\n //-------------------------------\n $where = $this->db->quoteInto('item_id = ? AND ', $itemId);\n $where.= $this->db->quoteInto('lang_id = ? ', $itemLang['lang_id']);\n $this->db->update('items_lang',$itemLang,$where);\n }\n }\n\n #-------------------------------\n # Update/Insert item field\n #-------------------------------\n\n foreach($itemData['fields'] as $field_id=>$field_value)\n {\n $fieldData = $this->MC->Queries->getField($field_id);\n $fieldClass = 'App_Items_Shared_FieldsTypes_'.$fieldData['field_type'].'_Field';\n $field_value = $fieldClass::setFieldValue($field_value);\n if(count($fieldClass::$_fieldErrors) == 0){\n $this->updateField($itemId,$field_id,$field_value);\n }else{\n $this->_errors = array_merge($this->_errors,$fieldClass::$_fieldErrors);\n }\n }\n\n //-------------------------------\n // Save item fields lang\n //-------------------------------\n\n foreach($itemData['fields_lang'] as $lang_id=>$fields)\n {\n foreach($fields as $field_id=>$field_value)\n {\n $fieldData = $this->MC->Queries->getField($field_id);\n $fieldClass = 'App_Items_Shared_FieldsTypes_'.$fieldData['field_type'].'_Field';\n $field_value = $fieldClass::setFieldValue($field_value);\n if(count($fieldClass::$_fieldErrors) == 0){\n $this->updateField($itemId,$field_id,$field_value,$lang_id,true);\n }else{\n $this->_errors = array_merge($this->_errors,$fieldClass::$_fieldErrors);\n }\n }\n }\n }\n if(empty($itemData['item']['item_url'])){\n $where = $this->db->quoteInto('item_id = ? ', $itemId);\n $this->db->update('items',array('item_url'=>'item-'.$itemId),$where);\n }\n $return = array('success'=>true,'item_id'=>$itemId);\n }else{\n //An error occurred\n $return = array('errors'=>$errors);\n }\n return $return;\n }", "title": "" }, { "docid": "b4ac39654631eb00e3ffd95ae5960ca2", "score": "0.6040661", "text": "function save()\n {\n \t global $mainframe;\t\n // JRequest::setVar('model', 'team');\n $model = $this->getModel('team');\n\t\t $post\t= (array)JRequest::get('post');\n if( $model->store($post) )\n {\n $msg = JText::_('Record Saved');\n \t\t$link = 'index.php?option=com_teams&view=teamss';\n \t\t$this->setRedirect($link, $msg);\n }\n else\n {\n \t\t$mainframe->setUserState( \"post\", $post);\n $msg = JText::_('Error - Record Not Saved');\n \t\t$link = 'index.php?option=com_teams&controller=team&task=add&view=team&layout=form';\n \t\t$this->setRedirect($link, $msg);\n }\n\n }", "title": "" }, { "docid": "b0d7bc0d8d779f3f85b5b7f8f2e673b1", "score": "0.60405785", "text": "public function save(){\n return $this->__save();\n }", "title": "" }, { "docid": "a2ac0cffc7a0e89daa413d41a185235d", "score": "0.60390645", "text": "public function save(){\n\t\tif(!$this->beforeSave()){\n\t\t\treturn false;\n\t\t}\n\t\t$success= false;\n\t\tif($this->saveShouldUpdate()){\n\t\t\t$success= $this->update();\n\t\t}else if($this->hasError()){\n\t\t\t$success= false;\n\t\t}else{\n\t\t\t$success= $this->insert();\n\t\t}\n\t\t$this->afterSave($success);\n\t\treturn $success;\n\t}", "title": "" }, { "docid": "a3abf603e522eaee4a548f3112ccc85f", "score": "0.60373116", "text": "public function Save()\r\n\t{\r\n\t\t$this->datetime = date('Y-m-d h:i:s');\r\n\r\n\t\t// first check if id exist..\r\n\t\tif ($this->id) {\r\n\t\t\t$this->updateResponse();\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\t$id = $this->insertResponse();\r\n\t\t\tif ($id !== false) {\r\n\t\t\t \treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "02325d482754f1ff67a453105ba6d1be", "score": "0.60342515", "text": "abstract public function save();", "title": "" }, { "docid": "02325d482754f1ff67a453105ba6d1be", "score": "0.60342515", "text": "abstract public function save();", "title": "" }, { "docid": "02325d482754f1ff67a453105ba6d1be", "score": "0.60342515", "text": "abstract public function save();", "title": "" }, { "docid": "d25a6baa0dec6baad896913a94909b86", "score": "0.60334635", "text": "public function save()\n {\n $this->beforeSave();\n\n // Arrays for holding save data\n $post = array();\n $meta = array();\n $post['post_status'] = $this->post_status;\n\n // Get the default class variables and set it's keys to forbiddenKeys\n $defaultData = get_class_vars(get_class($this));\n $forbiddenKeys = array_keys($defaultData);\n\n $data = array_filter(get_object_vars($this), function ($item) use ($forbiddenKeys) {\n return !in_array($item, $forbiddenKeys);\n }, ARRAY_FILTER_USE_KEY);\n\n // If data key is allowed post field add to $post else add to $meta\n foreach ($data as $key => $value) {\n if (in_array($key, $this->allowedPostFields)) {\n $post[$key] = $value;\n continue;\n }\n\n $meta[$key] = $value;\n }\n\n // Save empty meta to array\n $empty_meta_values = array_filter($meta, array($this, 'getEmptyValues'));\n\n // Do not include null values in meta\n $meta = array_filter($meta, array($this, 'removeEmpty'));\n\n $post['post_type'] = $this->post_type;\n $post['meta_input'] = $meta;\n\n // Check if duplicate by matching \"_event_manager_id\" meta value\n if (isset($meta['_event_manager_id'])) {\n $duplicate = self::get(\n 1,\n array(\n 'relation' => 'AND',\n array(\n 'key' => '_event_manager_id',\n 'value' => $meta['_event_manager_id'],\n 'compare' => '='\n )\n ),\n $this->post_type\n );\n }\n\n // Update if duplicate\n if (isset($duplicate->ID)) {\n /*\n Check if event needs to be updated\n Hours has intentianally been removed from compare,\n as it is may cause timezone issues. \n Known flaws: \n - Unneccsesary update can be executed at new day\n - Update may not go trough if post is saved \n exactly the same minute of any hour. \n But will work most of the time.\n */\n\n $localTime = date(\"Y-m-d \\H:i:s\", strtotime(get_post_meta($duplicate->ID, 'last_update', true)));\n $remoteTime = date(\"Y-m-d \\H:i:s\", strtotime($meta['last_update']));\n\n if ($localTime != $remoteTime) {\n $post['ID'] = $duplicate->ID;\n $this->ID = wp_update_post($post);\n $isDuplicate = true;\n } else {\n return false;\n }\n } else {\n // Create if not duplicate, and occasions exists\n if (isset($post['meta_input']['occasions_complete']) && !empty($post['meta_input']['occasions_complete'])) {\n $this->ID = wp_insert_post($post, true);\n } else {\n return false;\n }\n }\n\n // Remove empty meta values from db\n $this->removeEmptyMeta($empty_meta_values, $this->ID);\n\n return $this->afterSave();\n }", "title": "" }, { "docid": "e2e00149c60b732eb9815b07c41d98fd", "score": "0.60327995", "text": "public function hookAfterSaveItem($args)\n {\n if (!$args['post']) {\n return;\n }\n\n $item = $args['record'];\n $post = $args['post'];\n\n // Loop through and see if there are any files to zoom.\n // Only checked values are posted.\n $filesave = false;\n $view = get_view();\n $creator = new OpenLayersZoom_TileBuilder();\n $files = $creator->getFilesById($item);\n foreach ($post as $key => $value) {\n // Key is the file id of the stored image, value is the filename.\n if (strpos($key, 'open_layers_zoom_filename_') !== false) {\n $file = (int) substr($key, strlen('open_layers_zoom_filename_'));\n if (empty($files[$file])) {\n continue;\n }\n if (!$view->openLayersZoom()->isZoomed($files[$file])) {\n $creator->createTiles($value);\n }\n $filesaved = true;\n }\n elseif ((strpos($key, 'open_layers_zoom_removed_hidden_') !== false) && ($filesaved != true)) {\n $creator->removeZDataDir($value);\n }\n }\n }", "title": "" }, { "docid": "1e8c26841ae30f4cb9df2b1fc762852f", "score": "0.6027336", "text": "public function save_to_shopping_list()\r\n\t{\r\n\t\treturn $this->_saveItem('shopping_list');\r\n\t}", "title": "" }, { "docid": "9de44dea8b36e4fe50a829451731f505", "score": "0.60266167", "text": "public function save(): bool\n {\n return $this->datastore\n ->setInline(4)\n ->write($this->output());\n }", "title": "" }, { "docid": "38a1d3493bc94365fb9c67a236e10db7", "score": "0.6016174", "text": "public function save($inventory) {\n foreach ($inventory->getItems() as $i) {\n // Insert item\n $successSaveItem = $this->saveItem($inventory->getId(), $i);\n if (!$successSaveItem) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "c0a83fcbd21f4e8889e123b67cf9df05", "score": "0.6014062", "text": "public function save()\n\t{\n\t\t// CSRF prevention\n\t\t$this->csrfProtection();\n\n\t\tif (!$this->applySave())\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$textKey = strtoupper($this->container->componentName . '_LBL_' . $this->container->inflector->singularize($this->view) . '_SAVED');\n\n\t\tif ($customURL = $this->input->getBase64('returnurl', ''))\n\t\t{\n\t\t\t$customURL = base64_decode($customURL);\n\t\t}\n\n\t\t$url = !empty($customURL) ? $customURL : 'index.php?option=' . $this->container->componentName . '&view=' . $this->container->inflector->pluralize($this->view) . $this->getItemidURLSuffix();\n\t\t$this->setRedirect($url, \\JText::_($textKey));\n\t}", "title": "" }, { "docid": "e6313536ed9a02fbc0924a5f09c476b1", "score": "0.6004893", "text": "function save($post_id){\n if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) return $post_id;\n // check wpnonce\n if ( !isset( $_POST['branche_data_nonce'] ) || !wp_verify_nonce( $_POST['branche_data_nonce'], basename( __FILE__ ) ) ) return $post_id;\n //user can?\n if ( !current_user_can( 'edit_post', $post_id ) ) return $post_id;\n //go\n $post = get_post($post_id);\n \n update_post_meta($post_id, 'responsible', esc_attr($_POST['responsible']));\n update_post_meta($post_id, 'branche_phone', esc_attr($_POST['branche_phone']));\n update_post_meta($post_id, 'branche_product', esc_attr($_POST['branche_product']));\n update_post_meta($post_id, 'branche_indicators', esc_attr($_POST['branche_indicators']));\n update_post_meta($post_id, 'process_category_id', esc_attr($_POST['process_category_id']));\n\n\n\n \n }", "title": "" }, { "docid": "b3034db8a0da8a1ceaae5b5119a55cca", "score": "0.6002727", "text": "function ieteikt_post_save($post_id)\n{\n\tif(defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) return;\n\tif(!wp_verify_nonce($_POST['ieteikt_check'], plugin_basename(__FILE__))) return;\n\n\n\tif($_POST['post_type'] == 'page' || $_POST['post_type'] == 'post')\n\t{\n\t\tif(!current_user_can('edit_page', $post_id) && !current_user_can('edit_post', $post_id)) return;\n\t}\n\telse\n\t{\n\t\treturn;\n\t}\n\n\t\n\t$checked = ($_POST['ieteikt_draugiem']) ? 1 : 0;\n\tupdate_post_meta($post_id, 'ieteikt_draugiem', $checked);\n}", "title": "" }, { "docid": "bde5eae9be67c23765cdc5f49fabfbb2", "score": "0.59962237", "text": "public function save(){\n // validate\n if(!$this->validate()){\n return false;\n }\n\n return $this->saveToDatabase();\n }", "title": "" }, { "docid": "bde5eae9be67c23765cdc5f49fabfbb2", "score": "0.59962237", "text": "public function save(){\n // validate\n if(!$this->validate()){\n return false;\n }\n\n return $this->saveToDatabase();\n }", "title": "" }, { "docid": "bde5eae9be67c23765cdc5f49fabfbb2", "score": "0.59962237", "text": "public function save(){\n // validate\n if(!$this->validate()){\n return false;\n }\n\n return $this->saveToDatabase();\n }", "title": "" }, { "docid": "cbbf4122e25cc69636cae4d176c50e98", "score": "0.5991793", "text": "private function _Save(TableObject $item)\n {\n $item->Save();\n }", "title": "" }, { "docid": "58f1b49913035763c1ed517d3f03428a", "score": "0.59845597", "text": "private function save(){\n\t\tif($this->value[1] == 'account')\n\t\t{\n\t\t\tUser::Singleton()->update_from_post();\n\t\t\tCommon::redirect('account');\n\t\t}\n\n\t\tif(post::variable('new_type', 'is_set'))\n\t\t{\n\t\t\t$this->security_page_edit();\n\n\t\t\tif(post::variable('new_type') === 'newPage')\n\t\t\t{\n\t\t\t\t$this->security_page_approve();\n\t\t\t\t$this->create_new_page($this->value[1]);\n\t\t\t}\r\n\t\t\telse if(post::variable('new_type') === 'newProduct')\r\n\t\t\t{\r\n\t\t\t\t$this->security_page_approve();\r\n\t\t\t\t$this->create_new_product();\r\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$element = Element::type(post::variable('new_type', 'string'));\n\t\t\t\t$element->create($this->value[1]);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->security_element_edit();\n\n\t\t\t$element = Element::type($this->value[1]);\n\t\t\t$element->build($this->value[1]);\n\t\t\tif($element->save(false))\n\t\t\t{\n\t\t\t\t$this->saved($element->main());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//Save failed show error page\n\t\t\t}\n\t\t}\n\t\tcommon::redirect($this->value[1]);\n\t}", "title": "" }, { "docid": "8894f56f54c5ec14c5e2264868d3dd91", "score": "0.5978412", "text": "public function save() {\n\t\tif (ModelValidator::isValid($this)) {\n\t\t\tself::getEntity()->persist($this);\n\t\t\tself::getEntity()->flush();\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "d38e331170984dc872f7e81f75248cfa", "score": "0.59770465", "text": "public function save () {\n\t\t$table = Website_Model_CbFactory::factory('Website_Model_MysqlTable','ingredient');\n\t\tif ($this->id) {\n\t\t\t// Update\n\t\t\t$table->update ( $this->dataBaseRepresentation (), 'id = ' . $this->id) ;\n\t\t\t$return = true ;\n\t\t} else {\n\t\t\t// Insert new ingredient\n\t\t\t$data = $this->dataBaseRepresentation ();\n\t\t\t$data['insertDate'] = $this->insertDate = date(Website_Model_DateFormat::PHPDATE2MYSQLTIMESTAMP);\n\t\t\t$return = $this->id = $table->insert ( $data ) ;\n\t\t}\n\t\t// Erfolg zurückgeben\n\t\treturn $return ;\n\t}", "title": "" }, { "docid": "da93d0bb66b222daaacdb7f4f4e07409", "score": "0.5975683", "text": "public function insertItem(&$item = null, $set = true)\n {\n $db = $this->getDBO();\n\n if($item) {\n if(!$db->insertObject($this->table, $item, $this->key)){\n $this->setError($db->getErrorMsg());\n return false;\n }\n\n if($set) {\n $this->setItem($item);\n }\n\n return true;\n }\n\n if(!$db->insertObject($this->table, $this->item, $this->key)){\n $this->setError($db->getErrorMsg());\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "6f3d10f48f7eca13c243d38cece050c6", "score": "0.59633654", "text": "public function save()\n\t{\n\t\t// Update the record\n\t\t$sth = ThumbsUp::db()->prepare('UPDATE '.ThumbsUp::config('database_table_prefix').'items SET name = ?, closed = ?, votes_up = ?, votes_down = ?, date = ? WHERE id = ?');\n\t\t$sth->execute(array($this->name, $this->closed, $this->votes_up, $this->votes_down, $this->date, $this->id));\n\n\t\t// Recalculate votes since votes_up or votes_down could have been changed\n\t\t$this->calculate_votes();\n\t}", "title": "" }, { "docid": "2336e1e858ac34409534dc88b4e4b5bb", "score": "0.5958754", "text": "public function save(): bool\n {\n return $this->execute('save');\n }", "title": "" }, { "docid": "e1234f9f3caa0f9405bc938dc3cdb925", "score": "0.59545606", "text": "protected function _canSaveBasket()\n {\n return $this->isSaveToDataBaseEnabled();\n }", "title": "" }, { "docid": "54d60da342ed87f7ef5ada3eec19088e", "score": "0.59513795", "text": "function save() {\n $this->validate_access_to_vault();\n\n $this->validate_submitted_data(array(\n \"id\" => \"numeric\"\n ));\n\n $id = $this->request->getPost('id');\n\n $password = $this->request->getPost('password');\n $usrPin = $this->request->getPost('passPin');\n $encryptedPwd = openssl_encrypt($password, \"AES-128-ECB\", $usrPin);\n\n// error_log(print_r($password, TRUE)); \n// error_log(print_r($usrPin, TRUE)); \n// error_log(print_r($encryptedPwd, TRUE)); \n\n $item_data = array(\n \"title\" => $this->request->getPost('title'),\n \"description\" => $this->request->getPost('description'),\n \"client_id\" => $this->request->getPost('client_id') ? $this->request->getPost('client_id') : 0,\n \"username\" => $this->request->getPost('username'),\n \"password\" => $encryptedPwd\n );\n\n $item_id = $this->Vault_model->ci_save($item_data, $id);\n if ($item_id) {\n $options = array(\"id\" => $item_id);\n $item_info = $this->Vault_model->get_details($options)->getRow();\n echo json_encode(array(\"success\" => true, \"id\" => $item_info->id, \"data\" => $this->_make_item_row($item_info), 'message' => app_lang('record_saved')));\n } else {\n echo json_encode(array(\"success\" => false, 'message' => app_lang('error_occurred')));\n }\n\n }", "title": "" }, { "docid": "02647c578893ba371070150b40770365", "score": "0.5948504", "text": "function save() {\n \n // UPDATE\n if($this->id) {\n if($this->update()) return true;\n }\n else {\n if($this->insert()) return true;\n }\n return false;\n }", "title": "" }, { "docid": "65707e1dedc44497dba8354cac92d69f", "score": "0.5943289", "text": "public function save()\r\n\t{\r\n\t return $this->doSave();\r\n\t}", "title": "" }, { "docid": "6dd0b4c3287739214dc82393cfff5343", "score": "0.5935451", "text": "public function save() {\n\t\t$result = false;\n\t\tif (empty($this->id)) { // insert data\n\t\t\t$result = $this->_insert();\n\t\t} else { // update data\n\t\t\t$result = $this->_update();\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "d5d77605578c17c7d953029781d5f755", "score": "0.5926198", "text": "public function Save()\n {\n $required = array(\n \"post\" => \"Publicação\",\n \"ip\" => \"IP\"\n );\n $this->validateData($required);\n parent::Save();\n }", "title": "" }, { "docid": "636a218bc7b5ef8d947b7e7b69f44c64", "score": "0.59233385", "text": "public function save()\n {\n return true;\n }", "title": "" }, { "docid": "34ecc1694f37b2c6e958ee85f57fbec9", "score": "0.5918901", "text": "public function store(ItemStorePost $request)\n {\n\n Item::create([\n 'name' => $request->input('name'),\n 'category_id' => $request->input('category_id')\n ]);\n\n return redirect()->route('items.index');\n }", "title": "" }, { "docid": "a73d760c3fd8d95b6f7ca0f0ad8ed7a9", "score": "0.590775", "text": "public function scAddItem($item){\n\t\t$item->sciSave($item);\t\n\t}", "title": "" }, { "docid": "238396ec574e595348a7e88a754f6d57", "score": "0.59075373", "text": "function saveItem($form) {\n $data = array();\n\n $result = $form->prepareDaoFromControls('booster~boo_items');\n $dao = $result['dao'];\n $record = $result['daorec'];\n $record->status = self::STATUS_INVALID; //will need moderation\n\n if ($dao->insert($record)) {\n $id_booster = $record->id;\n $data['id'] = $id_booster;\n $data['name'] = $form->getData('name');\n\n $record->image = $this->saveImage($id_booster, $form, false);\n $dao->update($record);\n }\n\n return $data;\n }", "title": "" } ]
70429e2ed1867c6e152ca0ae523e03bf
Retrieves a list of models based on the current search/filter conditions. Typical usecase: Initialize the model fields with values from filter form. Execute this method to get CActiveDataProvider instance which will filter models according to data in model fields. Pass data provider to CGridView, CListView or any similar widget.
[ { "docid": "dfc9605c1c75fb892d78cf0901933543", "score": "0.0", "text": "public function search()\n\t{\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('title',$this->title,true);\n $criteria->compare('slug',$this->slug,true);\n\t\t$criteria->compare('type_id',$this->type_id);\n\t\t$criteria->compare('user_id',$this->user_id);\n\t\t$criteria->compare('text',$this->text,true);\n\t\t$criteria->compare('status',$this->status);\n\n\t\treturn new CActiveDataProvider($this, [\n\t\t\t'criteria'=>$criteria,\n\t\t]);\n\t}", "title": "" } ]
[ { "docid": "2fc4091a7e8f2e8f91d03c1e336460a8", "score": "0.74145883", "text": "public function search()\n\t{\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('model_id',$this->model_id);\n\t\t$criteria->compare('vendor_id',$this->vendor_id);\n\t\t$criteria->compare('season_id',$this->season_id);\n\t\t$criteria->compare('auto_id',$this->auto_id);\n\t\t$criteria->compare('model_year',$this->model_year);\n\t\t$criteria->compare('model_name',$this->model_name,true);\n\t\t$criteria->compare('model_url',$this->model_url,true);\n\t\t$criteria->compare('model_stud',$this->model_stud,true);\n\t\t$criteria->compare('model_green_flag',$this->model_green_flag,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "287fa7bac045c5b70e7ea4702f850f84", "score": "0.7333411", "text": "public function search () {\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria = new CDbCriteria;\n\n\t\t$criteria->compare('modelName', $this->modelName, true);\n\t\t$criteria->compare('modelId', $this->modelId);\n\t\t$criteria->compare('rating', $this->rating);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t 'criteria' => $criteria,\n\t\t ));\n\t}", "title": "" }, { "docid": "e4cd5f924bf0f27f7e7ad644c65dd3fc", "score": "0.7254684", "text": "public function search(){\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$this->getCriteria(),\n\t\t\t'sort'=>$this->getSort(),\n\t\t));\n\t}", "title": "" }, { "docid": "fdec69adead330bd9689fc21ffec45da", "score": "0.719811", "text": "public function search () {\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria = new CDbCriteria;\n\n\t\t$criteria->compare('id', $this->id);\n\t\t$criteria->compare('modelName', $this->modelName, true);\n\t\t$criteria->compare('modelId', $this->modelId);\n\t\t$criteria->compare('state', $this->state);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria' => $criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "19845aa094b357dd527b57b211d16abc", "score": "0.71397907", "text": "public function search()\n\t{\n\n\t\t$criteria = new CDbCriteria;\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t\t\t\t\t\t\t\t\t\t 'criteria' => $criteria,\n\t\t\t\t\t\t\t\t\t\t\t ));\n\t}", "title": "" }, { "docid": "bb6e055ec54da2981ead14b343806cf7", "score": "0.70981497", "text": "public function search() {\n \n\n $criteria = new CDbCriteria; \n \n \n\n\n\n return new CActiveDataProvider(get_class($this), array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "6142837d5e11899209e1dffb8e29a110", "score": "0.7019064", "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('catalog',$this->catalog,true);\n\t\t$criteria->compare('model_series',$this->model_series,true);\n\t\t$criteria->compare('sec_group',$this->sec_group,true);\n\t\t$criteria->compare('page_name',$this->page_name,true);\n\t\t$criteria->compare('img_path',$this->img_path,true);\n\t\t$criteria->compare('pic_num',$this->pic_num,true);\n\t\t$criteria->compare('model_dir',$this->model_dir,true);\n\t\t$criteria->compare('production_start',$this->production_start,true);\n\t\t$criteria->compare('production_end',$this->production_end,true);\n\t\t$criteria->compare('specification',$this->specification,true);\n\t\t$criteria->compare('applied_model',$this->applied_model,true);\n\t\t$criteria->compare('options',$this->options,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "d6346ab7e3bcdbd4c59668eb6fa7f1c7", "score": "0.69827914", "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('id',$this->id);\n\t\t$criteria->compare('vendor',$this->vendor,true);\n\t\t$criteria->compare('car',$this->car,true);\n\t\t$criteria->compare('year',$this->year,true);\n\t\t$criteria->compare('modification',$this->modification,true);\n\t\t$criteria->compare('pcd',$this->pcd,true);\n\t\t$criteria->compare('diametr',$this->diametr,true);\n\t\t$criteria->compare('gaika',$this->gaika,true);\n\t\t$criteria->compare('zavod_shini',$this->zavod_shini,true);\n\t\t$criteria->compare('zamen_shini',$this->zamen_shini,true);\n\t\t$criteria->compare('tuning_shini',$this->tuning_shini,true);\n\t\t$criteria->compare('zavod_diskov',$this->zavod_diskov,true);\n\t\t$criteria->compare('zamen_diskov',$this->zamen_diskov,true);\n\t\t$criteria->compare('tuning_diski',$this->tuning_diski,true);\n\t\t$criteria->compare('model_id',$this->model_id);\n\t\t$criteria->compare('modification_id',$this->modification_id);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "626408a4e6f8b92d0b00a0180ab4820c", "score": "0.696208", "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\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "32a84d199e79cdc391854465e1f79f8f", "score": "0.6956733", "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('vin',$this->vin,true);\n\t\t$criteria->compare('vdate',$this->vdate,true);\n\t\t$criteria->compare('internal_color',$this->internal_color,true);\n\t\t$criteria->compare('color',$this->color,true);\n\t\t$criteria->compare('country',$this->country,true);\n\t\t$criteria->compare('model_code',$this->model_code,true);\n\t\t$criteria->compare('spec_code',$this->spec_code,true);\n\t\t$criteria->compare('catalog',$this->catalog,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "d1729966b237740a57df1666eced157e", "score": "0.695319", "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('vehicles_id',$this->vehicles_id);\n\t\t$criteria->compare('vehicles_type_id',$this->vehicles_type_id);\n\t\t$criteria->compare('motor_carrier_num',$this->motor_carrier_num);\n\t\t$criteria->compare('make',$this->make,true);\n\t\t$criteria->compare('model_Year',$this->model_Year);\n\t\t$criteria->compare('STATUS',$this->STATUS,true);\n\t\t$criteria->compare('license_plate',$this->license_plate,true);\n\t\t$criteria->compare('license_exp',$this->license_exp,true);\n\t\t$criteria->compare('Inspection_exp',$this->Inspection_exp,true);\n\t\t$criteria->compare('VIn',$this->VIn,true);\n\t\t$criteria->compare('Description',$this->Description,true);\n\t\t$criteria->compare('Year_Purchased',$this->Year_Purchased,true);\n\t\t$criteria->compare('Initial_location',$this->Initial_location,true);\n\t\t$criteria->compare('org_id',$this->org_id);\n\t\t$criteria->compare('created_by',$this->created_by,true);\n\t\t$criteria->compare('created_date',$this->created_date,true);\n\t\t$criteria->compare('updated_by',$this->updated_by,true);\n\t\t$criteria->compare('updated_date',$this->updated_date,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "ff071956507ae2e0431cb780b05ae698", "score": "0.694862", "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('id',$this->id);\n\t\t$criteria->compare('user_id',$this->user_id);\n\t\t$criteria->compare('category',$this->category,true);\n\t\t$criteria->compare('brand',$this->brand,true);\n\t\t$criteria->compare('size_type',$this->size_type,true);\n\t\t$criteria->compare('country',$this->country,true);\n\t\t$criteria->compare('condition',$this->condition,true);\n $criteria->compare('seller_type',$this->seller_type,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "c2a69874500a2a111ded0cc03e3cb343", "score": "0.69472086", "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('id',$this->id,true);\n\t\t$criteria->compare('act_id',$this->act_id,true);\n\t\t$criteria->compare('type',$this->type,true);\n\t\t$criteria->compare('filter',$this->filter,true);\n\t\t$criteria->compare('status',$this->status);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "863fc7e4127abdb3be85a2a529274ad2", "score": "0.6912223", "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('id',$this->id);\n\t\t$criteria->compare('site_id',$this->site_id,true);\n\t\t$criteria->compare('delivery_date',$this->delivery_date,true);\n\t\t$criteria->compare('field_engineer',$this->field_engineer,true);\n\t\t$criteria->compare('fuel_company',$this->fuel_company,true);\n\t\t$criteria->compare('quantity_before',$this->quantity_before);\n\t\t$criteria->compare('quantity_added',$this->quantity_added);\n\t\t$criteria->compare('quantity_after',$this->quantity_after);\n\t\t$criteria->compare('driver_name',$this->driver_name,true);\n\t\t$criteria->compare('mains_meter_reading',$this->mains_meter_reading);\n\t\t$criteria->compare('comments',$this->comments,true);\n\t\t$criteria->compare('fuel_supplier',$this->fuel_supplier);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "e84f23c314ab945f7a1931d3e3644cd6", "score": "0.6902881", "text": "public function search()\n\t{\n\t\t$criteria=new CDbCriteria;\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n 'pagination'=>array(\n 'pageVar'=>'page',\n 'pageSize'=>Yii::app()->conf->get('SYSTEM/ADM_PAGER_SIZE'),\n ),\n 'sort'=>array(\n 'sortVar'=>'sort',\n// 'defaultOrder'=>'t.name',\n// 'attributes'=>array(\n// 'name',\n// ),\n ),\n\t\t));\n\t}", "title": "" }, { "docid": "07f1783a003d366504b024fca6aad197", "score": "0.6897019", "text": "public function search()\r\n {\r\n // Warning: Please modify the following code to remove attributes that\r\n // should not be searched.\r\n return new CArrayDataProvider($this->findAll(), array(\r\n 'pagination'=>array(\r\n 'pageSize'=>50,\r\n ),\r\n ));\r\n }", "title": "" }, { "docid": "75d8df84c0361257a11e9773904de894", "score": "0.6881133", "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('id',$this->id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('serial',$this->serial);\n\t\t$criteria->compare('model',$this->model,true);\n\t\t$criteria->compare('software_version',$this->software_version,true);\n\t\t$criteria->compare('analyzer_type_id',$this->analyzer_type_id);\n $qq = new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n 'sort'=>[\n 'attributes'=>[\n 'id', \n 'name', \n 'serial', \n 'model',\n 'software_version',\n 'analyzer_type_id'],\n 'defaultOrder'=>[\n 'name'=>CSort::SORT_ASC,\n ],\n ],\n ));\n\t\treturn $qq;\n\t}", "title": "" }, { "docid": "cc2e4c0eb640ef46c5d44374da6d7665", "score": "0.68806374", "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('id',$this->id,true);\n\t\t$criteria->compare('type_id',$this->type_id,true);\n\t\t$criteria->compare('content',$this->content,true);\n\t\t$criteria->compare('filter',$this->filter,true);\n\t\t$criteria->compare('status',$this->ststus);\n\t\t$criteria->compare('create_time',$this->creat_time,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "6bfcd5515f42a63259d279b8949e74e0", "score": "0.68736565", "text": "public function search()\r\n\t{\r\n\t\t// Warning: Please modify the following code to remove attributes that\r\n\t\t// should not be searched.\r\n\r\n\t\t$criteria=new CDbCriteria;\r\n\r\n\t\t$criteria->compare('id',$this->id);\r\n\t\t$criteria->compare('hotel_id',$this->hotel_id);\r\n\t\t$criteria->compare('filter_id',$this->filter_id);\r\n\t\t$criteria->compare('status',$this->status);\r\n\r\n\t\treturn new CActiveDataProvider($this, array(\r\n\t\t\t'criteria'=>$criteria,\r\n\t\t));\r\n\t}", "title": "" }, { "docid": "64f68bb8f87eb99a30aaed01012ceb1b", "score": "0.68736476", "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('CustomerId',$this->CustomerId);\n\t\t$criteria->compare('Company',$this->Company,true);\n\t\t$criteria->compare('DayOfJoin',$this->DayOfJoin,true);\n\t\t$criteria->compare('NPWP',$this->NPWP,true);\n\t\t$criteria->compare('Phone',$this->Phone,true);\n\t\t$criteria->compare('Fax',$this->Fax,true);\n\t\t$criteria->compare('Address',$this->Address,true);\n\t\t$criteria->compare('City',$this->City,true);\n\t\t$criteria->compare('State',$this->State,true);\n\t\t$criteria->compare('CompanyTypeId',$this->CompanyTypeId);\n\t\t$criteria->compare('CountryId',$this->CountryId);\n\t\t$criteria->compare('Webpage',$this->Webpage,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "e18a29c270e59f5c0db92f4af6c5380e", "score": "0.6863436", "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('faktura_id',$this->faktura_id);\n\t\t$criteria->compare('realize_date',$this->realize_date,true);\n\t\t$criteria->compare('provider_id',$this->provider_id);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "13907f5ce418432caceaadf6bb160b66", "score": "0.6861978", "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\t\tif(!Yii::app()->user->checkAccess('admin')) $criteria->compare('empresa',Yii::app()->user->empresa);\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('cpf',$this->cpf,true);\n\t\t$criteria->compare('margem',$this->margem);\n\t\t$criteria->compare('data_criacao',$this->data_criacao,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "b86e0fbc651c9f3076077cc5d1b94a76", "score": "0.6861476", "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('id',$this->id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('platform',$this->platform);\n $criteria->compare('is_active',$this->is_active);\n\t\t$criteria->compare('company_id',$this->company_id);\n $criteria->compare('last_listing_sync_time_utc',$this->last_listing_sync_time_utc);\n\t\t$criteria->compare('create_time_utc',$this->create_time_utc);\n\t\t$criteria->compare('create_user_id',$this->create_user_id);\n\t\t$criteria->compare('update_time_utc',$this->update_time_utc);\n\t\t$criteria->compare('update_user_id',$this->update_user_id);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "297a67f0f4413bf1a476d2607f6c3dd1", "score": "0.6846539", "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('id',$this->id,true);\n\t\t$criteria->compare('site_id',$this->site_id,true);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('enabled',$this->enabled,true);\n\t\t$criteria->compare('edit',$this->edit,true);\n\t\t$criteria->compare('on_main',$this->on_main,true);\n\t\t$criteria->compare('on_title',$this->on_title,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'pagination'=>array(\n\t\t\t\t'pageSize'=>50,\n\t\t\t),\n\t\t\t'sort'=>array(\n\t\t\t\t'defaultOrder'=>\"`order`\",\n\t\t\t),\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "e3d372566e2892ddee34977fcebf587f", "score": "0.6842539", "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('id',$this->id);\n\t\t$criteria->compare('list_id',$this->list_id);\n\t\t$criteria->compare('customer_id',$this->customer_id);\n\t\t$criteria->compare('custom_name',$this->custom_name,true);\n\t\t$criteria->compare('original_name',$this->original_name,true);\n\t\t$criteria->compare('member_number',$this->member_number,true);\n\t\t$criteria->compare('ordering',$this->ordering);\n\t\t$criteria->compare('display_on_form',$this->display_on_form);\n\t\t$criteria->compare('allow_edit',$this->allow_edit);\n\t\t$criteria->compare('type',$this->type);\n\t\t$criteria->compare('status',$this->status);\n\t\t$criteria->compare('date_created',$this->date_created,true);\n\t\t$criteria->compare('date_updated',$this->date_updated,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "03b862b8e89d4f1ead32106c7122c385", "score": "0.68380034", "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('id',$this->id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('country',$this->country,true);\n\t\t$criteria->compare('province',$this->province,true);\n\t\t$criteria->compare('city',$this->city,true);\n\t\t$criteria->compare('county',$this->county,true);\n\t\t$criteria->compare('address',$this->address,true);\n\t\t$criteria->compare('company',$this->company,true);\n\t\t$criteria->compare('product',$this->product);\n\t\t$criteria->compare('type',$this->type,true);\n\t\t$criteria->compare('type_name',$this->type_name,true);\n\t\t$criteria->compare('user_type',$this->user_type,true);\n\t\t$criteria->compare('user_type_name',$this->user_type_name,true);\n\t\t$criteria->compare('ip',$this->ip,true);\n\t\t$criteria->compare('tel',$this->tel,true);\n\t\t$criteria->compare('email',$this->email,true);\n\t\t$criteria->compare('message',$this->message,true);\n\t\t$criteria->compare('status',$this->status,true);\n\t\t$criteria->compare('creator',$this->creator,true);\n\t\t$criteria->compare('create_time',$this->create_time,true);\n\t\t$criteria->compare('modifier',$this->modifier,true);\n\t\t$criteria->compare('modify_time',$this->modify_time,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "4df2ddabeaae2b768dd672e05aa8b249", "score": "0.68370336", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('aircrafttype_id',$this->aircrafttype_id);\n\t\t$criteria->compare('before_flight_check_time',$this->before_flight_check_time);\n\t\t$criteria->compare('onblock',$this->onblock);\n\t\t$criteria->compare('door_opened',$this->door_opened);\n\t\t$criteria->compare('gettingout_passangers',$this->gettingout_passangers);\n\t\t$criteria->compare('cleaning',$this->cleaning);\n\t\t$criteria->compare('security_check',$this->security_check);\n\t\t$criteria->compare('boarding_business',$this->boarding_business);\n\t\t$criteria->compare('boarding_economy',$this->boarding_economy);\n\t\t$criteria->compare('doors_closed',$this->doors_closed);\n\t\t$criteria->compare('pushback',$this->pushback);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "af82b987df827f14c2854bfd99dec9fe", "score": "0.68283206", "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('id',$this->id,true);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('time',$this->time,true);\n\t\t$criteria->compare('city',$this->city);\n\t\t$criteria->compare('address',$this->address,true);\n\t\t$criteria->compare('price',$this->price,true);\n\t\t$criteria->compare('max_people',$this->max_people,true);\n\t\t$criteria->compare('actual_people',$this->actual_people,true);\n\t\t$criteria->compare('profile',$this->profile,true);\n\t\t$criteria->compare('pic',$this->pic,true);\n\t\t$criteria->compare('status',$this->status);\n\t\t$criteria->compare('sponsor',$this->sponsor,true);\n\t\t$criteria->compare('pic_other',$this->pic_other,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "ae07fd1270e31a75e11f254282b97185", "score": "0.68267167", "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('id',$this->id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('price',$this->price,true);\n\t\t$criteria->compare('preview',$this->preview,true);\n\t\t$criteria->compare('public',$this->public);\n\t\t$criteria->compare('sort',$this->sort);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "d0c398896b3e86c77b0fdeb051726c05", "score": "0.6826085", "text": "public function search() {\r\n\t\t// Warning: Please modify the following code to remove attributes that\r\n\t\t// should not be searched.\r\n\r\n\t\t$criteria = $this->criteriaSearch();\r\n\t\t$criteria->limit = 10;\r\n\r\n\t\treturn new CActiveDataProvider($this, array(\r\n\t\t\t'criteria' => $criteria,\r\n\t\t));\r\n\t}", "title": "" }, { "docid": "1844ddab856eb1a5e5be8f75c58581b9", "score": "0.68236536", "text": "public function search() {\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('active',$this->active);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('createDate',$this->createDate,true);\n\t\t$criteria->compare('lastUpdated',$this->lastUpdated,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "71af8a640c342efd4fe142f66673eb98", "score": "0.6819338", "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('id',$this->id);\n\t\t$criteria->compare('id_course_revision',$this->id_course_revision);\n\t\t$criteria->compare('id_module',$this->id_module);\n\t\t$criteria->compare('module_order',$this->module_order);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "da2127915a83b8b391336c99eff5a2d6", "score": "0.68159467", "text": "public function search() {\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('id', $this->id);\n\t\t$criteria->compare('category_id', $this->category_id);\n\t\t$criteria->compare('name', $this->name, true);\n\t\t$criteria->compare('info', $this->info, true);\n\t\t$criteria->compare('author', $this->author, true);\n\t\t$criteria->compare('cover', $this->cover, true);\n\t\t$criteria->compare('download', $this->download, true);\n\t\t$criteria->compare('fileSize', $this->fileSize);\n\t\t$criteria->compare('status', $this->status);\n\t\t$criteria->compare('price', $this->price);\n\t\t$criteria->compare('hot', $this->hot);\n\t\t$criteria->compare('update_time', $this->update_time, true);\n\t\t$criteria->compare('ctime', $this->ctime, true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria' => $criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "88545cf22c0499abdd42132dd248662a", "score": "0.6812006", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('SN',$this->SN,true);\n\t\t$criteria->compare('loop',$this->loop,true);\n\t\t$criteria->compare('laser',$this->laser,true);\n\t\t$criteria->compare('ethernet',$this->ethernet,true);\n\t\t$criteria->compare('fiber_optic',$this->fiber_optic,true);\n\t\t$criteria->compare('flash',$this->flash,true);\n\t\t$criteria->compare('CCTV',$this->CCTV,true);\n\t\t$criteria->compare('resolution',$this->resolution,true);\n\t\t$criteria->compare('ventination',$this->ventination,true);\n\t\t$criteria->compare('ph_cam_resolution',$this->ph_cam_resolution,true);\n\t\t$criteria->compare('op_system',$this->op_system,true);\n\t\t$criteria->compare('mpu',$this->mpu,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "2941d4ac7e73bfaae6174cdbc2e4b331", "score": "0.6804914", "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('id',$this->id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('type',$this->type,true);\n\t\t$criteria->compare('f_date',$this->f_date,true);\n\t\t$criteria->compare('f_time',$this->f_time,true);\n\t\t$criteria->compare('l_date',$this->l_date,true);\n\t\t$criteria->compare('l_time',$this->l_time,true);\n\t\t$criteria->compare('des',$this->des,true);\n\t\t$criteria->compare('price',$this->price,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "8072384730eacf8a549d77a99a6c54d9", "score": "0.6803744", "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('id',$this->id,true);\n\t\t$criteria->compare('category_id',$this->category_id,true);\n\t\t$criteria->compare('good_type_id',$this->good_type_id,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "51ff33e31faffbfa8368349ed00c207d", "score": "0.6803577", "text": "public function search()\r\n\t{\r\n\t\t// Warning: Please modify the following code to remove attributes that\r\n\t\t// should not be searched.\r\n\r\n\t\t$criteria=new CDbCriteria;\r\n\r\n\t\t$criteria->compare('cars_id',$this->cars_id,true);\r\n\t\t$criteria->compare('plate_no',$this->plate_no,true);\r\n\t\t$criteria->compare('brand',$this->brand,true);\r\n\t\t$criteria->compare('model',$this->model,true);\r\n\t\t$criteria->compare('year',$this->year);\r\n\t\t$criteria->compare('passenger_cap',$this->passenger_cap);\r\n\t\t$criteria->compare('car_img',$this->car_img,true);\r\n\t\t$criteria->compare('date_added',$this->date_added,true);\r\n\t\t$criteria->compare('isVip',$this->isVip,true);\r\n\r\n\t\treturn new CActiveDataProvider($this, array(\r\n\t\t\t'criteria'=>$criteria,\r\n\t\t\t'sort'=>array(\r\n 'defaultOrder'=>'status ASC, date_added DESC',\r\n ),\r\n 'pagination'=>array(\r\n\t\t 'pageSize'=>8,\r\n\t\t ),\r\n\t\t));\r\n\t}", "title": "" }, { "docid": "e4d4bc05a892ac9fdd171e3f83cc69fd", "score": "0.68007714", "text": "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('individual_id', $this->individual_id);\n $criteria->compare('source_id', $this->source_id);\n $criteria->compare('source_reference', $this->source_reference, true);\n $criteria->compare('full_name', $this->full_name, true);\n $criteria->compare('first_name', $this->first_name, true);\n $criteria->compare('last_name', $this->last_name, true);\n $criteria->compare('gender', $this->gender, true);\n $criteria->compare('createdon', $this->createdon, true);\n $criteria->compare('modifiedon', $this->modifiedon, true);\n $criteria->compare('deleted', $this->deleted);\n $criteria->compare('deletedon', $this->deletedon, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "2a0599b19c19f51be84171fee11773c7", "score": "0.67971116", "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('id',$this->id);\n\t\t$criteria->compare('id_zone',$this->id_zone);\n\t\t$criteria->compare('id_license',$this->id_license,true);\n\t\t$criteria->compare('id_company',$this->id_company);\n\t\t$criteria->compare('entity_flag',$this->entity_flag);\n\t\t$criteria->compare('franchise',$this->franchise);\n\t\t$criteria->compare('osago_payment',$this->osago_payment);\n\t\t$criteria->compare('date_create',$this->date_create,true);\n\t\t$criteria->compare('date_update',$this->date_update,true);\n\t\t$criteria->compare('user_create',$this->user_create);\n\t\t$criteria->compare('user_update',$this->user_update);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "fc7ea69b746f6209eb366b4dcd79c7e2", "score": "0.6793113", "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('id',$this->id);\n\t\t$criteria->compare('verbiage',$this->verbiage,true);\n\t\t$criteria->compare('negative',$this->negative);\n\t\t$criteria->compare('num',$this->num);\n\t\t$criteria->compare('active',$this->active);\n\t\t$criteria->compare('expression',$this->expression,true);\n\t\t$criteria->compare('id_object',$this->id_object);\n\t\t$criteria->compare('id_object_type',$this->id_object_type);\n\t\t$criteria->order='active DESC, num ASC';\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "21e621420c1044f05b24491460e296c3", "score": "0.67927206", "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('id',$this->id,true);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('family',$this->family,true);\n\t\t$criteria->compare('gender',$this->gender,true);\n\t\t$criteria->compare('passport_num',$this->passport_num,true);\n\t\t$criteria->compare('type',$this->type,true);\n\t\t$criteria->compare('age',$this->age,true);\n\t\t$criteria->compare('room_num',$this->room_num);\n\t\t$criteria->compare('order_id',$this->order_id,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "f450e87aa3845e15273b3807b2e25fe7", "score": "0.67825764", "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('id',$this->id);\n\t\t$criteria->compare('source_name',$this->source_name,true);\n\t\t$criteria->compare('source_type_id',$this->source_type_id);\n\t\t$criteria->compare('source_date',$this->source_date,true);\n\t\t$criteria->compare('source_email',$this->source_email,true);\n\t\t$criteria->compare('source_phone',$this->source_phone,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "f33915bfe70ee082d9e0e6d22bd30d67", "score": "0.67824984", "text": "public function search() {\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('Id',$this->Id,true);\n\t\t$criteria->compare('FirstName',$this->FirstName,true);\n\t\t$criteria->compare('LastName',$this->LastName,true);\n\t\t$criteria->compare('Email',$this->Email,true);\n\t\t$criteria->compare('Department',$this->Department);\n\t\t$criteria->compare('DietaryRequirements',$this->DietaryRequirements);\n\t\t$criteria->compare('OtherDietaryRequirements',$this->OtherDietaryRequirements,true);\n\t\t$criteria->compare('GuestFirstName',$this->GuestFirstName,true);\n\t\t$criteria->compare('GuestLastName',$this->GuestLastName,true);\n\t\t$criteria->compare('GuestDietaryRequirements',$this->GuestDietaryRequirements);\n\t\t$criteria->compare('GuestOtherDietaryRequirements',$this->GuestOtherDietaryRequirements,true);\n\t\t$criteria->compare('Static',$this->Static);\n\t\t$criteria->compare('CreateTime',$this->CreateTime,true);\n\t\t$criteria->compare('UpdateTime',$this->UpdateTime,true);\n\t\t$criteria->compare('optionsRadios',$this->optionsRadios);\n\t\t\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "66b0adf4982cdf26aa868088dffdaec5", "score": "0.6779962", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('codigo',$this->codigo);\n\t\t$criteria->compare('codigo_uel',$this->codigo_uel);\n\t\t$criteria->compare('denominacion',$this->denominacion,true);\n\t\t$criteria->compare('estatus',1);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6775523", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6775523", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6775523", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6775523", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6775523", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6775523", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6775523", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6775523", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6775523", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6775523", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "dea41f514bd36affcc91bc5f51378814", "score": "0.6774398", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('vendorID',$this->vendorID);\n\t\t$criteria->compare('initials',$this->initials,true);\n\t\t$criteria->compare('photoimage',$this->photoimage,true);\n\t\t$criteria->compare('firstname',$this->firstname,true);\n\t\t$criteria->compare('lastname',$this->lastname,true);\n\t\t$criteria->compare('vendortype',$this->vendortype,true);\n\t\t$criteria->compare('address',$this->address,true);\n\t\t$criteria->compare('phoneno',$this->phoneno);\n\t\t$criteria->compare('email',$this->email,true);\n\t\t$criteria->compare('dateadded',$this->dateadded,true);\n\t\t$criteria->compare('notes',$this->notes,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "9ecee3dfde9f95bb5276dc88a4cf1faa", "score": "0.6772005", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('sitescout_site_id',$this->sitescout_site_id,true);\n\t\t$criteria->compare('domain',$this->domain,true);\n\t\t$criteria->compare('exchange',$this->exchange,true);\n\t\t$criteria->compare('sitescout_category',$this->sitescout_category,true);\n\t\t$criteria->compare('sitescout_ave_cpm',$this->sitescout_ave_cpm,true);\n\t\t$criteria->compare('sitescout_imps',$this->sitescout_imps,true);\n\t\t$criteria->compare('create_time',$this->create_time,true);\n\t\t$criteria->compare('create_user_id',$this->create_user_id);\n\t\t$criteria->compare('update_time',$this->update_time,true);\n\t\t$criteria->compare('update_user_id',$this->update_user_id);\n\t\t$criteria->compare('type',$this->type,true);\n\t\t$criteria->compare('status',$this->status,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "0a301529aa74487b1cc97385820f0603", "score": "0.6763371", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('employee_code',$this->employee_code,true);\n\t\t$criteria->compare('fund_base',$this->fund_base);\n\t\t$criteria->compare('fund_person_percent',$this->fund_person_percent,true);\n\t\t$criteria->compare('fund_compony_percent',$this->fund_compony_percent,true);\n\t\t$criteria->compare('security_base',$this->security_base);\n\t\t$criteria->compare('unemployment',$this->unemployment,true);\n\t\t$criteria->compare('maternity',$this->maternity,true);\n\t\t$criteria->compare('endowment_person',$this->endowment_person,true);\n\t\t$criteria->compare('endowment_compony',$this->endowment_compony,true);\n\t\t$criteria->compare('medical_person',$this->medical_person,true);\n\t\t$criteria->compare('medical_compony',$this->medical_compony,true);\n\t\t$criteria->compare('injury_person',$this->injury_person,true);\n\t\t$criteria->compare('injury_compony',$this->injury_compony,true);\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "2b047ff27daeefc459a851252ab37990", "score": "0.6758134", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('company_name',$this->company_name,true);\n\t\t$criteria->compare('company_address',$this->company_address,true);\n\t\t$criteria->compare('company_logo',$this->company_logo,true);\n\t\t$criteria->compare('currency',$this->currency,true);\n\t\t$criteria->compare('modifiedAt',$this->modifiedAt,true);\n\t\t$criteria->compare('createdAt',$this->createdAt,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "cd6e2ce560c5f11c3b7143b2c6d2d41e", "score": "0.67574847", "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('id',$this->id);\n\t\t$criteria->compare('finalizado',$this->finalizado);\n\t\t$criteria->compare('vencedor',$this->vencedor);\n\t\t$criteria->compare('numeros',$this->numeros,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "bbabe857ca538302f97c97561788c978", "score": "0.67561084", "text": "public function search()\n\t{\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('city_id', $this->city_id);\n\t\t$criteria->compare('city_name', $this->city_name,true);\n\t\t$criteria->compare('city_alternate_name', $this->city_alternate_name,true);\n\t\t$criteria->compare('state_id', $this->state_id);\n\t\t$criteria->compare('is_featured', $this->is_featured,true);\n\t\t$criteria->compare('isactive', $this->isactive,true);\n\t\t$criteria->compare('description', $this->description,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "149c3aa5c519ae963a3b92ca9a054354", "score": "0.6754938", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('position',$this->position);\n\t\t$criteria->compare('sex',$this->sex);\n\t\t$criteria->compare('mobile',$this->mobile,true);\n\t\t$criteria->compare('tele',$this->tele,true);\n\t\t$criteria->compare('qq',$this->qq,true);\n\t\t$criteria->compare('email',$this->email,true);\n\t\t$criteria->compare('province',$this->province,true);\n\t\t$criteria->compare('city',$this->city,true);\n\t\t$criteria->compare('remarks',$this->remarks,true);\n\t\t$criteria->compare('lnkCompany',$this->lnkCompany);\n\t\t$criteria->compare('lnkUser',$this->lnkUser,true);\n\t\t$criteria->compare('privilege',$this->privilege);\n\t\t$criteria->compare('status',$this->status);\n\t\t$criteria->compare('createDate',$this->createDate,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "f47822374200d23b663e6ae536caba79", "score": "0.6752764", "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\t\t$criteria->with = array('providers');\n\n\t\t$criteria->compare('t.providers_id',$this->providers_id);\n\t\t$criteria->compare('LOWER(providers.name)',strtolower($this->providers_name),true);\n\t\t$criteria->compare('providers.status','Active',true);\n\t\t// $criteria->compare('t.name',$this->name,true);\n\t\t$criteria->compare('account_manager_id',$this->account_manager_id);\n\t\t$criteria->compare('publisher_percentage',$this->publisher_percentage,true);\n\t\t$criteria->compare('rate',$this->rate,true);\n\n\t\t$criteria->compare('accountManager.name',$this->account_name,true);\n\t\t$criteria->compare('accountManager.lastname',$this->account_name,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria' =>$criteria,\n\t\t\t'pagination' =>array(\n 'pageSize' => 30,\n ),\n\t\t\t'sort' \t =>array(\n\t\t 'attributes'=>array(\n\t\t\t\t\t// Adding custom sort attributes\n\t\t 'providers_name'=>array(\n\t\t\t\t\t\t'asc' =>'providers.name',\n\t\t\t\t\t\t'desc' =>'providers.name DESC',\n\t\t ),\n\t\t '*',\n\t\t ),\n\t\t ),\n\t\t));\n\t}", "title": "" }, { "docid": "7ce4538f1e247116f663a9613453d5db", "score": "0.67481464", "text": "public function search()\r\n\t{\r\n\t\t// Warning: Please modify the following code to remove attributes that\r\n\t\t// should not be searched.\r\n\r\n\t\t$criteria=new CDbCriteria;\r\n\r\n\t\t$criteria->compare('id',$this->id,true);\r\n\t\t$criteria->compare('name',$this->name,true);\r\n\t\t$criteria->compare('params',$this->params,true);\r\n\r\n\t\treturn new CActiveDataProvider($this, array(\r\n\t\t\t'criteria'=>$criteria,\r\n\t\t\t'pagination'=>array(\r\n 'pageSize'=>Yii::app()->params['adminItemsPerPage'],\r\n ),\r\n\t\t));\r\n\t}", "title": "" }, { "docid": "ba16e90ce199627cd23343675ba0a59a", "score": "0.6746205", "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('fallo_id',$this->fallo_id);\n\t\t$criteria->compare('fecha_fallo',$this->fecha_fallo,true);\n\t\t$criteria->compare('correo_electronico',$this->correo_electronico,true);\n\t\t$criteria->compare('sw_vigente',$this->sw_vigente,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "111cb261983956321e8db37a2b58f5b8", "score": "0.6744812", "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('data',$this->data,true);\n\t\t$criteria->compare('godzina',$this->godzina,true);\n\t\t$criteria->compare('sala_id',$this->sala_id);\n\t\t$criteria->compare('tytul',$this->tytul,true);\n\t\t$criteria->compare('column_3d',$this->column_3d);\n\t\t$criteria->compare('sprzatacz',$this->sprzatacz,true);\n\t\t$criteria->compare('kontroler',$this->kontroler,true);\n\t\t$criteria->compare('operator',$this->operator,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "22335f46085146189b2a68e1542f7264", "score": "0.67427367", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('user_id',$this->user_id);\n\t\t$criteria->compare('payment_method',$this->payment_method,true);\n\t\t$criteria->compare('cc_type',$this->cc_type,true);\n\t\t$criteria->compare('cc_owner',$this->cc_owner,true);\n\t\t$criteria->compare('cc_number',$this->cc_number,true);\n\t\t$criteria->compare('cc_expire',$this->cc_expire,true);\n\t\t$criteria->compare('last_modified',$this->last_modified);\n\t\t$criteria->compare('date_purchased',$this->date_purchased);\n\t\t$criteria->compare('status_id',$this->status_id);\n\t\t$criteria->compare('date_finished',$this->date_finished);\n\t\t$criteria->compare('currency',$this->currency,true);\n\t\t$criteria->compare('currency_value',$this->currency_value,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "02d4b65e03d361b518ba5828a8a4efe0", "score": "0.67407924", "text": "public function search()\n {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria=$this->getBaseCDbCriteria();\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "cc10fa7175f8d3e7b30a9cbef08e8bbe", "score": "0.6736527", "text": "public function search()\r\n\t{\r\n\t\t// Warning: Please modify the following code to remove attributes that\r\n\t\t// should not be searched.\r\n\r\n $criteria = $this->setCriteria();\r\n\t\t\r\n\t\treturn new CActiveDataProvider($this, array(\r\n\t\t\t'criteria'=>$criteria,\r\n\t\t));\r\n\t}", "title": "" }, { "docid": "22912d3e47adcd7793f26b00316aebff", "score": "0.67341644", "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('id_actividades',$this->id_actividades);\n\t\t$criteria->compare('actividad',$this->actividad,true);\n\t\t$criteria->compare('fk_unidad_medida',$this->fk_unidad_medida);\n\t\t$criteria->compare('cantidad',$this->cantidad);\n\t\t$criteria->compare('fk_accion',$this->fk_accion);\n\t\t$criteria->compare('created_by',$this->created_by);\n\t\t$criteria->compare('created_date',$this->created_date,true);\n\t\t$criteria->compare('modified_by',$this->modified_by);\n\t\t$criteria->compare('modified_date',$this->modified_date,true);\n\t\t$criteria->compare('fk_status',$this->fk_status);\n\t\t$criteria->compare('es_activo',$this->es_activo);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "c12c40d594c3dd10be51ffe672f340d6", "score": "0.67338294", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('name',$this->name);\n\t\t$criteria->compare('value',$this->value);\n $criteria->compare('type',$this->type);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "c706793472eaa9385b80af8df9b07d9e", "score": "0.67320216", "text": "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('familyID', $this->familyID);\n $criteria->compare('family', $this->family, true);\n $criteria->compare('authorID', $this->authorID);\n $criteria->compare('categoryID', $this->categoryID);\n $criteria->compare('family_alt', $this->family_alt, true);\n $criteria->compare('locked', $this->locked);\n $criteria->compare('external', $this->external);\n $criteria->compare('externalID', $this->externalID);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "43dd3ca6d03d6b14687c4e51337b8d5a", "score": "0.673107", "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('id',$this->id,true);\n\t\t$criteria->compare('procurement_id',$this->procurement_id,true);\n\t\t$criteria->compare('brand_title',$this->brand_title,true);\n\t\t$criteria->compare('model_title',$this->model_title,true);\n\t\t$criteria->compare('apply_purchase_quantity',$this->apply_purchase_quantity);\n\t\t$criteria->compare('suggest_purchase_quantity',$this->suggest_purchase_quantity);\n\t\t$criteria->compare('commodity_title',$this->commodity_title,true);\n\t\t$criteria->compare('commodity_title_english',$this->commodity_title_english,true);\n\t\t$criteria->compare('unit',$this->unit,true);\n\t\t$criteria->compare('is_purchase',$this->is_purchase);\n\t\t$criteria->compare('is_register',$this->is_register);\n\t\t$criteria->compare('create_time',$this->create_time,true);\n\t\t$criteria->compare('update_time',$this->update_time,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "07c901db1a381168187435dbaf5dbefd", "score": "0.67304724", "text": "public function search() {\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('age_group', $this->age_group);\n $criteria->compare('id_carer', $this->id_carer);\n\n return new CActiveDataProvider(get_class($this), array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "48565ada730d7b03c2826c3d4e83c69c", "score": "0.6728607", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('realname',$this->realname,true);\n\t\t$criteria->compare('job',$this->job);\n\t\t$criteria->compare('avatar',$this->avatar,true);\n\t\t$criteria->compare('about',$this->about,true);\n\t\t$criteria->compare('company',$this->company,true);\n\t\t$criteria->compare('birthday',$this->birthday);\n\t\t$criteria->compare('gender',$this->gender);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "9c72190aa57e9d4a954a5e5e7fc946fc", "score": "0.67273086", "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('id',$this->id);\n\t\t$criteria->compare('user_id',$this->user_id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('mobile',$this->mobile,true);\n\t\t$criteria->compare('dob',$this->dob,true);\n\t\t$criteria->compare('current_location',$this->current_location);\n\t\t$criteria->compare('preferred_location',$this->preferred_location,true);\n\t\t$criteria->compare('industry',$this->industry);\n\t\t$criteria->compare('functional_area',$this->functional_area);\n\t\t$criteria->compare('gender',$this->gender,true);\n\t\t$criteria->compare('notice_period',$this->notice_period);\n\t\t$criteria->compare('expyear',$this->expyear);\n\t\t$criteria->compare('expmonth',$this->expmonth);\n\t\t$criteria->compare('current_salary',$this->current_salary);\n\t\t$criteria->compare('current_salary_confidential',$this->current_salary_confidential);\n\t\t$criteria->compare('expected_salary_negotiable',$this->expected_salary_negotiable);\n\t\t$criteria->compare('created_on',$this->created_on,true);\n\t\t$criteria->compare('updated_on',$this->updated_on,true);\n\t\t$criteria->compare('status',$this->status);\n\t\t$criteria->compare('expected_salary',$this->expected_salary);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "4344cc1ab4637f1d36f5360e76fb7339", "score": "0.67267394", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('offeredModuleID',$this->offeredModuleID);\n\t\t$criteria->compare('moduleCode',$this->moduleCode,true);\n\t\t$criteria->compare('sectionName',$this->sectionName,true);\n\t\t$criteria->compare('batchName',$this->batchName);\n\t\t$criteria->compare('programmeCode',$this->programmeCode,true);\n\t\t$criteria->compare('facultyID',$this->facultyID);\n\t\t$criteria->compare('ofm_term',$this->ofm_term,true);\n\t\t$criteria->compare('ofm_year',$this->ofm_year);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "1cbfb698d029f22362d5257ed87a664d", "score": "0.6725068", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('customer_id',$this->customer_id);\n\t\t$criteria->compare('context',$this->context,true);\n\t\t$criteria->compare('nurser_id',$this->nurser_id);\n\t\t$criteria->compare('create_time',$this->create_time,true);\n\t\t$criteria->compare('update_time',$this->update_time,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "4ba49dffa62a89a7c927b194d7c952eb", "score": "0.6724963", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('ID',$this->ID);\n\t\t$criteria->compare('Name',$this->Name,true);\n\t\t$criteria->compare('Surname',$this->Surname,true);\n\t\t$criteria->compare('BirthPlace',$this->BirthPlace,true);\n\t\t$criteria->compare('BirthDate',$this->BirthDate,true);\n\t\t$criteria->compare('Photo',$this->Photo,true);\n\t\t$criteria->compare('Sex',$this->Sex,true);\n\t\t$criteria->compare('MaritalStatus',$this->MaritalStatus,true);\n\t\t$criteria->compare('ResServiceNum',$this->ResServiceNum);\n\t\t$criteria->compare('Notes',$this->Notes,true);\n\t\t$criteria->compare('NationalityID',$this->NationalityID);\n\t\t$criteria->compare('PassportID',$this->PassportID);\n\t\t$criteria->compare('VisaID',$this->VisaID);\n\t\t$criteria->compare('IndiaID',$this->IndiaID);\n\t\t$criteria->compare('Spouse',$this->Spouse,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "d45c58c97aa85150b90ef6be976ae1c4", "score": "0.6719781", "text": "public function search(){\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\t\t$criteria = new CDbCriteria();\n\t\t\n\t\t$criteria->compare('id', $this->id);\n\t\t$criteria->compare('user_id', $this->user_id);\n\t\t$criteria->compare('company_name', $this->company_name, true);\n\t\t$criteria->compare('address_street', $this->address_street, true);\n\t\t$criteria->compare('address_2nd_line', $this->address_2nd_line, true);\n\t\t$criteria->compare('city', $this->city, true);\n\t\t$criteria->compare('state', $this->state, true);\n\t\t$criteria->compare('zip', $this->zip, true);\n\t\t$criteria->compare('email', $this->email, true);\n\t\t$criteria->compare('percent_commision', $this->percent_commision);\n\t\t$criteria->compare('added_fee', $this->added_fee);\n\t\t$criteria->compare('contract', $this->contract, true);\n\t\t\n\t\treturn new CActiveDataProvider($this, array('criteria'=>$criteria));\n\t}", "title": "" }, { "docid": "d8d1bad2dc6a1d26f9e00a1235c7c015", "score": "0.6718808", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('HaveCurrentSensor',$this->HaveCurrentSensor);\n\t\t$criteria->compare('StationCurrentSensorSpan',$this->StationCurrentSensorSpan);\n\t\t$criteria->compare('StationCurrentSensorZeroADCode',$this->StationCurrentSensorZeroADCode);\n\t\t$criteria->compare('OSC',$this->OSC);\n\t\t$criteria->compare('DisbytegeCurrentLimit',$this->DisbytegeCurrentLimit);\n\t\t$criteria->compare('bytegeCurrentLimit',$this->bytegeCurrentLimit);\n\t\t$criteria->compare('TemperatureHighLimit',$this->TemperatureHighLimit);\n\t\t$criteria->compare('TemperatureLowLimit',$this->TemperatureLowLimit);\n\t\t$criteria->compare('HumiH',$this->HumiH);\n\t\t$criteria->compare('HumiL',$this->HumiL);\n\t\t$criteria->compare('TemperatureAdjust',$this->TemperatureAdjust);\n\t\t$criteria->compare('HumiAdjust',$this->HumiAdjust);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "f661d6d3ced12997cfeaaf1efad15a44", "score": "0.6718532", "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('id',$this->id);\n\t\t$criteria->compare('employee_id',$this->employee_id);\n\t\t$criteria->compare('mcu_date',$this->mcu_date,true);\n\t\t$criteria->compare('mcu_place',$this->mcu_place,true);\n\t\t$criteria->compare('mcu_status',$this->mcu_status,true);\n\t\t$criteria->compare('mcu_notes',$this->mcu_notes,true);\n\t\t$criteria->compare('deases',$this->deases,true);\n\t\t$criteria->compare('alergy',$this->alergy,true);\n\t\t$criteria->compare('created_at',$this->created_at,true);\n\t\t$criteria->compare('created_by',$this->created_by);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "e55ff6eccda3a4a35b7ac03c55d81f5e", "score": "0.6717212", "text": "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('module_id', $this->module_id);\n $criteria->compare('module_name', $this->module_name, true);\n $criteria->compare('module_desc', $this->module_desc, true);\n $criteria->compare('record_by', $this->record_by, true);\n $criteria->compare('record_date', $this->record_date, true);\n $criteria->compare('update_by', $this->update_by, true);\n $criteria->compare('update_date', $this->update_date, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "5b3430391e6e49db5a696e1fffdcef7a", "score": "0.6717127", "text": "public function search()\n {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria=new CDbCriteria;\n\n $criteria->compare('measurementId',$this->measurementId,true);\n $criteria->compare('experimentSetupId',$this->experimentSetupId);\n $criteria->compare('dateTime',$this->dateTime,true);\n $criteria->compare('dcVoltage',$this->dcVoltage,true);\n $criteria->compare('dcCurrent',$this->dcCurrent,true);\n $criteria->compare('rfPower',$this->rfPower,true);\n $criteria->compare('massFlow',$this->massFlow,true);\n $criteria->compare('pressure',$this->pressure,true);\n $criteria->compare('magnet1',$this->magnet1,true);\n $criteria->compare('magnet2',$this->magnet2,true);\n $criteria->compare('magnet3',$this->magnet3,true);\n $criteria->compare('magnet4',$this->magnet4,true);\n $criteria->compare('magneticField',$this->magneticField,true);\n $criteria->compare('magneticFieldGradient',$this->magneticFieldGradient,true);\n $criteria->compare('dataPath',$this->dataPath,true);\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "2f9b8c8ea163d419a3a734eea8942834", "score": "0.6714846", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('webname',$this->webname,true);\n\t\t$criteria->compare('weburl',$this->weburl,true);\n\t\t$criteria->compare('weblogo',$this->weblogo,true);\n\t\t$criteria->compare('link_type',$this->link_type);\n\t\t$criteria->compare('info',$this->info,true);\n\t\t$criteria->compare('contact',$this->contact,true);\n\t\t$criteria->compare('orderno',$this->orderno);\n\t\t$criteria->compare('com_ok',$this->com_ok);\n\t\t$criteria->compare('show_ok',$this->show_ok);\n\t\t$criteria->compare('addtime',$this->addtime,true);\n\t\t$criteria->compare('lang',$this->lang,true);\n\t\t$criteria->compare('ip',$this->ip,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "ca0af9a4c712b0695e392505df5598a2", "score": "0.6712235", "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('id',$this->id);\n\t\t$criteria->compare('planyear',$this->planyear,true);\n\t\t$criteria->compare('plandate',$this->plandate,true);\n\t\t$criteria->compare('plandetail',$this->plandetail,true);\n\t\t$criteria->compare('planfile',$this->planfile,true);\n\t\t$criteria->compare('coid',$this->coid);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "bae7c480146cfbd6f5749b6ac174cb3d", "score": "0.671168", "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('id_contract',$this->id_contract);\n\t\t$criteria->compare('code',$this->code,true);\n\t\t$criteria->compare('type',$this->type);\n\t\t$criteria->compare('engagement',$this->engagement);\n\t\t$criteria->compare('status_contract',$this->status_contract);\n\t\t$criteria->compare('date_from',$this->date_from,true);\n\t\t$criteria->compare('date_until',$this->date_until,true);\n\t\t$criteria->compare('value',$this->value);\n\t\t$criteria->compare('value_folder',$this->value_folder);\n\t\t$criteria->compare('object',$this->object,true);\n\t\t$criteria->compare('status',$this->status);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "281429c91c7d748e42e2729ff225c21f", "score": "0.67109823", "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('FOR_CORREL',$this->FOR_CORREL,true);\n\t\t$criteria->compare('PRO_CORREL',$this->PRO_CORREL,true);\n\t\t$criteria->compare('FOR_NOMBRE',$this->FOR_NOMBRE,true);\n\t\t$criteria->compare('FOR_DESCRIPCION',$this->FOR_DESCRIPCION,true);\n\t\t$criteria->compare('FOR_PONDERACION',$this->FOR_PONDERACION,true);\n\t\t$criteria->compare('FOR_DETALLE',$this->FOR_DETALLE,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "7403cc458233e4b095589d7995bc47d2", "score": "0.6708839", "text": "public function search(){\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\t\t$criteria = new CDbCriteria();\n\t\t\n\t\t$criteria->compare('id', $this->id);\n\t\t$criteria->compare('fname', $this->fname, true);\n\t\t$criteria->compare('lname', $this->lname, true);\n\t\t$criteria->compare('username', $this->username, true);\n\t\t$criteria->compare('email', $this->email, true);\n\t\t$criteria->compare('company', $this->company, true);\n\t\t$criteria->compare('charter_num', $this->charter_num, true);\n\t\t$criteria->compare('street', $this->street, true);\n\t\t$criteria->compare('city', $this->city, true);\n\t\t$criteria->compare('state', $this->state, true);\n\t\t$criteria->compare('zip', $this->zip, true);\n\t\t$criteria->compare('phone', $this->phone, true);\n\t\t$criteria->compare('operator_id', $this->operator_id);\n\t\t$criteria->compare('auth_level', $this->auth_level);\n\t\t$criteria->compare('activation_code', $this->activation_code);\n\t\t$criteria->compare('status', $this->status);\n\t\t\n\t\treturn new CActiveDataProvider($this, array('criteria'=>$criteria));\n\t}", "title": "" }, { "docid": "e03e33ec75b4f82478247ff99e5cbb62", "score": "0.67077607", "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('id',$this->id,true);\n\t\t$criteria->compare('company_name',$this->company_name,true);\n\t\t$criteria->compare('company_address',$this->company_address,true);\n\t\t$criteria->compare('pact_start_date',$this->pact_start_date,true);\n\t\t$criteria->compare('pact_over_date',$this->pact_over_date,true);\n\t\t$criteria->compare('service_fee_state',$this->service_fee_state);\n\t\t$criteria->compare('service_fee_value',$this->service_fee_value);\n\t\t$criteria->compare('can_bao_state',$this->can_bao_state);\n\t\t$criteria->compare('can_bao_value',$this->can_bao_value);\n\t\t$criteria->compare('companyEmail',$this->companyEmail,true);\n\t\t$criteria->compare('remarks',$this->remarks,true);\n\t\t$criteria->compare('geshui_dateType',$this->geshui_dateType);\n\t\t$criteria->compare('company_level',$this->company_level);\n\t\t$criteria->compare('account_value',$this->account_value,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "dcbac2e3b4bf17878c780521a66b27e8", "score": "0.6707026", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('re_id',$this->re_id);\n\t\t$criteria->compare('re_name',$this->re_name,true);\n\t\t$criteria->compare('re_fallup',$this->re_fallup);\n\t\t$criteria->compare('re_margin',$this->re_margin);\n\t\t$criteria->compare('re_market',$this->re_market,true);\n\t\t$criteria->compare('re_price',$this->re_price,true);\n\t\t$criteria->compare('re_max_price',$this->re_max_price,true);\n\t\t$criteria->compare('re_status',$this->re_status);\n\t\t$criteria->compare('re_added_time',$this->re_added_time,true);\n\t\t$criteria->compare('re_updated_time',$this->re_updated_time,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "61cbe49ee20bcf8b37b64c3bb64e1513", "score": "0.6706094", "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('isin',$this->isin,true);\n\t\t$criteria->compare('funds_name',$this->funds_name,true);\n\t\t$criteria->compare('funds_currency',$this->funds_currency,true);\n\t\t$criteria->compare('nav',$this->nav,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "549f9aa7f1c78e196abdefbfb5f41e56", "score": "0.67056316", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\t\tif(isset($this->product_id)){\n\t\t\t$this->product_id = Utilities::getProductId($this->product_id);\n\t\t}\n\t\tif(isset($this->vendor_id)){\n\t\t\t$this->vendor_id = Utilities::getVendorId($this->vendor_id);\n\t\t}\n\t\t\n\t\t$criteria->compare('stock_id',$this->stock_id);\n\t\t$criteria->compare('product_id',$this->product_id);\n\t\t$criteria->compare('available_quantity',$this->available_quantity);\n\t\t$criteria->compare('total_sale',$this->total_sale);\n\t\t$criteria->compare('shop_id',$this->shop_id);\n\t\t$criteria->compare('vendor_id',$this->vendor_id);\n\t\t$criteria->compare('year',$this->year,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "3ea45dd23d72f8b103da31f04825e0e9", "score": "0.6704616", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('createby',$this->createby);\n\t\t$criteria->compare('realname',$this->realname,true);\n\t\t$criteria->compare('birthday',$this->birthday,true);\n\t\t$criteria->compare('sex',$this->sex);\n\t\t$criteria->compare('age',$this->age);\n\t\t$criteria->compare('career',$this->career,true);\n\t\t$criteria->compare('remark',$this->remark,true);\n\t\t$criteria->compare('come',$this->come);\n\t\t$criteria->compare('pricelevel',$this->pricelevel);\n\t\t$criteria->compare('email',$this->email,true);\n\t\t$criteria->compare('telephonenum',$this->telephonenum,true);\n\t\t$criteria->compare('weixinnum',$this->weixinnum,true);\n\t\t$criteria->compare('qqnum',$this->qqnum,true);\n\t\t$criteria->compare('sinanum',$this->sinanum,true);\n\t\t$criteria->compare('createtime',$this->createtime,true);\n\t\t$criteria->compare('updatetime',$this->updatetime,true);\n\t\t$criteria->compare('deletetime',$this->deletetime,true);\n\t\t$criteria->compare('deleteflag',$this->deleteflag);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "f0a1c36f60082ff105de1e4db380e360", "score": "0.6700708", "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('id',$this->id);\n\t\t$criteria->compare('type',$this->type,true);\n\t\t$criteria->compare('person',$this->person);\n\t\t$criteria->compare('recipient',$this->recipient);\n\t\t$criteria->compare('comm',$this->comm);\n\t\t$criteria->compare('number',$this->number);\n\t\t$criteria->compare('date',$this->date,true);\n\t\t$criteria->compare('status',$this->status);\n\t\t$criteria->compare('rate',$this->rate);\n\t\t$criteria->compare('need_care',$this->need_care);\n\t\t$criteria->compare('terminated',$this->terminated);\n\t\t$criteria->compare('salary_post',$this->salary_post);\n\t\t$criteria->compare('salary_rank',$this->salary_rank);\n\t\t$criteria->compare('year_inc_percent',$this->year_inc_percent);\n\t\t$criteria->compare('saved_summa',$this->saved_summa);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "7a3efdee58c6cf6dc96dbb8a5ca32165", "score": "0.6697145", "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('cedula',$this->cedula,true);\n\t\t$criteria->compare('nombres',$this->nombres,true);\n\t\t$criteria->compare('apellidos',$this->apellidos,true);\n\t\t$criteria->compare('telefono',$this->telefono,true);\n\t\t$criteria->compare('correo',$this->correo,true);\n\t\t$criteria->compare('celular',$this->celular,true);\n\t\t$criteria->compare('direccion',$this->direccion,true);\n\t\t$criteria->compare('solo_codeudor',$this->solo_codeudor);\n\t\t$criteria->compare('estado_cliente',$this->estado_cliente,true);\n\t\t$criteria->compare('pension',$this->pension,true);\n\t\t$criteria->compare('tp_vinculacion_eps',$this->tp_vinculacion_eps,true);\n\t\t$criteria->compare('eps',$this->eps,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "dc98cf73dbe92c74305f44cfb45293e2", "score": "0.6697098", "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('id',$this->id);\n\t\t$criteria->compare('mode',$this->mode,true);\n\t\t$criteria->compare('pid',$this->pid);\n\t\t$criteria->compare('time_zone',$this->time_zone,true);\n\t\t$criteria->compare('song_repeat',$this->song_repeat);\n\t\t$criteria->compare('artist_repeat',$this->artist_repeat);\n\t\t$criteria->compare('album_repeat',$this->album_repeat);\n\t\t$criteria->compare('input_type',$this->input_type,true);\n\t\t$criteria->compare('input_host',$this->input_host,true);\n\t\t$criteria->compare('input_port',$this->input_port,true);\n\t\t$criteria->compare('input_user',$this->input_user,true);\n\t\t$criteria->compare('input_pass',$this->input_pass,true);\n\t\t$criteria->compare('input_mount',$this->input_mount,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "02e2350c22b1dd8916350fcac27c7c26", "score": "0.6695239", "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('userid',$this->userid);\n\t\t$criteria->compare('bizrule',$this->bizrule,true);\n\t\t$criteria->compare('data',$this->data,true);\n\t\t$criteria->compare('itemname',$this->itemname,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "a01ac4133c740f23aea3bb14c1d11866", "score": "0.669341", "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('mctp_id',$this->mctp_id,true);\n\t\t$criteria->compare('path_case_id',$this->path_case_id,true);\n\t\t$criteria->compare('publish_id',$this->publish_id,true);\n\t\t$criteria->compare('tissue_form',$this->tissue_form,true);\n\t\t$criteria->compare('sub_date',$this->sub_date,true);\n\t\t$criteria->compare('tisue_type',$this->tisue_type,true);\n\t\t$criteria->compare('volume',$this->volume,true);\n\t\t$criteria->compare('project',$this->project,true);\n\t\t$criteria->compare('owner',$this->owner,true);\n\t\t$criteria->compare('comments',$this->comments,true);\n\t\t$criteria->compare('sample_status',$this->sample_status,true);\n\t\t$criteria->compare('barcode',$this->barcode,true);\n\t\t$criteria->compare('diagnosis',$this->diagnosis,true);\n\t\t$criteria->compare('alignment_id',$this->alignment_id,true);\n\t\t$criteria->compare('ge_barcode',$this->ge_barcode,true);\n\t\t$criteria->compare('cgh_barcode',$this->cgh_barcode,true);\n\t\t$criteria->compare('label',$this->label,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n 'pagination'=>array('pageSize'=>100),\n\t\t));\n\t}", "title": "" }, { "docid": "2a9d7f6aaba5627b14ad17606ee313d0", "score": "0.6692755", "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('id_actividades',$this->id_actividades);\n\t\t$criteria->compare('actividad',$this->actividad,true);\n\t\t$criteria->compare('cantidad',$this->cantidad);\n\t\t$criteria->compare('fk_unidad_medida',$this->fk_unidad_medida);\n\t\t$criteria->compare('unidad_medida',$this->unidad_medida,true);\n\t\t$criteria->compare('fk_accion',$this->fk_accion);\n\t\t$criteria->compare('fk_poa',$this->fk_poa);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "9445ba7365f241ad524ad34dd3cc75e8", "score": "0.6690328", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('date',$this->date,true);\n\t\t$criteria->compare('location',$this->location,true);\n\t\t$criteria->compare('contact',$this->contact,true);\n\t\t$criteria->compare('complaint',$this->complaint,true);\n\t\t$criteria->compare('workAssignTo',$this->workAssignTo,true);\n\t\t$criteria->compare('actionTaken',$this->actionTaken,true);\n\t\t$criteria->compare('status',$this->status,true);\n\t\t$criteria->compare('workDoneOn',$this->workDoneOn,true);\n\t\t$criteria->compare('updatedBy',$this->updatedBy,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "dfcfd3ccb74bbcc6b72589e5b8c86cb9", "score": "0.6688713", "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('product_id',$this->product_id);\n\t\t$criteria->compare('finance_companies_info',$this->finance_companies_info,true);\n\t\t$criteria->compare('project_advantage',$this->project_advantage,true);\n\t\t$criteria->compare('risk_disclosure_statement',$this->risk_disclosure_statement,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" } ]
5d1b43365a4daa8f26150bbc9c7908ac
Initialize the configuration for the chosen push service // gcm,etc..
[ { "docid": "10e42acf5a28f7c4446413fc025cf94f", "score": "0.62609726", "text": "public function initializeConfig($service)\n {\n if (function_exists('config_path') &&\n file_exists(config_path('pushnotification.php')) &&\n function_exists('app')\n ) {\n $configuration = app('config')->get('pushnotification');\n } else {\n $configuration = include(__DIR__ . '/Config/config.php');\n }\n\n if (!array_key_exists($service, $configuration)) {\n throw new PushNotificationException(\"Service '$service' missed in config/pushnotification.php\");\n }\n return $configuration[$service];\n }", "title": "" } ]
[ { "docid": "b6154d0ef52df4e46ca7b5e4cd1bfd06", "score": "0.70421576", "text": "public function __construct()\n {\n $this->serverKey = config('web-push.serverKey');\n $this->senderId = config('web-push.senderId');\n\n parent::__construct();\n }", "title": "" }, { "docid": "68340115cde4c83c4af09cd6cd5f9727", "score": "0.6808969", "text": "public function initializing()\n {\n $factory = (new Factory)\n ->withServiceAccount(storage_path() . '/json/firebase_credentials.json');\n\n $this->messaging = ($factory)->createMessaging();\n }", "title": "" }, { "docid": "448d4ff2af46fb0ecad558e744e73b85", "score": "0.67643535", "text": "public function __construct()\n {\n $this->smsSettings = sms_setting();\n Config::set('twilio-notification-channel.auth_token', $this->smsSettings->auth_token);\n Config::set('twilio-notification-channel.account_sid', $this->smsSettings->account_sid);\n Config::set('twilio-notification-channel.from', $this->smsSettings->from_number);\n\n Config::set('nexmo.api_key', $this->smsSettings->nexmo_api_key);\n Config::set('nexmo.api_secret', $this->smsSettings->nexmo_api_secret);\n Config::set('services.nexmo.sms_from', $this->smsSettings->nexmo_from_number);\n\n Config::set('services.msg91.key', $this->smsSettings->msg91_auth_key);\n Config::set('services.msg91.msg91_from', $this->smsSettings->msg91_from);\n }", "title": "" }, { "docid": "448d4ff2af46fb0ecad558e744e73b85", "score": "0.67643535", "text": "public function __construct()\n {\n $this->smsSettings = sms_setting();\n Config::set('twilio-notification-channel.auth_token', $this->smsSettings->auth_token);\n Config::set('twilio-notification-channel.account_sid', $this->smsSettings->account_sid);\n Config::set('twilio-notification-channel.from', $this->smsSettings->from_number);\n\n Config::set('nexmo.api_key', $this->smsSettings->nexmo_api_key);\n Config::set('nexmo.api_secret', $this->smsSettings->nexmo_api_secret);\n Config::set('services.nexmo.sms_from', $this->smsSettings->nexmo_from_number);\n\n Config::set('services.msg91.key', $this->smsSettings->msg91_auth_key);\n Config::set('services.msg91.msg91_from', $this->smsSettings->msg91_from);\n }", "title": "" }, { "docid": "38cc4b24663945bb3dffe5bc5b6aefe5", "score": "0.65887654", "text": "public function __construct()\n {\n $this->options = array(\n 'cluster' => 'eu',\n 'encrypted' => true\n );\n\n $this->pusher = new \\Pusher\\Pusher(\n config('api.pusher.key'),\n config('api.pusher.secret'),\n config('api.pusher.app_id'),\n $this->options\n );\n }", "title": "" }, { "docid": "de9f822b499cc69ba78c3dcaa6265f02", "score": "0.6376778", "text": "public function __construct()\n {\n $this->pb = new Pushbullet(config('services.pushbullet.token'));\n }", "title": "" }, { "docid": "8d1ee618e7c563a3798787ad7d9466dd", "score": "0.636695", "text": "public function __construct()\n {\n $options = array(\n 'cluster' => 'ap2',\n 'useTLS' => true\n );\n $this->p = new Pusher(\n '59b6d021bad0ce5968d7',\n 'e77ee1c084c1de44e119',\n '603747',\n $options\n );\n $this->middleware('auth');\n }", "title": "" }, { "docid": "8f2448b8e833b3790ce59eb73e6496f8", "score": "0.62666565", "text": "public function init()\n {\n parent::init();\n\n if (!$this->appId) {\n throw new InvalidConfigException('AppId cannot be empty!');\n }\n\n if (!$this->appKey) {\n throw new InvalidConfigException('AppKey cannot be empty!');\n }\n\n if (!$this->appSecret) {\n throw new InvalidConfigException('AppSecret cannot be empty!');\n }\n\n foreach (array_keys($this->options) as $key) {\n if (in_array($key, $this->selectableOptions) === false) {\n throw new InvalidConfigException($key . ' is not a valid option!');\n }\n }\n\n if ($this->pusher === null) {\n $this->pusher = new Push($this->appKey, $this->appSecret, $this->appId, $this->options);\n }\n $this->encrypter = new Encrypter($this->appSecret);\n }", "title": "" }, { "docid": "2a75d78f76f8972e06e74d877d193269", "score": "0.62570524", "text": "public function __construct()\n {\n parent::__construct();\n\t\t$this->pusher = new Pusher(env('PUSHER_APP_KEY'),env('PUSHER_APP_SECRET'), env('PUSHER_APP_ID'), array('cluster' => env('PUSHER_APP_CLUSTER'),'encrypted'=>true) );\n }", "title": "" }, { "docid": "a73651c4cec37af00f99d9b9d0a7289e", "score": "0.6186764", "text": "public function _construct()\n {\n $this->_init('swell/notification');\n }", "title": "" }, { "docid": "26f2eb2a1b270915454b055597e273ea", "score": "0.61390996", "text": "public function init(PushPipe $pushPipe, PushSettings $pushSettings);", "title": "" }, { "docid": "cf0500edbf996418f9672dbee53372c6", "score": "0.6114017", "text": "private function initConfig()\n {\n\n $this->config = array(\n 'name' => static::DEF_NAME,\n 'scheme' => static::DEF_SCHEME,\n 'xname' => static::DEF_XNAME,\n 'interval' => static::DEF_INTERVAL,\n );\n\n $this->setPrefix();\n\n }", "title": "" }, { "docid": "ad5b8984c0fa2058450cab90fb522b2a", "score": "0.6090595", "text": "public function __construct(PushNotification $push)\n {\n $this->push = $push;\n }", "title": "" }, { "docid": "5bce3e65e1ab0fb92173c33c2e7a704b", "score": "0.60461485", "text": "private function __init_config() {\n if (!isset($this->config[\"dhcpd\"])) {\n $this->config[\"dhcpd\"] = [];\n }\n }", "title": "" }, { "docid": "e7c74c05cb2f9785dcbaf7e33327332a", "score": "0.6026497", "text": "public function init()\n {\n $config = require_once(__DIR__ . '../../../config/mail/mail_config.php');\n\n //create the transport provider smtp, host and encrypt certificat in ssl\n\n $transport = ( new \\Swift_SmtpTransport('smtp.googlemail.com', 465, 'ssl'))\n\n ->setUsername($config['email'])\n ->setPassword($config['password']);\n\n // Create the Mailer using the created Transport\n $this->mailerSrv = new \\Swift_Mailer($transport);\n }", "title": "" }, { "docid": "580ac8649e125643002c491afe1f537d", "score": "0.6012001", "text": "private function __init_config() {\n if (empty($this->config[\"shaper\"])) {\n $this->config[\"shaper\"] = [];\n }\n # Check if there is no shaper queue array in the config\n if (empty($this->config[\"shaper\"][\"queue\"])) {\n $this->config[\"shaper\"][\"queue\"] = [];\n }\n }", "title": "" }, { "docid": "f6109a801d132ce999e5c035afaa4805", "score": "0.5990182", "text": "public function initConfig()\n {\n $this->config = array();\n }", "title": "" }, { "docid": "2809dbfe50cd341737b0f13d5a96ce73", "score": "0.59635526", "text": "private function getConfiguration() {\n $config = \\Drupal::state()->get('config_cliente_kalley_services', NULL);\n\n if (!empty($config)) {\n $this->wsUrl = $config['ws_endpoint'];\n $this->environment = $config['ws_environment'];\n $this->debug = $config['ws_debug'];\n }\n }", "title": "" }, { "docid": "f456e0603f1347cf936d59667341e087", "score": "0.59599745", "text": "protected function initPaymentGateway()\n {\n // Set your Merchant Server Key\n \\Midtrans\\Config::$serverKey = config('app.midtrans_server_key');\n // Set to Development/Sandbox Environment (default). Set to true for Production Environment (accept real transaction).\n \\Midtrans\\Config::$isProduction = false;\n // Set sanitization on (default)\n \\Midtrans\\Config::$isSanitized = true;\n // Set 3DS transaction for credit card to true\n \\Midtrans\\Config::$is3ds = true;\n }", "title": "" }, { "docid": "cf09255e292dc66e879f7444f4dfbed7", "score": "0.59472585", "text": "protected function initConfig()\n {\n // config should be the one saved on the sendy_api table\n $this->config_values = array(\n 'sendy_api_key' => 'mysendykey',\n 'sendy_api_username' => 'mysendyusername',\n 'api_enviroment' => 'sandbox',\n 'api_from' => 'MarsaBit Plaza, Ngong Road, Nairobi, Kenya', #get current location here\n 'api_lat' => '-1.299897',\n 'api_long' => '36.77305249999995',\n 'api_building' => 'Marsabit Plaza', #try to prefill with location\n 'api_floor' => '3', #leave blank\n 'other_details' => 'room 307' #other details\n );\n return $this->setConfigValues($this->config_values);\n }", "title": "" }, { "docid": "33699cd80cb6c6b9e346667050bf4109", "score": "0.5946785", "text": "public function __construct() {\n $this->username = '[email protected]';\n $this->password = 'mypassword';\n\n // Set who the message is to be sent from, fallback to be overwritten by config\n $this->from = '[email protected]';\n $this->fromname = 'FirstName LastName';\n\n // Set who the message is to be sent to, fallback to be overwritten by config\n $this->recipient = '[email protected]';\n }", "title": "" }, { "docid": "7e47a031fd4bf601bce876999f13713d", "score": "0.59464896", "text": "private function config()\n {\n $config['protocol'] = 'smtp';\n $config['smtp_host'] = 'ssl://smtp.gmail.com'; //change this\n $config['smtp_port'] = '465';\n $config['smtp_user'] = '[email protected]'; //change this\n $config['smtp_pass'] = 'password'; //change this\n $config['mailtype'] = 'html';\n $config['charset'] = 'iso-8859-1';\n $config['wordwrap'] = TRUE;\n $config['newline'] = \"\\r\\n\"; //use double quotes to comply with RFC 822 standard\n $this->email->initialize($config);\n }", "title": "" }, { "docid": "2d1e467c3ff30a6b2375fc5b5c115521", "score": "0.5900875", "text": "public function __construct(PushNotificationService $pushNotificationService)\n {\n parent::__construct();\n $this->pushNotificationService = $pushNotificationService;\n }", "title": "" }, { "docid": "59aa6ed67321fa63a6b0b7f58559136c", "score": "0.5900168", "text": "public function __construct() {\n\n $this->config = array(\n 'configId' => 'twitter', // used for identifying multiple accounts\n 'consumerKey' => 'xxx',\n 'consumerSecret' => 'xxx',\n 'accessToken' => 'xxx',\n 'accessTokenSecret' => 'xxx',\n 'screenName' => 'xxx'\n );\n\n /*\n * --- End of configuration options ---\n */\n }", "title": "" }, { "docid": "8ee3538978d3897a21c2a22872d6bc1d", "score": "0.58861035", "text": "public function init_configuration(){\n register_setting('dcms_new_users_options_bd', 'dcms_newusers_options' );\n register_setting('dcms_change_seats_options_bd', 'dcms_changeseats_options' );\n\n $this->fields_new_user();\n $this->fields_change_seats();\n }", "title": "" }, { "docid": "b6d3e9a5d3e2ed9eec8a7b9da4289775", "score": "0.58626854", "text": "public function initialize($config) {}", "title": "" }, { "docid": "57e36067f11595e4efba3a36f8834be7", "score": "0.58608747", "text": "protected function initialiseWebPush(string $option, string $configKey = 'vapidKey'): void\n\t{\n\t\t$this->webPushOption = $option;\n\t\t$this->webPushConfigKey = $configKey;\n\t}", "title": "" }, { "docid": "516672a2b3c906e4412b9151612a66ef", "score": "0.58477336", "text": "private function initPaymentGateway()\n {\n // Set your Merchant Server Key\n \\Midtrans\\Config::$serverKey = env('MIDTRANS_SERVER_KEY');\n // Set to Development/Sandbox Environment (default). Set to true for Production Environment (accept real transaction).\n \\Midtrans\\Config::$isProduction = false;\n // Set sanitization on (default)\n \\Midtrans\\Config::$isSanitized = true;\n // Set 3DS transaction for credit card to true\n \\Midtrans\\Config::$is3ds = true;\n }", "title": "" }, { "docid": "2a90b326677db30f90895264798c9792", "score": "0.58321583", "text": "function __construct(){\n\t\t$GLOBALS['klarna']->config(\n\t\t $GLOBALS['config']['klarna']['eid'], // Merchant ID\n\t\t $GLOBALS['config']['klarna']['sharedSecret'], // Shared secret\n\t\t KlarnaCountry::SE, // Purchase country\n\t\t KlarnaLanguage::SV, // Purchase language\n\t\t KlarnaCurrency::SEK, // Purchase currency\n\t\t Klarna::BETA, // Server\n\t\t 'json', // PClass storage\n\t\t './pclasses.json' // PClass storage URI path\n\t\t);\n\t}", "title": "" }, { "docid": "46297d68499c8889426f5c4b091228b3", "score": "0.58188665", "text": "public function __construct($mastersecret='', $appkeys='', $platform='', $audience='', $notification='', $message='') {\n $this->_appkeys = $appkeys;\n $this->_mastersecret = $mastersecret;\n $this->_platform = $platform;\n $this->_audience = $audience;\n $this->_notification = $notification;\n $this->_message = $message;\n // $this->_option = $option;\n }", "title": "" }, { "docid": "ba5925051ec50f2c140af69b7587b40e", "score": "0.5817087", "text": "public function __construct(){\n\t\tglobal $sroot;\n\t\t\n\t\tif(file_exists($sroot.CONFIG::$DBS.CONFIG::$dbfile)){\n\t\t\t$conf = file_get_contents($sroot.CONFIG::$DBS.CONFIG::$dbfile);\n\t\t\t$conf = unserialize($conf);\n\t\t\tif($conf instanceof CONFIG){\n\t\t\t\t$s= $conf->getSab();\n\t\t\t\t$this->sab[\"server\"] = $s[\"server\"];\n\t\t\t\t$this->sab[\"apikey\"] = $s[\"apikey\"];\n\t\t\t\t$this->sab[\"port\"] = $s[\"port\"];\n\t\t\t\t$this->sab[\"category\"] = $s[\"category\"];\n\t\t\t\t$this->sab[\"enabled\"] = $s[\"enabled\"];\n\t\t\t\t$this->sab[\"https\"] = $s[\"https\"];\n\t\t\t\t$s= $conf->getEmail();\n\t\t\t\t$this->email[\"enabled\"] = $s[\"enabled\"];\n\t\t\t\t$this->email[\"to\"] = $s[\"to\"];\n\t\t\t\t$this->email[\"from\"] = $s[\"from\"];\n\t\t\t\t$this->email[\"subject\"] = $s[\"subject\"];\n\t\t\t\t$this->info = array(true, \"config loaded \");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tunlink($sroot.CONFIG::$DBS.CONFIG::$dbfile);\n\t\t\t\t$this->info = array(true,\"initialized config with default settings1\");\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\t$this->info = array(true,\"initialized config with default settings0<br>\");\n\t\t}\n\t\tLOG::info(__FILE__.\" Line[\".__LINE__.\"]\".$this->info[1]);\n\t}", "title": "" }, { "docid": "dc45190e6c7216ccadc7c5ed71c2c2cc", "score": "0.5803182", "text": "protected function setup_config() {\n\t\t}", "title": "" }, { "docid": "6bbe0fdf2b3f8710261a315c4c5f931e", "score": "0.5801572", "text": "abstract protected function initConfig(): void;", "title": "" }, { "docid": "3dbe7e6f1c5895064cd166247af57f63", "score": "0.57832426", "text": "public function initWxPayConfig() {\n $wxshop = $this;\n WxPayConfig::$shopid = $wxshop->id;\n WxPayConfig::$appid = $wxshop->appid;\n WxPayConfig::$appsecret = $wxshop->secret;\n WxPayConfig::$mchid = $wxshop->mchid;\n WxPayConfig::$key = $wxshop->mkey;\n }", "title": "" }, { "docid": "6a98cc23acbd3a563a571e7a9f5ab792", "score": "0.5778838", "text": "public static function _init()\n\t{\n\t\t\\Config::load('queue', true);\n\n\t\tstatic::$config = \\Config::get('queue');\n\t\tstatic::validate();\n\t}", "title": "" }, { "docid": "40dd82bc41a924f366de3be47bdf0839", "score": "0.57588655", "text": "protected function __construct() {\n\t\t\t$this->arrConfig = array();\n\t\t}", "title": "" }, { "docid": "b238bc7d4ab9bad5970e2caee6135a7a", "score": "0.57585526", "text": "public function __construct(){\n $this->googleApiKey = config('googleapikey.GoogleAPIKey');\n }", "title": "" }, { "docid": "730c5d640518980055dd816a19c71117", "score": "0.57253623", "text": "protected function setUp()\n {\n \\Native5\\Application::init(__DIR__.'/../../../../config/settings.yml');\n\n $this->object = NotificationService::instance();\n $this->_logger = $GLOBALS['logger'];\n }", "title": "" }, { "docid": "4f01464043acc91b692c67063fb1d9b0", "score": "0.57150763", "text": "public function initialize()\n {\n $this->configuration = &Config::getConfiguration();\n }", "title": "" }, { "docid": "29a5f96a15a3243c7f910cf2c7afbf1c", "score": "0.57142663", "text": "protected function initPaymentGateway()\n {\n \\Midtrans\\Config::$serverKey = \"SB-Mid-server-L8i4sQJ9VjWSNRHYRa2V1ODE\";\n // Set to Development/Sandbox Environment (default). Set to true for Production Environment (accept real transaction).\n \\Midtrans\\Config::$isProduction = false;\n // Set sanitization on (default)\n \\Midtrans\\Config::$isSanitized = true;\n // Set 3DS transaction for credit card to true\n \\Midtrans\\Config::$is3ds = true;\n }", "title": "" }, { "docid": "3092d0c5517bf711ad3f2ec3a3f827df", "score": "0.57067424", "text": "public function __construct()\n {\n $config = (object) config('exception-notification');\n\n $this->toAddresses = $config->toAddresses;\n\n $this->queueOptions = (object) $config->queueOptions;\n }", "title": "" }, { "docid": "a4657343109c24406f53d2849bada4bc", "score": "0.5698507", "text": "public function init()\n {\n $this->bitrix_app = config('bitrix.app.app_name');\n $this->client_id = config('bitrix.app.client_id');\n $this->client_secret = config('bitrix.app.client_secret');\n $this->scope = config('bitrix.app.scope');\n $this->bitrix24=config('bitrix.app.app_name').\".bitrix24.ru\";\n }", "title": "" }, { "docid": "4b45c84260001a11be0b4e7d04bd2579", "score": "0.56952196", "text": "protected function init()\n {\n $this->subnetworks = $this->createSubnetworksSetting();\n }", "title": "" }, { "docid": "267e13f89900ca4a07f10b260249ffbe", "score": "0.5678598", "text": "public function __construct()\n {\n $this->conf = $this->config('application');\n }", "title": "" }, { "docid": "5ff4312878c3b5c2043561c3ab1c9b68", "score": "0.5677402", "text": "public function __construct() \n\t\t{\n\t\t\t\n\t\t\t$this->webhook = 'your_hook_here';\n\t\t\t$this->channel = 'your_channel_here';\n\n\t\t}", "title": "" }, { "docid": "c8b4f57d52f1559f7e5217802cdfcbb2", "score": "0.5674066", "text": "public function __construct()\n {\n $this->apiConfig = Configuration::getInstance()->getConfig('Api');\n }", "title": "" }, { "docid": "22fe2a9c443c7ceccf10b0159c8c13aa", "score": "0.5670134", "text": "private function init()\n {\n // Define Default Config:\n \n $this->setConfig(self::$default_config);\n \n // Load JSON Config File:\n \n $file = new JsonFile(self::CONFIG_FILE);\n \n // Merge JSON Config (if file exists):\n \n if ($file->exists()) {\n $this->mergeConfig($file->read());\n }\n }", "title": "" }, { "docid": "fbd5efc4401e24e54563f48aaa9f8c67", "score": "0.56689966", "text": "public function __construct() {\n $config = Drupal::config('emailservice.config');\n $this->config = $config;\n $api_url = $config->get('peytzmail_api_url');\n $this->request = new Client(['base_uri' => $api_url]);\n }", "title": "" }, { "docid": "0fbc972054cdb46c75f79fd66dc41e0f", "score": "0.56665", "text": "function init(ConfigurationInterface$config);", "title": "" }, { "docid": "ba6719308ef75e41727f6838663d026d", "score": "0.5664635", "text": "private function initialize()\n {\n $this->company = \"Hakathon\";\n $this->appName = \"Poubelle Manager\";\n $this->appVersion = $_ENV['APP_VERSION'] ?? '0.0.1';\n $this->protocol = 'https://';\n $this->protocolApi = $_ENV['API_PROTOCOL'] ?? $this->protocol;\n\n $this->appDomain = $_ENV['APP_DOMAIN'] ?? 'hedylamarr-castelhackathon.vercel.app';\n $this->fullAppDomain = $this->protocol . $this->appDomain .'/';\n\n $this->apiDomain = $_ENV['API_DOMAIN'] ?? 'api-hedy-lamarr.herokuapp.com';\n $this->fullApiDomain = $this->protocolApi . $this->apiDomain .'/';\n\n $this->apiGovDomain = $_ENV['API_GOV_DOMAIN'] ?? 'api-adresse.data.gouv.fr';\n $this->fullApiGovDomain = $this->protocol . $this->apiGovDomain .'/';\n }", "title": "" }, { "docid": "75fb43c3d48c3dc3c1f2b84572c1034f", "score": "0.5662344", "text": "abstract public function init(AppConfig $cfg);", "title": "" }, { "docid": "062bb64da56083da123686c64283f3cb", "score": "0.56622845", "text": "public function __construct()\n\t{\n\t\t$this->config = [];\n\t}", "title": "" }, { "docid": "4b53cb5f01ab619a385d97804738f8ea", "score": "0.5654858", "text": "public function config()\n {\n $twilio = $this->get('twilio.api');\n\n $message = $twilio->account->messages->sendMessage(\n '+14085551234', // From a Twilio number in your account\n '+12125551234', // Text any number\n \"Hello monkey!\"\n );\n\n }", "title": "" }, { "docid": "fbd01e3f7ab3b5a1f6bbc8e02c5b7215", "score": "0.5643493", "text": "public function __construct() {\n\t\t\t$axip_settings = get_option ( 'axip_general_settings' );\n\t\t\t$this->_apiToken = $axip_settings ['api_token'];\n\t\t\t$this->_wsToken = $axip_settings ['webservice_token'];\n\t\t\t$this->_ApiBaseUrl = $axip_settings ['webservice_base_path'];\n\t\t}", "title": "" }, { "docid": "63235c60647c64c3b73290ed493812d9", "score": "0.56389827", "text": "public function __construct(Push $push)\n {\n $this->push = $push;\n }", "title": "" }, { "docid": "6494bb36da8e80fef4c0fa502c0ffad5", "score": "0.5638579", "text": "public function init() {\r\n\t\t\t// Don't hook anything else in the plugin if we're in an incompatible environment\r\n\t\t\tif ( self::get_environment_warning() ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\r\n\t\t\t// Init the gateway itself\r\n\t\t\t$this->init_gateways();\r\n\t\t}", "title": "" }, { "docid": "bfe29b73de1f3e4a0e0970ef691024eb", "score": "0.5634092", "text": "public function __construct($service)\n {\n clearos_profile(__METHOD__, __LINE__);\n\n $this->service = $service;\n $this->cachefile = self::PATH_APPS . \"/$service/subscription\";\n\n include clearos_app_base('clearcenter') . '/deploy/config.php';\n $this->config = $config;\n }", "title": "" }, { "docid": "c66c0edfab6ae625af9ff3dbfe03e405", "score": "0.5624654", "text": "public function __construct(PushNotification $pushNotification)\n {\n $this->pushNotification = $pushNotification;\n }", "title": "" }, { "docid": "069e3ab7a42fdcf91f356fe818297ad9", "score": "0.5607144", "text": "public function __construct() {\n // you must do so before instantiating the SimpleAPI\n //If you do not set the name and path of your configuration file,\n // then SimpleAPI will search for a file named 'config.php' up to three levels from the current script\n SimpleAPI::setConfigFile( 'endpointConfig.php' );\n $this->SimpleAPI = new SimpleAPI();\n }", "title": "" }, { "docid": "7ec64f518afb1a6bbfea9247f04ca5f6", "score": "0.5597336", "text": "public function __construct() {\n\t\t\tif (!Configure::read('Google')) {\n\t\t\t\t$GoogleConfig = new GoogleConfig();\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "b0cb644e91a4651eb38781f68e3627f9", "score": "0.55844665", "text": "private function __construct() {\n $pamConf = api_config::getInstance()->pam;\n $this->pamLoadConfig($pamConf);\n }", "title": "" }, { "docid": "de4dd157794150bc2997be43908c3515", "score": "0.5583174", "text": "public function init(){\n\t\t\t$this->google = $this->create_google_client();\n\n\t\t\t// Set Authorization Configurations\n\t\t\t$auth_config = $this->set_auth_config();\n\n\t\t\t// Set Service to be used after validation of code\n\t\t\t$this->service = $this->set_service();\n\n\t\t\t//Add proper Scope to Google Client\n\t\t\t$scope = $this->add_scope();\n\t\t}", "title": "" }, { "docid": "916a26d90f0e4ca84bfdea586d633947", "score": "0.5568941", "text": "public function __construct () {\n $paypal_conf = config('paypal');\n $this->_api_context = new ApiContext(new OAuthTokenCredential($paypal_conf['client_id'], $paypal_conf['secret']));\n $this->_api_context->setConfig($paypal_conf['settings']);\n }", "title": "" }, { "docid": "7acc80769fa4eedf316315c6314dfde4", "score": "0.55679774", "text": "public function __construct() {\n $this->host = get_config('local_rocketchat', 'host');\n $this->port = get_config('local_rocketchat', 'port');\n $this->httpOnly = get_config('local_rocketchat', 'protocol');\n $this->useToken = get_config('local_rocketchat', 'usetoken');\n $this->username = get_config('local_rocketchat', 'username');\n $this->password = get_config('local_rocketchat', 'password');\n\n $this->url = 'http' . ( $this->httpOnly ? '' : 's' ) . '://'\n . $this->host . ':' . $this->port;\n $this->api = '';\n\n if ($this->useToken) {\n $this->userId = $this->username;\n $this->authToken = $this->password;\n $this->authenticated = true;\n } else {\n $this->authenticate();\n }\n }", "title": "" }, { "docid": "3090f3253d9bd1347547e51bb095b22c", "score": "0.5566007", "text": "public function __construct() {\n $this->uri = MC_URI::instance();\n $this->cfg = MC_Config::instance();\n $this->cfg->load('config');\n $this->cfg->load('routes', 'route', TRUE);\n \n $this->routes = $this->cfg->section('routes');\n }", "title": "" }, { "docid": "58596ac156a8ac430a333a85f1eacb06", "score": "0.5553685", "text": "function __construct() {\r\n $GLOBALS['um_messaging'] = $this;\r\n add_filter( 'um_call_object_Messaging_API', array( &$this, 'get_this' ) );\r\n\r\n\t\tif ( UM()->is_request( 'admin' ) ) {\r\n\t\t\t$this->admin_upgrade();\r\n\t\t}\r\n\r\n $this->api();\r\n $this->enqueue();\r\n $this->shortcode();\r\n $this->gdpr();\r\n\r\n\t\tadd_action( 'plugins_loaded', array( &$this, 'init' ), 1 );\r\n\r\n add_filter( 'um_settings_default_values', array( &$this, 'default_settings' ), 10, 1 );\r\n\r\n add_filter( 'um_rest_api_get_stats', array( &$this, 'rest_api_get_stats' ), 10, 1 );\r\n\r\n add_filter( 'um_email_templates_path_by_slug', array( &$this, 'email_templates_path_by_slug' ), 10, 1 );\r\n }", "title": "" }, { "docid": "edc0e6289d83d5fca8822c4c56776d2b", "score": "0.5548791", "text": "function __construct() {\n\t\tparent::__construct();\n\t\t/* Config for email class */\n\t\t$config = Array(\n\t\t\t'protocol' => 'mail',\n\t\t);\n\t\t$this->email->initialize($config);\n\t}", "title": "" }, { "docid": "6f77b81a3c0df65175f8ba431846e0ae", "score": "0.5545875", "text": "public function init()\n\t{\n\t\t#\n\t\t# Support for Contact Forms\n\t\tif ($this->getSettings()->getAttribute('enableContactFormSupport'))\n\t\t{\n\t\t\tcraft()->on('cerberus.sendMessage', function(Event $event)\n\t\t\t{\n\t\t\t\t// If the akismetApiKey is not provided in the settings we are going to skip the Akismet integration completely\n\t\t\t\tif ($settings->akismetApiKey !== \"\") {\n\t\t\t\t\t$spam = cerberus()->detectContactFormSpam($event->params['message']);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$spam = false;\n\t\t\t\t}\n\n\t\t\t\t$message = $event->params['message'];\n\t\t\t\t$token = $this->pluginSettings->getAttribute('uuidToken');\n\n\t\t\t\tif ($spam)\n\t\t\t\t{\n\t\t\t\t\t$event->fakeIt = true;\n\t\t\t\t}\n\t\t\t\telse if ($message->token != $token)\n\t\t\t\t{\n\t\t\t\t\t$event->fakeIt = true;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "title": "" }, { "docid": "c054a4c4f7077adabed46a7022051d31", "score": "0.55329466", "text": "public function setConfig()\n {\n $this->config = GCPAuthHelper::getGoogleCredentialsFile();\n /**\n * TODO: Prepare to receive all available configs\n * already accepts if is build correctly at 'cloud-services.yaml'\n */\n $this->config['keyFile'] = $this->readCredentialsFile();\n\n if(!is_null($this->bucket)){\n $this->bucket($this->getBucketName());\n }\n }", "title": "" }, { "docid": "01a9e3a6dfcd01ff20ce7d29312cb8b4", "score": "0.5531354", "text": "public function init()\n {\n $this->requestId = $this->debug->data->get('requestId');\n $this->cfg['output'] = $this->debug->getCfg('output', Debug::CONFIG_DEBUG);\n if ($this->cfg['output']) {\n $this->publishMeta();\n }\n }", "title": "" }, { "docid": "3d86b5d5b5ec35990677b574509b68c0", "score": "0.55284446", "text": "public function init() {\n\n\t\tparent::init();\n\n\t\t$this->add_delayed_payment_support(\n\t\t\tarray(\n\t\t\t\t'option_label' => esc_html__( 'Send message to Slack only when payment is received.', 'gravityformsslack' ),\n\t\t\t)\n\t\t);\n\n\t}", "title": "" }, { "docid": "94f1a2835201742512c3a8bdaf049bdd", "score": "0.5527413", "text": "public function _construct()\r\n {\r\n $this->_init('tm_email/gateway_storage', 'id');\r\n }", "title": "" }, { "docid": "65b817e735b4e19eec95b976c31591ad", "score": "0.5526901", "text": "protected function _initConfigFromFile() {\n\t\t\tif (!$this->_emailConfigExists) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t$this->_CakeEmail->config('saito');\n\t\t}", "title": "" }, { "docid": "48c732aed19ae2a883b4c8143b5fcedf", "score": "0.5524285", "text": "protected function configure()\n {\n $this->setupBroker();\n $this->setupPaybill();\n $this->setNumberGenerator();\n }", "title": "" }, { "docid": "509baff9fdc1068991db52a10e77b1d2", "score": "0.5522835", "text": "public function __construct($CompanyGatewayID){\n $setting = GatewayAPI::getSetting($CompanyGatewayID,'VOS');\n foreach((array)$setting as $configkey => $configval){\n if($configkey == 'password'){\n self::$config[$configkey] = Crypt::decrypt($configval);\n }else{\n self::$config[$configkey] = $configval;\n }\n }\n if(count(self::$config) && isset(self::$config['host']) && isset(self::$config['username']) && isset(self::$config['password'])){\n Config::set('remote.connections.production',self::$config);\n }\n }", "title": "" }, { "docid": "c7431c080605f916a9b35441c2acc4ac", "score": "0.5521783", "text": "private function preparePushTest() {\n\t\t$e = Config::EntityTypes;\n\t\t$p = Config::Platforms;\n\t\t$pushClient = new PushClient($this->getDb());\n\t\t$pushClient->setPostParams($this->addPostParams(\n\t\t\t[$p[0]],\n\t\t\t[\n\t\t\t\t$e[0] => [\n\t\t\t\t\t'go words',\n\t\t\t\t\t're re re'\n\t\t\t\t]\n\t\t\t]\n\t\t));\n\t\t$pushClient->add();\n\t}", "title": "" }, { "docid": "95781a1b49502f0aa1ca191ac6e426e1", "score": "0.55153716", "text": "public function __construct(){\n $config = call_user_func_array(\n array($this, 'parseConfig'),\n func_get_args()\n );\n $config = $this->validateAndCleanConfig($config);\n $this->_url = $this->buildUrl($config);\n $this->assertReachableXbmc();\n }", "title": "" }, { "docid": "2fc0bd4fc0331f9a3a7fe6077434ee42", "score": "0.551531", "text": "public function __construct()\n {\n $this->middleware('guest');\n $configs = \\App\\Models\\Config::pluck('value', 'key')->all();\n config(['app.name' => $configs['site_title']]);\n config(['mail.driver' => ($configs['smtp_mode']) ? 'smtp' : 'sendmail']);\n config(['mail.host' => empty($configs['smtp_host']) ? env('MAIL_HOST', '') : $configs['smtp_host']]);\n config(['mail.port' => empty($configs['smtp_port']) ? env('MAIL_PORT', '') : $configs['smtp_port']]);\n config(['mail.encryption' => empty($configs['smtp_security']) ? env('MAIL_ENCRYPTION', '') : $configs['smtp_security']]);\n config(['mail.username' => empty($configs['smtp_user']) ? env('MAIL_USERNAME', '') : $configs['smtp_user']]);\n config(['mail.password' => empty($configs['smtp_password']) ? env('MAIL_PASSWORD', '') : $configs['smtp_password']]);\n config(['mail.from' =>\n ['address' => $configs['site_email'], 'name' => $configs['site_title']]]\n );\n }", "title": "" }, { "docid": "3c76db2d358adfd76b15aca33c396fce", "score": "0.5509868", "text": "public function init()\n {\n // Set current application mode\n $this->mode = $this->config->get('main.mode') ?? MODE_PRODUCTION;\n // Set current error handling mode\n $this->show_native_php_error = $this->config->get('main.show_native_errors') ?? false;\n //-----\n $this->setConstants();\n //-----\n if (!$this->show_native_php_error) {\n register_shutdown_function([$this, 'shut']);\n set_error_handler([$this, 'handler']);\n set_exception_handler([$this, 'logException']);\n }\n }", "title": "" }, { "docid": "fb4c2216e4ff60ae9d03a1105e07268c", "score": "0.5509393", "text": "public function __construct() {\n $this->config = new Config();\n }", "title": "" }, { "docid": "6533560c0fc4bd8f4803a32b45624f5c", "score": "0.5503308", "text": "public function __construct() {\n\t\t$this->config=new Configuration();\n\t}", "title": "" }, { "docid": "ffe5ea0b3231e05e561fae735cdc5fb2", "score": "0.5500787", "text": "public function __construct()\n {\n $this->apiInterfaceService = new PayPalAPIInterfaceServiceService([\n 'mode' => env('PAYPAL_MODE'),\n 'log.LogEnabled' => env('PAYPAL_LOG_ENABLED'),\n 'log.FileName' => env('PAYPAL_LOG_FILE_NAME'),\n 'log.LogLevel' => env('PAYPAL_LOG_LEVEL'),\n 'acct1.UserName' => env('PAYPAL_USERNAME'),\n 'acct1.Password' => env('PAYPAL_PASSWORD'),\n 'acct1.Signature' => env('PAYPAL_SIGNATURE')\n ]);\n }", "title": "" }, { "docid": "0825e937f949451b95d911da01c76239", "score": "0.5494366", "text": "private function _setConfig() {\n }", "title": "" }, { "docid": "31d7697a2e54a080adb6cb2bfbbd446c", "score": "0.5493575", "text": "protected function _construct()\n {\n $storeId = $this->getStoreId();\n $helper = Mage::helper('tig_myparcel');\n $username = $helper->getConfig('username', 'api', $storeId);\n $key = $helper->getConfig('key', 'api', $storeId, true);\n $url = $helper->getConfig('url');\n\n if (Mage::app()->getStore()->isCurrentlySecure()) {\n if(!Mage::getStoreConfig('tig_myparcel/general/ssl_handshake')){\n $url = str_replace('http://', 'https://', $url);\n }\n }\n\n if (empty($username) && empty($key)) {\n return;\n }\n\n $this->apiUrl = $url . '/api/';\n $this->apiUsername = $username;\n $this->apiKey = $key;\n }", "title": "" }, { "docid": "298f2c7432d7fe10f2efa974085734f5", "score": "0.549309", "text": "public function initialization($config)\n {\n }", "title": "" }, { "docid": "1e8fadc876c0537c75c3376c7931789d", "score": "0.54840416", "text": "protected function setupBroker()\n {\n $this->endpoint = $this->store->get('mpesa.endpoint');\n $this->callbackUrl = $this->store->get('mpesa.callback_url');\n $this->callbackMethod = $this->store->get('mpesa.callback_method');\n }", "title": "" }, { "docid": "6a259e2c3b85c2f56fe05e577fe2c80c", "score": "0.5482794", "text": "private function initialize()\n {\n // Read the config file\n $this->setParams();\n\n }", "title": "" }, { "docid": "0901e87f6b6c36d39cf5180287a5886c", "score": "0.54796153", "text": "public function __construct()\n {\n $this->app_key = config('app.appery_app_key');\n }", "title": "" }, { "docid": "a7b1597ce18cef47187398e2d7b2b59a", "score": "0.5476087", "text": "protected function _initConfig()\n {\n Zend_Registry::getInstance()->config = $this->getOptions();\n }", "title": "" }, { "docid": "4af0d9b9cfdce4d6c4a3fdb160169e00", "score": "0.54729956", "text": "protected function _init() {\n $this->_authentication_details = array(\n 'AWSAccessKeyId' => $this->_config['access_key'],\n 'SignatureMethod' => $this->_config['signature_method'],\n 'SignatureVersion' => $this->_config['signature_version'],\n 'Version' => $this->_config['version']\n );\n }", "title": "" }, { "docid": "5ad414c8882b205e6dc75ecf3bd9d8dc", "score": "0.54707235", "text": "public function __construct()\n {\n $consulconfig = \\SimpleSAML\\Configuration::getConfig('module_consul.php');\n\n $this->prefix = $consulconfig->getString('kv_prefix', 'sso');\n $this->multikey = $consulconfig->getBoolean('multikey', false);\n\n $url = $consulconfig->getString('kv_url', 'http://localhost:8500');\n\n $this->sf = new \\SensioLabs\\Consul\\ServiceFactory(['base_uri' => $url]);\n\n try {\n $this->conn = $this->sf->get('kv');\n } catch (\\Exception $ex) {\n throw new \\SimpleSAML\\Error\\Exception(\"Cannot initialize KV store, verify that kv_url is configured\", 8764);\n }\n }", "title": "" }, { "docid": "57b311a6c080777298331f6ab5ec70df", "score": "0.54668766", "text": "private function init()\n {\n //create array from config string\n $this->allowTypes = explode(',', $this->config->get('allow_types'));\n }", "title": "" }, { "docid": "be84d7e991d3a36f08bbd829937d2bab", "score": "0.54551256", "text": "public function configureService ()\n {\n $config = $this->app->config('goodreads');\n $this->url = sprintf($this->apiBase, $config);\n\n }", "title": "" }, { "docid": "cb7eab500ecd07cef9b977edee2716a6", "score": "0.5452466", "text": "public function __construct()\n {\n /** PayPal api context **/\n $paypal_conf = \\Config::get('paypal');\n $this->_api_context = new ApiContext(new OAuthTokenCredential($paypal_conf['client_id'], $paypal_conf['secret']));\n $this\n ->_api_context\n ->setConfig($paypal_conf['settings']);\n }", "title": "" }, { "docid": "15d117613805bb9518bbc3f28721d7e2", "score": "0.5451177", "text": "function sendNotification($gcm_key,$Title,$Message,$mobiletype)\n\t{\n\t\tif ($mobiletype =='1'){\n\n\t\t require_once 'assets/notification/Firebase.php';\n require_once 'assets/notification/Push.php';\n\n $device_token = explode(\",\", $gcm_key);\n $push = null;\n\n// //first check if the push has an image with it\n\t\t $push = new Push(\n\t\t\t\t\t$Title,\n\t\t\t\t\t$Message,\n\t\t\t\t\t'http://heylaapp.com/assets/notification/images/events.jpg'\n\t\t\t\t);\n\n// \t\t\t//if the push don't have an image give null in place of image\n \t\t\t// $push = new Push(\n \t\t\t// \t\t'HEYLA',\n \t\t\t// \t\t'Hi Testing from maran',\n \t\t\t// \t\tnull\n \t\t\t// \t);\n\n \t\t//getting the push from push object\n \t\t$mPushNotification = $push->getPush();\n\n \t\t//creating firebase class object\n \t\t$firebase = new Firebase();\n\n \tforeach($device_token as $token) {\n \t\t $firebase->send(array($token),$mPushNotification);\n \t}\n\n\t\t} else {\n\n\t\t\t$device_token = explode(\",\", $gcm_key);\n\t\t\t$passphrase = 'hs123';\n\t\t $loction ='assets/notification/heylaapp.pem';\n\n\t\t\t$ctx = stream_context_create();\n\t\t\tstream_context_set_option($ctx, 'ssl', 'local_cert', $loction);\n\t\t\tstream_context_set_option($ctx, 'ssl', 'passphrase', $passphrase);\n\n\t\t\t// Open a connection to the APNS server\n\t\t\t$fp = stream_socket_client('ssl://gateway.sandbox.push.apple.com:2195', $err, $errstr, 60, STREAM_CLIENT_CONNECT|STREAM_CLIENT_PERSISTENT, $ctx);\n\n\t\t\tif (!$fp)\n\t\t\t\texit(\"Failed to connect: $err $errstr\" . PHP_EOL);\n\n\t\t\t$body['aps'] = array(\n\t\t\t\t'alert' => array(\n\t\t\t\t\t'body' => $Message,\n\t\t\t\t\t'action-loc-key' => 'Heyla App',\n\t\t\t\t),\n\t\t\t\t'badge' => 2,\n\t\t\t\t'sound' => 'assets/notification/oven.caf',\n\t\t\t\t);\n\n\t\t\t$payload = json_encode($body);\n\n\t\t\tforeach($device_token as $token) {\n\n\t\t\t\t// Build the binary notification\n \t\t\t$msg = chr(0) . pack(\"n\", 32) . pack(\"H*\", str_replace(\" \", \"\", $token)) . pack(\"n\", strlen($payload)) . $payload;\n \t\t$result = fwrite($fp, $msg, strlen($msg));\n\t\t\t}\n\n\t\t\t\tfclose($fp);\n\t\t}\n\t}", "title": "" }, { "docid": "15d117613805bb9518bbc3f28721d7e2", "score": "0.5451177", "text": "function sendNotification($gcm_key,$Title,$Message,$mobiletype)\n\t{\n\t\tif ($mobiletype =='1'){\n\n\t\t require_once 'assets/notification/Firebase.php';\n require_once 'assets/notification/Push.php';\n\n $device_token = explode(\",\", $gcm_key);\n $push = null;\n\n// //first check if the push has an image with it\n\t\t $push = new Push(\n\t\t\t\t\t$Title,\n\t\t\t\t\t$Message,\n\t\t\t\t\t'http://heylaapp.com/assets/notification/images/events.jpg'\n\t\t\t\t);\n\n// \t\t\t//if the push don't have an image give null in place of image\n \t\t\t// $push = new Push(\n \t\t\t// \t\t'HEYLA',\n \t\t\t// \t\t'Hi Testing from maran',\n \t\t\t// \t\tnull\n \t\t\t// \t);\n\n \t\t//getting the push from push object\n \t\t$mPushNotification = $push->getPush();\n\n \t\t//creating firebase class object\n \t\t$firebase = new Firebase();\n\n \tforeach($device_token as $token) {\n \t\t $firebase->send(array($token),$mPushNotification);\n \t}\n\n\t\t} else {\n\n\t\t\t$device_token = explode(\",\", $gcm_key);\n\t\t\t$passphrase = 'hs123';\n\t\t $loction ='assets/notification/heylaapp.pem';\n\n\t\t\t$ctx = stream_context_create();\n\t\t\tstream_context_set_option($ctx, 'ssl', 'local_cert', $loction);\n\t\t\tstream_context_set_option($ctx, 'ssl', 'passphrase', $passphrase);\n\n\t\t\t// Open a connection to the APNS server\n\t\t\t$fp = stream_socket_client('ssl://gateway.sandbox.push.apple.com:2195', $err, $errstr, 60, STREAM_CLIENT_CONNECT|STREAM_CLIENT_PERSISTENT, $ctx);\n\n\t\t\tif (!$fp)\n\t\t\t\texit(\"Failed to connect: $err $errstr\" . PHP_EOL);\n\n\t\t\t$body['aps'] = array(\n\t\t\t\t'alert' => array(\n\t\t\t\t\t'body' => $Message,\n\t\t\t\t\t'action-loc-key' => 'Heyla App',\n\t\t\t\t),\n\t\t\t\t'badge' => 2,\n\t\t\t\t'sound' => 'assets/notification/oven.caf',\n\t\t\t\t);\n\n\t\t\t$payload = json_encode($body);\n\n\t\t\tforeach($device_token as $token) {\n\n\t\t\t\t// Build the binary notification\n \t\t\t$msg = chr(0) . pack(\"n\", 32) . pack(\"H*\", str_replace(\" \", \"\", $token)) . pack(\"n\", strlen($payload)) . $payload;\n \t\t$result = fwrite($fp, $msg, strlen($msg));\n\t\t\t}\n\n\t\t\t\tfclose($fp);\n\t\t}\n\t}", "title": "" }, { "docid": "139f1adb74af15e7fbdeaa093bf1b5fd", "score": "0.5451132", "text": "public function __construct($conf)\n {\n }", "title": "" }, { "docid": "c1a95a448bc6baf3dc35b65b87a8609f", "score": "0.54462343", "text": "public function __construct()\n {\n if (strtolower(config('statscollector.mode')) == 'tcp') {\n $socketClass = \"\\\\Domnikl\\\\Statsd\\\\Connection\\\\TcpSocket\";\n } else {\n $socketClass = \"\\\\Domnikl\\\\Statsd\\\\Connection\\\\UdpSocket\";\n }\n\n $connection = new $socketClass(config('statscollector.host'), config('statscollector.port'));\n\n $this->client = new Client($connection, config('statscollector.ns'));\n\n if (config('statscollector.ns-prefix')) {\n $this->client->setNamespace(config('statscollector.ns-prefix'));\n }\n\n $envs = explode(',', config('statscollector.environments'));\n $this->environments = array_map('trim', $envs);\n $this->methods = [\n 'increment',\n 'decrement',\n 'count',\n 'timing',\n 'time',\n 'startTiming',\n 'endTiming',\n 'memory',\n 'startMemoryProfile',\n 'endMemoryProfile',\n 'gauge',\n 'set',\n ];\n }", "title": "" }, { "docid": "38970381292ee9944b3ed5d44848a6e2", "score": "0.5445203", "text": "public static function initialize() {\n self::$_app_vars = json_decode(file_get_contents(APP_VARS_CONFIG_FILE), true);\n }", "title": "" }, { "docid": "a1c3a3664492920b6add38f183f310a0", "score": "0.5440778", "text": "public function __construct()\r\n {\r\n $this->config = include(Application::$config_map);\r\n }", "title": "" } ]
06d3ea31a6c0f333f374c882924d7d06
Select all questions + their respective author from the category with the specified id + votes
[ { "docid": "5dec2fa055189d2a62e264283964e20d", "score": "0.5594301", "text": "private function select_answers_authors_votes($question, $bestAnswerId)\n {\n $query = 'SELECT A.answer_id,sum(V.liked) as \\'likes\\',count(V.answer_id) as \\'votes\\' FROM answers A , votes V WHERE A.question_id=:id AND V.answer_id=A.answer_id GROUP BY A.answer_id';\n $ps = $this->_db->prepare($query);\n $ps->bindValue(':id', $question->questionId());\n $ps->execute();\n $votes = array();\n while ($row = $ps->fetch()) {\n $votes[$row->answer_id][0] = $row->likes;\n $votes[$row->answer_id][1] = $row->votes - $row->likes;\n }\n\n $query = 'SELECT A.*, M.* FROM answers A, members M WHERE A.author_id= M.member_id AND A.question_id = :id ORDER BY A.answer_id';\n $ps = $this->_db->prepare($query);\n $ps->bindValue(':id', $question->questionId());\n $ps->execute();\n $answers = array();\n $answers[0] = null;\n while ($row = $ps->fetch()) {\n $member = new Member($row->member_id, $row->login, $row->lastname, $row->firstname, $row->mail, $row->admin, $row->suspended);\n $likes = 0;\n $dislikes = 0;\n if (array_key_exists($row->answer_id, $votes)) {\n $likes = $votes[$row->answer_id][0];\n $dislikes = $votes[$row->answer_id][1];\n }\n $answer = new Answer($row->answer_id, $member, $row->subject, $row->publication_date, $likes, $dislikes);\n if($row->answer_id == $bestAnswerId) {\n $question->setBestAnswer($answer);\n }\n $answers[] = $answer;\n }\n return $answers;\n }", "title": "" } ]
[ { "docid": "8989539d1071874df8b8034bad97d945", "score": "0.5904745", "text": "public function select_questions_for_category($idCategory)\n {\n $query = 'SELECT Q.*, M.* FROM questions Q, members M WHERE Q.author_id = M.member_id AND Q.category_id = :id ORDER BY Q.question_id DESC';\n $ps = $this->_db->prepare($query);\n $ps->bindValue(':id', $idCategory);\n $ps->execute();\n\n $questions = array();\n\n while ($row = $ps->fetch()) {\n $author = new Member($row->member_id, $row->login, null, null, null, null, null);\n $questions[] = new Question($row->question_id, $author, null, null, $row->title, null, null, $row->publication_date, null);\n }\n return $questions;\n }", "title": "" }, { "docid": "b330517d74d32412f791b20cf13c37e6", "score": "0.5679783", "text": "public function getAllQuestion(){\n try {\n $sql = \"SELECT asq_questions.*, category.cat_name, (SELECT category.cat_name FROM category WHERE category.cat_id = asq_questions.sub_cat_id) as subcat_name FROM asq_questions JOIN category ON category.cat_id = asq_questions.cat_id WHERE asq_questions.asq_status = 1 ORDER BY asq_questions.asq_id DESC\";\n $result = $this->db->select($sql);\n if ($result) {\n return $result;\n }\n } catch (Exception $e) {\n \n }\n }", "title": "" }, { "docid": "c2f32dfc56383c6b86bc653b3f8b685f", "score": "0.5411144", "text": "public function select_question_for_edit($idQuestion)\n {\n $query = 'SELECT Q.*, M.*, C.* FROM questions Q, members M ,categories C WHERE Q.author_id = M.member_id AND Q.question_id=:id AND Q.category_id=C.category_id';\n $ps = $this->_db->prepare($query);\n $ps->bindValue(':id', $idQuestion);\n $ps->execute();\n $row = $ps->fetch();\n $author = new Member($row->member_id, $row->login, null, null, null, null, null);\n $category = new Category($row->category_id, $row->name);\n return new Question($row->question_id, $author, $category, null, $row->title, $row->subject, $row->state, null, null);\n }", "title": "" }, { "docid": "ecd12263f78450385f3ce767df1d5f19", "score": "0.5390582", "text": "public function select_question_for_new_answer($idQuestion)\n {\n $query = 'SELECT Q.*, M.*, C.* FROM questions Q, members M, categories C WHERE Q.question_id=:id AND Q.author_id = M.member_id AND Q.category_id = C.category_id';\n $ps = $this->_db->prepare($query);\n $ps->bindValue(':id', $idQuestion);\n $ps->execute();\n $row = $ps->fetch();\n $author = new Member($row->member_id, $row->login, null, null, null, null, null);\n $category = new Category($row->category_id, $row->name);\n return new Question($row->question_id, $author, $category, null, $row->title, $row->subject, $row->state, $row->publication_date, null);\n }", "title": "" }, { "docid": "aefea190073adb43a8879e5b464181c4", "score": "0.538429", "text": "function selectArticlesCategorie($idCat){\n $request = $this->pdo->prepare(\"SELECT *, article.id as id_article FROM `article` WHERE visible = 1 AND id_categorie = ?\");\n $request->execute([$idCat]);\n $result_search = $request->fetchAll(PDO::FETCH_ASSOC);\n return $result_search;\n }", "title": "" }, { "docid": "90c06d162277d2a519085a86295a26b7", "score": "0.5377769", "text": "function mp_announcements_get_all($categoryid) \r\n\t{\r\n\t\t\r\n\t\t$results = qa_db_read_all_assoc(\r\n\t\t\t\t\t\tqa_db_query_sub( 'select p.*, u.handle from ^posts p, ^users u where p.type=\"AN\" AND p.categoryid=# AND p.userid = u.userid ORDER BY p.created DESC', $categoryid), 'postid');\r\n\t\t\t\r\n\t\treturn $results;\r\n\t}", "title": "" }, { "docid": "125748744983205f09da583fe70c3438", "score": "0.5367522", "text": "public function checkvote($voterid,$categoryid){\n\t\t\n\t\t$checkvote=Voted::where('user_id',$voterid)\n\t\t->where('category_id',$categoryid)\n\t\t->get();\n\t\treturn $checkvote;\n\t}", "title": "" }, { "docid": "0abb1f15c4b9744d2fca24c7e74bf6eb", "score": "0.5330507", "text": "public function select_questions_category($category){\n $query= \"SELECT * FROM questions WHERE id_category = $category ORDER BY id_question DESC \";\n $ps= $this->_db->prepare($query);\n $ps->execute();\n $array= array();\n\n while($row=$ps->fetch()){\n $array[]= new Question($row->id_question,$row->title,$row->subject,$row->date,$row->state,$this->select_right_answers($row->right_answer),null);\n }\n return $array;\n\n }", "title": "" }, { "docid": "367890e4f256029810eed1bffab37dfb", "score": "0.5292983", "text": "public function getAllQuestions() {\n $this->db->query('SELECT * FROM pd_questions LEFT JOIN pd_topics ON cat_id = fk_topic WHERE fk_topic = cat_id ORDER BY qs_id DESC');\n $result = $this->db->resultSet();\n return $result;\n }", "title": "" }, { "docid": "1e3973a3697ef7037a27c1b49b43361c", "score": "0.5242041", "text": "function getQuestionsOfCategoryAffectedToQuiz($quizId, $categoryId = NULL) \n\t{\n\t\t$query = 'SELECT questions.*' .\n\t\t' FROM #__jquarks_quizzes_setsofquestions AS quiHaveSoq' .\n\t\t' JOIN #__jquarks_setsofquestions AS setsOfQuestions ON setsOfQuestions.id = quiHaveSoq.setofquestions_id' .\n\t\t' JOIN #__jquarks_setsofquestions_questions AS soqHaveQ ON soqHaveQ.setofquestions_id = setsOfQuestions.id' .\n\t\t' JOIN #__jquarks_questions AS questions ON questions.id = soqHaveQ.question_id' .\n\t\t' WHERE quiHaveSoq.quiz_id = ' . $quizId ;\n\t\t \n\t\tif ($categoryId) {\n\t\t\t$query .= ' AND questions.category_id = ' . $categoryId ;\n\t\t} else {\n\t\t\t$query .= ' AND questions.category_id IS NULL' ;\n\t\t}\n\t\t\n\t\t$this->_db->setQuery($query) ;\n\t\treturn $this->_db->loadAssocList() ;\n\t}", "title": "" }, { "docid": "429697fa876afca8425402abdd5f8806", "score": "0.5213103", "text": "function getAllSelectedCat($id) {\n\n $query = $this->db-> prepare ('SELECT * FROM categoria WHERE id=?'); \n $query->execute([$id]);\n return $query->fetch(PDO::FETCH_OBJ); \n }", "title": "" }, { "docid": "395e2b744deee81fccba7662b3aee9b6", "score": "0.51814944", "text": "function question($i){\n require('connect.php');\n if(!isset($_SESSION['user'])){\n header(\"location:Sign in_up.php\");\n }\n $sql1 = \"select * from query where query_id ='\".$i.\"'\";\n $result1 = mysqli_query($link, $sql1);\n $data1 = mysqli_fetch_assoc($result1);\n global $ques1;\n $ques1 = $data1['content'];\n global $author1; \n $author1= $data1['author'];\n global $date1; \n $date1 = $data1['date_posted'];\n $views1 = $data1['views'];\n $cat1_id = $data1['cat_id'];\n $subcat1_id = $data1['subcat_id'];\n $catsql1 = \"select * from categories where cat_id ='\".$cat1_id.\"'\";\n $catresult1 = mysqli_query($link, $catsql1);\n $catdata1 = mysqli_fetch_assoc($catresult1);\n $cat1 = $catdata1['category_name'];\n $subcatsql1 = \"select * from subcategories where Subcat_id ='\".$subcat1_id.\"'\";\n $subcatresult1 = mysqli_query($link, $subcatsql1);\n $subcatdata1 = mysqli_fetch_assoc($subcatresult1);\n global $subcat1;\n $subcat1 = $subcatdata1['subcat_name']; \n}", "title": "" }, { "docid": "9da3ef3cf1fdb2def0f32f193586b7de", "score": "0.5151331", "text": "function getAllchapters(){\r\n $sql = \"SELECT DISTINCT chapterid FROM questions\";\r\n $result = $this->db->pdo->query($sql);\r\n return $result;\r\n }", "title": "" }, { "docid": "a5a3e948a4e3e259e7690266cd3702fd", "score": "0.51507175", "text": "public function get_all_candidate_by_category($catid){\n\t\t\n\t\t$getcandidate=DB::table('candidates')\n\t\t->where('category_id','=',$catid)\n\t\t->get();\n\t return $getcandidate;\n\t}", "title": "" }, { "docid": "6b5a492b5915cae2999605acd74a1aa2", "score": "0.5137976", "text": "public function showCategories($uid){\n $user = User::where('uid' , '=' , $uid )->first();\n $collection = collect([]);\n\n foreach( $user->songs as $song ){\n $collection = $collection->merge( $song->categories ) ;\n }\n // dd($collection);\n return CategoryResource::collection( $collection );\n // dd( $user->songs()->with('categories')->get()->toArray() );\n // $res = $user->songs()->with(['categories'=> function($query){\n // return $query->select('name');\n // }])->get();\n // dd($res);\n // foreach( $user->songs()->with('categories')->get()->toArray() as $array ){\n // // dd($array[\"categories\"]);\n // dd( $array );\n // }\n // foreach( $user->songs as $song ){\n // foreach( $song->categories as $category ){\n //\n // }\n // }\n\n }", "title": "" }, { "docid": "bd26069ee08b215c0818806e469a287a", "score": "0.5115648", "text": "public function select_vote($author, $answer){\n $query = 'SELECT value_vote FROM votes WHERE author = :author and answer = :answer';\n $ps = $this->_db->prepare($query);\n $ps->bindValue(':author', $author);\n $ps->bindValue(':answer', $answer);\n $ps->execute();\n $vote = $ps->fetch();\n return $vote->value_vote;\n }", "title": "" }, { "docid": "84f73adc5417cc64bc8b4c3ab404136c", "score": "0.5113415", "text": "function getSimilar($id_cat, $min = 0, $max = 5)\n{\n\t$link = connect(); // connexion bdd\n\n\t$query = 'SELECT a.id_article as id, a.image, u.pseudo as author, a.created as `date`, a.title, \n\t\t\t (SELECT count(id) FROM comments WHERE id_article = a.id_article)as nb_comments\n\t\t\t FROM articles a\n\t\t\t JOIN users u\n\t\t\t ON a.id_user = u.id_user WHERE a.id_cat = '.intval($id_cat).' AND deleted = 0\n\t\t\t ORDER BY `date` DESC, nb_comments\n\t\t\t LIMIT '.intval($min).', '.intval($max).'';\n\n\t$value = mysqli_query($link ,$query);\n\t$result = mysqli_fetch_all($value, MYSQLI_ASSOC);\n\tmysqli_close($link);\n\n\treturn $result;\n}", "title": "" }, { "docid": "ae5de4014fcbf1da42c79e9e8f8121a6", "score": "0.51061505", "text": "public function getArticlesByCategory($cat_id) {\r\n $stmt = $this->conn->prepare(\"SELECT a.id, a.cat_id, a.article_title, a.article_image, a.author_name, a.date_published, a.article_content from articles a WHERE a.cat_id = ?\");\r\n $stmt->bind_param(\"i\", $cat_id);\r\n $stmt->execute();\r\n $stmt->store_result();\r\n\r\n $meta = $stmt->result_metadata();\r\n\r\n if ( $stmt -> num_rows > 0 && $meta != null) {\r\n\r\n while ($field = $meta->fetch_field()) {\r\n $params[] = &$row[$field->name];\r\n }\r\n call_user_func_array(array($stmt, 'bind_result'), $params);\r\n\r\n while ($stmt->fetch()) {\r\n $temp = array();\r\n foreach($row as $key => $val) {\r\n $temp[$key] = $val;\r\n }\r\n $articles[] = $temp;\r\n }\r\n\r\n $meta->free();\r\n $stmt->close();\r\n }\r\n\r\n\r\n return $articles;\r\n }", "title": "" }, { "docid": "21c62c0c15233f2065e4d05532e79629", "score": "0.5083685", "text": "public function getRelatedArticles()\n {\n $stmt = self::$pdo->prepare('SELECT ID FROM Articles AS a INNER JOIN CateArtiLink as l ON a.ID=l.ArtID INNER JOIN Categories AS c ON c.CategoryID=l.CatID AND l.CatID=:id;');\n $stmt->bindParam(':id', $this->CategoryID, PDO::PARAM_INT);\n $stmt->execute();\n $ArticleList = $stmt->fetchAll(PDO::FETCH_ASSOC);\n $this->ArticleList = [];\n foreach ($ArticleList as $Article)\n {\n $this->ArticleList[] = new Article();\n $this->ArticleList[count($this->ArticleList) - 1]->load($Article['ID']);\n }\n }", "title": "" }, { "docid": "33030fbe47083c10f3c3d42d0ede6553", "score": "0.5072896", "text": "function getCatByID($id) {\n // User id => $id\n $owner = getUserDetail($id);\n\n $category_ids = StoreProduct::where('owner_id', $owner[ 'id' ])\n ->orderByRaw(\"RAND()\")\n ->take(5)\n ->distinct()\n ->lists('category_id', 'category_id');\n if($category_ids->isEmpty()) {\n return $category_ids;\n } else {\n return Category::whereIn('id', $category_ids)->get();\n }\n}", "title": "" }, { "docid": "12545c99ddaec9fac9ef7e8d7be36fee", "score": "0.50696254", "text": "public function setQuestions(){\n $this->questions = $this->getManager()\n ->getRepository('AppBundle:Question')\n ->findByRandom($category);\n return $this;\n }", "title": "" }, { "docid": "d78ad6d113171232134422316d25ee46", "score": "0.5060081", "text": "public function get_quiz_list_by_category_id($category_id, $start = 0, $limit = 4)\n {\n $query = $this->db->select('*, users.user_id, users.username, quiz_setting.st_password');\n $query = $this->db->where('category_id', $category_id);\n $query = $this->db->order_by('quiz.quiz_id', 'DESC')->limit($limit, $start);\n $query = $this->db->join('users', 'users.user_id = quiz.user_id');\n $query = $this->db->join('quiz_setting', 'quiz.quiz_id = quiz_setting.quiz_id')->get('quiz');\n \n foreach ($query->result() as $r) {\n $r->quiz_title_sub = $this->_substr($r->quiz_title, 20);\n }\n \n return $query->result();\n }", "title": "" }, { "docid": "e451a6bb1e6a0ce12a40e5d71f4d387d", "score": "0.5050942", "text": "function getRelatedItems($conn, $id)\n {\n $category_table_name = 'category';\n $item_table_name = 'item';\n $categoryReadQuery = \"SELECT * FROM $item_table_name WHERE category_id=$id\";\n $result = $conn -> query($categoryReadQuery);\n return $result;\n }", "title": "" }, { "docid": "b7ce63d7186eb28dfc8f4007a9b4144e", "score": "0.503455", "text": "public function fetchTags($question_id)\n {\n $sql = \"SELECT * FROM tag2question INNER JOIN tag ON tag2question.tag_id = tag.id \n WHERE question_id = ?\"; \n $params = [$question_id];\n \n //$this->db->setFetchMode(\\PDO::FETCH_ASSOC);\n return $this->db->executeFetchAll($sql, $params);\n //Dump($test);\n \n }", "title": "" }, { "docid": "28560d99b4fb97677381a89c43bef221", "score": "0.50314707", "text": "public function read_by_category($category_id){\n $query = 'SELECT c.name as category_name, p.id, p.name, p.title, p.description, p.icon, p.category_id, p.created_at, p.is_public\n FROM ' . $this->table . ' p LEFT JOIN categories c ON p.category_id = c.id WHERE p.category_id='.$category_id.' ORDER BY p.created_at DESC';\n //Prepare statement\n $stmt = $this->conn->prepare($query);\n $stmt->execute();\n return $stmt;\n }", "title": "" }, { "docid": "a23b9cb75bfcc64cd3b9809c58683046", "score": "0.50282437", "text": "function get_by_user_and_answer($user_id, $answer_id) {\r\n //include connection variable\r\n global $db;\r\n\r\n // sql statement\r\n $sql = \"SELECT id\r\n FROM votes\r\n WHERE is_active='1' AND user_id='$user_id' AND answer_id='$answer_id'\";\r\n \r\n $vote_data = array();\r\n foreach ($db->query($sql) as $key => $value) {\r\n $vote_data[$key] = $value['id'];\r\n }\r\n return $vote_data;\r\n }", "title": "" }, { "docid": "1360b7b8f8fafdc6a4f9629994a7c3ed", "score": "0.502023", "text": "public function findByCategoryId(int $id) : Collection;", "title": "" }, { "docid": "2bae852aff6c08836466b09e534a7281", "score": "0.5017897", "text": "public function getAssociatedCategories(){\n $sql = sprintf('select * from meal_categories where categoryPictureId=%d', $this->getId());\n return $this->getAdapter()->fetchAll($sql);\n }", "title": "" }, { "docid": "2b2f2bea65fd14cb88b526c35dd05ac3", "score": "0.50071204", "text": "public function getcategorybypost($categoryid,$limit=NULL,$offset=NULL){\n\n $limit = ($limit>0)?$limit:'0'; \n $offset = ($offset>0)?$offset:'5000';\n\n $query = \"SELECT up.points,qa_categories.title as category_name,qa_users.userid,qa_users.credit,qa_users.handle,qa_users.uadimageurl,qa_users.avatarblobid,qa_users.avatarwidth,qa_users.avatarheight,qa_posts.postid,qa_posts.title,qa_posts.upvotes,qa_posts.downvotes,qa_posts.views,qa_posts.acount,qa_posts.netvotes,qa_posts.content as post_image,qa_posts.created,qa_posts.updated,qa_postmetas.content as post_content,qa_posts.price,qa_posts.pricer FROM qa_posts LEFT JOIN qa_users ON qa_posts.userid=qa_users.userid LEFT JOIN qa_postmetas ON qa_posts.postid = qa_postmetas.postid LEFT JOIN qa_categories ON qa_posts.categoryid = qa_categories.categoryid LEFT JOIN qa_userpoints up ON qa_posts.userid=up.userid WHERE qa_posts.categoryid=$categoryid AND qa_postmetas.title = 'qa_q_extra1' AND qa_posts.parentid IS NULL AND qa_posts.type='Q' AND qa_postmetas.title = 'qa_q_extra1' AND qa_posts.userid!='' ORDER BY qa_posts.postid DESC LIMIT $limit,$offset\";\n $result = $this->CI->db->query($query)->result_array();\n return $result;\n }", "title": "" }, { "docid": "770e9185d877e782160328e31c646d99", "score": "0.5000859", "text": "public function authorById($id);", "title": "" }, { "docid": "24f590281a468c4885abec706c5e3636", "score": "0.4998316", "text": "public function show($id)\n {\n $data = Categories::find($id);\n $data['comics'] = Comics::addSelect(['author' => Authors::select('name')\n ->whereColumn('author_id', 'comics.id')])->where('cate_id', $id)->get();\n return response()->json($data);\n }", "title": "" }, { "docid": "48e3e565b9eb63d57e6964e727c1aaee", "score": "0.49791518", "text": "function Load_All_Question($connection) {\n $query_select = \"SELECT Q.*, T.topic_name FROM questions Q inner join topics T on Q.topic_id = T.topic_id order by Q.question_id DESC \" ;\n $rs = mysqli_query($connection,$query_select);\n return $rs;\n}", "title": "" }, { "docid": "2759981481ec2e6fb8fecf134c4dacbc", "score": "0.49643916", "text": "public function EditorIndex(Request $request){\n //$articles = Article::Search($request->title)->orderBy('id','ASC')->paginate(7);\n $id = \\Auth::user()->id;\n $articles = DB::table('articles')->where('user_id','LIKE',\"%$id%\")->get();\n /*$articles->each(function($articles){\n $articles->category;\n $articles->user;\n });*/\n //dd($articles);\n return view('editor.articles.index')->with('articles',$articles);\n }", "title": "" }, { "docid": "42db2de4159e3bddd87033c644c4d7b1", "score": "0.495923", "text": "public function findByCatAppartements()\n {\n $qb = $this->createQueryBuilder('p');\n \n $qb\n ->innerJoin('App\\Entity\\Categorie', 'c', 'WITH', 'c = p.categorie')\n ->where('p.createdAt IS NOT NULL')\n ->andWhere('c.titre like :titre')\n ->setParameter('titre', 'Appartements'); \n // dump($qb->getQuery()->getResult());\n\n return $qb->getQuery()->getResult();\n }", "title": "" }, { "docid": "f3ecf05dfa84c3d2ac992412d7ade1f6", "score": "0.4956739", "text": "function all_medicines_where($id){\n global $con;\n $stmt = $con->prepare(\"SELECT medicine.*, category.title \n FROM medicine \n JOIN category on category.id = medicine.category \n WHERE category=?\");\n $stmt->execute(array($id));\n $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);\n return $rows;\n}", "title": "" }, { "docid": "0179daf9c4faabab76884a22bbda66f5", "score": "0.49483976", "text": "public function select_question($question_id)\n {\n $query = 'SELECT Q.*, M.* FROM questions Q, members M WHERE Q.question_id=:id AND M.member_id=Q.author_id';\n $ps = $this->_db->prepare($query);\n $ps->bindValue(':id', $question_id);\n $ps->execute();\n if($ps->rowCount() == 0)\n return null;\n $row = $ps->fetch();\n $author = new Member($row->member_id, $row->login, null, null, null, null, null);\n $question = new Question($row->question_id, $author, null, null, $row->title, $row->subject, $row->state, $row->publication_date, null);\n\n $answers = $this->select_answers_authors_votes($question, $row->best_answer_id);\n $answers[0] = $question->bestAnswer();\n $question->setAnswers($answers);\n return $question;\n }", "title": "" }, { "docid": "323a07961d5b10238630d3eeb5671ffd", "score": "0.49443802", "text": "private static function authorIdCatPubsDbLoad($db, $author_id) {\n assert('is_object($db)');\n assert('$author_id != \"\"');\n\n $q = $db->select(array('publication', 'pub_author'),\n 'publication.pub_id',\n array('pub_author.pub_id=publication.pub_id',\n 'pub_author.author_id'\n => $db->quote_smart($author_id)),\n \"pdPubList::authorIdPubsDbLoad\",\n array('ORDER BY' => 'publication.published ASC'));\n\n $pub_ids = array();\n foreach ($q as $r) {\n $pub_ids[] = $r->pub_id;\n }\n\n return self::arrayPubsDBLoadByCategory($db, $pub_ids);\n }", "title": "" }, { "docid": "995f16feeb5c7c53c734f2777674203c", "score": "0.49317205", "text": "public function findByCategoryId($cat){\n $query = \"select a.announceId,a.title,a.description,a.uploadDate,\n a.price,a.operation,a.userId,a.direction,a.valorationId,\n a.categoryId,u.fullname,c.name as catName,p.url as photoUrl from ANNOUNCEMENTS a, USERS u ,\n CATEGORIES c, PHOTOS p where a.userId = u.userId and a.categoryId = c.categoryId and a.announceId = p.announceId\n and a.categoryId = ? GROUP BY a.announceId\";\n $vector = array($cat->getCategoryId());\n $flag = $this->dbConnect->execution($query,$vector);\n\n return $flag->fetchAll();\n }", "title": "" }, { "docid": "9eaa5727342b385ce8498deb300d0cdc", "score": "0.4912456", "text": "public function votes()\n {\n return $this->addSelect([\n 'votes_up' => new Expression('COUNT(DISTINCT([[v1]].[[id]]))'),\n 'votes_neutral' => new Expression('COUNT(DISTINCT([[v2]].[[id]]))'),\n 'votes_down' => new Expression('COUNT(DISTINCT([[v3]].[[id]]))'),\n ])->leftJoin(['v1' => CouncilDiscussionVote::tableName()],\n CouncilDiscussion::tableName() . '.[[id]] = [[v1]].[[council_discussion_id]] AND [[v1]].[[vote]] = ' . CouncilDiscussionVote::VOTE_PLACET)\n ->leftJoin(['v2' => CouncilDiscussionVote::tableName()],\n CouncilDiscussion::tableName() . '.[[id]] = [[v2]].[[council_discussion_id]] AND [[v2]].[[vote]] = ' . CouncilDiscussionVote::VOTE_ABSTAIN)\n ->leftJoin(['v3' => CouncilDiscussionVote::tableName()],\n CouncilDiscussion::tableName() . '.[[id]] = [[v3]].[[council_discussion_id]] AND [[v3]].[[vote]] = ' . CouncilDiscussionVote::VOTE_CONTRA)\n ->groupBy([CouncilDiscussion::tableName() . '.[[id]]']);\n }", "title": "" }, { "docid": "6a80b16ea0d8a986b6e4aa1103daa399", "score": "0.49104548", "text": "public function getReviewCards($owner_id, $category_id, $subcategories = null){\n\t\t$categories = $category_id;\n\t\t\n\t\t// get sub categories\n\t\tif($subcategories != null && $subcategories == 'on'){\n\t\t\t$dbCat = new dbCategory();\n\t\t\t$categories = array();\n\t\t\t$unseenCategories = array();\n\t\t\t\n\t\t\t$categories[] = $category_id;\n\t\t\t\n\t\t\twhile($category_id != null){\n\t\t\t\t$temp = $dbCat->getChildren($owner_id, $category_id);\n\t\t\t\tforeach($temp as $t){\n\t\t\t\t\t$categories[] = $t;\n\t\t\t\t\t$unseenCategories[] = $t;\n\t\t\t\t}\n\t\t\t\t$category_id = array_shift($unseenCategories);\n\t\t\t\t$category_id = $category_id['id'];\n\t\t\t}\n\t\t\t\n\t\t\t$cat_ids = array();\n\t\t\t\n\t\t\tforeach($categories as $c)\n\t\t\t\t$cat_ids[] = $c['id'];\n\t\t\t\n\t\t\t$categories = implode(',', $cat_ids);\n\t\t}\n\t\t\n\t\t// get review cards\n\t\t$sql = \"SELECT c.id, c.question, c.answer, ct.name \".\n\t\t\t \"FROM card c, category ct, base b \".\n\t\t\t \"WHERE c.next_test < now() \".\n\t\t\t \t\t\"AND c.category_id IN ($categories) \".\n\t\t\t \t\t\"AND c.owner_id = $owner_id \".\n\t\t\t \t\t\"AND ct.id = c.category_id \".\n\t\t\t \t\t\"AND c.id = b.foreign_id \".\n\t\t\t \t\t\"AND b.foreign_table = 'card' \".\n\t\t\t \t\t\"AND b.status != 'deleted' \".\n\t\t\t \t\"ORDER BY (c.tests_passed/c.total_test) DESC, id \";\n\t\t\n\t\t$cards = $this->db->query($sql);\n\t\treturn $cards;\n\t}", "title": "" }, { "docid": "75dae790ed58ad271ab7e47d96511bf0", "score": "0.49050242", "text": "public static function getListCategoryById($catId){\n $query = new \\yii\\db\\Query();\n $query->select(['quiz.*'])\n ->from('quiz');\n $query->where(['delete_flag' => 0]);\n $query->andWhere([\n 'or',\n 'category_main_id = ' . $catId,\n 'category_a_id = ' . $catId,\n 'category_b_id = ' . $catId\n ]);\n return $query->all();\n }", "title": "" }, { "docid": "9c82061c2e4df38b741041ef0a6f7d57", "score": "0.48803583", "text": "function listPostsByCategory($nameCategory) {\r\n $query = \"SELECT p.id, p.titulo, p.conteudo, p.data, p.img, p.subtitulo, p.usuario_id, p.categoria_id, p.publicar, \r\n u.login userName, ct.nome categoryName \r\n FROM \".$this->table_name.\" p \r\n inner join usuario u on u.id = p.usuario_id \r\n inner join categoria ct on ct.id = p.categoria_id \r\n where\r\n p.publicar = 1 and\r\n ct.nome = '\".$nameCategory.\"'\r\n order by p.data desc\";\r\n // prepare query statement\r\n $stmt = $this->conn->prepare($query);\r\n // execute query\r\n $stmt->execute();\r\n return $stmt;\r\n }", "title": "" }, { "docid": "eb4d2bb5c3ae7e27745a567a3fd5585b", "score": "0.486717", "text": "public function getCoursesByCategory($id)\n {\n $courses = DB::table('courses')\n ->leftJoin('courses_categories', 'courses.course_category', '=', 'courses_categories.category_id')\n ->leftJoin('users', 'courses.course_instructor', '=', 'users.id')\n ->select('courses.*','courses_categories.category_name','users.name')\n ->where('course_category','=',$id)\n ->get();\n if(count($courses)>0)\n return $courses;\n }", "title": "" }, { "docid": "3c7aff0a0d211c8c3536a9229f74956c", "score": "0.48669612", "text": "function selectArticlesRandom(){\n $request = $this->pdo->prepare(\"SELECT *, article.id as article_id FROM `article` INNER JOIN `categorie` ON `article`.`id_categorie` = `categorie`.id WHERE status = 'disponible' and article.visible = '1' ORDER BY RAND() LIMIT 10\");\n $request->execute();\n $articles = $request->fetchAll(PDO::FETCH_ASSOC);\n return $articles;\n }", "title": "" }, { "docid": "4f3ffce8a746bde2b6212e6a4857118a", "score": "0.48380718", "text": "public function for_author($id)\n {\n }", "title": "" }, { "docid": "4f3ffce8a746bde2b6212e6a4857118a", "score": "0.48380718", "text": "public function for_author($id)\n {\n }", "title": "" }, { "docid": "13ece4ced0914c0e568708a520cfec0e", "score": "0.48370817", "text": "function countTopics($category_id){\n $result=$this->db->select($this->_table.'.*, users.username, users.avatar, users.id as user_id')\n ->from($this->_table)\n ->join('users','users.id='.$this->_table.'.posted_by')\n //->group_by('category_id')\n ->where($this->_table.'.category_id',$category_id)\n ->order_by($this->_table.'.posted_on','DESC')\n ->get()\n ->num_rows();\n }", "title": "" }, { "docid": "9193cdb35bae91927f2d77e56f31d861", "score": "0.48364383", "text": "public function getAuthors($id);", "title": "" }, { "docid": "645c13ae4d70c88bb08d916657a11c48", "score": "0.48223183", "text": "function getRelatedAds($data){\n\t\t$this->_name='vd_ads';\n\t\t$db = $this->getAdapter();\r\n\t\t$lang_id = $this->getCurrentLang();\r\n\t\t$province_field = array(\r\n\t\t\t\t\"1\"=>\"province_en_name\",\r\n\t\t\t\t\"2\"=>\"province_kh_name\"\r\n\t\t);\n\t\t$province = $province_field[$lang_id];\n\t\t$category = $data['category_id'];\n\t\t$adsid = $data['id'];\r\n\t\t$sql=\"SELECT ads.*,\r\n\t\t(SELECT vc.customer_name FROM `vd_client` vc WHERE vc.id = ads.`user_id` LIMIT 1) AS author,\r\n\t\t(SELECT vc.photo FROM `vd_client` vc WHERE vc.id = ads.`user_id` LIMIT 1) AS author_photo,\r\n\t\t(SELECT vc.address FROM `vd_client` vc WHERE vc.id = ads.`user_id` LIMIT 1) AS author_address,\r\n\t\t(SELECT vc.phone FROM `vd_client` vc WHERE vc.id = ads.`user_id` LIMIT 1) AS author_phone,\r\n\t\t(SELECT title FROM `vd_category_detail` WHERE category_id= ads.category_id AND languageId=$lang_id LIMIT 1) as category_name,\r\n\t\t(SELECT catd.title FROM `vd_category_detail` AS catd WHERE catd.category_id = cat.`parent` AND catd.languageId =$lang_id LIMIT 1) AS parent_category_name,\r\n\t\t(SELECT $province FROM `vd_province` WHERE id= ads.province_id ) as province_name\r\n\t\tFROM $this->_name AS ads, `vd_category` AS cat WHERE cat.`id` = ads.`category_id` AND ads.`category_id`=$category AND ads.id < $adsid LIMIT 10\";\r\n\t\treturn $db->fetchAll($sql);\n\t}", "title": "" }, { "docid": "c51be6d9733c739937c596bb47e24ae0", "score": "0.4817974", "text": "public function select_right_answers($id){\n $query= \"SELECT * FROM answers WHERE id_answer = :id\";\n $ps= $this->_db->prepare($query);\n $ps->bindValue(':id',$id);\n $ps->execute();\n $answer = new Answer(0,null,null,null,null,null);\n\n while($row=$ps->fetch()){\n $member = $this->select_user_id($row->id_member);\n $answer= new Answer($row->id_answer,$row->subject,$row->date,$member,null,null);\n }\n return $answer;\n }", "title": "" }, { "docid": "82c23912301758818e16fffc0d763137", "score": "0.48041043", "text": "function displayQuoteCategory()\n{\n global $dbConn;\n $sql= \"SELECT quote,category FROM quote,category INNER JOIN quote_category WHERE quote.quoteId=quote_category.quoteId AND category.categoryId=quote_category.categoryId\";\n //Vorbereiten, Ausführen, Daten holen\n $stmt = $dbConn->prepare($sql);\n $stmt->execute();\n $records=$stmt->fetchAll(PDO::FETCH_ASSOC);\n //display all records\n echo\"<table border='1'>\n <tr>\n\t<th>Quote</th>\n\t<th>Category</th>\n </tr>\";\n foreach($records as $author)\n {\n echo \"<tr>\n\t<td>\".$author['quote'].\"</td>\n\t<td>\".$author['category'].\"</td>\n </tr>\" ;\n }\n echo\"</table>\" ;\n}", "title": "" }, { "docid": "e45243653e977c443418fbf77fd16028", "score": "0.48002547", "text": "protected function _getCategoriesMainQuery() {\n $id_src = $this->_notice['categories']['id_src'];\n $limit = $this->_notice['setting']['categories'];\n $query = \"SELECT * FROM _DBPRF_categories WHERE categories_id > {$id_src} ORDER BY categories_id ASC LIMIT {$limit}\";\n return $query;\n }", "title": "" }, { "docid": "23521b8c1bb5886ec6e320df86331e0f", "score": "0.47985244", "text": "public function select_questions_for_profile($memberId)\n {\n $query = 'SELECT Q.*, C.* FROM questions Q, categories C WHERE Q.author_id = :id AND Q.category_id = C.category_id ORDER BY Q.question_id DESC';\n $ps = $this->_db->prepare($query);\n $ps->bindValue(':id', $memberId);\n $ps->execute();\n\n $questions = array();\n while ($row = $ps->fetch()) {\n $category = new Category($row->category_id, $row->name);\n $questions[] = new Question($row->question_id, null, $category, null, $row->title, null, null, $row->publication_date, null);\n }\n return $questions;\n }", "title": "" }, { "docid": "204f247784b11a0c0a9d2bc41fa37c9f", "score": "0.47937822", "text": "public function show($id)\n { \n return DB::table('users')\n ->join('votes','votes.user_id','=','users.id')\n ->select('users.*')\n ->where('votes.post_id',$id)\n ->get();\n }", "title": "" }, { "docid": "f4ae526cb3ad285963fd1af6f6f55fe7", "score": "0.47936755", "text": "public function getpostbyid($id){\n\t\t$table1 = 'table1';\n\t\t$table2 = 'table2';\n\t\t$sql \t= \"SELECT $table1.*,$table2.category FROM $table1 INNER JOIN $table2 ON $table1.cat = $table2.id WHERE $table1.id = :id\";\n\t\t$bind = array(':id'=>$id);\n\t\treturn $this->sqlquery($sql,$bind);\t\t\t\t// like $cond = 'id=:id';\n\t}", "title": "" }, { "docid": "0c6c91e59b5eac805f4caba092bf9819", "score": "0.47935802", "text": "function get_items_by_category($category_id){\n global $db;\n if ($category_id) {\n $query = 'SELECT I.Title, I.ItemNum, I.Description, C.categoryName\n FROM todoitems I\n LEFT JOIN categories C\n ON I.categoryID = C.categoryID\n WHERE I.categoryID = :category_id\n ORDER BY I.ItemNum';\n } else {\n $query = 'SELECT I.Title, I.ItemNum, I.Description, C.categoryName\n FROM todoitems I\n LEFT JOIN categories C\n ON I.categoryID = C.categoryID\n ORDER BY C.categoryID';\n }\n $statement = $db->prepare($query);\n $statement->bindValue(':category_id', $category_id);\n $statement->execute();\n $items = $statement->fetchAll();\n $statement->closeCursor();\n return $items;\n }", "title": "" }, { "docid": "9563d58e1ec5de170c497d21eb5aaa60", "score": "0.47878405", "text": "function _get_categories($cat_id = 0, $order_by='priority'){\n $mysql_query = \"SELECT * FROM store_book_categories WHERE book_parent_cat_id = $cat_id order by $order_by\";\n $query = $this->_custom_query($mysql_query); \n return $query;\n }", "title": "" }, { "docid": "d2d5911d9d3037f17b22dc53bea7855c", "score": "0.47844326", "text": "public function selectAllArticlesByUser($userId) {\n\n\t\treturn $this->with('content')\n\t\t\t->with('user')\n\t\t\t->where('type_id', 1)\n\t\t\t->where('created_by',$userId)\n\t\t\t->groupBy('article_id')\n\t\t\t->orderBy('published_at', 'desc')\n\t\t ->get();\n\t}", "title": "" }, { "docid": "40eaedf0b7f81051586d537a99ace84a", "score": "0.477744", "text": "public function category(){\n return $this->belongsTo(\\Restaurant\\Api\\V1\\Models\\Category::class)->select(['id', 'title']);\n }", "title": "" }, { "docid": "ac437fd3ffcbc73efdb899677fdc9783", "score": "0.47749802", "text": "function get_specific_post($post_id) {\n $conn = connection();\n $sql = \"SELECT * FROM posts\n INNER JOIN categories ON posts.category_id = categories.category_id\n INNER JOIN users ON posts.user_id = users.user_id\n WHERE posts.post_id = $post_id\";\n $result = $conn->query($sql);\n $row = $result->fetch_assoc();\n return $row;\n}", "title": "" }, { "docid": "9bde1d7fff4aa97503b723fdef03168a", "score": "0.4774388", "text": "public function findByCatMaisons()\n {\n $qb = $this->createQueryBuilder('p');\n \n $qb\n ->innerJoin('App\\Entity\\Categorie', 'c', 'WITH', 'c = p.categorie')\n ->where('p.createdAt IS NOT NULL')\n ->andWhere('c.titre like :titre')\n ->setParameter('titre', 'Maisons'); \n // dump($qb->getQuery()->getResult());\n\n return $qb->getQuery()->getResult();\n }", "title": "" }, { "docid": "f7ceedc422ed82ad7e95f4dad4b1bd4c", "score": "0.47733927", "text": "function fetchManyWithQuestionId($question_id) {\n\t\treturn $this->fetchManyWhere(['question_id = ?'=>$question_id]);\n\t}", "title": "" }, { "docid": "39d876c05f6fd7e7a6b48dba652f0948", "score": "0.47702712", "text": "public function getCandidate()\n\t{\n\t\treturn Vote::model()->with('candidate')->find('category_id=:category_id AND voter_id=:voter_id', array(':category_id' => $this->id, ':voter_id' => Yii::app()->user->id))->candidate;\n\t}", "title": "" }, { "docid": "74302e03e22b780df2fa6154520b3d1e", "score": "0.4764763", "text": "public function showRelatedArticles($category)\n\t\t{\n\t\t\t$category = json_decode($category);\n\n\t\t\t// If it's an array\n\t\t\tif (is_array($category)){\n\t\t\t\t//Obtener todos los id de categoria\n\t\t\t\t$category_ids = collect($category)->pluck('id');\n\t\t\t\t$articles = Article::whereHas('categories', function($query) use ($category_ids) {\n\t\t\t\t\t// Assuming your category table has a column id\n\t\t\t\t\t$query->whereIn('categories.id', $category_ids);\n\t\t\t\t})->get();\n\t\t\t} else {\n\t\t\t\tdd('Not an array (bad url parameter)');\n\t\t\t}\n\t\t\treturn view('front', ['articles' => $articles]);\n\t\t}", "title": "" }, { "docid": "fbdecd5c9d3b47650117a58c88ca3217", "score": "0.4743198", "text": "public function getCat()\n {\n $request = $this->pdo->prepare(\"SELECT * FROM `categorie` INNER JOIN article ON categorie.id = article.id_categorie \");\n $request->execute();\n $categorie[] = $request->fetchAll(PDO::FETCH_ASSOC);\n return $categorie;\n }", "title": "" }, { "docid": "03b551405e9a863fef3a77eeb1b16b68", "score": "0.47423863", "text": "public function select_newest_questions_for_homepage()\n {\n $query = 'SELECT Q.*, M.*, C.* FROM questions Q, members M, categories C WHERE Q.author_id = M.member_id AND Q.category_id = C.category_id AND Q.state is null ORDER BY Q.question_id DESC';\n $ps = $this->_db->prepare($query);\n $ps->execute();\n\n $questions = array();\n while ($row = $ps->fetch()) {\n $author = new Member($row->member_id, $row->login, null, null, null, null, null);\n $category = new Category($row->category_id, $row->name);\n $questions[] = new Question($row->question_id, $author, $category, null, $row->title, null, null, $row->publication_date, null);\n }\n return $questions;\n }", "title": "" }, { "docid": "cded748ed8384a734aa437aaa6de18f2", "score": "0.47378975", "text": "public function adsByCategory($id){\n $products = Product::where('category_id',$id)->get();\n return view('front.byCategory',compact('products'));\n }", "title": "" }, { "docid": "f7c94774665d2bf9d587feca673f9dca", "score": "0.4736887", "text": "public function getCatById($id){\n $query = \"SELECT * FROM tbl_category WHERE id = '$id'\";\n $result = $this->db->select($query);\n return $result;\n }", "title": "" }, { "docid": "18e8291fe5eb297ef09fdf5266f45064", "score": "0.4734975", "text": "function getByCategory()\n { \n $where = \" q.deleted = 0 AND q.status = 1 AND c.name = '\" . $this->category_name . \"' \";\n ($this->category_name == 'All') && $where = ' q.deleted = 0 ';\n\n // select all query\n $query = \"SELECT\n c.name as category_name, \n q.*\n FROM\n \" . $this->table_name . \" q\n LEFT JOIN\n categories c\n ON q.category_id = c.id\n WHERE\n \" . $where . \"\n ORDER BY\n RAND()\n LIMIT\n 0,10\";\n \n // print_r($additionQuery); exit;\n // prepare query statement\n $statement = $this->conn->prepare($query);\n \n // execute query\n $statement->execute();\n \n return $statement;\n }", "title": "" }, { "docid": "a05cf0d4f60e5621cd19271f291abce9", "score": "0.4714122", "text": "public function getRelatedProductbyCategoryId($id){\n $allProductByCategories = collect([]);\n $allCategoryById = $this->getAllChildrenCategoryById($id);\n // dd($allCategoryById);\n if($id > 0){\n $ParentCategory = Category::find($id);\n array_unshift($allCategoryById,$ParentCategory);\n }\n foreach ($allCategoryById as $row) {\n $productsByCategoryId = Product::where('category_id',$row->id)->where('enable',true)->with('file')->get();\n if(collect($productsByCategoryId)->isNotEmpty()){\n foreach ($productsByCategoryId as $key => $products) {\n $allProductByCategories->push($products);\n }\n }\n }\n // dd($allProductByCategories);\n $per_page =18;\n $currentPage = LengthAwarePaginator::resolveCurrentPage();\n $currentPageResults = collect($allProductByCategories)->splice(($currentPage-1) * $per_page, $per_page)->all();\n $units = new LengthAwarePaginator($currentPageResults, count($allProductByCategories), $per_page);\n return $units;\n }", "title": "" }, { "docid": "f105a05ec58dfce32e05693cf62366cc", "score": "0.47140443", "text": "public function getAllPost(){\n\n\t\t $query = \"SELECT p.*, c.catName \n\t\t FROM tbl_post as p, tbl_category as c\n\t\t WHERE p.catId = c.catId\n\t\t ORDER BY p.title DESC \"; \t\t \n \n $result = $this->db->select($query);\n return $result;\n \n\n\t}", "title": "" }, { "docid": "393beb6f3fb664a50d08ec197c8a1720", "score": "0.47139594", "text": "public function getAllCategory(){\n\n $sql = \"SELECT v.*, c.nombre FROM vehiculos v \"\n . \"INNER JOIN categorias c ON c.id = v.categoria_id \"\n . \"WHERE v.categoria_id = {$this->getCategoria_id()} \"\n . \"ORDER BY id DESC\";\n $vehiculos = $this->db->query($sql);\n return $vehiculos;\n\n }", "title": "" }, { "docid": "8150f8fe4bce5be3c203cf603f060e9f", "score": "0.47034135", "text": "function cc_aha_get_questions_for_summary_criterion( $criterion = null ){\n\tglobal $wpdb;\n\t\n\t$questions = $wpdb->get_results( \n\t\t$wpdb->prepare( \n\t\t\"\n\t\tSELECT * \n\t\tFROM $wpdb->aha_assessment_questions\n\t\tWHERE summary_section = %s\n\t\tORDER BY QID\n\t\t\",\n\t\t$criterion )\n\t\t, ARRAY_A\n\t);\n\n\treturn $questions;\n}", "title": "" }, { "docid": "d682074dcc7db02db74dc3093df488ed", "score": "0.47018299", "text": "public function GetCategories()\n\t{\t$this->cats = array();\n\t\t\n\t\tif ($id = (int)$this->id)\n\t\t{\t$where = array('askimamtocats.askid=' . $id, 'askimamtocats.catid=coursecategories.cid');\n\t\t\t$sql = 'SELECT coursecategories.* FROM askimamtocats, coursecategories WHERE ' . implode(' AND ', $where) . ' ORDER BY coursecategories.ctitle DESC';\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->cats[$row['cid']] = $row;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5758bcd02b57e9cf710b43ad5bb8e0aa", "score": "0.46979582", "text": "function getArticle($id)\n{\n\t$link = connect(); // connexion bdd\n\n\tif(empty($_SESSION['id_user']))\n\t\t$query = 'SELECT a.id_article, a.id_user, a.title, a.image, a.content, a.created, a.updated as edit, u.pseudo, a.id_cat, c.name as name_cat FROM articles a INNER JOIN users u ON a.id_user = u.id_user INNER JOIN categories c ON c.id_cat = a.id_cat WHERE id_article = '.protectSQL($link, $id);\n\n\telse\n\t\t$query = 'SELECT a.id_article, a.id_user, a.title, a.image, a.content, a.created, a.updated as edit, u.pseudo, a.id_cat, c.name as name_cat, IF(u.id_user = '.intval($_SESSION['id_user']).', 1, 0) as \\'isAuthor\\' FROM articles a INNER JOIN users u ON a.id_user = u.id_user INNER JOIN categories c ON c.id_cat = a.id_cat WHERE id_article = '.protectSQL($link, $id);\n\n\t$value = mysqli_query($link ,$query);\n\t$result = mysqli_fetch_assoc($value);\n\tmysqli_close($link);\n\treturn $result;\n}", "title": "" }, { "docid": "3a3df2140e0a58c9c146512e89b6f5fd", "score": "0.46978855", "text": "public function findAnswersWithVotes($question_id, $sortAnswersBy = null)\n {\n \n // set sort order for answers\n $sortAnswersBy = (isset($sortAnswersBy) AND $sortAnswersBy === \"date\" )? \"timestamp ASC\" : \"sum_points DESC\";\n \n \n $sql = \"SELECT *, answer.id AS answer_id, answer.user_id AS user_id, sum(vote.points) AS sum_points FROM answer\n LEFT OUTER JOIN vote ON answer.id = vote.vote_on AND (vote_type = 2 OR vote_type IS NULL)\n WHERE question_id = ?\n GROUP BY answer.id\n ORDER BY $sortAnswersBy\";\n \n $params = [$question_id];\n \n $res = $this->db->executeFetchAll($sql, $params);\n\n return $res;\n }", "title": "" }, { "docid": "4c9de288a0aa276a0c017a4ddba12657", "score": "0.46969643", "text": "public function run()\n {\n\n $questions = DB::table('questions')->where('category_id','=',1)->get();\n\n $questions->each(function($question){\n DB::table('question_choice')->insert([\n [\"choice_id\"=>1, 'question_id'=>$question->id],\n [\"choice_id\"=>2, 'question_id'=>$question->id],\n [\"choice_id\"=>3, 'question_id'=>$question->id],\n [\"choice_id\"=>4, 'question_id'=>$question->id],\n [\"choice_id\"=>5, 'question_id'=>$question->id],\n\n ]);\n });\n\n\n $questions = DB::table('questions')->whereBetween('category_id',[2,10])->get();\n\n $questions->each(function($question){\n DB::table('question_choice')->insert([\n [\"choice_id\"=>6, 'question_id'=>$question->id],\n [\"choice_id\"=>7, 'question_id'=>$question->id],\n [\"choice_id\"=>8, 'question_id'=>$question->id],\n [\"choice_id\"=>9, 'question_id'=>$question->id],\n [\"choice_id\"=>10, 'question_id'=>$question->id],\n\n ]);\n });\n\n $questions = DB::table('questions')->where('category_id','=',11)->get();\n $questions->each(function($question){\n DB::table('question_choice')->insert([\n [\"choice_id\"=>11, 'question_id'=>$question->id],\n [\"choice_id\"=>12, 'question_id'=>$question->id],\n [\"choice_id\"=>13, 'question_id'=>$question->id],\n [\"choice_id\"=>14, 'question_id'=>$question->id],\n [\"choice_id\"=>15, 'question_id'=>$question->id],\n\n ]);\n });\n\n }", "title": "" }, { "docid": "166155e38be4fd6cfc2b6a83a24f8f03", "score": "0.4686729", "text": "public function authorIdQuote() {\r\n $query = \"SELECT id, text, author, category FROM quotes WHERE authorId = :authorId\";\r\n $statement = $this->conn->prepare( $query );\r\n $this->authorId=htmlspecialchars(strip_tags($this->authorId));\r\n $statement->bindParam(\":authorId\", $this->authorId);\r\n $statement->execute();\r\n return $statement;\r\n }", "title": "" }, { "docid": "d1ac9014ecb87e7838abd543fbe4467d", "score": "0.46840608", "text": "public function authors($id)\n {\n }", "title": "" }, { "docid": "ee263c4bafc29bcb2f6eeef8f2c2cf23", "score": "0.46745253", "text": "function getOwnPosts($user_id) {\n $pdo = $GLOBALS['pdo'];\n $statement = $pdo->prepare(\"SELECT posts.id AS post_id, posts.description, posts.create_date, users.id AS user_id, users.first_name, users.last_name, users.profile_pic, users.profile_cover,users.gender\n FROM posts\n JOIN users ON posts.user_id = users.id \n WHERE users.id = ? \n ORDER BY posts.create_date DESC;\");\n $statement->execute(array($user_id));\n $result = $statement->fetchAll(PDO::FETCH_ASSOC);\n return $result;\n}", "title": "" }, { "docid": "ed20b3dd54a74fdb8e72cf0672d3bf2f", "score": "0.467094", "text": "public function getQuestions($section, $id)\n\t\t{\n\t\t\t$this->db->query('SELECT * FROM questions WHERE section = :section AND examID = :examID');\n\t\t\t$this->db->bind(':section', $section);\n\t\t\t$this->db->bind(':examID', $id);\n\t\t\t$questions = $this->db->resultSet();\n\n\t\t\treturn $questions;\n\t\t}", "title": "" }, { "docid": "d879211088ade4c1e5dc390b7748fb98", "score": "0.46693006", "text": "public function categoryList($id){\n // OPERACION QUE PUEDEN HACER TODOS LOS USUARIOS\n // La vista recibe entradas de una categoria concreta\n $entradas = Blog::getEntradasCategory($id);\n $categories = Category::get();\n //vita de entradas\n include 'views/blog/lista.php';\n}", "title": "" }, { "docid": "174c5131d6673b8e618a5f22212de857", "score": "0.46624714", "text": "public function findByCatTerrains()\n {\n $qb = $this->createQueryBuilder('p'); \n $qb\n ->innerJoin('App\\Entity\\Categorie', 'c', 'WITH', 'c = p.categorie')\n ->where('p.createdAt IS NOT NULL')\n ->andWhere('c.titre like :titre')\n ->setParameter('titre', 'Terrains');\n \n dump($qb->getQuery()->getResult());\n\n return $qb->getQuery()->getResult();\n }", "title": "" }, { "docid": "f2b2c676051e79b25b1b41e91475c6cd", "score": "0.46546906", "text": "public function listeRubriques($id){\n $sql=\"SELECT distinct(r.nom) FROM article a, rubrique r, artrub b WHERE a.id=? and r.id=b.id_rubrique and a.id=b.id_article\";\n\n $stmt = $this->getEntityManager()->getConnection()->prepare($sql);\n $stmt->bindValue(1,$id);\n $stmt->execute();\n return $stmt->fetchAll(); \n\t\t \n\t}", "title": "" }, { "docid": "f986842dc2e93a740edc762463aad6fa", "score": "0.465322", "text": "public function show($id)\n {\n $article=Article::findOrFail($id);\n $comments=Comment::where('article_id', $id)->orderByDesc('created_at')->get();\n \n\n\n $upvotes=DB::table('article_votes')->where('article_id',$id)->where('articlevote',1)->count('articlevote');\n $downvotes=DB::table('article_votes')->where('article_id',$id)->where('articlevote',-1)->count('articlevote');\n\n if(Auth::user()){\n $alreadyvoted=DB::table('article_votes')->where('user_id', Auth::user()->id)->where('article_id', $id)->sum('articlevote');} \n\n \n\n\n\n\n return view('article.show',compact('article','upvotes','downvotes','alreadyvoted','comments'));\n }", "title": "" }, { "docid": "e0cf108658aaf61f39b734e3c1b8a0f0", "score": "0.46530622", "text": "public function getvotedid($voterid,$categoryid){\n\t\t\n\t\t$checkvote=VotersRepository::checkvote($voterid,$categoryid);\n\t\t//loop through result and return id\n\t\tforeach($checkvote as $checkvotes){\n\t\treturn $checkvotes->id;\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "d88ef147ca7e26ea5b56bd7698363557", "score": "0.46486083", "text": "public static function getAll($id) {\n global $sql;\n $query = $sql . \" WHERE recipe_id = :recipe_id; \";\n return DBHelper::getAll($query, $id, 'Category');\n }", "title": "" }, { "docid": "472a2d50ddda38ea296bcb1f9ada3553", "score": "0.46460083", "text": "public function showYearByQuestion($id)\n {\n// return Course::where('slug','=',$slug)->get()->first();\n// return Solution::where('question_id', $id)->get()->first();\n return Question::where('course_id','=',$id)\n ->groupBy('year_id')\n ->get()\n ->all();\n }", "title": "" }, { "docid": "f2ac6d877d4b2942993310e829d0a6f8", "score": "0.46415433", "text": "static function related_posts($id){\n\t$categories = get_the_category($id);\n\t$tags = get_the_tags($id);\n\tif ($categories || $tags) {\n\t\t$category_ids = array();\n\t\tif($categories) foreach($categories as $individual_category) $category_ids[] = $individual_category->term_id;\n\t \n\t\t$tag_ids = array();\n\t\tif($tags) foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id;\n\t \n\t\t$args=array(\n\t\t'tax_query' => array(\n\t\t\t'relation' => 'OR',\n\t\t\tarray(\n\t\t\t'taxonomy' => 'category',\n\t\t\t'field' => 'id',\n\t\t\t'terms' => $category_ids\n\t\t\t),\n\t\t\tarray(\n\t\t\t'taxonomy' => 'post_tag',\n\t\t\t'field' => 'id',\n\t\t\t'terms' => $tag_ids\n\t\t\t)\n\t\t),\n\t\t'post__not_in' => array($post->ID),\n\t\t'posts_per_page'=> 4, // Number of related posts that will be shown.\n\t\t);\n\t \n\t\t$my_query = new WP_Query( $args );\n\t\tif( $my_query->have_posts() ) {\n\t\techo \"<h3>Related posts</h3><ul class='list related'>\";\n\t\twhile( $my_query->have_posts() ) {\n\t\t\t$my_query->the_post(); ?>\n\t\t\t<li>\n\t\t\t<?php Utils::post_thumbnail('thumbnail', 'cutout'); ?>\n\t\t\t<a href='<?php the_permalink(); ?>' rel='canonical'><?php the_title();?></a>\n\t\t\t</li>\n\t\t\t<?php\n\t\t}\n\t\techo \"</ul><div class='clear'></div>\";\n\t\t}\n\t}\n\twp_reset_postdata();\n\t}", "title": "" }, { "docid": "51073b6e34c0eaa8755df1a89841a7a7", "score": "0.46394095", "text": "public function reviewParams($category_id) {\n $select = $this->select()\n ->from($this->info('name'), array('reviewcat_id', 'reviewcat_name'))\n ->where('category_id = ?', $category_id);\n return $this->fetchAll($select);\n\t}", "title": "" }, { "docid": "1643e79baa88fb0bb58b53a5e15aa9f9", "score": "0.46391776", "text": "public static function getListFAQ (){\n\n\n\t\t$sql=\"SELECT * FROM faq_category ORDER BY num\";\n\t\t$stmt= PdoFactory::getInstance()->prepare($sql);\n\t\t$stmt->execute();\n\t\t$listCat=$stmt->fetchAll(PDO::FETCH_ASSOC);\n\n\t\tforeach($listCat as $key => $cat){\n\n\t\t\t$sqlq=\"SELECT * FROM faq_question WHERE cat_id=:cat_id\";\n\t\t\t$stmtq= PdoFactory::getInstance()->prepare($sqlq);\n\t\t\t$stmtq->bindValue(':cat_id',$cat['id'],PDO::PARAM_INT);\n\t\t\t$stmtq->execute();\n\t\t\t$tempListQ=$stmtq->fetchAll(PDO::FETCH_ASSOC);\n\n\t\t\tforeach($tempListQ as $qkey => $que){\n\n\t\t\t\t$sqla=\"SELECT * FROM faq_answer WHERE que_id=:que_id\";\n\t\t\t\t$stmta=PdoFactory::getInstance()->prepare($sqla);\n\t\t\t\t$stmta->bindValue(':que_id',$que['id'],PDO::PARAM_INT);\n\t\t\t\t$stmta->execute();\n\t\t\t\t$tempListA=$stmta->fetchAll(PDO::FETCH_ASSOC);\n\n\t\t\t\t$tempListQ[$qkey]['answ']=$tempListA;\n\t\t\t}\n\n\t\t\t$listCat[$key]['que']=$tempListQ; //*******************\n\t\t}\n\t\t\n\t\treturn $listCat;\n\t}", "title": "" }, { "docid": "7774e77d3c0fb1bb8a5c07bec536d09e", "score": "0.46370524", "text": "public function findTagByQuestion($question_id)\n {\n // find tags associated with a question\n $sql = \"SELECT t.tag_text, t2q.question_id, t2q.tag_id \n FROM tag as t\n LEFT OUTER JOIN tag2question AS t2q\n ON t2q.tag_id = t.id\n LEFT OUTER JOIN question as q\n ON t2q.question_id = q.id\n WHERE t2q.question_id = ?\n ORDER BY q.id DESC; \"; \n $params = [$question_id];\n \n return $this->db->executeFetchAll($sql, $params);\n }", "title": "" }, { "docid": "4894210de81808c3e6b79de5a846d1c6", "score": "0.46356517", "text": "function topic_info($id){\n $query = $this->db->prepare(\"SELECT * FROM `post` JOIN `user` ON `post`.`user_id` = `user`.`id` WHERE `topicID` = :id LIMIT 1\");\n $query->execute(array(\n \":id\" => $id\n ));\n return $query->fetch();\n }", "title": "" }, { "docid": "301d4131b29280ae86c5ce9fd9daf6b7", "score": "0.463324", "text": "public function categories(){\n return Category::whereIn('_id', $this->category)->get();\n }", "title": "" }, { "docid": "697f04ba0d97e2d242fedf393c417983", "score": "0.4633228", "text": "public function select_vote($id_answer,$id_member){\n $query=\"SELECT * FROM votes WHERE id_answer = :id_answer AND id_member = :id_member\";\n $ps= $this->_db->prepare($query);\n $ps->bindValue(':id_answer',$id_answer);\n $ps->bindValue(':id_member',$id_member);\n $ps->execute();\n if($ps->rowCount() == 0){\n return $vote= new Vote(null);\n }\n $row=$ps->fetch();\n return $vote = new Vote($row->val);\n }", "title": "" }, { "docid": "4d4315b32071e9824576fbdf1cf800c0", "score": "0.46277428", "text": "public function viewCategoryData($id)\n {\n $stmt = $this->conn->prepare('SELECT category_name FROM category WHERE id = :id');\n $stmt->bindParam(':id', $id);\n try {\n if ($stmt->execute()) {\n $user = $stmt->fetch(PDO::FETCH_ASSOC);\n return $user;\n }\n } catch (Exception $e) {\n echo $e->getMessage();\n }\n }", "title": "" }, { "docid": "1e1375f678f39f5341c93a112f073d13", "score": "0.4626415", "text": "public function select_answers($id){\n $query= \"SELECT * FROM answers WHERE id_question = :id ORDER BY id_answer ASC \";\n $ps= $this->_db->prepare($query);\n $ps->bindValue(':id',$id);\n $ps->execute();\n $array= array();\n\n while($row=$ps->fetch()){\n $member = $this->select_user_id($row->id_member);\n $array[]= new Answer($row->id_answer,$row->subject,$row->date,$member,$this->count_vote_Pos($row->id_answer),$this->count_vote_Neg($row->id_answer));\n }\n return $array;\n\n }", "title": "" }, { "docid": "3fe8681cd9e7b87212c45f15ce3fe944", "score": "0.46233895", "text": "public static function getAllCategories()\n {\n $data = Category::join('users',function($join) {\n $join->on('category.user_id', '=', 'users.id');\n\n })\n ->select('category.id','title','description','image_title','name')\n ->orderBy('category.id', 'desc')\n ->paginate(50);\n return $data;\n\n }", "title": "" }, { "docid": "14668c5360b76aa0575044c206e09f10", "score": "0.46161598", "text": "function category()\n {\n //check privileges\n $url = Helper::current_url();\n $id = intval($url[2]);\n if (empty($id)) {\n Helper::redirect();\n } else {\n $post = new Posts_model();\n $category_model = new Categories_model();\n\n $data['latest'] = $post->get_all(\n array('posts.id_category' => $id),\n array('LEFT JOIN' => array('users' => 'id_user', 'categories' => 'id_category')),\n array('order_field' => 'date_add', 'order_dir' => 'desc')\n );\n $data['categories'] = $category_model->get_all(array(),array(),array('order_field' => 'title', 'order_dir' => 'asc'));\n $data['most_popular'] = $post->get_all(array(),array(),array('order_field' => 'nr_comments', 'order_dir' => 'desc'),5);\n $select_options = '';\n $categories = $category_model->get_all();\n foreach ($categories as $key => $category) {\n $select_options .= '<option value =\"' . $category[\"id_category\"] . '\" >' . $category[\"title\"] . '</option>';\n }\n $cat = $category_model->get_one($id);\n $data['title'] = $cat['title'];\n $data['options'] = $select_options;\n\n $this->view->load('home/home_view', $data);\n\n }\n }", "title": "" }, { "docid": "4c4cc885ea4d27421ffba292ebcfb831", "score": "0.46147606", "text": "public function getByIdWithCategory($id)\n\t{\n\t\treturn $this->model->with('categories')->find($id);\n\t}", "title": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "a06ea86a37d51864c4b036892fe6940b", "score": "0.0", "text": "public function store(TaskRequest $request)\n {\n //\n $task = $this->taskServices->addTask($request);\n if(!empty($task)){\n $message = \"Create is successfully\";\n return view('pages.add',compact(['message']));\n }\n else{\n $message = \"Create is fails\";\n return view('pages.add',compact('message'));\n }\n }", "title": "" } ]
[ { "docid": "4d4665c3172bd48271ac325e48734b03", "score": "0.6960531", "text": "public function store()\n {\n $request = $this->makeRequest('store');\n $model = $this->service->create($request);\n\n if(is_a($model, \\Exception::class)) {\n\n return $this->getErrorResource($model);\n\n } else {\n\n return $this->maybeMakeResource('single', $model, 201);\n }\n\n }", "title": "" }, { "docid": "08b1c0fc414209453959162737452406", "score": "0.68456596", "text": "public function save()\n {\n $storage = new Storage();\n $storage->store();\n // ....\n }", "title": "" }, { "docid": "0af8c4e64c8f59b58839884dd423bdba", "score": "0.66870487", "text": "public function store()\n {\n return $this->_resourcePersistence->store();\n }", "title": "" }, { "docid": "cec443e02222c256f4cdc94a793632da", "score": "0.6618901", "text": "public function store() {\n\t\t$this->_storePrecheck();\n\t\t$model = $this->loadModel($this->params['model']);\n\t\t$fileData = StorageUtils::fileToUploadArray($this->args[0]);\n\n\t\t$entity = $model->newEntity([\n\t\t\t'adapter' => $this->params['adapter'],\n\t\t\t'file' => $fileData,\n\t\t\t'filename' => $fileData['name']\n\t\t]);\n\n\t\tif ($model->save($entity)) {\n\t\t\t$this->out('File successfully saved!');\n\t\t\t$this->out('UUID: ' . $entity->id);\n\t\t\t$this->out('Path: ' . $entity->path());\n\t\t} else {\n\t\t\t$this->abort('Failed to save the file.');\n\t\t}\n\t}", "title": "" }, { "docid": "3529d0e71e6d8ea828f2de852437018a", "score": "0.6586192", "text": "public function store()\n {\n // ...\n }", "title": "" }, { "docid": "d867e1815ae7201548cd26c492de3a7b", "score": "0.6553343", "text": "public function save(Storage $storage)\n {\n $storage->store();\n // ....\n }", "title": "" }, { "docid": "7407adcc5b0a18e46fd06cc8c7fc4fdf", "score": "0.6511526", "text": "public function store(Request $request)\n {\n\n $request->validate([\n 'user' => ['required'],\n 'phone' => ['required', ],\n 'email' => ['required', 'email:rfc,dns'],\n 'resource' => ['required'],\n ]);\n $resources = json_decode(Storage::get('resources.json'));\n $resources[] = [\n 'id' => uniqid(),\n 'user' => $request->input('user'),\n 'phone' => $request->input('phone'),\n 'email' => $request->input('email'),\n 'resource' => $request->input('resource'),\n 'date' => now()->format('d-m-Y'),\n ];\n\n Storage::put('resources.json', json_encode($resources));\n\n return redirect()->route('person-area')->with('success', \"Resource from \\\"{$request->input('user')}\\\" was added succesfully!\");\n }", "title": "" }, { "docid": "8ee7e267114dc7aff05b19f9ebc39079", "score": "0.6424367", "text": "public function create($resource);", "title": "" }, { "docid": "40718558d61a4c56dc5b2c2b6422e8cf", "score": "0.6419359", "text": "abstract public function createStorage();", "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": "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": "" } ]
48e699a1f002127873490d1c0c7f46a6
print_r($MPHarray); print_r($RaceRunArray); Cleaning up times: if greater than 60 add to next column
[ { "docid": "b911ef21e517490c5526303099704023", "score": "0.49933535", "text": "function correctTime($Hours,$Minutes,$Seconds, &$printArray)\n{\n\tarray_push($printArray,\"CorrectTime (before loops): H:$Hours M:$Minutes S:$Seconds <br>\");\n\t//echo nl2br(\"Seconds are now: $Seconds \\n\");\n\tif($Seconds>=60)\n\t{\n\t\t$CaryOver=$Seconds%60;\n\t\t$Minutes+=floor($Seconds/60);\n\t\t$Seconds=$CaryOver;\n\t\t//echo nl2br(\"Seconds are now: $CarryOver \\n\");\n\t\t\n\t}\n\n\tif($Minutes>=60)\n\t{\n\t\t$CaryOver=$Minutes%60; //Remainder\n\t\t$Hours+=floor($Minutes/60);\n\t\t$Minutes=$CaryOver;\n\t\t//echo nl2br(\"Minutes are now: $CarryOver \\n\");\n\t\t\n\t}\n\t\n\t//NOW Correct the FORMAT\n\tif($Hours<10)\n\t{$Hours=\"0\".$Hours;}\t\n\tif($Minutes<10)\n\t{$Minutes=\"0\".$Minutes;}\n\tif($Seconds<10)\n\t{$Seconds=\"0\".$Seconds;}\n\t\n\n array_push($printArray,\"CorrectTime (after): H:$Hours M:$Minutes S:$Seconds <br><br>\");\n\t\n\treturn array($Hours,$Minutes,$Seconds);\n}", "title": "" } ]
[ { "docid": "982935ad45c8af65628e3282ce235df2", "score": "0.58521235", "text": "function extractSleepWatchData($row){\n $strBedTime = $row['bedTime'];\n $strTotalSleepTime = $row['totalSleepTime'];\n $strTimeItTookToFallAsleep = $row['timeItTookToFallAsleep'];\n $strAverageSleepQuality = $row['averageSleepQuality'];\n $strNumberOfAwak = $row['numberOfAwak'];\n\n $arrBedTime = explode(\",\", $strBedTime);\n $arrTotalSleepTime = explode(\",\", $strTotalSleepTime);\n $arrTimeItTookToFallAsleep = explode(\",\", $strTimeItTookToFallAsleep);\n $arrAverageSleepQuality = explode(\",\", $strAverageSleepQuality);\n $arrNumberOfAwak = explode(\",\", $strNumberOfAwak);\n\n\n #check nap date by bed time\n $earlyTime = strtotime(\"9:00:00\");\n $lateTime = strtotime(\"18:00:00\");\n $duration = 300; # unit is min\n for($i=0; $i<count($arrBedTime)-1; $i++){\n\t$checkTime = strtotime($arrBedTime[$i]);\n\t$totalDuration = floatval($arrTotalSleepTime[$i]);\n\tif($earlyTime<$checkTime&&$checkTime<$lateTime&&$totalDuration<$duration){\n\t array_splice($arrBedTime, $i, 1);\n\t array_splice($arrTotalSleepTime, $i, 1);\n\t array_splice($arrTimeItTookToFallAsleep, $i, 1);\n\t array_splice($arrAverageSleepQuality, $i, 1);\n\t array_splice($arrNumberOfAwak, $i, 1);\n\t $i--;\n\t}\n }\n return array($arrBedTime, $arrTotalSleepTime, $arrTimeItTookToFallAsleep, $arrAverageSleepQuality, $arrNumberOfAwak);\n}", "title": "" }, { "docid": "215d89e1afc7d81b3fd2c607ffb624f9", "score": "0.5715168", "text": "function assignDataValues($timeHour, $timeMin, $row, $maxValue, $maxValuePoint, $maxValueText, $time, $watts, $watthours, $nowLogging, $startTime) {\n $timeText = $timeHour.\":\".$timeMin;\n $time[] = $timeText;\n $watts[] = $row[6];\n if($row[6] > $maxValue) {\n $maxValue = $row[6];\n $maxValuePoint = $timeText; // used for label on graph\n $maxValueText = number_format($row[6]). \" at $timeText\"; // used for label on graph\n }\n $watthours[] = $row[9];\n if(!$nowLogging) {\n $startTime = ($timeHour * 60) + $timeMin;\n $nowLogging = true;\n }\n return array($maxValue, $maxValuePoint, $maxValueText, $time, $watts, $watthours, $nowLogging, $startTime);\n}", "title": "" }, { "docid": "5f62daf21881b15ea665fe3dad8ce33e", "score": "0.5402284", "text": "function mlb_schedule(){\n\t$crlf=\"\\n\";\n\t// calendar table's border color\n\t$border=36;\n\t// calendar table's month title background color\n\t$monthbg=46;\n\t// calendar table's month title text color\n\t$monthtext=33;\n\t// calendar table's week name color\n\t$calweek=33;\n\t// calendar table's day number color at every month\n\t$calday=32;\n\t// when the game at home, the opp. team name color\n\t$athome=35;\n\t// when the game at away, the opp. team name color\n\t$ataway=37;\n\t// game start time at ET timezone\n\t$playtime=30;\n\t// [team_id]\n\t$team_id='TB';\n\n\t$games=json_decode(file_get_contents('mlb.'.$team_id.'.2017.json'),TRUE);\n\t$games=$games['events']['game'];\n\t$num_games=count($games);\n\n\t$g=array();\n\t$opp=array();\n\n\tfor($i=0;$i<$num_games;$i++){\n\t\tif($games[$i]['gt_name_short']=='Spring'){\n\t\t\tcontinue;\n\t\t}\n\t\tlist($y,$m,$d)=explode('-',$games[$i]['game_date']);\n\t\t$m=intval($m,10);\n\t\t$d=intval($d,10);\n\t\t\n\t\t$time=$games[$i]['game_time_et'];\n\t\tif(preg_match('/^\\d+\\s(\\d+):(\\d+):\\d+\\s([APM]+)$/',$time,$matches)){\n\t\t\t$hh=intval($matches[1],10);\n\t\t\t$ii=intval($matches[2],10);\n\t\t\tif($matches[3]=='PM'){\n\t\t\t\t$hh+=12;\n\t\t\t}\n\t\t\t$time=sprintf('%02d:%02d',$hh,$ii);\n\t\t}\n\t\tif(!isset($g[$m])) $g[$m]=array();\n\n\t\t$g[$m][$d]=array(\n\t\t\t'home'=>$games[$i]['home_name_abbrev'],\n\t\t\t'away'=>$games[$i]['away_name_abbrev'],\n\t\t\t'time'=>$time,\n\t\t);\n\n\t\tif($games[$i]['home_name_abbrev']==$team_id){\n\t\t\tif(!isset($opp[$games[$i]['away_name_abbrev']])){\n\t\t\t\t$opp[$games[$i]['away_name_abbrev']]=array(\n\t\t\t\t\t'times'=>0,\n\t\t\t\t\t'home'=>0,\n\t\t\t\t\t'away'=>0\n\t\t\t\t);\n\t\t\t}\n\t\t\t$opp[$games[$i]['away_name_abbrev']]['times']++;\n\t\t\t$opp[$games[$i]['away_name_abbrev']]['home']++;\n\t\t}\n\t\telse{\n\t\t\tif(!isset($opp[$games[$i]['home_name_abbrev']])){\n\t\t\t\t$opp[$games[$i]['home_name_abbrev']]=array(\n\t\t\t\t\t'times'=>0,\n\t\t\t\t\t'home'=>0,\n\t\t\t\t\t'away'=>0\n\t\t\t\t);\n\t\t\t}\n\t\t\t$opp[$games[$i]['home_name_abbrev']]['times']++;\n\t\t\t$opp[$games[$i]['home_name_abbrev']]['away']++;\n\t\t}\n\t}\n\t/**\n\tforeach($opp as $team => $v){\n\t\techo $team.\",\".$v['home'].\",\".$v['away'].$crlf;\n\t}\n\t**/\n\n\t$monthes=array(\n\t\t'',\n\t\t'',\n\t\t'',\n\t\t'',\n\t\t'Apr',\n\t\t'May',\n\t\t'Jun',\n\t\t'Jul',\n\t\t'Aug',\n\t\t'Sep',\n\t\t'Oct',\n\t\t'Nov',\n\t);\n\t$str='';\n\tfor($m=4;$m<=10;$m++){\n\t\tif($m==4){\n\t\t\t$str=bb('1;'.$border).'╭────┬────┬────┬────┬────┬'.bb($monthbg.';'.$monthtext).' Apr 2017 '.bb($border.';40').'╮'.bb('').$crlf;\n\t\t}\n\t\telse{\n\t\t\t$str.=bb('1;'.$border).'├────┼────┼────┼────┼────┼'.bb($monthbg.';'.$monthtext).' '.$monthes[$m].' 2017 '.bb($border.';40').'┤'.bb('').$crlf;\n\t\t}\n\t\t$timestamp_month=mktime(0,0,0,$m,1,2017);\n\t\t$w_day1=date('w',$timestamp_month);\n\t\t$str.=bb('1;'.$border).'│'.bb($calweek).'Sun. '.bb($border).'│'.bb($calweek).'Mon. '.bb($border).'│'.bb($calweek).'Tue. '.bb($border).'│'.bb($calweek).'Wed. '.bb($border).'│'.bb($calweek).'Thu. '.bb($border).'│'.bb($calweek).'Fri. '.bb($border).'│'.bb($calweek).'Sat. '.bb($border).'│'.bb('').$crlf;\n\t\t$str.=bb('1;'.$border).'├────┼────┼────┼────┼────┼────┼────┤'.bb('').$crlf;\n\t\t$line1='';\n\t\t$line2='';\n\t\t$line3='';\n\n\t\t$line1.=bb('1;'.$border).'│';\n\t\t$line2.=bb('1;'.$border).'│';\n\t\t$line3.=bb('1;'.$border).'│';\n\t\tif($w_day1){\n\t\t\tfor($tmp=0;$tmp<$w_day1;$tmp++){\n\t\t\t\t$line1.=' │';\n\t\t\t\t$line2.=' │';\n\t\t\t\t$line3.=' │';\n\t\t\t}\n\t\t}\n\t\t$num_days=date('t',$timestamp_month);\n\t\tfor($d=1;$d<=$num_days;$d++){\n\t\t\t$timestamp_day=mktime(0,0,0,$m,$d,2017);\n\t\t\t$w=date('w',$timestamp_day);\n\t\t\tif(!isset($g[$m][$d])){\n\t\t\t\t$line1.=bb($calday).($d>9?$d:$d.' ').' '.bb($border).'│';\n\t\t\t\t$line2.=' │';\n\t\t\t\t$line3.=' │';\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$line1.=bb($calday).($d>9?$d:$d.' ').' ';\n\t\t\t\t$at_home=$g[$m][$d]['home']==$team_id?'':'@';\n\t\t\t\tif($g[$m][$d]['home']==$team_id){\n\t\t\t\t\t$line1.=bb($athome).sprintf('%4s',$g[$m][$d]['away']);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$line1.=bb($ataway).sprintf('%4s','@'.$g[$m][$d]['home']);\n\t\t\t\t}\n\t\t\t\t$line1.=bb($border).'│';\n\t\t\t\t$line2.=' │';\n\t\t\t\t$line3.=bb($playtime).' '.$g[$m][$d]['time'].bb($border).'│';\n\t\t\t}\n\t\t\tif($w>=6){\n\t\t\t\t$str.=$line1.bb('').$crlf;\n\t\t\t\t$str.=$line2.bb('').$crlf;\n\t\t\t\t$str.=$line3.bb('').$crlf;\n\t\t\t\tif($d<$num_days){\n\t\t\t\t\t$str.=bb('1;'.$border).'├────┼────┼────┼────┼────┼────┼────┤'.bb('').$crlf;\n\t\t\t\t\t$line1=bb('1;'.$border).'│';\n\t\t\t\t\t$line2=bb('1;'.$border).'│';\n\t\t\t\t\t$line3=bb('1;'.$border).'│';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif($w<6){\n\t\t\tfor($tmp=0,$tmp2=6-$w;$tmp<$tmp2;$tmp++){\n\t\t\t\t$line1.=' │';\n\t\t\t\t$line2.=' │';\n\t\t\t\t$line3.=' │';\n\t\t\t}\n\t\t\t$str.=$line1.bb('').$crlf;\n\t\t\t$str.=$line2.bb('').$crlf;\n\t\t\t$str.=$line3.bb('').$crlf;\n\t\t}\n\t}\n\t$str.=bb('1;'.$border).'╰────┴────┴────┴────┴────┴────┴────╯'.bb('');\n\n\treturn $str;\n}", "title": "" }, { "docid": "cc694fbf3174e667bdedcf1bb4535927", "score": "0.53639644", "text": "function PopulateTab($timeframe, $inc_staff)\r\n{\r\n if ($inc_staff == \"on\") {\r\n $inc = \"\";\r\n }\r\n if ($inc_staff == \"off\") {\r\n $inc = \" and a.rank<2\";\r\n }\r\n\r\n if ($timeframe == \"AllTime\") {\r\n\r\n $time_inc = \"\";\r\n //$sql = \"SELECT DISTINCT a.steam_id, a.callsign, a.char_name, a.rank, (SELECT SUM(b.duration) FROM public_verified_shifts b WHERE b.steam_id=a.steam_id) duration FROM public_verified_shifts a where a.callsign is not null\" . $inc . \" order by duration desc LIMIT 10\";\r\n }\r\n if ($timeframe == \"PastWeek\") {\r\n $curtime = time();\r\n $oneTime = 604800; //one week in seconds\r\n $TimeAgo = $curtime - $oneTime;\r\n $time_inc = \" and b.time_out > '$TimeAgo'\";\r\n //$sql = \"SELECT DISTINCT a.steam_id, a.callsign, a.char_name, a.rank, (SELECT SUM(b.duration) FROM public_verified_shifts b WHERE b.steam_id=a.steam_id and b.time_out > '$TimeAgo') duration FROM public_verified_shifts a where a.callsign is not null\" . $inc . \" order by duration desc LIMIT 10\";\r\n }\r\n if ($timeframe == \"PastMonth\") {\r\n $curtime = time();\r\n $oneTime = 2629743; //one month in seconds\r\n $TimeAgo = $curtime - $oneTime;\r\n $time_inc = \" and b.time_out > '$TimeAgo'\";\r\n //$sql = \"SELECT DISTINCT a.steam_id, a.callsign, a.char_name, a.rank, (SELECT SUM(b.duration) FROM public_verified_shifts b WHERE b.steam_id=a.steam_id and b.time_out > '$TimeAgo') duration FROM public_verified_shifts a where a.callsign is not null\" . $inc . \" order by duration desc LIMIT 10\";\r\n }\r\n $sql = \"SELECT DISTINCT a.steam_id, a.callsign, a.char_name, a.rank, (SELECT SUM(b.duration) FROM `_public_verified_shifts` b WHERE b.steam_id=a.steam_id\" . $time_inc . \") duration FROM `_public_verified_shifts` a where a.callsign is not null\" . $inc . \" order by duration desc LIMIT 10\";\r\n $tData = Query($sql);\r\n $thead = [\"\", \"Name\", \"Time Clocked In\"];\r\n $tbody = array();\r\n if ($tData) {\r\n foreach ($tData as $index => $row) {\r\n $tRow = array();\r\n $tRow[] = $index + 1;\r\n $tRow[] = $row->callsign . \" | \" . $row->char_name;\r\n $tRow[] = toDurationDays($row->duration);\r\n $tbody[] = $tRow;\r\n }\r\n }\r\n Tablefy($thead, $tbody);\r\n}", "title": "" }, { "docid": "9ae4ff4204acfdfe3e294b0db19ad636", "score": "0.5292957", "text": "function make_table($matches,$teams,$last_schedule){\n\t\t\n\t\t$table=array();\n\n\t\tforeach($teams as $row){\n\t\t\t$table[$row->id]=array('id'=>$row->id,'name'=>$row->name,'section'=>$row->section);\n\t\t\t$table[$row->id]['points']=0;\n \t\t$table[$row->id]['pj']=0;\n \t\t$table[$row->id]['pg']=0;\n \t\t$table[$row->id]['pe']=0;\n \t\t$table[$row->id]['pp']=0;\n \t\t$table[$row->id]['gf']=0;\n \t\t$table[$row->id]['gc']=0;\n \t\t$table[$row->id]['gd']=0;\n \t\t$table[$row->id]['change']=1;\n \t\t$table[$row->id]['updown']=0;\n\t\t}\n\t\t$table_ant=$table;\n\t\n\t\tforeach($matches as $row){\n\t\t\t$home=false;\n\t\t\t$away=false;\n\t\t\t$result=trim($row->result);\n \t\t$h=(int)trim(substr($result,0,1));\n \t\t$a=(int)trim(substr($result,3));\n\t\t\t\n \t\tif(isset($table[$row->home])){\n \t\t\t$table[$row->home]['pj']+=1;\n\t\t\t\t$home=true;\n\t\t\t\tif($row->schedule_id!=$last_schedule)\n\t\t\t\t\t$table_ant[$row->home]['pj']+=1;\n\t\t\t}\n \t\tif(isset($table[$row->away])){\n \t\t\t$table[$row->away]['pj']+=1;\n \t\t\t$away=true;\n \t\t\tif($row->schedule_id!=$last_schedule)\n\t\t\t\t\t$table_ant[$row->away]['pj']+=1;\n \t\t}\n \t\t\n \t\t//Si el equipo local gana\n \t\tif($h>$a){\n \t\t\tif($home){\n\t\t\t\t\t$table[$row->home]['points']+=3;\n\t\t\t\t\t$table[$row->home]['pg']+=1;\n\t\t\t\t\t$table[$row->home]['gf']+=$h;\n\t\t\t\t\t$table[$row->home]['gc']+=$a;\n\t\t\t\t\t$table[$row->home]['gd']+=$h-$a;\n\t\t\t\t\tif($row->schedule_id!=$last_schedule){\n\t\t\t\t\t\t$table_ant[$row->home]['points']+=3;\n\t\t\t\t\t\t$table_ant[$row->home]['pg']+=1;\n\t\t\t\t\t\t$table_ant[$row->home]['gf']+=$h;\n\t\t\t\t\t\t$table_ant[$row->home]['gc']+=$a;\n\t\t\t\t\t\t$table_ant[$row->home]['gd']+=$h-$a;\n\t\t\t\t\t}\n \t\t\t}\n \t\t\tif($away){\n\t\t\t\t\t$table[$row->away]['pp']+=1;\n\t\t\t\t\t$table[$row->away]['gf']+=$a;\n\t\t\t\t\t$table[$row->away]['gc']+=$h;\n\t\t\t\t\t$table[$row->away]['gd']+=$a-$h;\n \t\t\t\tif($row->schedule_id!=$last_schedule){\n\t\t\t\t\t\t$table_ant[$row->away]['pp']+=1;\n\t\t\t\t\t\t$table_ant[$row->away]['gf']+=$a;\n\t\t\t\t\t\t$table_ant[$row->away]['gc']+=$h;\n\t\t\t\t\t\t$table_ant[$row->away]['gd']+=$a-$h;\n\t\t\t\t\t}\n \t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\t//Si Empatan\n\t\t\t\tif($h==$a){\n\t\t\t\t\tif($home){\n\t\t\t\t\t\t$table[$row->home]['points']+=1;\n\t\t\t\t\t\t$table[$row->home]['pe']+=1;\n\t\t\t\t\t\t$table[$row->home]['gf']+=$h;\n\t\t\t\t\t\t$table[$row->home]['gc']+=$a;\n\t\t\t\t\t\tif($row->schedule_id!=$last_schedule){\n\t\t\t\t\t\t\t$table_ant[$row->home]['points']+=1;\n\t\t\t\t\t\t\t$table_ant[$row->home]['pe']+=1;\n\t\t\t\t\t\t\t$table_ant[$row->home]['gf']+=$h;\n\t\t\t\t\t\t\t$table_ant[$row->home]['gc']+=$a;\n\t\t\t\t\t\t}\n\t \t\t\t}\n\t \t\t\tif($away){\n\t \t\t\t\t$table[$row->away]['points']+=1;\n\t\t\t\t\t\t$table[$row->away]['pe']+=1;\n\t\t\t\t\t\t$table[$row->away]['gf']+=$a;\n\t\t\t\t\t\t$table[$row->away]['gc']+=$h;\n\t \t\t\t\tif($row->schedule_id!=$last_schedule){\n\t \t\t\t\t\t$table_ant[$row->away]['points']+=1;\n\t\t\t\t\t\t\t$table_ant[$row->away]['pe']+=1;\n\t\t\t\t\t\t\t$table_ant[$row->away]['gf']+=$a;\n\t\t\t\t\t\t\t$table_ant[$row->away]['gc']+=$h;\n\t\t\t\t\t\t}\n\t \t\t\t}\n\t\t\t\t}\n\t\t\t\t//Si el Equipo visitante gana\n\t\t\t\telse{\n\t\t\t\t\tif($home){\n\t\t\t\t\t\t$table[$row->home]['pp']+=1;\n\t\t\t\t\t\t$table[$row->home]['gf']+=$h;\n\t\t\t\t\t\t$table[$row->home]['gc']+=$a;\n\t\t\t\t\t\t$table[$row->home]['gd']+=$h-$a;\n\t\t\t\t\t\tif($row->schedule_id!=$last_schedule){\n\t\t\t\t\t\t\t$table_ant[$row->home]['pp']+=1;\n\t\t\t\t\t\t\t$table_ant[$row->home]['gf']+=$h;\n\t\t\t\t\t\t\t$table_ant[$row->home]['gc']+=$a;\n\t\t\t\t\t\t\t$table_ant[$row->home]['gd']+=$h-$a;\n\t\t\t\t\t\t}\n\t \t\t\t}\n\t \t\t\tif($away){\n\t \t\t\t\t$table[$row->away]['points']+=3;\n\t\t\t\t\t\t$table[$row->away]['pg']+=1;\n\t\t\t\t\t\t$table[$row->away]['gf']+=$a;\n\t\t\t\t\t\t$table[$row->away]['gc']+=$h;\n\t\t\t\t\t\t$table[$row->away]['gd']+=$a-$h;\n\t \t\t\t\tif($row->schedule_id!=$last_schedule){\n\t \t\t\t\t\t$table_ant[$row->away]['points']+=3;\n\t\t\t\t\t\t\t$table_ant[$row->away]['pg']+=1;\n\t\t\t\t\t\t\t$table_ant[$row->away]['gf']+=$a;\n\t\t\t\t\t\t\t$table_ant[$row->away]['gc']+=$h;\n\t\t\t\t\t\t\t$table_ant[$row->away]['gd']+=$a-$h;\n\t\t\t\t\t\t}\n\t \t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Ordeno las dos tablas generadas\n\t\tforeach ($table as $key=>$arr):\n\t\t\t$pun[$key] = $arr['points'];\n\t\t\t$g1[$key] = $arr['gd'];\n\t\t\t$g2[$key] = $arr['gf'];\n\t\t\t$g3[$key] = $arr['gc'];\t\n\t\tendforeach;\n\t\t\t\n\t\tarray_multisort($pun,SORT_DESC,$g1,SORT_DESC,$g2,SORT_DESC,$g3,SORT_ASC,$table);\n\t\t\n\t\t$pun=$g1=$g2=$g3=array();\n\t\tforeach ($table_ant as $key=>$arr):\n\t\t\t$pun[$key] = $arr['points'];\n\t\t\t$g1[$key] = $arr['gd'];\n\t\t\t$g2[$key] = $arr['gf'];\n\t\t\t$g3[$key] = $arr['gc'];\t\n\t\tendforeach;\n\t\t\t\t\n\t\tarray_multisort($pun,SORT_DESC,$g1,SORT_DESC,$g2,SORT_DESC,$g3,SORT_ASC,$table_ant);\n\t\t\n\t\t//Reviso posiciones con la ultima fecha y cuanto se han movido\n\t\tforeach($table as $key=>$row){\n\t\t\tforeach($table_ant as $key2=>$row2){\n\t\t\t\tif($row['id']==$row2['id']){\n\t\t\t\t\tif($key>$key2){\n\t\t\t\t\t\t$table[$key]['change']=2;\n\t\t\t\t\t\t$table[$key]['updown']=abs($key-$key2);\n\t\t\t\t\t}\n\t\t\t\t\tif($key<$key2){\n\t\t\t\t\t\t$table[$key]['change']=0;\n\t\t\t\t\t\t$table[$key]['updown']=abs($key-$key2);\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $table;\n\t}", "title": "" }, { "docid": "0778f2be3cd410dfdafcb0206f6979e5", "score": "0.52680826", "text": "function on_mth_production(){\n $mines=array(\"KRB\", \"MBR\",\"BOL\", \"BAR\",\"TAL\",\"KAL\",\"GUA\",\"MPR\");\n $yymm = textboxValue('yymm');\n $lyr_mth =strval((int)substr($yymm,0,4)-1).substr($yymm,4,2);\n $productionArray =array_fill(0, 9, array_fill(0,6, 0));\n // Lump & Fines App for the month\n $sql_mth_l_p =\"SELECT unit, comm, SUM(plan_qty) as TApp FROM u_pr_plan WHERE ( yymm='$yymm') GROUP BY unit,comm\";\n $result=mysqli_query($GLOBALS['con'],$sql_mth_l_p);\n if(mysqli_num_rows($result)>0){\n while($row=mysqli_fetch_assoc($result)){\n // // echo $row_l_qty['cust'].\" \" .$row_l_qty['unit']. \" \" .$row_l_qty['l_qty']. \" <br />\";\n if( $row['comm']=='L'){\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $productionArray[$j][0] =+$row['TApp']; \n $productionArray[8][0]=$productionArray[8][0]+$row['TApp']; \n }}}\n else{\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $productionArray[$j][3] =+$row['TApp']; \n $productionArray[8][3]=$productionArray[8][3]+$row['TApp']; \n }\n }\n } } \n }else{ echo \"Error: \" . $sql_mth_l_p . \"<br>\" . $GLOBALS['con']->error; }\n\n \n // Lump & Fines & TotalAct for the month\n $sql_mth_l =\"SELECT unit, comm, SUM(act_qty) as Cumproduction FROM u_pr_mth WHERE (yymm='$yymm') GROUP BY unit, comm\";\n $result=mysqli_query($GLOBALS['con'],$sql_mth_l);\n if(mysqli_num_rows($result)>0){\n while($row=mysqli_fetch_assoc($result)){\n if( $row['comm']=='L'){\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $productionArray[$j][1] =+$row['Cumproduction']; \n $productionArray[8][1]=$productionArray[8][1]+$row['Cumproduction']; \n }}}\n else{\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $productionArray[$j][4] =+$row['Cumproduction']; \n $productionArray[8][4]=$productionArray[8][4]+$row['Cumproduction']; \n }\n }\n } } \n }else{ echo \"Error: \" . $sql_mth_l . \"<br>\" . $GLOBALS['con']->error; }\n\n // CPLY Cumulative production \n $sql_lyr_mth_l =\"SELECT unit, comm, SUM(act_qty) as cplyproduction FROM u_pr_mth WHERE (yymm='$lyr_mth') GROUP BY unit, comm\";\n $result=mysqli_query($GLOBALS['con'],$sql_lyr_mth_l);\n if(mysqli_num_rows($result)>0){\n while($row=mysqli_fetch_assoc($result)){\n // // echo $row_l_qty['cust'].\" \" .$row_l_qty['unit']. \" \" .$row_l_qty['l_qty']. \" <br />\";\n if( $row['comm']=='L'){\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $productionArray[$j][2] =+$row['cplyproduction']; \n $productionArray[8][2]=$productionArray[8][2]+$row['cplyproduction']; \n }}}\n else{\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $productionArray[$j][5] =+$row['cplyproduction']; \n $productionArray[8][5]=$productionArray[8][5]+$row['cplyproduction']; \n }\n }\n } } \n }else{\n echo \"Error: \" . $sql_lyr_mth_l . \"<br>\" . $GLOBALS['con']->error;\n }\n//print_r($productionArray);\n return $productionArray;\n \n \n }", "title": "" }, { "docid": "15ff819fa007533eb50ee80b39539d34", "score": "0.5213756", "text": "function accumulateSleepData($row, &$stats)\n{\n global $enumWokeupState, $enumSleepQuality, $enumSleepCompare, $enumRoomDarkness, $enumRoomQuietness, $enumRoomWarmness;\n addData($stats['wokeupState'], $enumWokeupState[$row['wokeupState']]);\n addData($stats['sleepQuality'], $enumSleepQuality[$row['sleepQuality']]);\n addData($stats['hourSlept'], $row['hourSlept']);\n addData($stats['roomDarkness'], $row['roomDarkness']);\n addData($stats['roomQuietness'], $row['roomQuietness']);\n addData($stats['roomWarmness'], $row['roomWarmness']);\n addData($stats['parentSetBedTime'], $row['parentSetBedTime']);\n}", "title": "" }, { "docid": "e6165101b27b12acc3ee2a98678563a3", "score": "0.52077067", "text": "function on_mth_romob(){\n $mines=array(\"KRB\", \"MBR\",\"BOL\", \"BAR\",\"TAL\",\"KAL\",\"GUA\",\"MPR\");\n $yymm = textboxValue('yymm');\n $lyr_mth =strval((int)substr($yymm,0,4)-1).substr($yymm,4,2);\n $romobArray =array_fill(0, 9, array_fill(0,6, 0));\n // Lump & Fines App for the month\n $sql_mth_l_p =\"SELECT unit, comm, SUM(plan_qty) as TApp FROM u_rm_plan WHERE ( yymm='$yymm') GROUP BY unit,comm\";\n $result=mysqli_query($GLOBALS['con'],$sql_mth_l_p);\n if(mysqli_num_rows($result)>0){\n while($row=mysqli_fetch_assoc($result)){\n // // echo $row_l_qty['cust'].\" \" .$row_l_qty['unit']. \" \" .$row_l_qty['l_qty']. \" <br />\";\n if( $row['comm']=='L'){\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $romobArray[$j][0] =+$row['TApp']; \n $romobArray[8][0]=$romobArray[8][0]+$row['TApp']; \n }}}\n else{\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $romobArray[$j][3] =+$row['TApp']; \n $romobArray[8][3]=$romobArray[8][3]+$row['TApp']; \n }\n }\n } } \n }else{ echo \"Error: \" . $sql_mth_l_p . \"<br>\" . $GLOBALS['con']->error; }\n \n \n // Lump & Fines & TotalAct for the month\n $sql_mth_l =\"SELECT unit, comm, SUM(act_qty) as Cumromob FROM u_rm_mth WHERE (yymm='$yymm') GROUP BY unit, comm\";\n $result=mysqli_query($GLOBALS['con'],$sql_mth_l);\n if(mysqli_num_rows($result)>0){\n while($row=mysqli_fetch_assoc($result)){\n if( $row['comm']=='L'){\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $romobArray[$j][1] =+$row['Cumromob']; \n $romobArray[8][1]=$romobArray[8][1]+$row['Cumromob']; \n }}}\n else{\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $romobArray[$j][4] =+$row['Cumromob']; \n $romobArray[8][4]=$romobArray[8][4]+$row['Cumromob']; \n }\n }\n } } \n }else{ echo \"Error: \" . $sql_mth_l . \"<br>\" . $GLOBALS['con']->error; }\n \n // CPLY Cumulative romob \n $sql_lyr_mth_l =\"SELECT unit, comm, SUM(act_qty) as cplyromob FROM u_rm_mth WHERE (yymm='$lyr_mth') GROUP BY unit, comm\";\n $result=mysqli_query($GLOBALS['con'],$sql_lyr_mth_l);\n if(mysqli_num_rows($result)>0){\n while($row=mysqli_fetch_assoc($result)){\n // // echo $row_l_qty['cust'].\" \" .$row_l_qty['unit']. \" \" .$row_l_qty['l_qty']. \" <br />\";\n if( $row['comm']=='L'){\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $romobArray[$j][2] =+$row['cplyromob']; \n $romobArray[8][2]=$romobArray[8][2]+$row['cplyromob']; \n }}}\n else{\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $romobArray[$j][5] =+$row['cplyromob']; \n $romobArray[8][5]=$romobArray[8][5]+$row['cplyromob']; \n }\n }\n } } \n }else{\n echo \"Error: \" . $sql_lyr_mth_l . \"<br>\" . $GLOBALS['con']->error;\n }\n //print_r($romobArray);\n return $romobArray;\n \n \n }", "title": "" }, { "docid": "34b34d7c831ac11543637923e47120cb", "score": "0.51621974", "text": "public function run()\n {\n \n\n \\DB::table('gametime')->delete();\n \n \\DB::table('gametime')->insert(array (\n 0 => \n array (\n 'id' => 27,\n 'studentNumber' => 2014,\n 'totalTime' => 1180,\n 'startTime' => '2017-10-24 17:12:16',\n 'endTime' => '2017-10-24 09:12:16',\n ),\n 1 => \n array (\n 'id' => 30,\n 'studentNumber' => 201465654,\n 'totalTime' => 167,\n 'startTime' => '2017-10-24 17:14:58',\n 'endTime' => '2017-10-24 09:14:58',\n ),\n 2 => \n array (\n 'id' => 31,\n 'studentNumber' => 201436986,\n 'totalTime' => 827,\n 'startTime' => '2017-10-24 17:35:00',\n 'endTime' => '2017-10-24 09:35:00',\n ),\n 3 => \n array (\n 'id' => 32,\n 'studentNumber' => 201300001,\n 'totalTime' => 4647,\n 'startTime' => '2017-10-24 18:51:19',\n 'endTime' => '2017-10-24 10:51:19',\n ),\n 4 => \n array (\n 'id' => 33,\n 'studentNumber' => 201481823,\n 'totalTime' => 276,\n 'startTime' => '2017-10-24 17:56:54',\n 'endTime' => '2017-10-24 09:56:54',\n ),\n 5 => \n array (\n 'id' => 34,\n 'studentNumber' => 201410101,\n 'totalTime' => 1158,\n 'startTime' => '2017-10-24 10:40:37',\n 'endTime' => '2017-10-24 10:40:16',\n ),\n 6 => \n array (\n 'id' => 35,\n 'studentNumber' => 201269828,\n 'totalTime' => 2242,\n 'startTime' => '2017-10-25 10:50:05',\n 'endTime' => '2017-10-25 02:50:05',\n ),\n 7 => \n array (\n 'id' => 36,\n 'studentNumber' => 201417345,\n 'totalTime' => 7974,\n 'startTime' => '2017-10-27 16:56:05',\n 'endTime' => '2017-10-27 08:56:05',\n ),\n 8 => \n array (\n 'id' => 37,\n 'studentNumber' => 201503111,\n 'totalTime' => 0,\n 'startTime' => '2017-12-03 02:44:02',\n 'endTime' => '2017-12-03 04:07:04',\n ),\n 9 => \n array (\n 'id' => 38,\n 'studentNumber' => 201459068,\n 'totalTime' => 0,\n 'startTime' => '2017-12-03 02:44:25',\n 'endTime' => '2017-12-03 05:08:15',\n ),\n 10 => \n array (\n 'id' => 39,\n 'studentNumber' => 201469020,\n 'totalTime' => 2770,\n 'startTime' => '2017-10-26 12:28:07',\n 'endTime' => '2017-10-26 04:28:07',\n ),\n 11 => \n array (\n 'id' => 40,\n 'studentNumber' => 201416457,\n 'totalTime' => -27225,\n 'startTime' => '2017-10-26 14:39:09',\n 'endTime' => '2017-10-26 06:39:09',\n ),\n 12 => \n array (\n 'id' => 41,\n 'studentNumber' => 201464491,\n 'totalTime' => 937,\n 'startTime' => '2017-10-26 14:39:26',\n 'endTime' => '2017-10-26 06:39:26',\n ),\n 13 => \n array (\n 'id' => 42,\n 'studentNumber' => 201239436,\n 'totalTime' => 70,\n 'startTime' => '2017-10-26 14:17:58',\n 'endTime' => '2017-10-26 06:17:58',\n ),\n 14 => \n array (\n 'id' => 43,\n 'studentNumber' => 201439428,\n 'totalTime' => 2495,\n 'startTime' => '2017-10-26 18:14:51',\n 'endTime' => '2017-10-26 10:14:51',\n ),\n 15 => \n array (\n 'id' => 44,\n 'studentNumber' => 201512317,\n 'totalTime' => 933,\n 'startTime' => '2017-10-27 04:42:06',\n 'endTime' => '2017-10-27 04:41:29',\n ),\n 16 => \n array (\n 'id' => 46,\n 'studentNumber' => 201712345,\n 'totalTime' => 207,\n 'startTime' => '2017-10-22 23:55:10',\n 'endTime' => '2017-10-22 15:55:10',\n ),\n 17 => \n array (\n 'id' => 47,\n 'studentNumber' => 201412345,\n 'totalTime' => -33910,\n 'startTime' => '2018-07-25 23:50:50',\n 'endTime' => '2018-07-25 15:50:50',\n ),\n 18 => \n array (\n 'id' => 48,\n 'studentNumber' => 201120800,\n 'totalTime' => 4,\n 'startTime' => '2017-10-23 11:04:33',\n 'endTime' => '2017-10-23 03:04:33',\n ),\n 19 => \n array (\n 'id' => 49,\n 'studentNumber' => 201406429,\n 'totalTime' => 512,\n 'startTime' => '2017-10-23 14:11:42',\n 'endTime' => '2017-10-23 06:11:42',\n ),\n 20 => \n array (\n 'id' => 50,\n 'studentNumber' => 201352703,\n 'totalTime' => 5522,\n 'startTime' => '2017-10-24 20:12:38',\n 'endTime' => '2017-10-24 12:12:38',\n ),\n 21 => \n array (\n 'id' => 51,\n 'studentNumber' => 201349850,\n 'totalTime' => 0,\n 'startTime' => '2017-12-03 02:46:02',\n 'endTime' => '2017-12-03 05:11:12',\n ),\n 22 => \n array (\n 'id' => 52,\n 'studentNumber' => 201352618,\n 'totalTime' => -196850,\n 'startTime' => '2017-10-27 15:20:23',\n 'endTime' => '2017-10-27 07:20:24',\n ),\n 23 => \n array (\n 'id' => 53,\n 'studentNumber' => 201338192,\n 'totalTime' => 5337,\n 'startTime' => '2017-10-26 14:47:49',\n 'endTime' => '2017-10-26 06:47:49',\n ),\n 24 => \n array (\n 'id' => 54,\n 'studentNumber' => 201362775,\n 'totalTime' => -22563,\n 'startTime' => '2017-10-26 18:41:33',\n 'endTime' => '2017-10-26 10:41:33',\n ),\n 25 => \n array (\n 'id' => 55,\n 'studentNumber' => 201479944,\n 'totalTime' => 1051,\n 'startTime' => '2017-10-23 07:35:06',\n 'endTime' => '2017-10-23 07:28:21',\n ),\n 26 => \n array (\n 'id' => 56,\n 'studentNumber' => 201351835,\n 'totalTime' => 2117,\n 'startTime' => '2017-10-23 16:03:14',\n 'endTime' => '2017-10-23 08:03:14',\n ),\n 27 => \n array (\n 'id' => 57,\n 'studentNumber' => 201506464,\n 'totalTime' => 4770,\n 'startTime' => '2017-10-26 18:43:53',\n 'endTime' => '2017-10-26 10:43:53',\n ),\n 28 => \n array (\n 'id' => 58,\n 'studentNumber' => 201473631,\n 'totalTime' => 8618,\n 'startTime' => '2017-10-27 12:18:23',\n 'endTime' => '2017-10-27 04:18:23',\n ),\n 29 => \n array (\n 'id' => 59,\n 'studentNumber' => 201481827,\n 'totalTime' => 386,\n 'startTime' => '2017-10-24 17:16:44',\n 'endTime' => '2017-10-24 09:16:44',\n ),\n 30 => \n array (\n 'id' => 60,\n 'studentNumber' => 201475355,\n 'totalTime' => 10010,\n 'startTime' => '2017-10-27 17:34:41',\n 'endTime' => '2017-10-27 09:34:41',\n ),\n 31 => \n array (\n 'id' => 61,\n 'studentNumber' => 201473639,\n 'totalTime' => 2883,\n 'startTime' => '2017-10-25 11:51:49',\n 'endTime' => '2017-10-25 03:51:49',\n ),\n 32 => \n array (\n 'id' => 62,\n 'studentNumber' => 201437629,\n 'totalTime' => 1471,\n 'startTime' => '2017-10-25 17:40:12',\n 'endTime' => '2017-10-25 09:40:12',\n ),\n 33 => \n array (\n 'id' => 63,\n 'studentNumber' => 201344347,\n 'totalTime' => 4979,\n 'startTime' => '2017-10-25 13:13:02',\n 'endTime' => '2017-10-25 05:13:02',\n ),\n 34 => \n array (\n 'id' => 64,\n 'studentNumber' => 201481022,\n 'totalTime' => 7443,\n 'startTime' => '2017-10-25 11:10:58',\n 'endTime' => '2017-10-25 03:10:58',\n ),\n 35 => \n array (\n 'id' => 65,\n 'studentNumber' => 201473625,\n 'totalTime' => 3110,\n 'startTime' => '2017-10-24 17:14:41',\n 'endTime' => '2017-10-24 09:14:41',\n ),\n 36 => \n array (\n 'id' => 66,\n 'studentNumber' => 201436450,\n 'totalTime' => 1854,\n 'startTime' => '2017-10-24 17:24:13',\n 'endTime' => '2017-10-24 09:24:13',\n ),\n 37 => \n array (\n 'id' => 67,\n 'studentNumber' => 201436452,\n 'totalTime' => 676,\n 'startTime' => '2017-10-24 17:00:01',\n 'endTime' => '2017-10-24 09:00:01',\n ),\n 38 => \n array (\n 'id' => 68,\n 'studentNumber' => 201436361,\n 'totalTime' => 2879,\n 'startTime' => '2017-10-24 17:22:35',\n 'endTime' => '2017-10-24 09:22:35',\n ),\n 39 => \n array (\n 'id' => 69,\n 'studentNumber' => 201476542,\n 'totalTime' => 678,\n 'startTime' => '2017-10-24 16:38:38',\n 'endTime' => '2017-10-24 08:38:38',\n ),\n 40 => \n array (\n 'id' => 70,\n 'studentNumber' => 201464495,\n 'totalTime' => 178,\n 'startTime' => '2017-10-24 16:30:54',\n 'endTime' => '2017-10-24 08:30:54',\n ),\n 41 => \n array (\n 'id' => 74,\n 'studentNumber' => 0,\n 'totalTime' => -54386,\n 'startTime' => '2017-10-24 17:39:48',\n 'endTime' => '2017-10-24 09:39:48',\n ),\n 42 => \n array (\n 'id' => 90,\n 'studentNumber' => 201512355,\n 'totalTime' => 3197,\n 'startTime' => '2017-10-27 17:49:41',\n 'endTime' => '2017-10-27 09:49:41',\n ),\n ));\n \n \n }", "title": "" }, { "docid": "526384f615b96dedc46e335900bb6eea", "score": "0.51556593", "text": "function buildRow($network){\n $offset = 0;\n $i = 0;\n while($i < 7){\n $currentTitle = getTitle($network, getTime($offset));\n if (count($currentTitle) == 0){\n echo '<td colspan=\"1\">Local Programming</td>';\n $collumns = 1;\n $offset += 30;\n }\n else{\n $collumns = (int)($currentTitle[0]['RUNTIME'] / 30);\n if($i + $collumns > 7 ){\n $collumns = 2;\n }\n else if ($i + $collumns == 7){\n $collumns += 1;\n }\n echo '<td colspan=\"'. $collumns.'\"><a href = \"/phase5/pages/info.php?id= ' . $currentTitle[0]['ID']. '\">' . $currentTitle[0]['TITLE'] . '</td> ';\n $offset += $currentTitle[0]['RUNTIME'] ;\n }\n $i += $collumns; \n }\n}", "title": "" }, { "docid": "7d420374f160b90f0c199c2791db65c5", "score": "0.5074984", "text": "public function prime() {\r\n $ranking_file = dirname(__FILE__) . '/rankings.json';\r\n if (!file_exists($ranking_file) || filemtime($ranking_file) < strtotime('-1 day')) {\r\n file_put_contents($ranking_file, file_get_contents(POWER_RANKINGS_URL));\r\n }\r\n\r\n $data = json_decode(file_get_contents($ranking_file), true);\r\n\r\n foreach ($data['DI'] as $d) {\r\n $id = $this->lookup[$d[0][0]]; // get id by team\r\n $this->lookup[$id]['rank'] = $d[4];\r\n $this->lookup[$id]['rating'] = $d[5];\r\n $this->lookup[$id]['power'] = $d[7];\r\n $this->lookup[$id]['offense'] = $d[9];\r\n $this->lookup[$id]['defense'] = $d[11];\r\n $this->lookup[$id]['hfa'] = $d[12];\r\n }\r\n\r\n foreach ($this->schedule as $week => $games) {\r\n foreach ($games as $idx => $g) {\r\n $combined_hfa = $this->lookup[$g['hteamid']]['hfa'] + $this->lookup[$g['ateamid']]['hfa'];\r\n $this->schedule[$week][$idx]['hscore'] = $this->lookup[$g['hteamid']]['offense'] - $this->lookup[$g['ateamid']]['defense'] + ($combined_hfa / 4);\r\n $this->schedule[$week][$idx]['ascore'] = $this->lookup[$g['ateamid']]['offense'] - $this->lookup[$g['hteamid']]['defense'] - ($combined_hfa / 4);\r\n $this->schedule[$week][$idx]['c'] = abs($this->schedule[$week][$idx]['hscore'] - $this->schedule[$week][$idx]['ascore']);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "1c071698bf1161c4df884e2af5e41600", "score": "0.50649697", "text": "private function buildHourSummaryScaffold()\n {\n $array = array();\n\n for ($i = 0; $i <= 23; $i++)\n {\n $array[$i] = null;\n }\n\n return $array;\n }", "title": "" }, { "docid": "e9d95f1428280d9ea20cf4c3d616550a", "score": "0.50143594", "text": "public function displayLunchHistory() { \n\t\t$strOutput='';\n\t\tif (is_array($this->arLunchHistory)) {\n\t\t\treset($this->arLunchHistory);\n\t\t\tforeach ($this->arLunchHistory as $key => $value) {\n\t\t\t\t$year = substr($key,0,4);\n\t\t\t\t$month = substr($key,4,2);\n\t\t\t\t$day = substr($key,6,2);\n\t\t\t\tif (is_array($value)) {\n\t\t\t\t\treset($value);\n\t\t\t\t\tarsort($value);\n\t\t\t\t\tforeach ($value as $key_user => $value_user) {\n\t\t\t\t\t\tif ($value_user==1) {\n\t\t\t\t\t\t\t$arMontly[$year][date(\"F\", mktime(0, 0, 0, $month, $day, $year) )][$key_user] ++;\n\t\t\t\t\t\t\t$arYearly[$year][$key_user] ++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} //end if\n\t\t\t\t\tarsort($arYearly);\n\t\t\t\t\tarsort($arYearly[$year]);\n\t\t\t\t}\t\n\t\t\t}//end foreach\n\t\t} //end if\n\t\tif (is_array($arYearly)) {\n\t\t\tforeach ($arYearly as $key => $value) {\n\t\t\t\t$strOutput.='<br/><hr/><table border=\"1\"><tr><td valign=\"top\" width=\"100\"><b>'.$key.' </b></td>';\n\t\t\t\tforeach ($value as $key_users => $value_users) {\n\t\t\t\t\t$strOutput.='<td width=\"100\"><center><b>'.$key_users.'</b><br/>'.$value_users.'<center></td>';\n\t\t\t\t} //end foreach\n\t\t\t\t$strOutput.='</tr></table>';\n\t\t\t\tif (is_array($arMontly[$key])) {\n\t\t\t\t\tforeach ($arMontly[$key] as $keyMontly => $valueMontly) {\n\t\t\t\t\t\t$strOutput.='<table border=\"1\"><tr><td valign=\"top\" width=\"100\"><b>' . $keyMontly . '</b></td>';\n\t\t\t\t\t\tforeach ($valueMontly as $keyMontly_users => $valueMontly_users) {\n\t\t\t\t\t\t\t$strOutput.='<td width=\"100\"><center><b>'.$keyMontly_users.'</b><br/>'.$valueMontly_users.'<center></td>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$strOutput.='</tr></table>';\n\t\t\t\t\t} //end foreach\n\t\t\t\t}//end if\t\n\t\t\t} //end foreach\n\t\t} //end if\n\t\treturn $strOutput;\n\t}", "title": "" }, { "docid": "d2da085338d14eac6d283f29d9051ba1", "score": "0.49916768", "text": "function build_table()\n {\n $member = $_SESSION['active_user'];\n\t\t$UoM = get_UoM();\n $conn = db_connect();\n $query = \"SELECT IF(DATEDIFF(CURDATE(),log.dateLogged) <= 7, DATE_FORMAT(log.dateLogged,'%W'), DATE_FORMAT(log.dateLogged, '%c/%e/%Y')) AS dateLogged1, COUNT(logD.phase) AS totalPhases, SUM(logD.distance) AS totalDistance, SUM(logD.timeRan) AS totalTime FROM tblHistory AS log, tblHistoryDetails as logD WHERE log.logID = logD.logID AND log.userID = \".$member.\" GROUP BY log.dateLogged DESC LIMIT 5;\";\n \n $data = mysqli_query($conn, $query);\n $num_rows = mysqli_num_rows($data);\n \t\n\t\techo \"<table class='table table-striped'> \\r\\n\";\n\t\techo \"<thead> \\r\\n\"; \n\t\techo \"<tr> \\r\\n\";\n\t\techo \"<th>Date</th> \\r\\n\";\n\t\techo \"<th>Distance</th> \\r\\n\"; \n\t\techo \"<th>Time</th> \\r\\n\";\n\t\techo \"</tr> \\r\\n\";\n\t\techo \"</thead> \\r\\n\";\n\t\techo \"<tbody> \\r\\n\";\n\t\t\n\t\tfor($i=0; $i<$num_rows; $i++)\n {\n \t\t$item = mysqli_fetch_array($data, MYSQLI_ASSOC);\n\t\t\t\n\t\t\tif($item['totalTime']<3600)\n\t\t\t{\n\t\t\t\t$timeVar = gmdate('i:s',$item['totalTime']);\n\t\t\t}else\n\t\t\t{\n\t\t\t\t$timeVar = gmdate('H:i:s',$item['totalTime']);\n\t\t\t}\n\t\t\techo \"<tr> \\r\\n\";\n\t\t\techo \"<td>\".$item['dateLogged1'].\"</td> \\r\\n\";\n\t\t\techo \"<td>\".get_distance_string($item['totalDistance'], $UoM).\"</td> \\r\\n\";\n\t\t\techo \"<td>\".$timeVar.\"</td> \\r\\n\";\n\t\t\techo \"</tr> \\r\\n\";\n\t\t}\n\t\t\techo \"</tbody> \\r\\n\";\n\t\t\techo \"</table> \\r\\n\";\n\t\t\t\n db_disconnect($conn);\n\n }", "title": "" }, { "docid": "9c0ebf30cb3a49e1b7b284e76647b03e", "score": "0.49661553", "text": "public function run()\n {\n DB::table('time')->insert([\n [\n 'Mid' => '11',\n 'Hall' => '7',\n 'Time' => '10:00',\n 'Seat' => '200',\n 'created_at' => date(\"Y-m-d H:i:s\"),\n 'updated_at' => date(\"Y-m-d H:i:s\"),\n ],\n [\n 'Mid' => '11',\n 'Hall' => '7',\n 'Time' => '11:50',\n 'Seat' => '200',\n 'created_at' => date(\"Y-m-d H:i:s\"),\n 'updated_at' => date(\"Y-m-d H:i:s\"),\n ],\n [\n 'Mid' => '11',\n 'Hall' => '7',\n 'Time' => '13:40',\n 'Seat' => '200',\n 'created_at' => date(\"Y-m-d H:i:s\"),\n 'updated_at' => date(\"Y-m-d H:i:s\"),\n ],\n [\n 'Mid' => '11',\n 'Hall' => '7',\n 'Time' => '15:30',\n 'Seat' => '200',\n 'created_at' => date(\"Y-m-d H:i:s\"),\n 'updated_at' => date(\"Y-m-d H:i:s\"),\n ],\n [\n 'Mid' => '11',\n 'Hall' => '7',\n 'Time' => '17:20',\n 'Seat' => '200',\n 'created_at' => date(\"Y-m-d H:i:s\"),\n 'updated_at' => date(\"Y-m-d H:i:s\"),\n ],\n [\n 'Mid' => '11',\n 'Hall' => '7',\n 'Time' => '19:10',\n 'Seat' => '200',\n 'created_at' => date(\"Y-m-d H:i:s\"),\n 'updated_at' => date(\"Y-m-d H:i:s\"),\n ],\n [\n 'Mid' => '11',\n 'Hall' => '7',\n 'Time' => '21:00',\n 'Seat' => '200',\n 'created_at' => date(\"Y-m-d H:i:s\"),\n 'updated_at' => date(\"Y-m-d H:i:s\"),\n ],\n ]);\n }", "title": "" }, { "docid": "c504d0de7a25b45d3bcc2bae3246d25e", "score": "0.49615064", "text": "function efficiency($data)\n{\n $currTournament = null;\n $currOpponent = null;\n $currGame = null;\n $players = [];\n $tourneyPlayers = [];\n foreach($data as $row)\n {\n if ($currGame != $row['game_id'])\n {\n if ($currGame)\n {\n $tournaments[$currTournament][$currOpponent] = $players;\n $players = [];\n }\n if ($currTournament && $row['tournament'] != $currTournament)\n {\n $tournaments[$currTournament]['Overall'] = $tourneyPlayers;\n $tourneyPlayers = [];\n }\n \n $currTournament = $row['tournament'];\n $currOpponent = $row['opponent'];\n $currGame = $row['game_id'];\n }\n\n foreach(range(1,9) as $n)\n {\n if (!$row[\"p$n\"])\n {\n continue;\n }\n \n if (!isset($players[$row[\"p$n\"]]))\n {\n $players[$row[\"p$n\"]] = ['points' => 0, 'ds' => 0];\n }\n if (!isset($tourneyPlayers[$row[\"p$n\"]]))\n {\n $tourneyPlayers[$row[\"p$n\"]] = ['points' => 0, 'ds' => 0];\n }\n \n $players[$row[\"p$n\"]]['points']++;\n $tourneyPlayers[$row[\"p$n\"]]['points']++;\n if ($row['their_turns'] > 0)\n {\n $players[$row[\"p$n\"]]['ds']++;\n $tourneyPlayers[$row[\"p$n\"]]['ds']++; \n }\n }\n }\n \n $tournaments[$currTournament][$currOpponent] = $players;\n $tournaments[$currTournament]['Overall'] = $tourneyPlayers;\n\n\n $table = [];\n foreach($tournaments as $tourneyName => $opponents)\n {\n foreach($opponents as $oppName => $players)\n {\n uasort($players, function($a,$b) {\n $aPercent = $a['ds'] / $a['points'];\n $bPercent = $b['ds'] / $b['points'];\n if ($aPercent == $bPercent)\n {\n return $a['points'] == $b['points'] ? 0 : ($a['points'] > $b['points'] ? -1 : 1);\n }\n return $aPercent > $bPercent ? -1 : 1;\n });\n \n foreach($players as $player => $stats)\n {\n $table[] = [$tourneyName, $oppName, $player, $stats['ds'], $stats['points'], sprintf('%0.3f',$stats['ds']/$stats['points']) ];\n }\n //$table[] = ['---', '---', '---', '---', '---', '---'];\n }\n //$table[] = [' ', ' ', ' ', ' ', ' ', ' '];\n //$table[] = [' ', ' ', ' ', ' ', ' ', ' '];\n //$table[] = [' ', ' ', ' ', ' ', ' ', ' '];\n }\n \n return $table;\n}", "title": "" }, { "docid": "04093e854e6ac370482c3822161872f1", "score": "0.49517226", "text": "function print_Movement_array($direction, $type, $Movement_array, $time_from, $time_to, $time_increment, $upper_limits, $threshold_max) {\n\n switch($type){\n case \"wifi_global\":\n echo \"Wi-Fi devices with global MAC address:<br>\";\n break;\n case \"wifi_local\":\n echo \"Wi-Fi devices with local MAC address:<br>\";\n break;\n case \"bt\":\n echo \"Bluetooth devices:<br>\";\n break;\n default:\n die(\"function print_Movement_array ERROR: Unknown type: \" . $type);\n }\n\n echo \"<table style=\\\"border-collapse:collapse\\\">\";\n foreach ($Movement_array as $Movement_key) {\n\n switch($type){\n case \"wifi_global\":\n case \"bt\":\n $key = $Movement_key->key;\n break;\n case \"wifi_local\":\n $key = $Movement_key->key[0];\n break;\n default:\n die(\"function print_Movement_array ERROR: Unknown type: \" . $type);\n }\n\n echo \"<tr class=\\\"info\\\">\";\n echo \"<td><tt>\" . $key . \"&nbsp&nbsp&nbsp&nbsp&nbsp</tt></td>\";\n echo \"<td>\";\n echo \"<table>\";\n if ($Movement_key->blacklisted == 1) {\n\n echo \"<tr style=\\\"color:orangered\\\"><td><tt>\" . \n \"Blacklisted\" . \n \"</tt></td></tr>\";\n\n } elseif ($Movement_key->over_timestamp_limit == 1) {\n \n echo \"<tr style=\\\"color:orangered\\\"><td><tt>\" . \n \"Number of timestamps over limit\" . \n \"</tt></td></tr>\";\n\n } else {\n\n switch($direction){\n case \"AB\":\n if ($Movement_key->AB == NULL) {\n echo \"<tr style=\\\"color:orangered\\\"><td><tt>\" . \n \"None\" . \n \"</tt></td></tr>\";\n } else {\n foreach ($Movement_key->AB as $AB_array_p => $AB_array_v) {\n echo \"<tr>\";\n echo \"<td><tt>\" . \n $AB_array_v[0] . \"<b> => </b>\" . \n $AB_array_v[1] . \n \"<b>(\" . \n round($AB_array_v[2], 2) . \" sec / \" . \n round($AB_array_v[2]/60, 2) . \" min / \" . \n round($AB_array_v[2]/3600, 2) . \" hod\" .\n \")</b>\" .\n \"</tt></td>\";\n if (flag_movement_over_limit($time_from, $time_to, $time_increment, $AB_array_v[1], $AB_array_v[2], $upper_limits, $threshold_max)) {\n echo \"<td style=\\\"color:orangered\\\"><tt> - over limit </tt></td>\";\n } \n echo \"</tr>\";\n }\n }\n break;\n case \"BA\":\n if ($Movement_key->BA == NULL) {\n echo \"<tr style=\\\"color:orangered\\\"><td><tt>\" . \n \"None\" . \n \"</tt></td></tr>\";\n } else {\n foreach ($Movement_key->BA as $BA_array_p => $BA_array_v) {\n echo \"<tr>\";\n echo \"<td><tt>\" . \n $BA_array_v[0] . \"<b> => </b>\" . \n $BA_array_v[1] . \n \"<b>(\" . \n round($BA_array_v[2], 2) . \" sec / \" . \n round($BA_array_v[2]/60, 2) . \" min / \" . \n round($BA_array_v[2]/3600, 2) . \" hod\" .\n \")</b>\" .\n \"</tt></td>\";\n if (flag_movement_over_limit($time_from, $time_to, $time_increment, $BA_array_v[1], $BA_array_v[2], $upper_limits, $threshold_max)) {\n echo \"<td style=\\\"color:orangered\\\"><tt> - over limit </tt></td>\";\n } \n echo \"</tr>\";\n }\n }\n break;\n default:\n die(\"function print_Movement_array ERROR: Unknown direction: \" . $direction);\n } // switch direction end\n } // if blacklisted end\n echo \"</table>\";\n echo \"<td>\";\n echo \"</tr>\";\n }\n echo \"</table>\";\n echo \"<br>\";\n}", "title": "" }, { "docid": "ddc99fc41d8ae152a529f3a67f4f0327", "score": "0.49068224", "text": "function boatingmodel() {\r\n// BEGINNING OF CALCULATIONS ***************************************************\r\n\t//calculate model for full history and update model data in database\r\n\t$lasttime = 1;\r\n\t$starttime = 0;\r\n\r\n\t$data = array(); // HOBOLINK DATA\r\n\r\n\tfor ($x=0;$x<$rowcount;$x++) {\r\n\t\tif (\r\n\t\t\tisset($data['rainfall']) &&\r\n\t\t\tisset($data['windspeed']) &&\r\n\t\t\tisset($data['watertemp']) &&\r\n\t\t\tisset($data['airtemp']) &&\r\n\t\t\tisset($data['waterflow']) &&\r\n\t\t\tisset($data['days']) &&\r\n\t\t\tisset($data['par'])\r\n\t\t) {\r\n\t\t\t// NOTE flow values are missing from HOBOLINK data, set to 1\r\n\t\t\t// NOTE do we want\r\n\r\n\t\t\t// TODO slice for most recent 24 hours\r\n\t\t\t$windD1 = array_sum($data['windspeed'])/24;\r\n\t\t\t// TODO convert to celsius and slice for last 24 hours\r\n\t\t\t$wtmpD1 = array_sum($data['watertemp'])/24;\r\n\t\t\t// TODO convert to celsius\r\n\t\t\t$atmpD1 = array_sum($data['airtemp'])/24;\r\n\t\t\t// TODO slice for most recent 24 hours\r\n\t\t\t$parD1 = array_sum($data['par'])/24;\r\n\t\t\t// TODO slice for most recent 48 hours\r\n\t\t\t$parD2 = array_sum(array_slice($parset,$x-47,48))/48;\r\n\t\t\t// TODO flow values are missing from HOBOLINK data\r\n\t\t\t$flowD1 = 1; //array_sum(array_slice($flowset,$x-23,24))/24;\r\n\t\t\t$flowD2 = 1; //array_sum(array_slice($flowset,$x-47,48))/48;\r\n\t\t\t$flowD4 = 1; //array_sum(array_slice($flowset,$x-95,96))/96;\r\n\r\n\t\t\t// NOTE only $rainD7 is needed for model 5 which also\r\n\t\t\t// requires flow, so none of these rain values are used.\r\n\t\t\t// TODO slice for most recent 24 hours\r\n\t\t\t$rainD1 = array_sum(array_slice($rainset,$x-23,24));\r\n\t\t\t// TODO slice for most recent 48 hours\r\n\t\t\t$rainD2 = array_sum(array_slice($rainset,$x-47,48));\r\n\t\t\t// TODO slice for most recent 72 hours\r\n\t\t\t$rainD3 = array_sum(array_slice($rainset,$x-71,72));\r\n\t\t\t// TODO slice for most recent 168 hours (week)\r\n\t\t\t$rainD7 = array_sum(array_slice($rainset,$x-167,168));\r\n\r\n\t\t\t// NOTE this requires flow, which we don't have\r\n\t\t\t$li_conc_LF = exp(2.7144 + 0.65*log($flowD1) + 1.68*$rainD2 - 0.071*($wtmpD1) - 0.29*$rainD7 - 0.09*$windD1);\r\n\r\n\t\t\t// NOTE this requires flow, which we don't have\r\n\t\t\t$lg_LF = -3.184 + 3.936*$rainD2 - 1.62*$rainD7 + 1.2798*log($flowD1) - 0.3397*$windD1 - 0.2112*($wtmpD1);\r\n\r\n\t\t\t// NOTE this depends on variables that require flow\r\n\t\t\t$lg_prb_LF = exp($lg_LF) / (1 + exp($lg_LF));\r\n\r\n\t\t\t// Reach 2 logistic model, updated 2015 version.\r\n\t\t\t// NOTE $daysset needs to be the hours since last rain\r\n\t\t\t$lg_R2 = 0.2629+0.0444*($wtmpD1*9/5+32)-0.0364*($atmpD1*9/5+32)+0.0014*24*$daysset[$x]-0.226*log($daysset[$x]*24+0.0001);\r\n\r\n\t\t\t// Reach 3 logistic model, updated 2015 version.\r\n\t\t\t// NOTE depends on flow\r\n\t\t\t$lg_R3 = 1.4144+0.0255*($wtmpD1*9/5+32)-0.0007*$parD2+0.0009*24*$daysset[$x]-0.3022*log($daysset[$x]*24+0.0001)+0.0015*$flowD2-0.3957*log($flowD2);\r\n\r\n\t\t\t// Reach 4 logistic model, updated 2015 version.\r\n\t\t\t$lg_R4 = 3.6513+0.0254*($wtmpD1*9/5+32)-0.6636*log($parD2)-0.0014*24*$daysset[$x]-0.3428*log($daysset[$x]*24+0.0001);\r\n\r\n\t\t\t$lg_prb_R2 = exp($lg_R2) / (1 + exp($lg_R2));\r\n\t\t\t$lg_prb_R3 = exp($lg_R3) / (1 + exp($lg_R3));\r\n\t\t\t// NOTE depends on flow\r\n\t\t\t$lg_prb_R4 = exp($lg_R4) / (1 + exp($lg_R4));\r\n\t\t}\r\n\t}\r\n// END OF CALCULATIONS *********************************************************\r\n}", "title": "" }, { "docid": "dd46f0bda669dca71ce289e32d6562f2", "score": "0.49059364", "text": "function sys_petMilestones($pet_id)\r\n\t{\r\n\t\t$milestones_arr\t = array();\r\n\t\t//$res_m\t = array();\r\n\t\t\r\n\t/*-----------------------------------------------------------------------------------*/\r\n\t/*\tMilestones\r\n\t/*-----------------------------------------------------------------------------------*/\t\r\n\t//$sq_mstones = \"SELECT * FROM `pom_milestones_to_petitions` WHERE (`petition_id` = \".$this->quote_si($pet_id).\") ;\";\r\n\t$sq_mstones = \"SELECT\r\n `pom_milestones_to_petitions`.`id`\r\n , `pom_milestones`.`step_title`\r\n , `pom_milestones_to_petitions`.`date_due`\r\n , `pom_milestones_to_petitions`.`status_id`\r\n , `pom_status`.`status`\r\n , `pom_milestones_to_petitions`.`complete`\r\n , `pom_milestones`.`step_function`\r\n , `pom_milestones_to_petitions`.`petition_id`\r\n\t, `pom_milestones`.`milestone_id`\r\nFROM\r\n `pom_milestones`\r\n INNER JOIN `pom_milestones_to_petitions` \r\n ON (`pom_milestones`.`milestone_id` = `pom_milestones_to_petitions`.`milestone_id`)\r\n INNER JOIN `pom_status` \r\n ON (`pom_milestones_to_petitions`.`status_id` = `pom_status`.`status_id`)\r\nWHERE (`pom_milestones`.`published` =1\r\n AND `pom_milestones_to_petitions`.`petition_id` = \".$this->quote_si($pet_id).\") ORDER BY `pom_milestones`.`step_position` ASC ;\";\r\n\t$rs_mstones = $this->dbQuery($sq_mstones);\r\n\t$rs_count = $this->recordCount($rs_mstones);\r\n\t\r\n\tif($rs_count > 0)\r\n\t{\r\n\t\t$current_time = time();\r\n\t\t\r\n\t\twhile($cn_query = $this->fetchRow($rs_mstones, 'assoc'))\r\n\t\t{\r\n\t\t\t$step_id \t = $cn_query['milestone_id'];\r\n\t\t\t$step_title = clean_output($cn_query['step_title']);\r\n\t\t\t$step_status_id = $cn_query['status_id'];\r\n\t\t\t$step_status = $cn_query['status'];\r\n\t\t\t$step_function = $cn_query['step_function'];\r\n\t\t\t$step_complete = $cn_query['complete'];\r\n\t\t\t$date_due = $cn_query['date_due'];\r\n\t\t\t\r\n\t\t\t$overdue = 0;\r\n\t\t\tif($step_complete == 0 and ($date_due < $current_time)) { $overdue = 1; }\r\n\t\t\t\r\n\t\t\t//[$pet_id]\r\n\t\t\t$milestones_arr['full'][$step_id] = array \r\n\t\t\t(\r\n\t\t\t\t'step_id' \t => ''.$step_id.'',\r\n\t\t\t\t'step_title' => ''.$step_title.'',\r\n\t\t\t\t'step_date_due' => ''.$date_due.'',\r\n\t\t\t\t'step_status_id' => ''.$step_status_id.'',\r\n\t\t\t\t'step_status' => ''.$step_status.'',\r\n\t\t\t\t'step_complete' => ''.$step_complete.'',\r\n\t\t\t\t'overdue' \t=> ''.$overdue.'',\r\n\t\t\t\t'step_function' => ''.$step_function.''\r\n\t\t\t);\r\n\t\t\t\r\n\t\t\t$milestones_arr['stats'][$step_function]['complete'] = $step_complete;\r\n\t\t}\r\n\t\t\r\n\t\tmaster::$mstoneStats = $milestones_arr['stats'];\r\n\t}\r\n\t\treturn $milestones_arr;\r\n\t}", "title": "" }, { "docid": "3335b4f2c6b398d8005a022fa7fb51b8", "score": "0.48798132", "text": "function on_mth_despatch(){\n\n // No of days calculation from the user input date rage\n $mines=array(\"KRB\", \"MBR\",\"BOL\", \"BAR\",\"TAL\",\"KAL\",\"GUA\",\"MPR\");\n $yymm = textboxValue('yymm');\n $lyr_mth =strval((int)substr($yymm,0,4)-1).substr($yymm,4,2);\n $despatchArray =array_fill(0, 9, array_fill(0,6, 0));\n // Lump & Fines App for the month\n $sql_mth_l_p =\"SELECT unit, comm, SUM(plan_qty) as TApp FROM u_ds_plan WHERE ( yymm='$yymm') GROUP BY unit,comm\";\n $result=mysqli_query($GLOBALS['con'],$sql_mth_l_p);\n if(mysqli_num_rows($result)>0){\n while($row=mysqli_fetch_assoc($result)){\n // // echo $row_l_qty['cust'].\" \" .$row_l_qty['unit']. \" \" .$row_l_qty['l_qty']. \" <br />\";\n if( $row['comm']=='L'){\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $despatchArray[$j][0] =+$row['TApp']; \n $despatchArray[8][0]=$despatchArray[8][0]+$row['TApp']; \n }}}\n else{\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $despatchArray[$j][3] =+$row['TApp']; \n $despatchArray[8][3]=$despatchArray[8][3]+$row['TApp']; \n }\n }\n } } \n }else{ echo \"Error: \" . $sql_mth_l_p . \"<br>\" . $GLOBALS['con']->error; }\n\n \n // Lump & Fines & TotalAct for the month\n $sql_mth_l =\"SELECT unit, comm, SUM(act_qty) as CumDespatch FROM u_ds_mth WHERE (yymm='$yymm') GROUP BY unit, comm\";\n $result=mysqli_query($GLOBALS['con'],$sql_mth_l);\n if(mysqli_num_rows($result)>0){\n while($row=mysqli_fetch_assoc($result)){\n if( $row['comm']=='L'){\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $despatchArray[$j][1] =+$row['CumDespatch']; \n $despatchArray[8][1]=$despatchArray[8][1]+$row['CumDespatch']; \n }}}\n else{\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $despatchArray[$j][4] =+$row['CumDespatch']; \n $despatchArray[8][4]=$despatchArray[8][4]+$row['CumDespatch']; \n }\n }\n } } \n }else{ echo \"Error: \" . $sql_mth_l . \"<br>\" . $GLOBALS['con']->error; }\n\n // CPLY Cumulative despatch \n $sql_lyr_mth_l =\"SELECT unit, comm, SUM(act_qty) as cplyDespatch FROM u_ds_mth WHERE (yymm='$lyr_mth') GROUP BY unit, comm\";\n $result=mysqli_query($GLOBALS['con'],$sql_lyr_mth_l);\n if(mysqli_num_rows($result)>0){\n while($row=mysqli_fetch_assoc($result)){\n // // echo $row_l_qty['cust'].\" \" .$row_l_qty['unit']. \" \" .$row_l_qty['l_qty']. \" <br />\";\n if( $row['comm']=='L'){\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $despatchArray[$j][2] =+$row['cplyDespatch']; \n $despatchArray[8][2]=$despatchArray[8][2]+$row['cplyDespatch']; \n }}}\n else{\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $despatchArray[$j][5] =+$row['cplyDespatch']; \n $despatchArray[8][5]=$despatchArray[8][5]+$row['cplyDespatch']; \n }\n }\n } } \n }else{\n echo \"Error: \" . $sql_lyr_mth_l . \"<br>\" . $GLOBALS['con']->error;\n }\n//print_r($despatchArray);\n return $despatchArray;\n \n \n }", "title": "" }, { "docid": "7be1c565b2dcd4109bb21f4d6b8ca758", "score": "0.4879015", "text": "function unfinished_rounds() {\n global $db;\n $stmt = $db->query('SELECT roundid, classid FROM Rounds'\n .' WHERE NOT EXISTS(SELECT 1 FROM RaceChart'\n .' WHERE RaceChart.roundid = Rounds.roundid)'\n .' OR EXISTS(SELECT 1 FROM RaceChart'\n .' WHERE RaceChart.roundid = Rounds.roundid'\n .' AND finishtime IS NULL AND finishplace IS NULL)');\n $result = array();\n foreach ($stmt as $row) {\n $result[$row[0]] = $row[1];\n }\n return $result;\n}", "title": "" }, { "docid": "d062bd3ac253bd90802151ba85d60342", "score": "0.48444274", "text": "function _analysed() {\n $rows = array();\n $processed = array();\n $stats = array();\n $perbl = array();\n $perbl_old = array();\n $blns = array('i02', 'i03', 'i04', 'i04-1', 'i24');\n \n $st = $this->has_arg('iDisplayStart') ? $this->arg('iDisplayStart') : 0;\n $len = $this->has_arg('iDisplayLength') ? $this->arg('iDisplayLength') : 10;\n \n $ap = array();\n $app = array('Auto Processed' => 0, 'Manual' => 0);\n \n foreach (array('No Results', 'No Match', 'Mismatch', 'Matched') as $k) $stats[$k] = 0;\n \n if (file_exists('tables/pdbs.json')) {\n $pdbs = json_decode(file_get_contents('tables/pdbs.json'));\n $tot = sizeof(get_object_vars($pdbs));\n \n foreach ($pdbs as $pdb => $d) {\n if (strtotime($d->YEAR) < strtotime('2010-05-01')) continue;\n \n $s = '';\n if ($d->RESULTS == 0) $s = 'No Results';\n if ($d->RESULTS > 0 && !$d->BLMATCH) $s = 'No Match';\n if ($d->RESULTS > 0 && !$d->BLMATCH && $d->UMATCH) $s = 'Mismatch';\n if ($d->BLMATCH) $s = 'Matched';\n\n \n list($y) = explode('-', $d->YEAR);\n if (!array_key_exists($y, $ap)) {\n $ap[$y] = array('Auto Processed' => 0, 'Manual' => 0);\n }\n \n if ($d->BLMATCH && $d->DIST < ($this->has_arg('dist') ? $this->arg('dist') : 0.2)) {\n $app['Auto Processed']++;\n $ap[$y]['Auto Processed']++;\n } else {\n $app['Manual']++;\n $ap[$y]['Manual']++;\n }\n \n \n \n #if ($s == 'Matched') array_push($processed, $d->PDB);\n if ($s != 'No Results') array_push($processed, $d->PDB);\n \n $stats[$s]++;\n \n $row = array('<a href=\"/cell/pdb/'.$d->PDB.'\">'.$d->PDB.'</a> <a class=\"ext\" href=\"http://www.rcsb.org/pdb/explore/explore.do?structureId='.$d->PDB.'\">PDB</a>', $d->YEAR, strtolower(str_replace('DIAMOND BEAMLINE ', '', $d->BL)), ($d->BLMATCH ? 'Yes' : 'No'), ($d->UMATCH ? 'Yes' : 'No'), $d->CLOSEST.($d->CLOSEST ? (' ('.number_format($d->DIST,2).')'):''), implode(', ',$d->BLS), $d->RESULTS, $s);\n \n if ($this->has_arg('sSearch')) {\n if (strpos(strtolower($d->PDB), strtolower($this->arg('sSearch'))) !== false || strpos(strtolower($s), strtolower($this->arg('sSearch'))) !== false) array_push($rows, $row);\n } else array_push($rows, $row);\n \n if ($d->BLMATCH || $d->UMATCH) {\n list($y) = explode('-', $d->YEAR);\n\n if (preg_match('/(\\w\\d\\d(-\\d)?)/', $d->BL, $m)) {\n $blid = array_search(strtolower($m[0]), $blns);\n \n #print_r(array($d->BL, $blid, $m));\n \n if ($blid !== false) {\n if (!array_key_exists($y, $perbl_old)) $perbl_old[$y] = array();\n if (!array_key_exists($blid, $perbl_old[$y])) $perbl_old[$y][$blid] = 0;\n $perbl_old[$y][$blid]++;\n }\n }\n \n if ($d->CLOSEST) {\n $b = $d->CLOSEST;\n $blid = array_search($b, $blns);\n \n if (!array_key_exists($y, $perbl)) $perbl[$y] = array();\n if (!array_key_exists($blid, $perbl[$y])) $perbl[$y][$blid] = 0;\n $perbl[$y][$blid]++;\n }\n }\n }\n } else $tot = 0;\n \n if ($this->has_arg('iSortCol_0')) {\n $v = $this;\n usort($rows, function($a, $b) use ($v) {\n $c = $v->arg('iSortCol_0');\n $d = $v->has_arg('sSortDir_0') ? ($v->arg('sSortDir_0') == 'asc' ? 1 : 0) : 0;\n \n if (gettype($a[$c]) == 'string') return $d ? strcmp($a[$c],$b[$c]) : strcmp($b[$c], $a[$c]);\n else return $d ? ($a[$c] - $b[$c]) : ($b[$c] - $a[$c]);\n });\n }\n \n $this->_output(array('iTotalRecords' => $tot,\n 'iTotalDisplayRecords' => sizeof($rows),\n 'apstats' => $ap,\n 'appie' => $app,\n 'stats' => $stats,\n 'perbl' => $perbl,\n 'perbl_old' => $perbl_old,\n 'processed' => $processed,\n 'aaData' => array_slice($rows, $st, $len),\n ));\n }", "title": "" }, { "docid": "e6372d84d32bedda006b8b3dab9047ea", "score": "0.4819091", "text": "function readTheLogFile() {\n \n $filePath = $_SERVER['DOCUMENT_ROOT'].ROOT_PATH.\"/uploads/\".str_replace(array(\"/\", \"\\\\\"), \"\", $_GET['file']);\n $logFile = fopen($filePath, \"r\");\n if(!$logFile) {\n return false;\n }\n \n // set the boundaries the user requested\n $userStartTime = $_GET['startTime'] * 60;\n $userEndTime = $_GET['endTime'] * 60;\n \n $nowLogging = false;\n $maxValue = 0;\n $maxValuePoint = \"\";\n $maxValueText = \"\";\n $startTime = 0;\n $time = array();\n $watts = array();\n $watthours = array();\n $nextMinute = \"\";\n $nextHour = \"\";\n $prevMinute = \"\";\n \n $numberOfLines = count(file($filePath));\n $currentLine = 0;\n \n while(!feof($logFile)) {\n \n $currentLine++; \n writeProgressInfo(\"Reading your log file...\",1+intval((24*($currentLine/$numberOfLines)))); \n \n // column 1 is the time\n // column 6 is the current output\n // column 9 is the total output\n $row = fgetcsv($logFile,0,chr(9));\n if(isset($row[6])) {\n if($row[6] > 0 OR $nowLogging) {\n // time is stored in the log in 00:00:00 format\n $timeHour = intval(substr($row[1],0,2));\n $timeMin = substr($row[1],3,2);\n \n // check if the time is within the boundaries specified by the user\n $currentMinutes = ($timeHour*60)+$timeMin;\n if($currentMinutes <= $userStartTime OR $currentMinutes >= $userEndTime) {\n continue;\n }\n \n if($nowLogging AND $timeMin != $prevMinute AND $timeMin != $nextMinute) { // $timeMin must be more than one minute ahead of the previous minute (just one minute ahead would have been caught above) \n // the log must have an interval greater than 1 minute...so we need to interpolate\n $timeToFill = array();\n while($nextMinute < $timeMin) {\n $timeToFill[] = $nextHour.\":\".$nextMinute;\n list($nextMinute, $nextHour) = getNextMinAndHour($nextMinute,$nextHour);\n }\n $currentWatts = $row[6];\n $currentWattHours = $row[9];\n $previousWatts = $watts[count($watts)-1];\n $previousWattHours = $watthours[count($watthours)-1];\n $wattIncrements = ($currentWatts - $previousWatts) / (count($timeToFill)+1); // +1 because there's also the current value we're going to log, not just the ones we're filling up\n $wattHourIncremenets = ($currentWattHours - $previousWattHours) / (count($timeToFill)+1);\n foreach($timeToFill as $thisTime) {\n $previousWatts = $previousWatts + $wattIncrements;\n $watts[] = $previousWatts;\n $previousWattHours = $previousWattHours + $wattHourIncremenets;\n $watthours[] = $previousWattHours;\n $time[] = $thisTime;\n }\n }\n if(!$nowLogging OR $timeMin == $nextMinute) { // log the value from the file for the current minute\n $prevMinute = $timeMin;\n list($nextMinute, $nextHour) = getNextMinAndHour($timeMin,$timeHour);\n list($maxValue, $maxValuePoint, $maxValueText, $time, $watts, $watthours, $nowLogging, $startTime) = assignDataValues($timeHour, $timeMin, $row, $maxValue, $maxValuePoint, $maxValueText, $time, $watts, $watthours, $nowLogging, $startTime);\n }\n }\n }\n }\n \n // go backwards through the data and remove records until we get to the last entry with data\n for($i=count($time)-1;$i>0;$i--) {\n if($watts[$i] == 0) {\n unset($time[$i]);\n unset($watts[$i]);\n unset($watthours[$i]);\n } else {\n break;\n }\n }\n \n // add in blank data at the beginning if necessary to meet the user's start/end time requirements\n for($i=$startTime-1;$i>$userStartTime;$i--) {\n array_unshift($time, turnTotalMinsIntoTime($i));\n array_unshift($watts, 0);\n array_unshift($watthours, 0);\n }\n\n // add in blank data at the end\n $lastWattHourValue = $watthours[count($watthours)-1];\n $endTime = $time[count($time)-1]; // last array value\n $endTimeParts = explode(\":\",$endTime);\n $endTimeHour = $endTimeParts[0];\n $endTimeMin = substr($endTimeParts[1],0,2);\n $endTimeTotalMin = ($endTimeHour * 60) + $endTimeMin;\n $arrayKey = count($time); // when cutting off the final keys with zero values above, the \"counter\" for the array is not reset, so we need to manually assign these to the right location, rather than using []\n for($i=$endTimeTotalMin+1;$i<$userEndTime;$i++) {\n $time[$arrayKey] = turnTotalMinsIntoTime($i);\n $watts[$arrayKey] = 0;\n $watthours[$arrayKey] = $lastWattHourValue;\n $arrayKey++;\n }\n $dailyTotalPoint = $time[count($time)-1]; // used for label on graph\n $dailyTotalText = number_format($watthours[count($watthours)-1]); // used for label on graph\n \n return array($time, $watts, $watthours, $maxValuePoint, $maxValueText, $dailyTotalPoint, $dailyTotalText);\n \n}", "title": "" }, { "docid": "9526fdde325d8c5a8b03479eb7669be2", "score": "0.48021638", "text": "function cutRows($adsConfig) {\n $gridWidth = 3;\n $gridHeight = 16; //10;\n\n $g = 0;\n $adIndex = 0;\n $rowIndex = 0;\n $rows = array();\n\n while($g < $gridWidth * $gridHeight) {\n $adAtRow = floor($adsConfig[$adIndex][\"start\"] / $gridWidth);\n $adAtCol = $adsConfig[$adIndex][\"start\"] % $gridWidth;\n //echo \"adIndex=$adIndex, adAt($adAtCol, $adAtRow)\\n\";\n\n $gridRow = floor($g / $gridWidth);\n //$gridCol = $g % $gridWidth;\n //echo \"g=$g; gridRow = $gridRow\\n\";\n\n if ($gridRow == $adAtRow) {\n //echo \"has ad in this row\\n\";\n $beforeAd = $adAtCol;\n $adWidth = $adsConfig[$adIndex][\"width\"];\n $afterAd = $gridWidth - $beforeAd - $adWidth;\n\n $adProp = $adsConfig[$adIndex];\n //echo \"($beforeAd, $adWidth, $afterAd)\\n\\n\";\n $g += $gridWidth * $adsConfig[$adIndex][\"height\"];\n $adIndex++;\n } else {\n //echo \"don't have ad in this row\\n\";\n $beforeAd = $gridWidth;\n $adWidth = 0;\n $afterAd = 0;\n $adProp = null;\n //echo \"($beforeAd, $adWidth, $afterAd)\\n\\n\";\n $g += $gridWidth;\n }\n\n $rows[$rowIndex] = array($beforeAd, $adWidth, $afterAd, $adProp);\n $rowIndex++;\n\n\n }\n\n print_r($rows);\n /*$rows = array(\n array(2,1,0),\n array(3,0,0),\n array(1,1,1),\n array(0,1,2),\n array(0,2,1),\n array(1,2,0),\n );*/\n return $rows;\n}", "title": "" }, { "docid": "a2d4ebace1cdd553e865f07ffd8205b7", "score": "0.4799834", "text": "function reportTimeWrap($result, $optionTime) {\n\t?>\n\t<table>\n\t\t<thead>\n\t\t\t<tr>\n\t\t\t\t<td></td>\n\t\t\t\t<?php\n\t\t\t\t\tif ($optionTime == \"H\") {\n\t\t\t\t\t\tfor ($i = 0; $i < 24; $i++) {\n\t\t\t\t\t\t\t?><td><b><?php echo $i ?>h</b></td><?php\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t?><td><b>24h (das 6h às 6h)</b></td><?php\n\t\t\t\t\t}\n\t\t\t\t?>\n\t\t\t</tr>\n\t\t</thead>\n\t\t<tbody>\n\t\t\t<?php\n\t\t\t$rows = mysql_num_rows($result);\n\n\t\t\tif ($rows > 0) {\n\t\t\t\t$firstDay = date(\"z\", mysql_result($result, 0, \"timestamp\"));\n\t\t\t\t$timestamp = mysql_result($result, 0, \"timestamp\");\n\t\t\t\t$lastDay = date(\"z\", mysql_result($result, $rows - 1, \"timestamp\"));\n\n\t\t\t\t$currentDay = $firstDay;\n\t\t\t\t$currentRow = 0;\n\t\t\t\t$masterValue = 0;\n\n\t\t\t\tfor ($i = 0; $i < ($lastDay - $firstDay + 2); $i++) {\n\n\t\t\t\t\t// Increment the number of days\n\t\t\t\t\tif ($i != 0) {\n\t\t\t\t\t\t$currentDay += 1;\n\t\t\t\t\t\t$timestamp += 86400;\n\t\t\t\t\t}\n\t\t\t\t?>\n\t\t\t\t\n\t\t\t\t<tr value=\"<?php if ($currentRow < $rows) { echo mysql_result($result, $currentRow, \"id\"); } else { echo \"0\"; } ?>\">\n\t\t\t\t\t<td <?php if ($optionTime == \"D\") { ?>class=\"crop\"<?php } ?>>\n\t\t\t\t\t\t<b><?php if ($optionTime == \"D\") { echo date(\"j/n\", $timestamp - 86400); } else { echo date(\"j/n\", $timestamp); } ?></b>\n\t\t\t\t\t</td>\n\t\t\t\t\t\n\t\t\t\t\t<?php\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor ($j = 0; $j < 24; $j++) {\n\t\t\t\t\t\t\tif ($currentRow < $rows\n\t\t\t\t\t\t\t\t&& date(\"z\", mysql_result($result, $currentRow, \"timestamp\")) == $currentDay \n\t\t\t\t\t\t\t\t&& date(\"G\", mysql_result($result, $currentRow, \"timestamp\")) == $j) {\n\t\t\t\t\t\t\t\tif ($optionTime == \"H\") {\n\t\t\t\t\t\t\t\t\t?><td class=\"data\"><?php echo mysql_result($result, $currentRow, \"value\") ?></td><?php\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$masterValue += mysql_result($result, $currentRow, \"value\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$currentRow++;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif ($optionTime == \"H\") {\n\t\t\t\t\t\t\t\t\t?><td>0</td><?php\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif ($optionTime == \"D\" && $j == 5) {\n\t\t\t\t\t\t\t\tif ($masterValue > 0) {\n\t\t\t\t\t\t\t\t\t?><td class=\"data inner\"><?php echo $masterValue ?></td><?php\n\t\t\t\t\t\t\t\t\t$masterValue = 0;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t?><td class=\"data inner\">0</td><?php\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\n\t\t\t\t\t?>\n\n\t\t\t\t</tr>\n\t\t\t\t\n\t\t\t<?php\n\t\t\t\t}\n\t\t\t}\t\n\t\t\t?>\n\t\t</tbody>\n\t</table>\n\t<?php\n}", "title": "" }, { "docid": "43bb15be2ff7e5a952299d08440c7659", "score": "0.47997516", "text": "function gridHeatMap() {\n\t\n\t\taddToDebugLog(\"gridHeatMap(), Function Entry - no parameters, INFO\");\n\t\n\t\techo dechex(255);\n\t\t\n\t\techo \"<table cellpadding=0 cellspacing=0 border=1>\";\n\t\n\t\t$rows = 50;\n\t\t$cols = 50;\n\t\n\t\t$start_y = 50;\n\t\t$start_x = 0;\n\t\n\t\t// Get total journeys to know what the max is\n\t\t$sql = \"SELECT count(*) FROM hackcess.journey;\";\n\t\t$result = search($sql);\n\t\t$total_journies = $result[0][0];\t\t\n\t\t\n\t\tfor ($y = 0; $y < $rows; $y++) {\n\t\n\t\t\t$current_y = $start_y - $y;\n\t\t\tif ($current_y <= 50 && $current_y > 0) {\n\t\t\t\techo \"<tr height=30px>\";\n\t\t\t}\n\t\n\t\t\tfor ($x = 1; $x <= $cols; $x++) {\n\t\t\t\t$current_x = $start_x + $x;\n\t\t\t\t\n\t\t\t\t// Get count of grids\n\t\t\t\t$sql = \"SELECT count(*) FROM hackcess.grid WHERE grid_x = \" . $current_x . \" AND grid_y = \" . $current_y . \";\";\n\t\t\t\t$result = search($sql);\n\t\t\t\t$count = $result[0][0];\n\t\t\t\tif ($count == 0) {\n\t\t\t\t\t$color = \"#fff\";\n\t\t\t\t} else {\n\t\t\t\t\t// 0-128 goes from #000000 to #ff0000\n\t\t\t\t\t// 129-255 goes from #ff0000 to #ffffff\n\t\t\t\t\t// http://www.w3schools.com/tags/ref_colorpicker.asp\n\t\t\t\t\t\n\t\t\t\t\t$color_dec = round(($count / $total_journies) * 255, 0);\n\t\t\t\t\t\n\t\t\t\t\tif ($color_dec > 128) {\n\t\t\t\t\t\t$color_hex = str_pad(dechex($color_dec), 2, \"0\");\n\t\t\t\t\t\t$color = \"#\" . $color_hex . \"0000\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$color_hex = str_pad(dechex(255-$color_dec), 2, \"0\");\n\t\t\t\t\t\t$color = \"#ff\" . $color_hex . $color_hex;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\techo \"<td class='\" . $class . \"' bgcolor=\" . $color . \" width=30px title='\" . $count . \": \" . $color . \" (\" . $current_x . \",\" . $current_y . \")' style='text-align: center; vertical-align: middle;'>\";\n\t\t\t\tif ($count > 0) {\n\t\t\t\t\techo $count;\n\t\t\t\t}\n\t\n\t\t\t}\n\t\t\techo \"</tr>\";\n\t\t}\n\t\techo \"</table>\";\t\n\t\t\n\t}", "title": "" }, { "docid": "e8d5b72b3e669562b5e8608d631a82dd", "score": "0.47958615", "text": "function phase_three_row($row) {\n $new_row = $row;\n for ($i = 1; $i < 15; $i++) {\n $new_row[\"Q\" . $i] = \"\";\n }\n $new_row[\"Q21\"] = \"\";\n return $new_row;\n}", "title": "" }, { "docid": "6414ab9cd838ef0ce105f4f37fb56371", "score": "0.47909018", "text": "public function getLeaderBoardData($wherearray,$wherearrayDayRangeType){\n\n $percentBookedCount[\"booked_hours_count\"] = $this\n ->getHighestBookedAppointments($wherearray)\n ->result_array();\n $percentBookedCount[\"scheduled_hours_count\"] = $this\n ->getHighestEmployeeScheduledHours($wherearrayDayRangeType)\n ->result_array();\n\n if(!empty($percentBookedCount[\"booked_hours_count\"]) && !empty($percentBookedCount[\"scheduled_hours_count\"]))\n {\n if(COUNT($percentBookedCount['booked_hours_count']) > COUNT($percentBookedCount[\"scheduled_hours_count\"]))\n {\n foreach($percentBookedCount['booked_hours_count'] as $key => $booked_hours_count_value)\n {\n \n $search_key = array_search($booked_hours_count_value['emp_iid'], array_column($percentBookedCount['scheduled_hours_count'], 'emp_iid'));\n //echo $search_key;exit;\n\n if($search_key !== false)\n {\n if(isset($percentBookedCount['scheduled_hours_count'][$search_key]['nhours']) && !empty($percentBookedCount['scheduled_hours_count'][$search_key][\"nhours\"]))\n {\n \n $totalHoursBookedForSalon = ($booked_hours_count_value['nstartlen'] + $booked_hours_count_value['nfinishlen']);\n\n $highestPercentageBooked['percent_booked'][] = ($totalHoursBookedForSalon/$percentBookedCount['scheduled_hours_count'][$search_key]['nhours'])*100;\n\n $highestPercentageBooked['iempname'][] = trim($booked_hours_count_value[\"name\"]);\n $highestPercentageBooked['iid'][] = $booked_hours_count_value['emp_iid'];\n }\n }\n }\n }\n else if(COUNT($percentBookedCount['scheduled_hours_count']) > COUNT($percentBookedCount['booked_hours_count']))\n {\n foreach($percentBookedCount['scheduled_hours_count'] as $key => $scheduled_hours_count_value)\n {\n \n $search_key = array_search($scheduled_hours_count_value[\"emp_iid\"], array_column($percentBookedCount['booked_hours_count'], 'emp_iid'));\n //echo $search_key;exit;\n \n if($search_key !== false)\n {\n if(isset($scheduled_hours_count_value['nhours']) && !empty($scheduled_hours_count_value['nhours']))\n {\n \n $totalHoursBookedForSalon = ($percentBookedCount['booked_hours_count'][$search_key]['nstartlen'] + $percentBookedCount[\"booked_hours_count\"][$search_key]['nfinishlen']);\n\n $highestPercentageBooked['percent_booked'][] = ($totalHoursBookedForSalon/$scheduled_hours_count_value[\"nhours\"])*100;\n\n $highestPercentageBooked['iempname'][] = trim($scheduled_hours_count_value[\"name\"]);\n $highestPercentageBooked['iid'][] = $scheduled_hours_count_value['emp_iid'];\n }\n }\n }\n }\n else\n {\n foreach($percentBookedCount[\"scheduled_hours_count\"] as $key => $scheduled_hours_count_value)\n {\n \n $search_key = array_search($scheduled_hours_count_value[\"emp_iid\"], array_column($percentBookedCount[\"booked_hours_count\"], 'emp_iid'));\n //echo $search_key;exit;\n \n if($search_key !== false)\n {\n if(isset($scheduled_hours_count_value[\"nhours\"]) && !empty($scheduled_hours_count_value[\"nhours\"]))\n {\n \n //$totalHoursBookedForSalon = ($percentBookedCount[\"booked_hours_count\"][$search_key][\"nstartlen\"] + $percentBookedCount[\"booked_hours_count\"][$search_key][\"ngaplen\"] + $percentBookedCount[\"booked_hours_count\"][$search_key][\"nfinishlen\"])*60;\n \n $totalHoursBookedForSalon = ($percentBookedCount[\"booked_hours_count\"][$search_key][\"nstartlen\"] + $percentBookedCount[\"booked_hours_count\"][$search_key][\"nfinishlen\"]);\n \n $highestPercentageBooked['percent_booked'][] = ($totalHoursBookedForSalon/$scheduled_hours_count_value[\"nhours\"])*100;\n \n $highestPercentageBooked['iempname'][] = trim($scheduled_hours_count_value[\"name\"]);\n $highestPercentageBooked['iid'][] = $scheduled_hours_count_value['emp_iid'];\n }\n }\n }\n \n }\n \n if(!empty($highestPercentageBooked['percent_booked']))\n {\n $high_key_value = array_search(max($highestPercentageBooked['percent_booked']), $highestPercentageBooked['percent_booked']);\n\n //pa($high_key_value);\n \n $returnResult['highest_percent_booked_value'] = $this->Common_model->appCloudNumberFormat($highestPercentageBooked['percent_booked'][$high_key_value], 2);\n\n $returnResult['highest_percent_booked_employee'] = $highestPercentageBooked['iempname'][$high_key_value];\n \n $returnResult['highest_percent_booked_employee_iid'] = $highestPercentageBooked['iid'][$high_key_value];\n }\n else\n {\n $returnResult['highest_percent_booked_value'] = \"0.00\";\n $returnResult['highest_percent_booked_employee'] = \"\";\n $returnResult['highest_percent_booked_employee_iid'] = \"\";\n }\n }\n else\n {\n $returnResult['highest_percent_booked_value'] = \"0.00\";\n $returnResult['highest_percent_booked_employee'] = \"\";\n $returnResult['highest_percent_booked_employee_iid'] = \"\";\n }\n\n return $returnResult;\n }", "title": "" }, { "docid": "ef4513ac15df01d6365a7aa821b49729", "score": "0.47788557", "text": "function accumulate_chart_arrays($time_from, $time_to, $time_increment, \n $Movement_array, &$accumulator_AB, &$accumulator_BA) {\n\n foreach ($Movement_array as $Movement_key) {\n // reset counters\n $i = 0;\n $time_actual = $time_from;\n while (strtotime($time_actual) <= (strtotime($time_to) - $time_increment)) {\n // calculate next time value\n $time_next = date('Y-m-d H:i:s', (strtotime($time_actual) + $time_increment));\n // AB movement in current time step?\n foreach ($Movement_key->AB as $AB_p => $AB_v){\n if ((strtotime($AB_v[1]) > strtotime($time_actual)) && (strtotime($AB_v[1]) <= strtotime($time_next))){\n $accumulator_AB[$i][] = $AB_v[2]; // diff\n }\n }\n // BA movement in current time step?\n foreach ($Movement_key->BA as $BA_p => $BA_v){\n if ((strtotime($BA_v[1]) > strtotime($time_actual)) && (strtotime($BA_v[1]) <= strtotime($time_next))){\n $accumulator_BA[$i][] = $BA_v[2]; // diff\n }\n }\n // moving to next time step\n // increment counters\n $i += 1;\n $time_actual = $time_next;\n }\n }\n}", "title": "" }, { "docid": "cf091682498b692f0f7794bcdeccdbb5", "score": "0.47759056", "text": "function addTime($inputTime, &$totalH, &$totalM, &$totalS, $CurrentDistance, &$printArray) //$inputH,$inputM,$inputS\n{\n\t$s= substr($inputTime, (strlen($inputTime)-2)); // makes seconds the last 2 chars\n $inputTime=substr($inputTime,0,-3);//$inputTime=str_replace((\":\" . $s), \"\", $inputTime);\t//gets rid of seconds and :\n\t$m= substr($inputTime, (strlen($inputTime)-2)); \n\t$inputTime=substr($inputTime,0,-3);//$inputTime=str_replace((\":\" . $m), \"\", $inputTime);\t//gets rid of minutes and :\n\t$h= $inputTime; \n\t\n\t//PRINT\n\tarray_push($printArray, \"<br>addTime, inputTime: $inputTime (before adding) H: $totalH M: $totalM S: $totalS Dist: $CurrentDistance. ADDING: $h:$m:$s after multiplying it by $CurrentDistance<br>\");\n\t\n\t//USE THIS FOR TOTALS? add each individual piece\n\t$totalH+=($h*$CurrentDistance);\n\t$totalM+=($m*$CurrentDistance);\n\t$totalS+=($s*$CurrentDistance);\n\t\n\t//PRINT\n\tarray_push($printArray, \"Time Totals(after adding): H: $totalH M: $totalM S: $totalS X \". (($totalM*60)+$totalS)).\"<br><br>\";\n\tarray_push($printArray, \"$h*$CurrentDistance=\". ($h*$CurrentDistance).\" $m*$CurrentDistance= \".($m*$CurrentDistance) .\" $s*$CurrentDistance=\".($s*$CurrentDistance).\"<br>\");\n\t\n\t\n\t//Then send updated totals back to user\t\n\treturn array($totalH,$totalM,$totalS);\n}", "title": "" }, { "docid": "ec3b282fc89f9a62be9c602854b919bd", "score": "0.4758292", "text": "function procMeetArray($lineSplit) {\n\t// Turn the start/end times from 03:45 PM to 154500\n\t// Hours must be mod'd by 12 so 12:00 PM does not become\n\t// 24:00 and 12 AM does not become 12:00\n $timePreg = \"/(\\d\\d):(\\d\\d) ([A-Z]{2})/\";\n\tif(!preg_match($timePreg, $lineSplit[10], $start) || !preg_match($timePreg, $lineSplit[11], $end)) {\n\t\t// Odds are the class is TBD (which means we can't represent it)\n\t\treturn false;\n\t}\n\t$lineSplit[10] = (($start[3] == 'PM') ? ($start[1] % 12) + 12 : $start[1] % 12) . $start[2] . \"00\";\n\t$lineSplit[11] = (($end[3] == 'PM') ? ($end[1] % 12) + 12 : $end[1] % 12) . $end[2] . \"00\";\n\n\t// Section number needs to be padded to at least 2 digits\n\t$lineSplit[4] = str_pad($lineSplit[4], 2, '0', STR_PAD_LEFT);\n\treturn $lineSplit;\n}", "title": "" }, { "docid": "dac941eaf68cb52f491b0f1c890084ef", "score": "0.47457492", "text": "public function run()\n {\n $equipment = Equipment::find(1);\n $equipClass = $equipment->EquipmentClassList()->first();\n\n for($i = 0; $i < 10; $i++){\n\n $downAt = date(\"H:i\", strtotime(rand(7, 13).\":00\"));\n $upAt = Carbon::parse($downAt)->addMinute(rand(100,300))->format(\"H:i\");\n\n $time_diff = date_diff( date_create($downAt), date_create($upAt) );\n $downTime = round(($time_diff->h * 60 + $time_diff->i) / 60, 2) ;\n $parkTime = 12 - $downTime;\n\n if( date('H', strtotime($downAt)) >= 7 && date('H', strtotime($downAt)) < 9 )\n $start_of_shift = \"DM\";\n else\n $start_of_shift = \"AV\";\n\n $date = Carbon::now()->sub( (10-$i), 'day')->format('Y-m-d');\n\n DB::table('equip_update_logs')->insert([\n 'date' => $date,\n 'shift' => 'Day',\n 'smu' => '123456789',\n 'unit' => $equipment->unit,\n 'equipment_class' => $equipClass->billing_rate.' '.$equipClass->equipment_class_name,\n 'summary' => $equipClass->billing_rate,\n 'parked_hrs' => $parkTime,\n 'down_hrs' => $downTime,\n 'down_at' => $downAt,\n 'up_at' => $upAt,\n 'start_of_shift_status' => $start_of_shift,\n 'current_status' => 'AV',\n 'equipment_id' => $equipment->id,\n 'user_id' => 1,\n 'created_at' => Carbon::parse($date)\n ]);\n\n $i++;\n\n $date = Carbon::now()->sub( (10-$i), 'day')->format('Y-m-d');\n DB::table('equip_update_logs')->insert([\n 'date' => $date,\n 'shift' => 'Day',\n 'smu' => '1234567',\n 'unit' => $equipment->unit,\n 'equipment_class' => $equipClass->billing_rate.' '.$equipClass->equipment_class_name,\n 'summary' => $equipClass->billing_rate,\n 'down_at' => $downAt,\n 'start_of_shift_status' => \"DM\",\n 'current_status' => 'DM',\n 'equipment_id' => $equipment->id,\n 'user_id' => 1,\n 'created_at' => Carbon::parse($date),\n 'est_date_of_repair' => $date = Carbon::now()->add( ($i+3), 'day')->format('Y-m-d')\n ]);\n\n }\n }", "title": "" }, { "docid": "f38cab2def167d09b452c6b7ca47b003", "score": "0.47304857", "text": "public function populateMatchStandings(){\n\t\t $team = new Application_Model_Mapper_Team();\n\t\t //cath all teams\n\t\t $teamList=$team->fetchAll();\n\t\t $prosGoal= null;\n\t\t $agaistGoal=null;\n\t\t if(count($teamList)>0){\n\t\t \t foreach($teamList as $row){\n\t\t \t \t //begin team statistics by 0\n\t\t \t \t $row->setWins(0);\n\t\t \t \t $row->setLosses(0);\n\t\t \t \t $row->setPoints(0);\n\t\t \t \t $row->setDraws(0);\n\t\t \t \t //catch all matches by team\n\t\t $championship = $this->seachMatchByTeam($row->getId());\n\t\t foreach ($championship as $match) {\n\t\t //if a team is a visitor team goals of visitor team it is\n\t\t \t $prosGoal=$match['goalVisitorTeam'];\n\t\t \t $agaistGoal=$match['goalHomeTeam'];\n\t\t \t //if a team is a home team goals of home team it is\n\t\t \t if($match['idHomeTeam']==$row->getId()){\n\t\t \t \t $prosGoal=$match['goalHomeTeam'];\n\t\t \t \t $agaistGoal=$match['goalVisitorTeam'];\n\t\t \t }\n\t\t \t //if team win\n\t\t \t if($agaistGoal<$prosGoal){\n\t\t \t \t$row->setWins($row->getWins()+1);\n\t\t \t \t$row->setPoints($row->getPoints()+3);\n\t\t \t }//if team lost\n\t\t \t elseif($agaistGoal>$prosGoal){\n\t\t \t \t$row->setLosses($row->getLosses()+1);\n\t\t \t }//if team draw\n\t\t \t else{\n\t\t \t \t$row->setDraws($row->getDraws()+1);\n\t\t \t \t$row->setPoints($row->getPoints()+1);\n\t\t \t }\n\t\t }\n\t\t //update table team\n\t\t $team->updateTeam($row);\n\t\t \t }\n\t\t }\n\t}", "title": "" }, { "docid": "4fa44beb28a65762d5040c7eebc51191", "score": "0.4724284", "text": "public function run()\n {\n $schedules = [\n ['c_id' => '1', 'i_id' => 1, 'r_id' => 1, 'u_id' => 1, 's_id' => 28],\n ['c_id' => '1', 'i_id' => 2, 'r_id' => 2, 'u_id' => 2, 's_id' => 28],\n ['c_id' => '1', 'i_id' => 3, 'r_id' => 3, 'u_id' => 3, 's_id' => 28],\n ['c_id' => '2', 'i_id' => 4, 'r_id' => 4, 'u_id' => 1, 's_id' => 28],\n ['c_id' => '2', 'i_id' => 5, 'r_id' => 5, 'u_id' => 2, 's_id' => 28],\n ['c_id' => '2', 'i_id' => 1, 'r_id' => 6, 'u_id' => 3, 's_id' => 29],\n ['c_id' => '3', 'i_id' => 2, 'r_id' => 7, 'u_id' => 1, 's_id' => 29],\n ['c_id' => '3', 'i_id' => 3, 'r_id' => 8, 'u_id' => 2, 's_id' => 29],\n ['c_id' => '3', 'i_id' => 4, 'r_id' => 9, 'u_id' => 3, 's_id' => 29],\n ['c_id' => '4', 'i_id' => 5, 'r_id' => 10, 'u_id' => 1, 's_id' => 30],\n ['c_id' => '4', 'i_id' => 1, 'r_id' => 11, 'u_id' => 2, 's_id' => 30],\n ['c_id' => '4', 'i_id' => 2, 'r_id' => 12, 'u_id' => 3, 's_id' => 30],\n ['c_id' => '5', 'i_id' => 3, 'r_id' => 13, 'u_id' => 1, 's_id' => 31],\n ['c_id' => '5', 'i_id' => 4, 'r_id' => 14, 'u_id' => 2, 's_id' => 31],\n ['c_id' => '5', 'i_id' => 5, 'r_id' => 15, 'u_id' => 3, 's_id' => 31],\n ];\n foreach ($schedules as $key => $schedule) {\n DB::table('schedules')->insert($schedule);\n }\n }", "title": "" }, { "docid": "be6bc16eed016ca06e2955517d149ba9", "score": "0.4722964", "text": "public function run()\n {\n \tfor ($i=9; $i < 20; $i++) { \n \t\t# code...\n \t\tfor ($j=0; $j < 60; $j+=30) { \n \t\t\t# code...\n \t\t\t$fin = $j+30;\n \t\t\t$hrfin = $i;\n\n \t\t\tif($fin == 60){ \n \t\t\t\t$fin = 0;\n \t\t\t\t$hrfin++;\n \t\t\t}\n\t\t DB::table('blocks')->insert([\n\t\t 'startBlock' => \"$i:$j:00\",\n\t\t 'finishBlock' => \"$hrfin:$fin:00\",\n\t\t ]);\n \t\t}\n \t}\n }", "title": "" }, { "docid": "e4f4ed62fe5ef494c5ce2595a519561e", "score": "0.47214296", "text": "function build_guide(){\n $offset = 0;\n echo '<div>\n <h3 class=\"page-header\">What\\'s Currently On?</h3>\n <table class=\"table table-striped\">\n <thead>\n <th class=\"col-md-3\" scope=\"col\"><a href=\"#\">&#9664;</a></th>';\n for($i = 0; $i < 7; $i++){\n echo '<th scope=\"col\">' . getTime($offset) . '</th>';\n $offset = $offset + 30;\n }\n echo ' <th scope=\"col\"><a href=\"#\">&#9654;</a></th>\n </thead>\n <tbody>\n <tr>\n <td>\n <strong>CBS</strong>\n <span class=\"show h6\">Channel 2</span>\n </td>';\n buildRow('CBS');\n echo' </tr>\n <tr>\n <td>\n <strong>ABC</strong>\n <span class=\"show h6\">Channel 30</span>\n </td>';\n\n buildRow('ABC'); \n echo' </tr>\n <tr>\n <td>\n <strong>NBC</strong>\n <span class=\"show h6\">Channel 5</span>\n </td>';\n buildRow('NBC');\n echo' </tr>\n <tr>\n <td>\n <strong>FOX</strong>\n <span class=\"show h6\">Channel 4</span>\n </td>';\n buildRow('FOX');\n echo' </tr>\n <tr>\n <td>\n <strong>PBS</strong>\n <span class=\"show h6\">Channel 11</span>\n </td>';\n buildRow('PBS');\n echo' </tr>\n </tbody>\n </table>\n </div>';\n}", "title": "" }, { "docid": "a0d2b047687d7866ce23178a451f5d22", "score": "0.47211647", "text": "function calc_each_mood_chords_plays($con) {\n\n\t/************************************************************/\n\t/* */\n\t/* */\n\t/* */\n\t/* There are 6 different mood clusters. */\n\t/* */\n\t/* \t• C1: Amazed - Suprised */\n\t/* \t• C2: Happy - Pleased */\n\t/* \t• C3: Relaxing - Calm */\n\t/* \t• C4: Quite - Still */\n\t/* \t• C5: Sad - Lonely */\n\t/* \t• C6: Angry - Fearful */\n\t/* */\n\t/* */\n\t/* */\n\t/************************************************************/\n\n\t$moods = array();\n\n\tfor ($i = 0; $i < 6; $i++) {\n\t\t$mood_cluster = $i + 1;\n\n\t\t$qry = \"SELECT CHORD, COUNT(CHORD) AS C_PLAYS\n\t\t\t\tFROM CHORDS\n\t\t\t\tINNER JOIN SONGS\n\t\t\t\tON SONGS.ID = CHORDS.S_ID\n\t\t\t\tWHERE MOOD = '$mood_cluster'\n\t\t\t\tGROUP BY CHORD\n\t\t\t\tORDER BY S_ID\";\n\n\t\t$results = mysqli_query($con, $qry);\n\n\t\tif (mysqli_num_rows($results) > 0) {\n\n\t\t\t$j = 0;\n\t\t\t$moods[$i] = array();\n\t\t\t\n\n\t\t\twhile($row = mysqli_fetch_assoc($results)) {\n\t\t\t\t$chords = array($row['CHORD'] => $row['C_PLAYS']);\n\n\t\t\t\t$moods[$i][$j] = array();\n\t\t\t\t\n\t\t\t\tarray_push($moods[$i][$j], $chords);\n\t\t\t\t\n\t\t\t\t$j++;\n\t\t\t} // End While.\n\n\t\t\tmysqli_free_result($results);\n\t\t} // End if.\n\n\t} // End for.\n\t // \n\treturn $moods;\n}", "title": "" }, { "docid": "f98fc2e643871cda6f22fcca12d2c920", "score": "0.4708174", "text": "public function run()\n {\n\n\n \n $csv = array_map('str_getcsv', file('rigging.csv'));\n \n\n array_walk($csv, function(&$a) use ($csv) {\n \n $a = array_combine($csv[0], $a);\n });\n \n (array_shift($csv)); # remove column header\n //return var_dump($csv);\n if ($csv == NULL) {\n return \"CSV file isn't well Formatted\";\n }\n\n $fillable = new Equipment();\n $fillable = $fillable->getFillable();\n $calib = new Calibration();\n $calib = $calib->getFillable();\n $main = new Maintenance();\n $main = $main->getFillable();\n\n\n foreach ($csv as $value) {\n\t \t $equipment = new Equipment();\n if ($value['current_location'] = ' ') {unset($value['current_location']);}\n\t $equipment->fill(array_intersect_key($value, array_flip($fillable)));\n \n\t $equipment->save();\n\n if (isset($data['calibration_frequency'])) {\n $calibration = new Calibration();\n $calibration->fill(['equipment_id' => $equipment->id,'calibration_frequency'=>$value['calibration_frequency'],'last_calibrated'=>$value['last_calibrated'],'calibration_due_date'=>$value['calibration_due_date'],'calibration_type' =>$value['calibration_type'],'calibration_by' =>$value['calibration_by']]);\n $calibration->save();\n }\n\n if (isset($data['servicing_frequency'])) {\n $Maintenance = new Maintenance();\n $Maintenance->fill(['equipment_id' => $equipment->id,'servicing_frequency'=>$value['servicing_frequency'],'last_serviced'=>$value['last_serviced'],'servicing_due_date'=>$value['servicing_due_date'],'servicing_type' =>$value['servicing_type'],'serviced_by' =>$value['serviced_by']]);\n $Maintenance->save();\n }\n\t \n }\n\n\n\n\n $csv = array_map('str_getcsv', file('equipments1.csv'));\n \n\n array_walk($csv, function(&$a) use ($csv) {\n \n $a = array_combine($csv[0], $a);\n });\n \n (array_shift($csv)); # remove column header\n //return var_dump($csv);\n if ($csv == NULL) {\n return \"CSV file isn't well Formatted\";\n }\n\n $fillable = new Equipment();\n $fillable = $fillable->getFillable();\n $calib = new Calibration();\n $calib = $calib->getFillable();\n $main = new Maintenance();\n $main = $main->getFillable();\n\n\n foreach ($csv as $value) {\n $equipment = new Equipment();\n if ($value['current_location'] = ' ') {unset($value['current_location']);}\n $equipment->fill(array_intersect_key($value, array_flip($fillable)));\n \n $equipment->save();\n\n if (isset($data['calibration_frequency'])) {\n $calibration = new Calibration();\n $calibration->fill(['equipment_id' => $equipment->id,'calibration_frequency'=>$value['calibration_frequency'],'last_calibrated'=>$value['last_calibrated'],'calibration_due_date'=>$value['calibration_due_date'],'calibration_type' =>$value['calibration_type'],'calibration_by' =>$value['calibration_by']]);\n $calibration->save();\n }\n\n if (isset($data['servicing_frequency'])) {\n $Maintenance = new Maintenance();\n $Maintenance->fill(['equipment_id' => $equipment->id,'servicing_frequency'=>$value['servicing_frequency'],'last_serviced'=>$value['last_serviced'],'servicing_due_date'=>$value['servicing_due_date'],'servicing_type' =>$value['servicing_type'],'serviced_by' =>$value['serviced_by']]);\n $Maintenance->save();\n }\n \n }\n\n\n\n\n $csv = array_map('str_getcsv', file('equipments2.csv'));\n \n\n array_walk($csv, function(&$a) use ($csv) {\n \n $a = array_combine($csv[0], $a);\n });\n \n (array_shift($csv)); # remove column header\n //return var_dump($csv);\n if ($csv == NULL) {\n return \"CSV file isn't well Formatted\";\n }\n\n $fillable = new Equipment();\n $fillable = $fillable->getFillable();\n $calib = new Calibration();\n $calib = $calib->getFillable();\n $main = new Maintenance();\n $main = $main->getFillable();\n\n\n foreach ($csv as $value) {\n $equipment = new Equipment();\n if ($value['current_location'] = ' ') {unset($value['current_location']);}\n $equipment->fill(array_intersect_key($value, array_flip($fillable)));\n \n $equipment->save();\n\n if (isset($data['calibration_frequency'])) {\n $calibration = new Calibration();\n $calibration->fill(['equipment_id' => $equipment->id,'calibration_frequency'=>$value['calibration_frequency'],'last_calibrated'=>$value['last_calibrated'],'calibration_due_date'=>$value['calibration_due_date'],'calibration_type' =>$value['calibration_type'],'calibration_by' =>$value['calibration_by']]);\n $calibration->save();\n }\n\n if (isset($data['servicing_frequency'])) {\n $Maintenance = new Maintenance();\n $Maintenance->fill(['equipment_id' => $equipment->id,'servicing_frequency'=>$value['servicing_frequency'],'last_serviced'=>$value['last_serviced'],'servicing_due_date'=>$value['servicing_due_date'],'servicing_type' =>$value['servicing_type'],'serviced_by' =>$value['serviced_by']]);\n $Maintenance->save();\n }\n \n }\n\n\n $csv = array_map('str_getcsv', file('equipments3.csv'));\n \n\n array_walk($csv, function(&$a) use ($csv) {\n \n $a = array_combine($csv[0], $a);\n });\n \n (array_shift($csv)); # remove column header\n //return var_dump($csv);\n if ($csv == NULL) {\n return \"CSV file isn't well Formatted\";\n }\n\n $fillable = new Equipment();\n $fillable = $fillable->getFillable();\n $calib = new Calibration();\n $calib = $calib->getFillable();\n $main = new Maintenance();\n $main = $main->getFillable();\n\n\n foreach ($csv as $value) {\n $equipment = new Equipment();\n if ($value['current_location'] = ' ') {unset($value['current_location']);}\n $equipment->fill(array_intersect_key($value, array_flip($fillable)));\n \n $equipment->save();\n\n if (isset($data['calibration_frequency'])) {\n $calibration = new Calibration();\n $calibration->fill(['equipment_id' => $equipment->id,'calibration_frequency'=>$value['calibration_frequency'],'last_calibrated'=>$value['last_calibrated'],'calibration_due_date'=>$value['calibration_due_date'],'calibration_type' =>$value['calibration_type'],'calibration_by' =>$value['calibration_by']]);\n $calibration->save();\n }\n\n if (isset($data['servicing_frequency'])) {\n $Maintenance = new Maintenance();\n $Maintenance->fill(['equipment_id' => $equipment->id,'servicing_frequency'=>$value['servicing_frequency'],'last_serviced'=>$value['last_serviced'],'servicing_due_date'=>$value['servicing_due_date'],'servicing_type' =>$value['servicing_type'],'serviced_by' =>$value['serviced_by']]);\n $Maintenance->save();\n }\n \n }\n\n\n\n $csv = array_map('str_getcsv', file('consumables.csv'));\n \n\n array_walk($csv, function(&$a) use ($csv) {\n \n $a = array_combine($csv[0], $a);\n });\n \n (array_shift($csv)); # remove column header\n //return var_dump($csv);\n if ($csv == NULL) {\n return \"CSV file isn't well Formatted\";\n }\n\n $fillable = new Consumable();\n $fillable = $fillable->getFillable();\n\n\n foreach ($csv as $value) {\n $Consumable = new Consumable();\n $split = explode(' ', $value['quantity']);\n\n $value['quantity'] = str_replace(' ', '', $split[0]);\n $value['uom'] = str_replace(' ', '', $split[1]);\n $Consumable->fill(array_intersect_key($value, array_flip($fillable)));\n \n $Consumable->save();\n\n \n }\n\n\n\n $csv = array_map('str_getcsv', file('baskets.csv'));\n \n\n array_walk($csv, function(&$a) use ($csv) {\n \n $a = array_combine($csv[0], $a);\n });\n \n (array_shift($csv)); # remove column header\n //return var_dump($csv);\n if ($csv == NULL) {\n return \"CSV file isn't well Formatted\";\n }\n\n $fillable = new Basket();\n $fillable = $fillable->getFillable();\n\n\n foreach ($csv as $value) {\n $basket = new Basket();\n $basket->fill(array_intersect_key($value, array_flip($fillable)));\n \n $basket->save();\n\n \n }\n\n\n\n \n }", "title": "" }, { "docid": "5873000c10289f1e78366e03a0f85bfa", "score": "0.4706222", "text": "function add_html_for_each_player($arr)\n\t{\n\t\tforeach ($arr as $key=>$value)\n\t\t{\n\t\t\t//header\n\t\t\t$arr[$key] .= \",\".$key;\n\t\t\t$arr[$key] .= \"<table>\";\n\t\t\t\n\t\t\t//each player\n\t\t\t\n\t\t\t$arr[$key] .= \"<tr><th>Player</th><th>Pos</th><th></th><th>Points</th></tr>\";\n\t\t\t\n\t\t\t//sort the array by who's playing, then by the position slots\n\t\t\t$tempArr = Array();\n\t\t\t$i=0;\n\t\t\tforeach ($this->players as $player)\n\t\t\t{\n\t\t\t\t$tempArr[$i]['last_name'] = $player->last_name;\n\t\t\t\t$tempArr[$i]['slot'] = $player->proj_by_date[$key]['slot'];\n\t\t\t\t$tempArr[$i]['position'] = $player->position2;\n\t\t\t\t$tempArr[$i]['playingStatus'] = $player->proj_by_date[$key]['playingStatus'];\n\t\t\t\tif (number_format($player->proj_by_date[$key]['fantasyPoints']['total'], 2, '.', '') != 0)\n\t\t\t\t{\n\t\t\t\t\t$tempArr[$i]['fantasyPoints'] = number_format($player->proj_by_date[$key]['fantasyPoints']['total'], 2, '.', '');\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\tforeach ($tempArr as $key2 => $row) {\n\t\t\t\t$playingStatus[$key2] = $row['playingStatus']; \n\t\t\t}\n\t\t\t\n\t\t\tforeach ($tempArr as $key2 => $row) {\n\t\t\t\t$position[$key2] = $row['position']; \n\t\t\t}\n\t\t\tforeach ($tempArr as $key2 => $row) {\n\t\t\t\t$fantasyPoints[$key2] = $row['fantasyPoints']; \n\t\t\t}\n\t\t\tarray_multisort($position, SORT_DESC, $playingStatus, SORT_DESC,$fantasyPoints, SORT_DESC, $tempArr);\t\t\t\n\n\t\t\t\n\t\t\t\n\t\t\tforeach ($tempArr as $player)\n\t\t\t{\n\t\t\t\t$arr[$key] .= \"<tr>\";\n\t\t\t\t$arr[$key] .= \"<td>\";\n\t\t\t\t$arr[$key] .= $player['last_name'];\n\t\t\t\t$arr[$key] .= \"</td>\";\n\t\t\t\t$arr[$key] .= \"<td>\";\n\t\t\t\t$arr[$key] .= $player['position'];\n\t\t\t\t$arr[$key] .= \"</td>\";\n\t\t\t\t$arr[$key] .= \"<td>\";\n\t\t\t\t$arr[$key] .= $player['slot'];\n\t\t\t\t$arr[$key] .= \"</td>\";\n\t\t\t\t$arr[$key] .= \"<td>\";\n\t\t\t\t$arr[$key] .= $player['fantasyPoints'];\n\t\t\t\t$arr[$key] .= \"</td>\";\n\t\t\t\t$arr[$key] .= \"</tr>\";\n\t\t\t}\n\t\t\t\n\t\t\t//footer\n\t\t\t$arr[$key] .= \"</table>\";\n\t\t\t$arr[$key] .= \"Nightly Points: \".number_format($this->nightlyPoints[$key], 2, '.', '');;\n\t\t}\n\t\treturn $arr;\n\t}", "title": "" }, { "docid": "5b0c0a65a0432623bf72a30c8e2a5230", "score": "0.47004712", "text": "function getRecentPressureWoundTests($patientID, $db){\n function getPressureScore($testID, $db){\n $qry = $db->prepare(\"SELECT pushScore FROM pressureWoundTest WHERE testID = ?\");\n $qry->bind_param(\"i\",$testID);\n $qry->execute();\n $qry->bind_result($pushScore);\n $qry->fetch();\n $qry->close();\n return isset($pushScore) ? $pushScore : -1;\n }\n //Create a time that was this time - 2 months\n $datetime = date('Y-m-d H:i:s', strtotime('-2 months'));\n //Select the information where the patientID is given and the date is greater than 2 months from now\n $qry = $db->prepare(\"SELECT testID, dateTaken FROM test WHERE patientID = ? AND dateTaken > ?\");\n $qry->bind_param(\"is\",$patientID,$datetime);\n $qry->execute();\n $qry->bind_result($testID, $accountID, $dateTaken);\n $array = array();\n $i = 0;\n //Build an array using $qry->fetch to export to the frontend\n while($qry->fetch()){\n $score = getPressureScore($testID,$db);\n if($score != -1){\n $array[$i]['dateTaken'] = $dateTaken;\n $array[$i]['score'] = $score;\n $i++;\n }\n //Move on\n else{\n\n }\n }\n $qry->close();\n return $array;\n}", "title": "" }, { "docid": "8c8892349acd0f710df9b3c2090f89a7", "score": "0.4696611", "text": "function formatTimeArray(&$array,$colKeys, $formatString)\n{\n try{\n foreach($colKeys as $key)\n {\n foreach($array as &$row)\n {\n $row[$key] = formatTime($row[$key], $formatString);\n }\n }\n }\n catch(Exception $e)\n {\n return False;\n }\n return True;\n}", "title": "" }, { "docid": "a12386dbc3fc75a3eeb93a688a7105da", "score": "0.46945596", "text": "function setStats(mysqli_result $result, array &$array, $id)\n {\n $userId = $id;\n $i = 0; //To keep track of array element\n $totalGamesPlayed = 0;\n $totalGamesWon = 0;\n $totalGamesLost = 0;\n $totalElapsedTimeSeconds = 0;\n $totalScore = 0;\n\n //If the result has rows\n if ($result->num_rows > 0) {\n //Iterate through all rows in each column\n while ($row = $result->fetch_assoc()) {\n $totalGamesPlayed++;\n //If the user is the winner\n if (strcasecmp($row[\"winner_id\"], $userId) == 0) {\n $won = true; //Set boolean to true\n $totalGamesWon++; //Increment totalGamesWon\n }\n //Else, they lost\n else {\n $won = false; //Set boolean to false\n $totalGamesLost++; //Increment totalGamesLost\n }\n //If the user was the host of the match\n if (strcasecmp($row[\"host_id\"], $userId) == 0) {\n $score = $row[\"host_gained_score\"];\n }\n //Else, the user was the guest of the match\n else {\n $score = $row[\"guest_gained_score\"];\n }\n $startTime = $row[\"battle_start_time\"];\n $elapsedTimeSeconds = $row[\"battle_elapse_seconds\"];\n $totalElapsedTimeSeconds += $elapsedTimeSeconds;\n\n $totalScore += $score;\n $array[$i] = [\"result\" => $won,\n \"score\" => $score,\n \"elapsedTime\" => $elapsedTimeSeconds,\n \"date\" => $startTime]; //Insert stats into array as array (multidimensional)\n\n $i++; //Increment $i so next array is placed in next element\n }\n $result->close(); //Close passed connection\n }\n }", "title": "" }, { "docid": "4146886be8aab4b962c4f249b6927d95", "score": "0.4692121", "text": "private function _prepareRow($array){\n return array_merge($this->_blankRow, $array);\n }", "title": "" }, { "docid": "5af5e8a3527eec43e694c97363f1f787", "score": "0.46850452", "text": "function cumulative_romob(){\n \n // No of days calculation from the user input date rage\n $mines=array(\"KRB\", \"MBR\",\"BOL\", \"BAR\",\"TAL\",\"KAL\",\"GUA\",\"MPR\");\n $yymm = textboxValue('yymm');\n $lyr_mth =strval((int)substr($yymm,0,4)-1).substr($yymm,4,2);\n if((int)substr($yymm,4,2) <=3){\n $start_mth_cyr =strval((int)substr($yymm,0,4)-1).'04';\n $start_mth_lyr =strval((int)substr($yymm,0,4)-2).'04';\n }\n else{\n $start_mth_cyr =substr($yymm,0,4).'04';\n $start_mth_lyr =strval((int)substr($yymm,0,4)-1).'04';\n }\n // echo $yymm;\n // echo $lyr_mth;\n // echo $start_mth_cyr;\n // echo $start_mth_lyr;\n $romobArray =array_fill(0, 9, array_fill(0,6, 0));\n \n // Lump App for the month\n $sql_mth_l_p =\"SELECT unit, comm, SUM(plan_qty) as TApp FROM u_rm_plan WHERE (yymm>='$start_mth_cyr' AND yymm<='$yymm') GROUP BY unit,comm\";\n $result=mysqli_query($GLOBALS['con'],$sql_mth_l_p);\n if(mysqli_num_rows($result)>0){\n while($row=mysqli_fetch_assoc($result)){\n // // echo $row_l_qty['cust'].\" \" .$row_l_qty['unit']. \" \" .$row_l_qty['l_qty']. \" <br />\";\n if( $row['comm']=='L'){\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $romobArray[$j][0] =+$row['TApp']; \n $romobArray[8][0]=$romobArray[8][0]+$row['TApp']; \n }}}\n else{\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $romobArray[$j][3] =+$row['TApp']; \n $romobArray[8][3]=$romobArray[8][3]+$row['TApp']; \n }\n }\n } } \n }else{ echo \"Error: \" . $sql_mth_l_p . \"<br>\" . $GLOBALS['con']->error; }\n \n \n // Lump & Fines & TotalAct for the month\n $sql_mth_l =\"SELECT unit, comm, SUM(act_qty) as Cumromob FROM u_rm_mth WHERE (yymm>='$start_mth_cyr' AND yymm<='$yymm') GROUP BY unit, comm\";\n $result=mysqli_query($GLOBALS['con'],$sql_mth_l);\n if(mysqli_num_rows($result)>0){\n while($row=mysqli_fetch_assoc($result)){\n if( $row['comm']=='L'){\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $romobArray[$j][1] =+$row['Cumromob']; \n $romobArray[8][1]=$romobArray[8][1]+$row['Cumromob']; \n }}}\n else{\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $romobArray[$j][4] =+$row['Cumromob']; \n $romobArray[8][4]=$romobArray[8][4]+$row['Cumromob']; \n }\n }\n } } \n }else{ echo \"Error: \" . $sql_mth_l . \"<br>\" . $GLOBALS['con']->error; }\n \n // CPLY Cumulative romob \n $sql_lyr_mth_l =\"SELECT unit, comm, SUM(act_qty) as cplyromob FROM u_rm_mth WHERE (yymm>='$start_mth_lyr' AND yymm<='$lyr_mth') GROUP BY unit, comm\";\n $result=mysqli_query($GLOBALS['con'],$sql_lyr_mth_l);\n if(mysqli_num_rows($result)>0){\n while($row=mysqli_fetch_assoc($result)){\n // // echo $row_l_qty['cust'].\" \" .$row_l_qty['unit']. \" \" .$row_l_qty['l_qty']. \" <br />\";\n if( $row['comm']=='L'){\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $romobArray[$j][2] =+$row['cplyromob']; \n $romobArray[8][2]=$romobArray[8][2]+$row['cplyromob']; \n }}}\n else{\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $romobArray[$j][5] =+$row['cplyromob']; \n $romobArray[8][5]=$romobArray[8][5]+$row['cplyromob']; \n }\n }\n } } \n }else{\n echo \"Error: \" . $sql_lyr_mth_l . \"<br>\" . $GLOBALS['con']->error;\n }\n //print_r($romobArray);\n return $romobArray;\n \n }", "title": "" }, { "docid": "433090ef4918c3c75f708ef9631b7603", "score": "0.46844113", "text": "function display_event ($hour,\t$row, $dimensions, $signed_up_runs, $signup_counts)\n{\n $bgcolor = \"#FFFFFF\";\n $game_full = false;\n $males = $signup_counts[\"Male\"];\n $females = $signup_counts[\"Female\"];\n\n $game_max = $row->MaxPlayersNeutral;\n $game_full = $males >= $game_max;\n\n if (array_key_exists ($row->RunId, $signed_up_runs))\n {\n if ('Confirmed' == $signed_up_runs[$row->RunId])\n $bgcolor = get_bgcolor_hex ('Confirmed');\n elseif ('Waitlisted' == $signed_up_runs[$row->RunId])\n $bgcolor = get_bgcolor_hex ('Waitlisted');\n }\n elseif ($game_full)\n $bgcolor = get_bgcolor_hex ('Full');\n elseif ('Y' == $row->CanPlayConcurrently)\n $bgcolor = get_bgcolor_hex ('CanPlayConcurrently');\n \n\n // Add the game title (and run suffix) with a link to the game page\n\n $text = sprintf ('<a href=\"Schedule.php?action=%d&EventId=%d&RunId=%d\">',\n\t\t SCHEDULE_SHOW_GAME,\n\t\t $row->EventId,\n\t\t $row->RunId);\n $text .= $row->Title;\n if ('' != $row->TitleSuffix)\n $text .= \"<p>$row->TitleSuffix\";\n $text .= '</a>';\n if ('' != $row->ScheduleNote)\n $text .= \"<P>$row->ScheduleNote\";\n if ('' != $row->Rooms)\n $text .= '<br>' . pretty_rooms($row->Rooms) . \"\\n\";\n\n \n echo \"<div class=\\\"class12\\\" style=\\\"\".$dimensions->getCSS().\"\\\">\";\n write_centering_table($text, $bgcolor);\n echo \"</div>\\n\";\n}", "title": "" }, { "docid": "1b1b9426bfc0abe37df41961ddaca19a", "score": "0.46804693", "text": "function cumulative_production(){\n\n // No of days calculation from the user input date rage\n $mines=array(\"KRB\", \"MBR\",\"BOL\", \"BAR\",\"TAL\",\"KAL\",\"GUA\",\"MPR\");\n $yymm = textboxValue('yymm');\n $lyr_mth =strval((int)substr($yymm,0,4)-1).substr($yymm,4,2);\n if((int)substr($yymm,4,2) <=3){\n $start_mth_cyr =strval((int)substr($yymm,0,4)-1).'04';\n $start_mth_lyr =strval((int)substr($yymm,0,4)-2).'04';\n }\n else{\n $start_mth_cyr =substr($yymm,0,4).'04';\n $start_mth_lyr =strval((int)substr($yymm,0,4)-1).'04';\n }\n // echo $yymm;\n // echo $lyr_mth;\n // echo $start_mth_cyr;\n // echo $start_mth_lyr;\n $productionArray =array_fill(0, 9, array_fill(0,6, 0));\n \n // Lump App for the month\n $sql_mth_l_p =\"SELECT unit, comm, SUM(plan_qty) as TApp FROM u_pr_plan WHERE (yymm>='$start_mth_cyr' AND yymm<='$yymm') GROUP BY unit,comm\";\n $result=mysqli_query($GLOBALS['con'],$sql_mth_l_p);\n if(mysqli_num_rows($result)>0){\n while($row=mysqli_fetch_assoc($result)){\n // // echo $row_l_qty['cust'].\" \" .$row_l_qty['unit']. \" \" .$row_l_qty['l_qty']. \" <br />\";\n if( $row['comm']=='L'){\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $productionArray[$j][0] =+$row['TApp']; \n $productionArray[8][0]=$productionArray[8][0]+$row['TApp']; \n }}}\n else{\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $productionArray[$j][3] =+$row['TApp']; \n $productionArray[8][3]=$productionArray[8][3]+$row['TApp']; \n }\n }\n } } \n }else{ echo \"Error: \" . $sql_mth_l_p . \"<br>\" . $GLOBALS['con']->error; }\n\n \n // Lump & Fines & TotalAct for the month\n $sql_mth_l =\"SELECT unit, comm, SUM(act_qty) as Cumproduction FROM u_pr_mth WHERE (yymm>='$start_mth_cyr' AND yymm<='$yymm') GROUP BY unit, comm\";\n $result=mysqli_query($GLOBALS['con'],$sql_mth_l);\n if(mysqli_num_rows($result)>0){\n while($row=mysqli_fetch_assoc($result)){\n if( $row['comm']=='L'){\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $productionArray[$j][1] =+$row['Cumproduction']; \n $productionArray[8][1]=$productionArray[8][1]+$row['Cumproduction']; \n }}}\n else{\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $productionArray[$j][4] =+$row['Cumproduction']; \n $productionArray[8][4]=$productionArray[8][4]+$row['Cumproduction']; \n }\n }\n } } \n }else{ echo \"Error: \" . $sql_mth_l . \"<br>\" . $GLOBALS['con']->error; }\n\n // CPLY Cumulative production \n $sql_lyr_mth_l =\"SELECT unit, comm, SUM(act_qty) as cplyproduction FROM u_pr_mth WHERE (yymm>='$start_mth_lyr' AND yymm<='$lyr_mth') GROUP BY unit, comm\";\n $result=mysqli_query($GLOBALS['con'],$sql_lyr_mth_l);\n if(mysqli_num_rows($result)>0){\n while($row=mysqli_fetch_assoc($result)){\n // // echo $row_l_qty['cust'].\" \" .$row_l_qty['unit']. \" \" .$row_l_qty['l_qty']. \" <br />\";\n if( $row['comm']=='L'){\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $productionArray[$j][2] =+$row['cplyproduction']; \n $productionArray[8][2]=$productionArray[8][2]+$row['cplyproduction']; \n }}}\n else{\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $productionArray[$j][5] =+$row['cplyproduction']; \n $productionArray[8][5]=$productionArray[8][5]+$row['cplyproduction']; \n }\n }\n } } \n }else{\n echo \"Error: \" . $sql_lyr_mth_l . \"<br>\" . $GLOBALS['con']->error;\n }\n//print_r($productionArray);\n return $productionArray;\n\n }", "title": "" }, { "docid": "c7e5bcf9f6aaccbc9d7161d1d3b33f6a", "score": "0.4669612", "text": "public function accessCMreel($index, $printQuotedArrays, $cableThick, $cableOrHose, $hoseIDcode){\n $cmReelPrices = $this->getReelPrices('C');\n //debugbar::info($cmReelPrices['GR022217']);\n\n if($printQuotedArrays[$index]->pivotBase340Val == \"Yes\"){\n switch($printQuotedArrays[$index]->frame){\n case \"14\":\n $this->pivotBasePN = \"GR022217\";\n $this->pivotBasePrice = $cmReelPrices['GR022217'];\n break;\n case \"16\":\n $this->pivotBasePN = \"GR028056\";\n $this->pivotBasePrice = $cmReelPrices['GR028056'];\n break;\n case \"19\":\n $this->pivotBasePN = \"GR022220\";\n $this->pivotBasePrice = $cmReelPrices['GR022220'];\n break;\n }\n }\n\n if($printQuotedArrays[$index]->ballStopAssVal == \"Yes\"){\n if($cableThick >= 0.7){\n $this->ballStopPN = \"GR022452\";\n $this->ballStopPrice = $cmReelPrices['GR022452'];\n }elseif($cableThick >= 0.57){\n $this->ballStopPN = \"GR022451\";\n $this->ballStopPrice = $cmReelPrices['GR022451'];\n }elseif ($cableThick >= 0.47){\n $this->ballStopPN = \"GR022450\";\n $this->ballStopPrice = $cmReelPrices['GR022450'];\n }elseif($cableThick >= 0.25){\n $this->ballStopPN = \"GR033030\";\n $this->ballStopPrice = $cmReelPrices['GR033030'];\n }\n //'2018 price\n }\n\n if($printQuotedArrays[$index]->cableGripAssVal == \"Yes\"){\n if($cableThick >= 1.0){\n $this->cablegripPN = \"GR602063\";\n $this->cablegripPrice = $cmReelPrices['GR602063']; //'2018 prices\n }elseif($cableThick >= 0.75){\n $this->cablegripPN = \"GR602062\";\n $this->cablegripPrice = $cmReelPrices['GR602062'];\n }elseif($cableThick >= 0.63){\n $this->cablegripPN = \"GR602061\";\n $this->cablegripPrice = $cmReelPrices['GR602061'];\n }elseif($cableThick >= 0.5){\n $this->cablegripPN = \"GR602060\";\n $this->cablegripPrice = $cmReelPrices['GR602060'];\n }\n }\n\n //'hose clamps required for all UH & HM reels\n if($cableOrHose == \"HS\"){\n $this->getHosefittings($hoseIDcode);\n }\n }", "title": "" }, { "docid": "4344ccfb27fbe6338e6d5b5b812fc912", "score": "0.46675014", "text": "function getMinHours($start_year, $end_year, $start_month, $end_month, $start_day, $end_day, $start_hour, $end_hour){\n\t\t//Declaring arrays\n\t\t$HOURS_IN_DAY = 24;\n\t\t$hourly_array = accessData($start_year, $end_year, $start_month, $end_month, $start_day, $end_day, $start_hour, $end_hour);\n\t\t$all_hours_array = array();\n\t\t$min_array = array();\n\t\t\n\t\t//Initializing the array that will hold every single count for each hour. \n\t\tfor($i = 0; $i < $HOURS_IN_DAY; $i++){\n\t\t\t$all_hours_array[$i] = array();\n\t\t}\n\t\t\n\t\t//This creates an associative array, with all the results for a specific hour stored in an array contained within the associative array.\n\t\t//A value indicates how many people triggered the sensor for that specific time period (year, month, day, hour).\n\t\tforeach($hourly_array as $year => $temp1){\n\t\t\tforeach($hourly_array[$year] as $month => $temp2){\n\t\t\t\tforeach($hourly_array[$year][$month] as $day => $temp3){\n\t\t\t\t\tforeach($hourly_array[$year][$month][$day] as $hour => $value){\n\t\t\t\t\t\tarray_push($all_hours_array[$hour], $value);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//This will sort each array for each hour value in descending order, then it will set the minimum array value for that hour\n\t\t//by grabbing the first value for each array from $all_hours_array.\n\t\tfor($i = 0; $i < $HOURS_IN_DAY; $i++){\n\t\t\tsort($all_hours_array[$i]);\n\t\t\t$min_array[$i] = $all_hours_array[$i][0];\n\t\t}\n\t\t\n\t\t//Any values that are still null will be set to 0. \n\t\tfor($i = 0; $i < $HOURS_IN_DAY; $i++){\n\t\t\tif($min_array[$i] == NULL)\n\t\t\t\t$min_array[$i] = 0;\n\t\t}\n\t\t\n\t\treturn $min_array;\n\t}", "title": "" }, { "docid": "4184718d9ca8b0106372466b3525dbc2", "score": "0.4666914", "text": "public function run()\n {\n $teams = Team::inRandomOrder()->get();\n\n foreach ($teams as $team)\n {\n echo $team->name.\"<br/>\";\n }\n\n $weeks = array(\n array('host_team_id'=>$teams[0]->id,'guest_team_id'=>$teams[1]->id,'week'=>1),\n array('host_team_id'=>$teams[2]->id,'guest_team_id'=>$teams[3]->id,'week'=>1),\n array('host_team_id'=>$teams[0]->id,'guest_team_id'=>$teams[3]->id,'week'=>2),\n array('host_team_id'=>$teams[2]->id,'guest_team_id'=>$teams[1]->id,'week'=>2),\n array('host_team_id'=>$teams[0]->id,'guest_team_id'=>$teams[2]->id,'week'=>3),\n array('host_team_id'=>$teams[3]->id,'guest_team_id'=>$teams[1]->id,'week'=>3),\n #SECOND PART\n array('host_team_id'=>$teams[1]->id,'guest_team_id'=>$teams[0]->id,'week'=>4),\n array('host_team_id'=>$teams[3]->id,'guest_team_id'=>$teams[2]->id,'week'=>4),\n array('host_team_id'=>$teams[3]->id,'guest_team_id'=>$teams[0]->id,'week'=>5),\n array('host_team_id'=>$teams[1]->id,'guest_team_id'=>$teams[2]->id,'week'=>5),\n array('host_team_id'=>$teams[2]->id,'guest_team_id'=>$teams[0]->id,'week'=>6),\n array('host_team_id'=>$teams[1]->id,'guest_team_id'=>$teams[3]->id,'week'=>6),\n );\n//\n \\App\\Models\\Match::insert($weeks);\n }", "title": "" }, { "docid": "8ede30ab430a1476264b085b407aa6ea", "score": "0.46578923", "text": "function vertical_array($myarray)\n{\n\tinclude '../skdb/skdb.php';\n\t$month[] = read_array($myarray,searchword($myarray,\"JAN\"));\n\t$month[] = read_array($myarray,searchword($myarray,\"FEB\"));\n\t$month[] = read_array($myarray,searchword($myarray,\"MAR\"));\n\t$month[] = read_array($myarray,searchword($myarray,\"APR\"));\n\t$month[] = read_array($myarray,searchword($myarray,\"MAY\"));\n\t$month[] = read_array($myarray,searchword($myarray,\"JUN\"));\n\t$month[] = read_array($myarray,searchword($myarray,\"JUL\"));\n\t$month[] = read_array($myarray,searchword($myarray,\"AUG\"));\n\t$month[] = read_array($myarray,searchword($myarray,\"SEP\"));\n\t$month[] = read_array($myarray,searchword($myarray,\"OCT\"));\n\t$month[] = read_array($myarray,searchword($myarray,\"NOV\"));\n\t$month[] = read_array($myarray,searchword($myarray,\"DEC\"));\n\t\n\t$material = read_array($myarray,\"2,3\"); /* ege: 50kg or bulk */\n\t$sector = read_array($myarray,\"2,1\"); /* limbang or marudi */\n\t$plant = read_array($myarray,\"2,0\"); /* kuching & bintulu */\n\t\n\t$temp .= \"<table class='CSSTableGenerator'>\";\n \n\tfor ($i=0; $i < count($month); $i++) \n\t{\n\t\t$sector_name=\"\";\n $month_str = $month[$i][0];\n $year = substr($myarray[0][1][\"col\"], -4);\n\t\t$fulldate = date(\"Y-m\",strtotime(\"$year-$month_str\"));\n \n\t\t$temp .= \"<tr>\";\n\t\t$temp .= \"<td>$month_str</td>\"; /* get what month */\n \n\t\tfor ($x=0; $x < count($month[0]); $x++) \n\t\t{\n\t\t\t$content = $month[$i][$x+1];\n\t\t\t$content=replacenull($content);\n\t\t\t$material_txt = $material[$x+1];\n\t\t\t$sector_txt = $sector[$x+1];\n\t\t\t$plant_txt = $plant[$x+1];\n\t\t\t\n\t\t\tif($sector_txt<>\"\")\n\t\t\t{\n\t\t\t\t$sector_name = $sector_txt;\n\t\t\t}\n\t\t\t\n\t\t\tif($material_txt<>\"SUBTOTAL\" && $material_txt==\"50KG\")\n\t\t\t{\n\t\t\t\t//$temp .= \"<td>$plant_txt,$fulldate,$material_txt,$sector_name $content ($i,$x)</td>\";\n\t\t\t\t//$temp .= \"<td>$content</td>\";\n\t\t\t\t//insertsql(\"budget_50kg\");\n\t\t\t}\n\t\t\t\n\t\t\tif($material_txt<>\"SUBTOTAL\" && $sector_name<>\"TOTAL\" && $material_txt<>\"\")\n\t\t\t{\n\t\t\t\t$temp .= \"<td>$plant_txt,$fulldate,$material_txt,$sector_name $content ($i,$x)</td>\";\n\t\t\t\tinsertsql($material_txt,$plant_txt,$fulldate,$content,$sector_name);\n\t\t\t}\n\t\t\t\t\n\t\t\t/*\n\t\t\tif($material_txt<>\"SUBTOTAL\" && $material_txt==\"BULK\")\n\t\t\t\tinsertsql(\"budget_bulk\",$plant_txt,$fulldate,$content,$sector_name);\n\t\t\t\n\t\t\tif($material_txt<>\"SUBTOTAL\" && $material_txt==\"JUMBO\")\n\t\t\t\tinsertsql(\"budget_jumbo\",$plant_txt,$fulldate,$content,$sector_name);\n\t\t\t\n\t\t\tif($material_txt<>\"SUBTOTAL\" && $material_txt==\"B/TANKER\")\n\t\t\t\tinsertsql(\"budget_tanker\",$plant_txt,$fulldate,$content,$sector_name);\n\t\t\t*/\n\t\t}\n\t\t$temp .= \"</tr>\";\n\t}\n\t$temp .= \"</table>\";\n\techo $temp;\n}", "title": "" }, { "docid": "f16575af8bae6ef4464fdb6678b07562", "score": "0.46498048", "text": "public function buildAchievementArray()\n {\n $row = 1;\n $filename = \"csv/Achievements_hyper.csv\";\n $questionhander = fopen($filename, \"r\");\n while ($data = fgetcsv($questionhander, null, \";\")) {\n $fields = count($data);\n $this->achieve_array[5][$row - 1] = false;\n for ($c = 0; $c < $fields; $c++) {\n $this->achieve_array[$c][$row - 1] = $data[$c];\n }\n $row++;\n }\n fclose($questionhander);\n }", "title": "" }, { "docid": "1cb95835203562c2facc0496e7786f8a", "score": "0.4637474", "text": "private function llenarArrayhoras(&$array, $horaInicio, $horaFin)\n {\n //$x = \"\";\n\n //return substr($horaInicio, 0, 1); \n\n $terminaExacto = false;\n\n if (substr($horaInicio, 0, 1) == 0) {\n $horaInicio = substr($horaInicio, 1);\n }\n if (substr($horaFin, 0, 1) == 0) {\n $horaFin = substr($horaFin, 1);\n }\n $horaInicio = str_replace(':', '', $horaInicio);\n $horaFin = str_replace(':', '', $horaFin);\n\n\n if (substr($horaFin, -2) == \"00\") { //si la hora termina en 00 había un error, este if la corrije\n $terminaExacto = true;\n $auxInicioDeHoraFin = intval(substr($horaFin, 0, 2)) - 1;\n $horaFin = $auxInicioDeHoraFin . \"40\";\n }\n //return $horaInicio .' ' . $horaFin;\n\n $horaFin = intval($horaFin);\n $i = intval($horaInicio);\n\n if ($i < 800) {\n $i = 800;\n }\n\n if ($horaFin > 1700) {\n $horaFin = 1700;\n }\n\n for ($i; $i <= intval($horaFin); $i = $i + 20) {\n\n if (substr($i, 1) == \"60\" || substr($i, 2) == \"60\") {\n $i = $i + 40;\n }\n if ($i != 1200 && $i != 1220 && $i != 1240) { //horas de almuerzo\n if (strlen($i) == 3) { //si es una hora de 3 dígitos como 8:00\n $varInsert = substr_replace($i, \":\", 1, 2) . substr($i, 1);\n //reemplazar aquí para poner los \":\"\n }\n if (strlen($i) == 4) { //si es una hora de 4 dígitos como 13:00\n $varInsert = substr_replace($i, \":\", 2, 2) . substr($i, 2);\n }\n array_push($array, $varInsert);\n //$x = $x . ' ' . $varInsert;\n }\n //////////AQUÍ ORIGINALMENTE NO VA EL IF de +20, LO PUSE DE PRUEBA ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n if ((($i + 20) >= intval($horaFin)) && !$terminaExacto) {\n break;\n }\n //////////////////////////FIN IF PRUEBA //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n }\n //return $x;\n }", "title": "" }, { "docid": "8bb37140b005fa41a37aef3680c38ecd", "score": "0.4637387", "text": "function timespan_merge() {\n \n\n $this->showDebug($this->merge, __FUNCTION__ . \"() <br> this->merge start of function\" );\n $this->showDebug($this->from_date, __FUNCTION__ . \"() <br> this->from_date is below\" );\n\t\t$this->showDebug($this->to_date, __FUNCTION__ . \"() <br> this->to_date is below\" );\n $this->showDebug($this->only_date, __FUNCTION__ . \"() <br> this->only_date\" );\n \n $count = 1;\n\t\t//if (isset($this->only_date[$this->OP_ID])){\n\t\t\t//\t$this->merge[$this->OP_ID] = $this->only_date[$this->OP_ID];\n\n\t\t//}else{\n\t\t\t\tforeach ($this->from_date as $key => $value) {\n\t\t\t\t \n\t\t\t\t\t\tif ( isset($this->to_date[$key]['threshold']) && $this->to_date[$key]['threshold'] !=\"\" ){\n\t\t\t\t\t\t\t$this->merge[$key] = $value['threshold'] . \"-\" . $this->to_date[$key]['threshold'];\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t/* TODO: When does this execute? March 8, 2016\n\t\t\t\t\t\t\techo \"There is no 'to_date'\"; */\n\t\t\t\t\t\t\tif ($this->from_date[$key]['thresholdType']==\"parsedDate>=\"){\n\t\t\t\t\t\t\t\t@ $this->merge[$key] = $value['threshold'] . \"-\" . '999999999999';\n\t\t\t\t\t\t\t\t $this->to_date[$key]['threshold']= '999999999999';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//Only 1 date\n\t\t\t\tforeach ($this->only_date as $key => $value) {\n\t\t\t\t\t\n\t\t\t\t\t$newKey = $this->calculateArrayKey($this->merge,$key);\n\t\t\t\t\t\n\t\t\t\t\t $this->merge[$newKey] = $value['threshold'] . \"-\" . $value['threshold'];\n\t\t\t\t\t/*\n\t\t\t\t\tif (isset($this->merge[$key])){\n\t\t\t\t\t\t$this->merge[$count . \"_\" . $key] = $value . \"-\" . $value;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$this->merge[$key] = $value . \"-\" . $value;\n\t\t\t\t\t}\n\t\t\t\t\t*/\n\t\t\t\t}\n\t\t\tasort($this->merge);\n\n $this->showDebug($this->merge , \"End of \" . __FUNCTION__ . \"(). variable this->merge is below<br>\");\n \n\t\t \n }", "title": "" }, { "docid": "1fefe9a14aebc32d4188e3cbc501d4dc", "score": "0.46330222", "text": "function getRunTimes($runTimes)\n{\n\t$runTimes = str_replace(\"&#8206;\",\"\",$runTimes);\n\t$runTimes = explode(\"-\",ltrim($runTimes));\n\t$runTime = $runTimes['0'];\n\t$runTimes = str_replace(\"hr \",\":\",$runTime);\n\t$runTimes = str_replace(\"min\",\"\",$runTimes);\n\t$runTimes = hoursToMinutes($runTimes);\n\n\t$runTimer['Hour'] = rtrim($runTime);\n\t$runTimer['Mins'] = $runTimes;\n\n\treturn $runTimer;\n}", "title": "" }, { "docid": "9cf5b68e118612a57890cfd543270795", "score": "0.46324155", "text": "public function timetable_feed() {\n\t\t\t// ->wherePivot('complete', '=', 'false')->orWherePivot('updated_at', '>', Carbon::now()->subMinutes(15))\n\t\t\t$items = $this->lessons()->where('end', '>', date(\"Y-m-d H:i:s\", time()))->where('start', '<', date(\"Y-m-d H:i:s\", time() + 60 * 60 * 24 * 7))->orderBy('end', 'ASC')->get();\n\n\t\t\t$headings = [];\n\n\t\t\tforeach ($items as $value) {\n\t\t\t\t$now = Carbon::now();\n\t\t\t\t$index = static::time_index($value->start, $now);\n\t\t\t\t$heading = static::time_heading($value->start, $now);\n\n\t\t\t\tif (!isset($headings[$index]))\n\t\t\t\t\t$headings[$index] = [\n\t\t\t\t\t\t'heading' => $heading,\n\t\t\t\t\t\t'items' => []\n\t\t\t\t\t];\n\n\t\t\t\t$headings[$index]['items'][] = $value;\n\t\t\t}\n\n\t\t\tksort($headings);\n\n\t\t\treturn $headings;\n\t\t}", "title": "" }, { "docid": "281192e19e7e30d6e10ad65e3d03e457", "score": "0.46314582", "text": "function hours_report($gid,$uid,$sd,$ed) {\n\t$gid = mysql_real_escape_string($gid);\n\t$uid = mysql_real_escape_string($uid);\n\t$sd = mysql_real_escape_string($sd);\n\t$ed = mysql_real_escape_string($ed);\n\t$report_results = doreport($gid,$uid,$sd,$ed);\n\t\n\t$index = 0;\n\t$group_last = 0;\n\t$user_last = 0;\t\n\t$group = \"\";\n\t$user = \"\";\n\t$user_detail = \"<tr><td colspan=3><table class='user_detail' id='detail_$index'>\";\n\t$total_hours = 0;\n\t$last_group_hours = 0;\n\t$last_user_hours = 0;\n\t$index = 0;\n \t$o = \"<table style='text-align: right;'>\";\n\twhile ($row = mysql_fetch_array($report_results))\n\t{\n\t\tif ($gid > 0){ \n\t\t\t$group_id = $row['work_id'];\n\t\t\t$group_name = $row['group_name'].\" - \".$row['work_name'];\n\t\t}\n\t\telse {\n\t\t\t$group_id = $row['group_id'];\n\t\t\t$group_name = $row['group_name'];\n\t\t}\n\n\t\tif ($group_id != $group_last)\n\t\t{ \n\t\t\tif ($group_last) \n\t\t\t{ \n\t\t\t\t$index++;\n\t\t\t\t$group .= \"<td>\".$last_group_hours.\"</td></tr>\";\n\t\t\t\t$user .= \"<td>\".$last_user_hours.\"</td></tr>\";\n\t\t\t\t\n\t\t\t\t$o .= $group;\n\t\t\t\n\t\t\t\t$user_detail .= \"</table></td></tr>\";\n\t\t\t\t$user .= $user_detail;\n\t\t\t\t$o .= $user;\n\t\t\t\t$user = \"\";\n\t\t\t\t$group = \"\";\n\t\t\t\t$user_detail = \"<tr><td colspan=3><table class='user_detail' id='detail_$index'>\";\n\t\t\t\t\n\t\t\t\t$user_last = 0;\t\n\t\t\t\t$last_user_hours = 0;\n\t\t\t\t$last_group_hours = 0;\n\t\t\t}\n\t\t\t$group = \"<tr class='heading'><td colspan=2 style='text-align: left;'>$group_name</td>\";\n\t\t\t$group_last = $group_id;\n\t\t}\n\t\tif ($row['user_id'] != $user_last)\n\t\t{\n\t\t\tif ($user_last) \n\t\t\t{ \n\t\t\t\t$index++;\n\t\t\t\t$user .= \"<td>\".$last_user_hours.\"</td></tr>\";\n\t\t\t\t$user_detail .= \"</table></td></tr>\";\n\t\t\t\t$user .= $user_detail;\n\t\t\t\t$user_detail = \"<tr><td colspan=3><table class='user_detail' id='detail_$index'>\";\n\t\t\t\t$last_user_hours = 0;\n\t\t\t}\n\t\t\t$user_last = $row['user_id'];\n//\t\t\t$color = get_user_color($row['user_id']);\n\t\t\t$color = \"#000000\";\n\t\t\t$user .= \"<tr style='color: $color;'><td style='width: 12%; text-align: center;'><a href=\\\"javascript:toggle_vis('detail_$index');\\\" class='plus'>+</a></td><td style=\\\"text-align: left;\\\">\" . $row['lname'] . \", \" . $row['fname'].\"</td>\";\n\t\t}\n\t\t$user_detail .= \"<tr><td style='text-align: left; width: 80px;'>\".date(\"m/d/y\",strtotime($row['datestamp'])).\"</td>\";\n\t\t$user_detail .= \"<td style='text-align: left; width: 160px;'>\".$row['work_name'].\"</td>\";\n\t\t$user_detail .= \"<td style='text-align: right; width: 40px;'>\".$row['hours'].\"</td></tr>\";\n\t\t$total_hours += $row['hours'];\n\t\t$last_group_hours += $row['hours'];\n\t\t$last_user_hours += $row['hours'];\n\t}\n\tif (!$total_hours) \n\t{ \n\t\t$o .= \"<tr><td>There are no recorded hours that meet your search criteria.<BR> Please be sure the dates are correct.<BR>\";\n\t\tif (check_supervisor() && $uid != '' && $gid != '')\n\t\t{ \n\t\t\t$o .= \"<BR> Also, make sure that the user selected belongs to the group specified.\"; \n\t\t}\n\t\t$o .= \"</td></tr>\";\n\t}\n\telse \n\t{\n\t\t$group .= \"<td>\".$last_group_hours.\"</td></tr>\";\n\t\t$user .= \"<td>\".$last_user_hours.\"</td></tr>\";\n\t\t$o .= $group;\n\t\t$user_detail .= \"</table></td></tr>\";\n\t\t$user .= $user_detail;\n\t\t$o .= $user;\n\t\t$o .= \"<tr class='heading'><td colspan=2>Total:</td><td>\".$total_hours.\"</td></tr>\";\n\t}\n\t$o .= \"</table>\";\n\treturn $o;\n\n}", "title": "" }, { "docid": "c47ce1095106849ed42463c19c2f12eb", "score": "0.46255752", "text": "function order() {\n \n// Array declerations\n\n$_SESSION[errors] = array(); \n \n// Associative Movie array\n \n$movieArray = array (\n array(\"ID\"=>\"ACT\", \"Rateing\"=>\"MA15+\", \"PlaySlot1\"=>\"NA\", \"PlaySlot2\"=>\"21:00\", \"PlaySlot3\"=>\"18:00\", \"NAME\"=>\"The Girl in the Spider's Web\"),\n array(\"ID\"=>\"RMC\", \"Rateing\"=>\"MA15+\", \"PlaySlot1\"=>\"18:00\", \"PlaySlot2\"=>\"NA\", \"PlaySlot3\"=>\"15:00\", \"NAME\"=>\"A Star is Born\"),\n array(\"ID\"=>\"ANM\", \"Rateing\"=>\"G\", \"PlaySlot1\"=>\"12:00\", \"PlaySlot2\"=>\"18:00\", \"PlaySlot3\"=>\"12:00\", \"NAME\"=>\"Ralph Breaks the Internet\"),\n array(\"ID\"=>\"AHF\", \"Rateing\"=>\"MA15+\", \"PlaySlot1\"=>\"NA\", \"PlaySlot2\"=>\"12:00\", \"PlaySlot3\"=>\"21:00\", \"NAME\"=>\"Boy Erased\"),\n);\n \n// Associative pricing array. Discount/Full (\"D\" & \"F\") \n$fareArray = array (\n //Day |12:00 Timeslot|15:00 Timeslot|18:00 Timeslot|21:00 Timeslot\n array(\"DAY\"=>\"MON\", \"12Fare\"=>\"D\", \"15Fare\"=>\"D\", \"18Fare\"=>\"D\", \"21Fare\"=>\"D\"),\n array(\"DAY\"=>\"TUE\", \"12Fare\"=>\"D\", \"15Fare\"=>\"F\", \"18Fare\"=>\"F\", \"21Fare\"=>\"F\"),\n array(\"DAY\"=>\"WED\", \"12Fare\"=>\"D\", \"15Fare\"=>\"D\", \"18Fare\"=>\"D\", \"21Fare\"=>\"D\"),\n array(\"DAY\"=>\"THU\", \"12Fare\"=>\"D\", \"15Fare\"=>\"F\", \"18Fare\"=>\"F\", \"21Fare\"=>\"F\"),\n array(\"DAY\"=>\"FRI\", \"12Fare\"=>\"D\", \"15Fare\"=>\"F\", \"18Fare\"=>\"F\", \"21Fare\"=>\"F\"),\n array(\"DAY\"=>\"SAT\", \"12Fare\"=>\"F\", \"15Fare\"=>\"F\", \"18Fare\"=>\"F\", \"21Fare\"=>\"F\"),\n array(\"DAY\"=>\"SAT\", \"12Fare\"=>\"F\", \"15Fare\"=>\"F\", \"18Fare\"=>\"F\", \"21Fare\"=>\"F\"),\n );\n\n// Seat Associative price array\n$priceArray = array (\n // Seat Type| Mon&Wed&12pmWeekday | All other times | Full Seat Name\n array(\"Seat\"=>\"STA\",\"Discount\"=>\"14.00\",\"Full\"=>\"19.80\",\"NAME\"=>\"Standard Adult\"),\n array(\"Seat\"=>\"STP\",\"Discount\"=>\"12.50\",\"Full\"=>\"17.50\",\"NAME\"=>\"Standard Concession\"),\n array(\"Seat\"=>\"STC\",\"Discount\"=>\"11.00\",\"Full\"=>\"15.30\",\"NAME\"=>\"Standard Child\"),\n array(\"Seat\"=>\"FCA\",\"Discount\"=>\"24.00\",\"Full\"=>\"30.00\",\"NAME\"=>\"First Class Adult\"),\n array(\"Seat\"=>\"FCP\",\"Discount\"=>\"22.50\",\"Full\"=>\"27.00\",\"NAME\"=>\"First Class Concession\"),\n array(\"Seat\"=>\"FCC\",\"Discount\"=>\"21.00\",\"Full\"=>\"24.00\",\"NAME\"=>\"First Class Child\"),\n \n);\n \n// Assigning local array variables to hold post data \n $errors = $_SESSION[errors]; \n $movie = $_POST[movie]; \n $seats = $_POST[seats];\n $customer = $_POST[cust]; \n \n// Sanitize Values from post \n$customer[email] = filter_var($customer[email], FILTER_SANITIZE_EMAIL);\n$customer[name] = filter_var($customer[name], FILTER_SANITIZE_STRING);\n$customer[mobile] = filter_var($customer[mobile], FILTER_SANITIZE_NUMBER_INT);\n$customer[card] = filter_var($customer[card], FILTER_SANITIZE_NUMBER_INT);\n$customer[expiry] = filter_var($customer[expiry], FILTER_SANITIZE_NUMBER_INT);\n\n$movie[id] = filter_var($movie[id], FILTER_SANITIZE_STRING);\n$movie[day] = filter_var($movie[day], FILTER_SANITIZE_STRING);\n$movie[hour] = filter_var($movie[hour], FILTER_SANITIZE_SPECIAL_CHARS);\n\nforeach($movie[seats] as $seatFILTER){\n $seatFILTER = filter_var($seatFILTER, FILTER_SANITIZE_NUMBER_INT);\n}\n \n// Validate USER data with PHP Validation filters\n\nif(filter_var($customer[email], FILTER_VALIDATE_EMAIL) == false){\n $errorFLAG = 1;\n $error6 = 'document.getElementById(\"errorEMAIL\").innerHTML = \" &lt; Invalid email\";\n document.getElementById(\"errorEMAIL\").style.visibility = \"visible\";';\n array_push($errors, $error6); \n}\n \nif(preg_match(\"/^[A-Za-z \\-.']{1,110}$/\", $customer[name]) == false){\n $errorFLAG = 1;\n $error7 = 'document.getElementById(\"errorNAME\").innerHTML = \" &lt; Invalid Name\";\n document.getElementById(\"errorNAME\").style.visibility = \"visible\";';\n array_push($errors, $error7); \n} \n\nif(preg_match(\"/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14})$/\", $customer[card]) == false){\n $errorFLAG = 1;\n $error8 = 'document.getElementById(\"errorCARD\").innerHTML = \" &lt; Enter Valid MC or Visa\";\n document.getElementById(\"errorCARD\").style.visibility = \"visible\";';\n array_push($errors, $error8); \n} \n \nif(preg_match(\"/^(\\(04\\)|04|\\+614)( ?\\d){8}$/\", $customer[mobile]) == false){\n $errorFLAG = 1;\n $error9 = 'document.getElementById(\"errorMOBILE\").innerHTML = \" &lt; Enter Valid Mobile Number\";\n document.getElementById(\"errorMOBILE\").style.visibility = \"visible\";';\n array_push($errors, $error9); \n} \n \n// Validate post data that has been sanitized\n \n// **** Note to Marker. In hindsight a lot of this could have been handled more efficently with\n// the PHP VALIDATION filters.\n \n\n// Now that the values are sanitized we begin validation of data against the arrays\n// and ensure out of range or mismatched references are caught.\n\n// Get Movie ID passed in and assign it to appropriate variable to be used as array index \nif($movie[id] == \"ACT\")\n {$movieIndex = 0;}\n else if($movie[id] == \"RMC\")\n {$movieIndex = 1;}\n else if($movie[id] == \"ANM\")\n {$movieIndex = 2;}\n else if($movie[id] == \"AHF\")\n {$movieIndex = 3;}\n// If an non-existent value is found flag the error and add the javascript message to array \nelse {\n $errorFLAG = 1;\n $error1 = 'document.getElementById(\"errorID\").innerHTML = \" &lt; Select a valid Movie\";\n document.getElementById(\"errorID\").style.visibility = \"visible\";';\n array_push($errors, $error1);\n } \n \n \n// Get the day passed in and assign it a value to be used in the day slot array index \nif($movie[day] == \"MON\" || $movie[day] == \"TUE\") \n {\n $playSlot = PlaySlot1;\n if($movie[day] == \"MON\")\n {\n $day = 0;\n }\n if($movie[day] == \"TUE\")\n {\n $day = 1;\n }\n }\n else if ($movie[day] == \"WED\" || $movie[day] == \"THU\" || $movie[day] == \"FRI\" )\n {\n $playSlot = PlaySlot2;\n if($movie[day] == \"WED\")\n {\n $day = 2;\n }\n if($movie[day] == \"THU\")\n {\n $day = 3;\n }\n if($movie[day] == \"FRI\")\n {\n $day = 4;\n }\n \n }\n \n else if ($movie[day] == \"SAT\" || $movie[day] == \"SUN\" )\n {\n $playSlot = PlaySlot3;\n if($movie[day] == \"SAT\")\n {\n $day = 5;\n }\n if($movie[day] == \"SUN\")\n {\n $day = 6;\n }\n \n }\n \n// If an non-existent value is found flag the error and add the javascript message to array\nelse {\n $errorFLAG = 1;\n $error2 = 'document.getElementById(\"errorDAY\").innerHTML = \" &lt; Select a valid day\";\n document.getElementById(\"errorDAY\").style.visibility = \"visible\";';\n array_push($errors, $error2);\n} \n\n \n\n// Get the hour passed in and assign it a value to be used in the day slot array index \n \n \n if($movie[hour] == \"12:00\")\n {$timeIndex = '12Fare';}\n else if($movie[hour] == \"15:00\")\n {$timeIndex = '15Fare';}\n else if($movie[hour] == \"18:00\")\n {$timeIndex = '18Fare';}\n else if($movie[hour] == \"21:00\")\n {$timeIndex = '21Fare';}\n// Handle errors\nelse {\n $errorFLAG = 1;\n $error3 = 'document.getElementById(\"errorTIME\").innerHTML = \" &lt; Select a valid time\";\n document.getElementById(\"errorTIME\").style.visibility = \"visible\";';\n array_push($errors, $error3);\n} \nif ($movieArray[$movieIndex][$dayIndex] == \"NA\"){\n $errorFLAG = 1;\n $error4 = 'document.getElementById(\"errorTIME\").innerHTML = \" &lt; Invalid play time\";\n document.getElementById(\"errorTIME\").style.visibility = \"visible\";';\n array_push($errors, $error4); \n}\n \n// The time that the movie is playing for user selection \n \n$playTime = $movieArray[$movieIndex][$playSlot];\n// Check that it is valid\n if($playTime != \"NA\"){\n if($playTime == \"12:00\"){\n $fare = '12Fare';\n }\n if($playTime == \"15:00\"){\n $fare = '15Fare';\n }\n if($playTime == \"18:00\"){\n $fare = '18Fare';\n }\n if($playTime == \"21:00\"){\n $fare = '21Fare';\n } \n }\n \n// Set fare type\nif($fareArray[$day][$fare] == \"D\"){\n $fareType = 'Discount';\n}\nelse{\n $fareType = 'Full';\n}\n \n\n// Check to make sure user has selected at least one tickets\n \nforeach($seats as $seat){\n $tickets += $seat;\n}\n\n \nif($tickets <= 0){\n $errorFLAG = 1;\n $error5 = 'document.getElementById(\"errorTICKET\").innerHTML = \" &lt; Select at least 1 ticket\";\n document.getElementById(\"errorTICKET\").style.visibility = \"visible\";';\n array_push($errors, $error5);\n}\n \n\n// Populate session ticket (seat) array for use on invoice page\n \n$_SESSION[ticketNo]=array();\n$_SESSION[ticketCost]=array(); \n$_SESSION[ticketName]=array(); \n \n$i = 0;\nforeach($seats as $userTicket){\n if($userTicket > 0){\n $seatCost = $priceArray[$i][$fareType];\n array_push($_SESSION[ticketNo],$userTicket);\n array_push($_SESSION[ticketCost],$seatCost);\n array_push($_SESSION[ticketName],$priceArray[$i][\"NAME\"]);\n $i++; \n }\n if($userTicket == 0){\n $i++;\n }\n} \n \n \n\n \n// Notify of SUBMIT-POST failure\n\n// Outputs javascript that populates the span next to field with error text\n// Also outputs inline CSS to style the message\nif($errorFLAG == 1){ \n echo '<script language=\"javascript\">';\n echo 'window.location.hash =\"BookingSection\";';\n echo 'alert(\"ERROR - Please Check Form';\n echo '\");';\n echo 'function error(){'; \n foreach($errors as $errorJAVA){\n echo $errorJAVA;\n }\n echo '}</script>';\n echo '<style type = text/css>';\n echo '.Dropdowns .errorSpan{font-size: 15px;background-color: yellow;padding: 10px;border: solid;border-color: red;margin: 5px;border-radius: 10px;';\n echo '</style>';\n\n} \n\nelse{\n \n $_SESSION[seats] = $_POST[seats];\n // Add items to session cart array\n $_SESSION[cart]=array(\n \"CNAME\"=> $customer[name],\n \"CEMAIL\"=> $customer[email],\n \"CMOBILE\"=> $customer[mobile],\n \"MOVIE\"=> $movieArray[$movieIndex][\"NAME\"],\n \"DAY\"=> $fareArray[$day][\"DAY\"], \n \"TIME\"=> $movieArray[$movieIndex][$playSlot], \n \"CCARD\"=> $customer[card], \n \"CEXPIRY\"=> $customer[expiry] \n );\n \n \n// Redirect to invoice page\n header('location: order.php');\n}\n\n \n\n}", "title": "" }, { "docid": "1ee7281d61ed4d2ff713b2114ea5f24f", "score": "0.46240515", "text": "function milestone($stepID) {\r\n GLOBAL $mysqlID;\r\n\t\r\n$stg=$_SESSION[\"stage\"];\r\n$thismlstn=$_SESSION[\"milestone\"];\r\n\t\r\n\r\n \r\n $allMilestones1=array(//pre\r\n1=>array(\"Body guy\",'011',\"Personal Health Profile\",'012'),\r\n2=>array(\"Are you dependent\",121,\"People and Places\",231),\r\n3=>array(\"Why think about quitting\",131,\"What are your worries?\",'132'),\r\n4=>array(\"Why think about quitting\",131,\"Some small steps\",142),\r\n5=>array(\"Friends and family\",151,\"Relaxation tips\",152),\r\n6=>array(\"positive thinking\",161),\r\n7=>array(\"Barriers\",171),\r\n8=>array(),\r\n9=>array());\r\n \r\n \r\n $allMilestones2=array(//con\r\n \t1=>array(\"Body guy\",'011',\"Personal Health Profile\",'012'),\r\n\t2=>array(\"Are you dependent\",221,\"What are your worries\",'023'),\r\n 3=>array(\"People and Places\",231),\r\n 4=>array(\"Why think about quitting\",241,\"Some small steps\",142),\r\n 5=>array(\"Friends and family\",251,\"Relaxation tips\",152),\r\n 6=>array(\"What gets in way\",261,\"What are your worries\",262),\r\n 7=>array(\"Barriers tracking\",271),\r\n 8=>array(\"what's good, what's bad\",281),\r\n 9=>array()\r\n );\r\n \r\n \r\n $allMilestones3=array(//prep\r\n \t1=>array(\"Body guy\",'011',\"Personal Health Profile\",'012',\"Pharmaco DA\",313,\"Addiction info\",314),\r\n\t2=>array(\"Kicking old habits\",324,\"When, where, why?\",325),\r\n 3=>array(\"Small steps\",331,\"Cutting out cravings\",332,\"What are your worries\",333),\r\n 4=>array(\"Update goals\",341,\"Avoid triggers\",342),\r\n 5=>array(\"Quitting game plan\",351,\"Why think about quitting\",352),\r\n 6=>array(),\r\n 7=>array(),\r\n 8=>array(),\r\n 9=>array()\r\n );\r\n\r\n \r\n\t\r\n\t\r\n\t$doRun=false;\r\n\t\r\n\tif(in_array($stepID, ${allMilestones.$stg}[$thismlstn])){\r\n\t\t$doRun=true;\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\tif($doRun){\r\n\t\r\n\t $mstnContent=array();\r\n\t \t \r\n\t $mstnContent= $_SESSION[\"mstnContent\"];\r\n\t\r\n\t \r\n\t \r\n\tif(!in_array($stepID, $mstnContent)){ \r\n\t \r\n\t $sqla=\"UPDATE PFHMilestones SET steps=CONCAT(steps, ', ', '$stepID') WHERE userID={$_SESSION[\"userID\"]} AND stageID={$_SESSION[\"stageID\"]} AND id={$_SESSION[\"milestoneID\"]}\"; \r\n\t \r\n\t \r\n\t $result=mysql_query($sqla, $mysqlID);\r\n\t \r\n\t $sqlb=\"SELECT steps FROM PFHMilestones WHERE userID={$_SESSION[\"userID\"]} AND stageID={$_SESSION[\"stageID\"]} AND id={$_SESSION[\"milestoneID\"]}\";\r\n\t \r\n\t $result=mysql_query($sqlb, $mysqlID);\r\n\t \r\n\t $stepz=mysql_fetch_row($result);\r\n\t \r\n\t $_SESSION[\"mstnContent\"]=explode(\", \", $stepz[0]);\r\n\t \r\n\t\r\n\t\t\t}\r\n\t\t\t\r\n\t }\r\n\t\t\t \r\n}", "title": "" }, { "docid": "db2699800b742aaa0e0350c1f0b46d4a", "score": "0.46075207", "text": "function accumulateActivityData($row, &$stats)\n{\n global $enumFeltDuringDay, $enumHowSleepy, $enumAttention, $enumBehavior, $enumInteraction;\n\n addData($stats['minExercised'], $row['minExercised']);\n addData($stats['numCaffeinatedDrinks'], $row['numCaffeinatedDrinks']);\n addData($stats['minVideoGame'], $row['minVideoGame']);\n addData($stats['minTechnology'], $row['minTechnology']);\n addData($stats['feltDuringDay'], $enumFeltDuringDay[$row['feltDuringDay']]);\n addData($stats['howSleepy'], $enumHowSleepy[$row['howSleepy']]);\n addData($stats['attention'], $enumAttention[$row['attention']]);\n addData($stats['behavior'], $enumBehavior[$row['behavior']]);\n addData($stats['interaction'], $enumInteraction[$row['interaction']]);\n}", "title": "" }, { "docid": "3098e0f653e685c7f2a43f4ad28ca8f3", "score": "0.4604342", "text": "private function trackerGrid() {\n\t\t\t\t\n\t\t$latestDays = filters\\timeFilter::getPeriodWithinRange(0, filters\\timeFilter::$daysTimeframe, $this->settingVars);\n\t\t\t\t\n\t\t$arr \t\t= array();\n\t\t$arrChart \t= array();\n\t\t$cols \t\t= array();\n\t\t\n\t\tif(isset($_REQUEST['PROMOTION']))\n\t\t{\n\t\t\tif($_REQUEST['PROMOTION'] == 'YES')\n\t\t\t{\n\t\t\t\t// filters\\timeFilter::prepareTyLyMydateRange($this->settingVars); //Total Weeks\n\t\t\t\t\n\t\t\t\t$qPart = '';\n\t\t\t\tif (isset($_REQUEST[\"FS\"]) && $_REQUEST[\"FS\"] != ''){\n\t\t\t\t\t$storeStock \t= $this->settingVars->dataArray['F18']['NAME'];\n\t\t\t\t\t$availInst \t\t= $this->settingVars->dataArray['F15']['NAME'];\n\t\t\t\t\t$depotService\t= $this->settingVars->dataArray['F14']['NAME'];\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$latestDay = filters\\timeFilter::getPeriodWithinRange(0, 1, $this->settingVars);\n\t\t\t\t\t\n\t\t\t\t\t//MAIN TABLE QUERY\t\t\t\n\t\t\t\t\t$query = \"SELECT \".$this->settingVars->maintable.\".skuID AS SKUID \" .\n\t\t\t\t\t\t\t\t\",sku AS SKU \" .\n\t\t\t\t\t\t\t\t\",\".$this->settingVars->dateField.\" AS MYDATES \" .\n\t\t\t\t\t\t\t\t\",SUM(\".$this->settingVars->ProjectValue.\") AS SALES\" .\n\t\t\t\t\t\t\t\t\",SUM(\".$this->settingVars->ProjectVolume.\") AS QTY\" .\n\t\t\t\t\t\t\t\t\",SUM($storeStock) AS STORESTOCK\".\n\t\t\t\t\t\t\t\t\",AVG($availInst) AS STOREINSTOCK\".\n\t\t\t\t\t\t\t\t\",AVG($depotService) AS DEPOTSERVICE\".\n\t\t\t\t\t\t\t\t\" FROM \" . $this->settingVars->tablename . $this->queryPart .\n\t\t\t\t\t\t\t\t\" AND (\" . filters\\timeFilter::$tyWeekRange . \" OR \" . filters\\timeFilter::$lyWeekRange . \") GROUP BY SKUID, SKU, MYDATES ORDER BY MYDATES ASC, SALES DESC\";\n\t\t\t\t\t//echo $query;exit;\n\t\t\t\t\t$result = $this->queryVars->queryHandler->runQuery($query, $this->queryVars->linkid, db\\ResultTypes::$TYPE_OBJECT);\n\t\t\t\t\t\n\t\t\t\t\t$temp1\t= array();\n\t\t\t\t\t$temp2\t= array();\n\t\t\t\t\t$temp3\t= array();\n\t\t\t\t\t$temp4\t= array();\n\t\t\t\t\t$temp5\t= array();\n\t\t\t\t\t$latestDays = array_reverse($latestDays);\n\t\t\t\t\tforeach($latestDays as $lw)\n\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tif($key == 0)\n\t\t\t\t\t\t\t$cols[] \t= array('data'=>'L_'.str_replace(\"-\",\"\",$lw),'label'=>date(\"jS M Y\",strtotime($lw)));\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tif (is_array($result) && !empty($result)) {\n\t\t\t\t\t\t\t$searchKey = array_search($lw,array_column($result,\"MYDATES\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($searchKey)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$value = $result[$searchKey];\n\t\t\t\t\t\t\t$temp1[\"L_\".str_replace(\"-\",\"\",$lw)]\t= (int)$value['SALES'];\n\t\t\t\t\t\t\t$temp2[\"L_\".str_replace(\"-\",\"\",$lw)]\t= (int)$value['QTY'];\n\t\t\t\t\t\t\t$temp3[\"L_\".str_replace(\"-\",\"\",$lw)]\t= (int)$value['STORESTOCK'];\n\t\t\t\t\t\t\t$account = $lw;\n\t\t\t\t\t\t\tif (in_array($account, filters\\timeFilter::$tyDaysRange)) { //$numberFrom AND $numberTo COMES HANDY HERE\n\t\t\t\t\t\t\t\t$temp4[\"L_\".str_replace(\"-\",\"\",$lw)] \t= number_format($value['STOREINSTOCK'],1, '.', '');\n\t\t\t\t\t\t\t\t$temp5[\"L_\".str_replace(\"-\",\"\",$lw)]\t= number_format($value['DEPOTSERVICE'],1, '.', '');\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$temp = array();\n\t\t\t\t\t\t\t$temp['MYDATE'] = $lw;\n\t\t\t\t\t\t\t$temp['QTY'] = (int)$value['QTY'];\n\t\t\t\t\t\t\t$temp['STORESTOCK'] = (int)$value['STORESTOCK'];\n\t\t\t\t\t\t\t$temp['STOREINSTOCK'] = number_format($value['STOREINSTOCK'],1, '.', '');\n\t\t\t\t\t\t\t$temp['DEPOTSERVICE'] = number_format($value['DEPOTSERVICE'],1, '.', '');\n\t\t\t\t\t\t\t$arrChart[] = $temp;\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$temp1[\"L_\".str_replace(\"-\",\"\",$lw)] = $temp2[\"L_\".str_replace(\"-\",\"\",$lw)] = $temp3[\"L_\".str_replace(\"-\",\"\",$lw)] = $temp4[\"L_\".str_replace(\"-\",\"\",$lw)] = $temp5[\"L_\".str_replace(\"-\",\"\",$lw)] = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$temp = array();\n\t\t\t\t\t\t\t$temp['MYDATE'] = $lw;\n\t\t\t\t\t\t\t$temp['QTY'] = $temp['STORESTOCK'] = $temp['STOREINSTOCK'] = $temp['DEPOTSERVICE'] = 0;\n\t\t\t\t\t\t\t$arrChart[] = $temp;\n\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t$temp1['label'] = \"SALES \".$this->settingVars->currencySign;\n\t\t\t\t\t$temp2['label'] = \"QTY\";\n\t\t\t\t\t$temp3['label'] = \"STORE STOCK\";\n\t\t\t\t\t$temp4['label'] = \"STORE INSTOCK %\";\n\t\t\t\t\t$temp5['label'] = \"DEPOT SERVICE %\";\n\t\t\t\t\t\n\t\t\t\t\t$arr[0]\t= $temp1;\t\t\t\t\n\t\t\t\t\t$arr[1]\t= $temp2;\t\t\t\t\n\t\t\t\t\t$arr[2]\t= $temp3;\t\t\t\t\n\t\t\t\t\t$arr[3]\t= $temp4;\t\t\t\t\n\t\t\t\t\t$arr[4]\t= $temp5;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfilters\\timeFilter::fetchPeriodWithinRange(0, filters\\timeFilter::$daysTimeframe, $this->settingVars); //To get $mydateRange\n\t\t\t\t\n\t\t\t\t$act = $_REQUEST['ACCOUNT'];\n\t\t\t\t$account = $this->settingVars->dataArray[$act]['NAME'];\n\t\t\t\t\n\t\t\t\t//asort($latestDays);\n\t\t\t\t\n\t\t\t\t$getLdates = array();\n\t\t\t\tforeach($latestDays as $date)\n\t\t\t\t{\t\t\t\n\t\t\t\t\t$getLdates[] = \"MAX((CASE WHEN \" . $this->settingVars->period . \"='\".$date.\"' THEN 1 ELSE 0 END)*$account) AS DATE\".str_replace(\"-\",\"\",$date);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$qPart = implode(\",\",$getLdates);\n\t\t\t\t\n\t\t\t\t//MAIN TABLE QUERY\n\t\t\t\t$query = \"SELECT \".$this->settingVars->maintable.\".skuID AS SKUID \" .\n\t\t\t\t\t\",sku AS SKU \" .\n\t\t\t\t\t\",SUM(\".$this->settingVars->ProjectValue.\") AS SALES\" .\n\t\t\t\t\t\",SUM(\".$this->settingVars->ProjectVolume.\") AS QTY,\" .\n\t\t\t\t\t$qPart.\n\t\t\t\t\t\" FROM \" . $this->settingVars->tablename . $this->queryPart .\n\t\t\t\t\t\" AND \" . filters\\timeFilter::$mydateRange . \" GROUP BY SKUID, SKU ORDER BY SALES DESC\";\n\t\t\t\t$result = $this->queryVars->queryHandler->runQuery($query, $this->queryVars->linkid, db\\ResultTypes::$TYPE_OBJECT);\n\t\t\t\t\n\t\t\t\tif (is_array($result) && !empty($result)) {\n\t\t\t\t\tforeach ($result as $key => $value) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t$temp \t\t\t\t= array();\n\t\t\t\t\t\t$temp['SKUID'] \t\t= $value['SKUID'];\n\t\t\t\t\t\t$temp['SKU'] \t\t= $value['SKU'];\n\t\t\t\t\t\t$temp['SALES'] \t\t= number_format($value['SALES'], 1, '.', '');\n\t\t\t\t\t\t$temp['QTY'] \t\t= number_format($value['QTY'], 1, '.', '');\n\t\t\t\t\t\tforeach($latestDays as $lw)\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\t\t\t\t\tif($key == 0)\n\t\t\t\t\t\t\t\t$cols[] \t= array('data'=>'Tracker_L'.str_replace(\"-\",\"\",$lw),'label'=>date(\"jS M Y\",strtotime($lw)));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$temp['Tracker_L'.str_replace(\"-\",\"\",$lw)] \t= number_format($value['DATE'.str_replace(\"-\",\"\",$lw)], 1, '.', '');\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$arr[] \t\t\t\t= $temp;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t}\n $this->jsonOutput['TrackerGrid'] \t= $arr;\n $this->jsonOutput['TrackerChart'] \t= $arrChart;\n $this->jsonOutput['Tracker_L'] \t\t= $cols;\n }", "title": "" }, { "docid": "56cfce173017b1ad23ad959a5bcb9135", "score": "0.46031052", "text": "function load_data_summary($station_ID) {\r\n\t\t$IBC1_level = 0.30;\t\t // Not sure if these are 100% accurate,\r\n\t\t$IBC2_LEVEL = 2.90; // I just read them of the graphs.\r\n\r\n\t\t// Look at the station_ID's data folder\r\n\t\t$data_files = scandir('data/'.$station_ID);\r\n\t\t\r\n\t\t// Read the most recent data file available\r\n\t\t$most_recent_data_file = trim($data_files[count($data_files)-1]);\r\n\t\t\r\n\t\t// Define the arrays of data\r\n\t\t$UTC_timestamp = array();\r\n\t\t$local_date = array();\r\n\t\t$local_time = array();\r\n\t\t$PMT_rad = array();\r\n\t\t$duration = array();\r\n\t\t\r\n\t\t/* Sets up TimeZone information which is used by the date() function */\r\n \tputenv(\"TZ=\");\r\n\t\t\r\n\t\t$row_number = 0;\r\n\t\t$handle = fopen(\"data/\".$station_ID.\"/\".$most_recent_data_file,\"r\");\r\n\t\twhile($data = fgetcsv($handle, 2048)){\r\n \t$row_number++;\r\n\t\t\tif ($row_number > 2) {\r\n\t\t\t\t$trimmed_timestamp = trim($data[0]);\r\n\t\t\t\t$UTC_timestamp[] = $trimmed_timestamp;\r\n\t\t\t\t\r\n\t\t\t\t$temp_time = strtotime($trimmed_timestamp);\r\n\t\t\t\t$daylight_savings = date('I', $temp_time);\r\n\t\t\t\tif ($daylight_savings == \"1\") {\r\n\t\t\t\t\t$temp_time -= 6*3600;\r\n\t\t\t\t\t$local_date[] = date('M j, Y', $temp_time);\r\n\t\t\t\t\t$local_time[] = date('g:i:s a', $temp_time);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$temp_time -= 7*3600;\t\r\n\t\t\t\t\t$local_date[] = date('M j, Y', $temp_time);\r\n\t\t\t\t\t$local_time[] = date('g:i:s a', $temp_time);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$current_PMT_rad = trim($data[6]);\r\n\t\t\t\t$PMT_rad[] = $current_PMT_rad;\r\n\t\t\t\t\r\n\t\t\t\tif ($current_PMT_rad >= $IBC1_level) {\r\n\t\t\t\t\tif ($UTC_timestamp[count($UTC_timestamp) - 2] == NULL) {\r\n\t\t\t\t\t\t$duration[] = 0;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$time_difference = strtotime($UTC_timestamp[count($UTC_timestamp)-1]) - strtotime($UTC_timestamp[count($UTC_timestamp)-2]);\r\n\t\t\t\t\t\t$duration[] = $duration[count($duration)-1] + $time_difference;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$duration[] = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t$data = array(\"date\" => $local_date, \"time\" => $local_time, \"PMT_rad\" => $PMT_rad, \"duration\" => $duration);\r\n\t\treturn $data;\r\n\t}", "title": "" }, { "docid": "82834d3424b9a777fcef0b731329e36b", "score": "0.4597698", "text": "function dostep10()\n{\n\thead();\n\tglobal $db_prefix;\n\n\techo 'Merging daily statistics...<br>';\n\n\t// Get stats from primary\n\techo 'Getting stats from primary';\n\t$primary_activity = array();\n\t$sql = 'SELECT date, hits, topics, posts, registers, most_on FROM ' . PRIMARY_DB_PREFIX . 'log_activity';\n\t$query = call_mysqli_query($sql, false);\n\twhile($row = mysqli_fetch_assoc($query))\n\t\t$primary_activity[$row['date']] = array('hits' => $row['hits'], 'topics' => $row['topics'], 'posts' => $row['posts'], 'registers' => $row['registers'], 'most_on' => $row['most_on']);\n\tmysqli_free_result($query);\n\techo \"...done.<br>\";\n\n\t// Get stats from secondary\n\techo 'Getting stats from secondary';\n\t$secondary_activity = array();\n\t$sql = 'SELECT date, hits, topics, posts, registers, most_on FROM ' . $db_prefix . 'log_activity';\n\t$query = call_mysqli_query($sql, false);\n\twhile($row = mysqli_fetch_assoc($query))\n\t\t$secondary_activity[$row['date']] = array('hits' => $row['hits'], 'topics' => $row['topics'], 'posts' => $row['posts'], 'registers' => $row['registers'], 'most_on' => $row['most_on']);\n\tmysqli_free_result($query);\n\techo \"...done.<br>\";\n\n\t// Add secondary stats into primary\n\techo 'Adding them together';\n\tforeach($secondary_activity AS $secdate => $stats)\n\t{\n\t\tif (array_key_exists($secdate, $primary_activity))\n\t\t{\n\t\t\t$primary_activity[$secdate]['hits'] = $primary_activity[$secdate]['hits'] + $secondary_activity[$secdate]['hits'];\n\t\t\t$primary_activity[$secdate]['topics'] = $primary_activity[$secdate]['topics'] + $secondary_activity[$secdate]['topics'];\n\t\t\t$primary_activity[$secdate]['posts'] = $primary_activity[$secdate]['posts'] + $secondary_activity[$secdate]['posts'];\n\t\t\t$primary_activity[$secdate]['registers'] = $primary_activity[$secdate]['registers'] + $secondary_activity[$secdate]['registers'];\n\t\t\t$primary_activity[$secdate]['most_on'] = $primary_activity[$secdate]['most_on'] + $secondary_activity[$secdate]['most_on'];\n\t\t}\n\t\telse\n\t\t\t$primary_activity[$secdate] = $stats;\n\t}\n\n\t// Convert to text for easy inserts\n\t$inserts = array();\n\tforeach($primary_activity AS $primdate => $stats)\n\t\t$inserts[] = '(\\'' . $primdate . '\\',' . implode(',', $stats) . ')';\n\techo \"...done.<br>\";\n\n\t// Wipe out target stats & replace\n\techo 'Updating stats on primary';\n\t$sql = 'TRUNCATE ' . PRIMARY_DB_PREFIX . 'log_activity';\n\t$query = call_mysqli_query($sql, false);\n\n\t$sql = 'INSERT INTO ' . PRIMARY_DB_PREFIX . 'log_activity (date, hits, topics, posts, registers, most_on) VALUES ' . implode(', ', $inserts);\n\t$query = call_mysqli_query($sql, false);\n\techo \"...done.<br>\";\n\n\techo '<br /><br /><center><a href=\"'.$_SERVER['PHP_SELF'].'?step=11\">Continue Step 11</a></center>';\n\n\tfoot();\n}", "title": "" }, { "docid": "49823cfe3af496abe3e1747ec359da96", "score": "0.45959225", "text": "private function getDataVariables($timeframe) {\n\n if ($timeframe == \"lasthour\") {\n $sql_timeframe = \"%Y-%m-%d %H:%i\";\n $result = array(\n \"starttime\" => mktime(date(\"H\") - 1 , date(\"i\"), date(\"s\"), date(\"m\") , date(\"d\") , date(\"Y\")),\n \"for_x\" => 60,\n \"str_to_time\" => \"minute\",\n \"date_str\" => DEFAULT_DATEFORMAT_SHORT,\n \"sql_timeframe\" => $sql_timeframe,\n \"sql_from\" => \"from_unixtime(oob_time_sec, '$sql_timeframe')\"\n );\n }\n elseif ($timeframe == \"last15min\") {\n $sql_timeframe = \"%Y-%m-%d %H:%i\";\n $result = array(\n \"starttime\" => mktime(date(\"H\") , date(\"i\"), date(\"s\"), date(\"m\") - 15 , date(\"d\") , date(\"Y\")),\n \"for_x\" => 15,\n \"str_to_time\" => \"minute\",\n \"date_str\" => DEFAULT_DATEFORMAT_SHORT,\n \"sql_timeframe\" => $sql_timeframe,\n \"sql_from\" => \"from_unixtime(oob_time_sec, '$sql_timeframe')\"\n );\n }\n elseif ($timeframe == \"last30min\") {\n $sql_timeframe = \"%Y-%m-%d %H:%i\";\n $result = array(\n \"starttime\" => mktime(date(\"H\") , date(\"i\"), date(\"s\"), date(\"m\") - 30, date(\"d\") , date(\"Y\")),\n \"for_x\" => 30,\n \"str_to_time\" => \"minute\",\n \"date_str\" => DEFAULT_DATEFORMAT_SHORT,\n \"sql_timeframe\" => $sql_timeframe,\n \"sql_from\" => \"from_unixtime(oob_time_sec, '$sql_timeframe')\"\n );\n } \n elseif ($timeframe == \"lastweek\") {\n $sql_timeframe = \"%Y-%m-%d\";\n $result = array(\n \"starttime\" => mktime(date(\"H\") , date(\"i\"), date(\"s\"), date(\"m\") , date(\"d\") - 7, date(\"Y\")),\n \"for_x\" => 7,\n \"str_to_time\" => \"day\",\n \"date_str\" => \"Y-m-d\",\n \"sql_timeframe\" => $sql_timeframe,\n \"sql_from\" => \"from_unixtime(oob_time_sec, '$sql_timeframe')\"\n );\n }\n elseif ($timeframe == \"last4hour\") {\n $sql_timeframe = \"%d/%m %H:00\";\n $result = array(\n \"starttime\" => mktime(date(\"H\") - 4 , date(\"i\"), date(\"s\"), date(\"m\") , date(\"d\"), date(\"Y\")),\n \"for_x\" => 4,\n \"str_to_time\" => \"hour\",\n \"date_str\" => \"d/m H:00\",\n \"sql_timeframe\" => $sql_timeframe,\n \"sql_from\" => \"from_unixtime(oob_time_sec, '$sql_timeframe')\"\n ); \n } \n elseif ($timeframe == \"last12hour\") {\n $sql_timeframe = \"%d/%m %H:00\";\n $result = array(\n \"starttime\" => mktime(date(\"H\") - 12 , date(\"i\"), date(\"s\"), date(\"m\") , date(\"d\"), date(\"Y\")),\n \"for_x\" => 12,\n \"str_to_time\" => \"hour\",\n \"date_str\" => \"d/m H:00\",\n \"sql_timeframe\" => $sql_timeframe,\n \"sql_from\" => \"from_unixtime(oob_time_sec, '$sql_timeframe')\"\n ); \n }\n elseif ($timeframe == \"lastday\") {\n $sql_timeframe = \"%d/%m %H:00\";\n $result = array(\n \"starttime\" => mktime(date(\"H\") , date(\"i\"), date(\"s\"), date(\"m\") , date(\"d\") - 1, date(\"Y\")),\n \"for_x\" => 24,\n \"str_to_time\" => \"hour\",\n \"date_str\" => \"d/m H:00\",\n \"sql_timeframe\" => $sql_timeframe,\n \"sql_from\" => \"from_unixtime(oob_time_sec, '$sql_timeframe')\"\n ); \n }\n elseif ($timeframe == \"last2day\") {\n $sql_timeframe = \"%d/%m %H:00\";\n $result = array(\n \"starttime\" => mktime(date(\"H\") , date(\"i\"), date(\"s\"), date(\"m\") , date(\"d\") - 2, date(\"Y\")),\n \"for_x\" => 48,\n \"str_to_time\" => \"hour\",\n \"date_str\" => \"d/m H:00\",\n \"sql_timeframe\" => $sql_timeframe,\n \"sql_from\" => \"from_unixtime(oob_time_sec, '$sql_timeframe')\"\n ); \n } \n elseif ($timeframe == \"last3day\") {\n $sql_timeframe = \"%d/%m %H:00\";\n $result = array(\n \"starttime\" => mktime(date(\"H\") , date(\"i\"), date(\"s\"), date(\"m\") , date(\"d\") - 3, date(\"Y\")),\n \"for_x\" => 76,\n \"str_to_time\" => \"hour\",\n \"date_str\" => \"d/m H:00\",\n \"sql_timeframe\" => $sql_timeframe,\n \"sql_from\" => \"from_unixtime(oob_time_sec, '$sql_timeframe')\"\n ); \n }\n elseif ($timeframe == \"lastmonth\") {\n $sql_timeframe = \"%d/%m\";\n $result = array(\n \"starttime\" => mktime(date(\"H\") , date(\"i\"), date(\"s\"), date(\"m\") - 1, date(\"d\") , date(\"Y\")),\n \"for_x\" => 31,\n \"str_to_time\" => \"day\",\n \"date_str\" => \"d/m\",\n \"sql_timeframe\" => $sql_timeframe,\n \"sql_from\" => \"from_unixtime(oob_time_sec, '$sql_timeframe')\"\n );\n }\n elseif ($timeframe == \"last3month\") {\n $sql_timeframe = \"%d/%m\";\n $result = array(\n \"starttime\" => mktime(date(\"H\") , date(\"i\"), date(\"s\"), date(\"m\") - 3, date(\"d\") , date(\"Y\")),\n \"for_x\" => 93,\n \"str_to_time\" => \"day\",\n \"date_str\" => \"d/m\",\n \"sql_timeframe\" => $sql_timeframe,\n \"sql_from\" => \"from_unixtime(oob_time_sec, '$sql_timeframe')\"\n );\n }\n\n return $result;\n }", "title": "" }, { "docid": "16ef089ebe0f88291be147103f976fda", "score": "0.45945448", "text": "function getLastMeasurements() //Obtiene las ultimas mediciones de un monitor\n {\n $monitors = Monitor::where('state',1)->get();\n foreach ($monitors as $monitor) {\n $dataString = \"\";\n if (count($monitor->transformers()->orderBy('pivot_created_at', 'asc')->get()->first()->registers) != 0){\n if (count($monitor->transformers()->orderBy('pivot_created_at', 'asc')->get()->first()->registers->last()->gases) != 0){\n $dataString .= \"Última fecha de medición: \".$monitor->transformers()->orderBy('pivot_created_at', 'asc')->get()->first()->registers->last()->date.\" \".$monitor->transformers()->orderBy('pivot_created_at', 'asc')->get()->first()->registers->last()->gases->last()->pivot->hour;\n $dataString .= \"<table class='table table-bordered'>\";\n $dataString .= \"<thead>\";\n $dataString .= \"<tr>\";\n $dataString .= \"<th>Gas</th>\";\n $dataString .= \"<th>Valor</th>\";\n $dataString .= \"</tr>\";\n $dataString .= \"</thead>\";\n $dataString .= \"<tbody>\";\n foreach ($monitor->gases as $gas){\n $dataString .= \"<tr>\";\n $dataString .= \"<td>\".$gas->name.\"</td>\";\n $dataString .= \"<td>\";\n if ($monitor->transformers()->orderBy('pivot_created_at', 'asc')->get()->first()->registers->last()->gases->where('name',$gas->name)->last() != NULL){\n $dataString .= $monitor->transformers()->orderBy('pivot_created_at', 'asc')->get()->first()->registers->last()->gases->where('name',$gas->name)->last()->pivot->ppm;\n }else{\n $dataString .= \"Sin registros\";\n }\n $dataString .= \"</td>\";\n $dataString .= \"</tr>\";\n }\n $dataString .= \"</tbody>\";\n $dataString .= \"</table>\";\n }\n }else{\n $dataString .= \"<h4 class='text-dark text-center'>Sin mediciones</h4>\";\n }\n $information[] = $dataString;\n $monitorsId[] = $monitor->id;\n }\n $data = compact('information','monitorsId');\n return json_encode($data);\n }", "title": "" }, { "docid": "89af54c28d4452874e75e62db3717734", "score": "0.4591237", "text": "function createHourLogSheet($name, $data, &$workBook, $ambs){\n\t$file = 0;\n\t$excel = 1;\n\n\t$cols = array('Log ID', 'Date', 'Date Logged', 'Ambassador', 'Event Name', 'Hours', 'People', 'Schools', 'Experience', 'Questions', 'Would make your job better', 'Improvements you could make');\n\t$entries = array('id', 'eventDate', 'logTime', 'ambassador', 'eventName', 'hours', 'peopleInteracted', 'otherSchools', 'experience', 'questions', 'madeJobBetter', 'improvements');\n\n\t$numSemesterTours = count($data);\n\tif($excel)\n\t\t$tourSheet = & $workBook->add_worksheet($name. ' Hours');\n\tif($file)\n\t\tfwrite($f, \"\\nWorksheet: $name Tours\\n\");\n\t$numCols = count($cols);\n\n\t//Set the column widths\n\tfor($col = 0; $col < $numCols; $col++){\n\t\t$colName = $cols[$col];\n\t\t$colRef = $entries[$col];\t\n\t\t$maxWidth = getTextWidth($colName);\n\t\tif($excel)\n\t\t\t$tourSheet->write_string(0, $col, $colName);\n\t\tif($file)\n\t\t\tfwrite($f, \"Row: 0, Col: $col, $colRef: $colName, width:$maxWidth\\t\");\n\n\t\tfor($logNum = 0; $logNum < $numSemesterTours; $logNum++){\n\t\t\t$text = $data[$logNum][$colRef];\n\t\t\tif($colRef == 'ambassador')\n\t\t\t{\n\t\t\t\t$text = $ambs[\"$text\"]['name'];\n\t\t\t}\n\t\t\t$width = getTextWidth($text);\n\t\t\tif($width > $maxWidth){\n\t\t\t\t$maxWidth = $width;\n\t\t\t}\n\t\t\t/*\n\t\t\t //formats do not work at the moment\n\t\t\t if($col == 0){\n\t\t\t\t$tourSheet->set_row($logNum + 1, NULL, $formatOffset + ($tour % 2));\n\t\t\t}\n\t\t\t*/\n\t\t}\n\t\tif($file)\n\t\t\tfwrite($f, \"\\n\");\n\t\tif($excel)\n\t\t\t$tourSheet->set_column($col, $col, $maxWidth * (2.0/3.0));\n\t}\n\n\t//Now we just add all the logs to the right page\n\tfor($col = 0; $col < $numCols; $col++){\n\t\t$colRef = $entries[$col];\n\t\tfor($logNum = 0; $logNum < $numSemesterTours; $logNum++){\n\t\t\t$text = $data[$logNum][$colRef];\n\t\t\tif($colRef == 'ambassador')\n\t\t\t{\n\t\t\t\t$text = $ambs[\"$text\"]['name'];\n\t\t\t}\n if(is_numeric($text)){\n \tif ($colRef == 'hours') {\n $tourSheet->write_number($logNum + 1, $col, floatval($text));\n }\n else {\n\t\t\t\t $tourSheet->write_number($logNum + 1, $col, intval($text));\n }\n\t\t\t} else {\n\t\t\t\t$tourSheet->write_string($logNum + 1, $col, $text);\n\t\t\t}\n\t\t}\n\t}\n}", "title": "" }, { "docid": "fec6b6af6ad071115be8e5a1fc0b98ed", "score": "0.45867413", "text": "function cumulative_despatch(){\n\n // No of days calculation from the user input date rage\n $mines=array(\"KRB\", \"MBR\",\"BOL\", \"BAR\",\"TAL\",\"KAL\",\"GUA\",\"MPR\");\n $yymm = textboxValue('yymm');\n $lyr_mth =strval((int)substr($yymm,0,4)-1).substr($yymm,4,2);\n if((int)substr($yymm,4,2) <=3){\n $start_mth_cyr =strval((int)substr($yymm,0,4)-1).'04';\n $start_mth_lyr =strval((int)substr($yymm,0,4)-2).'04';\n }\n else{\n $start_mth_cyr =substr($yymm,0,4).'04';\n $start_mth_lyr =strval((int)substr($yymm,0,4)-1).'04';\n }\n // echo $yymm;\n // echo $lyr_mth;\n // echo $start_mth_cyr;\n // echo $start_mth_lyr;\n $despatchArray =array_fill(0, 9, array_fill(0,6, 0));\n \n // Lump App for the month\n $sql_mth_l_p =\"SELECT unit, comm, SUM(plan_qty) as TApp FROM u_ds_plan WHERE (yymm>='$start_mth_cyr' AND yymm<='$yymm') GROUP BY unit,comm\";\n $result=mysqli_query($GLOBALS['con'],$sql_mth_l_p);\n if(mysqli_num_rows($result)>0){\n while($row=mysqli_fetch_assoc($result)){\n // // echo $row_l_qty['cust'].\" \" .$row_l_qty['unit']. \" \" .$row_l_qty['l_qty']. \" <br />\";\n if( $row['comm']=='L'){\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $despatchArray[$j][0] =+$row['TApp']; \n $despatchArray[8][0]=$despatchArray[8][0]+$row['TApp']; \n }}}\n else{\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $despatchArray[$j][3] =+$row['TApp']; \n $despatchArray[8][3]=$despatchArray[8][3]+$row['TApp']; \n }\n }\n } } \n }else{ echo \"Error: \" . $sql_mth_l_p . \"<br>\" . $GLOBALS['con']->error; }\n\n \n // Lump & Fines & TotalAct for the month\n $sql_mth_l =\"SELECT unit, comm, SUM(act_qty) as CumDespatch FROM u_ds_mth WHERE (yymm>='$start_mth_cyr' AND yymm<='$yymm') GROUP BY unit, comm\";\n $result=mysqli_query($GLOBALS['con'],$sql_mth_l);\n if(mysqli_num_rows($result)>0){\n while($row=mysqli_fetch_assoc($result)){\n if( $row['comm']=='L'){\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $despatchArray[$j][1] =+$row['CumDespatch']; \n $despatchArray[8][1]=$despatchArray[8][1]+$row['CumDespatch']; \n }}}\n else{\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $despatchArray[$j][4] =+$row['CumDespatch']; \n $despatchArray[8][4]=$despatchArray[8][4]+$row['CumDespatch']; \n }\n }\n } } \n }else{ echo \"Error: \" . $sql_mth_l . \"<br>\" . $GLOBALS['con']->error; }\n\n // CPLY Cumulative despatch \n $sql_lyr_mth_l =\"SELECT unit, comm, SUM(act_qty) as cplyDespatch FROM u_ds_mth WHERE (yymm>='$start_mth_lyr' AND yymm<='$lyr_mth') GROUP BY unit, comm\";\n $result=mysqli_query($GLOBALS['con'],$sql_lyr_mth_l);\n if(mysqli_num_rows($result)>0){\n while($row=mysqli_fetch_assoc($result)){\n // // echo $row_l_qty['cust'].\" \" .$row_l_qty['unit']. \" \" .$row_l_qty['l_qty']. \" <br />\";\n if( $row['comm']=='L'){\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $despatchArray[$j][2] =+$row['cplyDespatch']; \n $despatchArray[8][2]=$despatchArray[8][2]+$row['cplyDespatch']; \n }}}\n else{\n for($j=0; $j<=7;$j++){\n if ( $mines[$j]==$row['unit'] ){ \n $despatchArray[$j][5] =+$row['cplyDespatch']; \n $despatchArray[8][5]=$despatchArray[8][5]+$row['cplyDespatch']; \n }\n }\n } } \n }else{\n echo \"Error: \" . $sql_lyr_mth_l . \"<br>\" . $GLOBALS['con']->error;\n }\n//print_r($despatchArray);\n return $despatchArray;\n\n }", "title": "" }, { "docid": "b5d033cd959322149ac7baf697e21257", "score": "0.4583772", "text": "public function run()\n {\n DB::table('jadwals')->insert(array(\n [\n 'jam' => '07.00 - 08.00',\n ],\n [\n 'jam' => '08.00 - 09.00',\n ],\n [\n 'jam' => '09.00 - 10.00',\n ],\n [\n 'jam' => '10.00 - 11.00',\n ],\n [\n 'jam' => '11.00 - 12.00',\n ],\n [\n 'jam' => '12.00 - 13.00',\n ],\n [\n 'jam' => '13.00 - 14.00',\n ],\n [\n 'jam' => '14.00 - 15.00',\n ],\n [\n 'jam' => '16.00 - 17.00',\n ],\n [\n 'jam' => '17.00 - 18.00',\n ],\n [\n 'jam' => '18.00 - 19.00',\n ],\n [\n 'jam' => '19.00 - 20.00',\n ],\n [\n 'jam' => '20.00 - 21.00',\n ],\n [\n 'jam' => '21.00 - 22.00',\n ],\n [\n 'jam' => '22.00 - 23.00',\n ],\n [\n 'jam' => '23.00 - 00.00',\n ]\n ));\n }", "title": "" }, { "docid": "bf83b0fe9d83c6a5e417d85774fb24e2", "score": "0.4582009", "text": "public function run()\n {\n $query = \"INSERT INTO games VALUES (NULL, 1, 4, 3, 0, 0, 0, 1501545600, 1501545600 ), (NULL, 1, 2, 3, 0, 0, 0, 1501545600, 1501545600 ), (NULL, 1, 3, 3, 0, 0, 0, 1501545600, 1501545600 ), (NULL, 1, 1, 3, 1, 0, 0, 1501545600, 1501545600 ), (NULL, 1, 7, 3, 1, 1, 0, 1501545600, 1501545600 ), (NULL, 2, 4, 3, 1, 0, 0, 1501545600, 1501545600 ), (NULL, 2, 2, 3, 0, 0, 0, 1501545600, 1501545600 ), (NULL, 2, 3, 3, 1, 0, 0, 1501545600, 1501545600 ), (NULL, 2, 1, 3, 1, 0, 0, 1501545600, 1501545600 ), (NULL, 2, 7, 3, 1, 1, 0, 1501545600, 1501545600 ), (NULL, 3, 2, 3, 0, 0, 0, 1501545600, 1501545600 ), (NULL, 3, 3, 3, 2, 0, 0, 1501545600, 1501545600 ), (NULL, 3, 1, 3, 1, 0, 0, 1501545600, 1501545600 ), (NULL, 4, 2, 3, 0, 1, 0, 1501545600, 1501545600 ), (NULL, 4, 3, 3, 0, 0, 0, 1501545600, 1501545600 ), (NULL, 4, 1, 3, 0, 0, 0, 1501545600, 1501545600 ), (NULL, 5, 2, 3, 1, 0, 0, 1501545600, 1501545600 ), (NULL, 5, 3, 3, 2, 0, 0, 1501545600, 1501545600 ), (NULL, 5, 1, 3, 0, 0, 0, 1501545600, 1501545600 ), (NULL, 6, 2, 3, 1, 0, 0, 1501545600, 1501545600 ), (NULL, 6, 3, 3, 2, 0, 0, 1501545600, 1501545600 ), (NULL, 6, 1, 3, 0, 1, 0, 1501545600, 1501545600 ), (NULL, 6, 4, 3, 0, 0, 0, 1501545600, 1501545600 ), (NULL, 7, 2, 3, 0, 0, 0, 1501545600, 1501545600 ), (NULL, 7, 3, 3, 1, 0, 0, 1501545600, 1501545600 ), (NULL, 7, 1, 3, 1, 1, 0, 1501545600, 1501545600 ), (NULL, 7, 4, 3, 1, 0, 0, 1501545600, 1501545600 ), (NULL, 8, 2, 3, 1, 0, 0, 1501545600, 1501545600 ), (NULL, 8, 3, 3, 0, 1, 0, 1501545600, 1501545600 ), (NULL, 8, 1, 3, 1, 1, 0, 1501545600, 1501545600 ), (NULL, 9, 4, 3, 0, 0, 0, 1501718400, 1501718400 ), (NULL, 9, 2, 3, 0, 0, 0, 1501718400, 1501718400 ), (NULL, 9, 3, 3, 0, 1, 0, 1501718400, 1501718400 ), (NULL, 9, 1, 3, 1, 0, 0, 1501718400, 1501718400 ), (NULL, 10, 2, 3, 0, 0, 0, 1501718400, 1501718400 ), (NULL, 10, 3, 3, 0, 1, 0, 1501718400, 1501718400 ), (NULL, 10, 1, 3, 0, 0, 0, 1501718400, 1501718400 ), (NULL, 11, 2, 3, 0, 0, 0, 1501718400, 1501718400 ), (NULL, 11, 3, 3, 1, 0, 0, 1501718400, 1501718400 ), (NULL, 11, 1, 3, 1, 0, 0, 1501718400, 1501718400 ), (NULL, 12, 2, 3, 0, 0, 0, 1501718400, 1501718400 ), (NULL, 12, 3, 3, 1, 0, 0, 1501718400, 1501718400 ), (NULL, 12, 1, 3, 2, 0, 0, 1501718400, 1501718400 ), (NULL, 13, 2, 3, 1, 0, 0, 1501718400, 1501718400 ), (NULL, 13, 3, 3, 1, 0, 0, 1501718400, 1501718400 ), (NULL, 13, 1, 3, 0, 0, 0, 1501718400, 1501718400 ), (NULL, 14, 2, 3, 0, 0, 0, 1501718400, 1501718400 ), (NULL, 14, 3, 3, 1, 1, 0, 1501718400, 1501718400 ), (NULL, 14, 1, 3, 1, 0, 0, 1501718400, 1501718400 ), (NULL, 15, 2, 3, 2, 0, 0, 1501718400, 1501718400 ), (NULL, 15, 3, 3, 1, 0, 0, 1501718400, 1501718400 ), (NULL, 15, 1, 3, 0, 0, 0, 1501718400, 1501718400 ), (NULL, 16, 2, 3, 2, 1, 0, 1502323200, 1502323200 ), (NULL, 16, 3, 3, 0, 1, 0, 1502323200, 1502323200 ), (NULL, 16, 1, 3, 0, 0, 0, 1502323200, 1502323200 ), (NULL, 16, 4, 3, 0, 0, 0, 1502323200, 1502323200 ), (NULL, 16, 7, 3, 0, 0, 0, 1502323200, 1502323200 ), (NULL, 17, 2, 3, 0, 1, 0, 1502668800, 1502668800 ), (NULL, 17, 3, 3, 0, 0, 0, 1502668800, 1502668800 ), (NULL, 17, 1, 3, 1, 1, 0, 1502668800, 1502668800 ), (NULL, 18, 2, 3, 0, 0, 0, 1502668800, 1502668800 ), (NULL, 18, 3, 3, 0, 0, 0, 1502668800, 1502668800 ), (NULL, 18, 1, 3, 1, 1, 0, 1502668800, 1502668800 ), (NULL, 18, 4, 3, 1, 0, 0, 1502668800, 1502668800 ), (NULL, 18, 7, 3, 0, 0, 0, 1502668800, 1502668800 ), (NULL, 19, 2, 3, 1, 0, 0, 1502668800, 1502668800 ), (NULL, 19, 3, 3, 0, 1, 0, 1502668800, 1502668800 ), (NULL, 19, 1, 3, 1, 0, 0, 1502668800, 1502668800 ), (NULL, 20, 2, 3, 0, 0, 0, 1502668800, 1502668800 ), (NULL, 20, 3, 3, 1, 0, 0, 1502668800, 1502668800 ), (NULL, 20, 1, 3, 0, 0, 0, 1502668800, 1502668800 ), (NULL, 21, 2, 3, 0, 0, 0, 1502668800, 1502668800 ), (NULL, 21, 3, 3, 1, 0, 0, 1502668800, 1502668800 ), (NULL, 21, 1, 3, 0, 0, 0, 1502668800, 1502668800 ), (NULL, 22, 2, 3, 1, 0, 0, 1502755200, 1502755200 ), (NULL, 22, 3, 3, 0, 1, 0, 1502755200, 1502755200 ), (NULL, 22, 1, 3, 0, 0, 0, 1502755200, 1502755200 ), (NULL, 22, 4, 3, 1, 0, 0, 1502755200, 1502755200 ), (NULL, 22, 7, 3, 1, 0, 0, 1502755200, 1502755200 ), (NULL, 23, 2, 3, 1, 0, 0, 1502755200, 1502755200 ), (NULL, 23, 3, 3, 0, 1, 0, 1502755200, 1502755200 ), (NULL, 23, 1, 3, 1, 0, 0, 1502755200, 1502755200 ), (NULL, 23, 4, 3, 1, 0, 0, 1502755200, 1502755200 ), (NULL, 23, 7, 3, 0, 0, 0, 1502755200, 1502755200 ), (NULL, 24, 2, 3, 0, 0, 0, 1502755200, 1502755200 ), (NULL, 24, 3, 3, 1, 0, 0, 1502755200, 1502755200 ), (NULL, 24, 1, 3, 1, 0, 0, 1502755200, 1502755200 ), (NULL, 25, 2, 3, 0, 0, 0, 1502755200, 1502755200 ), (NULL, 25, 3, 3, 1, 1, 0, 1502755200, 1502755200 ), (NULL, 25, 1, 3, 0, 0, 0, 1502755200, 1502755200 ), (NULL, 26, 2, 3, 0, 0, 0, 1502928000, 1502928000 ), (NULL, 26, 3, 3, 0, 0, 0, 1502928000, 1502928000 ), (NULL, 26, 1, 3, 1, 0, 0, 1502928000, 1502928000 ), (NULL, 26, 4, 3, 1, 0, 0, 1502928000, 1502928000 ), (NULL, 27, 2, 3, 0, 0, 0, 1502928000, 1502928000 ), (NULL, 27, 3, 3, 0, 1, 0, 1502928000, 1502928000 ), (NULL, 27, 1, 3, 0, 0, 0, 1502928000, 1502928000 ), (NULL, 27, 4, 3, 0, 0, 0, 1502928000, 1502928000 ), (NULL, 27, 7, 3, 1, 1, 0, 1502928000, 1502928000 ), (NULL, 28, 2, 3, 0, 1, 0, 1502928000, 1502928000 ), (NULL, 28, 3, 3, 0, 0, 0, 1502928000, 1502928000 ), (NULL, 28, 1, 3, 0, 1, 0, 1502928000, 1502928000 ), (NULL, 29, 2, 3, 1, 1, 0, 1503360000, 1503360000 ), (NULL, 29, 3, 3, 0, 0, 0, 1503360000, 1503360000 ), (NULL, 29, 1, 3, 1, 0, 0, 1503360000, 1503360000 ), (NULL, 30, 2, 3, 1, 0, 0, 1503532800, 1503532800 ), (NULL, 30, 3, 3, 0, 0, 0, 1503532800, 1503532800 ), (NULL, 30, 1, 3, 0, 0, 0, 1503532800, 1503532800 ), (NULL, 31, 2, 3, 0, 0, 0, 1503532800, 1503532800 ), (NULL, 31, 3, 3, 0, 0, 0, 1503532800, 1503532800 ), (NULL, 31, 1, 3, 0, 0, 0, 1503532800, 1503532800 ), (NULL, 31, 4, 3, 2, 0, 0, 1503532800, 1503532800 ), (NULL, 32, 2, 3, 0, 0, 0, 1503532800, 1503532800 ), (NULL, 32, 3, 3, 0, 0, 0, 1503532800, 1503532800 ), (NULL, 32, 1, 3, 2, 0, 0, 1503532800, 1503532800 ), (NULL, 33, 2, 3, 1, 0, 0, 1503532800, 1503532800 ), (NULL, 33, 3, 3, 0, 1, 0, 1503532800, 1503532800 ), (NULL, 33, 1, 3, 0, 0, 0, 1503532800, 1503532800 ), (NULL, 34, 2, 3, 1, 0, 0, 1503532800, 1503532800 ), (NULL, 34, 3, 3, 0, 1, 0, 1503532800, 1503532800 ), (NULL, 34, 1, 3, 0, 0, 0, 1503532800, 1503532800 ), (NULL, 35, 2, 3, 1, 0, 0, 1503878400, 1503878400 ), (NULL, 35, 3, 3, 0, 0, 0, 1503878400, 1503878400 ), (NULL, 35, 1, 3, 0, 0, 0, 1503878400, 1503878400 ), (NULL, 36, 4, 3, 1, 0, 0, 1503878400, 1503878400 ), (NULL, 36, 2, 3, 0, 0, 0, 1503878400, 1503878400 ), (NULL, 36, 3, 3, 0, 0, 0, 1503878400, 1503878400 ), (NULL, 36, 1, 3, 0, 0, 0, 1503878400, 1503878400 ), (NULL, 36, 6, 3, 0, 0, 0, 1503878400, 1503878400 ), (NULL, 36, 7, 3, 0, 0, 0, 1503878400, 1503878400 ), (NULL, 37, 2, 3, 0, 0, 0, 1503878400, 1503878400 ), (NULL, 37, 3, 3, 1, 0, 0, 1503878400, 1503878400 ), (NULL, 37, 1, 3, 0, 0, 0, 1503878400, 1503878400 ), (NULL, 38, 2, 3, 0, 0, 0, 1504137600, 1504137600 ), (NULL, 38, 3, 3, 1, 1, 0, 1504137600, 1504137600 ), (NULL, 38, 1, 3, 0, 1, 0, 1504137600, 1504137600 ), (NULL, 39, 2, 3, 1, 0, 0, 1504137600, 1504137600 ), (NULL, 39, 3, 3, 2, 0, 0, 1504137600, 1504137600 ), (NULL, 39, 1, 3, 0, 0, 0, 1504137600, 1504137600 ), (NULL, 40, 2, 3, 0, 0, 0, 1504137600, 1504137600 ), (NULL, 40, 3, 3, 1, 0, 0, 1504137600, 1504137600 ), (NULL, 40, 1, 3, 0, 1, 0, 1504137600, 1504137600 ), (NULL, 41, 2, 3, 0, 0, 0, 1504483200, 1504483200 ), (NULL, 41, 3, 3, 0, 0, 0, 1504483200, 1504483200 ), (NULL, 41, 1, 3, 1, 1, 0, 1504483200, 1504483200 ), (NULL, 42, 2, 3, 0, 0, 0, 1504483200, 1504483200 ), (NULL, 42, 3, 3, 2, 0, 0, 1504483200, 1504483200 ), (NULL, 42, 1, 3, 1, 0, 0, 1504483200, 1504483200 ), (NULL, 43, 2, 3, 1, 1, 0, 1504569600, 1504569600 ), (NULL, 43, 3, 3, 1, 0, 0, 1504569600, 1504569600 ), (NULL, 43, 1, 3, 0, 1, 0, 1504569600, 1504569600 ), (NULL, 44, 2, 3, 1, 0, 0, 1504569600, 1504569600 ), (NULL, 44, 3, 3, 0, 0, 0, 1504569600, 1504569600 ), (NULL, 44, 1, 3, 0, 0, 0, 1504569600, 1504569600 ), (NULL, 45, 2, 3, 0, 0, 0, 1504569600, 1504569600 ), (NULL, 45, 3, 3, 0, 0, 0, 1504569600, 1504569600 ), (NULL, 45, 1, 3, 1, 0, 0, 1504569600, 1504569600 ), (NULL, 45, 4, 3, 1, 0, 0, 1504569600, 1504569600 ), (NULL, 46, 2, 3, 0, 1, 0, 1504569600, 1504569600 ), (NULL, 46, 3, 3, 0, 0, 0, 1504569600, 1504569600 ), (NULL, 46, 1, 3, 0, 0, 0, 1504569600, 1504569600 ), (NULL, 46, 4, 3, 1, 0, 0, 1504569600, 1504569600 ), (NULL, 47, 2, 3, 0, 0, 0, 1504742400, 1504742400 ), (NULL, 47, 3, 3, 2, 0, 0, 1504742400, 1504742400 ), (NULL, 47, 1, 3, 0, 0, 0, 1504742400, 1504742400 ), (NULL, 48, 2, 3, 1, 0, 0, 1504742400, 1504742400 ), (NULL, 48, 3, 3, 2, 0, 0, 1504742400, 1504742400 ), (NULL, 48, 1, 3, 1, 1, 0, 1504742400, 1504742400 ), (NULL, 48, 7, 3, 1, 0, 0, 1504742400, 1504742400 ), (NULL, 49, 2, 3, 0, 0, 0, 1504742400, 1504742400 ), (NULL, 49, 3, 3, 2, 0, 0, 1504742400, 1504742400 ), (NULL, 49, 1, 3, 1, 1, 0, 1504742400, 1504742400 ), (NULL, 55, 1, 3, 0, 0, 0, 1505088000, 1505088000 ), (NULL, 55, 2, 3, 1, 0, 0, 1505088000, 1505088000 ), (NULL, 55, 4, 3, 0, 1, 0, 1505088000, 1505088000 ), (NULL, 55, 3, 3, 0, 0, 0, 1505088000, 1505088000 ), (NULL, 55, 7, 3, 0, 1, 0, 1505088000, 1505088000 ), (NULL, 56, 1, 3, 0, 0, 0, 1505347200, 1505347200 ), (NULL, 56, 2, 3, 0, 0, 0, 1505347200, 1505347200 ), (NULL, 56, 4, 3, 0, 0, 0, 1505347200, 1505347200 ), (NULL, 56, 3, 3, 1, 0, 0, 1505347200, 1505347200 ), (NULL, 57, 1, 3, 1, 1, 0, 1505347200, 1505347200 ), (NULL, 57, 2, 3, 0, 0, 0, 1505347200, 1505347200 ), (NULL, 57, 4, 3, 0, 0, 0, 1505347200, 1505347200 ), (NULL, 57, 3, 3, 1, 0, 0, 1505347200, 1505347200 ), (NULL, 58, 2, 3, 2, 0, 0, 1505347200, 1505347200 ), (NULL, 58, 1, 3, 0, 0, 0, 1505347200, 1505347200 ), (NULL, 58, 3, 3, 1, 0, 0, 1505347200, 1505347200 ), (NULL, 59, 2, 3, 1, 0, 0, 1505347200, 1505347200 ), (NULL, 59, 1, 3, 1, 1, 0, 1505347200, 1505347200 ), (NULL, 59, 3, 3, 1, 0, 0, 1505347200, 1505347200 ), (NULL, 60, 2, 3, 1, 0, 0, 1505347200, 1505347200 ), (NULL, 60, 1, 3, 0, 0, 0, 1505347200, 1505347200 ), (NULL, 60, 3, 3, 0, 0, 0, 1505347200, 1505347200 );\";\n \n\t\tDB::connection()->insert( $query );\n\t\t\n\t\t$this->command->info(\"Games table seeded :)\");\n }", "title": "" }, { "docid": "f1ac791add6b33a4074f784c58fcf96e", "score": "0.45658454", "text": "private function dataParser()\n {\n $previousEmp = '';\n $previousJobcode = '';\n\n foreach (array_slice($this->unparsedData, 1) as $line) {\n $end = new \\DateTime($line[9]);\n $start = new \\DateTime($line[8]);\n\n $nightDiff = $this->getNightDiff($start, $end);\n\n $filter = [\n 'employee' => $line[0],\n 'first Name' => $line[2],\n 'last Name' => $line[3],\n 'day' => $line[7],\n 'date' => $line[6],\n 'local_start_time' => date('h:i A', strtotime($line[8])),\n 'local_end_time' => date('h:i A', strtotime($line[9])),\n 'regular' => $line[12] == 'Rest/Lunch Break' && $this->resultFor == 'payroll' ? 0 : $line[11],\n 'jobcode' => $line[12]\n ];\n\n if ($this->resultFor == 'payroll') {\n // insert new array object to specific indexes\n $filter = array_slice($filter, 0, count($filter) - 1, true) +\n [\n 'break' => $line[12] != 'Rest/Lunch Break' ? 0 : $line[11],\n \"night_diff\" => $nightDiff\n ] +\n array_slice($filter, count($filter) - 1, count($filter) - 1, true);\n }\n\n $this->parsedDataperProject[$line[12]][$line[0]][] = $filter;\n if ($this->resultFor == 'payroll' && $line[0] == $previousEmp && $line[12] == 'Rest/Lunch Break') {\n $this->parsedDataperProject[$previousJobcode][$line[0]][] = $filter;\n }\n\n $this->parsedDataToBeSaved[$line[12]][$line[0]][$line[6]][] = $filter;\n\n $previousEmp = $line[0];\n $previousJobcode = $line[12];\n }\n }", "title": "" }, { "docid": "1047d0b0f23aa3c9432173466871cd8a", "score": "0.45609507", "text": "function get_lab_times(){\n\t\t$completed_query = $this->db->query(\"SELECT `session`.`treatment_id` FROM `session`,`session_members`,`user` WHERE `session_members`.`user_id` = `user`.`id` AND `session`.`end_time` <> 0 AND `session_members`.`session_id` = `session`.`id` AND `user`.`email` = '\" . $this->session->userdata('email') . \"'\");\n\t\tif($completed_query->num_rows()>0){ // user has completed at least one treatment\n\t\t\tforeach ($completed_query->result_array() as $row) {\n\t\t\t $completed[] = $row['treatment_id'];\n\t\t\t}\n\t\t\t//$exclusion_str = \"(\" . implode(\",\",$completed) . \")\";\n\t\t\t$exclusion_str = \"(0)\";\n\n\t\t\t// grab all the labs that are not closed yet, grab the dates in UTC format\n\t\t\t$open_lab_query = $this->db->query(\"SELECT `id`,`treatment_ids`, UNIX_TIMESTAMP(`open_time`) AS 'open', UNIX_TIMESTAMP(`close_time`) AS 'close' FROM `schedule` WHERE `close_time` > NOW() ORDER BY 'open'\");\n\t\t\tif($open_lab_query->num_rows()>0){ // there are open lab times\n\t\t\t\tforeach ($open_lab_query->result_array() as $row3) {\n\t\t\t\t\t//$row['treatment_ids']\n\t\t\t\t\t// see if this lab includes a treatment that this user has yet to complete\n\t\t\t\t\t$available_query = $this->db->query(\"SELECT * FROM `treatment` WHERE `treatment`.`id` IN \" . $row3['treatment_ids'] . \" AND `treatment`.`id` NOT IN $exclusion_str\");\n\t\t\t\t\tif($available_query->num_rows()>0){ // there are available treatments in this lab\n\t\t\t\t\t\tforeach ($available_query->result_array() as $row2) {\n\t\t\t\t\t\t $treatments[] = $row2['id'];\n\t\t\t\t\t\t if(in_array($row2['id'], $completed)){\n\t\t\t\t\t\t \t\t$closed_array[] = 1;\n\t\t\t\t\t\t } else {\n\t\t\t\t\t\t \t\t$closed_array[] = 0;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t //$controllers[] = \n\t\t\t\t\t\t}\n\t\t\t\t\t\t$treatments_str = \"(\" . implode(\",\",$treatments) . \")\";\n\t\t\t\t\t\t$available[$row3['id']]['treatment_ids'] = $treatments_str;\n\n\t\t\t\t\t\t$closed_str = \"(\" . implode(\",\", $closed_array) . \")\";\n\t\t\t\t\t\t$available[$row3['id']]['closed'] = $closed_str;\n\n\t\t\t\t\t\t$available[$row3['id']]['open_time'] = $row3['open'];\n\t\t\t\t\t\t$available[$row3['id']]['close_time'] = $row3['close'];\n\t\t\t\t\t\t$available[$row3['id']]['controller'] = $row3['close'];\n\t\t\t\t\t} else { // no available treatments\n\t\t\t\t\t\t// do nothing\n\t\t\t\t\t}\n\t\t\t\t\t$treatments = array();\n\t\t\t\t\t$closed_array = array();\n\t\t\t\t}\n\n\t\t\t\t// see if there are any available lab times\n\t\t\t\tif(isset($available)){\n\t\t\t\t\treturn $available;\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else { // there are no open lab times\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t} else { // user has not completed any treatments\n\t\t\t$open_lab_query = $this->db->query(\"SELECT `id`,`treatment_ids`, UNIX_TIMESTAMP(`open_time`) AS 'open', UNIX_TIMESTAMP(`close_time`) AS 'close' FROM `schedule` WHERE `close_time` > NOW() ORDER BY 'open'\");\n\t\t\tif($open_lab_query->num_rows()>0){\n\t\t\t\tforeach ($open_lab_query->result_array() as $row3) {\n\t\t\t\t\t$available[$row3['id']]['treatment_ids'] = $row3['treatment_ids'];\n\t\t\t\t\t$available[$row3['id']]['open_time'] = $row3['open'];\n\t\t\t\t\t$available[$row3['id']]['close_time'] = $row3['close'];\n\t\t\t\t}\n\t\t\t\treturn $available;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5b8b6377c1c6c8511ef5f423bcfc3035", "score": "0.45603043", "text": "private static function pp_tbl(array &$arr) {\n\n if (empty($arr) || !self::$pretty_print)\n return;\n\n // Count rows\n $cols = substr_count(explode(\"\\n\", $arr[0])[0], \"|\");\n // And fill an array \n $cmax = array_fill(0, $cols, 0);\n\n // Loop through each entry in array\n foreach($arr as $key => $line) {\n $h = 0; // Last column separator position\n $col = 0;\n\n // And each character in entry\n for($i = 0; $i < strlen($line); $i++) {\n\n // To work with entries with several rows in an entry\n if ($line[$i] == \"\\n\") {\n $h = $i;\n continue;\n }\n\n // Hit column separator\n if ($line[$i] == \"|\") {\n\n // Find longes column\n if (($i-$h) > $cmax[$col % $cols])\n $cmax[$col % $cols] = ($i - $h - 1);\n\n $h = $i;\n $col++;\n }\n }\n }\n\n // Do the same as above\n foreach($arr as $key => $line) {\n $h = 0; // Last column separator position\n $col = 0;\n\n // Clear array entry\n $arr[$key] = \"\";\n\n for($i = 0; $i < strlen($line); $i++) {\n\n if ($line[$i] == \"\\n\") {\n $arr[$key] .= \"|\";\n $h = $i;\n continue;\n }\n\n if ($line[$i] == \"|\") {\n // Get the conten from $h to $i (content of column)\n $lead = substr($line, $h, $i - $h);\n\n // Check if it must be padded with spaces\n if (($i - $h) < $cmax[$col % $cols])\n $lead .= str_repeat(\" \", $cmax[$col % $cols] - ($i - $h) + 1);\n\n // Restore array entry\n $arr[$key] .= $lead . (($i + 1) == strlen($line) ? \"|\" : \"\");\n\n $h = $i;\n $col++;\n }\n }\n }\n }", "title": "" }, { "docid": "1e348cd502d33a7608a7239a0d210f14", "score": "0.45520708", "text": "public function scheduler($teams, $rounds = 1) {\n if(count($teams) % 2 != 0) {\n array_push($teams, 'bye');\n }\n\n //split the teams in half...\n $away = array_splice($teams, count($teams)/2);\n $home = $teams;\n\n //store results here...\n $round = [];\n\n //Number of weeks is calculated as:\n //If N is the team count and is even, then N-1 weeks.\n //If N is the team count and is odd, then N weeks.\n $count = $rounds * ((count($home) + count($away)));\n for($i = 0; $i < $count - $rounds; $i++) {\n //iterate over the 'home teams'\n for($j = 0; $j < count($home); $j++) {\n\n //skip match if team is a 'bye' team.\n if(in_array('bye', [$home[$j], $away[$j]])) {continue;}\n\n //flip the teams if on a week with an odd number.\n if($i % 2 == 0) {\n $round[$i][$j][\"Home\"] = $home[$j];\n $round[$i][$j][\"Away\"] = $away[$j];\n $round[$i][$j][\"HomeScore\"] = random_int(0,3);\n $round[$i][$j][\"AwayScore\"] = random_int(0,3);\n }\n else {\n $round[$i][$j][\"Home\"] = $away[$j];\n $round[$i][$j][\"Away\"] = $home[$j];\n $round[$i][$j][\"HomeScore\"] = random_int(0,3);\n $round[$i][$j][\"AwayScore\"] = random_int(0,3);\n }\n }\n //\n if(count($home)+count($away)-1 > 2) {\n //remove the team in the 2nd position of home array, and place at beginning of away array.\n $splice = array_splice($home,1,1);\n array_unshift($away, array_shift($splice));\n\n //take team in last position of away and place at end of home array\n array_push($home, array_pop($away));\n }\n }\n\n //return\n return $round;\n }", "title": "" }, { "docid": "7653f6cfb1090e42a3145deff6b9828d", "score": "0.45503792", "text": "private function populateResults() {\n\t\tforeach ($this->parties as $mir_id => $parties) {\n\t\t\tforeach ($parties as $party_id => $values) {\n\t\t\t\t$total = $values[self::PRE_MANDATES_BASE] + $values[self::PRE_MANDATES_EXTRA];\n\t\t\t\tif ($total) {\n\t\t\t\t\t$this->results[] = array($mir_id, $party_id, $total);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9ad3bf256e8a1bf5c286e4f892f1bf43", "score": "0.45496207", "text": "function _cells() {\n session_write_close();\n \n $tol = $this->has_arg('tol') ? $this->arg('tol') : 0.01;\n \n $args = array();\n foreach (array('a', 'b', 'c', 'al', 'be', 'ga') as $p) {\n if (!$this->has_arg($p)) $this->_error('One or more unit cell parameters are missing');\n \n array_push($args, $this->arg($p)*(1-$tol));\n array_push($args, $this->arg($p)*(1+$tol));\n }\n \n $tot_args = $args;\n foreach (array('a', 'b', 'c', 'al', 'be', 'ga') as $p) array_push($args, $this->arg($p));\n \n if ($this->has_arg('year')) {\n array_push($args, '00:01 '.$this->arg('year'));\n } else {\n array_push($args, strftime('%H:%M %Y-%m-%d'));\n }\n array_push($tot_args, $args[sizeof($args)-1]);\n \n $rest = '';\n $sgt = '';\n \n if ($this->has_arg('res')) {\n $res = 'AND apss.resolutionlimithigh <= :'.(sizeof($args)+1);\n array_push($args, $this->arg('res'));\n $rest = 'AND apss.resolutionlimithigh <= :'.(sizeof($tot_args)+1);\n array_push($tot_args, $this->arg('res'));\n } else $res = '';\n \n if ($this->has_arg('sg')) {\n $sg = 'AND ap.spacegroup LIKE :'.(sizeof($args)+1);\n array_push($args, $this->arg('sg'));\n $sgt = 'AND ap.spacegroup LIKE :'.(sizeof($tot_args)+1);\n array_push($tot_args, $this->arg('sg'));\n } else $sg = '';\n \n $nostafft = '';\n if (!$this->staff) {\n $nostaff = \"INNER JOIN investigation@DICAT_RO i ON lower(i.visit_id) = p.proposalcode || p.proposalnumber || '-' || s.visit_number INNER JOIN investigationuser@DICAT_RO iu on i.id = iu.investigation_id INNER JOIN user_@DICAT_RO u on (u.id = iu.user_id AND u.name=:\".(sizeof($args)+1).\")\";\n array_push($args, phpCAS::getUser());\n \n $nostafft = \"INNER JOIN investigation@DICAT_RO i ON lower(i.visit_id) = p.proposalcode || p.proposalnumber || '-' || s.visit_number INNER JOIN investigationuser@DICAT_RO iu on i.id = iu.investigation_id INNER JOIN user_@DICAT_RO u on (u.id = iu.user_id AND u.name=:\".(sizeof($tot_args)+1).\")\";\n array_push($tot_args, phpCAS::getUser());\n } else $nostaff = '';\n \n \n $tot = $this->db->pq(\"SELECT count(ap.refinedcell_a) as tot FROM ispyb4a_db.autoprocintegration api INNER JOIN ispyb4a_db.autoprocscaling_has_int aph ON api.autoprocintegrationid = aph.autoprocintegrationid INNER JOIN ispyb4a_db.autoprocscaling aps ON aph.autoprocscalingid = aps.autoprocscalingid INNER JOIN ispyb4a_db.autoproc ap ON aps.autoprocid = ap.autoprocid INNER JOIN ispyb4a_db.autoprocscalingstatistics apss ON apss.autoprocscalingid = aph.autoprocscalingid INNER JOIN ispyb4a_db.autoprocprogram app ON api.autoprocprogramid = app.autoprocprogramid INNER JOIN ispyb4a_db.datacollection dc ON api.datacollectionid = dc.datacollectionid INNER JOIN ispyb4a_db.blsession s ON s.sessionid = dc.sessionid INNER JOIN ispyb4a_db.proposal p ON s.proposalid = p.proposalid $nostafft WHERE p.proposalcode != 'in' AND apss.scalingstatisticstype LIKE 'overall' AND (ap.refinedcell_a BETWEEN :1 AND :2) AND (ap.refinedcell_b BETWEEN :3 AND :4) AND (ap.refinedcell_c BETWEEN :5 AND :6) AND (ap.refinedcell_alpha BETWEEN :7 AND :8) AND (ap.refinedcell_beta BETWEEN :9 AND :10) AND (ap.refinedcell_gamma BETWEEN :11 AND :12) AND to_date(:13, 'HH24:MI YYYY-MM-DD') >= dc.starttime $rest $sgt\", $tot_args);\n \n if (sizeof($tot)) $tot = $tot[0]['TOT'];\n else $tot = 0;\n \n $start = 0;\n $end = 10;\n $pp = $this->has_arg('pp') ? $this->arg('pp') : 15;\n \n if ($this->has_arg('page')) {\n $pg = $this->arg('page') - 1;\n $start = $pg*$pp;\n $end = $pg*$pp+$pp;\n }\n \n $st = sizeof($args)+1;\n $en = $st + 1;\n array_push($args, $start);\n array_push($args, $end);\n \n $pgs = intval($tot/$pp);\n if ($tot % $pp != 0) $pgs++;\n \n $rows = $this->db->pq(\"SELECT outer.* FROM (SELECT ROWNUM rn, inner.* FROM (SELECT api.autoprocintegrationid, sqrt(power(ap.refinedcell_a-:13,2)+power(ap.refinedcell_b-:14,2)+power(ap.refinedcell_c-:15,2)+power(ap.refinedcell_alpha-:16,2)+power(ap.refinedcell_beta-:17,2)+power(ap.refinedcell_gamma-:18,2)) as dist, s.beamlinename as bl, app.processingcommandline as type, apss.ntotalobservations as ntobs, apss.ntotaluniqueobservations as nuobs, apss.resolutionlimitlow as rlow, apss.resolutionlimithigh as rhigh, apss.scalingstatisticstype as shell, apss.rmerge, apss.completeness, apss.multiplicity, apss.meanioversigi as isigi, ap.spacegroup as sg, ap.refinedcell_a as cell_a, ap.refinedcell_b as cell_b, ap.refinedcell_c as cell_c, ap.refinedcell_alpha as cell_al, ap.refinedcell_beta as cell_be, ap.refinedcell_gamma as cell_ga, dc.datacollectionid as id, TO_CHAR(dc.starttime, 'DD-MM-YYYY HH24:MI:SS') as st, dc.imagedirectory as dir, dc.filetemplate, p.proposalcode || p.proposalnumber || '-' || s.visit_number as visit, dc.numberofimages as numimg, dc.axisrange, dc.axisstart, dc.wavelength, dc.transmission, dc.exposuretime FROM ispyb4a_db.autoprocintegration api INNER JOIN ispyb4a_db.autoprocscaling_has_int aph ON api.autoprocintegrationid = aph.autoprocintegrationid INNER JOIN ispyb4a_db.autoprocscaling aps ON aph.autoprocscalingid = aps.autoprocscalingid INNER JOIN ispyb4a_db.autoproc ap ON aps.autoprocid = ap.autoprocid INNER JOIN ispyb4a_db.autoprocscalingstatistics apss ON apss.autoprocscalingid = aph.autoprocscalingid INNER JOIN ispyb4a_db.autoprocprogram app ON api.autoprocprogramid = app.autoprocprogramid INNER JOIN ispyb4a_db.datacollection dc ON api.datacollectionid = dc.datacollectionid INNER JOIN ispyb4a_db.blsession s ON s.sessionid = dc.sessionid INNER JOIN ispyb4a_db.proposal p ON s.proposalid = p.proposalid $nostaff WHERE p.proposalcode != 'in' AND apss.scalingstatisticstype LIKE 'overall' AND (ap.refinedcell_a BETWEEN :1 AND :2) AND (ap.refinedcell_b BETWEEN :3 AND :4) AND (ap.refinedcell_c BETWEEN :5 AND :6) AND (ap.refinedcell_alpha BETWEEN :7 AND :8) AND (ap.refinedcell_beta BETWEEN :9 AND :10) AND (ap.refinedcell_gamma BETWEEN :11 AND :12) AND to_date(:19, 'HH24:MI YYYY-MM-DD') >= dc.starttime $res $sg ORDER BY dist) inner) outer WHERE outer.rn > :$st AND outer.rn <= :$en\", $args);\n \n $types = array('fast_dp' => 'Fast DP', '-3d' => 'XIA2 3d', '-3dii' => 'XIA2 3dii', '-3da ' => 'XIA2 3da', '-2da ' => 'XIA2 2da', '-2d' => 'XIA2 2d', '-2dr' => 'XIA2 2dr', '-3daii ' => 'XIA2 3daii', '-blend' => 'MultiXIA2');\n \n foreach ($rows as &$dc) {\n foreach ($types as $id => $name) {\n if (strpos($dc['TYPE'], $id) !== false) {\n $dc['TYPE'] = $name;\n break;\n }\n }\n \n $users = $this->db->pq(\"SELECT u.name,u.fullname FROM investigation@DICAT_RO i INNER JOIN investigationuser@DICAT_RO iu on i.id = iu.investigation_id INNER JOIN user_@DICAT_RO u on u.id = iu.user_id WHERE lower(i.visit_id)=:1\", array($dc['VISIT']));\n \n $dc['USERS'] = array();\n foreach ($users as $u) {\n array_push($dc['USERS'], $u['FULLNAME']);\n }\n \n $dc['DIR'] = $this->ads($dc['DIR']);\n $dc['DIR'] = substr($dc['DIR'], strpos($dc['DIR'], $dc['VISIT'])+strlen($dc['VISIT'])+1);\n \n $dc['WAVELENGTH'] = number_format($dc['WAVELENGTH'], 3);\n $dc['TRANSMISSION'] = number_format($dc['TRANSMISSION'], 3);\n }\n \n if ($this->has_arg('pdb')) {\n if (file_exists('tables/pdbs.json')) {\n $pdbs = json_decode(file_get_contents('tables/pdbs.json'));\n } else $pdbs = new stdClass();\n\n //if (!property_exists($pdbs,$this->arg('pdb'))) {\n if (1) {\n $d = array();\n foreach (array('a', 'b', 'c', 'al', 'be', 'ga', 'res', 'title', 'author', 'bl', 'pdb', 'year') as $e) $d[strtoupper($e)] = $this->arg($e);\n \n $blmatch = false;\n $umatch = false;\n $umatchl = array();\n $dcids = array();\n $bls = array();\n \n foreach ($rows as $r) {\n $dcids[$r['ID']] = $r['ST'];\n $bls[$r['BL']] = 1;\n \n if (str_replace('DIAMOND BEAMLINE ', '', $this->arg('bl')) == strtoupper($r['BL'])) $blmatch = true;\n \n foreach ($r['USERS'] as $u) {\n $parts = explode(' ', $u);\n \n if (strpos($this->arg('author'), end($parts)) !== false) {\n $umatch = true;\n if (!in_array($u, $umatchl)) array_push($umatchl, $u);\n }\n }\n }\n \n $d['CLOSEST'] = sizeof($rows) ? $rows[0]['BL'] : '';\n $d['DIST'] = sizeof($rows) ? $rows[0]['DIST'] : '';\n $d['RESULTS'] = $tot;\n \n $d['BLS'] = array_keys($bls);\n $d['DCIDS'] = array_keys($dcids);\n $d['DCTIMES'] = $dcids;\n $d['UMATCH'] = $umatch;\n $d['UMATCHL'] = $umatchl;\n $d['BLMATCH'] = $blmatch;\n \n $p = $this->arg('pdb');\n $pdbs->$p = $d;\n file_put_contents('tables/pdbs.json', json_encode($pdbs));\n }\n }\n \n $this->_output(array($tot, $pgs, $rows));\n }", "title": "" }, { "docid": "e6a30a2e23df17d3931e9a9162581565", "score": "0.45487335", "text": "public function column_schedule($row)\n {\n }", "title": "" }, { "docid": "029b5962a250665a202331d6f20205cf", "score": "0.454591", "text": "private function _updateArrays()\r\n\t\t{\r\n\t\t\t\t$intend = array(\"code\" => $this->_code);\r\n\t\t\t\t$dayTimeList = School::classCache()->getClassroom($this->_classroom)->getDayTimeList();\r\n\t\t\t\t$this->_info = getFromArray($dayTimeList, $intend);\r\n\t\t\t\t$this->_info = $this->_info[0];\r\n\t\t}", "title": "" }, { "docid": "08a82b4060a19e62ed9fc4c962b308ac", "score": "0.45447397", "text": "function handleRow($row, $colNames) {\n $vihkoRow = Array();\n \n $notesGathering = Array();\n $notesUnit = Array();\n $keywordsDocument = Array();\n $keywordsUnit = Array();\n $identifiersUnit = Array();\n \n // Build indexed array from associative array\n $rowAssoc = Array();\n foreach ($row as $colNumber => $cell) {\n $rowAssoc[$colNames[$colNumber]] = trim($cell);\n }\n \n // Skip SUMMA rows, since they duplicate the \"real\" observations\n if (\"SUMMA\" == $rowAssoc['rivityyppi']) {\n return Array('skipped' => TRUE, 'skippingReason' => \"sum row\", 'row' => $rowAssoc['Havainto id']);\n }\n // Skip if both Y-coords are missing, otherwise expect that full coordinates are set \n elseif (empty($rowAssoc['Y-koord']) && empty ($rowAssoc['X-koord-linnun'])) {\n return Array('skipped' => TRUE, 'skippingReason' => \"coordinates missing\", 'row' => $rowAssoc['Havainto id']);\n }\n\n // Taxon\n $vihkoRow['Laji - Määritys'] = $rowAssoc['Laji'];\n \n // Id\n array_push($identifiersUnit, (\"tiira.fi:\" . $rowAssoc['Havainto id']));\n// array_push($notesUnit, \"https://www.tiira.fi/selain/naytahavis.php?id=\" . $rowAssoc['Havainto id']); // This link may change\n \n // Date begin and end\n $vihkoRow['Alku - Yleinen keruutapahtuma'] = formatDate($rowAssoc['Pvm1']);\n $vihkoRow['Loppu - Yleinen keruutapahtuma'] = formatDate($rowAssoc['Pvm2']);\n \n\n /*\n Problem with dates:\n Tiira allows entering conflicting time information, where end time if before start time, or where start time is missing.\n\n Here we expect that start time is during start date, and end time is during end date.\n\n What we want to avoid is \n A) Missing end date, even though there is end time\n B) End date+time combination that is before start date+time combination. \n\n */\n\n // Time\n\n // If both times are set\n if (!empty($rowAssoc['Kello_hav_1']) && !empty($rowAssoc['Kello_hav_2'])) {\n\n // Test for case A \n if (empty($vihkoRow['Loppu - Yleinen keruutapahtuma'])) {\n // Handle case A by filling in end date\n $vihkoRow['Loppu - Yleinen keruutapahtuma'] = $vihkoRow['Alku - Yleinen keruutapahtuma'];\n }\n\n // Test for case B)\n $tentativeStartDatetime = $vihkoRow['Alku - Yleinen keruutapahtuma'] . formatTime($rowAssoc['Kello_hav_1']);\n $tentativeEndDatetime = $vihkoRow['Loppu - Yleinen keruutapahtuma'] . formatTime($rowAssoc['Kello_hav_2']);\n\n // Compare that start datetime is before or equal to end datetime\n if ($tentativeStartDatetime <= $tentativeEndDatetime) {\n $vihkoRow['Alku - Yleinen keruutapahtuma'] = $tentativeStartDatetime;\n $vihkoRow['Loppu - Yleinen keruutapahtuma'] = $tentativeEndDatetime;\n }\n else {\n // Handle case B by not including times, since one of them is incorrect\n array_push($keywordsDocument, \"havainnon-aika-epäselvä\");\n array_push($notesGathering, (\"havainnon alkuaika \" . $rowAssoc['Kello_hav_1'] . \" myöhemmin kuin loppuaika \" . $rowAssoc['Kello_hav_2']));\n }\n }\n // If only start time is set\n elseif (!empty($rowAssoc['Kello_hav_1'])) {\n $vihkoRow['Alku - Yleinen keruutapahtuma'] = $vihkoRow['Alku - Yleinen keruutapahtuma'] . formatTime($rowAssoc['Kello_hav_1']);\n }\n // If only end time is set\n elseif (!empty($rowAssoc['Kello_hav_2'])) {\n if (empty($vihkoRow['Loppu - Yleinen keruutapahtuma'])) {\n $vihkoRow['Loppu - Yleinen keruutapahtuma'] = $vihkoRow['Alku - Yleinen keruutapahtuma'];\n }\n $vihkoRow['Loppu - Yleinen keruutapahtuma'] . formatTime($rowAssoc['Kello_hav_2']);\n }\n // else no dates to handle\n \n /*\n // Time end\n if (!empty($rowAssoc['Kello_hav_2'])) {\n // If begin end date is missing, add begin date, because there needs to be an end date if there is an end time. \n if (empty($vihkoRow['Loppu - Yleinen keruutapahtuma'])) {\n $vihkoRow['Loppu - Yleinen keruutapahtuma'] = formatDate($rowAssoc['Pvm1']);\n }\n $vihkoRow['Loppu - Yleinen keruutapahtuma'] .= formatTime($rowAssoc['Kello_hav_2']);\n }\n */\n\n // Bird time, in notes field\n $timeBird = \"\";\n if (!empty($rowAssoc['Kello_lintu_1'])) {\n $timeBird = $rowAssoc['Kello_lintu_1'];\n }\n if (!empty($rowAssoc['Kello_lintu_2'])) {\n $timeBird .= \" - \" . $rowAssoc['Kello_lintu_2'];\n }\n if (!empty($timeBird)) {\n $timeBird = \"linnun havaintoaika: \" . $timeBird;\n array_push($notesUnit, $timeBird);\n array_push($keywordsUnit, \"linnulla-aika\");\n }\n \n // Locality\n $vihkoRow['Kunta - Keruutapahtuma'] = $rowAssoc['Kunta'];\n $vihkoRow['Paikannimet - Keruutapahtuma'] = $rowAssoc['Paikka'];\n \n // Coordinates\n // If there is one coordinate about the bird, expect that there are full coordinates\n if (!empty($rowAssoc['X-koord-linnun'])) {\n $vihkoRow['Koordinaatit@N'] = $rowAssoc['Y-koord-linnun'];\n $vihkoRow['Koordinaatit@E'] = $rowAssoc['X-koord-linnun'];\n $vihkoRow['Koordinaattien tarkkuus metreinä'] = coordinateAccuracyToInt($rowAssoc['Tarkkuus_linnun']);\n array_push($notesGathering, \"linnun koordinaatit\");\n array_push($keywordsUnit, \"koordinaatit-linnun\");\n if (empty($rowAssoc['Tarkkuus_linnun'])) {\n array_push($keywordsUnit, \"koordinaatit-tarkkuus-tuntematon\");\n array_push($notesGathering, \"koordinaattien tarkkuus tuntematon\");\n }\n else {\n array_push($notesGathering, \"koordinaattien tarkkuus \" . $rowAssoc['Tarkkuus_linnun']);\n }\n }\n // Else expect that there are full coordinates for observer\n else {\n $vihkoRow['Koordinaatit@N'] = $rowAssoc['Y-koord'];\n $vihkoRow['Koordinaatit@E'] = $rowAssoc['X-koord'];\n $vihkoRow['Koordinaattien tarkkuus metreinä'] = coordinateAccuracyToInt($rowAssoc['Tarkkuus']);\n array_push($notesGathering, \"havainnoijan koordinaatit\");\n array_push($keywordsUnit, \"koordinaatit-havainnoijan\");\n if (empty($rowAssoc['Tarkkuus'])) {\n array_push($keywordsUnit, \"koordinaatit-tarkkuus-tuntematon\");\n array_push($notesGathering, \"koordinaattien tarkkuus tuntematon\");\n }\n else {\n array_push($notesGathering, \"koordinaattien tarkkuus \" . $rowAssoc['Tarkkuus']);\n }\n }\n $vihkoRow['Koordinaatit@sys - Keruutapahtuma'] = \"wgs84\";\n \n // Notes. (Lisätietoja_2 first, because it's first on the tiira.fi form)\n if (!empty($rowAssoc['Lisätietoja_2'])) {\n array_push($notesUnit, \"alihavainnon lisätiedot: \" . $rowAssoc['Lisätietoja_2']);\n }\n if (!empty($rowAssoc['Lisätietoja'])) {\n array_push($notesUnit, \"havainnon lisätiedot: \" . $rowAssoc['Lisätietoja']);\n }\n \n // Atlas\n $vihkoRow['Pesimävarmuusindeksi - Havainto'] = mapAtlasCode($rowAssoc['Atlaskoodi']);\n \n // Metadata\n// array_push($notesUnit, \"tallentanut Tiiraan: \" . $rowAssoc['Tallentaja']); // Remove to protect personal data, while allowing to import own observations\n array_push($notesUnit, \"tallennettu Tiiraan: \" . $rowAssoc['Tallennusaika']);\n \n // Observers\n $vihkoRow['Havainnoijat - Yleinen keruutapahtuma'] = str_replace(\",\", \";\", $rowAssoc['Havainnoijat']);\n $vihkoRow['Havainnoijien nimet ovat julkisia - Yleinen keruutapahtuma'] = \"Kyllä\";\n \n // Coarsening\n // If contains anything, will be coarsened.\n // Expect that if user wants to totally hide the observation, they will not import it.\n if (empty($rowAssoc['Salattu'])) {\n $vihkoRow['Havainnon tarkat paikkatiedot ovat julkisia - Havaintoerä'] = \"Ei karkeistettu\"; \n }\n else {\n $vihkoRow['Havainnon tarkat paikkatiedot ovat julkisia - Havaintoerä'] = \"10 km\"; \n }\n\n /*\n if (!empty($rowAssoc['Tallenteita'])) {\n array_push($notesUnit, $rowAssoc['Tallenteita']);\n }\n */\n \n // Abundance & sex\n if (!empty($rowAssoc['Määrä'])) {\n $vihkoRow['Määrä - Havainto'] = $rowAssoc['Määrä'];\n }\n else {\n $vihkoRow['Määrä - Havainto'] = 0;\n }\n\n if (\"pariutuneet\" == $rowAssoc['Sukupuoli']) {\n $vihkoRow['Määrä - Havainto'] .= \" pariutuneet\";\n $vihkoRow['Sukupuoli - Havainto'] = \"eri sukupuolia\";\n }\n elseif (\"k\" == $rowAssoc['Sukupuoli']) {\n $vihkoRow['Sukupuoli - Havainto'] = \"koiras\";\n }\n elseif (\"n\" == $rowAssoc['Sukupuoli']) {\n $vihkoRow['Sukupuoli - Havainto'] = \"naaras\";\n }\n\n // Plumage\n $vihkoRow['Linnun puku - Havainto'] = mapPlumage($rowAssoc['Puku']);\n\n // Age\n $vihkoRow['Linnun ikä - Havainto'] = mapAge($rowAssoc['Ikä']);\n\n // Moving (status)\n // This handles status in different way than Vihko so far, by adding direction to moving field\n $vihkoRow['Linnun tila - Havainto'] = str_replace(\",\", \";\", $rowAssoc['Tila']);\n\n // Add status also to count field\n $vihkoRow['Määrä - Havainto'] = $vihkoRow['Määrä - Havainto'] . str_replace(\",\", \" \", $rowAssoc['Tila']);\n \n // Flock id (This seems to be unique ID in Tiira, so put it into id field.)\n if (!empty($rowAssoc['Parvi'])) {\n array_push($identifiersUnit, (\"parvi:\" . $rowAssoc['Parvi']));\n// array_push($notesUnit, \"parvi \" . $rowAssoc['Parvi']);\n }\n\n // Twitched\n if (\"X\" == $rowAssoc['Bongattu']) {\n $vihkoRow['Bongattu - Havainto'] = \"Kyllä\"; \n }\n\n // Breeding\n// echo \"pesinta: \" . $rowAssoc['Pesintä']; // debug\n if (\"X\" == $rowAssoc['Pesintä']) {\n $vihkoRow['Pesintä - Havainto'] = \"Kyllä\"; \n }\n\n // Indirect\n /*\n// No field on Tiira UI, not currently used?\n if (\"X\" == $rowAssoc['Epäsuora havainto']) {\n// array_push($notesUnit, \"epäsuora havainto\");\n $vihkoRow['Havainnointitapa - Havainto'] = \"Epäsuora havainto (jäljet, ulosteet, yms)\"; \n }\n */\n\n\n // Keywords for all documents\n array_push($keywordsDocument, \"tiira.fi\"); // Source\n array_push($keywordsDocument, \"import\"); // Action\n array_push($keywordsDocument, \"tiira2vihko\"); // Tool\n\n $vihkoRow['Avainsanat - Havaintoerä'] = implode(\";\", $keywordsDocument);\n $vihkoRow['Muut tunnisteet - Havainto'] = implode(\";\", $identifiersUnit);\n\n if (!empty($notesGathering)) {\n// $notesGathering = array_filter($notesGathering, !empty($value)); // This SHOULD (not tested) remove empty itemsvalues from array, but it's not needed here, because values are not pushed into the array anymore if they do not exists.\n $vihkoRow['Lisätiedot - Keruutapahtuma'] = implode(\" / \", $notesGathering);\n }\n if (!empty($keywordsUnit)) {\n $vihkoRow['Kokoelma/Avainsanat - Havainto'] = implode(\";\", $keywordsUnit);\n }\n if (!empty($notesUnit)) {\n $vihkoRow['Lisätiedot - Havainto'] = implode(\" / \", $notesUnit);\n }\n \n return $vihkoRow;\n }", "title": "" }, { "docid": "a57abd970db43059343b95f5d4471352", "score": "0.45438242", "text": "public function calculateScheduling()\n {\n if (count($this->streetsIn) === 1) {\n $this->greenScheduling = [\n array_values($this->streetsIn)[0],\n ];\n return;\n }\n $this->greenScheduling = [];\n foreach ($this->streetsIn as $streetName => $street) {\n for ($i = 0; $i < $street->semaphore->timeDuration; $i++) {\n $this->greenScheduling[] = $this->streetsIn[$streetName];\n }\n }\n }", "title": "" }, { "docid": "e5d145f8d70141e3faab6a3899fefaa5", "score": "0.45383942", "text": "function load_bgMealtimeAvgs()\n {\n $bgMealtimeAvgs = [];\n $entries = [];\n $mealtimes = ['F', 'BB', 'AB', 'BL', 'AL', 'BD', 'AD', 'B', 'R'];\n\n $total = 0;\n $totcnt = 0;\n foreach ($mealtimes as $mealtime)\n {\n $entries = query(\"SELECT reading FROM bglog WHERE id = ? AND mealtime = ? AND reading > 0\", $_SESSION[\"id\"], $mealtime);\n\n $cnt = count($entries);\n $totcnt += $cnt;\n if ($cnt === 0)\n {\n $bgMealtimeAvgs[$mealtime] = '--';\n }\n else\n {\n $sum = array_sum(array_column($entries, 'reading'));\n $total += $sum;\n $bgMealtimeAvgs[$mealtime] = number_format(round($sum / $cnt, 1), 1);\n }\n\n }\n\n if ($totcnt === 0)\n {\n $bgMealtimeAvgs['ALL'] = '--';\n }\n else\n {\n $bgMealtimeAvgs['ALL'] = number_format(round($total / $totcnt, 1), 1);\n }\n\n return $bgMealtimeAvgs;\n }", "title": "" }, { "docid": "6b76722749deb0fb0770aec8938cd6ab", "score": "0.45335263", "text": "function GetSpeedIncreaseClay(&$wg_buildings){\n\tglobal $db;\n\t$sum=0;$i=0;\n\tif($wg_buildings)\n\t{\n\t\tforeach ($wg_buildings as $ptu)\n\t\t{\n\t\t\tif($ptu->index<19)\n\t\t\t{\n\t\t\t\tif($ptu->type_id==4)\n\t\t\t\t{\n\t\t\t\t\t$sum=$sum+$ptu->product_hour;\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\tif($i==19){break;}\n\t\t}\n\t\treturn $sum;\n\t}\n\telse\n\t{\n\t\theader(\"Location:logout.php\");\n\t\texit();\n\t}\n}", "title": "" }, { "docid": "49ada7c594e0d275833e3dd54089f173", "score": "0.4532664", "text": "protected function getMinutesSleptByEachGuard()\n {\n $guardId = null;\n $startsToSleep = null;\n $wakesUp = null;\n\n $guardsSleepTrack = [];\n foreach ($this->guardsSchedule as $entry) {\n if ($this->isStartOfShift($entry)) {\n preg_match(\"/Guard #(\\d+) .+/\", $entry[1], $matches);\n $guardId = $matches[1];\n\n } elseif ($this->isStartOfSleep($entry)) {\n $startsToSleep = $entry[0];\n\n } elseif ($this->isStartOfWakingUp($entry)) {\n $wakesUp = $entry[0];\n $guardsSleepTrack[$guardId] =\n ($guardsSleepTrack[$guardId] ?? 0) + Clock::getMinutesDifference($startsToSleep, $wakesUp);\n }\n }\n\n return $guardsSleepTrack;\n }", "title": "" }, { "docid": "b77bedd733da499c550b9fbae60c17b6", "score": "0.452383", "text": "public function build_data_table(){\n\t\t\t// For each one, iterate through the data vars and place them in the data table\n\t\t\tforeach ($this -> team_results as $team){\n\t\t\t\t$team_row = array();\n\t\t\t\tforeach( $this -> data_vars as $var){\n\t\t\t\t\tif ( $var != 'team_year'){\n\t\t\t\t\t\tif ( is_null($team[$var])){\n\t\t\t\t\t\t\t$team_row[$var] = null;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$numeric_var = $this -> d2d_decode($team[$var]);\n\t\t\t\t\t\t\t$team_row[$var] = $numeric_var['total'];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$team_row['team_year'] = $team['team_code'] . '_' . str_replace('D2D ', '', $team['year_code']);\n\t\t\t\t}\n\t\t\t\t$this -> data_table[$team_row['team_year']] = $team_row;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "9a7b882ff66285c26254527eecfb49ec", "score": "0.45231795", "text": "public function run()\n {\n for ($i=1; $i<=7; $i++) {\n for ($j=2; $j<=7; $j++) {\n for ($k=1; $k<=5; $k++) {\n DB::table('teaches')->insert([\n 'day' => $j,\n 'shift' => $k,\n 'teacher_id' => '1',\n 'class_id' => $i,\n 'subject_id' => '14',\n 'semester_id' => '1'\n ]);\n }\n }\n }\n\n for ($i=1; $i<=7; $i++) {\n for ($j=2; $j<=7; $j++) {\n for ($k=1; $k<=5; $k++) {\n DB::table('teaches')->insert([\n 'day' => $j,\n 'shift' => $k,\n 'teacher_id' => '1',\n 'class_id' => $i,\n 'subject_id' => '14',\n 'semester_id' => '2'\n ]);\n }\n }\n\n }\n\n for ($i=1; $i<=14; $i++) {\n for ($j=2; $j<=7; $j++) {\n for ($k=1; $k<=5; $k++) {\n DB::table('teaches')->insert([\n 'day' => $j,\n 'shift' => $k,\n 'teacher_id' => '1',\n 'class_id' => $i,\n 'subject_id' => '14',\n 'semester_id' => '3'\n ]);\n }\n }\n\n }\n\n for ($i=1; $i<=14; $i++) {\n for ($j=2; $j<=7; $j++) {\n for ($k=1; $k<=5; $k++) {\n DB::table('teaches')->insert([\n 'day' => $j,\n 'shift' => $k,\n 'teacher_id' => '1',\n 'class_id' => $i,\n 'subject_id' => '14',\n 'semester_id' => '4'\n ]);\n }\n }\n\n }\n\n for ($i=1; $i<=21; $i++) {\n for ($j=2; $j<=7; $j++) {\n for ($k=1; $k<=5; $k++) {\n DB::table('teaches')->insert([\n 'day' => $j,\n 'shift' => $k,\n 'teacher_id' => '1',\n 'class_id' => $i,\n 'subject_id' => '14',\n 'semester_id' => '5'\n ]);\n }\n }\n }\n\n\n //----------------TKB 10 Toán---------------------------\n DB::table('teaches')->insert([\n 'day' => '2',\n 'shift' => '1',\n 'teacher_id' => '1',\n 'class_id' => '1',\n 'subject_id' => '13',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '2',\n 'shift' => '2',\n 'teacher_id' => '26',\n 'class_id' => '1',\n 'subject_id' => '8',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '2',\n 'shift' => '3',\n 'teacher_id' => '26',\n 'class_id' => '1',\n 'subject_id' => '8',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '2',\n 'shift' => '4',\n 'teacher_id' => '29',\n 'class_id' => '1',\n 'subject_id' => '9',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '2',\n 'shift' => '5',\n 'teacher_id' => '1',\n 'class_id' => '1',\n 'subject_id' => '14',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '3',\n 'shift' => '1',\n 'teacher_id' => '2',\n 'class_id' => '1',\n 'subject_id' => '1',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '3',\n 'shift' => '2',\n 'teacher_id' => '2',\n 'class_id' => '1',\n 'subject_id' => '1',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '3',\n 'shift' => '3',\n 'teacher_id' => '16',\n 'class_id' => '1',\n 'subject_id' => '4',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '3',\n 'shift' => '4',\n 'teacher_id' => '12',\n 'class_id' => '1',\n 'subject_id' => '3',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '3',\n 'shift' => '5',\n 'teacher_id' => '12',\n 'class_id' => '1',\n 'subject_id' => '3',\n 'semester_id' => '6'\n ]);\n\n DB::table('teaches')->insert([\n 'day' => '4',\n 'shift' => '1',\n 'teacher_id' => '2',\n 'class_id' => '1',\n 'subject_id' => '1',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '4',\n 'shift' => '2',\n 'teacher_id' => '19',\n 'class_id' => '1',\n 'subject_id' => '5',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '4',\n 'shift' => '3',\n 'teacher_id' => '12',\n 'class_id' => '1',\n 'subject_id' => '3',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '4',\n 'shift' => '4',\n 'teacher_id' => '12',\n 'class_id' => '1',\n 'subject_id' => '3',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '4',\n 'shift' => '5',\n 'teacher_id' => '35',\n 'class_id' => '1',\n 'subject_id' => '11',\n 'semester_id' => '6'\n ]);\n\n DB::table('teaches')->insert([\n 'day' => '5',\n 'shift' => '1',\n 'teacher_id' => '12',\n 'class_id' => '1',\n 'subject_id' => '3',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '5',\n 'shift' => '2',\n 'teacher_id' => '35',\n 'class_id' => '1',\n 'subject_id' => '11',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '5',\n 'shift' => '3',\n 'teacher_id' => '32',\n 'class_id' => '1',\n 'subject_id' => '10',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '5',\n 'shift' => '4',\n 'teacher_id' => '8',\n 'class_id' => '1',\n 'subject_id' => '2',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '5',\n 'shift' => '5',\n 'teacher_id' => '8',\n 'class_id' => '1',\n 'subject_id' => '2',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '6',\n 'shift' => '1',\n 'teacher_id' => '8',\n 'class_id' => '1',\n 'subject_id' => '2',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '6',\n 'shift' => '2',\n 'teacher_id' => '8',\n 'class_id' => '1',\n 'subject_id' => '2',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '6',\n 'shift' => '3',\n 'teacher_id' => '23',\n 'class_id' => '1',\n 'subject_id' => '7',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '6',\n 'shift' => '4',\n 'teacher_id' => '32',\n 'class_id' => '1',\n 'subject_id' => '10',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '6',\n 'shift' => '5',\n 'teacher_id' => '1',\n 'class_id' => '1',\n 'subject_id' => '14',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '7',\n 'shift' => '1',\n 'teacher_id' => '21',\n 'class_id' => '1',\n 'subject_id' => '6',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '7',\n 'shift' => '2',\n 'teacher_id' => '23',\n 'class_id' => '1',\n 'subject_id' => '5',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '7',\n 'shift' => '3',\n 'teacher_id' => '2',\n 'class_id' => '1',\n 'subject_id' => '1',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '7',\n 'shift' => '4',\n 'teacher_id' => '2',\n 'class_id' => '1',\n 'subject_id' => '1',\n 'semester_id' => '6'\n ]);\n DB::table('teaches')->insert([\n 'day' => '7',\n 'shift' => '5',\n 'teacher_id' => '1',\n 'class_id' => '1',\n 'subject_id' => '12',\n 'semester_id' => '6'\n ]);\n\n for ($i=2; $i<=21; $i++) {\n for ($j=2; $j<=7; $j++) {\n for ($k=1; $k<=5; $k++) {\n DB::table('teaches')->insert([\n 'day' => $j,\n 'shift' => $k,\n 'teacher_id' => '1',\n 'class_id' => $i,\n 'subject_id' => '14',\n 'semester_id' => '6'\n ]);\n }\n }\n\n }\n\n }", "title": "" }, { "docid": "cc977bc69d7cf6245c8bf0ea38e07557", "score": "0.45201457", "text": "function run_sim($cwt,$t,$h1,$h2,$h3){\n $m = 0; //start with a 0 minute wait\n $cif = true; //always a customer in front of us to start\n $seen = false;\n while(!$seen){\n if($t==0 && !$cif){ //if tiffany finishes and theres no customer in front, we've been seen\n $seen = true;\n } elseif($t==0 && $cif){ //worst case is tiffany finishes first and sees the other customer in front of us\n $cif = false;\n $t+=15;\n } elseif($h1==0 && $cif && !$cwt){ //customer in front might see a different hairdresser if they finish first and he's not specific\n $cif = false;\n } elseif($h2==0 && $cif && !$cwt){\n $cif = false;\n } elseif($h3==0 && $cif && !$cwt){\n $cif = false;\n }\n //every minute we havent been seen, take a minute off each hairdresser time and add minute passed\n if(!$seen){\n $t--;\n $h1--;\n $h2--;\n $h3--;\n $m++;\n }\n }\n //return total minutes passed\n return $m;\n}", "title": "" }, { "docid": "3dee33fdb91893c4420a619730ccaf88", "score": "0.45199367", "text": "function getpreviousweek_data_monday($school_id,$classid,$sectionid,$previous_week_fst)\n\t{\n\t\t \n\t\t $result = $this->db->get_where('schoolnew_timetable_weekly_classwise',array('school_id'=>$school_id,'class_id'=>$classid,'section'=>$sectionid,'timetable_date'=>$previous_week_fst))->result();\n\t\t \n\t\t\t$time_table_arr = [];\n\t\t\t\n\t\tif(!empty($result))\n\t\t{\n\t\t\t\t$leave_result = $this->db->get_where('schoolnew_school_assign_holidays',array('school_id'=>$school_id,'class_id'=>$classid,'section'=>$sectionid,'leavedate'=>$previous_week_fst))->result();\n\t\t\t\t\t\n\t\t\t\tforeach($result as $time_index => $period_result)\n\t\t\t\t{\n\t\t\t\t\t if(!empty($leave_result))\n\t\t\t\t\t { \n\t\t\t\t\t\t\tforeach($leave_result as $leave){\n\t\t\t\t\t\t\t\t// echo $leave->periods;\n\t\t\t\t\t\t\t\tif($leave->periods == $period_result->status)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$result[$time_index]->PS = '';\n\t\t\t\t\t\t\t\t\t$result[$time_index]->PT ='';\n\t\t\t\t\t\t\t\t}else\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t }\n\t\t\t\t}\n\t\t}\n\t\t\t// else\n\t\t// {\n\t\t\t\n\t\t // $leave_result = $this->db->get_where('schoolnew_school_assign_holidays',array('school_id'=>$school_id,'class_id'=>$classid,'section'=>$sectionid,'leavedate'=>$this_week_fst))->result();\n\t\t\t\t // // print_r($leave_result);\n\t\t\t\t // $result = [];\n\t\t\t\t\t \n\t\t\t\t\t\t\t// $j = 1;\n\t\t\t\t\t\t\t// for($i=0;$i<8;$i++)\n\t\t\t\t\t\t\t// {\n\t\t\t\t\t\t\t\t// if(!empty($leave_result)){\n\t\t\t\t\t\t\t\t\t// if(array_key_exists($i,$leave_result))\n\t\t\t\t\t\t\t\t\t// {\n\t\t\t\t\t\t\t\t\t\t// if($leave_result[$i]->periods == $j)\n\t\t\t\t\t\t\t\t\t\t// {\n\t\t\t\t\t\t\t\t\t\t\t// $result[$i]['PS'] ='';\n\t\t\t\t\t\t\t\t\t\t\t// $result[$i]['PT'] ='';\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// }else\n\t\t\t\t\t\t\t\t// {\n\t\t\t\t\t\t\t\t\t// $result[$i]['PS'] =1;\n\t\t\t\t\t\t\t\t\t// $result[$i]['PT'] =1;\t\n\t\t\t\t\t\t\t\t// }\n\t\t\t\t\t\t\t\t// $j++;\n\t\t\t\t\t\t\t// }\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t \n\t\t// }\n\t\tsort($result);\n\t\t// print_r($result);die;\n return $result;\n\t\t\n\t}", "title": "" }, { "docid": "a3e70a9b3f8dc4d6b45a1a6b9cb5afc4", "score": "0.4518549", "text": "function windSpeedStatistics($conn)\r\n{\r\n $totalcount = countInDb(\"select count(*) as count from wind\", $conn);\r\n $result = array();\r\n for ($minSpeed = 0; $minSpeed < 20; $minSpeed++)\r\n {\r\n $result[$minSpeed] = array();\r\n $sql = 'select count(*) as count from wind'\r\n . ' where speed>=' . ($minSpeed * 10) .' and speed <'. ($minSpeed * 10 + 10) \r\n . ' and (direction < 23 or direction > 337)';\r\n $result[$minSpeed][0] = countInDb($sql, $conn) / $totalcount * 100;\r\n for ($avgDirection = 45; $avgDirection < 360; $avgDirection+=45)\r\n {\r\n $sql = 'select count(*) as count from wind'\r\n . ' where speed>=' . ($minSpeed * 10) .' and speed <'. ($minSpeed * 10 + 10) \r\n . ' and direction > ' . ($avgDirection - 23) . ' and direction <= ' . ($avgDirection + 22);\r\n $result[$minSpeed][$avgDirection] = countInDb($sql , $conn) / $totalcount * 100;\r\n }\r\n }\r\n return $result;\r\n}", "title": "" }, { "docid": "30f57c2cbfce7aa49193e869b1308cdd", "score": "0.45142183", "text": "function get_class_starttime($data_arr) {\n if (!empty($data_arr)) {\n $arr = array();\n foreach ($data_arr as $row) {\n \n $arr[$row->class_id.','.$row->lock_status] = \"<strong>Class Name</strong>: \" . $row->class_name . \" (\" . $row->class_id . \") &nbsp;&nbsp;&nbsp;&nbsp;<strong>Start Date: </strong>\" . date('d/m/Y (h:i A)', strtotime($row->class_start_datetime)) . \" ---- <strong>End Date:</strong> \" . date('d/m/Y (h:i A)', strtotime($row->class_end_datetime));\n }\n return $arr;\n }\n}", "title": "" }, { "docid": "c80302daa0774971a41e2aee76b8bf0f", "score": "0.4512179", "text": "function getLumpDesp(){\n\n $date1 = textboxValue('date1');\n $date2 = textboxValue('date2');\n $destination =array(\"BSL\",\"DSP\",\"RSP\",\"ISP\", \"BSP\",\"SALE\");\n $mines=array(\"KRB\", \"MBR\",\"BOL\", \"BAR\",\"TAL\",\"KAL\",\"GUA\",\"MPR\");\n // $rake= array_fill(0,6,array_fill(0,8,0)); \n $l_qty= array_fill(0,6,array_fill(0,8,0)); \n // print_r($rake);\n // print_r($destination);\n // print_r($mines);\n //$sql = \"SELECT cust, unit,COUNT(cust) AS rakes FROM mines_desppatch WHERE ( rpt_date>='$date1' AND rpt_date<='$date2') GROUP BY cust, unit\";\n $sql_l_qty = \"SELECT cust, unit, SUM(l_qty) AS l_qty FROM mines_desppatch WHERE ( rpt_date>='$date1' AND rpt_date<='$date2') GROUP BY cust, unit\";\n // $sql_f_qty = \"SELECT cust, unit,SUM(f_qty) AS rakes FROM mines_desppatch WHERE ( rpt_date>='$date1' AND rpt_date<='$date2') GROUP BY cust, unit\";\n \n \n // Lump Quantity distribution \n $result_l_qty = mysqli_query( $GLOBALS['con'], $sql_l_qty);\n if(mysqli_num_rows($result_l_qty)>0){\n \n while($row_l_qty=mysqli_fetch_assoc($result_l_qty)){\n // echo $row_l_qty['cust'].\" \" .$row_l_qty['unit']. \" \" .$row_l_qty['l_qty']. \" <br />\";\n for($i=0; $i<=5; $i++){\n for($j=0; $j<=7;$j++){\n if ($destination[$i]==$row_l_qty['cust'] && $mines[$j]==$row_l_qty['unit']){\n $l_qty[$i][$j] =+$row_l_qty['l_qty'];\n }\n }\n }\n\n } \n \n return $l_qty; \n }\n\n \n\n}", "title": "" }, { "docid": "b1899ed3461202456122f4e40262acb8", "score": "0.4511907", "text": "public static function stormMap($params){\r\n\t\t$delayM = 7;\r\n\t\t$minutes = $params['minutes'];\r\n\t\t$totalSeconds = $minutes * 60;\r\n\t\t$intensity = $params['intensity'];\r\n\t\t$map = [];\r\n\t\t\t\t\r\n\t\tfor($second = 0 ; $second < $totalSeconds; $second++){\r\n\t\t\t\r\n\t\t\tif($second < ($totalSeconds / 2)) $percentage = round($second / (($totalSeconds / 2) / 100),0);\r\n\t\t\tif($second > ($totalSeconds / 2)) $percentage = 100 - (round(($second / (($totalSeconds / 2) / 100) ),0) - 100);\r\n\t\t\t\t\t\r\n\t\t\t$map[$second]['percentage'] = $percentage;\r\n\t\t\t\r\n\t\t\t$delay = round($delayM * (( 100 - $percentage ) / 100 ),0) ;\r\n\t\t\t\r\n\t\t\t$map[$second]['delay'] = $delay;\r\n\t\t\t$map[$second]['volume'] = round($percentage / 10,0);\r\n\t\t\t\r\n\t\t\t$random = rand(1,400);\r\n\t\t\t\r\n\t\t\tif($random <= $intensity && $intensity > 0){\t\t\r\n\t\t\t\t$map[$second]['flash'] = 'Y';\t\t\r\n\t\t\t\t$map[$second + $delay]['sound'] = \"Y\";\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn $map;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "86ab3241bd21f680b58a15f5e7664a32", "score": "0.45091835", "text": "function xstats_displayShipMaxLJ( $gameId, $maxRows ) {\n include ('../../inc.conf.php');\n $maxTurn = xstats_getMaxTurn($gameId);\n $result = @mysql_query(\"SELECT * FROM skrupel_xstats_ships WHERE gameId='\".$gameId.\"' ORDER BY lj DESC\") or die(mysql_error());\n echo '<h4>Die gr&ouml;&szlig;ten zur&uuml;ckgelegten Strecken:</h4>';\n echo '<table class=\"shiptable\" border=\"0\">';\n echo '<tr><th>Schiff</th><th>Strecke</th><th>Herstellungsort</th><th>In Betrieb</th></tr>';\n $maxDistance = -1;\n $counter = 0;\n while ($counter++ < $maxRows && $row = mysql_fetch_array($result)) {\n if( $row['untilturn'] == '0' || $row['untilturn'] == 0) {\n $untilTurn = $maxTurn;\n }else {\n $untilTurn = $row['untilturn'];\n }\n echo '<tr>';\n //ship\n echo '<td>'.xstats_getShipFullDescription( $gameId, $row['shipid'], $row['shiprace'], $row['picturesmall'], $row['experience'], $untilTurn, $row['shipclass'],$row['shipname']).'</td>';\n //distance\n //first value is max distance\n if( $maxDistance == -1 ) {\n $maxDistance = $row['lj'];\n }\n echo '<td class=\"highlight\">';\n echo '<div class=\"percentbar\">';\n $distancePercent = $row['lj']*100/$maxDistance;\n echo '<div style=\"width: '.$distancePercent.'%\"></div>';\n echo '</div>';\n echo $row['lj'].' Lj';\n echo '</td>';\n //home planet, this is the planet where the ship occured first\n $planetOwnerIndex = xstats_getShipOwnerIndexAtTurn($gameId, $row['shipid'], $row['sinceturn']);\n echo '<td>'.xstats_getPlanetDescription( $gameId, $row['buildposx'], $row['buildposy'], $planetOwnerIndex, $row['buildplanetname'] ).'</td>';\n //from-to\n echo '<td>Runde '.$row['sinceturn'].'-'.$untilTurn.'</td>';\n echo '</tr>';\n }\n echo '</table>';\n}", "title": "" }, { "docid": "7047a79b641f925b4c76b7efeb1deee8", "score": "0.45016214", "text": "function limit_hourly_stats($full_hourly_stats, $max_days_to_show, $min_hour, $max_hour, $label_step_size) {\n $hourly_stats = array();\n\n $current_year = -1;\n $current_month = -1;\n $current_day = -1;\n $current_hour = -1;\n $days_shown = 0;\n\n $timestamps = array_keys($full_hourly_stats);\n $temperatures = array_values($full_hourly_stats);\n $hour_changed = false;\n $day_changed = false;\n\n for ($i = 0; $i < count($timestamps) && $days_shown <= $max_days_to_show; $i++) {\n $year = (int)date('Y', $timestamps[$i]);\n $month = (int)date('n', $timestamps[$i]);\n $day = (int)date('j', $timestamps[$i]);\n $hour = (int)date('G', $timestamps[$i]);\n\n if ($year !== $current_year || $month !== $current_month || $day !== $current_day)\n $day_changed = true;\n else\n $day_changed = false;\n\n if ($day_changed)\n $days_shown++;\n\n $current_year = $year;\n $current_month = $month;\n $current_day = $day;\n $current_hour = $hour;\n\n if ($days_shown <= $max_days_to_show && $hour >= $min_hour && $hour <= $max_hour)\n $hourly_stats[$timestamps[$i]] = $temperatures[$i];\n }\n\n $timestamps = array_reverse(array_keys($hourly_stats));\n $temperatures = array_reverse(array_round(array_values($hourly_stats),1));\n\n $labels = array();\n $values = array();\n $current_day = -1;\n $current_labels = array();\n $current_values = array();\n for ($i = 0; $i < count($timestamps); $i++) {\n $day = (int)date('j', $timestamps[$i]);\n $hour = (int)date('G', $timestamps[$i]);\n\n if ($day !== $current_day) {\n if (count($current_labels) > 0) {\n $skip = count($current_labels) % $label_step_size; // Skip those (excessive) entries which would cause the plot label to shift...\n for ($j = 0; $j < count($current_labels)-$skip; $j++) { \n $labels[] = $current_labels[$j];\n $values[] = $current_values[$j];\n }\n $current_labels = array();\n $current_values = array();\n }\n $current_labels[] = date('l',$timestamps[$i]) . \" \" . $hour . \"h\";\n } else {\n $current_labels[] = $hour . \"h\";\n }\n $current_values[] = $temperatures[$i];\n $current_day = $day;\n }\n // Current day is missed by loop\n if (count($current_labels) > 0) {\n for ($j = 0; $j < count($current_labels); $j++) {\n $labels[] = $current_labels[$j];\n $values[] = $current_values[$j];\n }\n }\n\n return array($labels, $values, min($days_shown, $max_days_to_show));\n}", "title": "" }, { "docid": "2ab2b377e089bc51f1843ec5d9bc3ff7", "score": "0.45008758", "text": "function printMatrizRecords(PHPExcel &$objPhpExcel, $array) {\n $max = count($array);\n for ($i = 0; $i < $max; $i++) {\n $record = $array[$i];\n// echo \"<pre>\";\n// var_dump($record);\n// echo \"</pre>\";\n// echo $record->k_id_zona_geografica;\n //Se escriben las causas...\n if (is_array($record->causas)) {\n $numCausas = 0;\n foreach ($record->causas as $causa) {\n $objPhpExcel->getActiveSheet()->setCellValue(\"M\" . ($i + 6 + $numCausas), $record->n_proceso);\n $numCausas++;\n }\n //Se actualizan las celdas...\n if ($numCausas > 1) {\n $objPhpExcel->getActiveSheet()->mergeCells('A' . ($i + 6) . ':A' . ($i + 6 + $numCausas));\n $objPhpExcel->getActiveSheet()->mergeCells('B' . ($i + 6) . ':B' . ($i + 6 + $numCausas));\n $objPhpExcel->getActiveSheet()->mergeCells('C' . ($i + 6) . ':C' . ($i + 6 + $numCausas));\n $objPhpExcel->getActiveSheet()->mergeCells('D' . ($i + 6) . ':D' . ($i + 6 + $numCausas));\n $objPhpExcel->getActiveSheet()->mergeCells('E' . ($i + 6) . ':E' . ($i + 6 + $numCausas));\n $objPhpExcel->getActiveSheet()->mergeCells('F' . ($i + 6) . ':F' . ($i + 6 + $numCausas));\n $objPhpExcel->getActiveSheet()->mergeCells('G' . ($i + 6) . ':G' . ($i + 6 + $numCausas));\n $objPhpExcel->getActiveSheet()->mergeCells('H' . ($i + 6) . ':H' . ($i + 6 + $numCausas));\n $objPhpExcel->getActiveSheet()->mergeCells('I' . ($i + 6) . ':I' . ($i + 6 + $numCausas));\n $objPhpExcel->getActiveSheet()->mergeCells('J' . ($i + 6) . ':J' . ($i + 6 + $numCausas));\n $objPhpExcel->getActiveSheet()->mergeCells('K' . ($i + 6) . ':K' . ($i + 6 + $numCausas));\n $objPhpExcel->getActiveSheet()->mergeCells('L' . ($i + 6) . ':L' . ($i + 6 + $numCausas));\n $objPhpExcel->getActiveSheet()->mergeCells('O' . ($i + 6) . ':O' . ($i + 6 + $numCausas));\n $objPhpExcel->getActiveSheet()->mergeCells('P' . ($i + 6) . ':P' . ($i + 6 + $numCausas));\n $objPhpExcel->getActiveSheet()->mergeCells('N' . ($i + 6) . ':N' . ($i + 6 + $numCausas));\n $objPhpExcel->getActiveSheet()->getStyle('A' . ($i + 6) . ':R' . ($i + 6 + $numCausas))->applyFromArray(\n array(\n 'font' => array(\n 'bold' => false,\n 'size' => 13\n ),\n 'fill' => array(\n 'type' => PHPExcel_Style_Fill::FILL_SOLID,\n 'color' => array('rgb' => 'ffffff')\n ),\n 'alignment' => array(\n 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,\n 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER,\n ),\n 'borders' => array(\n 'allborders' => array(\n 'style' => PHPExcel_Style_Border::BORDER_THIN\n )\n )\n ));\n// $objPhpExcel->getActiveSheet()->mergeCells('Q' . ($i + 6) . ':R' . ($i + 6 + $numCausas));\n }\n }\n// $objPhpExcel->getActiveSheet()->getRowDimension($i)->setRowHeight(30);\n $objPhpExcel->getActiveSheet()->setCellValue(\"A\" . ($i + 6), (($record->k_id_zona_geografica) ? $record->k_id_zona_geografica->n_nombre : \"Indefinido\"));\n $objPhpExcel->getActiveSheet()->setCellValue(\"B\" . ($i + 6), $record->n_macro_proceso);\n $objPhpExcel->getActiveSheet()->setCellValue(\"C\" . ($i + 6), $record->n_proceso);\n $objPhpExcel->getActiveSheet()->setCellValue(\"D\" . ($i + 6), $record->n_servicio);\n $objPhpExcel->getActiveSheet()->setCellValue(\"E\" . ($i + 6), $record->n_objetivo);\n $objPhpExcel->getActiveSheet()->setCellValue(\"F\" . ($i + 6), (($record->k_id_riesgo) ? $record->k_id_riesgo->nombre_riesgo : \"Indefinido\"));\n $objPhpExcel->getActiveSheet()->setCellValue(\"G\" . ($i + 6), (($record->k_id_riesgo) ? $record->k_id_riesgo->n_responsable : \"Indefinido\"));\n $objPhpExcel->getActiveSheet()->setCellValue(\"H\" . ($i + 6), (($record->k_id_riesgo) ? $record->k_id_riesgo->n_riesgo : \"Indefinido\"));\n $objPhpExcel->getActiveSheet()->setCellValue(\"I\" . ($i + 6), (($record->k_id_riesgo) ? $record->k_id_riesgo->n_riesgo_descripcion : \"Indefinido\"));\n $objPhpExcel->getActiveSheet()->setCellValue(\"J\" . ($i + 6), $record->n_tipo_activad);\n $objPhpExcel->getActiveSheet()->setCellValue(\"K\" . ($i + 6), (($record->k_id_tipo_evento_2) ? $record->k_id_tipo_evento_2->k_id_tipo_evento_1->n_descripcion : \"Indefinido\"));\n $objPhpExcel->getActiveSheet()->setCellValue(\"L\" . ($i + 6), (($record->k_id_tipo_evento_2) ? $record->k_id_tipo_evento_2->n_descripcion : \"Indefinido\"));\n $objPhpExcel->getActiveSheet()->setCellValue(\"O\" . ($i + 6), (($record->k_id_probabilidad) ? $record->k_id_probabilidad->n_descripcion : \"Indefinido\"));\n $objPhpExcel->getActiveSheet()->setCellValue(\"P\" . ($i + 6), (($record->k_id_impacto) ? $record->k_id_impacto->n_descripcion : \"Indefinido\"));\n $objPhpExcel->getActiveSheet()->setCellValue(\"Q\" . ($i + 6), (($record->n_severidad_riesgo_inherente) ? $record->n_severidad_riesgo_inherente->n_calificacion : \"Indefinido\"));\n $objPhpExcel->getActiveSheet()->mergeCells(\"Q\" . ($i + 6) . \":R\" . ($i + 6 + (($numCausas > 1 ? $numCausas : 0))));\n $objPhpExcel->getActiveSheet()->getStyle('Q' . ($i + 6) . ':R' . ($i + 6))->applyFromArray(\n array(\n 'font' => array(\n 'bold' => false,\n 'size' => 13\n ),\n 'fill' => array(\n 'type' => PHPExcel_Style_Fill::FILL_SOLID,\n 'color' => array('rgb' => (($record->n_severidad_riesgo_inherente->n_color) ? str_replace(\"#\", \"\", $record->n_severidad_riesgo_inherente->n_color) : \"ffffff\"))\n ),\n 'alignment' => array(\n 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,\n 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER,\n ),\n 'borders' => array(\n 'allborders' => array(\n 'style' => PHPExcel_Style_Border::BORDER_THIN\n )\n )\n ));\n $objPhpExcel->getActiveSheet()->getStyle('A' . ($i + 6) . ':P' . ($i + 6))->applyFromArray(\n array(\n 'font' => array(\n 'bold' => false,\n 'size' => 13\n ),\n 'fill' => array(\n 'type' => PHPExcel_Style_Fill::FILL_SOLID,\n 'color' => array('rgb' => 'ffffff')\n ),\n 'alignment' => array(\n 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,\n 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER,\n ),\n 'borders' => array(\n 'allborders' => array(\n 'style' => PHPExcel_Style_Border::BORDER_THIN\n )\n )\n ));\n $objPhpExcel->getActiveSheet()->getStyle('L5:L' . $objPhpExcel\n ->getActiveSheet()->getHighestRow())\n ->getAlignment()->setWrapText(true);\n }\n }", "title": "" }, { "docid": "e2abef5a8ab9184094cfeb4097c6e8af", "score": "0.449709", "text": "public function run()\n {\n DB::table('treatment_time')->insert([\n [\n 'treatment_duration' \t=> '20 Year'\n ],\n [\n 'treatment_duration' \t=> '10-20 Year'\n ],\n [\n 'treatment_duration' \t=> '5-10 Year'\n ],\n [\n 'treatment_duration' \t=> '1-5 Year'\n ],\n [\n 'treatment_duration' \t=> 'Less than a year'\n ],\n [\n 'treatment_duration' \t=> 'Less than six months'\n ],\n ]);\n }", "title": "" }, { "docid": "b42a34391e901e48466d6f44e85e766c", "score": "0.44909775", "text": "private function sync_runtime_report_($thermostat_id, $begin_gmt, $end_gmt) {\r\n $columns = array(\r\n 'auxHeat1' => 'auxiliary_heat_1',\r\n 'auxHeat2' => 'auxiliary_heat_2',\r\n 'auxHeat3' => 'auxiliary_heat_3',\r\n 'compCool1' => 'compressor_cool_1',\r\n 'compCool2' => 'compressor_cool_2',\r\n 'compHeat1' => 'compressor_heat_1',\r\n 'compHeat2' => 'compressor_heat_2',\r\n 'dehumidifier' => 'dehumidifier',\r\n 'dmOffset' => 'demand_management_offset',\r\n 'economizer' => 'economizer',\r\n 'fan' => 'fan',\r\n 'humidifier' => 'humidifier',\r\n 'outdoorHumidity' => 'outdoor_humidity',\r\n 'outdoorTemp' => 'outdoor_temperature',\r\n 'sky' => 'sky',\r\n 'ventilator' => 'ventilator',\r\n 'wind' => 'wind',\r\n 'zoneAveTemp' => 'zone_average_temperature',\r\n 'zoneCalendarEvent' => 'zone_calendar_event',\r\n 'zoneCoolTemp' => 'zone_cool_temperature',\r\n 'zoneHeatTemp' => 'zone_heat_temperature',\r\n 'zoneHumidity' => 'zone_humidity',\r\n 'zoneHumidityHigh' => 'zone_humidity_high',\r\n 'zoneHumidityLow' => 'zone_humidity_low',\r\n 'zoneHvacMode' => 'zone_hvac_mode',\r\n 'zoneOccupancy' => 'zone_occupancy',\r\n );\r\n\r\n $thermostat = $this->get_thermostat($thermostat_id);\r\n\r\n $begin_date = date('Y-m-d', $begin_gmt);\r\n $begin_interval = date('H', $begin_gmt) * 12 + round(date('i', $begin_gmt) / 5);\r\n\r\n $end_date = date('Y-m-d', $end_gmt);\r\n $end_interval = date('H', $end_gmt) * 12 + round(date('i', $end_gmt) / 5);\r\n\r\n if(configuration::$setup === true) {\r\n echo \"\\r\";\r\n $string = date('m/d/Y', $begin_gmt) . ' > ' . date('m/d/Y', $end_gmt);\r\n echo ' │ ' . $string;\r\n for($i = 0; $i < 33 - strlen($string); $i++) {\r\n echo ' ';\r\n }\r\n echo '│';\r\n }\r\n\r\n $response = $this->ecobee(\r\n 'GET',\r\n 'runtimeReport',\r\n array(\r\n 'body' => json_encode(array(\r\n 'selection' => array(\r\n 'selectionType' => 'thermostats',\r\n 'selectionMatch' => $thermostat['identifier'] // This is required by this API call\r\n ),\r\n 'startDate' => $begin_date,\r\n 'startInterval' => $begin_interval,\r\n 'endDate' => $end_date,\r\n 'endInterval' => $end_interval,\r\n 'columns' => implode(',', array_keys($columns)),\r\n 'includeSensors' => true\r\n ))\r\n )\r\n );\r\n\r\n $inserts = array();\r\n $on_duplicate_keys = array();\r\n foreach($response['reportList'][0]['rowList'] as $row) {\r\n $row = substr($row, 0, -1); // Strip the trailing comma from the array.\r\n $row = explode(',', $row);\r\n $row = array_map('trim', $row);\r\n $row = array_map(array($this->mysqli, 'real_escape_string'), $row);\r\n\r\n // Date and time are first two columns\r\n list($date, $time) = array_splice($row, 0, 2);\r\n array_unshift($row, $thermostat_id, date('Y-m-d H:i:s', strtotime($date . ' ' . $time)));\r\n\r\n $insert = '(\"' . implode('\",\"', $row) . '\")';\r\n $insert = str_replace('\"\"', 'null', $insert);\r\n $inserts[] = $insert;\r\n }\r\n\r\n foreach(array_merge(array('thermostat_id' => 'thermostat_id', 'timestamp' => 'timestamp'), $columns) as $column) {\r\n $on_duplicate_keys[] = '`' . $column . '` = values(`' . $column . '`)';\r\n }\r\n\r\n $query = 'insert into runtime_report(`' . implode('`,`', array_merge(array('thermostat_id', 'timestamp'), array_values($columns))) . '`) values' . implode(',', $inserts) . ' on duplicate key update ' . implode(',', $on_duplicate_keys);\r\n $this->mysqli->query($query) or die($this->mysqli->error);\r\n }", "title": "" }, { "docid": "0bc55ffe91b0c78ad36275ee34ec8f3a", "score": "0.44894767", "text": "function UpdateRiderStats($oDB, $riderID)\n{\n // Get Days/Month over several date ranges and pick the biggest value. For the purposes of this\n // calculation a month is 30.5 days\n $startDate365 = AddDays(date_create(), -364)->format(\"Y-m-d\");\n $startDate180 = AddDays(date_create(), -179)->format(\"Y-m-d\");\n $startDate60 = AddDays(date_create(), -59)->format(\"Y-m-d\");\n $startDate30 = AddDays(date_create(), -29)->format(\"Y-m-d\");\n $endDate = date_create()->format(\"Y-m-d\");\n $sql = \"SELECT SUM(IF(RideLogTypeID=1, Distance, 0)) AS CMiles365,\n COUNT(DISTINCT IF(RideLogTypeID=1, Date, NULL)) AS CDays365,\n COUNT(DISTINCT IF(RideLogTypeID=1 OR RideLogTypeID=3, Date, NULL)) AS CEDays365,\n COUNT(DISTINCT IF(Date BETWEEN '$startDate180' AND '$endDate' AND (RideLogTypeID=1 OR RideLogTypeID=3), Date, NULL)) AS CEDays180,\n COUNT(DISTINCT IF(Date BETWEEN '$startDate60' AND '$endDate' AND (RideLogTypeID=1 OR RideLogTypeID=3), Date, NULL)) AS CEDays60,\n COUNT(DISTINCT IF(Date BETWEEN '$startDate30' AND '$endDate' AND (RideLogTypeID=1 OR RideLogTypeID=3), Date, NULL)) AS CEDays30\n FROM ride_log\n WHERE (Date BETWEEN '$startDate365' AND '$endDate') AND RiderID=$riderID\";\n $rs = $oDB->query($sql);\n $record = $rs->fetch_array();\n $rs->close();\n $CEDaysMonth365 = round($record['CEDays365']/(365/30.5));\n $CEDaysMonth180 = round($record['CEDays180']/(180/30.5));\n $CEDaysMonth60 = round($record['CEDays60']/(60/30.5));\n $CEDaysMonth30 = round($record['CEDays30']/(30/30.5));\n $CEDaysMonth = max($CEDaysMonth365, $CEDaysMonth180, $CEDaysMonth60, $CEDaysMonth30);\n $CMilesDay = ($record['CDays365']) ? round($record['CMiles365']/$record['CDays365']) : 0;\n // Calculate rider stats over several different date ranges\n $today = new DateTime();\n $prevYear = intval($today->format(\"Y\")) - 1;\n $sets['A'] = CalculateStatsSet($oDB, $riderID, new DateTime(\"2000-1-1\"), $today);\n $sets['Y0'] = CalculateStatsSet($oDB, $riderID, FirstOfYear($today), $today);\n $sets['Y1'] = CalculateStatsSet($oDB, $riderID, new DateTime(\"1/1/$prevYear\"), new DateTime(\"12/31/$prevYear\"));\n $sets['M0'] = CalculateStatsSet($oDB, $riderID, FirstOfMonth($today), $today);\n $sets['M1'] = CalculateStatsSet($oDB, $riderID, FirstOfMonth(AddMonths($today,-1)), LastOfMonth(AddMonths($today,-1)));\n $sets['M2'] = CalculateStatsSet($oDB, $riderID, FirstOfMonth(AddMonths($today,-2)), LastOfMonth(AddMonths($today,-2)));\n // create rider stats record if it doesn't exist yet\n if($oDB->DBCount(\"rider_stats\", \"RiderID=$riderID\")==0)\n {\n $oDB->query(\"INSERT INTO rider_stats (RiderID) VALUES($riderID)\");\n }\n // Store stats in rider stats table.\n $sql = \"UPDATE rider_stats SET CEDaysMonth = $CEDaysMonth, CMilesDay = $CMilesDay, \";\n foreach($sets as $range => $set)\n {\n foreach($set as $key => $value)\n {\n $sql .= \"{$range}_$key = $value, \";\n }\n }\n $sql = substr($sql, 0, -2) . \" WHERE RiderID=$riderID\";\n $oDB->query($sql);\n // return a subset of the stats\n return(Array('YTDDays' => $sets['Y0']['Days'], 'YTDMiles' => $sets['Y0']['Miles'], 'CEDaysMonth' => $CEDaysMonth));\n}", "title": "" }, { "docid": "4284bc5294ec87cbdd26f182faddcd39", "score": "0.4485309", "text": "public function sql_ric() {\n // VOCE\n $sql =\"\";\n echo count($this->array_4d_result) . \" <br>\";\n\n for ($n=0; $n<count($this->array_4d_result)-1; $n++) {\n $num=$this->array_4d_result[$n][0][0][0]; //numero SIM, trim elimina gli spazi es. (float)trim\n for ($i=0; $i<100000; $i++){\n if ($this->array_4d_result[$n][1][$i][0]===\"***\"){\n break;\n }\n\n $campo_1=(int)$this->array_4d_result[$n][1][$i][0]; //cod\n $campo_2=\"20\".$this->array_4d_result[$n][1][$i][1]; //data_chiamata\n $campo_3=$this->array_4d_result[$n][1][$i][2]; //ora\n $campo_4=$this->array_4d_result[$n][1][$i][3]; //numero chiamato\n $campo_5=$this->array_4d_result[$n][1][$i][4]; //durata\n $campo_6=str_replace(\",\", \".\",$this->array_4d_result[$n][1][$i][5]); //costo\n $campo_7=$this->array_4d_result[$n][1][$i][6]; //tipo es. AZ SMS ORIGINATO\n $campo_8=$this->array_4d_result[$n][1][$i][7]; //tipo es. Aziendale\n\n\n //sql per inserimento dati voce \n $sql .= \"INSERT INTO $this->tab_ric_voce (nSIM, cod, data_chiamata, ora, numeroChiamato, durata, costo, direttrice, tipo) \"\n . \"VALUES ( '$num' , $campo_1, '$campo_2', '$campo_3', '$campo_4', '$campo_5', $campo_6, '$campo_7', '$campo_8' );\";\n\n }\n\n }\n\n //63\t170113\t17:03:18\tAZ DATI NAZIONALE \t00020971813\t00000000,0000\tAziendale\tAPN IBOX\n // DATI\n for ($n=0; $n<count($this->array_4d_result)-1; $n++) { \n $num=$this->array_4d_result[$n][0][0][0]; //numero SIM, trim elimina gli spazi es. (float)trim\n for ($i=0; $i<100000; $i++){\n if (!isset($this->array_4d_result[$n][2][$i][0])) //se non ci sono dati esci\n break;\n if ($this->array_4d_result[$n][2][$i][0]===\"***\"){ //fine dati\n break;\n }\n\n $campo_1=(int)$this->array_4d_result[$n][2][$i][0]; //cod\n $campo_2=\"20\".$this->array_4d_result[$n][2][$i][1]; //data_conn\n $campo_3=$this->array_4d_result[$n][2][$i][2]; //durata\n $campo_4=$this->array_4d_result[$n][2][$i][3]; //direttrice es. AZ DATI NAZIONALE\n $campo_5=(int)$this->array_4d_result[$n][2][$i][4]; //byte\n $campo_6=str_replace(\",\", \".\",$this->array_4d_result[$n][2][$i][5]); //costo\n $campo_7=$this->array_4d_result[$n][2][$i][6]; //tipo es. Aziendale\n $campo_8=$this->array_4d_result[$n][2][$i][7]; //APN\n\n //sql per inserimento dati\n $sql .= \"INSERT INTO $this->tab_ric_dati (nSIM, cod, data_conn, durata, direttrice, byte, costo, tipo, apn) \"\n . \"VALUES ( '$num' , $campo_1, '$campo_2', '$campo_3', '$campo_4', $campo_5, $campo_6, '$campo_7', '$campo_8' );\";\n\n }\n\n }\n\n $istruzioni_sql = explode(';', $sql); // creo un array con le istruzioni sql\n $comando_sql=\"\"; // inizializzo la stringa di comando\n foreach($istruzioni_sql as $n_istruzione => $istruzione){ \n // echo $istruzione . \" <br>\";\n $comando_sql .= $istruzione . \";\"; // aggiungo il ; al termine di ogni istruzione\n if (!($n_istruzione % 1000)and !($n_istruzione===0) or // raggruppo le istruzioni\n $n_istruzione===count($istruzioni_sql)-1 ){ // sono all'ultima istruzione \n // echo $comando_sql;\n $this->mysql($comando_sql); \n $comando_sql=\"\";\n }\n }\n\n }", "title": "" }, { "docid": "d1156c41670a9de4339b8408d2d0cca2", "score": "0.44827744", "text": "function getStandings($allSchools){\n \n $all_records = [];\n $all_leagues = [];\n $brk = [];\n $ccc = [];\n $cra = [];\n $csc = [];\n $ecc = [];\n $fciac = [];\n $nvl = [];\n $nccc = [];\n $scc = [];\n $shr = [];\n $swc = [];\n \n $db_standings = new Database();\n //\n foreach($allSchools as $team){\n $getTeamRecord = \"CALL getRecord('$team[0]')\";\n $record = $db_standings->getData($getTeamRecord);\n $record = getRecords($record, $team);\n\n if($record['league'] == 'Berkshire'){ array_push($brk, $record); }\n elseif($record['league']=='Central Connecticut'){ array_push($ccc, $record); }\n elseif($record['league']=='Capital Region Athletic'){ array_push($cra,$record); }\n elseif($record['league']=='Constitution State'){ array_push($csc, $record); }\n elseif($record['league']=='Eastern Connecticut'){ array_push($ecc, $record); }\n elseif($record['league']=='Fairfield County Interscholastic Athletic'){ array_push($fciac, $record); }\n elseif($record['league']=='Naugatuck Valley'){ array_push($nvl, $record); }\n elseif($record['league']=='North Central Connecticut'){ array_push($nccc, $record); }\n elseif($record['league']=='Southern Connecticut'){ array_push($scc, $record); }\n elseif($record['league']=='Shoreline'){ array_push($shr, $record); }\n elseif($record['league']=='South West'){ array_push($swc, $record); }\n else{ array_push($all_records, $record); }\n\n // Sort brk arrays by overall w,l\n usort($brk,make_comparer(['points',SORT_DESC],['lwin',SORT_DESC],['lloss',SORT_ASC],['lgf',SORT_DESC],['owin',SORT_DESC],['oloss',SORT_ASC],['ogf',SORT_DESC],['team',SORT_ASC]));\n // Sort ccc arrays by overall w,l\n usort($ccc,make_comparer(['points',SORT_DESC],['lwin',SORT_DESC],['lloss',SORT_ASC],['lgf',SORT_DESC],['owin',SORT_DESC],['oloss',SORT_ASC],['ogf',SORT_DESC],['team',SORT_ASC]));\n // Sort cra arrays by overall w,l\n usort($cra,make_comparer(['points',SORT_DESC],['lwin',SORT_DESC],['lloss',SORT_ASC],['lgf',SORT_DESC],['owin',SORT_DESC],['oloss',SORT_ASC],['ogf',SORT_DESC],['team',SORT_ASC]));\n // Sort csc arrays by overall w,l\n usort($csc,make_comparer(['points',SORT_DESC],['lwin',SORT_DESC],['lloss',SORT_ASC],['lgf',SORT_DESC],['owin',SORT_DESC],['oloss',SORT_ASC],['ogf',SORT_DESC],['team',SORT_ASC]));\n // Sort ecc arrays by overall w,l\n usort($ecc,make_comparer(['points',SORT_DESC],['lwin',SORT_DESC],['lloss',SORT_ASC],['lgf',SORT_DESC],['owin',SORT_DESC],['oloss',SORT_ASC],['ogf',SORT_DESC],['team',SORT_ASC]));\n // Sort fcica arrays by overall w,l\n usort($fciac,make_comparer(['points',SORT_DESC],['lwin',SORT_DESC],['lloss',SORT_ASC],['lgf',SORT_DESC],['owin',SORT_DESC],['oloss',SORT_ASC],['ogf',SORT_DESC],['team',SORT_ASC]));\n // Sort nccc arrays by overall w,l\n usort($nccc,make_comparer(['points',SORT_DESC],['lwin',SORT_DESC],['lloss',SORT_ASC],['lgf',SORT_DESC],['owin',SORT_DESC],['oloss',SORT_ASC],['ogf',SORT_DESC],['team',SORT_ASC]));\n // Sort nvl arrays by overall w,l\n usort($nvl,make_comparer(['points',SORT_DESC],['lwin',SORT_DESC],['lloss',SORT_ASC],['lgf',SORT_DESC],['owin',SORT_DESC],['oloss',SORT_ASC],['ogf',SORT_DESC],['team',SORT_ASC]));\n // Sort scc arrays by overall w,l\n usort($scc,make_comparer(['points',SORT_DESC],['lwin',SORT_DESC],['lloss',SORT_ASC],['lgf',SORT_DESC],['owin',SORT_DESC],['oloss',SORT_ASC],['ogf',SORT_DESC],['team',SORT_ASC]));\n // Sort shr arrays by overall w,l\n usort($shr,make_comparer(['points',SORT_DESC],['lwin',SORT_DESC],['lloss',SORT_ASC],['lgf',SORT_DESC],['owin',SORT_DESC],['oloss',SORT_ASC],['ogf',SORT_DESC],['team',SORT_ASC]));\n // Sort swc arrays by overall w,l\n usort($swc,make_comparer(['points',SORT_DESC],['lwin',SORT_DESC],['lloss',SORT_ASC],['lgf',SORT_DESC],['owin',SORT_DESC],['oloss',SORT_ASC],['ogf',SORT_DESC],['team',SORT_ASC]));\n \n // Combine sorted divisions into all leagues array\n $all_leagues = [\n 'berkshire'=>$brk,\n 'capital region athletic'=>$cra,\n 'central connecticut'=>$ccc,\n 'constitution state'=>$csc,\n 'eastern connecticut'=>$ecc,\n 'fairfield county interscholastic athletic'=>$fciac,\n 'north central connecticut'=>$nccc,\n 'naugatuck valley'=>$nvl,\n 'shoreline'=>$shr,\n 'southern connecticut'=>$scc,\n 'south west'=>$swc\n ];\n }\n \n return $all_leagues;\n}", "title": "" }, { "docid": "0d7e8ba1db01771cbe5efa698be99144", "score": "0.44818616", "text": "public function handle()\n {\n $sourceArr = [1,6,9,10,11,13,14,15,16,17,18,20,21,22,23,24,25,28,29,30,31,32,33,34,35,36,37,38,39,40];\n $midArr = [26102,26101,26099,26098,26097,26095,26093,26092,26091,26090,26089,26088,26086,26085,26084,26082,26079,26077,26076,26074,26073,26072,26071,26070,26069,26068,26067,26066,26065,26064,26063,26062,26061,26060,26059,26058,26057,26056,26053,26052,26051,26050,26049,26048,26047,26046,26045,26044,26043,26042,26041,26040,26039,26038,26037,26036,26035,26034,26033,26032,26031,26030,26029,26028,26027,26026,26025,26024,26023,26022,26021,26020,26019,26018,26017,26016,26015,26014,26013,26012,26011,26010,26009,26008,26007,26006,26005,26004,26003,26002,26001,26000,25999,25998,25997,25996,25994,25993,25992,25991,25990,25989,25988,25986,25985,25984,25983,25982,25981,25979,25977,25976,25975,25974,25973,25972,25971,25970,25969,25968,25967,25966,25965,25964,25962,25961,25960,25959,25957,25955,25954,25953,25951,25950,25949,25948,25947,25946,25945,25944,25943,25942,25941,25940,25939,25938,25937,25936,25933,25932,25930,25929,25928,25927,25926,25925,25924,25923,25922,25921,25920,25918,25917,25916,25914,25913,25912,25911,25910,25908,25907,25906,25905,25904,25903,25902,25901,25900,25898,25894,25893,25892,25891,25890,25889,25888,25885,25884,25883,25882,25880,25879,25878,25877,25874,25873,25872,25871,25869,25868,25867,25866,25865,25864,25862,25860,25859,25858,25857,25856,25852,25851,25850,25849,25848,25847,25846,25843,25842,25841,25840,25839,25838,25837,25836,25834,25833,25829,25828,25827,25826,25825,25823,25822,25821,25820,25819,25817,25816,25814,25812,25811,25810,25809,25808,25807,25806,25805,25804,25803,25802,25800,25798,25797,25796,25795,25791,25790,25789,25788,25787,25786,25785,25783,25782,25781,25780,25779,25778,25777,25774,25771,25769,25768,25767,25766,25764,25763,25762,25761,25760,25758,25756,25750,25749,25748,25746,25745,25742,25735,25731,25730,25729,25725,25724,25723,25721,25720,25719,25714,25710,25704,25703,25702,25699,25694,25692,25690,25689,25684,25683,25682,25678,25674,25672,25671,25670,25669,25668,25667,25666,25665,25663,25662,25661,25660,25659,25656,25651,25647,25646,25644,25640,25638,25637,25636,25634,25633,25631,25630,25629,25627,25626,25625,25624,25623,25621,25620,25618,25617,25603,25599,25598,25593,25590,25580,25568,25566,25565,25564,25561,25556,25555,25554,25553,25549,25548,25545,25544,25543,25539,25537,25536,25535,25534,25532,25529,25528,25527,25523,25521,25519,25518,25517,25513,25510,25509,25504,25503,25502,25499,25498,25494,25493,25490,25489,25488,25486,25485,25484,25483,25482,25481,25480,25479,25478,25475,25474,25473,25471,25469,25468,25467,25462,25461,25458,25457,25456,25455,25453,25452,25451,25450,25449,25447,25446,25445,25444,25443,25442,25438,25437,25434,25432,25431,25429,25428,25427,25425,25422,25421,25420,25419,25414,25412,25409,25408,25407,25406,25405,25404,25403,25401,25399,25397,25396,25395,25392,25390,25388,25384,25382,25380,25377,25372,25371,25366,25365,25362,25361,25360,25358,25357,25356,25353,25352,25351,25350,25348,25347,25345,25341,25340,25339,25338,25336,25335,25334,25330,25329,25326,25323,25322,25320,25319,25318,25317,25314,25313,25311,25310,25309,25303,25302,25301,25300,25299,25298,25297,25295,25292,25291,25290,25289,25288,25287,25286,25283,25282,25277,25276,25275,25274,25273,25272,25271,25269,25268,25267,25263,25255,25254,25253,25252,25251,25249,25247,25246,25245,25240,25239,25237,25235,25234,25231,25229,25228,25227,25225,25223,25222,25221,25218,25216,25213,25211,25210,25209,25207,25206,25205,25201,25197,25194,25192,25191,25190,25185,25181,25180,25179,25178,25177,25176,25173,25169,25167,25162,25160,25156,25154,25153,25152,25151,25149,25148,25147,25146,25142,25139,25138,25136,25135,25134,25133,25129,25127,25120,25119,25117,25116,25115,25114,25112,25111,25110,25109,25104,25101,25100,25099,25098,25097,25096,25095,25091,25090,25089,25087,25086,25085,25084,25083,25082,25081,25080,25079,25078,25077,25076,25075,25074,25073,25072,25071,25070,25069,25068,25067,25066,25065,25064,25063,25062,25061,25060,25059,25058,25057,25056,25055,25054,25053,25052,25051,25050,25049,25048,25047,25046,25045,25044,25043,25042,25041,25040,25038,25037,25036,25035,25034,25033,25032,25030,25028,25027,25026,25025,25024,25023,25022,25021,25020,25019,25018,25017,25016,25015,25014,25013,25012,25011,25010,25008,25007,25005,25004,25002,25001,25000,24999,24998,24997,24996,24995,24994,24993,24992,24991,24990,24989,24988,24987,24986,24985,24984,24983,24982,24981,24980,24979,24978,24977,24976,24975,24974,24973,24972,24971,24970,24968,24967,24966,24965,24964,24963,24962,24961,24960,24959,24958,24957,24956,24955,24954,24953,24952,24951,24950,24949,24948,24947,24946,24945,24944,24943,24942,24941,24940,24939,24938,24937,24936,24935,24934,24933,24932,24931,24929,24928,24927,24926,24925,24924,24923,24922,24921,24920,24919,24918,24917,24916,24915,24914,24913,24912,24909,24908,24907,24906,24905,24904,24903,24902,24901,24900,24899,24898,24897,24896,24895,24894,24893,24892,24891,24890,24889,24888,24887,24886,24885,24884,24883,24882,24881,24880,24879,24878,24877,24876,24875,24874,24873,24872,24871,24870,24869,24868,24867,24866,24865,24864,24863,24862,24861,24860,24859,24858,24857,24856,24855,24854,24853,24852,24851,24850,24849,24848,24847,24846,24845,24844,24843,24842,24841,24840,24839,24838,24837,24836,24835,24834,24833,24832,24831,24830,24829,24828,24827,24823,24822,24821,24820,24819,24818,24817,24816,24815,24814,24813,24812,24811,24810,24809,24808,24807,24806,24805,24804,24802,24801,24799,24798,24796,24795,24794,24793,24790,24789,24787,24786,24785,24784,24783,24781,24780,24778,24777,24771,24766,24765,24764,24760,24758,24754,24753,24751,24749,24748,24747,24745,24743,24741,24740,24739,24738,24737,24736,24734,24733,24732,24731,24730,24728,24727,24726,24725,24724,24723,24719,24713,24712,24711,24710,24706,24705,24704,24702,24701,24700,24699,24698,24696,24695,24694,24693,24692,24691,24690,24689,24688,24687,24686,24685,24682,24679,24677,24676,24675,24674,24672,24671,24670,24669,24668,24666,24664,24662,24661,24648,24646,24645,24643,24638,24631,24629,24628,24627,24626,24625,24621,24619,24618,24615,24614,24613];\n foreach ($sourceArr as $item){\n for ($i = 0; $i< mt_rand(20,50); $i++){\n $sql = \"insert into video_like(source_id, type, mid) values ($item, 1, \".$midArr[mt_rand(0,count($midArr)-1)].\");\";\n DB::select($sql);\n }\n }\n echo \"Complete!\";\n }", "title": "" }, { "docid": "ff6a38bdc19372d673f590d2846bbacd", "score": "0.44803473", "text": "public function run()\n {\n DB::table('route_directs')->insert([\n [\n 'id'=>'1',\n 'origin_airportid'=>'HAN',\n 'arrival_airportid'=>'SGN',\n 'skymile'=>'1221',\n 'duration'=>'1:50'\n ],\n [\n 'id'=>'2',\n 'origin_airportid'=>'SGN',\n 'arrival_airportid'=>'HAN',\n 'skymile'=>'1221',\n 'duration'=>'1:50'\n ],\n [\n 'id'=>'3',\n 'origin_airportid'=>'HAN',\n 'arrival_airportid'=>'CXR',\n 'skymile'=>'860',\n 'duration'=>'1:20'\n ],\n [\n 'id'=>'4',\n 'origin_airportid'=>'CXR',\n 'arrival_airportid'=>'HAN',\n 'skymile'=>'860',\n 'duration'=>'1:20'\n ],\n [\n 'id'=>'5',\n 'origin_airportid'=>'VDO',\n 'arrival_airportid'=>'DAD',\n 'skymile'=>'920',\n 'duration'=>'1:30'\n ],\n [\n 'id'=>'6',\n 'origin_airportid'=>'DAD',\n 'arrival_airportid'=>'VDO',\n 'skymile'=>'920',\n 'duration'=>'1:30'\n ],\n [\n 'id'=>'7',\n 'origin_airportid'=>'DAD',\n 'arrival_airportid'=>'SGN',\n 'skymile'=>'670',\n 'duration'=>'1:05'\n ],\n [\n 'id'=>'8',\n 'origin_airportid'=>'SGN',\n 'arrival_airportid'=>'DAD',\n 'skymile'=>'670',\n 'duration'=>'1:05'\n ],\n [\n 'id'=>'9',\n 'origin_airportid'=>'VDO',\n 'arrival_airportid'=>'CXR',\n 'skymile'=>'1030',\n 'duration'=>'1:40'\n ],\n [\n 'id'=>'10',\n 'origin_airportid'=>'CXR',\n 'arrival_airportid'=>'VDO',\n 'skymile'=>'1030',\n 'duration'=>'1:40'\n ],\n [\n 'id'=>'11',\n 'origin_airportid'=>'CXR',\n 'arrival_airportid'=>'SGN',\n 'skymile'=>'480',\n 'duration'=>'1:00'\n ],\n [\n 'id'=>'12',\n 'origin_airportid'=>'SGN',\n 'arrival_airportid'=>'CXR',\n 'skymile'=>'480',\n 'duration'=>'1:00'\n ],\n ]);\n }", "title": "" }, { "docid": "019c0c9bbafd119dc53a3a11d57f9763", "score": "0.44802567", "text": "public function run()\n {\n /*$arreglo= [\"11_1_4_A01EPP000290939_0\",\"11_1_4_A01EPP000290939_0\",\"11_1_2_A01EPP000300940_0\",\"11_1_2_A01EPP000310941_5\",\"11_1_3_Z99EPP000010942_1\",\"11_1_3_A01EPP000330943_1\",\"11_1_3_A01EPP000340944_0\",\"13_1_1_A02EPP00003060L_110\",\"13_1_1_A02EPP00004060M_48\",\"12_1_4_A02EPP000110000_4\",\"12_1_4_A02EPP000120400_2\",\"11_1_4_A02EPP000130200_26\",\"12_1_4_A02EPP000711200_3\",\"11_1_3_A02EPP000740000_4\",\"2_1_2_A03EPP00014050S_1\",\"2_1_2_A03EPP00015050M_3\",\"2_1_2_A03EPP00016050L_4\",\"2_1_2_A03EPP0001705XL_2\",\"2_1_2_A03EPP0001805XX_0\",\"1_1_2_A03EPP00019100S_0\",\"1_1_2_A03EPP00020100M_0\",\"1_1_2_A03EPP00021100L_0\",\"1_1_2_A03EPP0002210XL_1\",\"1_1_2_A03EPP0002310XX_0\",\"10_1_1_A03UNI00001040S_9\",\"10_1_1_A03UNI00002040M_10\",\"10_1_1_A03UNI00003040L_0\",\"10_1_2_A03UNI0000404XL_4\",\"10_1_2_A03UNI0000504XX_2\",\"4_1_2_A05EPP00035040S_0\",\"4_1_2_A05EPP00036040M_3\",\"4_1_3_A05EPP00037040L_9\",\"4_1_3_A05EPP0003804XL_7\",\"4_1_3_A05EPP0003904XX_0\",\"4_1_2_A05EPP00040030S_0\",\"4_1_2_A05EPP00041030M_6\",\"4_1_3_A05EPP00042030L_0\",\"4_1_3_A05EPP0004303XL_3\",\"4_1_3_A05EPP0004403XX_0\",\"4_1_3_A05EPP00045050S_9\",\"4_1_2_A05EPP00046050M_8\",\"4_1_3_A05EPP00047050L_20\",\"4_1_3_A05EPP0004805XL_12\",\"4_1_3_A05EPP0004905XX_2\",\"9_1_3_A05EPP00050100S_0\",\"9_1_3_A05EPP00051100M_2\",\"9_1_3_A05EPP00052100L_6\",\"9_1_3_A05EPP0005310XL_1\",\"9_1_3_A05EPP0005410XX_0\",\"3_1_3_A05UNI00007050S_10\",\"3_1_3_A05UNI00008050M_13\",\"3_1_2_A05UNI00009050L_26\",\"3_1_2_A05UNI0001005XL_10\",\"3_1_2_A05UNI0001105XX_4\",\"9_1_1_A05UNI00012100S_0\",\"9_1_1_A05UNI00013100M_0\",\"9_1_1_A05UNI00014100L_4\",\"9_1_1_A05UNI0001510XL_1\",\"9_1_2_A05UNI0001610XX_0\",\"6_1_3_A05UNI00017040S_9\",\"6_1_2_A05UNI00018040M_9\",\"5_1_2_A05UNI00019040L_6\",\"5_1_3_A05UNI0002004XL_9\",\"5_1_3_A05UNI0002104XX_0\",\"9_1_4_A05UNI00017040S_0\",\"9_1_4_A05UNI00018040M_0\",\"9_1_4_A05UNI00019040L_4\",\"9_1_4_A05UNI0002004XL_1\",\"9_1_4_A05UNI0002104XX_0\",\"2_1_2_A09EPP000690100_52\",\"2_1_2_A10EPP00005050M_18\",\"12_1_4_A13EPP000100200_3\",\"1_1_2_A14TRA000011200_2\",\"2_1_2_A15TRA000021200_6\",\"6_1_2_A22ANA000380900_3\",\"13_1_1_A23ANA000120500_1\",\"8_1_1_A23ANA000150200_1\",\"8_1_1_A23ANA000160200_1\",\"6_1_2_A23ANA000350200_2\",\"6_1_2_A24ANA000361000_1\",\"7_1_1_A25ANA000310600_1\",\"7_1_1_A25ANA000320600_1\",\"7_1_1_A26ANA000300900_1\",\"7_1_1_A27ANA000241200_1\",\"7_1_1_A27ANA000251200_3\",\"7_1_1_A29ANA000270200_4\",\"7_1_1_A29ANA000280200_1\",\"7_1_1_A29ANA000290200_1\",\"7_1_1_A30ANA000010300_5\",\"8_1_1_A32ANA000390200_2\",\"8_1_1_A32ANA000400200_1\",\"13_1_1_A33ANA000140200_1\",\"13_1_1_A33ANA000170200_1\",\"13_1_1_A33ELE000010500_1\",\"13_1_1_A33ELE000020500_1\",\"10_1_1_A36OFI000280200_3\",\"1_1_1_A39ASE000050200_1\",\"1_1_1_A39ASE000060200_1\",\"10_1_1_A41OFI000130200_48\",\"10_1_1_A41OFI000150600_20\",\"10_1_1_A41OFI000161000_24\",\"10_1_1_A42OFI000010600_16\",\"10_1_1_A42OFI000020500_12\",\"10_1_1_A42OFI000031300_12\",\"10_1_1_A43OFI000110000_2\",\"10_1_1_A43OFI000200200_1\",\"10_1_1_A43OFI000221200_69\",\"10_1_1_A44OFI000050200_4\",\"10_1_1_A48OFI000140200_26\",\"10_1_1_A48OFI000230200_4\",\"10_1_1_A49OFI000120200_3\",\"10_1_1_A50OFI000260100_2\",\"10_1_1_A50OFI000270100_4\",\"9_1_4_A52EPP00024020S_1\",\"9_1_4_A52EPP00025020M_4\",\"9_1_4_A52EPP00026020L_2\",\"9_1_4_A52EPP0002702XL_2\",\"9_1_4_A52EPP0002802XX_0\",\"9_1_3_A52UNI00022100S_0\",\"9_1_3_A52UNI00023100M_0\",\"9_1_3_A52UNI00024100L_0\",\"9_1_3_A52UNI0002510XL_0\",\"9_1_3_A52UNI0002610XX_0\",\"2_1_2_A52UNI000270400_10\",\"1_1_1_A54EPP000070241_1\",\"1_1_1_A54EPP000080244_2\",\"8_1_1_A56ANA000031200_1\",\"2_1_2_A57EPP000701200_10\",\"2_1_2_A57EPP000721200_4\",\"8_1_1_Z99ANA000020400_8\",\"4_1_1_Z99ANA000070000_180\",\"4_1_1_Z99ANA000080000_13\",\"12_1_1_Z99ANA000090000_50\",\"13_1_1_Z99ANA000100300_1\",\"13_1_1_Z99ANA000110600_1\",\"6_1_1_Z99ANA000181200_0\",\"13_1_1_Z99ANA000200000_40\",\"13_1_1_Z99ANA000210500_1\",\"7_1_2_Z99ANA000261200_3\",\"7_1_1_Z99ANA000331000_4\",\"7_1_2_Z99ANA000340100_4\",\"6_1_3_Z99ANA000370900_1\",\"8_1_2_Z99ANA000410200_3\",\"12_1_3_Z99ANA000430200_1\",\"1_1_2_Z99ASE000010100_1\",\"1_1_2_Z99ASE000020600_8\",\"1_1_2_Z99ASE000030600_15\",\"1_1_2_Z99ASE000040200_8\",\"1_1_2_Z99ASE000070200_2\",\"1_1_2_Z99ASE000080600_12\",\"1_1_1_Z99EPP000010942_0\",\"1_1_1_Z99EPP000020243_0\",\"2_1_2_Z99EPP00006000M_2\",\"9_1_4_Z99EPP000091000_2\",\"2_1_2_Z99EPP00065010M_2\",\"2_1_2_Z99EPP00066010L_10\",\"2_1_2_Z99EPP0006701XL_8\",\"2_1_2_Z99EPP0006801XX_0\",\"10_1_1_Z99OFI000040200_1\",\"10_1_1_Z99OFI000060300_3\",\"10_1_1_Z99OFI000070100_7\",\"10_1_1_Z99OFI000080100_1\",\"10_1_1_Z99OFI000090100_1\",\"10_1_1_Z99OFI000100200_2\",\"10_1_1_Z99OFI000170200_0\",\"10_1_1_Z99OFI000180200_0\",\"10_1_1_Z99OFI000191200_3\",\"10_1_1_Z99OFI000210200_1\",\"10_1_1_Z99OFI000240400_3\",\"10_1_1_Z99OFI000250200_2\",\"10_1_3_Z99UNI0000604XL_1\"];*/\n $arreglo= [\"1_1_1_A54EPP000070241_2\",\"1_1_1_A39ASE000060200_0\",\"1_1_1_A54EPP000080244_1\",\"1_1_1_A39ASE000050200_1\",\"1_1_2_Z99ASE000020600_0\",\"1_1_2_Z99ASE000010100_2\",\"1_1_2_A14TRA000011200_1\",\"1_1_2_Z99ASE000080600_0\",\"2_1_2_Z99EPP00066010L_0\",\"2_1_2_A15TRA000021200_6\",\"2_1_2_A03EPP00015050M_3\",\"2_1_2_A57EPP000721200_4\",\"2_1_2_A03EPP00014050S_1\",\"2_1_2_A03EPP00016050L_4\",\"2_1_2_A03EPP0001705XL_2\",\"2_1_2_A52UNI000270400_10\",\"2_1_2_Z99EPP00006000M_2\",\"2_1_2_Z99EPP00065010M_0\",\"3_1_2_A05UNI00009060L_13\",\"3_1_2_A05UNI0001106XX_2\",\"3_1_2_A05UNI0001006XL_10\",\"3_1_3_A05UNI00008060M_4\",\"4_1_3_A05EPP00055060S_8\",\"4_1_2_A05EPP00056060M_3\",\"4_1_3_A05EPP0005806XL_10\",\"4_1_3_A05EPP0005906XX_0\",\"4_1_3_A05EPP00037040L_9\",\"4_1_3_A05EPP0003804XL_7\",\"4_1_3_A05EPP0004303XL_2\",\"5_1_2_A05UNI00019040L_6\",\"5_1_3_A05UNI0002004XL_9\",\"6_1_2_A23ANA000350200_2\",\"6_1_2_A24ANA000361000_1\",\"6_1_3_A05UNI00017040S_9\",\"6_1_3_Z99ANA000370900_1\",\"7_1_1_A29ANA000270200_4\",\"7_1_1_A29ANA000280200_1\",\"7_1_1_A29ANA000290200_1\",\"7_1_1_A27ANA000241200_1\",\"7_1_1_A25ANA000310600_1\",\"7_1_2_Z99ANA000261200_3\",\"8_1_1_A23ANA000150200_1\",\"8_1_1_A23ANA000160200_1\",\"8_1_1_A32ANA000400200_1\",\"8_1_1_A32ANA000390200_2\",\"9_1_3_A05EPP00061110M_1\",\"9_1_3_A05EPP0006311XL_2\",\"9_1_1_A05UNI0001510XL_3\",\"9_1_1_A05UNI00014100L_6\",\"9_1_4_A05UNI0002004XL_9\",\"9_1_4_A05UNI00019040L_6\",\"1_1_2_A03EPP0002210XL_0\",\"1_1_2_Z99ASE000030600_9\",\"2_1_2_Z99EPP0006701XL_34\",\"2_1_2_A10EPP00005050M_67\",\"2_1_2_A09EPP000690100_0\",\"2_1_2_A57EPP000701200_5\",\"3_1_3_A05UNI00007060S_8\",\"4_1_1_Z99ANA000080000_18\",\"4_1_1_Z99ANA000070000_53\",\"4_1_2_A05EPP00036040M_2\",\"4_1_2_A05EPP00041030M_0\",\"4_1_3_A05EPP00057060L_14\",\"6_1_2_A05UNI00018040M_8\",\"6_1_2_A22ANA000380900_4\",\"7_1_1_A26ANA000300900_0\",\"7_1_1_A25ANA000320600_0\",\"7_1_1_Z99ANA000331000_0\",\"7_1_1_A27ANA000251200_1\",\"7_1_2_Z99ANA000340100_3\",\"8_1_1_A56ANA000031200_0\",\"8_1_1_Z99ANA000020400_2\",\"8_1_2_Z99ANA000410200_2\",\"9_1_3_A05EPP00062110L_7\",\"9_1_4_A52EPP0002702XL_1\",\"9_1_4_A52EPP00025020M_2\",\"9_1_4_A52EPP00026020L_6\",\"1_1_2_Z99ASE000040200_5\",\"1_1_2_Z99ASE000070200_4\",\"10_1_1_A36OFI000280200_3\",\"10_1_1_Z99OFI000250200_2\",\"10_1_1_A42OFI000031300_9\",\"10_1_1_A03UNI00001040S_0\",\"10_1_1_A03UNI00002040M_0\",\"10_1_1_A49OFI000120200_0\",\"10_1_1_A50OFI000260100_4\",\"10_1_1_Z99OFI000040200_1\",\"10_1_1_Z99OFI000070100_4\",\"10_1_1_Z99OFI000080100_1\",\"10_1_1_Z99OFI000191200_3\",\"10_1_1_Z99OFI000210200_1\",\"10_1_1_Z99OFI000090100_1\",\"10_1_2_A03UNI0000504XX_0\",\"10_1_2_A03UNI0000404XL_0\",\"10_1_3_Z99UNI0000604XL_1\",\"11_1_2_A01EPP000310941_5\",\"11_1_3_Z99EPP000010942_0\",\"11_1_3_A01EPP000330943_1\",\"12_1_1_Z99ANA000090000_50\",\"12_1_3_Z99ANA000430200_1\",\"12_1_4_A02EPP000110000_4\",\"12_1_4_A02EPP000120400_2\",\"12_1_4_A13EPP000100200_3\",\"12_1_4_A02EPP000711200_3\",\"11_1_4_A01EPP000290939_0\",\"13_1_1_A23ANA000120500_1\",\"13_1_1_A33ANA000140200_1\",\"13_1_1_A33ANA000170200_1\",\"13_1_1_A33ELE000010500_1\",\"13_1_1_A33ELE000020500_1\",\"13_1_1_Z99ANA000100300_1\",\"13_1_1_Z99ANA000110600_1\",\"13_1_1_Z99ANA000200000_40\",\"13_1_1_Z99ANA000210500_1\",\"10_1_2_A03UNI00028040L_7\",\"10_1_3_A03UNI0002804XL_4\",\"10_1_3_A03UNI0002804XX_3\",\"9_1_2_A05UNI00013100M_2\",\"9_1_4_Z99EPP000091000_20\",\"6_1_1_A03EPP000750100_10\",\"13_1_1_A02EPP00003060L_0\",\"13_1_1_A02EPP00004060M_0\",\"6_1_2_A05UNI00028100M_2\",\"5_1_2_A05UNI00028100L_4\",\"5_1_3_A05UNI0002810XL_2\",\"10_1_2_A52UNI00023100M_3\",\"10_1_2_A52UNI00024100L_5\",\"10_1_2_A52UNI0002510XL_1\",\"10_1_2_A03UNI00028040S_9\",\"10_1_2_A03UNI00028040M_5\",\"10_1_1_A43OFI000291200_2\",\"10_1_1_A63OFI000290300_3\",\"10_1_1_A45OFI000290200_2\",\"10_1_1_A79OFI000290000_2\",\"10_1_1_A43OFI000290000_2\",\"10_1_1_A80OFI000290000_1\",\"9_1_4_A02EPP00075020M_20\",\"9_1_4_A02EPP00004060M_0\",\"10_1_1_A41OFI000161000_12\",\"10_1_1_Z99OFI000060300_5\",\"10_1_1_A41OFI000150600_9\",\"10_1_1_A43OFI000110000_9\",\"10_1_1_A43OFI000221200_5\",\"10_1_1_A48OFI000140200_36\",\"10_1_1_A44OFI000050200_7\",\"10_1_1_A43OFI000200200_0\",\"10_1_1_A48OFI000230200_0\",\"10_1_1_Z99OFI000240400_1\",\"10_1_1_A41OFI000130200_15\",\"10_1_1_A42OFI000010600_13\",\"10_1_1_Z99OFI000100200_1\",\"11_1_3_A02EPP000740000_3\",\"11_1_4_A02EPP000130200_19\",\"10_1_1_A41OFI000290400_20\",\"7_1_1_A30ANA000010300_0\",\"9_1_4_A52EPP00024020S_0\",\"9_1_4_A02EPP00003060L_20\",\"10_1_1_A42OFI000020500_6\",\"10_1_1_A50OFI000270100_2\",\"10_1_1_A45OFI000291200_2\",\"10_1_1_A43OFI000290500_1\"];\n for ($i=0; $i < count($arreglo); $i++) { \n $array = explode(\"_\",$arreglo[$i]);\n Posicione::create([\n 'estante_id' => $array[0],\n 'sectorpos' => $array[1],\n 'nivelpos' => $array[2],\n 'codigoart' => $array[3],\n 'cantidadpos' => $array[4],\n ]);\n }\n }", "title": "" } ]
51a5157a1580abe48fda484ab5cc3fc8
Get class name that contains the method.
[ { "docid": "26b56bb3fd6d6857ae9757839f099633", "score": "0.0", "text": "public function getClass ( ) {\n\n return $this->_class;\n }", "title": "" } ]
[ { "docid": "8c48a809763465dffbd1a57fd99a38ca", "score": "0.77285117", "text": "public function getClassAndMethodName()\n\t{\n\t\treturn $this->class_and_method_name;\n\t}", "title": "" }, { "docid": "cc198ea9837bcc27a2746e305ebd7d34", "score": "0.75589174", "text": "public final static function className()\n {\n return get_called_class();\n }", "title": "" }, { "docid": "5488817e80f3331e55b01bec0a88320e", "score": "0.7531411", "text": "public function getClass(): string\n {\n return get_called_class();\n }", "title": "" }, { "docid": "c8d9fb0fcd1629aac26d37ad4aaf83c8", "score": "0.7526748", "text": "public static function getClassName()\n {\n return get_called_class();\n }", "title": "" }, { "docid": "ffff8f2d88a452a3692fb6dc5af4852a", "score": "0.75209695", "text": "public static function getClassName() {\n return get_called_class();\n }", "title": "" }, { "docid": "b86eaf4f8de400601154067466a7d203", "score": "0.7482423", "text": "public static function className()\n {\n return get_called_class();\n }", "title": "" }, { "docid": "e84582a35cb6efc276e1cc1d6aad8d07", "score": "0.74672616", "text": "public function getClassName();", "title": "" }, { "docid": "e84582a35cb6efc276e1cc1d6aad8d07", "score": "0.74672616", "text": "public function getClassName();", "title": "" }, { "docid": "e84582a35cb6efc276e1cc1d6aad8d07", "score": "0.74672616", "text": "public function getClassName();", "title": "" }, { "docid": "e84582a35cb6efc276e1cc1d6aad8d07", "score": "0.74672616", "text": "public function getClassName();", "title": "" }, { "docid": "e84582a35cb6efc276e1cc1d6aad8d07", "score": "0.74672616", "text": "public function getClassName();", "title": "" }, { "docid": "e84582a35cb6efc276e1cc1d6aad8d07", "score": "0.74672616", "text": "public function getClassName();", "title": "" }, { "docid": "e84582a35cb6efc276e1cc1d6aad8d07", "score": "0.74672616", "text": "public function getClassName();", "title": "" }, { "docid": "8a612f88247da302eef4bb75853fb38f", "score": "0.74545074", "text": "public function getMethodName() {\n return ucfirst($this->method->name);\n }", "title": "" }, { "docid": "25fa6f24835b1ee8540ba5b323c7e5c8", "score": "0.7441853", "text": "public function className() {\n return get_called_class();\n }", "title": "" }, { "docid": "183fc2c0b0149ef9a92314c838c5c151", "score": "0.7379931", "text": "public function getMethodName()\n {\n return ucfirst($this->method->name);\n }", "title": "" }, { "docid": "58fa73e3b60ebfa54d1e437b23bc925f", "score": "0.73305845", "text": "public function getClassName(): string\n {\n return $this->class;\n }", "title": "" }, { "docid": "47cdb6e486b2fd885741f7b57dbd7d56", "score": "0.7324837", "text": "public function getClassname(): string;", "title": "" }, { "docid": "9aaffc4c883a9c7f09a852e22adde6cc", "score": "0.73106444", "text": "public function getClass() : string {\n return $this->clazzName;\n }", "title": "" }, { "docid": "ffc6e01c79ffab1c1378fa009d214600", "score": "0.72898805", "text": "protected function getClassname(): string\n {\n return $this->className;\n }", "title": "" }, { "docid": "de976041cee68b13cde39b973ade81bd", "score": "0.7285109", "text": "public function getClassName(): string;", "title": "" }, { "docid": "de976041cee68b13cde39b973ade81bd", "score": "0.7285109", "text": "public function getClassName(): string;", "title": "" }, { "docid": "cea0a25420bc5608f10a1e18d6b6fd93", "score": "0.7228019", "text": "public function getMethodName();", "title": "" }, { "docid": "8dda3cbe28a06d1eb1f73527dc087bb1", "score": "0.7225049", "text": "public function getClassName() {\n return \\get_class($this->target);\n }", "title": "" }, { "docid": "0ff8975f2a4a8ffed56ffbb50887e483", "score": "0.72044134", "text": "public function get_class_name()\n {\n return $this->className;\n }", "title": "" }, { "docid": "8259624e4b23034e81d21dee692653a4", "score": "0.7189828", "text": "private function get_class_name() {\n return !is_null($this->class_name) ? $this->class_name : get_class($this);\n }", "title": "" }, { "docid": "b563f1c3308900d9ebe1da16a3657a26", "score": "0.715727", "text": "public static function getClassName()/*# : string */;", "title": "" }, { "docid": "b3444f464203ee0d7beee050b7b6a997", "score": "0.7151084", "text": "public function getClassName()\n {\n return $this->get(self::CLASS_NAME);\n }", "title": "" }, { "docid": "f5e49360e43a9e38f87165a019d8ebbf", "score": "0.71505564", "text": "protected function getClassName(): string\n\t{\n\t\t$name = $this->params[0] ?? CLI::getSegment(2);\n\n\t\treturn $name ?? '';\n\t}", "title": "" }, { "docid": "d3ba9d40e288ed33c0e40deced7902cb", "score": "0.7123577", "text": "public function getClass(): string\n {\n return $this->class;\n }", "title": "" }, { "docid": "d3ba9d40e288ed33c0e40deced7902cb", "score": "0.7123577", "text": "public function getClass(): string\n {\n return $this->class;\n }", "title": "" }, { "docid": "d3ba9d40e288ed33c0e40deced7902cb", "score": "0.7123577", "text": "public function getClass(): string\n {\n return $this->class;\n }", "title": "" }, { "docid": "d3ba9d40e288ed33c0e40deced7902cb", "score": "0.7123577", "text": "public function getClass(): string\n {\n return $this->class;\n }", "title": "" }, { "docid": "d3ba9d40e288ed33c0e40deced7902cb", "score": "0.7123577", "text": "public function getClass(): string\n {\n return $this->class;\n }", "title": "" }, { "docid": "d3ba9d40e288ed33c0e40deced7902cb", "score": "0.7123577", "text": "public function getClass(): string\n {\n return $this->class;\n }", "title": "" }, { "docid": "0c95e739544551795324b10f03dea5c7", "score": "0.7116441", "text": "public static function getName() {\n return get_called_class();\n }", "title": "" }, { "docid": "0a5cbeacfe59d88442e191b03867a7d7", "score": "0.71055806", "text": "public function fullyQualifiedClassName() : string\n {\n return get_class($this);\n }", "title": "" }, { "docid": "452036e5d44c1f0f271a59392e721f23", "score": "0.70924604", "text": "public function getClassName() { return __CLASS__; }", "title": "" }, { "docid": "81fe4ad2414b8bdaacd8a6a5814f167c", "score": "0.7090695", "text": "public function getMethodName() {\n return $this->method;\n }", "title": "" }, { "docid": "07740a79716099e521cf78bf83935f5b", "score": "0.7085421", "text": "public function getClassName(): string\n {\n return $this->className;\n }", "title": "" }, { "docid": "163253be7bf66ec9569a40b777895be2", "score": "0.70827913", "text": "public function getName()\n {\n return get_called_class();\n }", "title": "" }, { "docid": "c482fe2c762f9c7e5dba6bece9d7f4b2", "score": "0.7082778", "text": "public function getMethodName(): string;", "title": "" }, { "docid": "b30a4d5ed5ae9822379a1bbaf1abbea8", "score": "0.7082175", "text": "public function getReflectionClassType() {\n $parameters = $this->getMethodParameters();\n\n if (isset($parameters[0])) {\n return explode(\"::\", $parameters[0])[0];\n } else {\n return \"\";\n }\n }", "title": "" }, { "docid": "ada99deb6223b7b8c627233992c4409d", "score": "0.707868", "text": "protected function className()\n {\n $name = get_class($this);\n $array = explode(\"\\\\\", $name);\n return array_last($array);\n }", "title": "" }, { "docid": "6cd18c9f4138f1f38c47b5df81a2beaa", "score": "0.70508754", "text": "public function get_class_name()\n {\n $class = explode('\\\\', (get_class($this)));\n\n return strtolower($class[count($class) - 1]);\n }", "title": "" }, { "docid": "9dd02b6050ce560402ed978b639dc18a", "score": "0.7046152", "text": "public abstract function getClassName() : string;", "title": "" }, { "docid": "9655cfa1e1db3fb165cab725fcaa8ae7", "score": "0.70414853", "text": "public function getClassName()\n {\n return $this->class_name;\n }", "title": "" }, { "docid": "9655cfa1e1db3fb165cab725fcaa8ae7", "score": "0.70414853", "text": "public function getClassName()\n {\n return $this->class_name;\n }", "title": "" }, { "docid": "7bd1aae8af4b5707eeb2774bbb6a0246", "score": "0.7035012", "text": "public function getCallClassName() {\n\t\treturn $this->_getClassName($this->call);\n\t}", "title": "" }, { "docid": "361da567ce561dac96d7eed156c7991b", "score": "0.7023686", "text": "public function getName() {\n return $this->reflectionMethod->getName();\n }", "title": "" }, { "docid": "41c252c8ff220972794bfd9baf67f5b7", "score": "0.7019122", "text": "public function getClass(): string;", "title": "" }, { "docid": "41c252c8ff220972794bfd9baf67f5b7", "score": "0.7019122", "text": "public function getClass(): string;", "title": "" }, { "docid": "38b2abd05e956251ed2885170c117f14", "score": "0.69997066", "text": "public function getClassName() {\n return get_class( $this );\n }", "title": "" }, { "docid": "b3639ca54b6ca8561b12a301ff435bfe", "score": "0.69741166", "text": "public function getClass(): string\n {\n return explode('\\\\', get_class())[2];\n }", "title": "" }, { "docid": "cc34774be8fc19c5aaf50959a3c7215f", "score": "0.6967506", "text": "public static function getClassName(){\n return __CLASS__;\n }", "title": "" }, { "docid": "949946fbba5cfdec591657f8a927fa21", "score": "0.6961534", "text": "public function getClass() : string\n {\n return $this->Class;\n }", "title": "" }, { "docid": "e5ccaecbf49dfc3f1cba6fb7ef9d360b", "score": "0.6955948", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "e5ccaecbf49dfc3f1cba6fb7ef9d360b", "score": "0.6955948", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "e5ccaecbf49dfc3f1cba6fb7ef9d360b", "score": "0.6955948", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "e5ccaecbf49dfc3f1cba6fb7ef9d360b", "score": "0.6955948", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "e5ccaecbf49dfc3f1cba6fb7ef9d360b", "score": "0.6955948", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "e5ccaecbf49dfc3f1cba6fb7ef9d360b", "score": "0.6955948", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "e16c6cd1fe0f03978c9d94fe995a4f17", "score": "0.69480556", "text": "public function className(): string\n {\n return $this->className;\n }", "title": "" }, { "docid": "4442b5872bac3079cfc7b7b11b9c5ca6", "score": "0.6947906", "text": "abstract public function getClassName();", "title": "" }, { "docid": "4442b5872bac3079cfc7b7b11b9c5ca6", "score": "0.6947906", "text": "abstract public function getClassName();", "title": "" }, { "docid": "786eb48f9514152bb7f9f5251de4893a", "score": "0.6927516", "text": "protected function getClassName(): string\n {\n if (null === $this->className) {\n $this->className = $this->getCooker()->getClassName();\n }\n return $this->className;\n }", "title": "" }, { "docid": "3b53ccf9396e109215175ceb08a18cba", "score": "0.6913861", "text": "public function className()\n {\n return $this->className;\n }", "title": "" }, { "docid": "49df58ef0b6394657411dc8662f77ba1", "score": "0.6910129", "text": "public function getClassName() {\n return $this->className;\n }", "title": "" }, { "docid": "c99d3379f6a8df6b936afcaeb027d2b4", "score": "0.6906263", "text": "public function getClassName()\n {\n return $this->_className;\n }", "title": "" }, { "docid": "d424a4f27d736a3b62d0547e99175074", "score": "0.690411", "text": "public function name($class);", "title": "" }, { "docid": "083bdfb8e9043d8e4ea80ca446d3e0e5", "score": "0.6898256", "text": "public static function getClass()\n {\n return get_called_class();\n }", "title": "" }, { "docid": "2b518b453a55b60721e5e4701b3c0137", "score": "0.68959504", "text": "function getName(){\r\n\t\treturn array_pop(explode('\\\\',get_called_class()));\r\n\t}", "title": "" }, { "docid": "861244f8974ee223c872ffc17bb0ed7b", "score": "0.6885232", "text": "public function getClassName()\n {\n // TODO: Implement getClassName() method.\n }", "title": "" }, { "docid": "425f70735c31bd7c4b258365f6212ef8", "score": "0.685674", "text": "public function getClass()\n {\n return get_called_class();\n }", "title": "" }, { "docid": "a15ec290c57b3b227aa12c53eaeab1f9", "score": "0.6852698", "text": "protected function getClassName(): string\n {\n $array = explode('\\\\', get_class($this->repository->getModel()));\n return strtolower(end($array));\n }", "title": "" }, { "docid": "8169dc362b56e422afb35fccb9459df6", "score": "0.6840551", "text": "protected function getClassName()\n {\n $table = $this->getTableName();\n $column = $this->getColumnName();\n\n return Str::studly(\"add_{$column}_to_{$table}\");\n }", "title": "" }, { "docid": "f129e55012fa9bde3ee1b4cde272d526", "score": "0.68400204", "text": "public function getClassName() {\n\t\treturn $this->_getClassName($this->objectToIntercept);\n\t}", "title": "" }, { "docid": "7fbc6d4b6d47af9d20073d0a74cd6b25", "score": "0.6826569", "text": "protected static function _class_to_name() {\n\t\treturn Inflector::singularize(strtolower(str_replace('Controller_', '', get_called_class())));\n\t}", "title": "" }, { "docid": "b4bfd5ed2508833a4245dad5ac4d2536", "score": "0.68206036", "text": "function getClassName()\n {\n return $this->_class_name ;\n }", "title": "" }, { "docid": "c5cd43b0113d1bc7b38927c6bc3e4d01", "score": "0.68156356", "text": "public function getName() {\n\t\treturn get_class($this);\n\t\t// return get_called_class();\n\t}", "title": "" }, { "docid": "21e111f1279a297c9d1c49c3ee902a5b", "score": "0.6809671", "text": "public function getClassName() { return get_class($this); }", "title": "" }, { "docid": "a017558013eb8d76a266065912193d4b", "score": "0.6809606", "text": "public function getMethodName()\n {\n return $this->methodName;\n }", "title": "" }, { "docid": "a017558013eb8d76a266065912193d4b", "score": "0.6809606", "text": "public function getMethodName()\n {\n return $this->methodName;\n }", "title": "" }, { "docid": "a017558013eb8d76a266065912193d4b", "score": "0.6809606", "text": "public function getMethodName()\n {\n return $this->methodName;\n }", "title": "" }, { "docid": "de93d3aabbcaa9cd76ac8cbf40d7fb73", "score": "0.6809212", "text": "public function getClassName() {\n\n\t\treturn $this->className;\n\t}", "title": "" }, { "docid": "07054c757a62bafa00f1c8b252e52671", "score": "0.68046266", "text": "protected function getMethodNameForClass(Element $element): string\n {\n // if a method exists for this element, then use that one\n $className = get_class($element);\n\n // strip namespaces;\n $className = substr($className, strrpos($className, '\\\\') + 1);\n\n // make first char lower case\n return strtolower(substr($className, 0, 1)) . substr($className, 1);\n }", "title": "" }, { "docid": "1e67c20fed349bc716cb9e16b3a8cec4", "score": "0.67976797", "text": "public static function class_name()\n {\n return static::class;\n }", "title": "" }, { "docid": "b6cc1e4570cfab92ae92ec1f5ec4100a", "score": "0.6789813", "text": "protected abstract function getClassName();", "title": "" }, { "docid": "8b449d878045bad2113afafa738155bb", "score": "0.67851025", "text": "protected static function className()\n {\n return __CLASS__;\n }", "title": "" }, { "docid": "8b449d878045bad2113afafa738155bb", "score": "0.67851025", "text": "protected static function className()\n {\n return __CLASS__;\n }", "title": "" }, { "docid": "8b449d878045bad2113afafa738155bb", "score": "0.67851025", "text": "protected static function className()\n {\n return __CLASS__;\n }", "title": "" }, { "docid": "986a141933587a4c82ce1fbeac569092", "score": "0.67676437", "text": "public function getName()\n {\n return 'class';\n }", "title": "" }, { "docid": "b1ef72baf60cc3a48798d5745c12fb7a", "score": "0.67654777", "text": "public function getClass() : string;", "title": "" }, { "docid": "17d813da2a048a2e480e827af5105e68", "score": "0.6759584", "text": "public function getMethodName() {\n\n\t\treturn $this->methodName;\n\n\t}", "title": "" }, { "docid": "83244ca72a169d9e2dfb88a2d19df143", "score": "0.6757072", "text": "public function getMethodName() {\n\t\treturn $this->_getMethodName($this->objectToIntercept);\n\t}", "title": "" }, { "docid": "ae2dfec08d3360baea82ff88d80cb699", "score": "0.6754603", "text": "public function getClassName()\n\t{\n\t\treturn $this->className;\n\t}", "title": "" }, { "docid": "ae2dfec08d3360baea82ff88d80cb699", "score": "0.6754603", "text": "public function getClassName()\n\t{\n\t\treturn $this->className;\n\t}", "title": "" }, { "docid": "8e5c67c986f28763c87aba6ca05c947a", "score": "0.67369235", "text": "public function method(): string\n {\n return $this->getMethod();\n }", "title": "" }, { "docid": "d7144dad8482baeca54205ecf3f235f2", "score": "0.6705752", "text": "protected static function class_name () {\n return __CLASS__;\n }", "title": "" }, { "docid": "d7144dad8482baeca54205ecf3f235f2", "score": "0.6705752", "text": "protected static function class_name () {\n return __CLASS__;\n }", "title": "" }, { "docid": "ee9b47e036ee72a948df976d5dd3380b", "score": "0.67047226", "text": "public static function method() {\n\t\treturn (string)Config::inst()->get(__CLASS__, 'method');\n\t}", "title": "" } ]
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "71c4533ae620551fcfb594e1ff384012", "score": "0.0", "text": "public function edit($id)\n {\n $producto_bodega = ProductoBodega::find($id);\n return view('admin.bodega.productos.edit',['producto_bodega'=>$producto_bodega]);\n }", "title": "" } ]
[ { "docid": "63497a4ff75a6b12992600d5af4d1bbe", "score": "0.79442763", "text": "public function edit(Resource $resource)\n {\n $rsr = $resource;\n return view('admin.resource.edit',compact('rsr'));\n }", "title": "" }, { "docid": "49b3fe3f7253d93f1c8579116d67814a", "score": "0.79260045", "text": "public function edit() {\n $data['resources'] = Resource::get($_REQUEST['idResource']);\n $this->view->show(\"resources/updateResources\", $data);\n\n }", "title": "" }, { "docid": "f09a11111572f588818123ad93c4854c", "score": "0.78613216", "text": "public function edit(Resource $resource)\n {\n return view('resources.edit', ['resource' => $resource]);\n }", "title": "" }, { "docid": "2bbbffcfdd4173a05cbc190726de80b5", "score": "0.78005403", "text": "public function edit(Resource $resource)\n {\n return view('Resource.update',['resource'=> $resource, 'types' => $this->types]);\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.7693446", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "ef3e9f01b5c403fd41a38f33d2f1a922", "score": "0.7692364", "text": "public function edit($id)\n\t{\n\t\t// get the resource\n\t\t$resource = Resource::find($id);\n\n\t\t// show the edit form and pass the resource\n\t\treturn view('resources.edit', ['resource' => $resource]);\n\t}", "title": "" }, { "docid": "ac53c5763e3a0b0ec0125039ef9bb509", "score": "0.763413", "text": "public function edit()\n {\n $this->form();\n }", "title": "" }, { "docid": "0f32b306b1aa0f5b31036edb537b0c74", "score": "0.71715564", "text": "function edit() {\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t$productId = KRequest::getInt('productId');\n\n\t\t$view = $this->getDefaultViewForm();\n\t\t$view->setProductId($productId)->display();\n\n\t}", "title": "" }, { "docid": "d8e210ea6b36c944e816d8ec19543411", "score": "0.71477795", "text": "public function edit(Resource $resource, Identifier $identifier): View\n {\n $this->authorize('update', $identifier);\n\n return view('identifiers.edit')\n ->with('identifiable', $resource)\n ->with('identifier', $identifier);\n }", "title": "" }, { "docid": "219dcedd731665337d4912c0c43d0cb6", "score": "0.7056264", "text": "public function displaysEditForm();", "title": "" }, { "docid": "0a368a092d974074b6d8f048a5aa1f04", "score": "0.70375425", "text": "public function edit($id)\n {\n\n $file=Resource::where('id',$id)->with('form')->first();\n\n return view('dashboard2.resources.view-single',compact('file'));\n\n }", "title": "" }, { "docid": "96884a0d55f36349b743e3d913248156", "score": "0.70029044", "text": "function edit()\n {\n $this->_view_edit('edit');\n }", "title": "" }, { "docid": "fbf54e9e3bb25e5f2f4d8c933bfc17c1", "score": "0.6974841", "text": "public function edit($id)\n\t{\n\t\t$types = array('carousel'=>'carousel', 'block'=>'block');\n\t\t$resource = $this->resource->find($id);\n\n\t\tif (is_null($resource))\n\t\t{\n\t\t\treturn Redirect::route('backend.resources.index');\n\t\t}\n\n\t\treturn View::make('backend.resources.edit', compact('resource','types'));\n\t}", "title": "" }, { "docid": "38b4c2bcc5d6f933f82442e502068ae3", "score": "0.6946892", "text": "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "title": "" }, { "docid": "ec89f95d803c1882fe8f62198321e89d", "score": "0.69373286", "text": "public function edit()\n {\n return view('feregister::edit');\n }", "title": "" }, { "docid": "453c6ef4ad1256a84463a04120493055", "score": "0.69314224", "text": "public function edit($id)\n\t{\n\t\t$resource = Resource::find($id);\n\t\t$resourcetags = $resource->tags()->get();\n\t\t$resourceDevice = $resource->devices()->get();\n\t\t$tags = Tag::all();\n\t\treturn View::make(\"resources.edit\", compact('resource', 'tags', 'resourcetags', 'resourceDevice'));\n\n\t}", "title": "" }, { "docid": "ace9804aed3dcd98f54ca26999591399", "score": "0.69138044", "text": "public function editAction()\n {\n\n //changing layout for formbuilder\n $this->layout('layout/layoutformbuilder');\n\n //to check if the form is available with sending id\n $id = (int)$this->params()->fromRoute('id', 0);\n if (!$id) {\n return $this->redirect()->toRoute('forms');\n }\n\n try {\n $formtable = $this->table->getForm($id);\n } catch (\\Exception $ex) {\n\n return $this->redirect()->toRoute('formlar');\n }\n\n $public = ($formtable->public == 0 ? \"\" : \"checked\");\n\n $formdata = str_replace([\"\\r\", \"\\n\", \"\\t\"], \"\", $formtable->form_xml);\n\n return new ViewModel(array(\n 'formdata' => $formdata,\n 'title' => $formtable->title,\n 'public' => $public,\n 'form_id' => $id,\n ));\n }", "title": "" }, { "docid": "896f4a4d71aca2d677afe0b092e925ae", "score": "0.6899333", "text": "public function editForm()\n {\n $company = App::get('database')->select('companies', 'id', $_GET['id']);\n return view('companies.edit', compact('company'));\n }", "title": "" }, { "docid": "f60e724dc93ad65b7bd2e7142b16eabc", "score": "0.6899143", "text": "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "title": "" }, { "docid": "9eb1e5145183746d6174732b2e6ab6f7", "score": "0.68895197", "text": "public function edit($id)\n {\n $this->data[$this->modelName] = $this->repository->findById($id);\n $this->data[\"formRoute\"] = \"app.admin.{$this->pluralModelName}.update\";\n\n if ($this->package) {\n return \\View::make(\"{$this->package}{$this->pluralModelName}.form\", $this->data);\n }\n return \\View::make(\"{$this->pluralModelName}::form\", $this->data);\n }", "title": "" }, { "docid": "2891bcfcbba3d9ccd7e04a793a319678", "score": "0.6881139", "text": "public function edit()\n {\n return view('relatorio/edit');\n }", "title": "" }, { "docid": "e6470354f303106d7614dcb739e7ac8b", "score": "0.68706316", "text": "public function edit($id)\n\t{ \n return $this->showForm($id) ;\n\t}", "title": "" }, { "docid": "1261b2ff2c2892d8e345a090ebccdc20", "score": "0.6869723", "text": "public function edit($id)\n {\n //\n $resource= Resource::find($id);\n return view('admin.resources.edit')->with('resource',$resource)\n ->with('categories', ResourceCategory::all());\n \n \n }", "title": "" }, { "docid": "aa9bd3e29a3754d9df81fc4fecc9f778", "score": "0.68544996", "text": "public function edit()\n\t{\n\t\t$app = JFactory::getApplication();\n\t\t$app->input->set('view', \"{$this->resource}_edit\");\n\n\t\t$requestedIDs = THM_GroupsHelperComponent::cleanIntCollection($app->input->get('cid', [], 'array'));\n\t\t$requestedID = (empty($requestedIDs) or empty($requestedIDs[0])) ?\n\t\t\t$app->input->getInt('id', 0) : $requestedIDs[0];\n\n\t\t$app->input->set('id', $requestedID);\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "403e97bd79006ec2c70680a1e5607024", "score": "0.6847888", "text": "public function edit()\n //Affiche la vue d'édition\n {\n $idq = (int)$this->request->getParameter('idq');\n $idquest = (int)$this->request->getParameter('idquest');\n if(!isset($idquest))\n {\n $this->linkTo('Questionnaire','showQuest'); //Redirection si on tente de forcer l'action\n }\n $questionnaire=Questionnaire::getWithId($idq);\n $question=Question::getWithId($idquest);\n\n $view = new View($this,'question/editQuestion');\n $view->setArg('user',$this->request->getUserObject());\n $view->setArg('questionnaire',$questionnaire);\n $view->setArg('question',$question); \n $view->render();\n }", "title": "" }, { "docid": "3f0fdb8a9e0c5042bc834d969bd7f457", "score": "0.6840463", "text": "public function edit($id)\n {\n $form = $this->formRepo->getById($id);\n return view('form::edit',compact('form'));\n }", "title": "" }, { "docid": "bc8f4e204324385826216ccb48ad7f95", "score": "0.6832526", "text": "public function edit($id)\n {\n $employee = $this->employee_model->find($id);\n $page_name = \"Employee Edit\";\n $data = [\n 'title' => $page_name . \" |\" . $this->scope,\n 'page_name' => $page_name,\n 'method' => \"PUT\",\n 'employee' => $employee\n ];\n return view('admin.employee.employee_form', $data);\n }", "title": "" }, { "docid": "574cbb15d465710a6d0d6af84b51d1c4", "score": "0.6825373", "text": "public function edit(Request $request, $resource = null, $modelId = null)\n {\n $resource = $this->getResource($resource)->findOrNew($modelId);\n $fields = $resource->formFields($request);\n\n return view('orm.form_editar', compact('resource', 'modelId', 'fields'));\n }", "title": "" }, { "docid": "e2927e92778527f489c5ee4fae07174a", "score": "0.6824701", "text": "public function edit()\n {\n return view('hariperawatan::edit');\n }", "title": "" }, { "docid": "7e6f6b98f95d290854fd4b7b6ebea376", "score": "0.6812048", "text": "public function edit($id)\n {\n $formi = Form::find($id);\n return view('form.edit')->with('form',$formi);\n }", "title": "" }, { "docid": "a66e6ee3bd0d4fa614c8f657ecc1c30e", "score": "0.6806856", "text": "public function edit(Form $form)\n {\n //\n }", "title": "" }, { "docid": "a66e6ee3bd0d4fa614c8f657ecc1c30e", "score": "0.6806856", "text": "public function edit(Form $form)\n {\n //\n }", "title": "" }, { "docid": "a66e6ee3bd0d4fa614c8f657ecc1c30e", "score": "0.6806856", "text": "public function edit(Form $form)\n {\n //\n }", "title": "" }, { "docid": "873a08d0f357fca631ccc7259052d9ce", "score": "0.68035305", "text": "public function edit()\n {\n return view('common::edit');\n }", "title": "" }, { "docid": "231882e93a58215aa3b11a974a66292d", "score": "0.67936623", "text": "public function edit()\n {\n return view('admin::edit');\n }", "title": "" }, { "docid": "287fac0e40e0fc4457b5971a6b332ea5", "score": "0.6783012", "text": "public function edit($id)\n {\n $form = Form::find($id);\n return view ('edit', compact('form','id'));\n\n }", "title": "" }, { "docid": "a0bb44c51b89e19c05c40a5e00361787", "score": "0.67816114", "text": "public function edit(FormBuilder $formBuilder, $id)\n {\n $this->checkAccess('edit');\n $model = $this->model->find($id);\n\n $form = $formBuilder->create($this->form, [\n 'method' => 'PUT',\n 'url' => route($this->url . '.update', $id),\n 'model' => $model\n ]);\n\n return view($this->folder . '.form', [\n 'title' => $this->title,\n 'form' => $form,\n 'breadcrumb' => 'new-' . $this->url\n ]);\n }", "title": "" }, { "docid": "e9a6ba4ac4a39eb71d0b22131b92e151", "score": "0.67805105", "text": "public function editAction()\n {\n //Renderiza la vista del formulario de edición pasando los datos del objeto de usuario como parámetros\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "title": "" }, { "docid": "c7a68fcc4c5d663b60bb79c1db0fd8f0", "score": "0.67793053", "text": "public function edit()\n {\n return view('rab::edit');\n }", "title": "" }, { "docid": "831f414162a04d60cf4626d4c7c10b29", "score": "0.6766659", "text": "public function action_edit()\n {\n\n $article_id = Request::current()->param( 'id' );\n\n $article = ORM::factory( 'Article', $article_id );\n\n $this->template->content = View::factory( 'article/edit' )\n ->set( \"article\", $article );\n }", "title": "" }, { "docid": "d4cb0697dc022ba2b219ae706730a925", "score": "0.67620254", "text": "public function edit()\n {\n return view(\"customer.profile.edit-form\");\n }", "title": "" }, { "docid": "7db9741921d6fb649f2fe79d04292bd8", "score": "0.67577684", "text": "function action_edit()\n {\n if (!empty($this->m_partial))\n {\n $this->partial($this->m_partial);\n return;\n }\n\n $node = &$this->m_node;\n\n $record = $this->getRecord();\n\n if ($record === null)\n {\n $location = $node->feedbackUrl(\"edit\", ACTION_FAILED, $record);\n $node->redirect($location);\n }\n\n // allowed to edit record?\n if (!$this->allowed($record))\n {\n $this->renderAccessDeniedPage();\n return;\n }\n\n $record = $this->mergeWithPostvars($record);\n\n $this->notify(\"edit\", $record);\n if ($node->hasFlag(NF_LOCK))\n {\n if ($node->m_lock->lock($node->primaryKey($record), $node->m_table, $node->getLockMode()))\n {\n $res = $this->invoke(\"editPage\", $record, true);\n }\n else\n {\n $res = $node->lockPage();\n }\n }\n else\n {\n $res = $this->invoke(\"editPage\", $record, false);\n }\n\n $page = &$this->getPage();\n $page->addContent($node->renderActionPage(\"edit\", $res));\n }", "title": "" }, { "docid": "6aff33fd543a3dbe6a9a3f0bc6d4aa3f", "score": "0.6755707", "text": "public function edit($id)\n\t{\n\t\treturn view($this->getViewPath() . '.edit', [\n\t\t\t'entity' => $this->getRepository()->getById($id)\n\t\t]);\n\t}", "title": "" }, { "docid": "da50458558a47bf128b527dd0589bf19", "score": "0.6742934", "text": "public function getShowEdit(){\n\t\t$data=array(\n\t\t\t\"product_id\"=>$_GET['product_id'],\n\t\t\t\"id\"=>$_GET['id'],\n\t\t\t\"key\"=>$_GET['key'],\n\t\t\t\"value\"=>$_GET['value'],\n\t\t\t\"value_type\"=>$_GET['value_type']);\n\t\t$this->setTitle('Edit Meta Data Fields');\n\t\t$this->setContent( $this->getView('shopify/editForm',$data, dirname(__DIR__)) );\n\t}", "title": "" }, { "docid": "327eb9166841535d9866d10e4d98911d", "score": "0.6734974", "text": "public function edit(FormBuilder $formBuilder,$id)\n {\n $model = $this->service->find($id);\n\n $form = $formBuilder->create($this->form, [\n 'method' => 'PUT',\n 'url' => route($this->url . '.update', $id),\n 'model' => $model\n ]);\n\n return view($this->folder . '.form', [\n 'title' => $this->title,\n 'form' => $form,\n 'breadcrumb' => 'new-' . $this->url\n ]);\n }", "title": "" }, { "docid": "327eb9166841535d9866d10e4d98911d", "score": "0.6734974", "text": "public function edit(FormBuilder $formBuilder,$id)\n {\n $model = $this->service->find($id);\n\n $form = $formBuilder->create($this->form, [\n 'method' => 'PUT',\n 'url' => route($this->url . '.update', $id),\n 'model' => $model\n ]);\n\n return view($this->folder . '.form', [\n 'title' => $this->title,\n 'form' => $form,\n 'breadcrumb' => 'new-' . $this->url\n ]);\n }", "title": "" }, { "docid": "327eb9166841535d9866d10e4d98911d", "score": "0.6734974", "text": "public function edit(FormBuilder $formBuilder,$id)\n {\n $model = $this->service->find($id);\n\n $form = $formBuilder->create($this->form, [\n 'method' => 'PUT',\n 'url' => route($this->url . '.update', $id),\n 'model' => $model\n ]);\n\n return view($this->folder . '.form', [\n 'title' => $this->title,\n 'form' => $form,\n 'breadcrumb' => 'new-' . $this->url\n ]);\n }", "title": "" }, { "docid": "ede615513f1cd6830cebbff1cff3d172", "score": "0.67318845", "text": "public function edit()\n {\n $show = false;\n return view('admin.company.new_edit_company', ['company' => $this->company, 'show' => $show]);\n }", "title": "" }, { "docid": "782ef4d2ddc01501d9d52db2e27382e3", "score": "0.6730418", "text": "public function edit()\n {\n $company = Company::firstOrFail();\n\n $this->authorize('update', $company);\n\n return view('company.edit', compact('company'));\n }", "title": "" }, { "docid": "dd81e1e93e373c64b8d97c13d404e1d9", "score": "0.67252904", "text": "public function editAction()\n {\n $config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/forms/employees.ini', 'edit');\n $form = new Application_Form_Employees($config);\n\n //Verificando o \"id\" do employee e caso nao exista ou seja nulo redireciona para tela inicial do employees.\n $idEmployee = $this->_request->getParam('id');\n\n if(empty($idEmployee) || $idEmployee==null){\n $this->redirect('/employees');\n }//if id employees\n\n //Recupera os dados do registro.\n $dadosEmployee = $this->_modelEmployees->find($idEmployee)->current();\n\n //Verifica se os registros existem e se retornar nulo redireciona para a tela inidial do employee\n if($dadosEmployee==null){\n $this->redirect('/employees');\n }else{\n //Faz os tratamentos para realizar o update\n $arrayDados = $this->_modelEmployees->_convertDBArr($dadosEmployee);\n\n //Update elements in DB\n if($this->_request->isPost()){\n $valida=$this->validateData($this->_request,'edit');\n if(is_bool($valida) & $valida==true) {\n $this->redirect('/employees');\n }else{\n $form->populate($this->_request->getParams());\n $this->view->error=$this->_exception;\n }\n }//if post form\n }//if / else dadosRegistro employee\n $this->view->form=$form;\n }", "title": "" }, { "docid": "976ce24b8869bc5efd9d3b6a9ef9cd04", "score": "0.67120564", "text": "public function edit($id)\n {\n $existing_product = Product::find($id);\n if ($existing_product == null) {\n return view(\"errors.404\");\n }\n //\n return view(\"products.form\")->with([\n \"product\" => $existing_product,\n \"action\" => \"/products/\" . $existing_product->id,\n \"method\" => \"PUT\"\n ]);\n }", "title": "" }, { "docid": "e351dcf650141a8698d44b64e5a4419d", "score": "0.6711533", "text": "public function edit($id) {\n //\n\n $record = Record::with(['project', 'version', 'step'])->findOrFail($id);\n $this->authorize('update', $record);\n return view('records.edit', compact('record'));\n }", "title": "" }, { "docid": "0944fd8e1824339605e976256e0b3109", "score": "0.6710112", "text": "public function edit($id)\n {\n $item = AppService::find($id);\n return View::make(self::CID.'.form')->with(['item' => $item ]);\n }", "title": "" }, { "docid": "07eefe6f127805103bc2fce4d90a6c56", "score": "0.66943294", "text": "public function edit(FormBuilder $formBuilder, $model)\n {\n if (!$model instanceof Model) {\n throw new ModelNotFoundException();\n }\n\n $url = route(\"{$this->_resourceId()}.update\", [$model->id]);\n\n return view($this->_getViewId('edit'), [\n 'resourceId' => $this->_resourceId(),\n 'title' => ucfirst($this->_resourceId()) . ' edit',\n 'form' => $this->_buildForm($formBuilder, [], [\n 'model' => $model,\n 'method' => 'PUT',\n 'url' => $url,\n ]),\n ]);\n }", "title": "" }, { "docid": "fb7b3974efc6a63347c6199f4b029cd6", "score": "0.6693601", "text": "public function edit()\n {\n return View::make('hr.manage_person');\n }", "title": "" }, { "docid": "0a029a6ab148c259b840db15b5d5d47b", "score": "0.66905385", "text": "public function edit($id)\n { \n $user = $this->db->getForEdit($id);\n\n return view('forms.edit', compact('user'));\n }", "title": "" }, { "docid": "b53d80e937efeb059b69199175992b44", "score": "0.6684393", "text": "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "title": "" }, { "docid": "5b998b4d45aa274c94ce73446f3c3925", "score": "0.6673525", "text": "public function edit($id)\n {\n $this->data['product'] = Product::findOrFail($id);\n $this->data['category'] = Category::ArrayForSelect();\n $this->data['mode'] = 'edit';\n return view('product.form', $this->data);\n }", "title": "" }, { "docid": "d4aad26a259262122f565814e7ce84e7", "score": "0.66734385", "text": "public function edit()\r\n {\r\n return view('tasksmanagement::edit');\r\n }", "title": "" }, { "docid": "f75501807012fb55bd7c913101cdf4db", "score": "0.66684854", "text": "public function EditForm() {\n\t\treturn $this->formForMode(Editable::ActionName);\n\t}", "title": "" }, { "docid": "9886a60c72f344fb1a6f18d92026613c", "score": "0.66681975", "text": "public function edit($id)\n {\n $model = $this->model->findOrFail($id);\n\n $data = ['model' => $model, 'title' => $this->title, 'subtitle' => $this->subtitle, 'view' =>$this->view];\n\n return view($this->admin.'.form')->with($data);\n }", "title": "" }, { "docid": "e0f498f2af90518d72ea59b1f6b65e8b", "score": "0.6663587", "text": "public function edit($id)\n {\n $equipment = Equipment::find($id);\n\n // Show the form\n return view('equipment.equipment-update', ['equipment' => $equipment]);\n }", "title": "" }, { "docid": "547f26916fa94a09feb71222a052271a", "score": "0.6662545", "text": "public function edit()\n {\n return view('all::edit');\n }", "title": "" }, { "docid": "0181f4e5e9689f674dc79546331ae9bc", "score": "0.66594917", "text": "public function edit()\n {\n return view('pemenangtender::edit');\n }", "title": "" }, { "docid": "b9e7c17b5ca2a237f0c1d1e7d9ca5a1e", "score": "0.6658585", "text": "public function edit()\n {\n return view('rekap::edit');\n }", "title": "" }, { "docid": "6b69173e00e76eea22ba6c8aec29e554", "score": "0.66582495", "text": "public function edit($id)\n {\n return view('agent::Entry.edit');\n }", "title": "" }, { "docid": "5abc6953fae7162215480b7a9fef57c1", "score": "0.66530836", "text": "public function edit()\n {\n return view('collection::edit');\n }", "title": "" }, { "docid": "3750ae1bfc7ba7197cadd140a6f90a57", "score": "0.6653065", "text": "public function edit($id)\n {\n $internauta = Internauta::findOrFail($id);\n return view('/layouts/admin/internauta_form',compact('internauta'));\n\n }", "title": "" }, { "docid": "56e8e9b08c0406905beb3036122cd7af", "score": "0.6644097", "text": "public function edit()\n {\n return view('home::edit');\n }", "title": "" }, { "docid": "6e4aaaecb164b8d0cbb900aa36edf9db", "score": "0.663976", "text": "public function edit($id)\n {\n $data = $this->data;\n $data = $this->customFormData($data);\n $model = $this->model;\n $data['record'] = $model::find($id);\n $data['idUpdate'] = $id;\n return view($this->form, $data);\n }", "title": "" }, { "docid": "10f67101b1ec6fd3d0c3c35c1442e712", "score": "0.6639417", "text": "public function editForm();", "title": "" }, { "docid": "7adf75fec90d8eb00935443a4314abdf", "score": "0.6638593", "text": "function edit()\n\t{\n\t\tJRequest::setVar( 'view', 'personnalisation' );\n\t\tJRequest::setVar( 'layout', 'form' );\n\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "9792a1a79a644a9b305c75264d7f1741", "score": "0.6634874", "text": "public function editAction()\n {\n\n $id = $this->_request->id;\n $server = $this->getTable('FedoraConnectorServer')->find($id);\n\n // Get the form.\n $form = $this->_doServerForm('edit', $id);\n\n // Fill it with the data.\n $form->populate(array(\n 'name' => $server->name,\n 'url' => $server->url,\n 'is_default' => $server->is_default\n ));\n\n $this->view->form = $form;\n $this->view->server = $server;\n\n }", "title": "" }, { "docid": "d0628008c21c857e6203f02c16d81776", "score": "0.66340107", "text": "public function edit(Request $request, $id)\n {\n $form = Form::find($id);\n \n return view('Admin.Form.edit',compact('form'));\n }", "title": "" }, { "docid": "8590c55c1c70061cc325176390a29404", "score": "0.6632366", "text": "public function edit(\n $resource,\n $userId\n );", "title": "" }, { "docid": "a8366eccbd97542beb1dcee0b26eec87", "score": "0.66249394", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BackendBundle:Receipe')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Receipe entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n\n\n return $this->render('BackendBundle:Receipe:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n\n ));\n }", "title": "" }, { "docid": "3c40f107dc8a7c56dda24081ce12fac9", "score": "0.662355", "text": "public function edit($id)\n {\n $template = (object) $this->template;\n $form = $this->form();\n $data = GambarDepan::findOrFail($id);\n return view('admin.master.edit',compact('template','form','data'));\n }", "title": "" }, { "docid": "537f56dbca99f12eba56dee2e6b7652c", "score": "0.6621511", "text": "public function edit($id)\n\t{\n $form = $this->form(Author::find($id), \"modify\", \"authors/\".$id);\n return view('authors.form', compact('form'));\n\t}", "title": "" }, { "docid": "d615d8d8a4d8f4cf935c141dac481476", "score": "0.6614787", "text": "public function edit($id)\n {\n\n $this->init();\n\n $this->pre_edit($id);\n\n $model = \"App\\\\\" . $this->model;\n $data = $model::find($id);\n $action = $this->action;\n $view = $this->model;\n\n\n $form = $model::edit_form($data);\n\n $form['data']['action'] = $action . \"/\" . $id;\n $form['data']['heading'] = \"Edit \" . str_singular($this->model) . \": \" . $id;\n $form['data']['type'] = \"edit\";\n $form['data']['submit'] = \"Update\";\n\n\n return view('tm::forms.add',compact( \"form\", 'action','view'));\n }", "title": "" }, { "docid": "70adb5a3151ff0ad7f56b3e02f53ecfb", "score": "0.6614734", "text": "public function edit($id)\n {\n return view('module::edit');\n }", "title": "" }, { "docid": "345d2a2590332cafb30fb6f184f6807e", "score": "0.66138774", "text": "public function edit($id)\n\t{\n\t\t$product = Product::find($id);\n\t\treturn view('admin.products.edit')->with(compact('product'));\t// Abrir form de modificacion\n\t}", "title": "" }, { "docid": "1c9e3fbaf6d64c606c4efb7b565c986a", "score": "0.661361", "text": "public function edit($id)\n\t{\n\t\t$employee = $this->employee->find($id);\n\t\treturn view('employee.edit',$employee);\n\t}", "title": "" }, { "docid": "a363f0a8d7cee161faa9c4c20a035fea", "score": "0.6612921", "text": "public function edit()\n {\n $user = $this->user;\n return view('i.edit',compact(\"user\"));\n }", "title": "" }, { "docid": "2b5fb043a3c87778cf2cebbc780df3b7", "score": "0.66005355", "text": "public function edit()\n\t{\n\t\tparent::edit();\n\t}", "title": "" }, { "docid": "c5f9f66773e15856a4fb998798981449", "score": "0.65997535", "text": "public function edit(Form $form)\n {\n return view('back.forms.edit', compact('form'));\n }", "title": "" }, { "docid": "0725d45df945a0db7f9c322605b7a2b3", "score": "0.6598462", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('StelQuestionBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('StelQuestionBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "2a47ad7ce79b806f24d1a15c7fc9c440", "score": "0.6598295", "text": "public function edit($id)\n {\n return view('frontend::edit');\n }", "title": "" }, { "docid": "6b40e5ba991031bdde690e4197097887", "score": "0.6597338", "text": "public function edit($id)\n {\n $data['module'] = array_merge($this->module(),[\n 'action' => 'update'\n ]);\n $data['data'] = Faq::findOrFail($id);\n return view(\"backend.{$this->module()['module']}.create-edit\", $data);\n }", "title": "" }, { "docid": "0ac449955cdecf917632987ec468ea81", "score": "0.65959156", "text": "public function editAction()\n {\n return $this->render();\n }", "title": "" }, { "docid": "83080d32c3b420a765df50f4c8ce9647", "score": "0.65933734", "text": "public function show($id){\n return $this->showForm('update', $id);\n }", "title": "" }, { "docid": "90b4761c6084dd8bf9c1af57e8c7a15e", "score": "0.6592632", "text": "public function display_edit() {\n\t\t$template = Template::get();\n\t\t$role = \\Role::get_by_id($_GET['id']);\n\n\t\tif (isset($_POST['role'])) {\n\t\t\t$role->load_array($_POST['role']);\n\t\t\t$role->save();\n\n\t\t\tSession::set_sticky('message', 'updated');\n\t\t\tSession::redirect('/administrative/role?action=edit&id=' . $role->id);\n\t\t}\n\n\t\t$permissions = \\Permission::get_all();\n\t\t$template->assign('permissions', $permissions);\n\t\t$template->assign('role', $role);\n\t}", "title": "" }, { "docid": "e2177174dce1589d74c83b8a2b827def", "score": "0.65891314", "text": "public function edit($id)\n {\n $product = ProductBook::find($id);\n if ($product==null){\n return redirect(\"errors\");\n }\n return view('admin.listItem.ProductBook.FormBook')->with([\n \"product\"=> $product,\n \"action\"=>\"/AdminProductBook/\" . $product->id,\n \"method\"=>\"PUT\"\n ]) ;\n }", "title": "" }, { "docid": "7f796cde701f9b339bc451ab192e51e9", "score": "0.6586675", "text": "public function edit($id)\n {\n $title = 'Editar Forma de pagamento';\n $formaPagto = $this->formaPagto->find($id);\n return view('painel.forma-de-pagamentos.create-edit',compact('formaPagto', 'title'));\n }", "title": "" }, { "docid": "8f5764d60e419bbdd688ce0400c69fda", "score": "0.65811837", "text": "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getGetParameter('id');\n\t\t$partner = $this->model->partner->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('partner/edit', [\n\t\t\t'partner' => $partner\n\t\t]);\n\t}", "title": "" }, { "docid": "6acc615a39a27e3e0c8dad0b3b8edffa", "score": "0.6580299", "text": "public function edit($id)\n {\n $field = FormField::find($id);\n return view('admin.form.field.edit', compact('field'));\n }", "title": "" }, { "docid": "2de3ab7e4c9b351247adb666d596460e", "score": "0.6573476", "text": "public function edit($id)\n {\n $rodo = Rodo::where('id', $id)->first();\n return view('admin.rodo.form', [\n 'entry' => $rodo,\n 'cardtitle' => 'Edytuj regułkę'\n ]);\n }", "title": "" }, { "docid": "5be28ce959fcbd926070cfaf781714d6", "score": "0.6573186", "text": "public function edit()\n {\n return view('mgepisodios::edit');\n }", "title": "" }, { "docid": "f845e400455aac9c438867bdedf1afcb", "score": "0.65709776", "text": "public function edit($id)\n {\n $product = $this->productsRepository->getById($id);\n\n return view('products.form')->with('product', $product);\n }", "title": "" }, { "docid": "5f6bdbd8f1459dcca737fbcb595d090f", "score": "0.6567939", "text": "public function edit($id)\n\t{\n\t\t$this->page_title = 'Edit Test';\n\t\t$data = $this->rendarEdit($id);\n\t\treturn view('admin.crud.form',$data);\n\t}", "title": "" }, { "docid": "21d99e41a1e26e985dcc253e30b0cdcd", "score": "0.6565959", "text": "public function actionEdit() { }", "title": "" }, { "docid": "adb65a1366e0acdb9d74ef45e02025d7", "score": "0.6558327", "text": "public function edit($id)\n {\n $form = Form::findOrFail($id);\n $form->valid_fields = $this->getFieldTypes();\n $form->field_types_with_options = $this->getTypesWithOptions();\n $form->json_form = $form->toJson();\n $form->getSortedFields();\n $form->json_fields = $form->prepareJsonFields();\n return view('customForms.edit', ['form' => $form]);\n\n }", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4312d29d8ef89638c212056044f5aad9", "score": "0.0", "text": "public function show(AdministratorRequest $request, $administratorId)\n {\n $administrator = User::whereHasRole('administrator')->findOrFail($administratorId);\n\n return $this->response->ok($administrator);\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.81890994", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e5152a75698da8d87238a93648112fcf", "score": "0.7289603", "text": "function display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->fetch($resource_name, $cache_id, $compile_id, true);\n }", "title": "" }, { "docid": "87649d98f1656cc542e5e570f7f9fd1f", "score": "0.6617427", "text": "public function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t\t$this->setHeaderData();\n\t\t\tparent::display($resource_name, $cache_id, $compile_id);\n\t\t}", "title": "" }, { "docid": "b08b6bb501370e4c42f069ea734388a0", "score": "0.6495431", "text": "public function get($resource);", "title": "" }, { "docid": "dd518b422828ccdfc7b932a34e62225d", "score": "0.62720305", "text": "public function show(Resource $resource)\n {\n return response()->json($resource);\n \n }", "title": "" }, { "docid": "51a1c3499847de81938cf22e3e336bf2", "score": "0.62216705", "text": "public function getAction()\n {\n \t/**\n \t * @todo handle error cases and return an error, return valid users ondly\n \t */\n \t$id = $this->_request->getParam('id');\n \t$result = $this->_table->find($id);\n \t$this->view->resource = $result->current();\n }", "title": "" }, { "docid": "cbf3bf22b6453f9015dd8d3552392655", "score": "0.61575574", "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": "04d35d47081d101fff17d30acb1f2178", "score": "0.6141725", "text": "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(SugarAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "title": "" }, { "docid": "556fa9c7c8b0bbfca3848834f795e687", "score": "0.61210257", "text": "public function displayAction($id)\n { }", "title": "" }, { "docid": "0243c17e457a131b89a485445f1cee26", "score": "0.6074994", "text": "public function show()\n {\n $this->getView($this->view_name);\n }", "title": "" }, { "docid": "f0d6bc8f87110dac3699808a11a93b8f", "score": "0.6055501", "text": "public function render()\n {\n $this->bindResource($this->resource);\n return parent::render();\n }", "title": "" }, { "docid": "66bedfeb611b91813c98a7e106a95902", "score": "0.5966385", "text": "private function displayImageResource($image) {\n if($image) {\n if($image->getExtension() == 'jpg' || $image->getExtension() == 'jpeg') {\n header('Content-Type: image/jpeg');\n imagejpeg($image->getResource(), null, 100);\n }\n else if($image->getExtension() == 'png') {\n header('Content-Type: image/png');\n imagepng($image->getResource(), null, 9);\n }\n else if($image->getExtension() == 'gif') {\n header('Content-Type: image/gif');\n imagegif($image->getResource(), null, 100);\n }\n }\n }", "title": "" }, { "docid": "d8bcb4a6a484fbd4595bf60c13751c5f", "score": "0.59199905", "text": "public function display()\n {\n $this->_getAdapter()->display();\n }", "title": "" }, { "docid": "df778faf9f0b4d88cab1a7ccf83e7502", "score": "0.59105337", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n $url = $em->getRepository('KtIoWebInterfaceBundle:Url')->find($id);\n\n if (!$url)\n throw $this->createNotFoundException();\n\n // TODO check we own this url\n return $this->render(\n 'KtIoWebInterfaceBundle:Url:show.html.twig',\n array('url' => $url)\n );\n }", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.5908002", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.5908002", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "4e4b4802386aefba7de0e06d94dac1a8", "score": "0.5862339", "text": "public function viewResources($resourceid='')\n {\n $resourceid = db::escapechars($resourceid);\n \n $sql = \"SELECT * FROM kidschurchresources ORDER BY resourceName ASC\";\n $resources = db::returnallrows($sql);\n if(count($resources) > 0){\n $resourceOutput = \"<table class=\\\"memberTable\\\"><tr><th>ID</th><th>Name</th><th>Description</th><th>Type</th><th>Quantity</th><th>Task</th></tr>\";\n foreach($resources as $resource){\n if($resource['resourceID'] == $resourceid){\n $resourceOutput .= \"<tr class=\\\"highlight\\\">\";\n }\n else{\n $resourceOutput .= \"<tr>\";\n }\n $resourceOutput .= \"<td>\".$resource['resourceID'].\"</td>\";\n $resourceOutput .= \"<td>\".$resource['resourceName'].\"</td>\";\n $resourceOutput .= \"<td>\".$resource['resourceDescription'].\"</td>\";\n $resourceOutput .= \"<td>\".$resource['resourceType'].\"</td>\";\n $resourceOutput .= \"<td>\".$resource['resourceQuantity'].\"</td>\";\n $resourceOutput .= \"<td> \n <a href=\\\"index.php?mid=431&action=edit&resourceID=\".$resource['resourceID'].\"\\\" class=\\\"runbutton\\\">Edit</a>\n <a href=\\\"index.php?mid=430&action=remove&resourceID=\".$resource['resourceID'].\"\\\" class=\\\"delbutton\\\">Remove</a>\n </td>\";\n $resourceOutput .= \"<tr>\";\n }\n $resourceOutput .= \"</table>\";\n }\n else{\n $resourceOutput = \"<p>There are no resources stored at present.</p>\";\n }\n return $resourceOutput;\n }", "title": "" }, { "docid": "8c23114005d84f0741705b7da9ef9695", "score": "0.5852743", "text": "public function list_display($resource){\n\t\techo(\"<table border='1' >\\n<tr>\");\n\t\tforeach($this->list_headers as $head){\n\t\t\techo(\"<th>$head</th>\\n\");\n\t\t}\n\t\tif($this->ed_flag){\n\t\t\techo(\"<th colspan='2'>Admin</th>\\n\");\n\t\t}\n\t\techo(\"</tr>\");\n\t\twhile($row = mysql_fetch_array($resource)){\n\t\t\t\techo(\"<tr>\\n\");\n\t\t\t\tforeach($row as $key => $value) {\n\t\t\t\t$row[$key] = stripslashes($value);\n\t\t\t}\n\t\t\tforeach($this->list_table_cols as $val) {\n\t\t\t\techo(\"<td valign='top'>$row[$val]</td>\");\n\t\t\t}\n\t\t\tif($this->ed_flag){\n\t\t\t\techo(\"<td valign='top'><a href=attendance.php?id={$row[$this->ID]}>Edit</a></td>\\n\"); //Adds Edit button to end of display table\n\t\t\t\techo(\"<td valign='top'><a href=attendance.php?id={$row[$this->ID]}>Delete</a></td>\\n\"); //Adds Delete button to end of display table\n\t\t\t}\n\t\t}\n\t\techo(\"</tr>\\n</table>\");\n\t}", "title": "" }, { "docid": "bebff39922dfa3f37a3d7a6997a89e2f", "score": "0.5847328", "text": "function show()\n\t{\n\t\t$this->postObject->display();\n\t}", "title": "" }, { "docid": "c77fbba2f7b7f5018f4471f75871b57a", "score": "0.58421373", "text": "public function edit(Resource $resource)\n {\n return view(\n 'resources.edit', \n [\n 'resource' => $resource\n ]\n );\n }", "title": "" }, { "docid": "8aae95d60d936382831b42a40edb3397", "score": "0.58280504", "text": "public function show()\r\n\t{\r\n\t\techo $this->template;\r\n\t}", "title": "" }, { "docid": "7c5c6f9fff24e84ba0d3b00444a0acc7", "score": "0.5817148", "text": "public function resolveForDisplay($resource, $attribute = null)\n {\n if (empty($this->value)) {\n $this->value = null;\n }\n\n try {\n $file = new GenericFile($this->value);\n\n $path = FileCache::get($file, function ($file, $path) {\n return basename($path);\n });\n\n $url = vsprintf('%s/%s', [\n 'nova-vendor/skydiver/nova-cached-images',\n $path\n ]);\n\n $value = url($url);\n } catch (\\Throwable $th) {\n $value = 'remote image not found';\n }\n\n $this->value = $value;\n }", "title": "" }, { "docid": "d6af1b1d4946c54112fc9b7ca038cb20", "score": "0.5815869", "text": "public function display()\n\t{\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "2f33e89741ba0a19b898dc9a1f9026fc", "score": "0.5811081", "text": "public function showResource($value, bool $justOne = false);", "title": "" }, { "docid": "baf449cd82447c0bffb577fe732c4f2b", "score": "0.5799135", "text": "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::add('error', 'msg_info', array('message' => Kohana::message('gw', 'event.view.not_allowed'), 'is_persistent' => FALSE, 'hash' => Text::random($length = 10)));\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "title": "" }, { "docid": "ef3fb32b359d85e91687f25572082d98", "score": "0.579869", "text": "public function display()\r\n {\r\n\r\n echo $this->get_display();\r\n\r\n }", "title": "" }, { "docid": "f7584132221ad89383b2964e2bd53fe5", "score": "0.57928157", "text": "public function show(Request $request, $id)\n {\n \n if($request->session()->exists('resources') && isset($request->session()->get('resources')[$id])){\n $resource = $request->session()->get('resources')[$id];\n \n $data = [];\n $data['resource']= $resource;\n return view('resource.show', $data);\n }\n return redirect('resource');\n }", "title": "" }, { "docid": "59b26eccbeb80415b27d312ada1ffed8", "score": "0.57857597", "text": "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "title": "" }, { "docid": "b5cf19a61f4df8b352f4c5245148ed8c", "score": "0.5778931", "text": "public function show()\n\t{\n\t\t// Set user states\n\t\t$this->setUserStates();\n\n\t\t// Set pagination\n\t\t$this->setPagination();\n\n\t\t// Set rows\n\t\t$this->setRows();\n\n\t\t// Set filters\n\t\t$this->setFilters();\n\n\t\t// Set toolbar\n\t\t$this->setToolbar();\n\n\t\t// Set menu\n\t\t$this->setMenu();\n\n\t\t// Set Actions\n\t\t$this->setListActions();\n\n\t\t// Render\n\t\t$this->render();\n\t}", "title": "" }, { "docid": "21604cc50e9ca2b999b8c59635c9346b", "score": "0.5775595", "text": "protected function _resource($data, $name)\r\n {\r\n $data = get_resource_type($data);\r\n $this->_renderNode('Resource', $name, $data);\r\n }", "title": "" }, { "docid": "a3e57330d7cd59896b945f16d0e12a89", "score": "0.57604754", "text": "public function display()\n {\n echo $this->render();\n }", "title": "" }, { "docid": "e7bae91f4e998eac5e73657c932c48d7", "score": "0.5755341", "text": "public function show($id) {\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "e7bae91f4e998eac5e73657c932c48d7", "score": "0.5755341", "text": "public function show($id) {\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "f18ebc5f8b08ddef340fa4f0d3eeea2f", "score": "0.5754774", "text": "public static function show() {\n\t\treturn static::$instance->display();\n\t}", "title": "" }, { "docid": "e6492f335ada5179a4fe15779fa54555", "score": "0.57495135", "text": "public function show($id)\n\t{\n\t\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": "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": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.57214445", "text": "public function show($id) {}", "title": "" }, { "docid": "cb9307a32f6d22a33b956aed56db49ba", "score": "0.57209593", "text": "public function show($id)\n\t{\n\t\t//\n\t\t\n\t}", "title": "" }, { "docid": "6ad29c72212e149d40619613cbacfe13", "score": "0.5711208", "text": "protected function addResourceShow(string $name, string $base, string $controller, array $options): RouteContract\n {\n $uri = $this->getResourceUri($name, $options) . '/{' . $base . '}';\n\n $action = $this->getResourceAction($name, $controller, 'show', $options);\n\n return $this->router->get($uri, $action);\n }", "title": "" }, { "docid": "61a627e0c8c8b3a47cc8487387ee35b2", "score": "0.57093376", "text": "public function show($id)\n\t{\n\t\t//No need for showing\n\t}", "title": "" }, { "docid": "560ae0fd472bad5f1d21beeed5dfbbdd", "score": "0.57056946", "text": "public function show(){}", "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": "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": "98910c6c774dc1299639c448306ea157", "score": "0.56980354", "text": "public function show($id)\n {\n $this->crud->hasAccessOrFail('show');\n\n // set columns from db\n $this->crud->setFromDb();\n\n // cycle through columns\n foreach ($this->crud->columns as $key => $column) {\n // remove any autoset relationship columns\n if (array_key_exists('model', $column) && array_key_exists('autoset', $column) && $column['autoset']) {\n $this->crud->removeColumn($column['name']);\n }\n }\n\n // get the info for that entry\n $this->data['entry'] = $this->crud->getEntry($id);\n $this->data['crud'] = $this->crud;\n $this->data['title'] = trans('bcrud::crud.preview').' '.$this->crud->entity_name;\n\n // remove preview button from stack:line\n $this->crud->removeButton('preview');\n $this->crud->removeButton('delete');\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->getShowView(), $this->data);\n }", "title": "" }, { "docid": "851cd390daf8f79de66a294538711bfd", "score": "0.569425", "text": "public function view(HTTPRequest $request)\n {\n $id = $request->param('ID');\n if ($display = Display::get_by_id($id)) {\n return $this->renderPresentation($display);\n }\n\n return $this->httpError(404);\n }", "title": "" }, { "docid": "89380f02c69f1ed066b5443620b90407", "score": "0.569143", "text": "public function show($id)\n\t{ \n \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": "" }, { "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": "" } ]
6e362c63283ad6d55b3f1e4eb6203a5d
Publish package service configs.
[ { "docid": "113bd864c5dc40a8867e46f9fb2ce9f6", "score": "0.7204449", "text": "protected function publishConfigs(): void\n {\n $this->publishes([\n __DIR__.'/../config/laravel-omnipay.php' => $this->app->configPath('laravel-payment.php'),\n ], 'config');\n }", "title": "" } ]
[ { "docid": "f4e086b1bad3ecd70182e09e1de5c283", "score": "0.7232428", "text": "protected function publishConfig()\n {\n $this->publishes([\n $this->packagePath('config/config.php') => config_path($this->package . '.php')\n ], 'config');\n }", "title": "" }, { "docid": "e4a76209b250fa49d6f6f71b3eb48d4a", "score": "0.72212446", "text": "public function publishConfig()\n {\n $this->publishes(\n [\n __DIR__ . '/../../config/cms.php' => config_path('cms.php'),\n ],\n 'cms.config-project'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../config/cmscountries.php' => config_path('cmscountries.php'),\n ],\n 'cms.config-countries'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../config/cmsfile.php' => config_path('cmsfile.php'),\n ],\n 'cms.config-file'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../config/cmslang.php' => config_path('cmslang.php'),\n ],\n 'cms.config-lang'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../config/cmsoauth.php' => config_path('cmsoauth.php'),\n ],\n 'cms.config-oauth'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../config/cmstemplates.php' => config_path('cmstemplates.php'),\n ],\n 'cms.config-templates'\n );\n }", "title": "" }, { "docid": "71351cb9b267b6c965fd4d7f6b4817d9", "score": "0.7118172", "text": "private function publishConfig(): void\n {\n $this->call('vendor:publish', [\n '--provider' => \\A17\\Twill\\TwillServiceProvider::class,\n '--tag' => 'config',\n ]);\n }", "title": "" }, { "docid": "67a4ae8ee034ab539203d3c04286e6de", "score": "0.7008845", "text": "public function publishConfig ()\n {\n $this -> publishes ( [\n __DIR__ . '/../config' => config_path (),\n ], 'groups.config' );\n }", "title": "" }, { "docid": "f1cf7fb721b9274438469244f908c55e", "score": "0.6973019", "text": "protected function publishConfigs(): void\n {\n $this->publishes([\n __DIR__.'/../config/mobilefirst.php' => config_path('mobilefirst.php'),\n ], 'config');\n }", "title": "" }, { "docid": "00cebc178ad9d0f20a866da1437672aa", "score": "0.69058603", "text": "protected function publishConfig()\n {\n $this->publishes([\n $this->getConfigFile() => $this->getConfigFileDestination()\n ], 'config');\n }", "title": "" }, { "docid": "ecfe256b3137aa032f4a66c54cdf549e", "score": "0.6857075", "text": "protected function publishConfig() {\n $this->publishes([\n __DIR__ . '/config/Myclass.php' => config_path('Myclass.php'),\n ], 'config');\n }", "title": "" }, { "docid": "2aaef492456acc1adb3928085835e18d", "score": "0.673047", "text": "protected function publishFiles()\n {\n $this->publishes([\n __DIR__ . '/../../config/installer.php' => base_path('config/installer.php'),\n ], 'installer_config');\n }", "title": "" }, { "docid": "a22c05c3fde643e865627d0abeee7a13", "score": "0.6727822", "text": "public function publishConfig()\n {\n $this->publishes([\n __DIR__.'/../mercadopago.php' => config_path('mercadopago.php'),\n ], 'config'); \n }", "title": "" }, { "docid": "994a86917d5de6426133e75890645b9a", "score": "0.67228556", "text": "private function publishConfiguration(): void\n {\n $this->publishes([\n __DIR__.'/../../config/config.php' => config_path('ping.php'),\n ], 'config');\n }", "title": "" }, { "docid": "c47e9a226130118fa6f9d9a4c4b947ec", "score": "0.6682757", "text": "protected function publishesConfigurations()\n {\n $this->publishes(\n [__DIR__ . '/../config/carp.php' => config_path('carp.php')],\n 'config'\n );\n }", "title": "" }, { "docid": "92ceaa1bff410a43601b1866ddbc9d92", "score": "0.6636297", "text": "protected function publishConfig() {\n $this->publishes([\n __DIR__ . '/config/config.php' => config_path('minify.config.php'),\n ]);\n }", "title": "" }, { "docid": "ca5a619824b09094fd29bdbf76093200", "score": "0.6628495", "text": "protected function offerPublishing()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__.'/../config/filemanager.php' => config_path('filemanager.php'),\n ], 'filemanager-config');\n }\n }", "title": "" }, { "docid": "09232236d3a587a80db8b993dbf5413a", "score": "0.6603557", "text": "protected function publishConfig()\n {\n $this->publishes([\n __DIR__.'/../config/shinobi.php' => config_path('shinobi.php'),\n ], 'config');\n }", "title": "" }, { "docid": "54bea377ab379966a7a0cdb60af0492d", "score": "0.6591512", "text": "protected function configurePublishing()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__.'/../stubs/fortify.php' => config_path('fortify.php'),\n ], 'fortify-config');\n\n $this->publishes([\n __DIR__.'/stubs/CreateNewUser.php' => app_path('Actions/Fortify/CreateNewUser.php'),\n __DIR__.'/stubs/FortifyServiceProvider.php' => app_path('Providers/FortifyServiceProvider.php'),\n __DIR__.'/stubs/PasswordValidationRules.php' => app_path('Actions/Fortify/PasswordValidationRules.php'),\n __DIR__.'/stubs/ResetUserPassword.php' => app_path('Actions/Fortify/ResetUserPassword.php'),\n __DIR__.'/stubs/UpdateUserProfileInformation.php' => app_path('Actions/Fortify/UpdateUserProfileInformation.php'),\n __DIR__.'/stubs/UpdateUserPassword.php' => app_path('Actions/Fortify/UpdateUserPassword.php'),\n ], 'fortify-support');\n\n $this->publishes([\n __DIR__.'/../database/migrations' => database_path('migrations'),\n ], 'fortify-migrations');\n }\n }", "title": "" }, { "docid": "f2e9b0773f288ea478301c801f8f4087", "score": "0.6550881", "text": "protected function offerPublishing()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__.'/../config/sms.php' => config_path('sms.php'),\n ], 'config');\n }\n }", "title": "" }, { "docid": "3158b9f9a8b2882a694c5d005f0b3512", "score": "0.6547411", "text": "protected function publishConfig(): void\n {\n $path = __DIR__.'/../config/acl.php';\n\n $this->publishes([$path => config_path('acl.php')], 'laravel-acl');\n\n $this->mergeConfigFrom($path, 'acl');\n }", "title": "" }, { "docid": "6e688ac8d6ab78b9a875196eb7d1ed54", "score": "0.6546647", "text": "protected function publishConfigFiles()\n {\n try {\n $this->filePublisher->publish(resource_path('stubs/config'), $this->configPath());\n } catch (\\Exception $e) {\n throw new PorterSetupFailed('Failed publishing the container configuration files');\n }\n }", "title": "" }, { "docid": "0530cc5f5988324b9c3cefd2fc48ba47", "score": "0.653518", "text": "protected function bootPublishes(): void\n {\n // Publish the config file.\n $this->publishes([\n __DIR__ . '/../config/nova-launch.php' => config_path('nova-launch.php'),\n ], ['config', 'minimal']);\n\n // Publish the migrations.\n $this->publishes($this->getMigrations(), ['migrations', 'minimal']);\n\n // Publish the generated files.\n $this->publishes([\n __DIR__ . '/../dist' => public_path('vendor/nova-launch'),\n ], ['public', 'minimal']);\n\n // Publish the translation files.\n $this->publishes([\n __DIR__ . '/../resources/lang/site' => resource_path('lang/vendor/nova-launch'),\n ], 'translations');\n\n // Publish the stylesheets.\n $this->publishes([\n __DIR__ . '/../resources/sass/site' => resource_path('sass/vendor/nova-launch'),\n ], 'styles');\n\n // Publish the views.\n $this->publishes([\n __DIR__ . '/../resources/views/site' => resource_path('views/vendor/nova-launch'),\n ], 'views');\n }", "title": "" }, { "docid": "5482385c0cf6699e92fcbd6d0846e19c", "score": "0.65266365", "text": "protected function publishConfig (): void\n {\n $this->publishes([\n __DIR__ . '/../config/zohobooks.php' => config_path('zohobooks.php'),\n ], 'config');\n }", "title": "" }, { "docid": "9b2e7a4d50ca340c70b4b5f2cc5cb203", "score": "0.65005434", "text": "private function publishConfig()\n {\n $this->publishes(AdminLTE::config(), 'adminlte');\n }", "title": "" }, { "docid": "f88d96282f43f4d08b1d91afc221034b", "score": "0.6464787", "text": "protected function offerPublishing()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n base_path('vendor/cmgmyr/messenger/config/config.php') => config_path('messenger.php'),\n ], 'config');\n\n $this->publishes([\n base_path('vendor/cmgmyr/messenger/migrations') => base_path('database/migrations'),\n ], 'migrations');\n }\n }", "title": "" }, { "docid": "6f39327d1e0b6501a31ed7940ccece72", "score": "0.6440231", "text": "private function publishConfig()\n {\n $this->publishes([\n __DIR__.'/../../config/beyondauth.php' => config_path('beyondauth.php'),\n ], 'config');\n }", "title": "" }, { "docid": "b9da603369519d45c95f8cef586edd90", "score": "0.6394346", "text": "protected function offerPublishing()\n {\n if ($this->app->runningInConsole()) {\n // Publishing the configuration file.\n $this->publishes([\n __DIR__ . '/../config/soap.invoices.php' => config_path('soap.invoices.php'),\n ], 'invoices.config');\n\n // Publishing the views.\n $this->publishes([\n __DIR__ . '/../resources/views' => base_path('resources/views/vendor/invoices'),\n ], 'invoices.views');\n\n // Publishing the translation files.\n $this->publishes([\n __DIR__ . '/../resources/lang' => resource_path('lang/vendor/invoices'),\n ], 'invoices.translations');\n }\n }", "title": "" }, { "docid": "d2c828308781ab877a22b9f5a51c1044", "score": "0.63888407", "text": "private function publishResources()\n {\n $this->publishes([\n __DIR__.\"/../config\" => config_path(static::PACKAGE),\n ], 'config');\n\n $this->publishes([\n __DIR__.'/../resources/views/' => resource_path(\"views/vendor/{$this->vendor}/{$this->package}\"),//resource_path(\"views/vendor/{$this->vendor}/{$this->package}\"),\n ], 'views');\n\n\n $this->publishes([\n __DIR__.'/Database/Migrations/' => database_path('migrations'),\n ], 'migrations');\n $this->publishes([\n// __DIR__ . '/../resources/lang/' => resource_path(\"lang\"),\n __DIR__.'/../resources/lang/' => resource_path(\"lang/vendor/{$this->package}\"),\n ], 'translations');\n\n\n $this->publishes([\n __DIR__.'/../assets' => public_path(\"vendor/{$this->package}\"),\n ], 'baseAdmin-assets');\n\n\n Blade::component(\"{$this->package}::_subBlades._components.modal\", 'baseAdmin-modal');\n\n// $this->publishes([\n// __DIR__.'/../filesToPublish' => base_path(),\n// ], 'baseAdmin-mainFiles');\n\n }", "title": "" }, { "docid": "6fd43bd896af3eaba686606810878466", "score": "0.6351455", "text": "protected function publishConfig()\n {\n if (!$this->isLumen()) {\n $this->publishes([\n __DIR__.'/../config/mail-tracker.php' => config_path('mail-tracker.php')\n ], 'config');\n }\n }", "title": "" }, { "docid": "a6e295bd34dee4ee317fcfd10ddf5f4f", "score": "0.63226837", "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": "d837ee8314354d6d33908bd4f5e5cd01", "score": "0.6293249", "text": "public function publish($data){\r\n foreach ($this->getParams($data) as $key=>$value) {\r\n if($key==0){\r\n\r\n foreach($value as $project=>$service){\r\n $versionPath='./src/app/'.$project.'/version.php';\r\n $version=require($versionPath);\r\n if(is_array($version) && array_key_exists(\"version\",$version)){\r\n $versionNumber=$version['version'];\r\n }\r\n else{\r\n $versionNumber='v1';\r\n }\r\n\r\n $servicePath='\\\\\\\\src\\\\\\\\app\\\\\\\\'.$project.'\\\\\\\\'.$versionNumber.'\\\\\\\\__call\\\\\\\\'.$service.'\\\\\\\\'.$this->getParams($data)[2]['http'].'Service';\r\n $names=explode(\"/\",$this->getParams($data)[1]['names']);\r\n $list=[];\r\n foreach($names as $name){\r\n\r\n $list[]=''.$servicePath.'::'.$name.'';\r\n }\r\n\r\n\r\n $publishPath='./src/app/'.$project.'/publish.php';\r\n $publish=require($publishPath);\r\n\r\n\r\n\r\n $publishedRoutes=[];\r\n foreach($list as $key=>$val){\r\n if(array_key_exists(\"service\",$publish)){\r\n $valpro=str_replace(\"\\\\\\\\\",\"\\\\\",$val);\r\n if(!in_array($valpro,$publish['service']['name'])){\r\n $publishedRoutes[]='$publishes[\"service\"][\"name\"][]=\"'.$val.'\";';;\r\n }\r\n\r\n }\r\n else{\r\n $publishedRoutes[]='$publishes[\"service\"][\"name\"][]=\"'.$val.'\";';\r\n }\r\n\r\n }\r\n\r\n if(count($publishedRoutes)){\r\n $dt = fopen($publishPath, \"r\");\r\n $content = fread($dt, filesize($publishPath));\r\n fclose($dt);\r\n\r\n\r\n\r\n $dt = fopen($publishPath, \"w\");\r\n$content=str_replace(\"//publishes\",\"//publishes\r\n\".implode(\"\r\n\",$publishedRoutes).\"\",$content);\r\n\r\n fwrite($dt, $content);\r\n fclose($dt);\r\n\r\n return 'service publish ok';\r\n }\r\n else{\r\n\r\n return 'service available';\r\n }\r\n\r\n\r\n\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "d18ff5a03c140f1f0a72a5600c51923c", "score": "0.6277564", "text": "public function publishFiles() {\n $this->publishes([\n __DIR__ . '/../resources/views' => base_path('themes/avored/default/views/vendor')\n ],'avored-module-views');\n $this->publishes([\n __DIR__ . '/../database/migrations' => database_path('avored-migrations'),\n ]);\n }", "title": "" }, { "docid": "c30efb6cbcb6accebc3e5ffef3f95614", "score": "0.6274435", "text": "protected function offerPublishing()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__ . '/../config/expo_notification.php' => config_path('expo_notification.php'),\n ], 'expo-notification-config');\n }\n }", "title": "" }, { "docid": "7952979143885d9ada621882855dcfae", "score": "0.62661797", "text": "private function registerPublishedPaths()\n {\n if (!$this->app->runningInConsole()) {\n return;\n }\n\n $this->publishes([\n __DIR__ . '/../config/splade.php' => config_path('splade.php'),\n ], 'config');\n\n $this->publishes([\n __DIR__ . '/../config/splade-seo.php' => config_path('splade-seo.php'),\n ], 'seo');\n\n $this->publishes([\n __DIR__ . '/../resources/views/components' => base_path('resources/views/vendor/splade/components'),\n __DIR__ . '/../resources/views/form' => base_path('resources/views/vendor/splade/form'),\n __DIR__ . '/../resources/views/table' => base_path('resources/views/vendor/splade/table'),\n ], 'views');\n\n $this->publishes([\n __DIR__ . '/../resources/lang' => base_path('resources/lang/vendor/splade'),\n ], 'translations');\n }", "title": "" }, { "docid": "bf50b4c23ab3b97a67831c8c65004b63", "score": "0.62638533", "text": "protected function offerPublishing()\n {\n if ( $this->app->runningInConsole() ) {\n $this->publishes(\n [\n __DIR__.'/../config/server-dashboard.php' => config_path('server-dashboard.php'),\n ],\n 'server-dashboard-config'\n );\n }\n }", "title": "" }, { "docid": "f64fc71683bed221d6f1457d3f15f3b6", "score": "0.6259768", "text": "private function _registerPublishable()\n {\n $this->publishes([\n $this->_root . 'config/config.php' => config_path('hegyd-seos.php'),\n ], 'hegyd_seos_config');\n\n $this->publishes([\n $this->_root . 'lang' => base_path('resources/lang/vendor/hegyd-seos'),\n ], 'hegyd_seos_lang');\n\n $this->publishes([\n $this->_root . 'routes/routes.php' => app_path('Http/Routes/hegyd-seos.routes.php'),\n ], 'hegyd_seos_routes');\n\n $this->publishes([\n $this->_root . 'views/app' => base_path('resources/views/vendor/hegyd-seos'),\n ], 'hegyd_seos_views');\n\n $this->publishes([\n $this->_root . 'assets' => public_path('vendor/hegyd/seos'),\n ], 'hegyd_seos_assets');\n\n\n $this->publishes([\n $this->_root . 'config/config.php' => config_path('hegyd-seos.php'),\n $this->_root . 'routes/routes.php' => base_path('routes/hegyd-seos.routes.php'),\n ], 'hegyd-seos');\n }", "title": "" }, { "docid": "5e9e06c43ff4a30bf0bc5ca8efdec393", "score": "0.6257273", "text": "protected function buildConfigurationServices()\r\n {\r\n // Generates Services.yaml file if it does not exist\r\n if (! file_exists($this->extensionDirectory . 'Configuration/Services.yaml')) {\r\n $fileContents = $this->generateFile('Configuration/Services.yamlt');\r\n GeneralUtility::writeFile($this->extensionDirectory . 'Configuration/Services.yaml', $fileContents);\r\n }\r\n }", "title": "" }, { "docid": "3fa2399044a608e4b9d4796442929af2", "score": "0.6229067", "text": "protected function registerConfigurations()\n {\n $this->mergeConfigFrom(\n $this->packagePath('config/config.php'), 'management-interface'\n );\n $this->publishes([\n $this->packagePath('config/config.php') => config_path('management-interface.php'),\n ], 'config');\n }", "title": "" }, { "docid": "b479dfeb19e361c43ee603b0759218df", "score": "0.6222609", "text": "private function registerPublishing()\n {\n $this->publishes([\n __DIR__.'/../config/sendemails.php' => base_path('config/sendemails.php'),\n ], 'config');\n }", "title": "" }, { "docid": "56f2b3463bbcf1c0ebd0eb5e0bd3b2c1", "score": "0.61872953", "text": "protected function offerPublishing()\n {\n if ($this->app->runningInConsole()) {\n\n $this->publishes([\n __DIR__.'/../config/acquaintances.php' => config_path('acquaintances.php'),\n ], 'acquaintances-config');\n\n $this->publishes($this->updateMigrationDate(), 'acquaintances-migrations');\n }\n }", "title": "" }, { "docid": "1da520a44b7842274641aeb9b5ad9ffb", "score": "0.6187106", "text": "protected function registerPublishables()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__.'/config/algorand.php' => config_path('algorand.php'),\n ], 'config');\n }\n }", "title": "" }, { "docid": "51c4f1d41a98235e98c8ebc3edc08c14", "score": "0.615773", "text": "protected function bootPublishes()\n {\n $source = __DIR__ . '/../config/saml2.php';\n\n $this->publishes([$source => config_path('saml2.php')]);\n $this->mergeConfigFrom($source, 'saml2');\n }", "title": "" }, { "docid": "fabcd452adf005ee24144540b2c32d63", "score": "0.6133862", "text": "protected function offerPublishing()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes(\n [\n __DIR__.'/../config/lq.php' => config_path('lq.php'),\n ],\n 'lq-config'\n );\n }\n }", "title": "" }, { "docid": "a5528a9b0928e75008cd2106224637e6", "score": "0.61277825", "text": "private function registerPublishing()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__.'/../public' => public_path('vendor/ambulatory'),\n ], 'ambulatory-assets');\n\n $this->publishes([\n __DIR__.'/../config/ambulatory.php' => config_path('ambulatory.php'),\n ], 'ambulatory-config');\n }\n }", "title": "" }, { "docid": "8bea092b3ac95dd34535a2b4a263e8ac", "score": "0.6101045", "text": "protected function registerPublishables()\n {\n if ($this->app->runningInConsole()) {\n $this -> publishes([\n base_path('vendor/stobys/laravel-messenger/config/messenger.php') => config_path('messenger.php'),\n ], 'config');\n\n $this -> publishes([\n base_path('vendor/stobys/laravel-messenger/database/migrations') => database_path('migrations'),\n ], 'migrations');\n }\n }", "title": "" }, { "docid": "d630d073caf8931546d82b90b01abc82", "score": "0.60864276", "text": "protected function registerConfigPublisher(): void\n {\n $this->app->singleton('config.publisher', static function (Application $app) {\n // Once we have created the configuration publisher, we will set the default\n // package path on the object so that it knows where to find the packages\n // that are installed for the application and can move them to the app.\n $publisher = new Config($app->make('files'), $app->configPath());\n\n $publisher->setPackagePath($app->basePath().'/vendor');\n\n return $publisher;\n });\n }", "title": "" }, { "docid": "71747eb96d2ce071d8881590b366aa81", "score": "0.6070091", "text": "private function registerPublishing()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__.'/../config/mailpreview.php' => config_path('mailpreview.php'),\n ], 'mailpreview-config');\n\n $this->publishes([\n __DIR__.'/../stubs/MailPreviewServiceProvider.stub' => app_path('Providers/MailPreviewServiceProvider.php'),\n ], 'mailpreview-provider');\n }\n }", "title": "" }, { "docid": "8272fa041c50b8e51b47dc2e06bae1ae", "score": "0.60551566", "text": "private function publish()\n {\n // get the current directory path\n $basePath = dirname(__DIR__);\n\n // array contaning all publishables,\n // including but not limitted to configs, migrations, etc ...\n $publishablesArray = [\n\n // publish the configuration files\n \"config\" => [\n \"$basePath/../config/dashboardmodels.php\" => config_path('dashboardmodels.php')\n ],\n\n // publish models\n \"models\" => [\n \"$basePath/./models\" => app_path()\n ],\n\n // publish controllers\n \"controllers\" => [\n \"$basePath/./Http/Controllers/Publishables\" => app_path('Http/Controllers/Dashboard/')\n ],\n\n // publish helpers\n \"helpers\" => [\n \"$basePath/./Helpers/DashboardHelpers.php\" => app_path('Helpers/DashboardHelpers.php')\n ],\n\n // publish view composer\n \"view-composers\" => [\n \"$basePath/./Http/View/Composers\" => app_path('Http/View/Composers/Dashboard')\n ],\n\n // publish contracts\n \"contracts\" => [\n \"$basePath/./Contracts/\" => app_path('Contracts/')\n ],\n\n \"traits\" => [\n \"$basePath/./Traits/ValidateRequest.php\" => app_path('Traits/Dashboard/ValidateRequest.php')\n ],\n\n // publish migrations\n \"migrations\" => [\n \"$basePath/../database/migrations/visitor_tracking_tables.php.stub\"\n => database_path('migrations/' . date('Y_m_d_His', time()) . '_visitor_tracking_tables.php'),\n \"$basePath/../database/migrations/visitor_hit_tracking_tables.php.stub\"\n => database_path('migrations/' . date('Y_m_d_His', time()) . '_visitor_hit_tracking_tables.php'),\n \"$basePath/../database/migrations/tos_table.php.stub\"\n => database_path('migrations/' . date('Y_m_d_His', time()) . '_tos_table.php')\n ],\n\n // publish views\n \"views\" => [\n \"$basePath/../resources/views/\" => resource_path('views/dashboard')\n ],\n\n // publish assets\n \"assets\" => [\n \"$basePath/../resources/assets/js\" => public_path('js'),\n \"$basePath/../resources/assets/css\" => public_path('css')\n ],\n ];\n\n foreach ($publishablesArray as $group => $path) {\n $this->publishes($path, $group);\n }\n }", "title": "" }, { "docid": "94202008530a0e280bba4895e87d63b1", "score": "0.6024136", "text": "public function publishFiles()\r\n {\r\n // Publish Views\r\n $this->publishes([\r\n $this->getViewsDirectory() => $this->getPublishedViewsDirectory()\r\n ]);\r\n }", "title": "" }, { "docid": "0f1c93ff57617b8b78d3508a227b4106", "score": "0.59710026", "text": "protected function registerConfigPublisher()\n {\n $this->registerConfigPublishCommand();\n\n $this->app->bindShared('config.publisher', function($app)\n {\n $path = $app['path'] .DS .'Config';\n\n $publisher = new ConfigPublisher($app['files'], $app['config'], $path);\n\n return $publisher;\n });\n }", "title": "" }, { "docid": "60a3a3d463baa49261362b251bb5f5aa", "score": "0.59531575", "text": "public function publishTranslations()\n {\n $this->publishes(\n [\n __DIR__ . '/../../translations' => resource_path('lang/vendor/cms'),\n ],\n 'cms.translations'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../translations/en/app.php' => resource_path('lang/vendor/cms/en/app.php'),\n __DIR__ . '/../../translations/fr/app.php' => resource_path('lang/vendor/cms/fr/app.php'),\n ],\n 'cms.translations.app'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../translations/en/dates.php' => resource_path('lang/vendor/cms/en/dates.php'),\n __DIR__ . '/../../translations/fr/dates.php' => resource_path('lang/vendor/cms/fr/dates.php'),\n ],\n 'cms.translations.dates'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../translations/en/errors.php' => resource_path('lang/vendor/cms/en/errors.php'),\n __DIR__ . '/../../translations/fr/errors.php' => resource_path('lang/vendor/cms/fr/errors.php'),\n ],\n 'cms.translations.errors'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../translations/en/emails' => resource_path('lang/vendor/cms/en/emails'),\n __DIR__ . '/../../translations/fr/emails' => resource_path('lang/vendor/cms/fr/emails'),\n ],\n 'cms.translations.emails'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../translations/en/emails/defaults.php' => resource_path('lang/vendor/cms/en/emails/defaults.php'),\n __DIR__ . '/../../translations/fr/emails/defaults.php' => resource_path('lang/vendor/cms/fr/emails/defaults.php'),\n ],\n 'cms.translations.emails.defaults'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../translations/en/emails/contact' => resource_path('lang/vendor/cms/en/emails/contact'),\n __DIR__ . '/../../translations/fr/emails/contact' => resource_path('lang/vendor/cms/fr/emails/contact'),\n ],\n 'cms.translations.emails.contact'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../translations/en/emails/contact/contact.php' => resource_path(\n 'lang/vendor/cms/en/emails/contact/contact.php'\n ),\n __DIR__ . '/../../translations/fr/emails/contact/contact.php' => resource_path(\n 'lang/vendor/cms/fr/emails/contact/contact.php'\n ),\n ],\n 'cms.translations.emails.contact.contact'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../translations/en/emails/contact/copy.php' => resource_path(\n 'lang/vendor/cms/en/emails/contact/copy.php'\n ),\n __DIR__ . '/../../translations/fr/emails/contact/copy.php' => resource_path(\n 'lang/vendor/cms/fr/emails/contact/copy.php'\n ),\n ],\n 'cms.translations.emails.contact.copy'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../translations/en/emails/account-activated.php' => resource_path(\n 'lang/vendor/cms/en/emails/account-activated.php'\n ),\n __DIR__ . '/../../translations/fr/emails/account-activated.php' => resource_path(\n 'lang/vendor/cms/fr/emails/account-activated.php'\n ),\n ],\n 'cms.translations.emails.account-activated'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../translations/en/emails/forgot-password.php' => resource_path(\n 'lang/vendor/cms/en/emails/forgot-password.php'\n ),\n __DIR__ . '/../../translations/fr/emails/forgot-password.php' => resource_path(\n 'lang/vendor/cms/fr/emails/forgot-password.php'\n ),\n ],\n 'cms.translations.emails.forgot-password'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../translations/en/emails/new-password.php' => resource_path(\n 'lang/vendor/cms/en/emails/new-password.php'\n ),\n __DIR__ . '/../../translations/fr/emails/new-password.php' => resource_path(\n 'lang/vendor/cms/fr/emails/new-password.php'\n ),\n ],\n 'cms.translations.emails.new-password'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../translations/en/modules' => resource_path('lang/vendor/cms/en/modules'),\n __DIR__ . '/../../translations/fr/modules' => resource_path('lang/vendor/cms/fr/modules'),\n ],\n 'cms.translations.modules'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../translations/en/modules/dates.php' => resource_path('lang/vendor/cms/en/modules/dates.php'),\n __DIR__ . '/../../translations/fr/modules/dates.php' => resource_path('lang/vendor/cms/fr/modules/dates.php'),\n ],\n 'cms.translations.modules.dates'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../translations/en/modules/errors.php' => resource_path('lang/vendor/cms/en/modules/errors.php'),\n __DIR__ . '/../../translations/fr/modules/errors.php' => resource_path('lang/vendor/cms/fr/modules/errors.php'),\n ],\n 'cms.translations.modules.errors'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../translations/en/modules/inputs.php' => resource_path('lang/vendor/cms/en/modules/inputs.php'),\n __DIR__ . '/../../translations/fr/modules/inputs.php' => resource_path('lang/vendor/cms/fr/modules/inputs.php'),\n ],\n 'cms.translations.modules.inputs'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../translations/en/modules/pagination.php' => resource_path(\n 'lang/vendor/cms/en/modules/pagination.php'\n ),\n __DIR__ . '/../../translations/fr/modules/pagination.php' => resource_path(\n 'lang/vendor/cms/fr/modules/pagination.php'\n ),\n ],\n 'cms.translations.modules.pagination'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../translations/en/modules/price.php' => resource_path('lang/vendor/cms/en/modules/price.php'),\n __DIR__ . '/../../translations/fr/modules/price.php' => resource_path('lang/vendor/cms/fr/modules/price.php'),\n ],\n 'cms.translations.modules.price'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../translations/en/modules/splash.php' => resource_path('lang/vendor/cms/en/modules/splash.php'),\n __DIR__ . '/../../translations/fr/modules/splash.php' => resource_path('lang/vendor/cms/fr/modules/splash.php'),\n ],\n 'cms.translations.modules.splash'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../translations/en/modules/words.php' => resource_path('lang/vendor/cms/en/modules/words.php'),\n __DIR__ . '/../../translations/fr/modules/words.php' => resource_path('lang/vendor/cms/fr/modules/words.php'),\n ],\n 'cms.translations.modules.words'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../translations/en/pages' => resource_path('lang/vendor/cms/en/pages'),\n __DIR__ . '/../../translations/fr/pages' => resource_path('lang/vendor/cms/fr/pages'),\n ],\n 'cms.translations.pages'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../translations/en/pages/example.php' => resource_path('lang/vendor/cms/en/pages/example.php'),\n __DIR__ . '/../../translations/fr/pages/example.php' => resource_path('lang/vendor/cms/fr/pages/example.php'),\n ],\n 'cms.translations.pages.example'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../translations/en/trans' => resource_path('lang/vendor/cms/en/trans'),\n __DIR__ . '/../../translations/fr/trans' => resource_path('lang/vendor/cms/fr/trans'),\n ],\n 'cms.translations.trans'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../translations/en/trans/example.php' => resource_path('lang/vendor/cms/en/trans/example.php'),\n __DIR__ . '/../../translations/fr/trans/example.php' => resource_path('lang/vendor/cms/fr/trans/example.php'),\n ],\n 'cms.translations.trans.example'\n );\n }", "title": "" }, { "docid": "d062e596de21d94d5e9d8b7d6bc8b661", "score": "0.59451616", "text": "protected function registerPublishing()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__.'/../config/hermes.php' => config_path('hermes.php'),\n ], 'hermes-config');\n }\n }", "title": "" }, { "docid": "c1cec20c496ff1b791504a59430afcd8", "score": "0.59436554", "text": "protected function setPublishes()\n {\n // Load user's avatar folder from package's config\n $userAvatarFolder = json_decode(json_encode(include(__DIR__.'/config/chatify.php')))->user_avatar->folder;\n\n // Config\n $this->publishes([\n __DIR__ . '/config/chatify.php' => config_path('chatify.php')\n ], 'chatify-config');\n\n // Migrations\n $this->publishes([\n __DIR__ . '/database/migrations/2022_01_10_99999_add_active_status_to_users.php' => database_path('migrations/' . date('Y_m_d') . '_999999_add_active_status_to_users.php'),\n __DIR__ . '/database/migrations/2022_01_10_99999_add_avatar_to_users.php' => database_path('migrations/' . date('Y_m_d') . '_999999_add_avatar_to_users.php'),\n __DIR__ . '/database/migrations/2022_01_10_99999_add_dark_mode_to_users.php' => database_path('migrations/' . date('Y_m_d') . '_999999_add_dark_mode_to_users.php'),\n __DIR__ . '/database/migrations/2022_01_10_99999_add_messenger_color_to_users.php' => database_path('migrations/' . date('Y_m_d') . '_999999_add_messenger_color_to_users.php'),\n __DIR__ . '/database/migrations/2022_01_10_99999_create_chatify_favorites_table.php' => database_path('migrations/' . date('Y_m_d') . '_999999_create_chatify_favorites_table.php'),\n __DIR__ . '/database/migrations/2022_01_10_99999_create_chatify_messages_table.php' => database_path('migrations/' . date('Y_m_d') . '_999999_create_chatify_messages_table.php'),\n ], 'chatify-migrations');\n\n // Models\n $isV8 = explode('.', app()->version())[0] >= 8;\n $this->publishes([\n __DIR__ . '/Models' => app_path($isV8 ? 'Models' : '')\n ], 'chatify-models');\n\n // Controllers\n $this->publishes([\n __DIR__ . '/Http/Controllers' => app_path('Http/Controllers/vendor/Chatify')\n ], 'chatify-controllers');\n\n // Views\n $this->publishes([\n __DIR__ . '/views' => resource_path('views/vendor/Chatify')\n ], 'chatify-views');\n\n // Assets\n $this->publishes([\n // CSS\n __DIR__ . '/assets/css' => public_path('css/chatify'),\n // JavaScript\n __DIR__ . '/assets/js' => public_path('js/chatify'),\n // Images\n __DIR__ . '/assets/imgs' => storage_path('app/public/' . $userAvatarFolder),\n // CSS\n __DIR__ . '/assets/sounds' => public_path('sounds/chatify'),\n ], 'chatify-assets');\n }", "title": "" }, { "docid": "83047c25320644f4808ef933c1c1b52f", "score": "0.59427476", "text": "public function publishViews()\n {\n $this->publishes(\n [\n __DIR__ . '/../../views' => resource_path('views/vendor/cms'),\n ],\n 'cms.views'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/admin' => resource_path('views/vendor/cms/admin'),\n ],\n 'cms.views.admin'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/admin/includes' => resource_path('views/vendor/cms/admin/includes'),\n ],\n 'cms.views.admin.includes'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/admin/includes/splash.blade.php' => resource_path(\n 'views/vendor/cms/admin/includes/splash.blade.php'\n ),\n ],\n 'cms.views.admin.includes.splash'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/web' => resource_path('views/vendor/cms/web'),\n ],\n 'cms.views.web'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/web/services.blade.php' => resource_path('views/vendor/cms/web/services.blade.php'),\n ],\n 'cms.views.web.services'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/web/includes' => resource_path('views/vendor/cms/web/includes'),\n ],\n 'cms.views.web.includes'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/web/includes/head.blade.php' => resource_path(\n 'views/vendor/cms/web/includes/head.blade.php'\n ),\n ],\n 'cms.views.web.includes.head'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/web/includes/splash.blade.php' => resource_path(\n 'views/vendor/cms/web/includes/splash.blade.php'\n ),\n ],\n 'cms.views.web.includes.splash'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/compatibility' => resource_path('views/vendor/cms/compatibility'),\n ],\n 'cms.views.compatibility'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/compatibility/browsehappy.blade.php' => resource_path(\n 'views/vendor/cms/compatibility/browsehappy.blade.php'\n ),\n ],\n 'cms.views.compatibility.browsehappy'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/compatibility/nojs.blade.php' => resource_path(\n 'views/vendor/cms/compatibility/nojs.blade.php'\n ),\n ],\n 'cms.views.compatibility.nojs'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/emails' => resource_path('views/vendor/cms/emails'),\n ],\n 'cms.views.emails'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/emails/app' => resource_path('views/vendor/cms/emails/app'),\n ],\n 'cms.views.emails.app'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/emails/app/html' => resource_path('views/vendor/cms/emails/app/html'),\n __DIR__ . '/../../views/emails/app/html.blade.php' => resource_path('views/vendor/cms/emails/app/html.blade.php'),\n ],\n 'cms.views.emails.app.html'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/emails/app/plain.blade.php' => resource_path(\n 'views/vendor/cms/emails/app/plain.blade.php'\n ),\n ],\n 'cms.views.emails.app.plain'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/emails/contact' => resource_path('views/vendor/cms/emails/contact'),\n ],\n 'cms.views.emails.contact'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/emails/contact/contact' => resource_path('views/vendor/cms/emails/contact/contact'),\n ],\n 'cms.views.emails.contact.contact'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/emails/contact/contact/html.blade.php' => resource_path(\n 'views/vendor/cms/emails/contact/contact/html.blade.php'\n ),\n ],\n 'cms.views.emails.contact.contact.html'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/emails/contact/contact/plain.blade.php' => resource_path(\n 'views/vendor/cms/emails/contact/contact/plain.blade.php'\n ),\n ],\n 'cms.views.emails.contact.contact.plain'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/emails/contact/copy' => resource_path('views/vendor/cms/emails/contact/copy'),\n ],\n 'cms.views.emails.contact.copy'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/emails/contact/copy/html.blade.php' => resource_path(\n 'views/vendor/cms/emails/contact/copy/html.blade.php'\n ),\n ],\n 'cms.views.emails.contact.copy.html'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/emails/contact/copy/plain.blade.php' => resource_path(\n 'views/vendor/cms/emails/contact/copy/plain.blade.php'\n ),\n ],\n 'cms.views.emails.contact.copy.plain'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/emails/account-activated' => resource_path('views/vendor/cms/emails/account-activated'),\n ],\n 'cms.views.emails.account-activated'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/emails/account-activated/html.blade.php' => resource_path(\n 'views/vendor/cms/emails/account-activated/html.blade.php'\n ),\n ],\n 'cms.views.emails.account-activated.html'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/emails/account-activated/plain.blade.php' => resource_path(\n 'views/vendor/cms/emails/account-activated/plain.blade.php'\n ),\n ],\n 'cms.views.emails.account-activated.plain'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/emails/forgot-password' => resource_path('views/vendor/cms/emails/forgot-password'),\n ],\n 'cms.views.emails.forgot-password'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/emails/forgot-password/html.blade.php' => resource_path(\n 'views/vendor/cms/emails/forgot-password/html.blade.php'\n ),\n ],\n 'cms.views.emails.forgot-password.html'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/emails/forgot-password/plain.blade.php' => resource_path(\n 'views/vendor/cms/emails/forgot-password/plain.blade.php'\n ),\n ],\n 'cms.views.emails.forgot-password.plain'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/emails/new-password' => resource_path('views/vendor/cms/emails/new-password'),\n ],\n 'cms.views.emails.new-password'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/emails/new-password/html.blade.php' => resource_path(\n 'views/vendor/cms/emails/new-password/html.blade.php'\n ),\n ],\n 'cms.views.emails.new-password.html'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/emails/new-password/plain.blade.php' => resource_path(\n 'views/vendor/cms/emails/new-password/plain.blade.php'\n ),\n ],\n 'cms.views.emails.new-password.plain'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/errors' => resource_path('views/vendor/cms/errors'),\n ],\n 'cms.views.errors'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/errors/exception.blade.php' => resource_path(\n 'views/vendor/cms/errors/exception.blade.php'\n ),\n ],\n 'cms.views.errors.exception'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/xmls' => resource_path('views/vendor/cms/xmls'),\n ],\n 'cms.views.xml'\n );\n\n $this->publishes(\n [\n __DIR__ . '/../../views/xml/sitemap.blade.php' => resource_path('views/vendor/cms/xml/sitemap.blade.php'),\n ],\n 'cms.views.xml.sitemap'\n );\n }", "title": "" }, { "docid": "4475e35a05b51461757b67f2ab821748", "score": "0.58762944", "text": "private function publishAssets()\n {\n\n $this->mergeConfigFrom(\n __DIR__ . '/../config/laravel-translate.php', 'laravel-translate'\n );\n\n $this->publishes([\n __DIR__ . '/../config/laravel-translate.php' => config_path('laravel-translate.php'),\n ], 'config');\n\n $this->publishes([\n __DIR__.'/../database/migrations/' => database_path('migrations')\n ], 'migrations');\n\n $this->loadMigrationsFrom(__DIR__ . '/../database/migrations');\n }", "title": "" }, { "docid": "53ce6839e38c2b6e567dea9d83d5eacc", "score": "0.5863573", "text": "public function publishEnv()\n {\n $this->publishes(\n [\n __DIR__ . '/../../.env.example' => base_path('.env.sample'),\n ],\n 'cms.env'\n );\n }", "title": "" }, { "docid": "29a44c1fb9d3302fc88f8517366e1e8c", "score": "0.58401924", "text": "protected function publishViews() {\n\n $this->publishes([\n __DIR__ . '/Views' => base_path('resources/views/vendor/package-intership'),\n ]);\n }", "title": "" }, { "docid": "e8c2bae07b799c096102672a4bd1cac3", "score": "0.58046836", "text": "private function publishFiles(): void\n {\n $this->progress->setMessage('Publishing files');\n\n $this->callSilent('vendor:publish', ['--tag' => 'directus']);\n }", "title": "" }, { "docid": "e136f3359b57a2b3e7d7ca9b1d6182d2", "score": "0.5801385", "text": "private function registerPublishing()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__ . '/../public/' => public_path('vendor/adminer'),\n ], 'Adminer-assets');\n }\n }", "title": "" }, { "docid": "c030bb59117ff55249d1560ce1292f64", "score": "0.5758256", "text": "protected function defineAssetPublishing()\n {\n $sourceViewsPath = __DIR__ . '/../../resources/views';\n\n $this->publishes([\n $sourceViewsPath => resource_path('views/vendor/invoices'),\n ], 'views');\n\n // Publish a config file\n $this->publishes([\n __DIR__ . '/../../config/soap.invoices.php' => config_path('soap.invoices.php'),\n ], 'config');\n\n // Publish migrations\n $this->publishes([\n __DIR__ . '/../../database/migrations/2020_02_10_163005_create_invoices_tables.php'\n => database_path('migrations/2020_02_10_163005_create_invoices_tables.php'),\n ], 'migrations');\n }", "title": "" }, { "docid": "263eccee4bec57f7938dae39ab18b058", "score": "0.5747735", "text": "protected function eloquentTranslatePublishes()\n {\n $this->publishes([\n __DIR__ . '/../config/eloquent-translate.php' => config_path('eloquent-translate.php'),\n ], 'config');\n }", "title": "" }, { "docid": "6cf9fabc4f335e9b7657d8ae77020998", "score": "0.5740988", "text": "protected function publishConfig($configPath)\n {\n $this->publishes([$configPath => config_path('kazooapi.php')], 'config');\n }", "title": "" }, { "docid": "c20fbf9c2cd8faf913772a9bc22f74fd", "score": "0.57331306", "text": "protected function registerPublishing()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__.'/../config/authy.php' => $this->app->configPath('authy.php'),\n ], 'config');\n\n $this->publishes([\n __DIR__ . '/../database/migrations/add_to_users_table.php.stub' => database_path('migrations/' . date('Y_m_d_His', time()) . 'add_to_users_table.php'),\n\n // you can add any number of migrations here\n ], 'migrations');\n\n $this->publishes([\n __DIR__.'/../resources/views' => $this->app->resourcePath('views/vendor/authy'),\n ], 'views');\n }\n }", "title": "" }, { "docid": "122570cbaef7b4beee2d91ac37d3b95e", "score": "0.5725727", "text": "private function publishViews()\n {\n $this->publishes([\n __DIR__ . '/../resources/views/' => resource_path('views/vendor/nova-menu'),\n ], 'nova-menu-builder-views');\n }", "title": "" }, { "docid": "8a33262a133620bb0a41fe7385dd8e13", "score": "0.5696268", "text": "protected function configure()\n {\n $this->publishes([\n __DIR__ . '/../config/mail-digester.php' => config_path('mail-digester.php'),\n ], 'config');\n $this->mergeConfigFrom(\n __DIR__ . '/../config/mail-digester.php',\n 'mail-digester'\n );\n }", "title": "" }, { "docid": "36c5cfd51f45c29ba1692bcb8d900bc3", "score": "0.56855714", "text": "protected function publishConfig($configPath)\n {\n $this->publishes([$configPath => config_path('sage-pay.php')], 'config');\n }", "title": "" }, { "docid": "c259972e436754507a462fc391403f6f", "score": "0.5677258", "text": "public function publishAll();", "title": "" }, { "docid": "10666db372db4d15c6471601277cc980", "score": "0.5673353", "text": "public function configurePackage(Package $package): void\n {\n $package\n ->name('laravel-hetzner-dns-api')\n ->hasConfigFile('hetzner-dns');\n }", "title": "" }, { "docid": "4a706318ab3206cc4da31b894207c285", "score": "0.566969", "text": "protected function publishViews() {\n\n $this->publishes([\n __DIR__ . '/Views' => base_path('resources/views/vendor/Myclass'),\n ]);\n }", "title": "" }, { "docid": "fead77ce4b2dbed21fb77ffd55d4534a", "score": "0.5652371", "text": "final private function loadPublishes(){\n //router\n $this->publishes([ __DIR__ . '/../routes.php' => config('admin.paths.routes')], 'Route Admin');\n }", "title": "" }, { "docid": "48b469a8eb8df82eac95212708677212", "score": "0.5645135", "text": "protected function registerConfig()\n {\n $this->publishes([realpath(__DIR__ . '/../config/filesystems.php') => config_path('filesystems.php')]);\n }", "title": "" }, { "docid": "08e0695a469ee96ceaa091ce5c03d7c7", "score": "0.5644589", "text": "protected function publishFactories(): void\n {\n $this->publishes([\n $this->factoriesPath() => $this->factoriesDestinationPath(),\n ], $this->getPublishTag('factories'));\n }", "title": "" }, { "docid": "16c38194cef259b69215b1cb437e67aa", "score": "0.56339955", "text": "protected function registerConfig(): void\n {\n $this->publishes([\n __DIR__.'/../config/echo-server.php' => config_path('echo-server.php'),\n ], 'config');\n\n $this->mergeConfigFrom(\n __DIR__.'/../config/echo-server.php', 'echo-server'\n );\n }", "title": "" }, { "docid": "a59ad0dd69d5d12021e7643b9768896e", "score": "0.5605435", "text": "private function publishAssets(): void\n {\n if ($this->option('fromBuild')) {\n // If this is from a build, we copy from dist to public.\n $this->files->copyDirectory(__DIR__ . '/../../dist/', public_path());\n } else {\n $this->call('vendor:publish', [\n '--provider' => \\A17\\Twill\\TwillServiceProvider::class,\n '--tag' => 'assets',\n ]);\n }\n }", "title": "" }, { "docid": "1ab6bb030b3d2d7edefb9a68b85bbee5", "score": "0.5599568", "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": "f44aae8a6325cdb6b3f5b6622899ae1b", "score": "0.55884826", "text": "protected function registerConfigPublishCommand(): void\n {\n $this->app->singleton('command.config.publish', static function () {\n return new ConfigPublishCommand();\n });\n }", "title": "" }, { "docid": "d3b324cec6bbc833e3e126a5f24921ed", "score": "0.55839306", "text": "protected function registerPublishing()\n {\n $this->publishes([\n __DIR__.'/../resources/views/layouts' => resource_path('views/vendor/laranext/layouts'),\n ], 'laranext-views');\n\n $this->publishes([\n __DIR__.'/../public' => public_path('vendor/theme'),\n ], 'theme-assets');\n }", "title": "" }, { "docid": "3dea299f5c8a576aac2a8ea5743ae421", "score": "0.55633", "text": "public function boot()\n {\n $this->publishes([__DIR__.\"/../config/response_builder.php\" => config_path('response_builder.php')]);\n }", "title": "" }, { "docid": "874e1d0e7f8fbfeafedbb13c31adf5cb", "score": "0.55606747", "text": "protected function registerConfigPublishCommand()\n {\n $this->app->bindShared('command.config.publish', function($app)\n {\n $configPublisher = $app['config.publisher'];\n\n return new ConfigPublishCommand($configPublisher);\n });\n }", "title": "" }, { "docid": "b75f013776be5c0f218f49751e6fad3f", "score": "0.5557316", "text": "protected function publishViews()\n {\n $this->publishes([\n __DIR__ . '/../resources/views/mails' => resource_path('views/mails'),\n ]);\n }", "title": "" }, { "docid": "15cc6d40ea054cb8a1cbd78ac37f39a4", "score": "0.5547874", "text": "protected function publishMigrations()\n {\n $this->publishes([\n $this->getMigrationsPath() => database_path('migrations')\n ], 'migrations');\n }", "title": "" }, { "docid": "15cc6d40ea054cb8a1cbd78ac37f39a4", "score": "0.5547874", "text": "protected function publishMigrations()\n {\n $this->publishes([\n $this->getMigrationsPath() => database_path('migrations')\n ], 'migrations');\n }", "title": "" }, { "docid": "5e8c0bad4a984d22a4351371dee399a9", "score": "0.5537341", "text": "private function makeServiceProvider()\n {\n $this->warn(\"Creating Service Provider\");\n\n $contents = file_get_contents( __DIR__.'../../../resources/base_files/serviceprovider.php');\n $updated_contents = $this->updateFileContents($contents);\n $path = base_path() .'/packages/'.$this->packageName.'/Providers/'.$this->packageName.'ServiceProvider.php';\n\n file_put_contents($path, $updated_contents);\n }", "title": "" }, { "docid": "22e5cbb11b85631ee9fb611438de91bc", "score": "0.55211365", "text": "public function boot() {\n\t\t$this->publishes([\n\t\t\t__DIR__ . '/../config/plivo.php' => config_path('plivo.php'),\n\t\t]);\n\t}", "title": "" }, { "docid": "2ff7ac6da6202c1121a9e9b3660cf2db", "score": "0.54882324", "text": "protected function publishFiles()\n {\n $this->publishes([\n __DIR__.'/libraries/alert.css' => public_path('css/alert.css'),\n __DIR__.'/libraries/alert.js' => public_path('js/alert.js'),\n __DIR__.'/Views/alerts.blade.php' => base_path('resources/views/vendor/alerts/alerts.blade.php'),\n ], 'alerts');\n }", "title": "" }, { "docid": "6c3fa91c5c81b9056809e80d563ae2d9", "score": "0.5488182", "text": "protected function registerPublishables()\n {\n $publishablePath = dirname(__DIR__).'/publishable';\n\n $publishables = [\n 'assets' => [\n $publishablePath . '/assets/' => public_path(config('kladmin.assets_path'))\n ],\n 'config' => [\n $publishablePath . '/config/' => config_path()\n ]\n ];\n\n foreach ($publishables as $group => $paths) {\n $this->publishes($paths, $group);\n }\n }", "title": "" }, { "docid": "c63317ca6c8219e8e07439359d3f2dcd", "score": "0.54810184", "text": "private function registerAssetPublishing()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__ . '/../public' => public_path('vendor/laratalk'),\n ], 'laratalk-assets');\n\n $this->publishes([\n __DIR__ . '/../config/laratalk.php' => config_path('laratalk.php'),\n ], 'laratalk-config');\n }\n }", "title": "" }, { "docid": "7110313b4529131129464daacce45192", "score": "0.54799634", "text": "public function configurePackage(Package $package): void\n {\n $package\n ->name('factory-generator')\n ->hasConfigFile()\n ->hasCommand(FactoryGeneratorCommand::class);\n }", "title": "" }, { "docid": "052c13f3530e8a0395ed762764e85575", "score": "0.547657", "text": "public function publishMigrations()\n {\n $this->publishes(\n [\n __DIR__ . '/../../migrations' => database_path('migrations'),\n ],\n 'cms.migrations'\n );\n }", "title": "" }, { "docid": "6ff5d32376d8b044b79a5a6dde7dfbc5", "score": "0.5475018", "text": "protected function publishConfiguration($path)\n {\n // Compute and create the destination folder\n $destination = $this->paths->getConfigurationPath().'/plugins';\n\n // Export configuration\n $files = $this->files->listFiles($path, true);\n foreach ($files as $file) {\n $fileDestination = $destination.DS.$file['basename'];\n if ($this->files->has($destination) && !$this->force) {\n continue;\n }\n\n $this->files->forceCopy($file['path'], $fileDestination);\n $this->explainer->success('Published <comment>'.str_replace($this->paths->getBasePath(), null, $fileDestination).'</comment>');\n }\n }", "title": "" }, { "docid": "3607beb726b74442bd56d93dc05589a8", "score": "0.547101", "text": "public function publish()\n\t{\n\t\tparent::publish();\n\t\t$this->publishImages();\n\t}", "title": "" }, { "docid": "3fe642e2dac1b20020b7fab654f5f43b", "score": "0.5470132", "text": "public function boot()\n {\n $configPath = __DIR__ . '/../../../config/sage-pay.php';\n\n $this->publishes([$configPath => $this->getConfigPath()], 'config');\n }", "title": "" }, { "docid": "118fd52c02e24ae0db95860a1c3c9cb4", "score": "0.5463145", "text": "public function publishDocs()\n {\n $this->publishes(\n [\n __DIR__ . '/../../docs/api.html' => base_path('docs/api.html'),\n ],\n 'cms.docs'\n );\n }", "title": "" }, { "docid": "0b944745d97db012d4141beb07c79ae4", "score": "0.54619104", "text": "public function publishAdminFile()\n {\n $this->callSilent('vendor:publish', [\n '--tag' => ['admin-controllers', 'admin-models', 'admin-views', 'admin-seeds', 'admin-migrations', 'admin-assets', 'admin-request', 'admin-config', 'admin-helper', 'admin-traits', 'admin-md-helper', 'admin-notifications'],\n '--force' => true\n ]);\n $this->info('Files published successfully.');\n }", "title": "" }, { "docid": "eb203586356382e9823eac3db04582e1", "score": "0.54581684", "text": "public function configurePackage(Package $package): void\n {\n $package\n ->name('flexnet-operations')\n ->hasConfigFile();\n }", "title": "" }, { "docid": "105c787752f9b7f3d614fb0a047c1098", "score": "0.54556966", "text": "private function publishAll()\n {\n /** @var Module $module */\n foreach (workbench()->enabled() as $module) {\n $this->publish($module);\n }\n }", "title": "" }, { "docid": "97c91d74a0344fd8927aacc0009344cb", "score": "0.54417735", "text": "public function boot() {\n\t\t$this->publishes( [\n\t\t\t__DIR__ . '\\..\\config.php' => config_path( 'google.php' ),\n\t\t] );\n\t}", "title": "" }, { "docid": "7e3ca784ddca18e223553ae319662064", "score": "0.54416627", "text": "public function publishAll()\n {\n foreach ($this->laravel['domains']->allEnabled() as $domain) {\n $this->publish($domain);\n }\n }", "title": "" }, { "docid": "12de5662cabc475b25d71bc02d940580", "score": "0.54368216", "text": "public function configurePackage(Package $package): void\n {\n $package\n ->name('laravel-informeronline')\n ->hasConfigFile();\n\n $this->app->alias(InformerOnline::class, 'laravel-informeronline');\n\n $this->app->singleton(Config::class, function () {\n return new InformerOnlineConfig(strval(config('informeronline.base_uri')), strval(config('informeronline.api_key')), intval(config('informeronline.security_code')));\n });\n }", "title": "" }, { "docid": "9f687c7a78b6d00d84a1747631d763f4", "score": "0.54364586", "text": "public function boot(): void\n {\n // Configuration file\n $this->publishes(\n [\n self::$configPath . 'config.php' => config_path('Hostfact.php'),\n ],\n 'config'\n );\n }", "title": "" }, { "docid": "017c07cc34b0dc2c2851fa7e8b8c9a70", "score": "0.54323554", "text": "protected function bootConfig()\n {\n $path = __DIR__ . '/../config/setting.php';\n $this->publishes([$path => config_path('setting.php')]);\n $this->mergeConfigFrom($path, 'setting');\n }", "title": "" }, { "docid": "a8da3b14ea1055d7448c714ed60853bb", "score": "0.5431292", "text": "public function boot() {\n $upOne = realpath(__DIR__ . '/..');\n \n $this->publishes([\n $upOne . '/config/config-epay.php' => config_path('config-epay.php')\n ],'config');\n }", "title": "" }, { "docid": "d172e07950db9771c55773965318dc86", "score": "0.5427192", "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": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "dd779504cc397bef09ae955730d23acd", "score": "0.0", "text": "public function destroy($id)\n {\n\t\t\t$gear = Gear::find($id);\n\t\t\t$gear->delete();\n\t\t\treturn redirect('/gear')->with('success', 'Gear Removed');\n }", "title": "" } ]
[ { "docid": "d9f10892d48fdfd7debb2a97681f0912", "score": "0.6659381", "text": "public function destroy(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "bf5bdce82d29d195c541bde30e9bd0d1", "score": "0.6657151", "text": "public function delete(string $id): StorageInterface;", "title": "" }, { "docid": "1a0817638684f4ae1b1b05bdb0c248f5", "score": "0.6551558", "text": "public function destroy(Resource $resource)\n {\n if(!empty($resource->file))\n {\n Storage::delete($resource->file);\n }\n $resource->delete();\n SweetAlert::success('Resource deleted successfully', 'Resource Deleted');\n return redirect('admin/resources');\n }", "title": "" }, { "docid": "f97c7ef128841810bcd2802cbc29549f", "score": "0.64965194", "text": "public static function free($resource) {\n $key = (int) $resource;\n unset(self::$resources[$key]);\n fclose($resource);\n }", "title": "" }, { "docid": "13af45b900ea1b9bf1c8da06f493ec49", "score": "0.6375682", "text": "public function unregisterResource();", "title": "" }, { "docid": "edfbcb77ef51eb287b3c974fff4aad4b", "score": "0.63317466", "text": "public function remove()\n {\n unlink($this->path);\n }", "title": "" }, { "docid": "672ba058576bec5ca7fde13030495de7", "score": "0.6309623", "text": "public function drop($resource){\n //$QRY = \"DELETE FROM cargo WHERE HoldCode='\" . $this->code . \"' AND ResourceID='\" . $resource->getID() .\"'\" ;\n return $this->set($resource,0);\n }", "title": "" }, { "docid": "e43e3a5499a2712cbe1cf2b24e7c3620", "score": "0.6293338", "text": "public function onPostDelete(ResourceControllerEvent $event)\n {\n /** @var File $file */\n $file = $event->getSubject();\n\n // Remove file\n $removed = $this->fileUploader->remove($file->getPath());\n }", "title": "" }, { "docid": "d863772b10ad49a898e12e4f28433079", "score": "0.6234164", "text": "public function remove($asset);", "title": "" }, { "docid": "4a4154c15239aacdcb2c7b2df61d4afd", "score": "0.6156401", "text": "public function destroy(DestroyRequestInterface $request, $id): Model\n {\n $resource = $this->repository->destroy($id);\n\n if (Str::startsWith($resource->url, '/storage/userfiles')) {\n $path = Container::getInstance()->make('path.storage').\n DIRECTORY_SEPARATOR.'app/public'.\n substr($resource->url, strlen('/storage'));\n\n if (is_file($path) && is_readable($path)) {\n // remove from FS\n unlink($path);\n }\n }\n\n return $resource;\n }", "title": "" }, { "docid": "2468f1730202c83ecc9700a8af6197f6", "score": "0.6106848", "text": "public function destroy($id)\n {\n //\n $resource = \\App\\Resource::find($id);\n \n $resource->delete();\n }", "title": "" }, { "docid": "f9d9d17fc28e80cbcf39048cb26f0e90", "score": "0.61040956", "text": "public function destroy($id)\n {\n $resources = Resources::findOrFail($id);\n $file_path = Storage::delete('/uploads/' . $resources->file);\n\n unlink(public_path('' . $resources->file));\n\n $resources->delete();\n\n return redirect()->route('resources.index');\n }", "title": "" }, { "docid": "a8cd6266e1339bba373228b98b9e7cfc", "score": "0.608974", "text": "public function destroy($id)\n {\n\n/*borrado foto de la carpeta storage */\n$usuario = usuario::findOrFail($id);\nif(Storage::delete('public/'.$usuario->foto)){\n usuario::destroy($id); \n}\n\n return redirect('usuario')->with('Mensaje','usuario borrado');\n }", "title": "" }, { "docid": "ec672881057d589001b28c7d9e8f835f", "score": "0.60874546", "text": "public function delete($resource)\n {\n $json = false;\n $fs = unserialize($_SESSION['fs'][$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 for ($i = 0, $len = count($fs); $i < $len; $i++) {\n if (isset($fs[$i]['parId']) && $fs[$i]['parId'] == $resource) {\n unset($fs[$i]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['fs'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n\n return $json;\n }", "title": "" }, { "docid": "de8c04eef1a16113081f8979132ab544", "score": "0.6052797", "text": "public function destroy(Resource $resource) {\n try {\n DB::transaction(function() use ($resource) {\n Resource::find($resource->id)->delete();\n });\n } catch (Exception $e) {\n return redirect()->route('resource.index')->with('message', 'Error occrrued!'); \n }\n \n return redirect()->route('resource.index')->with('message', 'Successfully deleted!'); \n }", "title": "" }, { "docid": "4deb25f496dd8746206b182996b7e3b3", "score": "0.6044409", "text": "public function deleteResourceAction()\n {\n $id = $this->Request()->getParam('id', null);\n /** @var Enlight_Components_Snippet_Namespace $namespace */\n $namespace = $this->snippetManager->getNamespace('backend/user_manager');\n\n if (empty($id)) {\n $this->View()->assign([\n 'success' => false,\n 'data' => $this->Request()->getParams(),\n 'message' => $namespace->get('no_resource_passed', 'No valid resource id passed'),\n ]);\n\n return;\n }\n\n // Remove the privilege\n $query = $this->getUserRepository()->getPrivilegeDeleteByResourceIdQuery($id);\n $query->execute();\n\n // Clear mapping table s_core_acl_roles\n $query = $this->getUserRepository()->getRuleDeleteByResourceIdQuery($id);\n $query->setParameter(1, $id);\n $query->execute();\n\n // Clear mapping table s_core_acl_roles\n $query = $this->getUserRepository()->getResourceDeleteQuery($id);\n $query->setParameter(1, $id);\n $query->execute();\n\n $this->View()->assign([\n 'success' => true,\n 'data' => $this->Request()->getParams(),\n ]);\n }", "title": "" }, { "docid": "db4382353b96e87cb5a70c801383930a", "score": "0.603214", "text": "public function delete($resourceId = null, $options = []);", "title": "" }, { "docid": "5e7cbb487901366ec1c7a23047a12228", "score": "0.60015875", "text": "public function remove(): void\n {\n $this->getMetaDataRepository()->removeByFileUid($this->file->getUid());\n $this->metaData = [];\n }", "title": "" }, { "docid": "524f17fa52716215e9022678cec85db0", "score": "0.5934124", "text": "public static function delete($path){\n return \\Storage::delete($path);\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": "89760f8189adbf4ecc4b744f95e88412", "score": "0.59284675", "text": "public function delete()\n {\n $this->sourceProvider->deleteAsset($this);\n }", "title": "" }, { "docid": "0f0cd2f8cc6b053feb502f39ade6ccef", "score": "0.5927027", "text": "public function onRemove(StorageInfoEvent $event)\n {\n $storageInfo = $event->getStorageInfo();\n $storage = $this->storageProvider->getStorageByName($storageInfo->getStorage());\n $storage->remove($storageInfo);\n }", "title": "" }, { "docid": "21b273940f5830194aa0700a4b7ee3cf", "score": "0.5912619", "text": "public function destroy($id)\n {\n $action_code = 'storages_destroy';\n $message = usercan($action_code, Auth::user());\n if ($message) {\n return redirect()->back()->with('message', $message);\n }\n Storage::find($id)->delete();\n return redirect()->route('storages.index');\n }", "title": "" }, { "docid": "78f3fcb6a4df88ba8ea45797087a7e8d", "score": "0.59121597", "text": "public function remove($entity);", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "7d39dbbdc4e064b12241d7ae0ff61fd8", "score": "0.5888942", "text": "function remove($resource_id, $resource_mac) {\n\tglobal $OPENQRM_EXEC_PORT;\n\tglobal $RESOURCE_INFO_TABLE;\n\tglobal $RootDir;\n\tglobal $event;\n\t$openqrm_server = new openqrm_server();\n\t$OPENQRM_SERVER_IP_ADDRESS = $openqrm_server->get_ip_address();\n\n\t// remove resource hook\n\t$plugin = new plugin();\n\t$enabled_plugins = $plugin->enabled();\n\tforeach ($enabled_plugins as $index => $plugin_name) {\n\t\t$plugin_new_resource_hook = \"$RootDir/plugins/$plugin_name/openqrm-$plugin_name-resource-hook.php\";\n\t\tif (file_exists($plugin_new_resource_hook)) {\n\t\t\t$event->log(\"check_all_states\", $_SERVER['REQUEST_TIME'], 5, \"resource.class.php\", \"Found plugin $plugin_name handling remove-resource event.\", \"\", \"\", 0, 0, $resource_id);\n\t\t\trequire_once \"$plugin_new_resource_hook\";\n\t\t\t$resource_fields[\"resource_id\"]=$resource_id;\n\t\t\t$resource_fields[\"resource_mac\"]=$resource_mac;\n\t\t\t$resource_function=\"openqrm_\".\"$plugin_name\".\"_resource\";\n $resource_function=str_replace(\"-\", \"_\", $resource_function);\n\t\t\t$resource_function(\"remove\", $resource_fields);\n\t\t}\n\t}\n\n\t$db=openqrm_get_db_connection();\n\t$rs = $db->Execute(\"delete from $RESOURCE_INFO_TABLE where resource_id=$resource_id and resource_mac='$resource_mac'\");\n}", "title": "" }, { "docid": "da571cc8e1a599998a053910ce2f7bfb", "score": "0.5885815", "text": "final public function delete () {\n\n\t\tif (!$this->readonly) {\n\t\t\tunlink($this->path);\n\t\t}\n\n\t}", "title": "" }, { "docid": "57fab3516b7f219869922edd20055b51", "score": "0.5873314", "text": "public function destroy($id)\n {\n $store = Store::find($id);\n if ($store->img_path != null) {\n $file = $store->img_path;\n $filename = public_path($file);\n File::delete($filename);\n }\n $store->delete();\n return redirect()->route('store.index');\n }", "title": "" }, { "docid": "4449a75fc1cbd6055e0b62130d75148b", "score": "0.5860804", "text": "public function RemoveOneById($id);", "title": "" }, { "docid": "4b22b7ee3a57517ec9e3b86bea1578c9", "score": "0.5856808", "text": "public function clearStorage();", "title": "" }, { "docid": "6dce10586445045978d39ba1392323b6", "score": "0.58500713", "text": "public function deleteResource($resource, $user) {\n if (!isset($resource)) {\n return false;\n }\n $resource->setVersion(null);\n $resource->setOperation(\\snac\\data\\AbstractData::$OPERATION_DELETE);\n $this->writeResource($user, $resource);\n }", "title": "" }, { "docid": "088fe5340e9729937401aae11b2c028c", "score": "0.5828483", "text": "public function destroy($id)\n\t{\n\t\t//$file_path = '/var/www/html/storage';\n\n\t\t$file_path = 'storage/';\n\t\t\n\t\t$photo = Photo::findOrFail($id);\n\n\tif(\\Auth::user() == $photo->user){\n\t\tunlink($file_path . '/thumbnail_l/' . $photo->filename );\n\t\tunlink($file_path . '/thumbnail_s/' . $photo->filename );\n\t\tunlink($file_path . '/photo/' . $photo->filename );\n\t\t$photo->delete();\n\t}\n\telse{\n\t\tabort(403, 'Unauthorized action.');\n\t}\n\n\treturn back();\n\t}", "title": "" }, { "docid": "3e9f9d5e0930df3ba5a07226915aa8cf", "score": "0.57843596", "text": "public function delete() {\r\n\t\tforeach($this->getResources() as $resource) {\r\n\t\t\t$resource->delete();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c333245bb9cc02a4fbc7d3a2cfc224c7", "score": "0.5774099", "text": "public function delete($resource, $data = null)\n {\n return $this->request('DELETE', $resource, $data);\n }", "title": "" }, { "docid": "7358072dcd1c89c48904de9c261001a8", "score": "0.57734996", "text": "public function destroy(Qualification $resource)\n { \n try { \n watch(\"remove qualification \" . $resource->name, \"fa fa-graduation-cap\");\n $resource->delete();\n return responseJson(1, __('done'));\n } catch (\\Exception $th) {\n return responseJson(0, $th->getMessage()); \n }\n\n }", "title": "" }, { "docid": "8dbd37bfa87a52d45498c862d3483f87", "score": "0.5760697", "text": "abstract public function deleteObject(StorageObject $object);", "title": "" }, { "docid": "dd7025d9e01cad9d4327c8c400d65ce2", "score": "0.5735519", "text": "public function remove(): void\n {\n $this->fileSystem->remove($this->getTmpFolder());\n }", "title": "" }, { "docid": "1e7f4bef5bb91c242a5bbe20ed3966a3", "score": "0.57293934", "text": "public function delete($resource, $permanent = false)\n {\n if ($permanent) {\n $resource->forceDelete();\n }\n else {\n $resource->delete();\n }\n\n return $resource;\n }", "title": "" }, { "docid": "80279a1597fc869ef294d03bcd1a6632", "score": "0.5721846", "text": "public function rm($id)\n {\n }", "title": "" }, { "docid": "c3661d35417174f9452ba59a45699928", "score": "0.5707349", "text": "public function rm()\n {\n if ($this->isOpen()) {\n $this->close();\n }\n\n if (file_exists($this->path)) {\n unlink($this->path);\n }\n }", "title": "" }, { "docid": "c495cc77dd250f46d2c9c9abfd95629f", "score": "0.57047707", "text": "public function remove($mediaRoute)\n {\n $mediaRoute = str_replace('storage', '', $mediaRoute);\n if (CategoriesManager::dirPermitted($mediaRoute, 'write')) {\n if ($this->Storage->get($mediaRoute)) {\n $this->FileManager->removeUploadedFile($mediaRoute);\n }\n } else {\n abort(403, 'Action Not Permitted');\n }\n }", "title": "" }, { "docid": "716ff682fc6ba23273c6c396e480b588", "score": "0.5698897", "text": "public function destroy($id)\n {\n $serieinfo=Serieinfo::find($id);\n //delete related file from storage\n $serieinfo->delete();\n return redirect()->route('serieinfos.index');\n }", "title": "" }, { "docid": "5533659f381e7a8e6c54f186d2eb0f35", "score": "0.5696095", "text": "public function destroy($id)\n {\n $image = Images::findOrFail($id);\n if($image->id_user !==Auth::user()->id){\n abort(403);\n }\n if ($image->delete()) {\n return new ImagesResource($image);\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": "54eefc99280a39e3c6bb70841266fb17", "score": "0.5679024", "text": "public function delete(string $path) {\n if ($this->filesystem->has($path)) {\n $this->filesystem->delete($path);\n }\n }", "title": "" }, { "docid": "e2c089cb0907d4285eb135e43b5a8fe3", "score": "0.5677516", "text": "public function destroy($id)\n {\n $db = slider::findorfail($id); \n $image = $db->img;\n if($image == 'rename'){\n $db->delete();\n return redirect()->back()->with('toast_success', 'Deleted Successfully');\n }\n else{\n $db->delete();\n unlink(\"public/frontend/images/slider/$image\");\n return redirect()->back()->with('toast_success', 'Deleted Successfully');\n }\n\n }", "title": "" }, { "docid": "91d0abfba516849f162315ad6f84221d", "score": "0.5665747", "text": "public static function deleteResource($path)\n {\n return self::connection()->delete(self::$api_path . $path);\n }", "title": "" }, { "docid": "bd76262796308aefc21f47fd8d5367a5", "score": "0.5664876", "text": "public function destroy($id)\n {\n $material = Material::where('id', $id)->first();\n $photo = $material->image;\n if ($photo) {\n unlink($photo);\n $material->delete();\n } else {\n $material->delete();\n }\n }", "title": "" }, { "docid": "12be18de23b7e125da5cc8bb624e8d2b", "score": "0.56612486", "text": "public function remove($object): void\n {\n // Intercept a second call for the same PersistentResource object because it might cause an endless loop caused by\n // the ResourceManager's deleteResource() method which also calls this remove() function:\n if (!$this->removedResources->contains($object)) {\n $this->removedResources->attach($object);\n parent::remove($object);\n }\n }", "title": "" }, { "docid": "b67bfb475b041f61984501b11bd777c2", "score": "0.56451535", "text": "public function destroy($id)\n {\n $product = Product::find($id);\n //if image is existing in storage remove it folder\n if(file_exists($product->image)){\n unlink($product->image);\n }\n $product->delete();\n session()->flash('success','Product removed');\n return redirect()->route('products.index');\n }", "title": "" }, { "docid": "5a80a9beaa03a9c8b57f1b3856269218", "score": "0.56437796", "text": "public function removeById( $id );", "title": "" }, { "docid": "6a7aee0ff8e7deeea7a6ed86706b6c6a", "score": "0.5642842", "text": "public function remove($path)\n {\n }", "title": "" }, { "docid": "acd9cc3435b565249eddbcbf72ff3cfa", "score": "0.56372994", "text": "public function remove()\n {\n $this->data = NULL;\n $this->meta = NULL;\n }", "title": "" }, { "docid": "5ba4cd2b3d58a30bd36befcb36f67815", "score": "0.5619844", "text": "public function delete($id = null) {\n unset($this->resources[$id]);\n $resources = $this->resources;\n $this->set(array('resources' => $resources, '_serialize' => 'resources')); \n }", "title": "" }, { "docid": "8e878d2b936d955b1b587c393e41b8a1", "score": "0.5610316", "text": "public function destroy($id)\n {\n $utena = Utena::findOrFail($id);\n if ($utena == true) {\n foreach ($utena['photo'] as $key) {\n var_dump($key['photo']);\n Storage::disk('local')->delete($key['photo']);\n }\n }\n $utena::destroy($id);\n Storage::disk('local')->delete($utena['file_name']);\n\n return redirect()->back();\n }", "title": "" }, { "docid": "c1f1b7a80e9d153a66f53f061766e9ef", "score": "0.5601832", "text": "public function delete()\n {\n return unlink($this->getName());\n }", "title": "" }, { "docid": "a013f2bd65affab0b771828bdc38b501", "score": "0.5600964", "text": "public function removeObject()\n {\n $sql = 'DELETE FROM {sql:tableName} WHERE {sql:primaryKey} = {primaryValue}';\n $this->db->query(Strings::prepareSql($sql, array(\n 'tableName' => $this->table,\n 'primaryKey' => $this->primaryKey[0],\n 'primaryValue' => $this->id\n )));\n\n $this->resetCache();\n }", "title": "" }, { "docid": "9ea39b5104b2dd404e5316758dc9b416", "score": "0.55944455", "text": "public function destroy($id)\n {\n $product = Product::where('id', $id)->first();\n $photo = $product->image;\n if ($photo) {\n unlink($photo);\n Product::where('id', $id)->delete();\n } else {\n Product::where('id', $id)->delete();\n }\n }", "title": "" }, { "docid": "7f98dc815ebaf88cbe24c6156ded360c", "score": "0.55919284", "text": "public function delete($id = NULL) {\n unlink($this->filepath);\n return parent::delete($id);\n }", "title": "" }, { "docid": "635fc9f7a4a2830c651a29b140289b35", "score": "0.5590984", "text": "public function delete(string $path): void;", "title": "" }, { "docid": "f35c8cff931b0040a1f88a44beb45e07", "score": "0.55906343", "text": "public function destroy()\n\t{\n\t\t$keyParams = $this->buildFieldFromArgs(func_get_args());\n\t\t$id = end($keyParams);\n\n\t\t$deleteMethod = 'removeByPK';\n\t\t$result = $this->service->$deleteMethod($id);\n\n\t\tif (!empty($result)) {\n\t\t\t\\Log::debug('Removed ' . $this->service->getModelFqn() . ': ' . $id);\n\t\t} else {\n\t\t\t\\Log::info('Record ' . $id . ' not found');\n\t\t}\n\n\t\tif (!empty($result)) {\n\t\t\treturn $this->jsonResponse(array('removed' => $id), 200);\n\t\t} else {\n\t\t\treturn $this->jsonResponse('Record not found: ' . $id, 404);\n\t\t}\n\t}", "title": "" }, { "docid": "462f1453dd93ff85e02d56eff40dab81", "score": "0.5564347", "text": "public function destroy(ResourceInterface $resource)\n\t{\n $response = null;\n\n if (Auth::user()->can('delete',$resource)) {\n if($this->repository->delete($resource)) {\n $response = Redirect::route('roles.resource.index')-> with('message',\n trans('roles::privileg.delete success', ['name' => $resource->getName()]));\n } else {\n $errors = new MessageBag();\n $errors->add('error', trans('roles::resource.delete failed'));\n $response = Redirect::back()->withErrors($errors);\n }\n } else {\n $errors = new MessageBag();\n $errors->add('error', trans('roles::resource.delete permission denied'));\n $response = Redirect::back()->withErrors($errors);\n }\n\n return $response;\n\t}", "title": "" }, { "docid": "944d03ec4ecd8652122c1712eca3262c", "score": "0.55559313", "text": "function _unlink($resource, $exp_time = null) {\n if (isset($exp_time)) {\n if(time() - @filemtime($resource) >= $exp_time) {\n return @unlink($resource);\n }\n } else {\n return @unlink($resource);\n }\n }", "title": "" }, { "docid": "54b736d3f27f0e0d89d8fcbfd3d55d86", "score": "0.5549338", "text": "public function destroy($id)\n {\n // Delete File\n\t\t// File must be deleted first before delete the database info\n $files = DB::table('KOSM_RESOURCE')\n ->select('KOSM_RESOURCE.*')\n ->where('RESOURCE_ID', $id)\n ->get();\n\n foreach ($files as $file) {\n\n File::delete('uploads/images/resource/'.$file->RESOURCE_FILE_PATH);\n }\n\n // Delete Database Info\n $delete = DB::table('KOSM_RESOURCE')\n ->where('RESOURCE_ID', $id)\n ->delete();\n\n \n //\n return redirect()->route('resource.index', ['success' => encrypt(\"Resource Delete Successfully\")]); \n }", "title": "" }, { "docid": "ae174b4a633d5848c1ba4c3a01fd9421", "score": "0.5547602", "text": "public function destroy($id)\n {\n $product = Product::find($id);\n $filepath = \"assets/image/product/uploads/\";\n if (!unlink($filepath .$product->image)) {\n echo \"<script>alert('$filepath - Ocorreu algum problema ao tentar localizar a imagem no servidor.');</script>\";\n\n }\n $product->delete();\n return redirect()->route('product.index');\n }", "title": "" }, { "docid": "645acc127b5e7676a2f87e1f8da53ed6", "score": "0.55405825", "text": "public function remove() {\n unset($this->cache[$this->key()]);\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": "c23030314e5ac2ffe89a3a0196bdb0ff", "score": "0.5533607", "text": "public static function deleteRes($file_path)\n {\n // remove file\n if (!empty($file_path) && Storage::disk()->exists($file_path)) {\n Log::alert('delete file: ' . $file_path);\n Storage::delete($file_path);\n }\n }", "title": "" }, { "docid": "fb3ffb3b9e8fce3db3c4ee25e40ad70e", "score": "0.5529168", "text": "public function _unlink($resource, $exp_time = null) {\n\t\tif (isset($exp_time)) {\n\t\t\tif (time() - @filemtime($resource) >= $exp_time) {\n\t\t\t\treturn @unlink($resource);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn @unlink($resource);\n\t\t}\n\t}", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "d760234a3235847f2a83bab1097263f8", "score": "0.55236036", "text": "function counter_remove ($resource) {}", "title": "" }, { "docid": "ec759861dd3d396dcc09d5e1bfcf628b", "score": "0.5521281", "text": "public function unlink($path);", "title": "" }, { "docid": "7fca25c6d2345e7d3547c5877c21d518", "score": "0.55189526", "text": "public function deleteImage() {\n Storage::delete( $this->image );\n }", "title": "" }, { "docid": "63fd43d443d19938199bcb7dc3c68679", "score": "0.55187416", "text": "public function destroy($id)\n {\n $product=Product::find($id);\n if($product->image!=null && file_exists(\"upload/product/\".$product->image))\n {\n unlink('upload/product/'.$product->image);\n }\n $album=$product->album;\n if($album !=\"\")\n {\n $split=explode('|',$album);\n foreach($split as $key=>$value){\n if(file_exists(\"upload/product/\".$value))\n {\n unlink('upload/product/'.$value);\n } \n }\n }\n \n $product->delete=0;\n $product->save();\n return \"Xóa thành công\";\n}", "title": "" }, { "docid": "af145ca4d7fcaa5c229e51cfdaf9bb3d", "score": "0.55152094", "text": "public function delete($identifier);", "title": "" }, { "docid": "1a9de669eb69817fb3f04d2c7cb5c3a2", "score": "0.5512501", "text": "public function destroy($id)\n {\n //\n $resourceLog = \\App\\ResourceLog::find($id);\n \n $resourceLog->delete();\n\n }", "title": "" }, { "docid": "5b9fa2c7addeed64b8cfb088ebb059ff", "score": "0.55087143", "text": "public function removeUpload()\n {\n if ($file = $this->getAbsolutePath()) {\n unlink($file);\n }\n }", "title": "" }, { "docid": "587fb7dff6f548bf7585807125dd6da5", "score": "0.55042773", "text": "public function delete(): void\n {\n $exists = $this->exists();\n $this->close();\n\n if ($exists) {\n try {\n unlink($this->path);\n } catch (Throwable $e) {\n if ($this->exists()) {\n throw $e;\n }\n }\n }\n }", "title": "" }, { "docid": "0f9a27e599c0de4b65ce3ca62d52be90", "score": "0.5501869", "text": "public function remove(string $key): void\n {\n $this->checkKeyExists($key);\n unset($this->storage[$key]);\n }", "title": "" }, { "docid": "a2326fc0e03e2510be097b065432098d", "score": "0.5501458", "text": "public abstract function free_resource();", "title": "" }, { "docid": "a35d2caad55cee6101efb997c7c817bd", "score": "0.5496272", "text": "public function delete() {\n // Delete the release file if it has been set and if it hasn't been\n // changed since load/creation or is a temporary file\n if (!empty($this->file_path) && ($this->tmp_file || !$this->file_changed)) {\n unlink($this->file_path);\n }\n\n // Delete the database entry if this release has a id\n if ($this->rid) {\n db_query('DELETE FROM {dproject_release} WHERE rid=%d', array(\n ':rid' => $this->rid,\n ));\n }\n }", "title": "" }, { "docid": "9bb49ddd513401894bcb882f110c7947", "score": "0.5486281", "text": "public static function remove(string $name, ?CursorStorage $strage = null) : void\n {\n $strage = $strage ?? static::configInstantiate('storage') ;\n $strage->remove($name);\n }", "title": "" }, { "docid": "a8eb128bc6a47c4dc6d9d64a20f18e0a", "score": "0.5486188", "text": "public function frontDestroy($id)\n {\n $resource = Resource::findOrFail($id);\n $resource->acquiredFeatures()->delete();\n $resource->address()->delete();\n $resource->prices()->delete();\n foreach ($resource->photos as $key => $photo) {\n $resource->deletePhoto('images/resources', $photo);\n }\n $resource->availabilities()->delete();\n $resource->delete();\n\n return redirect('/resources')->with([\n 'success' => true,\n 'message' => 'Resource deleted successfully'\n ]);\n }", "title": "" }, { "docid": "17a48899f0113743f59ab84e5fdeb73b", "score": "0.5484861", "text": "public function destroy($id);", "title": "" } ]
90e1c977162a0cf631efb6c9659486c8
Return create query for module installation
[ { "docid": "9346aa8ec4b49aa680d16a86523016d2", "score": "0.0", "text": "public static function getTableCreateQuery()\n {\n return \"CREATE TABLE `\".self::$sTableName.\"` (\n `OXID` INT(32) NOT NULL AUTO_INCREMENT COLLATE 'latin1_general_ci',\n `TIMESTAMP` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,\n `ORDERID` VARCHAR(32) NOT NULL,\n `STOREID` VARCHAR(32) NOT NULL,\n `REQUESTTYPE` VARCHAR(32) NOT NULL DEFAULT '',\n `RESPONSESTATUS` VARCHAR(32) NOT NULL DEFAULT '',\n `REQUEST` TEXT NOT NULL,\n `RESPONSE` TEXT NOT NULL,\n PRIMARY KEY (OXID)\n ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT COLLATE='utf8_general_ci';\";\n }", "title": "" } ]
[ { "docid": "d612106c39e4d9003d45772da3c5c336", "score": "0.6829027", "text": "function install() {\n\n $data = array(\n 'module_name' => $this->module_name,\n 'module_version' => $this->version,\n 'has_cp_backend' => 'y',\n 'has_publish_fields' => 'n'\n );\n\n ee()->db->insert('modules', $data);\n\n ee()->load->dbforge();\n\n $reports_module_fields = array(\n 'report_id' => array(\n 'type' => 'INT',\n 'constraint' => '10',\n 'unsigned' => TRUE,\n 'auto_increment' => TRUE,),\n 'site_id' => array(\n 'type' => 'INT',\n 'constraint' => '10',\n 'null' => TRUE,),\n 'title' => array(\n 'type' => 'VARCHAR',\n 'constraint' => '120',\n 'null' => FALSE,),\n 'description' => array(\n 'type' => 'VARCHAR',\n 'constraint' => '255',),\n 'file_name' => array(\n 'type' => 'VARCHAR',\n 'constraint' => '120',),\n 'member_id' => array(\n 'type' => 'INT',\n 'constraint' => '10',),\n 'query' => array(\n 'type' => 'TEXT',),\n 'post_processing' => array(\n 'type' => 'TEXT',),\n 'datetime' => array(\n 'type' => 'TIMESTAMP DEFAULT CURRENT_TIMESTAMP',),\n );\n\n ee()->dbforge->add_field($reports_module_fields);\n ee()->dbforge->add_key('report_id', TRUE);\n ee()->dbforge->create_table('reports');\n\n return TRUE;\n }", "title": "" }, { "docid": "1c35c67c5b478310de522cafb3323fbb", "score": "0.6664786", "text": "private function install()\n {\n $this->ci->dbforge->add_field(array(\n 'id' => array(\n 'type' => 'int',\n 'constraint' => 11,\n 'unsigned' => TRUE,\n 'auto_increment' => TRUE\n ),\n 'module' => array(\n 'type' => 'varchar',\n 'constraint' => 100\n ),\n 'name' => array(\n 'type' => 'varchar',\n 'constraint' => 100\n ),\n 'installed' => array(\n 'type' => 'datetime'\n )\n ));\n \n $this->ci->dbforge->add_key('id');\n $this->ci->dbforge->add_key('installed');\n $this->ci->dbforge->create_table('module_migrator', TRUE);\n }", "title": "" }, { "docid": "0e55f501188e2fc8a8936e201b60c5a5", "score": "0.66095185", "text": "function helpspot_ee_manager_module_install()\n {\n global $DB, $PREFS; \n \n $sql[] = \"INSERT INTO \".$PREFS->ini('db_prefix').\"_modules \n \t\t (module_id, module_name, module_version, has_cp_backend) \n \t\t VALUES \n \t\t ('', 'Helpspot_ee_manager', '$this->version', 'y')\";\n\n \t$sql[] = \"CREATE TABLE IF NOT EXISTS `\".$PREFS->ini('db_prefix').\"_helpspot_ee_manager` (\n \t\t\t `helpspot_url` varchar(255) NOT NULL default '',\n `helpspot_login` varchar(80) NOT NULL default '',\n \t\t\t `helpspot_password` varchar(80) NOT NULL default '',\n `helpspot_use_captcha` char(1) NOT NULL default 'y'\n );\";\n $sql[] = \"INSERT INTO `\".$PREFS->ini('db_prefix').\"_actions` (action_id, class, method) VALUES ('', 'Helpspot_ee_manager', 'private_request_update')\";\n $sql[] = \"INSERT INTO `\".$PREFS->ini('db_prefix').\"_actions` (action_id, class, method) VALUES ('', 'Helpspot_ee_manager', 'public_request_update')\";\n $sql[] = \"INSERT INTO `\".$PREFS->ini('db_prefix').\"_actions` (action_id, class, method) VALUES ('', 'Helpspot_ee_manager', 'public_request_create')\";\n \t\t$sql[] = \"INSERT INTO `\".$PREFS->ini('db_prefix').\"_helpspot_ee_manager` (helpspot_url, helpspot_login, helpspot_password) VALUES ('', '', '')\";\n\n foreach ($sql as $query)\n {\n $DB->query($query);\n }\n \n return true;\n }", "title": "" }, { "docid": "445b9ca19c79f0a442f991c0552456ae", "score": "0.6374946", "text": "function xoops_module_install_cdm(&$module) {\n//The basic SQL install is done via the SQL script\nreturn true;\n}", "title": "" }, { "docid": "a24f41c2666fca5a2cdd26755b861114", "score": "0.62870264", "text": "function admin_modules_addQueries() {\n\treturn array(\n\t\t'getAllModuleIds' => '\n\t\t\tSELECT id FROM !prefix!modules\n\t\t',\n\t\t'getModuleByShortName' => '\n\t\t\tSELECT * FROM !prefix!modules\n\t\t\tWHERE shortName = :shortName\n\t\t',\n\t\t'getModuleById' => '\n\t\t\tSELECT * FROM !prefix!modules\n\t\t\tWHERE id = :id\n\t\t',\n\t\t'getAllModules' => '\n\t\t\tSELECT * FROM !prefix!modules\n\t\t\tORDER BY name ASC\n\t\t',\n\t\t'getEnabledModules' => ' \n\t\t\tSELECT * FROM !prefix!modules\n\t\t\tWHERE enabled = 1\n\t\t\tORDER BY name ASC\n\t\t',\n\t\t'getAllSidebars' => '\n\t\t\tSELECT * FROM !prefix!sidebars!lang!\n\t\t',\n\t\t'getSidebarById' => '\n\t\t\tSELECT * FROM !prefix!sidebars!lang!\n\t\t\tWHERE id = :id\n\t\t',\n\t\t'getSidebarsByModule' => '\n\t\t\tSELECT a.id,a.module,a.sidebar,a.enabled,a.sortOrder,b.name FROM !prefix!module_sidebars a, !prefix!sidebars!lang! b WHERE a.module = :module AND a.sidebar = b.id ORDER BY a.sortOrder ASC\n\t\t',\n\t\t'getEnabledSidebarsByModule' => '\n\t\t\t\tSELECT a.enabled,a.sortOrder,b.* FROM !prefix!module_sidebars a, !prefix!sidebars!lang! b WHERE a.module = :module AND a.sidebar = b.id AND a.enabled = 1 ORDER BY a.sortOrder ASC\n\t\t',\n\t\t'enableSidebar' => '\n\t\t\tUPDATE !prefix!module_sidebars\n\t\t\tSET\n\t\t\t\tenabled = 1\n\t\t\tWHERE id = :id\n\t\t',\n\t\t'disableSidebar' => '\n\t\t\tUPDATE !prefix!module_sidebars\n\t\t\tSET\n\t\t\t\tenabled = 0\n\t\t\tWHERE id = :id\n\t\t',\n\t\t'newModule' => '\n\t\t\tINSERT INTO !prefix!modules\n\t\t\t\t(name, shortName, enabled)\n\t\t\tVALUES\n\t\t\t\t(:name, :shortName, :enabled)\n\t\t',\n\t\t'editModule' => '\n\t\t\tUPDATE !prefix!modules\n\t\t\t\tSET\n\t\t\t\t\tname = :name,\n\t\t\t\t\tshortName = :shortName,\n\t\t\t\t\tenabled = :enabled\n\t\t\t\tWHERE\n\t\t\t\t\tid = :id\n\t\t',\n\t\t'updateModule' => '\n\t\t\tUPDATE !prefix!modules\n\t\t\t\tSET\n\t\t\t\t\tname = :name,\n\t\t\t\t\tenabled = :enabled,\n\t\t\t\t\tversion = :version\n\t\t\t\tWHERE\n\t\t\t\t\tshortName = :shortName\n\t\t',\n\t\t'enableModule' => '\n\t\t\tUPDATE !prefix!modules\n\t\t\t\tSET\n\t\t\t\tenabled = 1\n\t\t\t\tWHERE shortName = :shortName\n\t\t',\n\t\t'disableModule' => '\n\t\t\tUPDATE !prefix!modules\n\t\t\t\tSET enabled = 0\n\t\t\t\tWHERE shortName = :shortName\n\t\t',\n\t\t'deleteModule' => '\n\t\t\tDELETE FROM !prefix!modules WHERE id = :id\n\t\t',\n\t\t'countSidebarsByModule' => '\n\t\t\tSELECT COUNT(*) AS rowCount FROM !prefix!module_sidebars WHERE module = :moduleId\n\t\t',\n\t\t'createSidebarSetting' => '\n\t\t\tREPLACE INTO !prefix!module_sidebars\n\t\t\tSET\n\t\t\t\tmodule = :moduleId,\n\t\t\t\tsidebar = :sidebarId,\n\t\t\t\tenabled = :enabled,\n\t\t\t\tsortOrder = :sortOrder\n\t\t',\n\t\t'getSidebarSetting' => '\n\t\t\tSELECT * FROM !prefix!module_sidebars WHERE id = :id\n\t\t',\n\t\t'shiftSidebarOrderUpByID' => '\n\t\t\tUPDATE !prefix!module_sidebars\n\t\t\tSET sortOrder = sortOrder - 1\n\t\t\tWHERE id = :id\n\t\t',\n\t\t'shiftSidebarOrderUpRelative' => '\n\t\t\tUPDATE !prefix!module_sidebars\n\t\t\tSET sortOrder = sortOrder + 1\n\t\t\tWHERE sortOrder < :sortOrder AND module = :moduleId\n\t\t\tORDER BY sortOrder DESC LIMIT 1\n\t\t',\n\t\t'shiftSidebarOrderDownByID' => '\n\t\t\tUPDATE !prefix!module_sidebars\n\t\t\tSET sortOrder = sortOrder + 1\n\t\t\tWHERE id = :id\n\t\t',\n\t\t'shiftSidebarOrderDownRelative' => '\n\t\t\tUPDATE !prefix!module_sidebars\n\t\t\tSET sortOrder = sortOrder - 1\n\t\t\tWHERE sortOrder > :sortOrder AND module = :moduleId\n\t\t\tORDER BY sortOrder ASC LIMIT 1\n\t\t',\n\t\t'deleteSidebarSettingBySidebar' => '\n\t\t\tDELETE FROM !prefix!module_sidebars WHERE sidebar = :sidebar\n\t\t'\n\t);\n}", "title": "" }, { "docid": "6e065a980b6ec7dc3b8b721aad68f812", "score": "0.6139755", "text": "public function install_module() {\n global $wpdb;\n global $cru_db_version;\n $small_groups_table = $wpdb->prefix . CRU_Utils::_small_groups_table;\n $sql = \"CREATE TABLE $small_groups_table (\n group_id mediumint(9) NOT NULL AUTO_INCREMENT,\n area_id mediumint(9) NOT NULL,\n contact_id bigint(20) unsigned NOT NULL,\n day char(10) NOT NULL,\n time char(10) NOT NULL,\n location varchar(512) NOT NULL,\n PRIMARY KEY (group_id),\" .\n /*FOREIGN KEY (area_id) REFERENCES $target_areas_table(area_id),\n FOREIGN KEY (contact_id) REFERENCES $wpdb->users(ID)*/\n \");\";\n\n dbDelta($sql);\n }", "title": "" }, { "docid": "9d471e3bec6ba370c16a02055d95d6db", "score": "0.6111199", "text": "public function install_module_register()\n {\n $this->_EE->db->insert('modules', array(\n 'module_name' => ucfirst($this->get_package_name()),\n 'module_version' => $this->get_package_version(),\n 'has_cp_backend' => 'y',\n 'has_publish_fields' => 'n',\n \t));\n }", "title": "" }, { "docid": "3a6618acc7ee80e31a9cfc86ad5b8745", "score": "0.6104791", "text": "function install() {\n\n global $db;\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable PayHub Module', 'MODULE_PAYMENT_PAYHUB_STATUS', 'True', 'Do you want to accept Credit Card payments via PayHub?', '6', '0', 'zen_cfg_select_option(array(\\'True\\', \\'False\\'), ', now())\");\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Organization ID', 'MODULE_PAYMENT_PAYHUB_ORGID', '00000', 'This is your Organization ID', '6', '0', now())\");\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('API Username', 'MODULE_PAYMENT_PAYHUB_USERNAME', 'api username', 'This your API Username', '6', '0', now())\");\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('API Password', 'MODULE_PAYMENT_PAYHUB_PASSWORD', 'api password', 'This is your API Password', '6', '0', now())\");\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Request CVV Number', 'MODULE_PAYMENT_PAYHUB_USE_CVV', 'True', 'Do you want to ask the customer for the card\\'s CVV number', '6', '0', 'zen_cfg_select_option(array(\\'True\\', \\'False\\'), ', now())\");\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('PayHub URL', 'MODULE_PAYMENT_PAYHUB_URL', 'https://vtp1.payhub.com/payhubvtws/transaction.json', 'The url to use for processing.', '6', '0', now())\");\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Terminal ID', 'MODULE_PAYMENT_PAYHUB_TERMID', '000', 'This is your terminal ID', '6', '0', now())\");\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_PAYHUB_ORDER_STATUS_ID', '0', 'Set the status of orders made with this payment module to this value', '6', '0', 'zen_cfg_pull_down_order_statuses(', 'zen_get_order_status_name', now())\");\n\n\n }", "title": "" }, { "docid": "782d0ccbe79c2e0070500f7a71a64e3f", "score": "0.6103109", "text": "public function install() \n { \n $site_id = ee()->config->item('site_id');\n if ($site_id == 0) {\n $site_id = 1;\n }\n \n $data = [\n 'module_name' => $this->module_name,\n 'module_version' => $this->version,\n 'has_cp_backend' => 'y',\n 'has_publish_fields' => 'y' \n ];\n\n ee()->db->insert('modules', $data);\n\n ee()->load->dbforge();\n\n $config_fields = [\n 'lastpass_config_id' => [\n 'type' => 'int',\n 'constraint' => '10',\n 'unsigned' => TRUE,\n 'auto_increment' => TRUE\n ],\n 'site_id' => [\n 'type' => 'int',\n 'constraint' => '10',\n 'unsigned' => TRUE,\n ],\n 'login' => [\n 'type' => 'varchar',\n 'constraint' => '250',\n 'null' => FALSE\n ],\n 'logout' => [\n 'type' => 'varchar',\n 'constraint' => '250',\n 'null' => FALSE\n ],\n 'cert' => [\n 'type' => 'varchar',\n 'constraint' => '2048',\n 'null' => FALSE\n ],\n 'url' => [\n 'type' => 'varchar',\n 'constraint' => '250',\n 'null' => FALSE\n ],\n 'redirect' => [\n 'type' => 'varchar',\n 'constraint' => '250',\n 'null' => FALSE\n ]\n ];\n\n ee()->dbforge->add_field($config_fields);\n ee()->dbforge->add_key('lastpass_config_id', TRUE);\n ee()->dbforge->create_table('lastpass_config');\n \n\n return TRUE;\n }", "title": "" }, { "docid": "48715d64b9c7d1330f07fd235dc193cb", "score": "0.6069276", "text": "function buildQueries($modules) {\n $queries = [];\n foreach ($modules as $module) {\n $query = 'INSERT INTO plugin(xml_url, xml_crc, date_added, date_updated, active) VALUES (';\n $query .= \n '\"'.$module['xml_url'].'\",'.\n '\"'.$module['xml_crc'].'\",'.\n '\"'.$module['date_added'].'\",'.\n '\"'.$module['date_updated'].'\",'.\n ($module['active'] ? 1 : 0);\n $query .= ');'.\"\\n\";\n $queries[] = $query;\n }\n return $queries;\n}", "title": "" }, { "docid": "2d33fc430d6f1399d5644150c8c21b0c", "score": "0.605367", "text": "function install() \n\t{\n \txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_STATUS', 'True', '6', '1', 'xtc_cfg_select_option(array(\\'True\\', \\'False\\'), ', now())\");\n \txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_SHOP_TOKEN', '\".EasymarketingHelper::generateShopToken().\"', '6', '1', '', now())\");\n \txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_API_TOKEN', '', '6', '1', '', now())\");\n\t\txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_ACTIVATE_GOOGLE_TRACKING', 'False', '6', '1', 'xtc_cfg_select_option(array(\\'True\\', \\'False\\'), ', now())\");\n\t\txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_ACTIVATE_FACEBOOK_TRACKING', 'False', '6', '1', 'xtc_cfg_select_option(array(\\'True\\', \\'False\\'), ', now())\");\n\t\txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_REMARKETING_STATUS', 'False', '6', '1', 'xtc_cfg_select_option(array(\\'True\\', \\'False\\'), ', now())\");\n\t\txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_ROOT_CATEGORY', '0', '6', '1', 'xtc_cfg_select_root_category(', now())\");\n\t\txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_PRODUCTS_DESCRIPTION_DEFAULT', 'products_description', '6', '1', 'xtc_cfg_select_products_description(', now())\");\n\t\txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_CONDITION_DEFAULT', 'new', '6', '1', 'xtc_cfg_select_condition(', now())\");\n\t\txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_GENDER_DEFAULT', 'unisex', '6', '1', 'xtc_cfg_select_gender(', now())\");\n\t\txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_AGE_GROUP_DEFAULT', 'adult', '6', '1', 'xtc_cfg_select_age_group(', now())\");\n \txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_AVAILABILITY_STOCK_0', 'available for order', '6', '1', 'xtc_cfg_select_availibility(', now())\");\n \txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_AVAILABILITY_STOCK_1', 'in stock', '6', '1', 'xtc_cfg_select_availibility(', now())\");\n\t\txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_SHIPPING_COUNTRIES', 'DE,AT,CH', '6', '1', '', now())\");\n\t\txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_API_STATUS', '0', '6', '1', '', now())\");\n\t \txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_CONFIGURE_ENDPOINTS_STATUS', '0', '6', '1', '', now())\");\n\t\txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_GOOGLE_CONVERSION_TRACKING_CODE', '', '6', '1', '', now())\");\n\t\txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_FACEBOOK_CONVERSION_TRACKING_CODE', '', '6', '1', '', now())\");\n\t\txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_GOOGLE_LEAD_TRACKING_CODE', '', '6', '1', '', now())\");\n\t\txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_FACEBOOK_LEAD_TRACKING_CODE', '', '6', '1', '', now())\");\n\t \txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_GOOGLE_SITE_VERIFICATION_STATUS', '0', '6', '1', '', now())\");\n\t\txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_GOOGLE_SITE_VERIFICATION_META_TAG', '', '6', '1', '', now())\");\n\t\txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_REMARKETING_USER_ID', '', '6', '1', '', now())\");\n\t\txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_REMARKETING_CODE', '', '6', '1', '', now())\");\n\t \txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_LAST_CRAWL_DATE', '0', '6', '1', '', now())\");\n\t \txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_LAST_CRAWL_PRODUCTS_COUNT', '0', '6', '1', '', now())\");\n\t \txtc_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_EM_LAST_CRAWL_CATEGORIES_COUNT', '0', '6', '1', '', now())\");\n\t\t\n\t\t$sql = \"CREATE TABLE IF NOT EXISTS `easymarketing_mappings` (\n\t\t\t\t`id` int(2) NOT NULL,\n\t\t\t\t `mapping_field` varchar(30) NOT NULL,\n\t\t\t\t `mapping_field_values` varchar(255) NOT NULL,\n\t\t\t\t `mapping_field_default_value` varchar(255) NOT NULL,\n\t\t\t\t `disabled_shop_fields` varchar(200) NOT NULL,\n\t\t\t\t `disable_default_value` int(1) NOT NULL DEFAULT '0',\n\t\t\t\t PRIMARY KEY (`id`)\n\t\t\t\t) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=9\";\n\t\txtc_db_query($sql);\n\t\t\n\t\t$sql = \"INSERT INTO `easymarketing_mappings` (`id`, `mapping_field`, `disabled_shop_fields`, `disable_default_value`) VALUES\n\t\t\t\t(1, 'name', 'p,o', 1),\n\t\t\t\t(2, 'description', 'p,o', 1),\n\t\t\t\t(3, 'color', '', 0),\n\t\t\t\t(4, 'size', '', 0),\n\t\t\t\t(5, 'size_type', '', 0),\n\t\t\t\t(6, 'size_system', '', 0),\n\t\t\t\t(7, 'material', '', 0),\n\t\t\t\t(8, 'pattern', '', 0)\";\n\t\txtc_db_query($sql);\n \t}", "title": "" }, { "docid": "ff4fddcb96afbe1e5e93ab6b1c6574f4", "score": "0.60181403", "text": "public function install() {\n\t\t$EE =& get_instance();\n\t\t$data = array(\n\t\t\t'module_name' => substr(__CLASS__, 0, -4),\n\t\t\t'module_version' => $this->version,\n\t\t\t'has_cp_backend' => ($this->has_cp_backend) ? \"y\" : \"n\",\n\t\t\t'has_publish_fields' => ($this->has_publish_fields) ? \"y\" : \"n\"\n\t\t);\n\n\t\t$EE->db->insert('modules', $data);\n\n\t\t// Add the actions\n\t\tif($this->actions) {\n\t\t\tforeach ($this->actions as $action) {\n\t\t\t\t$parts = explode(\"::\", $action);\n\t\t\t\t$EE->db->insert('actions', array(\n\t\t\t\t\t\"class\" => $parts[0],\n\t\t\t\t\t\"method\" => $parts[1]\n\t\t\t\t));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Install the model tables\n\t\tif($this->models) {\n\t\t\tforeach($this->models as $model) {\n//\t\t\t\techo $model;\n\t\t\t\trequire(dirname(__FILE__).'/models/'.strtolower($model).'.php');\n\t\t\t\tif(method_exists(\"{$model}\", \"createTable\")) {\n\t\t\t\t\tcall_user_func(array(\"{$model}\", \"createTable\"));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif($this->has_publish_fields) {\n\t\t\t$EE->load->library('layout');\n\t\t\t$EE->layout->add_layout_tabs($this->tabs(), strtolower($data['module_name']));\n\t\t}\n\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "0c268980a258faac0996634b8a749768", "score": "0.6011348", "text": "function create_import_query($module) {\r\n\t\tglobal $current_user;\r\n\t\t$query = \"SELECT vtiger_crmentity.crmid, case when (vtiger_users.user_name not like '') then vtiger_users.user_name else vtiger_groups.groupname end as user_name, $this->table_name.* FROM $this->table_name\r\n\t\t\tINNER JOIN vtiger_crmentity ON vtiger_crmentity.crmid = $this->table_name.$this->table_index\r\n\t\t\tLEFT JOIN vtiger_users_last_import ON vtiger_users_last_import.bean_id=vtiger_crmentity.crmid\r\n\t\t\tLEFT JOIN vtiger_users ON vtiger_users.id = vtiger_crmentity.smownerid\r\n\t\t\tLEFT JOIN vtiger_groups ON vtiger_groups.groupid = vtiger_crmentity.smownerid\r\n\t\t\tWHERE vtiger_users_last_import.assigned_user_id='$current_user->id'\r\n\t\t\tAND vtiger_users_last_import.bean_type='$module'\r\n\t\t\tAND vtiger_users_last_import.deleted=0\";\r\n\t\treturn $query;\r\n\t}", "title": "" }, { "docid": "c8b786545a8d372325efc92cb6db3133", "score": "0.6005437", "text": "public function install()\n\t\t{\n\t\t\treturn static::createTable() && FieldRestricted_Entries::createFieldTable();\n\t\t}", "title": "" }, { "docid": "9705ed90976a931a511295a192175733", "score": "0.6002635", "text": "public function installDb()\n {\n return Db::getInstance()->Execute('CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ .\n 'conekta_transaction` (\n `id_conekta_transaction` int(11) NOT NULL AUTO_INCREMENT,\n `type` enum(\\'payment\\',\\'refund\\') NOT NULL,\n `id_cart` int(10) unsigned NOT NULL,\n `id_order` int(10) unsigned NOT NULL,\n `id_conekta_order` varchar(32) NOT NULL,\n `id_transaction` varchar(32) NOT NULL,\n `amount` decimal(10,2) NOT NULL,\n `status` enum(\\'paid\\',\\'unpaid\\') NOT NULL,\n `currency` varchar(3) NOT NULL,\n `mode` enum(\\'live\\',\\'test\\') NOT NULL,\n `date_add` datetime NOT NULL,\n `reference` varchar(30) NOT NULL,\n `barcode` varchar(230) NOT NULL,\n `captured` tinyint(1) NOT NULL DEFAULT \\'1\\',\n PRIMARY KEY (`id_conekta_transaction`),\n KEY `idx_transaction` (`type`,`id_order`,`status`))\n ENGINE=' . _MYSQL_ENGINE_ . ' DEFAULT CHARSET=utf8 AUTO_INCREMENT=1');\n }", "title": "" }, { "docid": "eb05020c50954e81cc4cfa1525680882", "score": "0.5982568", "text": "public function install() {\n \t$query = \"CREATE TABLE IF NOT EXISTS `doc_container` (\" .\n \t\t\t\" `id` int(11) NOT NULL AUTO_INCREMENT,\" .\n\t\t \t\t\" `name` varchar(120) NOT NULL,\" .\n\t\t \t\t\" `description` varchar(120) DEFAULT NULL,\" .\n\t\t \t\t\" `type` varchar(10) NOT NULL DEFAULT 'file',\" .\n\t\t \t\t\" `link` varchar(360) DEFAULT NULL,\" .\n\t\t \t\t\" `parent_id` int(11) NOT NULL,\" .\n\t\t \t\t\" `parent_category` varchar(11) NOT NULL DEFAULT 'folder',\" .\n\t\t \t\t\" PRIMARY KEY (`id`)\" .\n\t\t \t\t\") ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;\";\n\t\t$this->db->query($query);\n\t\t//check if documents exists in table module\n\t\t$query = \"SELECT * FROM \".TB_MODULE.\" WHERE name = 'docs' LIMIT 1\";\n\t\t$this->db->query($query);\n\t\tif($this->db->num_rows() == 0) {\n\t\t\t//if its not insert it \n\t\t\t$query = \"INSERT INTO `\".TB_MODULE.\"` (name) VALUES ('docs')\";\n\t\t\t$this->db->query($query);\n\t\t}\n }", "title": "" }, { "docid": "7957ff93248debd2c3b9e920b20c0f6a", "score": "0.5953439", "text": "public function install() {\n\t\t// Tells EE about the module\n\t\t$eeless_module_data = array(\n\t\t\t'module_name' => 'Eeless',\n\t\t\t'module_version' => $this->version,\n\t\t\t'has_cp_backend' => 'y',\n\t\t\t'has_publish_fields' => 'n'\n\t\t);\n\n\t\t// Add the module to the Modules table\n $this->EE->db->insert('modules',$eeless_module_data);\n\n\t\t// Clean up\n\t\tunset($eeless_module_data);\n \n $this->EE->load->dbforge();\n \n \t// Sets up the table fields structure\n \t// using varchar for cache and showerrors in case we need multiple states later\n\t\t$eeless_table_fields = array(\n\t\t\t'eeless_id' => array(\n\t\t\t\t'type' => 'bigint',\n\t\t\t\t'constraint' => 10,\n\t\t\t\t'unsigned' => true,\n\t\t\t\t'auto_increment' => true\n\t\t\t),\n\t\t\t'less_serverpath' => array(\n\t\t\t\t'type' => 'varchar',\n\t\t\t\t'constraint' => 255,\n\t\t\t\t'null' => false\n\t\t\t),\n\t\t\t'less_browserpath' => array(\n\t\t\t\t'type' => 'varchar',\n\t\t\t\t'constraint' => 255,\n\t\t\t\t'null' => false\n\t\t\t),\n\t\t\t'css_serverpath' => array(\n\t\t\t\t'type' => 'varchar',\n\t\t\t\t'constraint' => 255,\n\t\t\t\t'null' => false\n\t\t\t),\n\t\t\t'css_browserpath' => array(\n\t\t\t\t'type' => 'varchar',\n\t\t\t\t'constraint' => 255,\n\t\t\t\t'null' => false\n\t\t\t),\n\t\t\t'cache' => array(\n\t\t\t\t'type' => 'varchar',\n\t\t\t\t'constraint' => 16,\n\t\t\t\t'null' => false\n\t\t\t),\n\t\t\t'showerrors' => array(\n\t\t\t\t'type' => 'varchar',\n\t\t\t\t'constraint' => 16,\n\t\t\t\t'null' => false\n\t\t\t),\n\t\t\t'comments' => array(\n\t\t\t\t'type' => 'text',\n\t\t\t\t'null' => false\n\t\t\t)\n\t\t);\n\t\t\n\t\t// Sets primary key and creates the table\n\t\t$this->EE->dbforge->add_field($eeless_table_fields);\n\t\t\n\t\t$this->EE->dbforge->add_key('eeless_id',true);\n\t\t\n\t\t$this->EE->dbforge->create_table('eeless');\n\t\t\n\t\t// Set default values where we can\n\t\t$eeless_data = array(\n\t\t\t'cache' => 'off',\n\t\t\t'showerrors' => 'off',\n\t\t\t'comments' => $this->EE->security->xss_clean('Only one root currently, tags allow subfolders within.'),\n\t\t);\n\t\t\n\t\t// Perform the insert\n\t\t$this->EE->db->query($this->EE->db->insert_string('eeless',$eeless_data));\n\t\t\n\t\t// Update the .htaccess file with new IP address\n\t\t//$this->eeless_functions->write_to_htaccess();\n\t\t\n\t\t// Clean up\n\t\tunset($eeless_table_fields,$eeless_data,$eeless_functions);\n\t\t \n\t\t\n\t\t\n\t\t// Return true as required\n\t\treturn $this->eeless_return_data = true;\n\t}", "title": "" }, { "docid": "0ddf15dd16d51aa9717cfb3cd0f6f26a", "score": "0.59247226", "text": "function install()\n\t{\n\t\t$sql[] = 'CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.self::$definition['table'].'` (\n\t\t\t\t \t`'.self::$definition['primary'].'` int(16) NOT NULL AUTO_INCREMENT,\n\t\t\t\t \t<% _.each(attributes, function(attribute){ if(!attribute.isLang) { %>`<%= attribute.name %>` <%= attribute.sqltype %>,\n\t\t\t\t \t<% } }); %>date_add datetime NOT NULL,\n\t\t\t\t\tdate_upd datetime NOT NULL,\n\t\t\t\t\tUNIQUE(`'.self::$definition['primary'].'`),\n\t\t\t\t \tPRIMARY KEY ('.self::$definition['primary'].')\n\t\t\t) ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=utf8;';\n\t\t<% if (isMultiLang){ %>\n\t\t$sql[] = 'CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.self::$definition['table'].'_lang` (\n\t\t\t \t`'.self::$definition['primary'].'` int(16) NOT NULL,\n\t\t\t \t`id_lang` int(16) NOT NULL,\n\t\t\t \t<% _.each(attributes, function(attribute){ %> <% if(attribute.isLang) { %> `<%= attribute.name %>` <%= attribute.sqltype %>,\n\t <% } %><% }); %>PRIMARY KEY ('.self::$definition['primary'].', id_lang)\n\t\t) ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=utf8;';\n\t\t<% } %>\n\n\t\tforeach ($sql as $q) \n\t\t\tDb::getInstance()->Execute($q);\t\n\t}", "title": "" }, { "docid": "4c9bacecf77da3fbc3200f489c8b5cf8", "score": "0.592025", "text": "function install()\n {\n $db = mm_getDatabase();\n $db->execute(\"DROP TABLE IF EXISTS mm_sample\");\n $db->execute(\"\n CREATE TABLE mm_sample (\n id int not null auto_increment,\n name varchar(255) not null,\n comment text,\n PRIMARY KEY (id),\n UNIQUE KEY (name)\n ) ENGINE=MyISAM DEFAULT CHARSET=utf8\n \");\n $db->execute(\"INSERT INTO mm_sample (name, comment) VALUES (?,?)\", array(\"morning\", \"It's too early\"));\n $db->execute(\"INSERT INTO mm_sample (name, comment) VALUES (?,?)\", array(\"coffee\", \"Double Soy Latte\"));\n $db->execute(\"INSERT INTO mm_sample (name, comment) VALUES (?,?)\", array(\"wifi\", \"WiFi Required\"));\n return true;\n }", "title": "" }, { "docid": "a51b6bdf7d32023a931ee4be22082541", "score": "0.5913248", "text": "function geninvoices_activate() {\n #$query = \"CREATE TABLE `mod_addonexample` (`id` INT( 1 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,`demo` TEXT NOT NULL )\";\n #$result = full_query($query);\n\n # Return Result\n return array('status'=>'success','description'=>'插件激活成功。');\n #return array('status'=>'error','description'=>'You can use the error status return to indicate there was a problem activating the module');\n #return array('status'=>'info','description'=>'You can use the info status return to display a message to the user');\n\n}", "title": "" }, { "docid": "0be03678f32ede34896d950ba96c043c", "score": "0.5903401", "text": "function install(){\n //Bromine will create the relevant ACL entries for the plugin\n $sql1 = \"\n CREATE TABLE 'table_name'\n ('column 1' 'data_type_for_column_1',\n 'column 2' 'data_type_for_column_2')\n \";\n $sql2 = \"\n INSERT INTO table_name (column1, column2, column3,...)\n VALUES ('value1', 'value2', 'value3')\n \";\n /*\n $this->Install->query($sql1);\n $this->Install->query($sql2);\n if(allwentwell){\n return true;\n }else{\n return error;\n }\n */\n return true; \n }", "title": "" }, { "docid": "a8e83085b56b77589abe2355e3815e17", "score": "0.5898507", "text": "public function install() {\n\t\t\treturn FieldSlug_Field::createFieldTable();\n\t\t}", "title": "" }, { "docid": "83f623064c9d0aad127a29f5981ad07b", "score": "0.58667004", "text": "public function install()\n\t{\n\t\t// Load dbforge\n\t\t$this->EE->load->dbforge();\n\n\t\t//----------------------------------------\n\t\t// EXP_MODULES\n\t\t//----------------------------------------\n\t\t$module = array(\t'module_name' => ucfirst($this->module_name),\n\t\t\t\t\t\t\t'module_version' => $this->version,\n\t\t\t\t\t\t\t'has_cp_backend' => 'y',\n\t\t\t\t\t\t\t'has_publish_fields' => 'n' );\n\n\t\t$this->EE->db->insert('modules', $module);\n\n\t\t//----------------------------------------\n\t\t// EXP_FORMS\n\t\t//----------------------------------------\n\t\t$ci = array(\n\t\t\t'form_id'\t\t=> array('type' => 'INT',\t\t'unsigned' => TRUE,\t'auto_increment' => TRUE),\n\t\t\t'site_id'\t\t=> array('type' => 'TINYINT',\t'unsigned' => TRUE,\t'default' => 1),\n\t\t\t'entry_id'\t\t=> array('type' => 'INT',\t\t'unsigned' => TRUE, 'default' => 0),\n\t\t\t'channel_id'\t=> array('type' => 'TINYINT',\t'unsigned' => TRUE, 'default' => 0),\n\t\t\t'ee_field_id'\t=> array('type' => 'MEDIUMINT',\t'unsigned' => TRUE, 'default' => 0),\n\t\t\t'member_id'\t\t=> array('type' => 'INT',\t\t'unsigned' => TRUE, 'default' => 0),\n\t\t\t'form_type'\t\t=> array('type' => 'VARCHAR',\t'constraint' => 250, 'default' => ''),\n\t\t\t'form_title'\t=> array('type' => 'VARCHAR',\t'constraint' => 250, 'default' => ''),\n\t\t\t'form_url_title'\t=> array('type' => 'VARCHAR',\t'constraint' => 250, 'default' => ''),\n\t\t\t'custom_title'\t\t=> array('type' => 'TINYINT',\t'unsigned' => TRUE, 'default' => 0),\n\t\t\t'date_created'\t\t=> array('type' => 'INT',\t\t'unsigned' => TRUE, 'default' => 0),\n\t\t\t'date_last_entry'\t=> array('type' => 'INT',\t\t'unsigned' => TRUE, 'default' => 0),\n\t\t\t'total_submissions'\t=> array('type' => 'INT',\t\t'unsigned' => TRUE, 'default' => 0),\n\t\t\t'admin_template'\t=> array('type' => 'MEDIUMINT',\t'default' => 0), // -1= Custom, 0=None, +1=TemplateID\n\t\t\t'user_template'\t\t=> array('type' => 'MEDIUMINT',\t'default' => 0), // -1= Custom, 0=None, +1=TemplateID\n\t\t\t'form_settings'\t\t=> array('type' => 'TEXT'),\n\t\t);\n\n\t\t$this->EE->dbforge->add_field($ci);\n\t\t$this->EE->dbforge->add_key('form_id', TRUE);\n\t\t$this->EE->dbforge->add_key('entry_id');\n\t\t$this->EE->dbforge->create_table('forms', TRUE);\n\n\t\t//----------------------------------------\n\t\t// EXP_FORMS_FIELDS\n\t\t//----------------------------------------\n\t\t$ci = array(\n\t\t\t'field_id'\t=> array('type' => 'INT',\t\t'unsigned' => TRUE,\t'auto_increment' => TRUE),\n\t\t\t'form_id'\t=> array('type' => 'INT',\t\t'unsigned' => TRUE, 'default' => 0),\n\t\t\t'entry_id'\t=> array('type' => 'INT',\t\t'unsigned' => TRUE, 'default' => 0),\n\t\t\t'ee_field_id'\t=> array('type' => 'INT',\t\t'unsigned' => TRUE, 'default' => 0),\n\t\t\t'parent_id'\t\t=> array('type' => 'INT',\t\t'unsigned' => TRUE, 'default' => 0),\n\t\t\t'column_number'\t=> array('type' => 'SMALLINT',\t'unsigned' => TRUE, 'default' => 0),\n\t\t\t'title'\t\t=> array('type' => 'VARCHAR',\t'constraint' => 255, 'default' => ''),\n\t\t\t'url_title'\t=> array('type' => 'VARCHAR',\t'constraint' => 255, 'default' => ''),\n\t\t\t'description'\t=> array('type' => 'TEXT'),\n\t\t\t'field_type'\t=> array('type' => 'VARCHAR',\t'constraint' => 255, 'default' => 'text'),\n\t\t\t'field_order'\t=> array('type' => 'MEDIUMINT',\t'unsigned' => TRUE,\t'default' => 0),\n\t\t\t'required'\t\t=> array('type' => 'TINYINT',\t'unsigned' => TRUE, 'default' => 0),\n\t\t\t'show_label'\t=> array('type' => 'TINYINT',\t'unsigned' => TRUE, 'default' => 1), // 1=Auto, 0=Never, 2=Always\n\t\t\t'label_position'=> array('type' => 'VARCHAR',\t'constraint' => 100, 'default' => 'auto'),\n\t\t\t'no_dupes'\t\t=> array('type' => 'TINYINT',\t'unsigned' => TRUE, 'default' => 0),\n\t\t\t'conditionals'\t=> array('type' => 'TEXT'),\n\t\t\t'field_settings'\t=> array('type' => 'TEXT'),\n\t\t);\n\n\t\t$this->EE->dbforge->add_field($ci);\n\t\t$this->EE->dbforge->add_key('field_id', TRUE);\n\t\t$this->EE->dbforge->add_key('form_id');\n\t\t$this->EE->dbforge->create_table('forms_fields', TRUE);\n\n\t\t//----------------------------------------\n\t\t// EXP_FORMS_ENTRIES\n\t\t//----------------------------------------\n\t\t$ci = array(\n\t\t\t'fentry_id'\t=> array('type' => 'INT',\t\t'unsigned' => TRUE,\t'auto_increment' => TRUE),\n\t\t\t'fentry_hash'=> array('type' => 'VARCHAR',\t'constraint' => 35, 'default' => ''),\n\t\t\t'site_id'\t=> array('type' => 'SMALLINT',\t'unsigned' => TRUE, 'default' => 1),\n\t\t\t'form_id'\t=> array('type' => 'INT',\t\t'unsigned' => TRUE, 'default' => 0),\n\t\t\t'member_id'\t=> array('type' => 'INT',\t\t'unsigned' => TRUE, 'default' => 0),\n\t\t\t'ip_address'\t=> array('type' => 'INT',\t\t'unsigned' => TRUE, 'default' => 0),\n\t\t\t'date'\t\t=> array('type' => 'INT',\t\t'unsigned' => TRUE, 'default' => 0),\n\t\t\t'country'\t=> array('type' => 'VARCHAR',\t'constraint' => 20, 'default' => ''),\n\t\t\t'email'\t\t=> array('type' => 'VARCHAR',\t'constraint' => 250, 'default' => ''),\n\t\t\t'debug_info'=> array('type' => 'TEXT'),\n\t\t);\n\n\t\t$this->EE->dbforge->add_field($ci);\n\t\t$this->EE->dbforge->add_key('fentry_id', TRUE);\n\t\t$this->EE->dbforge->add_key('form_id');\n\t\t$this->EE->dbforge->add_key('member_id');\n\t\t$this->EE->dbforge->create_table('forms_entries', TRUE);\n\n\t\t//----------------------------------------\n\t\t// EXP_FORMS_EMAIL_TEMPLATES\n\t\t//----------------------------------------\n\t\t$ci = array(\n\t\t\t'template_id'\t=> array('type' => 'INT',\t\t'unsigned' => TRUE,\t'auto_increment' => TRUE),\n\t\t\t'form_id'\t\t=> array('type' => 'INT',\t\t'unsigned' => TRUE, 'default' => 0),\n\t\t\t'site_id'\t\t=> array('type' => 'SMALLINT',\t'unsigned' => TRUE, 'default' => 1),\n\t\t\t'template_label'=> array('type' => 'VARCHAR',\t'constraint' => 250, 'default' => ''),\n\t\t\t'template_name'\t=> array('type' => 'VARCHAR',\t'constraint' => 250, 'default' => ''),\n\t\t\t'template_type'\t=> array('type' => 'VARCHAR',\t'constraint' => 10, 'default' => 'user'),\n\t\t\t'template_desc'\t=> array('type' => 'VARCHAR',\t'constraint' => 250, 'default' => ''),\n\t\t\t'ee_template_id'=> array('type' => 'INT',\t\t'unsigned' => TRUE, 'default' => 0),\n\t\t\t'email_type'\t=> array('type' => 'VARCHAR',\t'constraint' => 50, 'default' => 'text'),\n\t\t\t'email_wordwrap'=> array('type' => 'VARCHAR',\t'constraint' => 10, 'default' => 'no'),\n\t\t\t'email_to'\t\t=> array('type' => 'VARCHAR',\t'constraint' => 250, 'default' => ''),\n\t\t\t'email_from'\t=> array('type' => 'VARCHAR',\t'constraint' => 250, 'default' => ''),\n\t\t\t'email_from_email'=> array('type' => 'VARCHAR',\t'constraint' => 250, 'default' => ''),\n\t\t\t'email_reply_to'=> array('type' => 'VARCHAR',\t'constraint' => 250, 'default' => ''),\n\t\t\t'email_reply_to_email'=> array('type' => 'VARCHAR',\t'constraint' => 250, 'default' => ''),\n\t\t\t'email_subject'\t=> array('type' => 'VARCHAR',\t'constraint' => 250, 'default' => ''),\n\t\t\t'email_cc'\t\t=> array('type' => 'VARCHAR',\t'constraint' => 250, 'default' => ''),\n\t\t\t'email_bcc'\t\t=> array('type' => 'VARCHAR',\t'constraint' => 250, 'default' => ''),\n\t\t\t'email_attachments'=> array('type' => 'VARCHAR',\t'constraint' => 10, 'default' => 'no'),\n\t\t\t'reply_to_author'=> array('type' => 'VARCHAR',\t'constraint' => 10, 'default' => 'yes'),\n\t\t\t'template'\t\t=> array('type' => 'TEXT'),\n\t\t\t'alt_template'\t=> array('type' => 'TEXT'),\n\t\t);\n\n\t\t$this->EE->dbforge->add_field($ci);\n\t\t$this->EE->dbforge->add_key('template_id', TRUE);\n\t\t$this->EE->dbforge->add_key('form_id');\n\t\t$this->EE->dbforge->create_table('forms_email_templates', TRUE);\n\n\t\t//----------------------------------------\n\t\t// EXP_FORMS_LISTS\n\t\t//----------------------------------------\n\t\t$ci = array(\n\t\t\t'list_id'\t=> array('type' => 'INT',\t\t'unsigned' => TRUE,\t'auto_increment' => TRUE),\n\t\t\t'list_label'=> array('type' => 'VARCHAR',\t'constraint' => 250, 'default' => ''),\n\t\t\t'list_data'\t=> array('type' => 'TEXT'),\n\t\t);\n\n\t\t$this->EE->dbforge->add_field($ci);\n\t\t$this->EE->dbforge->add_key('list_id', TRUE);\n\t\t$this->EE->dbforge->create_table('forms_lists', TRUE);\n\n\t\t//----------------------------------------\n\t\t// EXP_ACTIONS\n\t\t//----------------------------------------\n\t\t$module = array( 'class' => ucfirst($this->module_name), 'method' => 'ACT_general_router');\n\t\t$this->EE->db->insert('actions', $module);\n\t\t$module = array( 'class' => ucfirst($this->module_name), 'method' => 'ACT_form_submission');\n\t\t$this->EE->db->insert('actions', $module);\n\n\t\t//----------------------------------------\n\t\t// EXP_MODULES\n\t\t// The settings column, Ellislab should have put this one in long ago.\n\t\t// No need for a seperate preferences table for each module.\n\t\t//----------------------------------------\n\t\tif ($this->EE->db->field_exists('settings', 'modules') == FALSE)\n\t\t{\n\t\t\t$this->EE->dbforge->add_column('modules', array('settings' => array('type' => 'TEXT') ) );\n\t\t}\n\n\t\t//----------------------------------------\n\t\t// Insert Standard Data\n\t\t//----------------------------------------\n\t\t$this->EE->db->set('form_id', 0);\n\t\t$this->EE->db->set('template_label', 'Default Admin Email Notification Template');\n\t\t$this->EE->db->set('template_name', 'default_admin');\n\t\t$this->EE->db->set('template_type', 'admin');\n\t\t$this->EE->db->set('template_desc', '');\n\t\t$this->EE->db->set('email_type', 'text');\n\t\t$this->EE->db->set('email_wordwrap', 0);\n\t\t$this->EE->db->set('email_to', $this->EE->config->item('webmaster_email'));\n\t\t$this->EE->db->set('email_from', $this->EE->config->item('site_label'));\n\t\t$this->EE->db->set('email_from_email', $this->EE->config->item('webmaster_email'));\n\t\t$this->EE->db->set('email_reply_to', $this->EE->config->item('site_label'));\n\t\t$this->EE->db->set('email_reply_to_email', $this->EE->config->item('webmaster_email'));\n\t\t$this->EE->db->set('reply_to_author', 'yes');\n\t\t$this->EE->db->set('email_subject', 'New Form Submission: {form:label}');\n\t\t$this->EE->db->set('template', \"\nSomeone submitted the {form:form_title} form:\n\nDate: {datetime:usa}\n\n{form:fields}\n{field:count}. {field:label} : {field:value}\n{/form:fields}\n\t\t\");\n\t\t$this->EE->db->insert('exp_forms_email_templates');\n\n\t\t$this->EE->db->set('form_id', 0);\n\t\t$this->EE->db->set('template_label', 'Default User Email Notification Template');\n\t\t$this->EE->db->set('template_name', 'default_user');\n\t\t$this->EE->db->set('template_type', 'user');\n\t\t$this->EE->db->set('template_desc', '');\n\t\t$this->EE->db->set('email_type', 'text');\n\t\t$this->EE->db->set('email_wordwrap', 0);\n\t\t$this->EE->db->set('email_from', $this->EE->config->item('site_label'));\n\t\t$this->EE->db->set('email_from_email', $this->EE->config->item('webmaster_email'));\n\t\t$this->EE->db->set('email_reply_to', $this->EE->config->item('site_label'));\n\t\t$this->EE->db->set('email_reply_to_email', $this->EE->config->item('webmaster_email'));\n\t\t$this->EE->db->set('email_subject', 'Thank you for your submission!');\n\t\t$this->EE->db->set('template', \"\nThank you for filling out the {form:form_title} form:\n\nDate: {datetime:usa}\n\n{form:fields}\n{field:count}. {field:label} : {field:value}\n{/form:fields}\n\t\t\");\n\t\t$this->EE->db->insert('exp_forms_email_templates');\n\n\t\t// Form Lists\n\t\tinclude(PATH_THIRD . 'forms/config/forms_list_data.php');\n\n\t\tif (isset($cf_lists) == TRUE && empty($cf_lists) == FALSE)\n\t\t{\n\t\t\tforeach ($cf_lists as $list)\n\t\t\t{\n\t\t\t\t$this->EE->db->set('list_label', $list['name']);\n\t\t\t\t$this->EE->db->set('list_data', serialize($list['list']));\n\t\t\t\t$this->EE->db->insert('exp_forms_lists');\n\t\t\t}\n\t\t}\n\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "30e81451f11dc118149210cc8e170b4f", "score": "0.57916033", "text": "function super_search_module_install()\n {\n require_once PATH_MOD.'super_search/upd.super_search.php';\n \t\n \t$U = new Super_search_updater();\n \treturn $U->install();\n }", "title": "" }, { "docid": "24093c62502f65a924a7df4270282386", "score": "0.57556444", "text": "public function install(){\n\t\n\t\t\t\n\t\tis_logged_in();\n\t\t\n\t\t$this->load->library('module_installer');\n\t\t$this->load->library('widget_utils');\n\t\n\t\t$data['dbprefix'] = $this->db->dbprefix;\n\t\t\n\t\t$this->module_installer->process_file(dirname(dirname(__FILE__)) . \"/install/mydata.sql\",$data);\n\t\t\n\t\tinclude(dirname(dirname(__FILE__)) . \"/install/install.php\");\n\n\t\t$this->module_installer->set_searchable('admin_blog');\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "9df311b30d555dceff63af81ea6f92e0", "score": "0.57284737", "text": "function install()\n\t{\n\t\ttep_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added)\" .\n\t\t\t\t\t\t\" values ('Enable Exalt Payment Module', 'MODULE_PAYMENT_EXALT_STATUS', 'False', 'Do you want to accept payments through Exalt?', '6', '0', 'tep_cfg_select_option(array(\\'True\\', \\'False\\'), ', now())\");\n\t\ttep_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added)\" .\n\t\t\t\t\t\t\" values ('Transaction Mode', 'MODULE_PAYMENT_EXALT_MODE', 'Test', 'Transaction Mode.', '6', '0', 'tep_cfg_select_option(array(\\'Test\\', \\'Live\\'), ', now())\");\n\t\ttep_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added)\" .\n\t\t\t\t\t\t\" values ('Merchant ID', 'MODULE_PAYMENT_EXALT_MERCHANT', '', 'The unique merchant assigned to you by Exalt.', '6', '0', now())\");\n\t\ttep_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added)\" .\n\t\t\t\t\t\t\" values ('Merchant Password', 'MODULE_PAYMENT_EXALT_KEY', '', 'The key provided to you by Exalt.', '6', '0', now())\");\n\t\ttep_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added)\" .\n\t\t\t\t\t\t\" values ('Payment Zone', 'MODULE_PAYMENT_EXALT_VALID_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '0', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())\");\n\t\ttep_db_query(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added)\" .\n\t\t\t\t\t\t\" values ('Sort order of display', 'MODULE_PAYMENT_EXALT_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())\");\n\t}", "title": "" }, { "docid": "5a85123f207126e713b4d85c1daa64e1", "score": "0.5717758", "text": "public function create_addon_query() {\n\t\t$addon_slugs = array_keys( $this->slplus->AddOns->instances );\n\t\t$addon_versions = array();\n\t\tforeach ( $addon_slugs as $addon_slug ) {\n\t\t\tif ( is_object( $this->slplus->AddOns->instances[ $addon_slug ] ) ) {\n\t\t\t\t$addon_versions[ $addon_slug . '_version' ] = $this->slplus->AddOns->instances[ $addon_slug ]->options['installed_version'];\n\t\t\t}\n\t\t}\n\n\t\treturn\n\t\t\thttp_build_query( $addon_slugs, 'addon_' ) . '&' .\n\t\t\thttp_build_query( $addon_versions );\n\t}", "title": "" }, { "docid": "621c3a7a1070e247b9e98e239c04ee2f", "score": "0.5694099", "text": "public function needInstall()\n\t{\n\t\t$query = array();\n\t\t// Checks if table `menu` exists\n\t\t$query['check'] = \"SELECT `TABLE_NAME` \n\t\t\t\t\t\t\tFROM `information_schema`.`TABLES` \n\t\t\t\t\t\t\tWHERE `information_schema`.`TABLES`.`TABLE_SCHEMA` = '\" . DB_DATABASE . \"' \n\t\t\t\t\t\t\tAND `information_schema`.`TABLES`.`TABLE_NAME` = 'menu'\";\n\t\t\n\t\t// Create table `menu`\n\t\t$query['create'] = \"CREATE TABLE `menu` (\n\t\t\t`id` INT(10) NOT NULL AUTO_INCREMENT,\n\t\t\t`code` VARCHAR(20) NOT NULL,\n\t\t\t`name` VARCHAR(50) NOT NULL,\n\t\t\t`template_wrapper` TEXT NOT NULL,\n\t\t\t`template_wrapper_responsive` TEXT NOT NULL,\n\t\t\t`heading_template` TEXT NOT NULL,\n\t\t\t`link_template` TEXT NOT NULL,\n\t\t\t`banner_template` TEXT NOT NULL,\n\t\t\t`heading_template_responsive` TEXT NOT NULL,\n\t\t\t`link_template_responsive` TEXT NOT NULL,\n\t\t\t`banner_template_responsive` TEXT NOT NULL,\n\t\t\tPRIMARY KEY (`id`),\n\t\t\tUNIQUE INDEX `code` (`code`)\n\t\t)\n\t\tCOMMENT='Opencart menu manager by Teil(Yurii Krevnyi)'\n\t\tCOLLATE='utf8_general_ci'\n\t\tENGINE=InnoDB\n\t\tAUTO_INCREMENT=10;\";\n\n\t\t// Create table `menu_items`\n\t\t$query['create_child'] = \"CREATE TABLE `menu_items` ( \n\t\t\t`id` INT(10) NOT NULL AUTO_INCREMENT,\n\t\t\t`code` VARCHAR(20) NOT NULL,\n\t\t\t`href` TEXT NOT NULL,\n\t\t\t`image` TEXT NOT NULL,\n\t\t\t`params` TEXT NOT NULL,\n\t\t\t`view_type` VARCHAR(100) NOT NULL DEFAULT 'heading',\n\t\t\t`self_class` TEXT NOT NULL,\n\t\t\t`parent` INT(11) NOT NULL,\n\t\t\t`target` TINYINT(1) NOT NULL,\n\t\t\t`sort_order` INT(10) NOT NULL,\n\t\t\t`type` TINYINT(1) NOT NULL,\n\t\t\t`created` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n\t\t\tPRIMARY KEY (`id`),\n\t\t\tINDEX `code` (`code`),\n\t\t\tCONSTRAINT `FK__menu` FOREIGN KEY (`code`) REFERENCES `menu` (`code`) ON DELETE CASCADE\n\t\t)\n\t\tCOMMENT='Menu manager by Teil(Yurii Krevnyi)\\r\\nChildren of menu table'\n\t\tCOLLATE='utf8_general_ci'\n\t\tENGINE=InnoDB\n\t\tAUTO_INCREMENT=208;\";\n\n\t\t// Create table `menu_items_lang`\n\t\t$query['create_child_lang'] = \"CREATE TABLE `menu_items_lang` (\n\t\t\t`id` INT(10) NOT NULL AUTO_INCREMENT,\n\t\t\t`menu_item_id` INT(10) NOT NULL,\n\t\t\t`language_id` INT(10) NOT NULL,\n\t\t\t`name` VARCHAR(50) NOT NULL,\n\t\t\t`title` TEXT NOT NULL,\n\t\t\tPRIMARY KEY (`id`),\n\t\t\tINDEX `menu_item_id` (`menu_item_id`),\n\t\t\tCONSTRAINT `FK_menu_items_lang_menu_items` FOREIGN KEY (`menu_item_id`) REFERENCES `menu_items` (`id`) ON DELETE CASCADE\n\t\t)\n\t\tCOLLATE='utf8_general_ci'\n\t\tENGINE=InnoDB\n\t\tAUTO_INCREMENT=147;\";\n\t\t\n\t\t$result = $this->db->query($query['check'])->row;\n\t\t\n\t\tif (empty($result))\n\t\t{\n\t\t\t$this->db->query($query['create']);\n\t\t\t$this->db->query($query['create_child']);\n\t\t\t$this->db->query($query['create_child_lang']);\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "e57ff9d23a278e2322540940a95ed485", "score": "0.5692044", "text": "public function installDB()\n\t{\n\t\tglobal $DB, $APPLICATION;\n\n\t\t// db\n\t\t$errors = $DB->runSQLBatch(\n\t\t\t$this->docRoot.'/bitrix/modules/landing/install/db/mysql/install.sql'\n\t\t);\n\t\tif ($errors !== false)\n\t\t{\n\t\t\t$APPLICATION->throwException(implode('', $errors));\n\t\t\treturn false;\n\t\t}\n\n\t\t// module\n\t\tregisterModule($this->MODULE_ID);\n\n\t\t// full text\n\t\t$errors = $DB->runSQLBatch(\n\t\t\t$this->docRoot.'/bitrix/modules/landing/install/db/mysql/install_ft.sql'\n\t\t);\n\t\tif ($errors === false)\n\t\t{\n\t\t\tif (\\Bitrix\\Main\\Loader::includeModule('landing'))\n\t\t\t{\n\t\t\t\tBlockTable::getEntity()->enableFullTextIndex('SEARCH_CONTENT');\n\t\t\t\tLandingTable::getEntity()->enableFullTextIndex('SEARCH_CONTENT');\n\t\t\t}\n\t\t}\n\n\t\t// install event handlers\n\t\t$eventManager = Bitrix\\Main\\EventManager::getInstance();\n\t\tforeach ($this->eventsData as $module => $events)\n\t\t{\n\t\t\tforeach ($events as $eventCode => $callback)\n\t\t\t{\n\t\t\t\t$eventManager->registerEventHandler(\n\t\t\t\t\t$module,\n\t\t\t\t\t$eventCode,\n\t\t\t\t\t$this->MODULE_ID,\n\t\t\t\t\t$callback[0],\n\t\t\t\t\t$callback[1]\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\t// agents\n\t\t\\CAgent::addAgent(\n\t\t\t'Bitrix\\Landing\\Agent::clearRecycle();',\n\t\t\t$this->MODULE_ID,\n\t\t\t'N',\n\t\t\t7200\n\t\t);\n\t\t\\CAgent::addAgent(\n\t\t\t'Bitrix\\Landing\\Agent::clearFiles();',\n\t\t\t$this->MODULE_ID,\n\t\t\t'N',\n\t\t\t3600\n\t\t);\n\t\t\\CAgent::addAgent(\n\t\t\t'Bitrix\\Landing\\Agent::sendRestStatistic();',\n\t\t\t$this->MODULE_ID\n\t\t);\n\t\t\\CAgent::addAgent(\n\t\t\t'Bitrix\\Landing\\Agent::clearTempFiles();',\n\t\t\t$this->MODULE_ID\n\t\t);\n\n\t\t// rights\n\t\t$this->InstallTasks();\n\n\t\t// templates\n\t\tif (\\Bitrix\\Main\\Loader::includeModule($this->MODULE_ID))\n\t\t{\n\t\t\t$this->installTemplates();\n\t\t\t$this->setOptions();\n\t\t}\n\t\t$this->setSiteTemplates();\n\n\t\t// route handlers\n\t\t$this->setRouteHandlers();\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "938b00b654e7dd067f4df7e10099a526", "score": "0.5688796", "text": "function getQuickCreateModules()\r\n{\r\n\tglobal $log;\r\n\t$log->debug(\"Entering getQuickCreateModules() method ...\");\r\n\tglobal $adb;\r\n\tglobal $mod_strings;\r\n\r\n\t// vtlib customization: Ignore disabled modules.\r\n\t//$qc_query = \"select distinct vtiger_tab.tablabel,vtiger_tab.name from vtiger_field inner join vtiger_tab on vtiger_tab.tabid = vtiger_field.tabid where quickcreate=0 order by vtiger_tab.tablabel\";\r\n\t$qc_query = \"select distinct vtiger_tab.tablabel,vtiger_tab.name from vtiger_field inner join vtiger_tab on vtiger_tab.tabid = vtiger_field.tabid where quickcreate=0 and vtiger_tab.presence != 1 order by vtiger_tab.tablabel\";\r\n\t// END\r\n\r\n\t$result = $adb->mquery($qc_query, array());\r\n\t$noofrows = $adb->num_rows($result);\r\n\t$return_qcmodule = Array();\r\n\tfor($i = 0; $i < $noofrows; $i++)\r\n\t{\r\n\t\t$tablabel = $adb->query_result($result,$i,'tablabel');\r\n\t\r\n\t\t$tabname = $adb->query_result($result,$i,'name');\r\n\t \t$tablabel = getTranslatedString(\"SINGLE_$tabname\", $tabname);\r\n\t \tif(isPermitted($tabname,'EditView','') == 'yes')\r\n\t \t{\r\n \t$return_qcmodule[] = $tablabel;\r\n\t $return_qcmodule[] = $tabname;\r\n\t\t}\t\r\n\t}\r\n\tif(sizeof($return_qcmodule >0))\r\n\t{\r\n\t\t$return_qcmodule = array_chunk($return_qcmodule,2);\r\n\t}\r\n\t\r\n\t$log->debug(\"Exiting getQuickCreateModules method ...\");\r\n\treturn $return_qcmodule;\r\n}", "title": "" }, { "docid": "7706758fd372d45685c06d27ac0577eb", "score": "0.56637824", "text": "public function install(){\n\t\tself::createExecFile();\n\t\tself::createDatabase();\n\t}", "title": "" }, { "docid": "3a3f6adcd9005a0802dac351f48fbe02", "score": "0.56354606", "text": "function dbInstall()\n {\n }", "title": "" }, { "docid": "6cf502ee6f9dc762d238bd698769cbb3", "score": "0.56320083", "text": "function Install(){\n\n $DB = new Database();\n\n $DB->Query(\"INSERT INTO MetadataFields ( FieldId , FieldName , FieldType , Description ,\n RequiredBySPT , Enabled , Optional , Viewable , AllowMultiple , IncludeInKeywordSearch ,\n IncludeInAdvancedSearch , IncludeInRecommender , TextFieldSize , MaxLength , ParagraphRows ,\n ParagraphCols , DefaultValue , MinValue , MaxValue , FlagOnLabel , FlagOffLabel ,\n DateFormat , DateFormatIsPerRecord , SearchWeight , RecommenderWeight , MaxHeight ,\n MaxWidth , MaxPreviewHeight , MaxPreviewWidth , MaxThumbnailHeight , MaxThumbnailWidth ,\n DefaultAltText , UsesQualifiers , HasItemLevelQualifiers , DefaultQualifier , DateLastModified , LastModifiedById ,\n DisplayOrderPosition , EditingOrderPosition , UseForOaiSets , ViewingPrivilege ,\n AuthoringPrivilege , EditingPrivilege , PointPrecision , PointDecimalDigits , UpdateMethod )\n VALUES (\n '987654', 'Decs', 'Text', 'Decs Field', NULL , '1', '1', '1', NULL , NULL , NULL , \n NULL , '75', NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , \n '3', '0', NULL , NULL , NULL , NULL , NULL , NULL , NULL , '0', '0', NULL , NOW( ) ,\n NULL , '8', '8', '0', '0', '12', '3', NULL , NULL , 'NoAutoUpdate'\n );\");\n\n $DB->Query(\"ALTER TABLE Resources ADD Decs text;\");\n\n }", "title": "" }, { "docid": "1acfb0c52a4c48bcb0652db81e85fd91", "score": "0.56312186", "text": "public function run_install()\n\t{\n\t\t\n\t\t// ****************************************\n\t\t// DATABASE STUFF\n\t\t// for remembering what postal code goes with what user\n\t\t$this->db->query(\"\n\t\t\tCREATE TABLE IF NOT EXISTS `\".Kohana::config('database.default.table_prefix').\"extrauserinfo`\n\t\t\t(\n\t\t\t\tid int(15) unsigned NOT NULL AUTO_INCREMENT,\n\t\t\t\tuser_id int(11) unsigned NOT NULL,\n\t\t\t\torganization_id int(11) unsigned NOT NULL,\n\t\t\t\tpostalcode char(5) NOT NULL,\n\t\t\t\treal_name char(255) NOT NULL,\t\t\t\t\n\t\t\t\tPRIMARY KEY (`id`),\n\t\t\t\tINDEX (user_id),\n\t\t\t\tINDEX (organization_id)\n\t\t\t) \n\t\t\tENGINE = InnoDB;\");\t\t\t\n\t\t\t\t\n\t\t$this->db->query(\"\n\t\t\tCREATE TABLE IF NOT EXISTS `\".Kohana::config('database.default.table_prefix').\"extrauserinfo_category`\n\t\t\t(\n\t\t\t\tid int(15) unsigned NOT NULL AUTO_INCREMENT,\n\t\t\t\tuser_id int(11) unsigned NOT NULL,\n\t\t\t\tcategory_id int(11) unsigned NOT NULL,\t\t\t\n\t\t\t\tPRIMARY KEY (`id`),\n\t\t\t\tINDEX (user_id),\n\t\t\t\tINDEX (category_id)\n\t\t\t) \n\t\t\tENGINE = InnoDB;\n\t\t\");\n\t\t\n\t}", "title": "" }, { "docid": "40defa46e4dfc498f6fedcb61e96f553", "score": "0.5596035", "text": "function plugin_install() {\n\tglobal $prefixeTable;\n\t$query = '\n\t\tCREATE TABLE IF NOT EXISTS '.$prefixeTable.'producedby_admin (\n\t\t\tpb_id int(11) NOT NULL AUTO_INCREMENT,\n\t\t\tname varchar(255) UNIQUE NOT NULL,\n\t\t\tPRIMARY KEY (pb_id)\n\t\t) ENGINE=MyISAM DEFAULT CHARACTER SET utf8\n\t\t;';\n\tpwg_query($query);\n\n $query = '\n CREATE TABLE IF NOT EXISTS '.$prefixeTable.'producedby_media (\n media_id int(11) NOT NULL,\n pb_id int(11) NOT NULL,\n PRIMARY KEY (media_id)\n ) ENGINE = MyISAM DEFAULT CHARACTER SET utf8\n ;';\n pwg_query($query);\n}", "title": "" }, { "docid": "206ef37078a21ae296db5ea376c55b3f", "score": "0.55870825", "text": "function get_installed_product_query($dbname){\n\n\t$query = \"select U_PRODUCTVERSION from \\\"$dbname\\\".\\\"@OPTM_INSTPRODUCTS\\\" where U_PRODUCTCODE = 'SWB'\";\n\treturn $query;\n\n}", "title": "" }, { "docid": "bce39a4fe43af09cbbd8a5448ddd753b", "score": "0.5580494", "text": "public function install(){\n $table = new $this->xmldb_table( $this->tablename );\n $set_attributes = method_exists($this->xmldb_key, 'set_attributes') ? 'set_attributes' : 'setAttributes';\n\n $table_id = new $this->xmldb_field('id');\n $table_id->$set_attributes(XMLDB_TYPE_INTEGER, 10, XMLDB_UNSIGNED, XMLDB_NOTNULL, XMLDB_SEQUENCE);\n $table->addField($table_id);\n \n $table_report = new $this->xmldb_field('reportfield_id');\n $table_report->$set_attributes(XMLDB_TYPE_INTEGER, 10, XMLDB_UNSIGNED, null);\n $table->addField($table_report);\n \n $table_optiontype = new $this->xmldb_field('selecttype');\n $table_optiontype->$set_attributes(XMLDB_TYPE_INTEGER, 1, XMLDB_UNSIGNED, null);\t//1=single, 2=multi cf blocks/ilp/constants.php\n $table->addField($table_optiontype);\n \n $table_timemodified = new $this->xmldb_field('timemodified');\n $table_timemodified->$set_attributes(XMLDB_TYPE_INTEGER, 10, XMLDB_UNSIGNED, XMLDB_NOTNULL);\n $table->addField($table_timemodified);\n\n $table_timecreated = new $this->xmldb_field('timecreated');\n $table_timecreated->$set_attributes(XMLDB_TYPE_INTEGER, 10, XMLDB_UNSIGNED, XMLDB_NOTNULL);\n $table->addField($table_timecreated);\n\n $table_key = new $this->xmldb_key('primary');\n $table_key->$set_attributes(XMLDB_KEY_PRIMARY, array('id'));\n $table->addKey($table_key);\n\n $table_key = new $this->xmldb_key('textplugin_unique_reportfield');\n $table_key->$set_attributes(XMLDB_KEY_FOREIGN_UNIQUE, array('reportfield_id'),'block_ilp_report_field','id');\n $table->addKey($table_key);\n \n\n if(!$this->dbman->table_exists($table)) {\n $this->dbman->create_table($table);\n }\n \n $table = new $this->xmldb_table( $this->items_tablename );\n\n $table_id = new $this->xmldb_field('id');\n $table_id->$set_attributes(XMLDB_TYPE_INTEGER, 10, XMLDB_UNSIGNED, XMLDB_NOTNULL, XMLDB_SEQUENCE);\n\t $table->addField($table_id);\n\t \n\t $table_textfieldid = new $this->xmldb_field('parent_id');\n\t $table_textfieldid->$set_attributes(XMLDB_TYPE_INTEGER, 10, XMLDB_UNSIGNED, XMLDB_NOTNULL);\n\t $table->addField($table_textfieldid);\n\t \n\t $table_itemvalue = new $this->xmldb_field('value');\n\t $table_itemvalue->$set_attributes(XMLDB_TYPE_CHAR, 255, null, null);\n\t $table->addField($table_itemvalue);\n\t \n\t $table_itemname = new $this->xmldb_field('name');\n\t $table_itemname->$set_attributes(XMLDB_TYPE_CHAR, 255, null, XMLDB_NOTNULL);\n\t $table->addField($table_itemname);\n\n\t $table_hexcolour = new $this->xmldb_field('hexcolour');\n\t $table_hexcolour->$set_attributes(XMLDB_TYPE_CHAR, 255, null);\n\t $table->addField($table_hexcolour);\n\n //special field to categorise states as pass or fail\n //0=unset,1=fail,2=pass\n $table_itempassfail = new $this->xmldb_field( 'passfail' );\n\t $table_itempassfail->$set_attributes( XMLDB_TYPE_INTEGER, 1, XMLDB_UNSIGNED, XMLDB_NOTNULL, '0', null, null, '0' );\n $table->addField( $table_itempassfail );\n\t\n $table_timemodified = new $this->xmldb_field('timemodified');\n $table_timemodified->$set_attributes(XMLDB_TYPE_INTEGER, 10, XMLDB_UNSIGNED, XMLDB_NOTNULL);\n $table->addField($table_timemodified);\n\t\n $table_timecreated = new $this->xmldb_field('timecreated');\n $table_timecreated->$set_attributes(XMLDB_TYPE_INTEGER, 10, XMLDB_UNSIGNED, XMLDB_NOTNULL);\n $table->addField($table_timecreated);\n\n $table_key = new $this->xmldb_key('primary');\n $table_key->$set_attributes(XMLDB_KEY_PRIMARY, array('id'));\n $table->addKey($table_key);\n\t\n \t$table_key = new $this->xmldb_key('listplugin_unique_fk');\n $table_key->$set_attributes(XMLDB_KEY_FOREIGN, array('parent_id'), $this->tablename, 'id');\n $table->addKey($table_key);\n \n if(!$this->dbman->table_exists($table)) {\n $this->dbman->create_table($table);\n }\n \n \n //this table records an instance creation of a status field in a report\n $tablename = \"block_ilp_plu_rf_sts\";\n $table = new $this->xmldb_table( $tablename );\n $set_attributes = method_exists($this->xmldb_key, 'set_attributes') ? 'set_attributes' : 'setAttributes';\n\n $table_id = new $this->xmldb_field('id');\n $table_id->$set_attributes(XMLDB_TYPE_INTEGER, 10, XMLDB_UNSIGNED, XMLDB_NOTNULL, XMLDB_SEQUENCE);\n $table->addField($table_id);\n \n $table_uid = new $this->xmldb_field('reportfield_id');\n $table_uid->$set_attributes(XMLDB_TYPE_INTEGER, 10, XMLDB_UNSIGNED, XMLDB_NOTNULL);\n $table->addField($table_uid);\n \n $table_sii = new $this->xmldb_field('status_id');\n $table_sii->$set_attributes(XMLDB_TYPE_INTEGER, 10, XMLDB_UNSIGNED, XMLDB_NOTNULL);\n $table->addField($table_sii);\n \n $table_umi = new $this->xmldb_field('creator_id');\n $table_umi->$set_attributes(XMLDB_TYPE_INTEGER, 10, XMLDB_UNSIGNED, XMLDB_NOTNULL);\n $table->addField($table_umi);\n \n $table_timemodified = new $this->xmldb_field('timemodified');\n $table_timemodified->$set_attributes(XMLDB_TYPE_INTEGER, 10, XMLDB_UNSIGNED, XMLDB_NOTNULL);\n $table->addField($table_timemodified);\n\n $table_timecreated = new $this->xmldb_field('timecreated');\n $table_timecreated->$set_attributes(XMLDB_TYPE_INTEGER, 10, XMLDB_UNSIGNED, XMLDB_NOTNULL);\n $table->addField($table_timecreated);\n\n $table_key = new $this->xmldb_key('primary');\n $table_key->$set_attributes(XMLDB_KEY_PRIMARY, array('id'));\n $table->addKey($table_key);\n \n if(!$this->dbman->table_exists($table)) {\n $this->dbman->create_table($table);\n }\n\n\t // create the new table to store user input\n $table = new $this->xmldb_table( $this->data_entry_tablename );\n\n $table_id = new $this->xmldb_field('id');\n $table_id->$set_attributes(XMLDB_TYPE_INTEGER, 10, XMLDB_UNSIGNED, XMLDB_NOTNULL, XMLDB_SEQUENCE);\n $table->addField($table_id);\n \n $table_maxlength = new $this->xmldb_field('parent_id');\n $table_maxlength->$set_attributes(XMLDB_TYPE_INTEGER, 10, XMLDB_UNSIGNED, XMLDB_NOTNULL);\n $table->addField($table_maxlength);\n \n $table_item_id = new $this->xmldb_field('value');\t//foreign key -> $this->items_tablename\n $table_item_id->$set_attributes(XMLDB_TYPE_CHAR, 255, XMLDB_UNSIGNED, XMLDB_NOTNULL);\n $table->addField($table_item_id);\n\n $table_report = new $this->xmldb_field('entry_id');\n $table_report->$set_attributes(XMLDB_TYPE_INTEGER, 10, XMLDB_UNSIGNED, XMLDB_NOTNULL);\n $table->addField($table_report);\n \n $table_timemodified = new $this->xmldb_field('timemodified');\n $table_timemodified->$set_attributes(XMLDB_TYPE_INTEGER, 10, XMLDB_UNSIGNED, XMLDB_NOTNULL);\n $table->addField($table_timemodified);\n\n $table_timecreated = new $this->xmldb_field('timecreated');\n $table_timecreated->$set_attributes(XMLDB_TYPE_INTEGER, 10, XMLDB_UNSIGNED, XMLDB_NOTNULL);\n $table->addField($table_timecreated);\n\n $table_key = new $this->xmldb_key('primary');\n $table_key->$set_attributes(XMLDB_KEY_PRIMARY, array('id'));\n $table->addKey($table_key);\n\t\n \t$table_key = new $this->xmldb_key('listpluginentry_unique_fk');\n $table_key->$set_attributes(XMLDB_KEY_FOREIGN, array('parent_id'), $this->tablename, 'id');\n $table->addKey($table_key);\n \n if(!$this->dbman->table_exists($table)) {\n $this->dbman->create_table($table);\n }\n }", "title": "" }, { "docid": "90e819bc33994e1ba65a0b9572e794c3", "score": "0.5572657", "text": "function install()\n {\n // Already installed, let's not install again.\n if ($this->database_version() !== FALSE)\n {\n \treturn FALSE;\n }\n\n /** --------------------------------------------\n /** Our Default Install\n /** --------------------------------------------*/\n\n if ($this->default_module_install() == FALSE)\n {\n \treturn FALSE;\n }\n\n\t\t/** --------------------------------------------\n /** Module Install\n /** --------------------------------------------*/\n\n $sql[] = ee()->db->insert_string(\n \t'exp_modules', array(\n \t\t'module_name'\t\t=> $this->class_name,\n\t\t\t\t'module_version'\t=> CODE_PACK_VERSION,\n\t\t\t\t'has_cp_backend'\t=> 'y'\n\t\t\t)\n\t\t);\n\n foreach ($sql as $query)\n {\n ee()->db->query($query);\n }\n\n return TRUE;\n }", "title": "" }, { "docid": "f1221fbb22b8b4eea60582105462f69a", "score": "0.55670935", "text": "public function install() {\n\t\treturn array(\n\t\t\t\"target_field\" => false\n\t\t);\n\t}", "title": "" }, { "docid": "a4b4cc548b6a1bd0570bed67c0a6bc31", "score": "0.55456984", "text": "public function install()\n {\n $sql = \"CREATE TABLE `catalog_dropbox` (`id` INT( 11 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY , \".\n \"`apikey` VARCHAR( 255 ) COLLATE utf8_unicode_ci NOT NULL , \" .\n \"`secret` VARCHAR( 255 ) COLLATE utf8_unicode_ci NOT NULL , \" .\n \"`path` VARCHAR( 255 ) COLLATE utf8_unicode_ci NOT NULL , \" .\n \"`authtoken` VARCHAR( 255 ) COLLATE utf8_unicode_ci NOT NULL , \" .\n \"`getchunk` TINYINT(1) NOT NULL, \" .\n \"`catalog_id` INT( 11 ) NOT NULL\" .\n \") ENGINE = MYISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci\";\n $db_results = Dba::query($sql);\n\n return true;\n\n }", "title": "" }, { "docid": "29ddba0701714fba7d0fbe0788872de7", "score": "0.55361193", "text": "public function installDatabase() {\n $event = new InstallDatabaseEvent($this->getModel());\n return $this->getDispatcher()->dispatch('civi.setup.installDatabase', $event);\n }", "title": "" }, { "docid": "d8bde4eacc62c6dbce7d2a084a2e7bc0", "score": "0.5506146", "text": "function crfd_install() {\n\n\tglobal $wpdb;\n\n\t$table_name = $wpdb->prefix . 'bp_xprofile_fields';\n\n\t $sql = \"ALTER TABLE \" . $table_name . \" ADD crfd_reg_display boolean;\";\n\n\t/**\n\t* Filters sql query which adds crfd_reg_display field to database when plugin is initialized.\n\t* @param string $sql sql query to add_crfd_reg_display_field.\n\t*/ \n\n\t $sql = apply_filters('crfd_install', $sql);\n\n\t return $wpdb->query($sql);\n}", "title": "" }, { "docid": "7a4d32abcbd659a296976522ec4ad1b4", "score": "0.54938024", "text": "public function getBasicListQuery()\n\t{\n\t\t$module = $this->getModule();\n\t\t$query = (new App\\Db\\Query())->from($module->getBaseTable());\n\t\t$tabId = $this->get('sourceModule');\n\t\tif ($tabId) {\n\t\t\t$query->where(['tabid' => $tabId]);\n\t\t}\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "de5b476dc0ba17956c69e31a4e8da15f", "score": "0.5489441", "text": "public function onPostInstall() {\n $moduleName = 'sitehashtag';\n $db = $this->getDb();\n $select = new Zend_Db_Select($db);\n $select\n ->from('engine4_core_modules')\n ->where('name = ?', 'sitemobile')\n ->where('enabled = ?', 1);\n $is_sitemobile_object = $select->query()->fetchObject();\n if (!empty($is_sitemobile_object)) {\n $db->query(\"INSERT IGNORE INTO `engine4_sitemobile_modules` (`name`, `visibility`) VALUES\n('$moduleName','1')\");\n $select = new Zend_Db_Select($db);\n $select\n ->from('engine4_sitemobile_modules')\n ->where('name = ?', $moduleName)\n ->where('integrated = ?', 0);\n $is_sitemobile_object = $select->query()->fetchObject();\n if ($is_sitemobile_object) {\n $actionName = Zend_Controller_Front::getInstance()->getRequest()->getActionName();\n $controllerName = Zend_Controller_Front::getInstance()->getRequest()->getControllerName();\n if ($controllerName == 'manage' && $actionName == 'install') {\n $view = new Zend_View();\n $baseUrl = (!empty($_ENV[\"HTTPS\"]) && 'on' == strtolower($_ENV[\"HTTPS\"]) ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . str_replace('install/', '', $view->url(array(), 'default', true));\n $redirector = Zend_Controller_Action_HelperBroker::getStaticHelper('redirector');\n $redirector->gotoUrl($baseUrl . 'admin/sitemobile/module/enable-mobile/enable_mobile/1/name/' . $moduleName . '/integrated/0/redirect/install');\n }\n }\n }\n //END - SITEMOBILE CODE TO CALL MY.SQL ON POST INSTALL\n }", "title": "" }, { "docid": "d0d7bc4b3ece5a2bf549900633fa2c1c", "score": "0.5479468", "text": "private function generateInstall() {\n $method = $this->class->addMethod(\"install\")\n ->setVisibility(\"public\")\n ->addComment(\"Performs the installation of the module.\");\n }", "title": "" }, { "docid": "ef831fc2143c3d0ae025f4a99b21a8a9", "score": "0.54745173", "text": "public function hookInstall()\n {\n $sql = \"\n CREATE TABLE IF NOT EXISTS `{$this->_db->AdditionalResources}` (\n `id` int(10) unsigned NOT NULL AUTO_INCREMENT,\n `item_id` int(10) unsigned NOT NULL,\n `user_id` int(10) unsigned NOT NULL,\n `title` mediumtext COLLATE utf8_unicode_ci,\n `description` mediumtext COLLATE utf8_unicode_ci,\n `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n PRIMARY KEY (`id`),\n UNIQUE KEY `id` (`id`)\n ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\";\n $this->_db->query($sql);\n\n $sql = \"\n CREATE TABLE IF NOT EXISTS `{$this->_db->AdditionalResourceFiles}` (\n `id` int(10) unsigned NOT NULL AUTO_INCREMENT,\n `resource_id` int(10) unsigned NOT NULL,\n `size` int(30) unsigned NOT NULL,\n `original_filename` mediumtext COLLATE utf8_unicode_ci,\n `name` mediumtext COLLATE utf8_unicode_ci,\n `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n PRIMARY KEY (`id`),\n UNIQUE KEY `id` (`id`)\n ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\";\n $this->_db->query($sql); \n }", "title": "" }, { "docid": "b0d21a1eb570522b3eb29675cedef801", "score": "0.54541576", "text": "public static function findInstalled(){\n\t\treturn Module::find(\n\t\t\t\t'all',\n\t\t\t\tarray('order' => 'sequence desc'),\n\t\t\t\tarray('conditions' => array('is_installed = ?', '1'))\n\t\t);\n\t}", "title": "" }, { "docid": "93b40beb1970c45f8c77217481e91eaf", "score": "0.54468304", "text": "function install($data='') {\n parent::install();\n $rec = SQLSelectOne(\"SELECT * FROM project_modules WHERE NAME = '\" . $this->name . \"'\");\n $rec['HIDDEN'] = 1;\n SQLUpdate('project_modules', $rec);\n\n // запускаем цикл\n setGlobal('cycle_upnpeventsControl','start'); //- запуск\n //setGlobal('cycle_pingControl','stop'); - Остановка\n //setGlobal('cycle_pingControl','start'); - запуск\n //setGlobal('cycle_pingControl','restart'); - рестарт\n //setGlobal('cycle_pingDisabled','1'); - Для запрета автозапуска (по-умолчанию он всегда разрешён)\n //setGlobal('cycle_pingAutoRestart','1'); - Для включения авто-восстановления (по-умолчанию он всегда выключен)\n }", "title": "" }, { "docid": "098362c4011ed971e97cee552d99a881", "score": "0.54462564", "text": "private function generateRegisterQuery()\n {\n $query = 'SCHTASKS /CREATE /SC MONTHLY';\n $query .= ' ' . $this->getSchSyntaxForModifier();\n $query .= ' ' . $this->getSchSyntaxForName();\n $query .= ' ' . $this->getSchSyntaxForAction();\n $query .= ' ' . $this->getSchSyntaxForStartDate();\n $query .= ' ' . $this->getSchSyntaxForStartTime();\n if (strtoupper($this->getModifier()) === 'LASTDAY') {\n $query .= ' ' . $this->getSchSyntaxForMonth();\n } else {\n $query .= ' ' . $this->getSchSyntaxForDay(\"MONTHLY\");\n }\n $query .= ' ' . $this->getSchSyntaxForEndDate();\n $query .= ' ' . $this->getSchSyntaxForEndTime();\n return $query;\n }", "title": "" }, { "docid": "d5810f22ffde8e673954cef9ccf48693", "score": "0.54329515", "text": "public function install() {\n\t\t$this->load->model('module/searchanise');\n\t\t$this->model_module_searchanise->searchaniseCreateModuleTables();\n\n\t\t$this->load->model('setting/setting');\n\n\t\t$settings = $this->createSettings(array('se_status' => 1));\n\n\t\t$this->model_setting_setting->editSetting('searchanise', $settings);\n\t}", "title": "" }, { "docid": "3f47830274a1e837653e15e497f15c15", "score": "0.5423327", "text": "public function install() {\n//\t DatabaseManager::getInstance()->getConnection();\n\t}", "title": "" }, { "docid": "b8f7047e6174be16daf4fa3aa9640a3d", "score": "0.54101014", "text": "public function installAction()\n {\n $directory = _get(\n 'directory',\n 'regexp',\n [\n 'regexp' => '/^[a-z0-9_]+$/i']\n );\n $name = _get('name', 'regexp', ['regexp' => '/^[a-z0-9_]+$/i'])\n ?: $directory;\n $title = _get('title');\n\n $result = false;\n $error = '';\n $message = '';\n $details = [];\n\n if (empty($directory) && $name) {\n $directory = $name;\n }\n\n if (!$directory) {\n $error = _a('Directory is not specified.');\n }\n if (!$error) {\n $meta = Pi::service('module')->loadMeta($directory, 'meta');\n if (!$meta) {\n $error = sprintf(\n _a('Meta data are not loaded for \"%s\".'),\n $directory\n );\n }\n }\n if (!$error) {\n $installed = Pi::registry('module')->read($name)\n ? true : false;\n if (!$installed) {\n $installedModules = $this->installedModules();\n if (in_array($directory, $installedModules)\n && empty($meta['clonable'])\n ) {\n $installed = false;\n }\n }\n if ($installed) {\n $error = _a('The module has already been installed.');\n }\n }\n if (!$error) {\n $args = [\n 'directory' => $directory,\n 'title' => $title ?: $meta['title'],\n ];\n\n $installer = new ModuleInstaller;\n $result = $installer->install($name, $args);\n $details = $installer->getResult();\n }\n if ($result) {\n $message = sprintf(\n _a('Module \"%s\" is installed successfully.'),\n $name ?: $directory\n );\n\n Pi::service('url')->getRouter()->load();\n Pi::service('event')->trigger(\n 'module_install',\n $name ?: $directory\n );\n } elseif ($directory) {\n $message = sprintf(\n _a('Module \"%s\" is not installed.'),\n $name ?: $directory\n );\n } else {\n $message = _a('Module is not installed.');\n }\n\n $data = [\n 'title' => _a('Module installation'),\n 'result' => $result,\n 'error' => $error,\n 'message' => $message,\n 'details' => $details,\n 'url' => $this->url('', ['action' => 'available']),\n ];\n $this->view()->assign($data);\n $this->view()->setTemplate('module-operation');\n }", "title": "" }, { "docid": "8830af030611345c7b4f0d9113be9d79", "score": "0.5400395", "text": "function install($upgrade_from=NULL,$upgrade_from_hack=NULL)\n\t{\n\t\t$GLOBALS['SITE_DB']->create_table('adminlogs',array(\n\t\t\t'id'=>'*AUTO',\n\t\t\t'the_type'=>'ID_TEXT',\n\t\t\t'param_a'=>'ID_TEXT',\n\t\t\t'param_b'=>'SHORT_TEXT',\n\t\t\t'the_user'=>'USER',\n\t\t\t'ip'=>'IP',\n\t\t\t'date_and_time'=>'TIME'\n\t\t));\n\n\t\t$GLOBALS['SITE_DB']->create_index('adminlogs','xas',array('the_user'));\n\t\t$GLOBALS['SITE_DB']->create_index('adminlogs','ts',array('date_and_time'));\n\t\t$GLOBALS['SITE_DB']->create_index('adminlogs','aip',array('ip'));\n\t\t$GLOBALS['SITE_DB']->create_index('adminlogs','athe_type',array('the_type'));\n\t}", "title": "" }, { "docid": "536edfc5107030ddc71174bb39109acb", "score": "0.5385704", "text": "public function install() {\n// // Perform installation checks\n// $this->loadLib('Pterodactyl_module');\n// $module = new PterodactylModule();\n// $meta = $module->install();\n//\n// if (($errors = $module->errors())) {\n// $this->Input->setErrors($errors);\n// } else {\n// return $meta;\n// }\n }", "title": "" }, { "docid": "ecbe7fc80d563a7af521615f316d5e7e", "score": "0.53789854", "text": "public function runQuery() {\r\n\r\n\r\n db_insert('sonub')\r\n ->fields(['name'=>'makii', 'lastname'=>'me','email'=>'[email protected]' , 'password'=>'makii'])\r\n ->execute();\r\n\r\n $results = db_select( 'sonub' )\r\n ->fields('sonub', [ 'id','name' ] )\r\n ->execute();\r\n $output = null;\r\n while ( $row = $results->fetchAssoc() ){\r\n $output .= \"$row[id] = $row[name] \\r\\n\";\r\n }\r\n $markup = [\r\n '#theme' => 'displayQuery', // theme name that will be matched in *.module\r\n '#title' => 'return query',\r\n '#results' => $output,\r\n ];\r\n return $markup;\r\n\r\n }", "title": "" }, { "docid": "f33dc4bd858aa55b520d0b65bc1563f0", "score": "0.5367726", "text": "function install(){\n global $wpdb;\n\n $RP_tb_name=$wpdb->prefix.\"rplugin\";\n if($wpdb->get_var( \"show tables like '$RP_tb_name'\" ) != $RP_tb_name) \n {\n $RP_query=\"CREATE TABLE $RP_tb_name (\n id int (100) NOT NULL,\n status varchar (100) DEFAULT '',\n cookie varchar (100) DEFAULT '',\n slug varchar (100) DEFAULT '',\n url varchar (100) DEFAULT ''\n )\";\n\n require_once(ABSPATH .\"wp-admin/includes/upgrade.php\");\n dbDelta( $RP_query );\n }\n}", "title": "" }, { "docid": "5429f6814b24f965da9f4d7bbe0e34b7", "score": "0.53641796", "text": "public function install() {\n\t\t$db_check = $this->db->query(\"SHOW COLUMNS FROM `\" . DB_PREFIX . \"product_special` LIKE 'bulk_special'\");\n if (!$db_check->num_rows) {\n $this->db->query(\"ALTER TABLE `\".DB_PREFIX.\"product_special` ADD `bulk_special` TINYINT NOT NULL\");\n }\n\t}", "title": "" }, { "docid": "2ba560bad0401122c8e2ead1f172b949", "score": "0.53585684", "text": "protected function query() {\n $query = Database::getConnection('legacy', $this->sourceConnection)\n ->select('node', 'n')\n ->fields('n', array('nid', 'vid', 'language', 'title', 'uid',\n 'status', 'created', 'changed', 'comment', 'promote', 'sticky',\n 'tnid', 'translate'))\n ->condition('type', $this->sourceType)\n ->condition('nid', SAVE_THE_WHALES_NODE_START, '>');\n return $query;\n }", "title": "" }, { "docid": "091707da23b5ec3264496461b8cd713d", "score": "0.535759", "text": "public function install()\n\t{\n\t\t// Install SQL\n\t\tinclude(dirname(__FILE__).'/sql-install.php');\n\t\tforeach ($sql as $s)\n\t\t\tif (!Db::getInstance()->Execute($s))\n\t\t\t\treturn false;\n\n\t\t// Install Carriers\n\t\t$this->installCarriers();\n\n\t\t// Install Module\n\t\tif (!parent::install() OR !$this->registerHook('updateCarrier'))\n\t\t\treturn false;\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c985cea74b3c9fcf2a50b694dce87e0e", "score": "0.5357179", "text": "function create_export_query($where)\r\n\t{\r\n\t\tglobal $current_user;\r\n\t\t$thismodule = $_REQUEST['module'];\r\n\r\n\t\tinclude(\"include/utils/ExportUtils.php\");\r\n\r\n\t\t//To get the Permitted fields query and the permitted fields list\r\n\t\t$sql = getPermittedFieldsQuery($thismodule, \"detail_view\");\r\n\r\n\t\t$fields_list = getFieldsListFromQuery($sql);\r\n\r\n\t\t$query = \"SELECT $fields_list, vtiger_users.user_name AS user_name \r\n\t\t\t\tFROM vtiger_crmentity INNER JOIN $this->table_name ON vtiger_crmentity.crmid=$this->table_name.$this->table_index\";\r\n\r\n\t\tif(!empty($this->customFieldTable)) {\r\n\t\t\t$query .= \" INNER JOIN \".$this->customFieldTable[0].\" ON \".$this->customFieldTable[0].'.'.$this->customFieldTable[1] .\r\n\t\t\t\t\" = $this->table_name.$this->table_index\";\r\n\t\t}\r\n\r\n\t\t$query .= \" LEFT JOIN vtiger_groups ON vtiger_groups.groupid = vtiger_crmentity.smownerid\";\r\n\t\t$query .= \" LEFT JOIN vtiger_users ON vtiger_crmentity.smownerid = vtiger_users.id and vtiger_users.status='Active'\";\r\n\r\n\t\t$linkedModulesQuery = $this->db->pquery(\"SELECT distinct fieldname, columnname, relmodule FROM vtiger_field\" .\r\n\t\t\t\t\" INNER JOIN vtiger_fieldmodulerel ON vtiger_fieldmodulerel.fieldid = vtiger_field.fieldid\" .\r\n\t\t\t\t\" WHERE uitype='10' AND vtiger_fieldmodulerel.module=?\", array($thismodule));\r\n\t\t$linkedFieldsCount = $this->db->num_rows($linkedModulesQuery);\r\n\r\n\t\t$rel_mods[$this->table_name] = 1;\r\n\t\tfor($i=0; $i<$linkedFieldsCount; $i++) {\r\n\t\t\t$related_module = $this->db->query_result($linkedModulesQuery, $i, 'relmodule');\r\n\t\t\t$fieldname = $this->db->query_result($linkedModulesQuery, $i, 'fieldname');\r\n\t\t\t$columnname = $this->db->query_result($linkedModulesQuery, $i, 'columnname');\r\n\r\n\t\t\t$other = CRMEntity::getInstance($related_module);\r\n\t\t\tvtlib_setup_modulevars($related_module, $other);\r\n\r\n\t\t\tif($rel_mods[$other->table_name]) {\r\n\t\t\t\t$rel_mods[$other->table_name] = $rel_mods[$other->table_name] + 1;\r\n\t\t\t\t$alias = $other->table_name.$rel_mods[$other->table_name];\r\n\t\t\t\t$query_append = \"as $alias\";\r\n\t\t\t} else {\r\n\t\t\t\t$alias = $other->table_name;\r\n\t\t\t\t$query_append = '';\r\n\t\t\t\t$rel_mods[$other->table_name] = 1;\r\n\t\t\t}\r\n\r\n\t\t\t$query .= \" LEFT JOIN $other->table_name $query_append ON $alias.$other->table_index = $this->table_name.$columnname\";\r\n\t\t}\r\n\r\n\t\t$query .= $this->getNonAdminAccessControlQuery($thismodule,$current_user);\r\n\t\t$where_auto = \" vtiger_crmentity.deleted=0\";\r\n\r\n\t\tif($where != '') $query .= \" WHERE ($where) AND $where_auto\";\r\n\t\telse $query .= \" WHERE $where_auto\";\r\n\r\n\t\treturn $query;\r\n\t}", "title": "" }, { "docid": "3fafe07c82b96f86ed48afa692a4e23c", "score": "0.5355508", "text": "function dbInstall($data) {\n/*\npinghosts - Pinghosts\n*/\n $data = <<<EOD\n pinghosts: ID int(10) unsigned NOT NULL auto_increment\n pinghosts: TITLE varchar(255) NOT NULL DEFAULT ''\n pinghosts: HOSTNAME varchar(255) NOT NULL DEFAULT ''\n pinghosts: TYPE int(30) NOT NULL DEFAULT '0'\n pinghosts: STATUS int(3) NOT NULL DEFAULT '0'\n pinghosts: SEARCH_WORD varchar(255) NOT NULL DEFAULT ''\n pinghosts: CHECK_LATEST datetime\n pinghosts: CHECK_NEXT datetime\n pinghosts: SCRIPT_ID_ONLINE int(10) NOT NULL DEFAULT '0'\n pinghosts: CODE_ONLINE text\n pinghosts: SCRIPT_ID_OFFLINE int(10) NOT NULL DEFAULT '0'\n pinghosts: CODE_OFFLINE text\n pinghosts: OFFLINE_INTERVAL int(10) NOT NULL DEFAULT '0'\n pinghosts: ONLINE_INTERVAL int(10) NOT NULL DEFAULT '0'\n pinghosts: LINKED_OBJECT varchar(255) NOT NULL DEFAULT ''\n pinghosts: LINKED_PROPERTY varchar(255) NOT NULL DEFAULT ''\n pinghosts: COUNTER_CURRENT int(10) NOT NULL DEFAULT '0'\n pinghosts: COUNTER_REQUIRED int(10) NOT NULL DEFAULT '0'\n pinghosts: STATUS_EXPECTED int(3) NOT NULL DEFAULT '0'\n pinghosts: LOG text\nEOD;\n parent::dbInstall($data);\n }", "title": "" }, { "docid": "05e43bb76e3c12d9705b093021cc4b87", "score": "0.5353915", "text": "public function install() {\n\t\t\t$inst = new \\InstallScript();\n\n\t\t\t$inst->setTable('users');\n\t\t\t$inst->setColumn('users', 'id', 'INT(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY');\n\t\t\t$inst->setColumn('users', 'login', 'VARCHAR(128) NOT NULL');\n\t\t\t$inst->setColumn('users', 'username', 'VARCHAR(128) NOT NULL');\n\t\t\t$inst->setColumn('users', 'password', 'VARCHAR(128) NOT NULL');\n\t\t\t$inst->setColumn('users', 'email', 'VARCHAR(128) NOT NULL');\n\t\t\t$inst->setColumn('users', 'access_level', 'TINYINT(1) NOT NULL');\n\t\t\t$inst->setColumn('users', 'created', 'DATETIME NOT NULL');\n\t\t\t$inst->setColumn('users', 'activated', 'TINYINT(1) NOT NULL');\n\n\t\t\t$inst->setTable('sessions');\n\t\t\t$inst->setColumn('sessions', 'id', 'INT(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY');\n\t\t\t$inst->setColumn('sessions', 'users_id', 'INT(11) UNSIGNED');\n\t\t\t$inst->setColumn('sessions', 'token', 'VARCHAR(128) NOT NULL');\n\t\t\t$inst->setColumn('sessions', 'created', 'DATETIME NOT NULL');\n\t\t\t$inst->setColumn('sessions', 'last_used', 'DATETIME NOT NULL');\n\t\t\t$inst->setColumn('sessions', 'ip', 'VARCHAR(15)');\n\t\t\t$inst->setIndex('sessions', 'users_id');\n\t\t\t$inst->setRelation('sessions.users_id', 'users.id');\n\n\t\t\treturn $inst;\n\t\t}", "title": "" }, { "docid": "58126f19dddd96f50d59eab45d2b2a57", "score": "0.5353785", "text": "function get_ext_all_by_module($module){\n\t\t\n\t\t \t$sql= \"select * from APP_PRIVILEGE_MODULE_EXT2 where app_user_id is null and app_group_id IS NULL and module_id = $module order by PRV_DYN_PARAMS1 asc\";\n\t\t//var_dump($sql);exit;\n\t\t\n\t\t/* $q= $this->db->query($sql); \n\t\treturn $q; */\n\t\treturn $this->db->query($sql); \n\t\t \n\t}", "title": "" }, { "docid": "1d3b4c4cf208b746632e90053d15c673", "score": "0.534955", "text": "function payment_install($old_revision = 0) {\n // Create initial database table\n if ($old_revision < 1) {\n $sql = '\n CREATE TABLE IF NOT EXISTS `payment` (\n `pmtid` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,\n `date` date DEFAULT NULL,\n `description` varchar(255) NOT NULL,\n `code` varchar(8) NOT NULL,\n `value` mediumint(8) NOT NULL,\n `credit` mediumint(8) unsigned NOT NULL,\n `debit` mediumint(8) unsigned NOT NULL,\n `method` varchar(255) NOT NULL,\n `confirmation` varchar(255) NOT NULL,\n `notes` text NOT NULL,\n `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n PRIMARY KEY (`pmtid`)\n ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;\n ';\n $res = mysql_query($sql);\n if (!$res) die(mysql_error());\n }\n}", "title": "" }, { "docid": "576f93555e719595fa27bb0bad8fe8ef", "score": "0.5320515", "text": "function &create()\n {\n $name = \"atk\".atkconfig(\"database\").\"query\";\n return new $name();\n }", "title": "" }, { "docid": "b569418105ee63057b241e73cebcc6e7", "score": "0.53153336", "text": "function QuickCreate($module)\r\n{\r\n\tglobal $log;\r\n\t$log->debug(\"Entering QuickCreate(\".$module.\") method ...\");\r\n\tglobal $adb;\r\n\tglobal $current_user;\r\n\tglobal $mod_strings;\r\n\r\n\t$tabid = getTabid($module);\r\n\r\n\t//Adding Security Check\r\n\trequire('user_privileges/user_privileges_'.$current_user->id.'.php');\r\n\tif($is_admin == true || $profileGlobalPermission[1] == 0 || $profileGlobalPermission[2] == 0)\r\n\t{\r\n\t\t$quickcreate_query = \"select * from vtiger_field where quickcreate in (0,2) and tabid = ? and vtiger_field.presence in (0,2) and displaytype != 2 order by quickcreatesequence\";\r\n\t\t$params = array($tabid);\r\n\t}\r\n\telse\r\n\t{\r\n\t\t$profileList = getCurrentUserProfileList();\r\n\t\t$quickcreate_query = \"SELECT vtiger_field.*,vtiger_profile2field.* FROM vtiger_field INNER JOIN vtiger_profile2field ON vtiger_profile2field.fieldid=vtiger_field.fieldid INNER JOIN vtiger_def_org_field ON vtiger_def_org_field.fieldid=vtiger_field.fieldid WHERE vtiger_field.tabid=? AND quickcreate in (0,2) AND vtiger_profile2field.visible=0 AND vtiger_def_org_field.visible=0 AND vtiger_profile2field.profileid IN (\". generateQuestionMarks($profileList) .\") and vtiger_field.presence in (0,2) and displaytype != 2 GROUP BY vtiger_field.fieldid ORDER BY quickcreatesequence\";\r\n\t\t$params = array($tabid, $profileList);\r\n\t\t//Postgres 8 fixes\r\n\t\tif( $adb->dbType == \"pgsql\")\r\n\t\t\t$quickcreate_query = fixPostgresQuery( $quickcreate_query, $log, 0); \r\n\t}\r\n\t$category = getParentTab();\r\n\t$result = $adb->mquery($quickcreate_query, $params);\r\n\t$noofrows = $adb->num_rows($result);\r\n\t$fieldName_array = Array();\r\n\tfor($i=0; $i<$noofrows; $i++)\r\n\t{\r\n\t\t$fieldtablename = $adb->query_result($result,$i,'tablename');\r\n\t\t$uitype = $adb->query_result($result,$i,\"uitype\");\r\n\t\t$fieldname = $adb->query_result($result,$i,\"fieldname\");\r\n\t\t$fieldlabel = $adb->query_result($result,$i,\"fieldlabel\");\r\n\t\t$maxlength = $adb->query_result($result,$i,\"maximumlength\");\r\n\t\t$generatedtype = $adb->query_result($result,$i,\"generatedtype\");\r\n\t\t$typeofdata = $adb->query_result($result,$i,\"typeofdata\");\r\n\r\n\t\t//to get validationdata\r\n\t\t$fldLabel_array = Array();\r\n\t\t$fldLabel_array[getTranslatedString($fieldlabel)] = $typeofdata;\r\n\t\t$fieldName_array[$fieldname] = $fldLabel_array;\r\n\t\t$custfld = getOutputHtml($uitype, $fieldname, $fieldlabel, $maxlength, $col_fields,$generatedtype,$module,'',$typeofdata);\r\n\t\t$qcreate_arr[]=$custfld;\r\n\t}\r\n\tfor ($i=0,$j=0;$i<count($qcreate_arr);$i=$i+2,$j++)\r\n\t{\r\n\t\t$key1=$qcreate_arr[$i];\r\n\t\tif(is_array($qcreate_arr[$i+1]))\r\n\t\t{\r\n\t\t\t$key2=$qcreate_arr[$i+1];\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$key2 =array();\r\n\t\t}\r\n\t\t$return_data[$j]=array(0 => $key1,1 => $key2);\r\n\t}\r\n\t$form_data['form'] = $return_data;\r\n\t$form_data['data'] = $fieldName_array;\r\n\t$log->debug(\"Exiting QuickCreate method ...\".print_r($form_data,true));\r\n\treturn $form_data;\r\n}", "title": "" }, { "docid": "07af0431aa276fd52049dc06477c45c7", "score": "0.528363", "text": "function createDatabase()\n\t{\n\t\tglobal $db;\n\n\t\t$sql = _(\"create table IF NOT EXISTS tblNoojeeModule\n\t\t\t(\n\t\t\t\tMajorVersion int,\n\t\t\t\tMinorVersion int,\n\t\t\t\tMicroVersion int,\n\t\t\t\tFaxReturnNumber varchar(32),\n\t\t\t\tReceiptSpool varchar(1024)\n\t\t\t)\");\n\n\t\t$sth = $db->prepare($sql);\n\t\t$res = $db->execute($sth);\n\t\t// Always check that result is not an error\n\t\tif (PEAR::isError($res))\n\t\t{\n\t\t\t$msg = \"Noojee: error:Attempting to create SQL table tblNoojeeModule\" . getSQLError($res);\n\t\t\tNJLogging::error_log ( $msg);\n\t\t\tthrow new Exception ($msg);\n\t\t}\n\n\n\t\t$sql = _(\"insert into tblNoojeeModule (MajorVersion, MinorVersion, MicroVersion, FaxReturnNumber, ReceiptSpool)\n\t\t\t\t\tvalues (1,0,0,'Noojee Fax', '/var/spool/njfax/incoming')\");\n\n\t\t$sth = $db->prepare($sql);\n\t\t$res = $db->execute($sth);\n\t\t// Always check that result is not an error\n\t\tif (PEAR::isError($res))\n\t\t{\n\t\t\t$msg = \"Noojee: error:Attempting to load defaults into SQL table tblNoojeeModule\" . getSQLError($res);\n\t\t\tNJLogging::error_log ($msg );\n\t\t\tthrow new Exception ($msg );\n\t\t}\n\t\tneedreload();\n\t}", "title": "" }, { "docid": "5de71608fe6ee8d15448cdee31af7662", "score": "0.528238", "text": "public function install()\n {\n // create blocks table\n // appropriate error message and return\n if (!DBUtil::createTable('blocks')) {\n return false;\n }\n\n // create userblocks table\n if (!DBUtil::createTable('userblocks')) {\n return false;\n }\n\n // create block positions table\n if (!DBUtil::createTable('block_positions')) {\n return false;\n }\n\n // create block placements table\n if (!DBUtil::createTable('block_placements')) {\n return false;\n }\n\n // Set a default value for a module variable\n $this->setVar('collapseable', 0);\n\n // Initialisation successful\n return true;\n }", "title": "" }, { "docid": "0ac0c1367e0804bd85a809591edca5ca", "score": "0.52783746", "text": "public function createQuery()\n\t{\n\t\treturn $this->pp->createQuery('modules_documentcard/preferences');\n\t}", "title": "" }, { "docid": "b5a94b26a035abc005d733af27ec705c", "score": "0.5278179", "text": "public function installDatabase()\n {\n return false;\n }", "title": "" }, { "docid": "08cada7363ca581ba3b523df19ee0ad9", "score": "0.52618104", "text": "public function install()\n {\n //Create database table\n $this->createTables();\n // Add cron tasks for this module\n $this->addCronTasks($this->getCronTasks());\n }", "title": "" }, { "docid": "0af22678ac490a2daf0525facda1146c", "score": "0.5250823", "text": "public function Install()\n\t{\n\t\t$tables = $sequences = array();\n\n\t\t$this->db->StartTransaction();\n\n\t\trequire dirname(__FILE__) . '/schema.' . SENDSTUDIO_DATABASE_TYPE . '.php';\n\t\tforeach ($queries as $query) {\n\t\t\t$qry = str_replace('%%TABLEPREFIX%%', $this->db->TablePrefix, $query);\n\t\t\t$result = $this->db->Query($qry);\n\t\t\tif (!$result) {\n\t\t\t\t$this->db->RollbackTransaction();\n\t\t\t\tthrow new Interspire_Addons_Exception(\"There was a problem running query \" . $qry . \": \" . $this->db->GetErrorMsg(), Interspire_Addons_Exception::DatabaseError);\n\t\t\t}\n\t\t}\n\n\t\t$this->enabled = true;\n\t\t$this->configured = true;\n try {\n\t\t\t$status = parent::Install();\n\t\t} catch (Interspire_Addons_Exception $e) {\n\t\t\t$this->db->RollbackTransaction();\n\t\t\tthrow new Exception(\"Unable to install addon {$this->GetId()} \" . $e->getMessage());\n\t\t}\n\n\t\t$this->db->CommitTransaction();\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "850ab97c2644226d5ce0cebcc9b92cc9", "score": "0.52421635", "text": "public function run_install()\n\t{\n\t\t// Create the database tables\n\t\t// Include the table_prefix\n $table_prefix = Kohana::config('database.default.table_prefix');\n\n // messages table\n\t\t$this->db->query(\"\n CREATE TABLE IF NOT EXISTS `\" . $table_prefix . self::TABLE_NAME . \"_messages_data` (\n\t\t\t\t\t`id` int(11) NOT NULL AUTO_INCREMENT,\n\t\t\t\t\t`field_name` varchar(45) NOT NULL,\n\t\t\t\t\t`value` text NOT NULL,\n\t\t\t\t\t`message_id` int(11) NOT NULL,\n\t\t\t\t\tPRIMARY KEY (`id`),\n\t\t\t\t\tKEY `message_id` (`message_id`)\n\t\t\t\t) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Holds all socialmedia info crawled by subplugins';\");\n\n\t\t// settings table\n\t\t$this->db->query(\"CREATE TABLE IF NOT EXISTS `\" . $table_prefix . self::TABLE_NAME . \"_settings` (\n\t\t\t\t\t\t`id` int(11) unsigned NOT NULL AUTO_INCREMENT,\n\t\t\t\t\t\t`setting` varchar(40) DEFAULT NULL,\n\t\t\t\t\t\t`value` TEXT DEFAULT NULL,\n\t\t\t\t\t\tPRIMARY KEY (`id`),\n\t\t\t\t\t\tUNIQUE KEY `setting_UNIQUE` (`setting`)\n\t\t\t\t) ENGINE=InnoDB DEFAULT CHARSET=utf8;\");\n\n\t\t// keywords table\n\t\t$this->db->query(\"CREATE TABLE IF NOT EXISTS `\" . $table_prefix . self::TABLE_NAME . \"_keywords` (\n\t\t\t\t\tid int(11) unsigned NOT NULL AUTO_INCREMENT,\n\t\t\t\t\tkeyword varchar(40) DEFAULT NULL,\n\t\t\t\t\tdisabled boolean,\n\t\t\t\t\tPRIMARY KEY (`id`)\n\t\t\t\t) ENGINE=InnoDB DEFAULT CHARSET=utf8;\");\n\n\t\t/*$this->db->query(\"CREATE TABLE `\" . $table_prefix . self::TABLE_NAME . \"_authors` (\n\t\t\t\t\t`id` int(11) NOT NULL AUTO_INCREMENT,\n\t\t\t\t\t`author` varchar(255) NOT NULL,\n\t\t\t\t\t`channel_id` varchar(255) NOT NULL,\n \t\t\t\t\t`channel` varchar(20) NOT NULL,\n \t\t\t\t\t`status` int(11) NOT NULL,\n\t\t\t\t\tPRIMARY KEY (`id`)\n\t\t) ENGINE=InnoDB DEFAULT CHARSET=utf8;\");*/\n\n\t\t// assets table\n\t\t$this->db->query(\"CREATE TABLE IF NOT EXISTS `\" . $table_prefix . self::TABLE_NAME . \"_asset` (\n\t\t\t`id` int(11) NOT NULL AUTO_INCREMENT,\n\t\t\t`type` varchar(45) NOT NULL COMMENT 'Holds media type (url, picture, video)',\n\t\t\t`url` text NOT NULL,\n\t\t\t`message_id` int(11) NOT NULL,\n\t\t\tPRIMARY KEY (`id`)\n\t\t) ENGINE=InnoDB DEFAULT CHARSET=utf8;\");\n\n\t\t// Add crawler in to scheduler table\n\t\t$this->db->query(\"INSERT IGNORE INTO `\" . $table_prefix . \"scheduler`\n\t\t\t\t(`scheduler_name`,`scheduler_last`,`scheduler_weekday`,`scheduler_day`,`scheduler_hour`,`scheduler_minute`,`scheduler_controller`,`scheduler_active`) VALUES\n\t\t\t\t('Ushahidi-SocialMedia','0','-1','-1','-1','-1','s_socialmedia','1')\");\n\t}", "title": "" }, { "docid": "f7670f0cc900a238f05c54d26677187c", "score": "0.5238529", "text": "public function install_module_members_table()\n {\n\t\t$this->_EE->load->dbforge();\n\t\t\t\t\n\t\t$fields = array(\n\t\t\t'id' => array(\n\t\t\t\t'type' \t\t\t => 'INT',\n\t\t\t\t'constraint' \t => 10,\n\t\t\t\t'unsigned'\t\t => TRUE,\n\t\t\t\t'auto_increment' => TRUE\n\t\t\t\t),\n\t\t\t'site_id' => array(\n\t\t\t\t'type' \t\t\t => 'INT',\n\t\t\t\t'constraint' \t => 10,\n\t\t\t\t'unsigned'\t\t => TRUE\n\t\t\t\t),\n\t\t\t'member_id' => array(\n\t\t\t\t'type' \t\t\t=> 'INT',\n\t\t\t\t'constraint' \t=> 10,\n\t\t\t\t'unsigned'\t\t=> TRUE\n\t\t\t\t),\n\t\t\t'config' => array(\n\t\t\t\t'type'\t\t\t=> 'TEXT',\n\t\t\t\t'null'\t\t\t=> TRUE\n\t\t\t\t)\n\t\t\t);\n\t\t\t\n\t\t$this->_EE->dbforge->add_field($fields);\n\t\t$this->_EE->dbforge->add_key('id', TRUE);\n\t\t$this->_EE->dbforge->create_table('dashee_members', TRUE);\n }", "title": "" }, { "docid": "3b1341bac7852b2d3882661a74a7ae57", "score": "0.5238315", "text": "function install() {\n\t\t$schemaFile = TRELLO_PLUGIN_ROOT . 'install/sql/install_trello.sql'; // DB dump.\n\t\treturn $this->runJob ( $schemaFile );\n\t}", "title": "" }, { "docid": "36c9d077b785a76f48e560b5f33c8678", "score": "0.5227853", "text": "public function install()\n {\n $this->createDatabase();\n // extend order extjs module\n $this->subscribeEvent(\n 'Enlight_Controller_Action_PreDispatch_Backend_Config',\n 'onPreDispatchBackendConfig'\n );\n // add path to backend-controller\n $this->subscribeEvent(\n 'Enlight_Controller_Dispatcher_ControllerPath_Backend_NfxAbTesting',\n 'onGetBackendController'\n );\n return array('success' => true, 'invalidateCache' => array('backend'));\n }", "title": "" }, { "docid": "2398fadaffa36ee068fc075151cf931e", "score": "0.52259237", "text": "function upgrade_module_1_1_0($module)\n{\n /**\n * Do everything you want right there,\n * You could add a column in one of your module's tables\n */\n\n return true;\n}", "title": "" }, { "docid": "3b94712da49e47d3650cad84c677d96a", "score": "0.5218808", "text": "public function install();", "title": "" }, { "docid": "0dd60ede3f4d3ca83e217373c38ac4df", "score": "0.52187943", "text": "public function install()\n\t{\n\t\t$this->install_new_user = 'INSERT INTO %pusers ( user_name, user_password, user_group, user_title, user_title_custom, user_joined, user_email, user_timezone) VALUES ( \\'%s\\', \\'%s\\', %d, \\'Administrator\\', 1, %d, \\'%s\\', %d)';\n\t\t$this->install_seed_topic_create = 'INSERT INTO %ptopics (topic_title, topic_forum, topic_description, topic_starter, topic_icon, topic_posted, topic_edited, topic_last_poster, topic_modes) VALUES (\\'%s\\', %d, \\'%s\\', %d, \\'%s\\', %d, %d, %d, %d)';\n\t\t$this->install_seed_post_create = 'INSERT INTO %pposts (post_topic, post_author, post_text, post_time, post_emoticons, post_mbcode, post_ip, post_icon) VALUES (%d, %d, \\'%s\\', %d, 1, 1, \\'%s\\', \\'%s\\')';\n\t\t$this->install_seed_update_topic = 'UPDATE %ptopics SET topic_last_post=%d WHERE topic_id=%d';\n\t\t$this->install_seed_update_user = 'UPDATE %pusers SET user_posts=user_posts+1, user_lastpost=%d WHERE user_id=%d';\n\t\t$this->install_seed_update_forums = 'UPDATE %pforums SET forum_topics=forum_topics+1, forum_lastpost=%d WHERE forum_id=%d';\n\t}", "title": "" }, { "docid": "3b94712da49e47d3650cad84c677d96a", "score": "0.52175754", "text": "public function install();", "title": "" }, { "docid": "3b94712da49e47d3650cad84c677d96a", "score": "0.52175754", "text": "public function install();", "title": "" }, { "docid": "3b94712da49e47d3650cad84c677d96a", "score": "0.52175754", "text": "public function install();", "title": "" }, { "docid": "d5572a23ce6ea6ca7fe10575fa8a3dad", "score": "0.5188954", "text": "public function installation() {\r\n\t\t$sql = '\r\n\t\tCREATE TABLE IF NOT EXISTS `Notes` (\r\n\t\t\t`id` INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,\r\n\t\t\t`note_title` VARCHAR(75) NOT NULL,\r\n\t\t\t`noteContent` VARCHAR(75) NOT NULL\r\n\t\t)';\r\n\t\t\r\n\t\t$this->sql = $sql;\r\n\t\t$this->executeSql();\r\n\t}", "title": "" }, { "docid": "00659340c1590aabe8e5a43f8ade18b4", "score": "0.5188253", "text": "abstract public function generateQuery();", "title": "" }, { "docid": "4ccc58800420e7cebe51bed2eb077fe0", "score": "0.51880133", "text": "public function install()\n {\n if($this->createDatabase())\n {\n //$this->db->disconnect(); // disconnect from master and continue with new login.\n unset($this->db);\n\n $this->db = (new DbHandler($this->applicationDbParams))->getDbProvider();\n if($this->db) {\n $this->createUserTables();\n if($userCreated = $this->populateUserTables())\n {\n return $userCreated;\n //TODO: Write the conn params to a readable file.\n }\n }\n };\n return false;\n }", "title": "" }, { "docid": "d14c130c14f822eecc1db0eef8f9fd9e", "score": "0.5177305", "text": "public function install(){\t\n\t\t$this->obj_db->prepareAndDoQuery(\"CREATE TABLE `motorvehiclewatchlist` (\n `motorvehiclewatchlist_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n `user_id` int(11) unsigned DEFAULT NULL,\n `customer_id` int(11) unsigned DEFAULT NULL,\n `updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n `created` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',\n PRIMARY KEY (`motorvehiclewatchlist_id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8\" , array());\n\t\t\t\n\t\t$this->obj_db->prepareAndDoQuery(\"CREATE TABLE `motorvehiclewatchlistitem` (\n `motorvehiclewatchlistitem_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n `motorvehiclewatchlist_id` bigint(20) unsigned NOT NULL,\n `motorvehicle_id` int(11) unsigned DEFAULT NULL,\n `updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n PRIMARY KEY (`motorvehiclewatchlistitem_id`),\n UNIQUE KEY `motorvehiclewatchlistitem_id_2` (`motorvehiclewatchlistitem_id`,`motorvehicle_id`),\n KEY `motorvehiclewatchlist_id` (`motorvehiclewatchlist_id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8\" , array());\t\n\t\n\t}", "title": "" }, { "docid": "f3b79184d4e3b02891a6358d8cc10257", "score": "0.517084", "text": "function install() {\n global $db, $messageStack;\n if (defined('MODULE_PAYMENT_PAYPALHSS_STATUS')) {\n $messageStack->add_session('PayPal Website Payments Pro Hosted module already installed.', 'error');\n zen_redirect(zen_href_link(FILENAME_MODULES, 'set=payment&module=paypalhss', 'NONSSL'));\n return 'failed';\n }\n\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable PayPal Module', 'MODULE_PAYMENT_PAYPALHSS_STATUS', 'True', 'Do you want to accept PayPal payments?', '6', '0', 'zen_cfg_select_option(array(\\'True\\', \\'False\\'), ', now())\");\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('PayPal API Username', 'MODULE_PAYMENT_PAYPALHSS_API_USERNAME','', 'Your PayPal API Username can be found in Profile > API Access > Request API Credentials in your PayPal account. Choose the Request API Signature option.<br />NOTE: This must match <strong>EXACTLY </strong>the API Username value.', '6', '1', now())\");\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('PayPal API Password', 'MODULE_PAYMENT_PAYPALHSS_API_PASSWORD','', 'Your PayPal API Password can be found in Profile > API Access > Request API Credentials in your PayPal account. Choose the Request API Signature option.<br />NOTE: This must match <strong>EXACTLY </strong>the API Password value.', '6', '2', now())\");\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('PayPal API Signature', 'MODULE_PAYMENT_PAYPALHSS_API_SIGNATURE','', 'Your PayPal API Signature can be found in Profile > API Access > Request API Credentials in your PayPal account. Choose the Request API Signature option.<br />NOTE: This must match <strong>EXACTLY </strong>the API Signature value.', '6', '3', now())\");\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Payment Action', 'MODULE_PAYMENT_PAYPALHSS_TRANSACTION_MODE', 'Final Sale', 'How do you want to obtain payment?<br /><strong>Default: Final Sale</strong>', '6', '25', 'zen_cfg_select_option(array(\\'Auth Only\\', \\'Final Sale\\'), ', now())\"); \n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Transaction Currency', 'MODULE_PAYMENT_PAYPALHSS_CURRENCY', 'Selected Currency', 'Which currency should the order be sent to PayPal as? <br />NOTE: if an unsupported currency is sent to PayPal, it will be auto-converted to USD.', '6', '3', 'zen_cfg_select_option(array(\\'Selected Currency\\', \\'Only USD\\', \\'Only AUD\\', \\'Only CAD\\', \\'Only EUR\\', \\'Only GBP\\', \\'Only CHF\\', \\'Only CZK\\', \\'Only DKK\\', \\'Only HKD\\', \\'Only HUF\\', \\'Only JPY\\', \\'Only NOK\\', \\'Only NZD\\', \\'Only PLN\\', \\'Only SEK\\', \\'Only SGD\\', \\'Only THB\\', \\'Only MXN\\', \\'Only ILS\\', \\'Only PHP\\', \\'Only TWD\\', \\'Only BRL\\', \\'Only MYR\\'), ', now())\");\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_PAYPALHSS_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '4', 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())\");\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Pending Notification Status', 'MODULE_PAYMENT_PAYPALHSS_PROCESSING_STATUS_ID', '\" . DEFAULT_ORDERS_STATUS_ID . \"', 'Set the status of orders made with this payment module that are not yet completed to this value<br />(\\'Pending\\' recommended)', '6', '5', 'zen_cfg_pull_down_order_statuses(', 'zen_get_order_status_name', now())\");\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_PAYPALHSS_ORDER_STATUS_ID', '2', 'Set the status of orders made with this payment module that have completed payment to this value<br />(\\'Processing\\' recommended)', '6', '6', 'zen_cfg_pull_down_order_statuses(', 'zen_get_order_status_name', now())\");\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort order of display.', 'MODULE_PAYMENT_PAYPALHSS_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '8', now())\");\n $db->Execute(\"insert into \" . TABLE_CONFIGURATION . \" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Live or Sandbox', 'MODULE_PAYMENT_PAYPALHSS_SERVER', 'live', '<strong>Live: </strong> Used to process Live transactions<br/><strong>Sandbox: </strong>For developers and testing', '6', '25', 'zen_cfg_select_option(array(\\'live\\', \\'sandbox\\'), ', now())\");\n\n $this->notify('NOTIFY_PAYMENT_PAYPALHSS_INSTALLED');\n }", "title": "" }, { "docid": "874b2030e7b84f5ecd778138d5a47368", "score": "0.51665145", "text": "public function createQuery()\n {\n return $this->createModel()->newQuery();\n }", "title": "" }, { "docid": "6e32df2bebbc8b2f542df3764d69c2c1", "score": "0.51524246", "text": "public function install() {\n\t \n\t $sql = \"CREATE TABLE `\".DB_PREFIX.\"product_to_bind_image` (id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY,\";\n $sql .= \"`product_id` INT(10),\";\n $sql .= \"`sku_bind` VARCHAR(64),\";\n\t $sql .= \"`image_for_bind` TEXT(1024))\";\n\t $this->db->query( $sql );\n\t\t\t \n }", "title": "" }, { "docid": "dd02022dd9151f0fee8120482283126b", "score": "0.51346385", "text": "public static function install();", "title": "" }, { "docid": "a085b4b113800931492f2a3a84bf510a", "score": "0.5133936", "text": "private function create()\n\t{\n\t\t$tableExists = $this->connection->query(\"SHOW TABLES LIKE '{$this->tableName}'\")->rowCount();\n\t\treturn !$tableExists ? $this->createTable() : $this->updateTable();\n\t}", "title": "" }, { "docid": "7fce0fc4ac5be884ddaf328777364e9a", "score": "0.5126618", "text": "abstract public function newQuery();", "title": "" }, { "docid": "d16951efa2d1cf49e52a0c719fb9bbe4", "score": "0.5109105", "text": "public function install() {\n\n $sql = \"CREATE TABLE `localplay_vlc` (`id` INT( 11 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY , \".\n \"`name` VARCHAR( 128 ) COLLATE utf8_unicode_ci NOT NULL , \" .\n \"`owner` INT( 11 ) NOT NULL, \" .\n \"`host` VARCHAR( 255 ) COLLATE utf8_unicode_ci NOT NULL , \" .\n \"`port` INT( 11 ) UNSIGNED NOT NULL , \" .\n \"`password` VARCHAR( 255 ) COLLATE utf8_unicode_ci NOT NULL , \" .\n \"`access` SMALLINT( 4 ) UNSIGNED NOT NULL DEFAULT '0'\" .\n \") ENGINE = MYISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci\";\n $db_results = Dba::query($sql);\n\n // Add an internal preference for the users current active instance\n Preference::insert('vlc_active','VLC Active Instance','0','25','integer','internal');\n User::rebuild_all_preferences();\n\n return true;\n\n }", "title": "" }, { "docid": "d3d8289438b5d07516ab3740c67ae525", "score": "0.5108089", "text": "private function _install() {\n\t\t$filePath = DIR_INSTALL. DS. 'uwc.sql';\n\t\t/*$installContent = array_filter(array_map('trim', explode(PHP_EOL, file_get_contents($filePath))));\n\t\t\n\t\t$queryParts = array();\n\t\t$queriesStart = array('CREATE TABLE', 'INSERT INTO');\n\t\t$queriesIgnore = array('--', '/*', 'SET SQL_MODE', 'SET time_zone');\n\t\tforeach($installContent as $line) {\n\t\t\t$ignore = false;\n\t\t\tforeach($queriesIgnore as $ignoreStr) {\n\t\t\t\tif(strpos($line, $ignoreStr) === 0) {\n\t\t\t\t\t$ignore = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($ignore) continue;\n\t\t\tforeach($queriesStart as $canStartStr) {\n\t\t\t\tif(strpos($line, $canStartStr) !== false) {\n\t\t\t\t\tif(!empty($queryParts)) {\n\t\t\t\t\t\t$this->_execInstallQuery($queryParts);\n\t\t\t\t\t}\n\t\t\t\t\t$queryParts = array();\n\t\t\t\t}\n\t\t\t}\n\t\t\t$queryParts[] = $line;\n\t\t}\n\t\tif(!empty($queryParts)) {\n\t\t\t$this->_execInstallQuery( $queryParts );\n\t\t}\n\t\t*/\n\t\t$command = \"mysql -u \". DB_USER. \" --password='\". DB_PASSWD. \"' --host='\". DB_HOST. \"' \". DB_NAME. \" < $filePath\";\n\t\texec($command);\n\t}", "title": "" }, { "docid": "42982c79bcb7a1c59b1d8654e1ae79e9", "score": "0.51053554", "text": "function install(){}", "title": "" }, { "docid": "90ca4c3fcde7d2b7eb040861d6dfbbb7", "score": "0.5104849", "text": "public function install()\n {\n if (file_exists($this->getLocalPath().'sql/install.php'))\n include_once ($this->getLocalPath().'sql/install.php');\n\n return parent::install() &&\n $this->registerHook('header') &&\n $this->registerHook('displayBrandsOnCategoryPage') &&\n $this->registerHook('backOfficeHeader');\n }", "title": "" }, { "docid": "be6350863e36b80dae3838dae8e92460", "score": "0.51027656", "text": "public function createQuery()\n\t{\n\t\t$columns = [];\n\t\t$fields = $this->getFields();\n\t\tforeach ($fields as $field => $dc) {\n//\t\t\tdebug($field);\n\t\t\t$f = new TableField();\n\t\t\t$f->field = $field;\n\t\t\t$f->comment = $dc->getDescription();\n\t\t\t$f->type = $f->fromPHP($dc->get('var')) ?: 'varchar';\n\t\t\tif (class_exists($f->type)) {\n\t\t\t\t$re = new ReflectionClass($f->type);\n\t\t\t\t$id = $re->getProperty('id');\n\t\t\t\t$dc2 = new DocCommentParser($id->getDocComment());\n\n\t\t\t\t$type = new $f->type;\n\n\t\t\t\t$f->type = $dc2->get('var')\n\t\t\t\t\t? first(trimExplode(' ', $dc2->get('var')))\n\t\t\t\t\t: 'varchar';\n\t\t\t\t$f->references = $type->table . '(' . $type->idField . ')';\n\t\t\t}\n\t\t\t$columns[] = $f;\n\t\t}\n\t\t$at = new AlterTable();\n\t\t$handler = $at->handler;\n\t\treturn $handler->getCreateQuery($this->table, $columns);\n\t}", "title": "" }, { "docid": "e1f352042e26c223b3634a540b68bead", "score": "0.5098867", "text": "public function buildInstall() {\n $this->devXdebugDisable();\n $this->devConfigWriteable();\n\n\n $successful = $this->_exec(\"$this->drush_cmd site-install\" .\n \" $this->drupal_profile install_configure_form.update_status_module='array(FALSE,FALSE)' -y\" .\n \" --db-url=\" . $this->getDatabaseUrl() .\n \" --account-mail=\" . $this->config['site']['admin_email'] .\n \" --account-name=\" . $this->config['site']['admin_user'] .\n \" --account-pass=\" . $this->config['site']['admin_password'] .\n \" --site-name='\" . $this->config['site']['site_title'] . \"'\")\n ->wasSuccessful();\n\n // Re-set settings.php permissions.\n $this->devConfigReadOnly();\n\n $this->checkFail($successful, 'drush site-install failed.');\n\n $this->devCacheRebuild();\n $this->devXdebugEnable();\n }", "title": "" }, { "docid": "218f13e16a9a4b33c4281221d63f2987", "score": "0.5090606", "text": "public function install()\n {\n $this->subscribeEvent('Enlight_Controller_Dispatcher_ControllerPath_Backend_SwagDisableArticleDiscount', 'onGetControllerPathBackend');\n\n $this->subscribeEvent('sBasket::sInsertDiscount::before', 'beforeInsertDiscount');\n $this->subscribeEvent('sBasket::sInsertDiscount::after', 'afterInsertDiscount');\n\n $parent = $this->Menu()->findOneBy(array('label' => 'Einstellungen'));\n\n $this->createMenuItem(array(\n 'label' => 'Artikel vom Rabatt ausschließen',\n 'controller' => 'SwagDisableArticleDiscount',\n 'action' => 'index',\n 'class' => 'sprite-shopping-basket',\n 'active' => 1,\n 'parent' => $parent\n )\n );\n\n Shopware()->Db()->query(\"CREATE TABLE IF NOT EXISTS `s_plugin_articles_disable` (\n\t\t\t`id` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,\n\t\t\t`articleID` INT( 11 ) NOT NULL ,\n\t\t\t`name` VARCHAR( 255 ) NOT NULL ,\n\t\t\t`ordernumber` VARCHAR( 255 ) NOT NULL\n\t\t)\");\n\n return array('success' => true, 'invalidateCache' => array('backend'));\n }", "title": "" }, { "docid": "3c30cfc4f4819cc707ec0fbf0eb247c8", "score": "0.5086989", "text": "protected function _version_qry(): string {\n return 'SELECT VERSION() AS ver';\n }", "title": "" }, { "docid": "5553569cfcea84866ce9b6bb03813939", "score": "0.5084188", "text": "function ft_createDBQuery($db_name) {\n\n $dbQuery = \"CREATE DATABASE IF NOT EXISTS $db_name\";\n return $dbQuery;\n }", "title": "" } ]
72c02e1f7ab14efaf113bdc77fb50e3e
Gets item from collection.
[ { "docid": "60457d5f9698e0d3039c3d287823582a", "score": "0.6365618", "text": "public function get($name)\n {\n return $this->contains($name) ? $this->items[$name] : null;\n }", "title": "" } ]
[ { "docid": "2221165cfb324bcaf5ffa2559f6013a2", "score": "0.6939584", "text": "public function get($key) {\n return $this->collection[$key];\n }", "title": "" }, { "docid": "322e2a610f0fa3f4d14d8c4f6bb2b6b5", "score": "0.69356906", "text": "protected function getItem()\r\n {\r\n $id = $this->getId();\r\n if($id === null || $id < 1) {\r\n return false;\r\n }\r\n\r\n $item = $this->getMapper()->findById($id);\r\n if ($item === null) {\r\n return false;\r\n }\r\n\r\n return $item;\r\n }", "title": "" }, { "docid": "ea8594378f223431df54fb604a969d5b", "score": "0.6931913", "text": "public function get_item() {\n\n\t\tif ( $this->item ) {\n\t\t\treturn $this->item;\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "acf271a006a147d773d25421d5dd5bf4", "score": "0.6818751", "text": "public function getItem()\n {\n return $this->get(self::ITEM);\n }", "title": "" }, { "docid": "805b8882d6449d20fd62c90ea413f7f9", "score": "0.6816089", "text": "public function getItem() {\n\t\treturn $this->item;\n\t}", "title": "" }, { "docid": "44a8b541de153c6d83b25a115e0d3439", "score": "0.68004155", "text": "public function get( $item );", "title": "" }, { "docid": "722cbcf89a011ae3d808fe9d4b84bc13", "score": "0.67076063", "text": "public function getItem()\n {\n return $this->item;\n }", "title": "" }, { "docid": "722cbcf89a011ae3d808fe9d4b84bc13", "score": "0.67076063", "text": "public function getItem()\n {\n return $this->item;\n }", "title": "" }, { "docid": "722cbcf89a011ae3d808fe9d4b84bc13", "score": "0.67076063", "text": "public function getItem()\n {\n return $this->item;\n }", "title": "" }, { "docid": "722cbcf89a011ae3d808fe9d4b84bc13", "score": "0.67076063", "text": "public function getItem()\n {\n return $this->item;\n }", "title": "" }, { "docid": "b5c5cb3f46750d683fb5756e83b1d840", "score": "0.6691315", "text": "public function item()\n\t{\n\t\treturn $this->_item;\n\t}", "title": "" }, { "docid": "0dfbc58df75c04f97ed6fed23bcb18e6", "score": "0.6652388", "text": "public function first()\n {\n return $this->items->first();\n }", "title": "" }, { "docid": "0b06e5da5b22289ff53941a5cd3b5892", "score": "0.6617257", "text": "public function get($collection);", "title": "" }, { "docid": "4002429b2be925aeca8ff8d326292cbc", "score": "0.66094655", "text": "function item ()\n\t{\n\t\tif ( $this->has ( $this->_idx) )\n\t\t{\n\t\t\treturn $this->_selection[$this->_idx] ;\n\t\t}\n\n\t\treturn null ;\n\t}", "title": "" }, { "docid": "24c1dedd67f7a6de71de7a52fc3ddaef", "score": "0.65353733", "text": "public function get($key)\n {\n if ($this->exists($key)) {\n return $this->collection[$key];\n }\n return null;\n }", "title": "" }, { "docid": "198ede89ac8b5038dcaeab6ab6e88c34", "score": "0.6515247", "text": "public function fetchOne()\n {\n $value = null;\n if ( $item = current($this->_items) ) {\n $value = current((array) $item);\n }\n return $value;\n }", "title": "" }, { "docid": "9455ab3fb09c5706b1612144bcbe201d", "score": "0.6503309", "text": "public function get($key) {\r\n\t\t\tif ($this->contains($key))\r\n\t\t\t\treturn $this->items[$key];\r\n\t\t\telse\r\n\t\t\t\treturn null;\r\n\t\t}", "title": "" }, { "docid": "a2216084f389dd7f250a86b270904415", "score": "0.64978564", "text": "public function getItem()\n {\n if ($this->_item) {\n return $this->_item;\n }\n return false;\n }", "title": "" }, { "docid": "cc9f664d1b31dc7d35b73407fa21e35d", "score": "0.6477606", "text": "public function get($key){\n return $this->items[$key];\n }", "title": "" }, { "docid": "3aaa7fb866a64f1916f8c380a67a9d1f", "score": "0.6412722", "text": "public function __get($name)\n\t{\n\t\tif($this->contains($name))\n\t\t\treturn $this->itemAt($name);\n\t\telse\n\t\t\treturn parent::__get($name);\n\t}", "title": "" }, { "docid": "1bbe2efc5b8785b91361ad2b2e1243bc", "score": "0.6398386", "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": "4f787ba8b8734419c9b83a8907fd7097", "score": "0.63968515", "text": "protected function _retrieveCollection()\n {\n $data = $this->_getCollectionForRetrieve()->load()->toArray();\n return isset($data['items']) ? $data['items'] : $data;\n }", "title": "" }, { "docid": "4f8726281bf0f14c6d42515bc06777f9", "score": "0.63555396", "text": "public function getFirst()\n {\n $lookup = $this->_collection;\n return array_shift($lookup);\n }", "title": "" }, { "docid": "6d701a708f35c045f2cf6c28daa40d63", "score": "0.63438165", "text": "public function get($key)\n\t{\n\t\tif (isset($this->items[$key]))\n\t\t\treturn $this->items[$key];\n\t\telse\n\t\t\treturn null;\n\t}", "title": "" }, { "docid": "f8a2892d20672feae4e8a6a5673c6b51", "score": "0.63073266", "text": "public function &get($position)\n {\n $item = null;\n\t\t$item = $this->items[$position];\n return $item;\n }", "title": "" }, { "docid": "007fa3845ee0ca2af3734853c5d38aae", "score": "0.6293498", "text": "public function item($key)\n\t{\n\t\tif ( ! isset($this->info['items'][$key]))\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\treturn $this->info['items'][$key];\n\t}", "title": "" }, { "docid": "931cd03edb97ac500b6528d8038cfe27", "score": "0.62750584", "text": "public function offsetGet($offset) {\n return $this->_items[$offset];\n }", "title": "" }, { "docid": "af996e4e0691f02523362e7a5413ce79", "score": "0.6274624", "text": "public function get($id)\n {\n foreach ($this->items as $item) {\n if ($item->id === $id) {\n return $item;\n }\n }\n return null;\n }", "title": "" }, { "docid": "f8eb96164ef5cc38f096a787d57a74a4", "score": "0.6271803", "text": "public function getItem($name) {\n return (isset($this->items[$name]) ? $this->items[$name] : NULL);\n }", "title": "" }, { "docid": "9a6c9f20d8d2656d8e46c80db165c294", "score": "0.62665004", "text": "public function getItemById($key)\n {\n if (array_key_exists($key, $this->items)) {\n return $this->items[$key];\n }\n\n return null;\n }", "title": "" }, { "docid": "ae2e7f5fa36d31598be7ff85b6dbfba9", "score": "0.6264432", "text": "public function getItem($id){\n\t\t$sql = \"select * from sp_items where id=?\";\n\t\t$unit = $this->runRequest($sql, array($id));\n\t\tif ($unit->rowCount() == 1)\n\t\t\treturn $unit->fetch(); // get the first line of the result\n\t\telse\n\t\t\tthrow new Exception(\"Cannot find the item using the given id = \" . $id);\n\t}", "title": "" }, { "docid": "84122c5e043c6cebd3b671b5bce04749", "score": "0.6263828", "text": "public function offsetGet($key)\n {\n return $this->items[$key];\n }", "title": "" }, { "docid": "84122c5e043c6cebd3b671b5bce04749", "score": "0.6263828", "text": "public function offsetGet($key)\n {\n return $this->items[$key];\n }", "title": "" }, { "docid": "8b6e2e64aa238a53ef60bcc9c94f87ae", "score": "0.6259225", "text": "public function offsetGet($key): mixed\n {\n return $this->items[$key];\n }", "title": "" }, { "docid": "25d40da576f2136569a37a3d6da6f97e", "score": "0.62506735", "text": "protected function &get($position) \n { \n $item = $this->implementor->get($position); \n return $item;\n }", "title": "" }, { "docid": "baf686cdd60744ec44965715bc236652", "score": "0.62505716", "text": "public function first()\n {\n return $this->items ? reset($this->items) : null;\n }", "title": "" }, { "docid": "ad806c56e603c7f4dff9d0971004fc68", "score": "0.6249221", "text": "abstract public function get_Item();", "title": "" }, { "docid": "f7ee7e75e4ac645f2075f4ce8a5874f1", "score": "0.6245813", "text": "public function offsetGet($offset) {\n return $this->items[$offset];\n }", "title": "" }, { "docid": "1683934fd41c5b47b51492762fd28f22", "score": "0.6239834", "text": "public function getItem()\n {\n if (!isset($this->_item))\n {\n if($this->isConnected())\n {\n $query = null;\n\n if($this->_state->isUnique())\n {\n $query = $this->getTable()->getDatabase()->getQuery();\n\n $this->_buildQueryColumns($query);\n $this->_buildQueryFrom($query);\n $this->_buildQueryJoins($query);\n $this->_buildQueryWhere($query);\n $this->_buildQueryGroup($query);\n $this->_buildQueryHaving($query); \n }\n\n $this->_item = $this->getTable()->select($query, KDatabase::FETCH_ROW); \n } \n }\n\n return $this->_item; \n }", "title": "" }, { "docid": "96dfc63a0b79c1eeccc54ae762b2673e", "score": "0.62306345", "text": "public function first()\n {\n if ($this->isEmpty()) {\n throw new ItemNotFound;\n }\n\n return $this->resetKeys()->get(0);\n }", "title": "" }, { "docid": "3cef0723f52e12d9c169e0dc34012a1e", "score": "0.6227622", "text": "public function first()\n\t{\n\t\tif (!$this->count()) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn $this->collection[$this->keys()->all()[0]];\n\t}", "title": "" }, { "docid": "313f0b369eede8432067fc29bb081c29", "score": "0.62050974", "text": "public function offsetGet($index) {\n return $this->_items[$index];\n }", "title": "" }, { "docid": "295b8043a4ff8f59782c834a078b5778", "score": "0.62009084", "text": "public static function getItem() {\n return Item::where(\"id\", request()->input(\"item\"))\n ->where(\"vendor_id\", 1)\n ->first();\n }", "title": "" }, { "docid": "4bcbe9a95550a2629b194331e9f8c8ed", "score": "0.6198769", "text": "public function offsetGet($key)\n {\n return $this->items[$key];\n }", "title": "" }, { "docid": "4bcbe9a95550a2629b194331e9f8c8ed", "score": "0.6198769", "text": "public function offsetGet($key)\n {\n return $this->items[$key];\n }", "title": "" }, { "docid": "4bcbe9a95550a2629b194331e9f8c8ed", "score": "0.6198769", "text": "public function offsetGet($key)\n {\n return $this->items[$key];\n }", "title": "" }, { "docid": "4bcbe9a95550a2629b194331e9f8c8ed", "score": "0.6198769", "text": "public function offsetGet($key)\n {\n return $this->items[$key];\n }", "title": "" }, { "docid": "4bcbe9a95550a2629b194331e9f8c8ed", "score": "0.6198769", "text": "public function offsetGet($key)\n {\n return $this->items[$key];\n }", "title": "" }, { "docid": "4bcbe9a95550a2629b194331e9f8c8ed", "score": "0.6198769", "text": "public function offsetGet($key)\n {\n return $this->items[$key];\n }", "title": "" }, { "docid": "4bcbe9a95550a2629b194331e9f8c8ed", "score": "0.6198769", "text": "public function offsetGet($key)\n {\n return $this->items[$key];\n }", "title": "" }, { "docid": "7e2e8bac16910710fa5f0928832e9ef2", "score": "0.61639357", "text": "abstract protected function getItem();", "title": "" }, { "docid": "91cadf99bb5013c879c7e8243e79b496", "score": "0.6159859", "text": "public function getItem()\n {\n return parent::getValue('item');\n }", "title": "" }, { "docid": "7906847e202e081044616440051d46ae", "score": "0.61432284", "text": "public function getItem($path)\n {\n return $this->items[$path];\n }", "title": "" }, { "docid": "bd0aeeff2949c25601dcf45674f21658", "score": "0.6117691", "text": "public function get($itemId);", "title": "" }, { "docid": "9090798669f879c781aa581a8ff491fb", "score": "0.6103481", "text": "public function getItem($value)\n\t{\n\t\tif (!isset($this->list[$value]))\n\t\t\treturn null;\n\n\t\treturn $this->list[$value];\n\t}", "title": "" }, { "docid": "756a8cc05d2b13696a0309c5bde4fd3d", "score": "0.610131", "text": "public function first()\n {\n return reset($this->collection) ?: null;\n }", "title": "" }, { "docid": "e32caa6fd8eb2c40a60a5eacd0100d91", "score": "0.60812455", "text": "public function get ($id) {\n return Item::find($id);\n }", "title": "" }, { "docid": "450d830ed4d75ad449f4a1db34817934", "score": "0.60808", "text": "public function get($id)\n {\n // Search with given ID\n if (!$this->search($id)) {\n $this->total_count = 0;\n\n return null;\n }\n\n // If more than one item was found, throw an exception\n if ($this->count() > 1) {\n throw new MultipleItemsException(\n sprintf(\n 'Multiple items found for ID \"%s\"',\n $id\n )\n );\n }\n\n // Extract single item\n $iterator = $this->getIterator();\n while ($iterator->valid()) {\n /** @var AbstractIdentifiableEntity $entity */\n $entity = $iterator->current();\n if ($id == $entity->getId()) {\n return $entity;\n }\n $iterator->next();\n }\n\n return null;\n }", "title": "" }, { "docid": "9559d350a5f69f3ee00052fca36c0e4e", "score": "0.6079599", "text": "public function getFirst() {\n $varReturn = null;\n if (count($this->collection) > 0) {\n $varReturn = $this->collection[0];\n }\n\n return $varReturn;\n }", "title": "" }, { "docid": "7c9c008b7543ebeaabee5ed16ce1afa5", "score": "0.6077789", "text": "public function first()\n {\n $items = array_keys($this->items);\n\n return $this->offsetGet(array_shift($items));\n }", "title": "" }, { "docid": "bdf245136e6c53c35967847bdeedf7f6", "score": "0.60760295", "text": "public function get(string $item);", "title": "" }, { "docid": "d04154fd653fb980dca1bcfaec45485e", "score": "0.6065727", "text": "public function item($index)\n {\n return $this->items[$index];\n }", "title": "" }, { "docid": "d92b05d1eb02bf5701fd430da1b0c744", "score": "0.6053842", "text": "public function item($title)\n {\n return $this->whereNickname($title)->first();\n }", "title": "" }, { "docid": "8820b31998992a143cc7022107b93744", "score": "0.60309035", "text": "public function get($key)\n {\n $ifNotFound = new stdClass;\n\n $result = $this->find(\n function ($k, $v) use ($key) {\n return $k == $key;\n },\n $ifNotFound\n );\n\n if ($result === $ifNotFound) {\n throw new ItemNotFound;\n }\n\n return $result;\n }", "title": "" }, { "docid": "cd1c2bb7456a9004e6d094c67468ad0e", "score": "0.6001184", "text": "public function getItem($id) {\n\t\t\n\t\tforeach ( $this->items as $item ) {\n\t\t\tif ($id == $item->getId()) {\n\t\t\t\treturn $item;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e8177c30f3304c8aca16387ee9a09aa2", "score": "0.5997886", "text": "public function getOne()\n {\n if ($this->count() > 0)\n {\n $this->seek(0);\n return $this->current();\n } else\n return null;\n }", "title": "" }, { "docid": "2ba2c22308e9bc150650ecaa4eee3108", "score": "0.5988598", "text": "public function getItemById($id) {\n \n return $this->itemsArr[$id];\n \n }", "title": "" }, { "docid": "b1a66e553d829825a3be0478c17f7acc", "score": "0.59699017", "text": "public function offsetGet($offset)\n {\n return $this->items()[$offset];\n }", "title": "" }, { "docid": "dd8590248d7dbbc8a57fb646b28f7c47", "score": "0.59570616", "text": "public function get(): Collection;", "title": "" }, { "docid": "a66941e990528fec2b1e073e3313723a", "score": "0.5955034", "text": "function &getItem()\n\t{\n\t\t$doc =& JFactory::getDocument();\n\t\t$doc->addStyleSheet(JURI::base(true) . \"/components/com_jjforum/templates/default/style.css\");\n\t\t$db\t\t= $this->getDbo();\n\t\t$query\t= $db->getQuery(true);\n\t\t$query->select(\n\t\t\t'a.*'\n\t\t\t);\n\t\t$query->from('#__jjforum_category as a ORDER BY ordering');\n\n\t\t$db->setQuery((string)$query);\n\t\tif (!$db->query()) {\n\t\t\tJError::raiseError(500, $db->getErrorMsg());\n\t\t}\n\n\t\t$this->item = $db->loadObjectList();\n\t\treturn $this->item;\n\t}", "title": "" }, { "docid": "04a921ae58286dbf0fe7e2b52adeb975", "score": "0.59523535", "text": "public function get($key)\n {\n $items = $this->toArray();\n\t return isset($items[$key]) ? $items[$key] : null;\n }", "title": "" }, { "docid": "689c6a2d9acc52cb63f60f3e34ca687d", "score": "0.5949034", "text": "public function offsetGet($offset)\n {\n return ($this->offsetExists($offset)) ? $this->items[$offset] : null;\n }", "title": "" }, { "docid": "3dadf4e2498c153b2c8570fdf57a35cf", "score": "0.59352154", "text": "public function getByPosition(int $position)\n {\n return $this->collection[$position] ?? null;\n }", "title": "" }, { "docid": "57d17f528815805fa40bbc2ac25f8305", "score": "0.5927477", "text": "public function item($key) {\n return $this->clients[$key];\n }", "title": "" }, { "docid": "72cfdf0ce4100550554d91e3748bf7e6", "score": "0.59208924", "text": "public function offsetGet($key)\n {\n $hash = \\Xyster\\Type\\Type::hash($key);\n return array_key_exists($hash, $this->_items) ?\n $this->_items[$hash]->getValue() : null;\n }", "title": "" }, { "docid": "dcf71088e4ec3e93c5f1eb43bf68b92d", "score": "0.5919204", "text": "public function get ($id = null) {\n if ($id == null) {\n return $this->collection;\n }else if (isset($this->collection[$id])) {\n return $this->collection[$id];\n }\n return null;\n }", "title": "" }, { "docid": "976c4908a67eea66b724e9e6583773bc", "score": "0.5906211", "text": "public function get() {\n $dao = $this->buildDAO();\n return $dao->getById($this->getId())[0];\n }", "title": "" }, { "docid": "1a7078bc35d374f192e8cb4a1fd26e00", "score": "0.59003794", "text": "public function getCurrentItem()\n {\n return current($this->getItems());\n }", "title": "" }, { "docid": "6b48639b5301c2f2fb2c26efa69a0ad6", "score": "0.58998567", "text": "public function offsetGet(mixed $offset): mixed\n {\n return $this->items[$offset];\n }", "title": "" }, { "docid": "0a27651c192dc3e7c145ee5ae479f23c", "score": "0.58845145", "text": "public function current() {\n return current($this->collection);\n }", "title": "" }, { "docid": "0a27651c192dc3e7c145ee5ae479f23c", "score": "0.58845145", "text": "public function current() {\n return current($this->collection);\n }", "title": "" }, { "docid": "5e091cf54f7b7f4603b2729d71d74c29", "score": "0.58794284", "text": "public function getItemById($itemId)\n {\n return $this->getItemsCollection()->getItemById($itemId);\n }", "title": "" }, { "docid": "7fdde23733516b4ef7a6d3920d4ed13c", "score": "0.58784217", "text": "public function offsetGet($offset)\n\t{\n\t\treturn isset($this->items[$offset]) ? $this->items[$offset] : null;\n\t}", "title": "" }, { "docid": "a34c3ea887e1aa84b625544d03a0ca8d", "score": "0.5877482", "text": "public function getItems(): Collection;", "title": "" }, { "docid": "d378dd227a3d22ba39f7d42c70c646da", "score": "0.58771914", "text": "public function at($index){\n if(!is_int($index)) throw new InvalidArgumentException(\"Index must be an integer\");\n if($index >= $this->count()) throw new OutOfRangeException(\"Out of range on Collection\");\n\n return $this->items[$index];\n }", "title": "" }, { "docid": "bbdf3052afa27d6f53727a552bdf8d79", "score": "0.58761746", "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": "a85a1d0d480e67ff2ea119ffa28158a4", "score": "0.58760875", "text": "public function getByUid($uid) {\n\t\tforeach ($this->items as $item) {\n\t\t\t/* @var $item \\TYPO3\\GenericGallery\\Domain\\Model\\GalleryItem */\n\t\t\tif ((string)$uid === (string)$item->getUid()) {\n\t\t\t\treturn $item;\n\t\t\t}\n\t\t}\n\n\t\treturn NULL;\n\t}", "title": "" }, { "docid": "ec9070b790acd07864677294a96d5505", "score": "0.587505", "text": "public static function get($key)\n {\n return self::$_storedItems[$key];\n }", "title": "" }, { "docid": "f6c3881a959db0b680a317769092e632", "score": "0.5874667", "text": "public function get(string $name): mixed\n {\n if (!isset($this->items[$name])) {\n return null;\n }\n\n return $this->items[$name];\n }", "title": "" }, { "docid": "814eb1bc5cf8faf02faa3827f95b01dc", "score": "0.5873451", "text": "public static function get($key) {\n\t\t\t\t\n\t\t\tstatic::_load();\n\t\t\t\n\t\t\treturn Helper::getElementByKey(static::$_items, $key);\n\t\t}", "title": "" }, { "docid": "a3835478e893b65216ed49dd6b0f48b1", "score": "0.58695817", "text": "function &getItem($index) {\n\t\treturn $this->domit_rss_items[$index];\n\t}", "title": "" }, { "docid": "c44d37c5c5529023560b0b2d607abc4e", "score": "0.58685005", "text": "public function getBy(string $key): ?Model\n {\n if (!array_key_exists($key, $this->collections)) {\n return null;\n }\n\n return $this->collections[$key];\n }", "title": "" }, { "docid": "414fc126a4de6ff0e563f6608d922c9b", "score": "0.5860061", "text": "public function pull(): mixed\n {\n return array_pop($this->items);\n }", "title": "" }, { "docid": "88debf6648f6344b80eedd5186a3f49f", "score": "0.5853574", "text": "protected function _getItem()\n {\n $app = JFactory::getApplication();\n\n $id = $app->input->get('eid');\n\n $db = $this->getDbo();\n $query = $db->getQuery(true)\n ->select('a.eventbrite_ids, a.eventbrite_ids_order')\n ->from('#__eventbrites as a')\n ->where('id='.$id);\n\n $db->setQuery($query);\n\n // set the _item property\n $this->_item = $db->loadObject();\n }", "title": "" }, { "docid": "fb1e048345fd7ea208e99715115d5000", "score": "0.5850056", "text": "public function getFirstItem ()\n {\n if (count($this->items))\n {\n reset($this->items);\n return current($this->items);\n }\n }", "title": "" }, { "docid": "52cfffd5f6ca562fa81a3c207b24618f", "score": "0.58393997", "text": "public function current()\n {\n return $this->collection[$this->index];\n }", "title": "" }, { "docid": "00996a35fbc1933eeb2987a80c00ad2b", "score": "0.5818359", "text": "public function get($collection = null) {\n return $this->entries($collection);\n }", "title": "" }, { "docid": "70a2f680152e7c720961df9aa1158ab7", "score": "0.5809432", "text": "public function startItem()\n {\n return $this->items()->first();\n }", "title": "" }, { "docid": "f3d87098d36c90a64e9b10fdb6d45c33", "score": "0.58058274", "text": "public function getItem() {\n\t\t\n\t\t/**\n\t\t * \n\t\t * @var $db Get the database object.\n\t\t */\n\t\t$db=JFactory::getDbo();\n\t\t\n\t\t/**\n\t\t * \n\t\t * @var $query.\n\t\t * \n\t\t * Get the getQuery() method.\n\t\t */\r\n\t\t$query=$db->getQuery(true);\n\t\t\n\t\t$user = JFactory::getUser();\t\n\t\t\n\t\tif($user->id) { \n\t\t\n\t\t/**\n\t\t * query statement.\n\t\t */\r\n\t\t$query->select(\"*\")->from(\"#__truematrimony_profiles\")\r\n\t\t->where('truematrimony_profile_id='.$user->profile_id);\n\t\t\n\t\t/**\n\t\t * Set the query statement.\n\t\t */\r\n\t\t$db->setQuery($query);\n\t\t\n\t\t/**\n\t\t * \n\t\t * @var $result Get the data.\n\t\t */\r\n\t\t$result=$db->loadObjectList();\n\t\t\t\t\t\t\n\t\n\t\t/**\n\t\t * return the result.\n\t\t */\n\t return $result;\n\t }\n\t}", "title": "" }, { "docid": "00451655ee7139a2a8c564dd8dcb6b5d", "score": "0.5802944", "text": "function getFirst() {\n\t\treturn $this->_getItem(0);\n\t}", "title": "" } ]
49143af2e5571047193851dd33698bde
Retrieves an item value from its name. If no session is defined, this function will simply return NULL, without starting a session. If the session is not started, it will be started automatically
[ { "docid": "fd99f407a3a0a262e460d5967950783a", "score": "0.6186016", "text": "function getItem($name);", "title": "" } ]
[ { "docid": "40ca4ed5ce1de2fae848c351d0b3b745", "score": "0.707223", "text": "public static function get($name) {\n return isset($_SESSION[$name]) ? $_SESSION[$name] : NULL;\n }", "title": "" }, { "docid": "605d4dc8abac2c7245cf52eee90949e7", "score": "0.69649786", "text": "public static function getItem($name){\n return self::has($name) ? self::$items[$name] : null;\n }", "title": "" }, { "docid": "8c749244a4775f72721a05d609918684", "score": "0.69556683", "text": "public static function get($name){\r\n return $_SESSION[$name];\r\n }", "title": "" }, { "docid": "70a4aa9f723ad40c9c8113bb6ed913ae", "score": "0.6936141", "text": "public function get($name) {\n if (!empty($name)) {\n return $_SESSION[$name];\n }\n }", "title": "" }, { "docid": "343ac95f4f9a6a8d9201b190ba27d651", "score": "0.6925173", "text": "public static function get($name) \n\t{\n return $_SESSION[$name];\n }", "title": "" }, { "docid": "24fce1cc986a802ffe7c4e11a34a1bdb", "score": "0.6913182", "text": "public static function get($name)\n {\n return $_SESSION[$name];\n }", "title": "" }, { "docid": "491d2525a946f40c5bedcc992423d7df", "score": "0.69079363", "text": "public static function get($name) {\n return $_SESSION[$name];\n }", "title": "" }, { "docid": "491d2525a946f40c5bedcc992423d7df", "score": "0.69079363", "text": "public static function get($name) {\n return $_SESSION[$name];\n }", "title": "" }, { "docid": "7dc688fd5b0e5cb95ee14feed4072632", "score": "0.6903924", "text": "public static function get($name)\n {\n\tif(isset($_SESSION[$name]))\n\t{\n\t\treturn $_SESSION[$name];\n\t}\n }", "title": "" }, { "docid": "96125e3e2aff478dd0c6d9b48aa55ba7", "score": "0.6901045", "text": "public function getValue($name) {\n\t\tif(isset($_SESSION[$name])) {\n\t\t\treturn $_SESSION[$name];\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "8c970dc6ef221cf08bc2a6b695392b3e", "score": "0.6893747", "text": "public static function get($name) {\n\t\t\treturn $_SESSION[$name];\n\t\t}", "title": "" }, { "docid": "2b381162a75b3e374eec7896a7ca000c", "score": "0.68820524", "text": "public static function get($name) {\n return $_SESSION[$name];\n }", "title": "" }, { "docid": "b707dbc9ef85365a28751e8a1744041b", "score": "0.6831638", "text": "public function __get($name) {\n if (isset($_SESSION[$name])) {\n return $_SESSION[$name];\n }\n }", "title": "" }, { "docid": "ae45458b1a38f7223580ee91d597472f", "score": "0.68156356", "text": "public static function get($name)\n {\n self::start_session();\n $value = false;\n if (isset($_SESSION[$name])) {\n $value = $_SESSION[$name];\n }\n\n return $value;\n }", "title": "" }, { "docid": "2be1546c679de1ece5c90ffef1202503", "score": "0.6814362", "text": "public function getValue($name, $default= NULL) {\n if (!$this->isValid()) throw new IllegalStateException('Session is invalid');\n if (isset($_SESSION[$name])) return unserialize($_SESSION[$name]); else return $default;\n }", "title": "" }, { "docid": "647af18d3d0c8f2d0bd1ff82435c7226", "score": "0.67671764", "text": "static function get($name)\n\t\t{\n\t\t\tif (isset ( $_SESSION [$name] ))\n\t\t\t{\n\t\t\t\treturn $_SESSION [$name];\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}", "title": "" }, { "docid": "6c4258d005b7660fef16c1a4e71437f1", "score": "0.6640466", "text": "public function get($name)\n\t{\n\t\tif (isset($_SESSION[$name]))\n\t\t{\n\t\t\treturn $_SESSION[$name];\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "38392ab6f6f90f715c2aaf4536ff41e1", "score": "0.65614635", "text": "public function getValue($obj, $name){\r\n\t\t$session = &$this->getSession($obj);\r\n\t\t\r\n\t\tif(empty($session) || !isset($session[$name]))\r\n\t\t\treturn null;\r\n\t\t\r\n\t\treturn $session[$name]; \r\n\t}", "title": "" }, { "docid": "5f56ff9720804128cf20f20414285bd3", "score": "0.65597796", "text": "public static function get($name)\n {\n \treturn isset($_SESSION[$name]) ? $_SESSION[$name] : false;\n }", "title": "" }, { "docid": "5aa5def22a14081bc350f63fa627f65b", "score": "0.6457479", "text": "function getAttribute ( $name ) {\n if(! empty($_SESSION[$name])) {\n return $_SESSION[$name];\n }\n return null;\n }", "title": "" }, { "docid": "60457d5f9698e0d3039c3d287823582a", "score": "0.64472127", "text": "public function get($name)\n {\n return $this->contains($name) ? $this->items[$name] : null;\n }", "title": "" }, { "docid": "2b8db1a31a90f38e1d70ea7e8273173b", "score": "0.6352655", "text": "final public function\tget( $name )\n\t{\n\t\tif( $this->_state !== 'active' ) {\n\t\t $error = null;\n return $error;\n\t\t}\n\t\t\n\t\tif( isset( $this->_sess[$name] ) ) {\n\t\t\treturn $this->_sess[$name];\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f1139f621f190a95ebe83085301e7f12", "score": "0.6328355", "text": "function get_session($name)\r\n\t{\r\n\t\tif(isset($_SESSION[$name]))\r\n\t\treturn $_SESSION[$name];\r\n\t}", "title": "" }, { "docid": "7f35805c4d4b4bc203cc1c3096d764b5", "score": "0.6327904", "text": "public static function Item($item_name) {\n global $config, $conf;\n\n //lets check if the config item was set\n if(isset($conf) && isset($config[$conf][$item_name])) {\n return $config[$conf][$item_name];\n }\n\n return null;\n }", "title": "" }, { "docid": "2c4f256c4732ded92ea29e6d3813d412", "score": "0.6315443", "text": "function getItem($name,$default=null) {\n\tif (!isset($this->values[$name])) {\n\t\tif ($default != null)\n\t\t\treturn $default;\n\t\treturn False;\t\n\t}\n\treturn $this->values[$name];\n}", "title": "" }, { "docid": "fb24bff08d696c07881398a35a48c96d", "score": "0.63149834", "text": "function &getItem($name)\n {\n $items =& $this->getProperty('items');\n if (isset($items[$name]))\n {\n return $items[$name];\n }\n return false;\n }", "title": "" }, { "docid": "b5dc196494ea73bb04067b60d6f82d0e", "score": "0.6284765", "text": "public function fetch($name) {\n\t\t// Return for value in cached session\n\t\t$result = false;\n\t\tif (isset($this->session[$name])) {\n\t\t\t$result = $this->session[$name];\n\t\t}\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "e4ed38fa23530b41c192b044336a0b94", "score": "0.62813824", "text": "public function readProduct($sessionName) {\n\t return CakeSession::read($sessionName);\n\t}", "title": "" }, { "docid": "69c663cdf33b54491b261b681dc231c3", "score": "0.6253365", "text": "public static function get(string $name = null)\n {\n return !is_null($name) ? $_SESSION[$name] : $_SESSION;\n }", "title": "" }, { "docid": "ca0dec6d238a53c6775ae99d371d7c82", "score": "0.62480813", "text": "public function getNamedItem ($name) {}", "title": "" }, { "docid": "5b68f73495f653f49073fa75d5ec30dc", "score": "0.62396425", "text": "protected function getItem($name)\r\n\t{\r\n\t\t$row = (new Query)->from($this->itemTable)\r\n\t\t\t->where(['name' => $name])\r\n\t\t\t->one($this->db);\r\n\r\n\t\tif ($row === false) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tif (!isset($row['data']) || ($data = @unserialize($row['data'])) === false) {\r\n\t\t\t$row['data'] = null;\r\n\t\t}\r\n\r\n\t\treturn $this->populateItem($row);\r\n\t}", "title": "" }, { "docid": "febc93c1d21a1905fcf1e30938429a5c", "score": "0.62345916", "text": "public static function GetValue($key)\n\t{\n\t\tif(isset($_SESSION[self::$sessionName]) and isset($_SESSION[self::$sessionName][$key]))\n\t\t{\n\t\t\treturn $_SESSION[self::$sessionName][$key];\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b771d0d6effbf47c1923be9a67ab873e", "score": "0.62326896", "text": "public function getSessionValue(string $name)\n {\n $value = $this->sessionStorage->getPlugin()->getValue($name);\n $this->logger->setIdentifier(__METHOD__)->debug(\n 'Session.getSessionValue',\n ['name' => $name, 'value' => $value]\n );\n\n return $value;\n }", "title": "" }, { "docid": "260e131403b630843db1464bac82b040", "score": "0.622094", "text": "public function getAttribute($name)\n {\n if (isset($_SESSION[$name])) {\n return $_SESSION[$name];\n }\n return false;\n }", "title": "" }, { "docid": "25f64523f17d1feaa5cd8d1ca02899d3", "score": "0.6201264", "text": "function &GetItem($Name) {\r\n\t\t$item = array_key_exists($Name, $this->Items) ? $this->Items[$Name] : NULL;\r\n\t\treturn $item;\r\n\t}", "title": "" }, { "docid": "e3e3bf0a7cc36668b37d7ecfae9de142", "score": "0.6169446", "text": "public function getSession($name=null){\n $result = null;\n if (isset($name)){\n $result = $_SESSION[$name];\n }else{\n $result = $_SESSION;\n }\n return $result;\n }", "title": "" }, { "docid": "a45e5b9debaf49842066f1962b365e5e", "score": "0.6117485", "text": "function getItemName($name)\r\n\t{\r\n\t\treturn $this->getItem($name,\"item_name\");\r\n\t}", "title": "" }, { "docid": "96b18330087d78794da1b2d8b07264e5", "score": "0.61168367", "text": "public function get(string $name = null, $default_return_val = null) {\n if (!is_string($name) || is_null($name)) {\n throw new \\InvalidArgumentException(sprintf('$name only accepts strings. Input was: \"%s\"', gettype($name));\n }\n if (empty($name)) {\n throw new \\InvalidArgumentException('$name can not be empty.');\n }\n if (isset($_SESSION[$name])) {\n return $_SESSION[$name];\n }\n return $default_return_val;\n }", "title": "" }, { "docid": "4ac9fb6b58944bd698f992a04ca0fbba", "score": "0.61102235", "text": "public function retrieve_one($name = null)\n\t{\n\t\t$vars = $this->find_one_array(array('active' => 'yes', 'name' => $name));\n\t\treturn !empty($vars) ? $vars['value'] : NULL;\n\t}", "title": "" }, { "docid": "57885677f8431622bf5d1f323e78f512", "score": "0.6096729", "text": "public function getValue($key) {\r\n\t\treturn (isset($_SESSION[$key])) ? $_SESSION[$key] : null;\r\n\t}", "title": "" }, { "docid": "c133b8574e908d96af529072c85e744b", "score": "0.60678816", "text": "public static function get($key, $nameSpace = null){\r\n\t\t\r\n\t\t\tif($nameSpace == null){\r\n\t\t\t\tif(isset($_SESSION[$key])){\r\n\t\t\t\t\treturn unserialize($_SESSION[$key]);\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tif(isset($_SESSION[$nameSpace][$key])){\r\n\t\t\t\t\treturn unserialize($_SESSION[$nameSpace][$key]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn null;\r\n\t\t}", "title": "" }, { "docid": "0bc13bbe78beb727014a8dd998c5a4e4", "score": "0.60555154", "text": "static function get($k)\n {\n return isset ($_SESSION[$k]) ? $_SESSION[$k] : null;\n }", "title": "" }, { "docid": "ba70d8d58cdbf31e4cd973fde753391f", "score": "0.6035223", "text": "function getSession($name) {\n return Session::get($name);\n}", "title": "" }, { "docid": "53b3e51550b55195adeb6aa5db26eea9", "score": "0.6023519", "text": "public static function get($key){\n Session::open();\n return $_SESSION[$key];\n }", "title": "" }, { "docid": "f8200ed5d6db1b7e88160b1701854443", "score": "0.60229295", "text": "function get($name, $default=null)\r\n {\r\n \tif (($val = $this->CI->session->userdata($name)) !== False) {\r\n \t\treturn $val;\r\n \t} else {\r\n \t\treturn $default;\r\n \t}\r\n }", "title": "" }, { "docid": "337b5aa3dc4e9357541292b373d60cb3", "score": "0.601212", "text": "public static function get($key)\n {\n if (isset($_SESSION[$key])) {\n return $_SESSION[$key];\n }\n\n return null;\n }", "title": "" }, { "docid": "9cb1cf6074580a95bed5ac63784eeb7f", "score": "0.60031176", "text": "public function getSessionValue($sessionKey){\n if (isset($_SESSION[$sessionKey])){\n return $_SESSSION[$sessionKey];\n }\n }", "title": "" }, { "docid": "30fec8b2925ceb373de7b22f348fac85", "score": "0.59844875", "text": "abstract protected function getItem($name);", "title": "" }, { "docid": "24e577069898305be988b5c15ea81812", "score": "0.5979824", "text": "public function getItemByName($name)\n {\n foreach ($this->listItems as $item) {\n if ($item->getName() == $name) {\n return $item;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "b547722602af16b7e99b3465abfd50d8", "score": "0.59777176", "text": "public function __get(string $name): bool|string\n {\n return isset($_SESSION[$name]) ? $_SESSION[$name] : false ;\n }", "title": "" }, { "docid": "55c73bc16133b2b9067ee2bc582d8ab0", "score": "0.59615827", "text": "function getSession($sessionName){\n\n\t\t\t\t@session_start();\n\n\t\t\t\treturn $_SESSION[$sessionName];\n\n\t\t}", "title": "" }, { "docid": "d4f98537b396b0344086d6a371ad931b", "score": "0.5941522", "text": "public static function get($key)\n {\n if (isset($_SESSION[$key])) {\n return $_SESSION[$key];\n } else\n return null;\n }", "title": "" }, { "docid": "bcc6985d909ec1441f7d55700f09850f", "score": "0.59403324", "text": "public function getItem()\r\n {\r\n // TODO Store the state\r\n // TODO Implement caching\r\n return $this->fetchItem();\r\n }", "title": "" }, { "docid": "7d3a701d22ab46a31b9d6c12c2c075ab", "score": "0.5935963", "text": "static function get($key, $defvalue='') {\n\t\tif (isset($_SESSION) && isset($_SESSION[$key])) return $_SESSION[$key];\n\t\treturn $defvalue;\n\t}", "title": "" }, { "docid": "382c2bab3dd1c949f2f5ca036d3d9bee", "score": "0.59227633", "text": "public function getState() {\r\n\t\tif (array_key_exists($this->name, $_SESSION)) {\r\n\t\t\treturn $_SESSION[$this->name];\r\n\t\t} else {\r\n\t\t\treturn NULL;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1c588f28d53fa30f8462ee79f47a77e3", "score": "0.591861", "text": "final public function SessionGet($name, $default = null, $namespace = 'default') {\r\n if (!$this->SessionHas($name, $namespace)) return $default;\r\n return $_SESSION['NetDesignCMS'][$this->GetName()][$namespace][$name];\r\n }", "title": "" }, { "docid": "3e98b6128a706607c133c343b90a0475", "score": "0.5913648", "text": "public function getIfHas($name)\n {\n\n // throw an error if not exist\n if ($this->has($name) == true) {\n return $_SESSION[$name];\n }\n\n return false;\n }", "title": "" }, { "docid": "f3eeef541b65b915a5766b8199b1a824", "score": "0.5911426", "text": "public function getItem($absPath)\n {\n if (strpos($absPath,'/') !== 0) {\n throw new \\PHPCR\\PathNotFoundException('It is forbidden to call getItem on session with a relative path');\n }\n\n if ($this->nodeExists($absPath)) {\n return $this->getNode($absPath);\n }\n return $this->getProperty($absPath);\n }", "title": "" }, { "docid": "06767fea4ccec20118461affef110879", "score": "0.59014934", "text": "function osc_item() {\n if(View::newInstance()->_exists('item')) {\n $item = View::newInstance()->_get('item');\n } else {\n $item = null;\n }\n\n return($item);\n }", "title": "" }, { "docid": "30731ca6f99738f071ea48e4ab05c5a9", "score": "0.58765817", "text": "public function getSessionValue($key)\n {\n if (array_key_exists($key, $_SESSION) === true) {\n return $_SESSION[$key];\n }\n\n return null;\n }", "title": "" }, { "docid": "c66dc38345295a4a2bb6bfaf49596682", "score": "0.586949", "text": "public function get($key)\n {\n if (isset($_SESSION[$this->storageKey][$key])) {\n return $_SESSION[$this->storageKey][$key];\n }\n\n return null;\n }", "title": "" }, { "docid": "e24ab2768bd8f37861df02ef39fc8927", "score": "0.58474606", "text": "public function get($name, $default = null)\n {\n\n if (array_key_exists($name, $_SESSION)) {\n $default = $_SESSION[$name];\n }\n\n return $default;\n }", "title": "" }, { "docid": "d3e2ecae70d0344499d78ecd481ff1dc", "score": "0.58435744", "text": "public function get($key){\n\t\treturn Session::get($key);\n\t}", "title": "" }, { "docid": "b9c51afbb5a27db62e88a69c8c517aa8", "score": "0.58383423", "text": "public static function get($key)\n {\n if (self::has($key)) {\n return $_SESSION[$key];\n }\n }", "title": "" }, { "docid": "ca91fb4df3e0f7e5626225e5b753a96f", "score": "0.58355135", "text": "public function getSession()\n {\n $value = $this->get(self::SESSION);\n return $value === null ? (string)$value : $value;\n }", "title": "" }, { "docid": "135f56f1660577bed5937eb259605ed8", "score": "0.58349913", "text": "public function read($key)\n {\n $retval = null;\n if (isset($_SESSION[$key]))\n {\n $retval = $_SESSION[$key];\n }\n return $retval;\n }", "title": "" }, { "docid": "cee6bd23d671e04fc76c4d40ab097a70", "score": "0.5828487", "text": "function get_item($items, $item_name) {\n foreach ($items as $current) {\n $current_name = $current[\"name\"];\n if ($current_name === $item_name) { // name matches\n return $current;\n }\n }\n\n return null; // not in items\n }", "title": "" }, { "docid": "5b148736ebfcdcdd0ddd66f245d2ed0f", "score": "0.58275336", "text": "public function get($item = null) {\n\n if (!$this->logged_in()) {\n return false;\n }\n\n return $item === null ? $this->CI->session->all_userdata() : $this->CI->session->userdata($item);\n }", "title": "" }, { "docid": "a2e2fc4abc6aff2fca9709e43c84183f", "score": "0.5826861", "text": "public function __get($name)\n {\n if ($name === 'sessionKey') {\n return $this->storage()->getConfig('key');\n }\n\n return parent::__get($name);\n }", "title": "" }, { "docid": "d3708a35ceec43d1db363f5c80d29f5d", "score": "0.58237904", "text": "public function get($key = null)\n {\n if ($key && is_array(session($this->getKey()))) {\n return session($this->getKey())[$key];\n }\n\n return session($this->getKey());\n }", "title": "" }, { "docid": "6abaf909a0c4d59d1bf9d44ed0fff80d", "score": "0.58198524", "text": "function sessionVar( $name )\n{\n\tif (isset( $_SESSION[$name] ))\n\t{\n\t\treturn $_SESSION[$name];\n\t}\n\n\treturn '';\n}", "title": "" }, { "docid": "e4f159f0f69b7612d8a4a6df8ab05c98", "score": "0.58101106", "text": "public static function get($key): mixed\r\n\t{\r\n\t\treturn $_SESSION[ $key ] ?? null;\r\n\t}", "title": "" }, { "docid": "bc1c31961e16848d6e4282d6a8002654", "score": "0.5806703", "text": "public static final function get($key)\n\t{\n\t\tif (self::exists($key))\n\t\t{\n\t\t\treturn $_SESSION[$key];\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "b7c8a27c65d74052b152cd50c70d6b87", "score": "0.57972497", "text": "public function session_get($key) {\n\t\tif (isset($_SESSION[$key])) {\n\t\t\t$object = $_SESSION[$key];\n\t\t\treturn $object;\n\t\t}\n\t\t\n\t\t$this->errstr = \"session::get($key) - not found in session.\";\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b7ad0dd9fdb23a88918a8e97e9c1c89a", "score": "0.5795499", "text": "public function get_session($session_name){\n\t\tif(isset($_SESSION[$session_name])){\n\n\t\t\treturn $_SESSION[$session_name];\n\n\t\t} else {\n\t\t\t//runs if null\n\n\t\t\treturn \"Sorry, \" . $session_name . \" is not currently set\";\n\n\t\t}\n\t}", "title": "" }, { "docid": "b047e6828f4ddc72f197b569390edd9a", "score": "0.57918984", "text": "public static function get($key = NULL) {\n if (is_null($key)) {\n return $_SESSION;\n } elseif (isset($_SESSION[$key])) {\n return $_SESSION[$key];\n }\n return NULL;\n }", "title": "" }, { "docid": "5845c17bf738410c903c3b3d36e3188c", "score": "0.5787145", "text": "public function __get($name)\n {\n if (isset($this->item->{$name})) {\n return $this->item->{$name};\n }\n\n return false;\n }", "title": "" }, { "docid": "dc6852294e13a0d2cf2400fb360505c5", "score": "0.5762756", "text": "public function get($var_name){\n session_id($this->id);\n @session_start();\n\n if(isset($_SESSION[$var_name])){\n $var = $_SESSION[$var_name];\n } else{\n $var = NULL;\n }\n\n unset($_SESSION);\n session_write_close();\n\n return $var;\n }", "title": "" }, { "docid": "007fa3845ee0ca2af3734853c5d38aae", "score": "0.575995", "text": "public function item($key)\n\t{\n\t\tif ( ! isset($this->info['items'][$key]))\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\treturn $this->info['items'][$key];\n\t}", "title": "" }, { "docid": "c6191fa91363304931a10007789eaa12", "score": "0.5755746", "text": "public static function get(string $index)\n {\n return $_SESSION[$index] ?? null;\n }", "title": "" }, { "docid": "d5a62d386ce2bbe0e36fcf5f66dda5f5", "score": "0.5747561", "text": "function pnSessionGetVar($name)\n{\n if(isset($name) && isset($_SESSION['PNSV' . $name])) {\n return $_SESSION['PNSV' . $name];\n }\n return false;\n}", "title": "" }, { "docid": "5afb2ad44082a275131ff23293ce6491", "score": "0.57441396", "text": "public static function getObject($key)\n {\n if (isset($_SESSION[$key])) {\n return $_SESSION[$key];\n }\n\n return null;\n }", "title": "" }, { "docid": "2bf7ed432c0eb5300d1504ab96dfb15b", "score": "0.57370275", "text": "public static function get($k=null) {\n if(!isset($_SESSION)){\n return false;\n }\n\n if (isset($k)) {\n if (array_key_exists($k, $_SESSION)) {\n return $_SESSION[$k];\n } else {\n return DEBUG \n ? Err::custom([\n 'msg' => 'Invalid Array key provided to [ Session::get() ] method',\n 'info' => '[ '.$k.' ] is not available in current session',\n 'note' => 'You can check all available session values by dump(Session::get()) without any parameters',\n ])\n : false;\n }\n } else {\n return $_SESSION;\n }\n }", "title": "" }, { "docid": "61a47f8d5ffe113eb1bb90ce0ad545ef", "score": "0.5729568", "text": "public function get_session($key){\n if(isset($_SESSION[$key])){\n return $_SESSION[$key];\n }\n\n return null;\n }", "title": "" }, { "docid": "2f2265dfa77b081954d10f6bd78b9d10", "score": "0.57218903", "text": "public static function current()\n{\n if(!self::isLogged())\n {\n \t die('No Logged User!');\n }\n return Session::get(self::$key);\n}", "title": "" }, { "docid": "ad8da19afadce571ea2d0cd0f255deea", "score": "0.57093424", "text": "function getConfigItem($name)\r\n {\r\n $cfg = $this->config;\r\n if (isset($cfg[$name]))\r\n return $cfg[$name];\r\n else\r\n return NULL;\r\n }", "title": "" }, { "docid": "22f1f0f86adc85f1bcf4aa5680676cf2", "score": "0.5704699", "text": "public function load_session(){\n\t\t$session = Session::instance();\n\t\t$session_array = unserialize($session->get('wcart_items', FALSE));\n\t\tif($session_array !== FALSE){\n\t\t\treturn $this->load($session_array);\n\t\t}\n\t}", "title": "" }, { "docid": "d4a432cabebb588893b9482c17ccc307", "score": "0.5695708", "text": "public function get($name) {\n\t\tif(in_array($name, $this->list)) {\n\t\t\treturn $this->list[$name];\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8cb8e8dc1320c10b4591d3056215a88f", "score": "0.56887966", "text": "public function get($key)\n {\n if ($this->hasSession($key)) {\n return $this->values[$key];\n }\n return false;\n }", "title": "" }, { "docid": "74cdc56371f0e3f688d03bb8cfac8cd8", "score": "0.5682973", "text": "public static function getUserFromSession()\n {\n if (isset($_SESSION['userData'])) {\n $user = $_SESSION['userData'];\n return $user;\n }\n return null;\n }", "title": "" }, { "docid": "686067ca48ca8b98967aa7ed0b8b26bf", "score": "0.5677685", "text": "public function getAuthItem($name, $allowCaching=true)\n\t{\n\t\t// Get all items if necessary and cache them.\n\t\tif( $allowCaching && $this->_items===array() )\n\t\t\t$this->_items = $this->getAuthItems();\n\n\t\t// Get the items from cache if possible.\n\t\tif( $allowCaching && isset($this->_items[ $name ]) )\n\t\t{\n\t\t\treturn $this->_items[ $name ];\n\t\t}\n\t\t// Attempt to get the item.\n\t\telse if( ($item = parent::getAuthItem($name))!==null )\n\t\t{\n\t\t\treturn $item;\n\t\t}\n\n\t\t// Item does not exist.\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0d56e5bb888ca8a55a3564516c9b2dfe", "score": "0.56738526", "text": "private function getRoomItem($itemName) {\n $gameState = GameState::getInstance();\n $room = GameState::getInstance()->getPlayerRoom();\n $container = $room->getComponent('Container');\n return $container->findNestedItemByName($itemName);\n }", "title": "" }, { "docid": "6eafca2af6bc66db224e2c8b23b01c0e", "score": "0.56737137", "text": "public function get($name)\n {\n return $this->store->$name;\n }", "title": "" }, { "docid": "9b1796a565803aca3da69f553301e41f", "score": "0.56658965", "text": "public function get($item, $prefix = '')\n {\n return ( ! isset($_SESSION[$prefix . $item])) ? false : $_SESSION[$prefix . $item];\n }", "title": "" }, { "docid": "9d8884de826be6d0c29460124f60b7cc", "score": "0.5660637", "text": "public function get() {\n\t\t// get session id\n\t\t$this->sessionID = $this->readSessionID();\n\t\t$this->session = null;\n\n\t\t// get existing session\n\t\tif (!empty($this->sessionID)) {\n\t\t\t$this->session = $this->getExistingSession($this->sessionID);\n\t\t}\n\t\n\t\t// create new session\n\t\tif ($this->session == null) {\n\t\t\t$this->session = $this->create();\n\t\t}\n\t\t\n\t\tself::$activeSession = $this->session;\n\t\t\n\t\t// call shouldInit event\n\t\tif (!defined('NO_IMPORTS')) EventHandler::fireAction($this, 'shouldInit');\n\t\t\n\t\t// init session\n\t\t$this->session->init();\n\n\t\t// call didInit event\n\t\tif (!defined('NO_IMPORTS')) EventHandler::fireAction($this, 'didInit');\n\t\t\n\t\treturn $this->session;\n\t}", "title": "" }, { "docid": "e28a1b23b120144974df9ae396995ca5", "score": "0.5658582", "text": "protected static function & _namespaceGet($namespace, $name = null)\n {\n if (self::$_readable === false) {\n throw new SessionException(self::_THROW_NOT_READABLE_MSG);\n }\n\n if ($name === null) {\n if (isset($_SESSION[$namespace])) { // check session first for data requested\n return $_SESSION[$namespace];\n } elseif (isset(self::$_expiringData[$namespace])) { // check expiring data for data reqeusted\n return self::$_expiringData[$namespace];\n } else {\n return $_SESSION[$namespace]; // satisfy return by reference\n }\n } else {\n if (isset($_SESSION[$namespace][$name])) { // check session first\n return $_SESSION[$namespace][$name];\n } elseif (isset(self::$_expiringData[$namespace][$name])) { // check expiring data\n return self::$_expiringData[$namespace][$name];\n } else {\n return $_SESSION[$namespace][$name]; // satisfy return by reference\n }\n }\n }", "title": "" }, { "docid": "b5caee7a798410a6df6b9e2c28b44162", "score": "0.565443", "text": "public function getSession($key)\n {\n $session = $this->_session;\n return $session->$key;\n }", "title": "" }, { "docid": "db24379d2b7215b98f8423ea5e769305", "score": "0.56541115", "text": "public function get_itemname ($itemname = null)\n {\n try\n {\n if ($itemname != null)\n {\n if ($this->check()) \n {\n $item = DB::query(\"SELECT * FROM items WHERE name like '%$itemname%'\")->execute();\n\n if (!empty($item))\n {\n foreach ($item as $key => $value) {\n $arrayItem[] = $value;\n }\n\n return Arr::reindex($arrayItem);\n }\n else return $this->notice($code = 'ERROR', $message = 'USER NOT FOUND OR DOES NOT EXIST.');\n }\n else return $this->notice($code = 'ERROR', $message = 'REQUIRE AUTHENTICATION.');\n }\n else return $this->notice($code = 'ERROR', $message = 'EXPECTED ID_USER IN URL.');\n }\n catch(exception $e)\n {\n echo $e->getMessage();\n return $this->notice($code = 'ERROR', $message = 'INCORRECT AUTHENTICATION.');\n }\n }", "title": "" }, { "docid": "1f1929ac6e0755b73fcab35280fc7927", "score": "0.56539243", "text": "function ses_get( $key, $def='' ) {\n return req_session( $key, $def );\n}", "title": "" }, { "docid": "3e72636337a68b4a8e3f7451a892e392", "score": "0.5652038", "text": "function get_session($key) {\n $return = null;\n if (isset($_SESSION[$key])) {\n $return = $_SESSION[$key];\n }//if\n return $return;\n}", "title": "" } ]
70429e2ed1867c6e152ca0ae523e03bf
Retrieves a list of models based on the current search/filter conditions. Typical usecase: Initialize the model fields with values from filter form. Execute this method to get CActiveDataProvider instance which will filter models according to data in model fields. Pass data provider to CGridView, CListView or any similar widget.
[ { "docid": "16036e494175c0cdcfd54674951d1af0", "score": "0.0", "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('id',$this->id);\n\t\t$criteria->compare('card_seria',$this->card_seria,true);\n\t\t$criteria->compare('card_code',$this->card_code,true);\n\t\t$criteria->compare('amount',$this->amount);\n\t\t$criteria->compare('status',$this->status);\n\t\t$criteria->compare('type',$this->type);\n\t\t$criteria->compare('create_date',$this->create_date,true);\n\t\t$criteria->compare('modify_date',$this->modify_date,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" } ]
[ { "docid": "e4cd5f924bf0f27f7e7ad644c65dd3fc", "score": "0.7252782", "text": "public function search(){\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$this->getCriteria(),\n\t\t\t'sort'=>$this->getSort(),\n\t\t));\n\t}", "title": "" }, { "docid": "288f4f60c4ee380437c99c9dd5291dc2", "score": "0.72300357", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('model_id',$this->model_id);\n\t\t$criteria->compare('platform_id',$this->platform_id);\n\t\t$criteria->compare('year_from',$this->year_from);\n\t\t$criteria->compare('year_to',$this->year_to);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t\t'pagination'=>array(\n\t\t\t\t'pageSize'=>Yii::app()->request->getParam('pageSize', Yii::app()->params->defaultPerPage),\n\t\t\t),\t\t\t\n\t\t));\n\t}", "title": "" }, { "docid": "8291be2c3acef4eec07c919386c2aae5", "score": "0.7205313", "text": "public function search() {\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('model_name', $this->model_name, true);\n $criteria->compare('model_id', $this->model_id);\n $criteria->compare('title', $this->title, true);\n $criteria->compare('keywords', $this->keywords, true);\n $criteria->compare('description', $this->description, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "ac407eb8e4e6fa8907c57a22c27280ad", "score": "0.71808034", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t//$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('status',1,true);\n\t\t\n\t\t\n if ( (isset($_GET['filter']) && ($_GET['filter']!='' ) ) )\n\t\t{\n\t\t\t$criteria2 = new CDbCriteria;\n\t\t\t\n\t\t\t$pieces = explode(\",\", $_GET['filter']);\n\t\t\t\n\t\t\tif(is_array($pieces)) {\n\t\t\t\tforeach ($pieces as $key => $value) \n\t\t\t\t\t{ \n\t\t\t\t\t\t$criteria2->compare('purpose', $value, false, 'OR');\n\t\t\t\t\t} \n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t$criteria->mergeWith($criteria2, 'AND');\n\t\n\t\t}\n\t\t\n $sort = new CSort;\n $sort->attributes = array(\n 'name','id'\n );\n\t\t\t\n\t\t\tif(isset($_GET['sort']) && ($_GET['sort']!='' ) )\n\t\t\t{\n\t\t\t\t$sort->defaultOrder = $_GET['sort'];\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t$sort->defaultOrder = 'id DESC';\n\t\t\t}\n\t\t\t\n\t\t\t\t\n \n \n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n 'sort'=>$sort,\n\t\t\t'Pagination' => array (\n 'PageSize' => 15 \n ),\n\t\t));\n\t}", "title": "" }, { "docid": "910ca811d689994b5769986cca799710", "score": "0.7140149", "text": "public function search()\n\t{\n\t\t$criteria = new CDbCriteria;\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t\t\t\t\t\t\t\t\t\t 'criteria' => $criteria,\n\t\t\t\t\t\t\t\t\t\t\t ));\n\t}", "title": "" }, { "docid": "910ca811d689994b5769986cca799710", "score": "0.7140149", "text": "public function search()\n\t{\n\t\t$criteria = new CDbCriteria;\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t\t\t\t\t\t\t\t\t\t 'criteria' => $criteria,\n\t\t\t\t\t\t\t\t\t\t\t ));\n\t}", "title": "" }, { "docid": "d6657002629ee0d5c13f682bf73947d7", "score": "0.71240145", "text": "public function search()\n {\n $criteria = new CDbCriteria;\n\n return new CActiveDataProvider(get_class($this), array(\n 'criteria' => $criteria,\n 'pagination' => array(\n 'pageSize' => (int)Yii::app()->request->getQuery('pageSize', 20),\n 'pageVar' => 'page',\n ),\n 'sort' => array(\n 'defaultOrder' => array(\n 'value_id' => CSort::SORT_DESC,\n ),\n ),\n ));\n }", "title": "" }, { "docid": "59d1ffbcc81fedca7575c988a8e77639", "score": "0.70874417", "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('id',$this->id,true);\n\t\t$criteria->compare('filter',$this->filter,true);\n\t\t$criteria->compare('act_list',$this->act_list,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "6ae955883d184bd0f41ccab1b2f9f365", "score": "0.70813185", "text": "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "fd4659d5c20decea1e9c1d7cd79c6d23", "score": "0.7073911", "text": "public function getSearchCriteria()\n {\n /* setting the default pagination for the page */\n if (!Yii::$app->session->get($this->MainModel . 'Pagination')) {\n Yii::$app->session->set($this->MainModel . 'Pagination', Yii::$app->getModule('core')->recordsPerPage);\n }\n $savedQueryParams = Yii::$app->session->get($this->MainModel . 'QueryParams');\n if (count($savedQueryParams)) {\n $queryParams = $savedQueryParams;\n } else {\n $queryParams = [substr($this->MainModelSearch, strrpos($this->MainModelSearch, \"\\\\\") + 1) => $this->defaultQueryParams];\n }\n /* use the same filters as before */\n if (count(Yii::$app->request->queryParams)) {\n $queryParams = array_merge($queryParams, Yii::$app->request->queryParams);\n }\n\n if (isset($queryParams['page'])) {\n $_GET['page'] = $queryParams['page'];\n }\n if (Yii::$app->request->getIsPjax()) {\n $this->layout = false;\n }\n Yii::$app->session->set($this->MainModel . 'QueryParams', $queryParams);\n $this->searchModel = new $this->MainModelSearch;\n $this->dataProvider = $this->searchModel->search($queryParams);\n }", "title": "" }, { "docid": "70f0783b1ac2f30c9127705111d1e36f", "score": "0.70498663", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('model',$this->model,true);\n\t\t$criteria->compare('modelId',$this->modelId);\n\t\t$criteria->compare('imagen',$this->imagen);\n\t\t$criteria->compare('destacada',$this->destacada);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "48aac5aabb35df0f8539ed0344dfda11", "score": "0.70070624", "text": "public function search($filter=array())\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n $strings=$this->datahelper->getModelSearch();\n foreach($strings as $str){\n //explode params\n $params=explode(\",\",$str->params);\n if($str->method==\"compare\"){\n $name=trim($params[0]);\n if(isset($params[1]))\n $criteria->compare($name,$this->$name,trim($params[1]));\n else\n $criteria->compare($name,$this->$name); \n }\n }\n if(is_array($filter) && count($filter)>0){\n foreach($filter as $key=>$value){\n $condition= $key.\"='$value'\";\n $criteria->addCondition($condition);\n } \n }\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "d09fce63ee0a7ddb36addb9aa4665fb9", "score": "0.70006603", "text": "public function search()\n {\n $criteria = new CDbCriteria;\n\n return new CActiveDataProvider(get_class($this), array(\n 'criteria' => $criteria,\n 'pagination' => array(\n 'pageSize' => $this->paginationOptions->getPageSize(),\n 'pageVar' => 'page',\n ),\n 'sort' => array(\n 'defaultOrder' => array(\n 'value_id' => CSort::SORT_DESC,\n ),\n ),\n ));\n }", "title": "" }, { "docid": "55ca7299a3b8d34d556a5afb3ae7df1b", "score": "0.6989732", "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('filterID',$this->filterID);\n\t\t$criteria->compare('title',$this->title,true);\n\t\t$criteria->compare('description',$this->description,true);\n\t\t$criteria->compare('dateFrom',$this->dateFrom,true);\n\t\t$criteria->compare('dateTo',$this->dateTo,true);\n\t\t$criteria->compare('timeFrom',$this->timeFrom,true);\n\t\t$criteria->compare('timeTo',$this->timeTo,true);\n\t\t$criteria->compare('weekdayFrom',$this->weekdayFrom,true);\n\t\t$criteria->compare('weekdayTo',$this->weekdayTo,true);\n\t\t$criteria->compare('year',$this->year,true);\n\t\t$criteria->compare('month',$this->month,true);\n\t\t$criteria->compare('totalAmountFrom',$this->totalAmountFrom,true);\n\t\t$criteria->compare('totalAmountTo',$this->totalAmountTo,true);\n\t\t$criteria->compare('retailer',$this->retailer,true);\n\t\t$criteria->compare('outletName',$this->outletName,true);\n\t\t$criteria->compare('transactionType',$this->transactionType,true);\n\t\t$criteria->compare('new_user_ID',$this->new_user_ID,true);\n\t\t$criteria->compare('userID',$this->userID,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "8afb11962d327f8e5c4ed7b5a4230884", "score": "0.69814616", "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('id',$this->id);\n\t\t$criteria->compare('manufacturer',$this->manufacturer,true);\n\t\t$criteria->compare('designer',$this->designer,true);\n\t\t$criteria->compare('weight',$this->weight,true);\n\t\t$criteria->compare('length',$this->length,true);\n\t\t$criteria->compare('dateOrdered',$this->dateOrdered,true);\n\t\t$criteria->compare('dateSupplied',$this->dateSupplied,true);\n\t\t$criteria->compare('drawing',$this->drawing,true);\n\t\t$criteria->compare('consumables_id',$this->consumables_id);\n\t\t$criteria->compare('DateCreated',$this->DateCreated,true);\n\t\t$criteria->compare('create_user_id',$this->create_user_id);\n\t\t$criteria->compare('LastUpdated',$this->LastUpdated,true);\n\t\t$criteria->compare('update_user_id',$this->update_user_id);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "85afa9c7fa3d0beb37147eec2c6d25b2", "score": "0.69758445", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('aa_model_uuid',$this->aa_model_uuid,true);\n\t\t$criteria->compare('aa_model_name',$this->aa_model_name,true);\n\t\t$criteria->compare('aa_model_description',$this->aa_model_description,true);\n\t\t$criteria->compare('excpected_ror',$this->excpected_ror,true);\n\t\t$criteria->compare('risk_factor',$this->risk_factor,true);\n\t\t$criteria->compare('user_uuid',$this->user_uuid,true);\n\t\t$criteria->compare('group_uuid',$this->group_uuid,true);\n\t\t$criteria->compare('cr_timestamp',$this->cr_timestamp,true);\n\t\t$criteria->compare('up_timestamp',$this->up_timestamp,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "19ee2d731e5e906588fafc0ed804425f", "score": "0.69646585", "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('id',$this->id);\n\t\t$criteria->compare('makes_id',$this->makes_id);\n\t\t$criteria->compare('model_id',$this->model_id);\n\t\t$criteria->compare('variant',$this->variant,true);\n\t\t$criteria->compare('user_id',$this->user_id);\n\t\t$criteria->compare('imgpath',$this->imgpath,true);\n\t\t$criteria->compare('makes_name',$this->makes_name,true);\n\t\t$criteria->compare('models_name',$this->models_name,true);\n\t\t$criteria->compare('status',$this->status);\n\t\t$criteria->compare('timestamp',$this->timestamp,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "6e832b3308d02b5a97e0bbc1300bd2e7", "score": "0.6938733", "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('id',$this->id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('type',$this->type,true);\n\t\t$criteria->compare('upload_bonus',$this->upload_bonus,true);\n\t\t$criteria->compare('adopt_bonus',$this->adopt_bonus,true);\n\t\t$criteria->compare('is_input',$this->is_input);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "d332f04aff2b57118185c976c1c70c0f", "score": "0.69136643", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('product_id',$this->product_id);\n\t\t$criteria->compare('model',$this->model,true);\n\t\t$criteria->compare('product_line',$this->product_line,true);\n\t\t$criteria->compare('category_id',$this->category_id);\n\t\t$criteria->compare('discharge_air_volume',$this->discharge_air_volume);\n\t\t$criteria->compare('pressure',$this->pressure);\n\t\t$criteria->compare('power',$this->power);\n\t\t$criteria->compare('product_starting',$this->product_starting,true);\n\t\t$criteria->compare('voltage',$this->voltage,true);\n\t\t$criteria->compare('cooling_system',$this->cooling_system,true);\n\t\t$criteria->compare('dimension_l',$this->dimension_l);\n\t\t$criteria->compare('dimension_w',$this->dimension_w);\n\t\t$criteria->compare('dimension_h',$this->dimension_h);\n\t\t$criteria->compare('weight',$this->weight);\n\t\t$criteria->compare('noise',$this->noise);\n\t\t$criteria->compare('discharge_pipe',$this->discharge_pipe);\n\t\t$criteria->compare('lubrication_oil',$this->lubrication_oil);\n\t\t$criteria->compare('download',$this->download,true);\n\t\t$criteria->compare('brand',$this->brand,true);\n\t\t$criteria->compare('capacity',$this->capacity,true);\n\t\t$criteria->compare('working_pressure',$this->working_pressure,true);\n\t\t$criteria->compare('phrase',$this->phrase,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "12352ea9ba9042c72db697278bc64e4b", "score": "0.6910109", "text": "public function search($params=[]) {\n\t\t// create a query from the parent model\n\t\t$query = $this->parentModel::find();\n\t\t\n\t\t// load the parameters into this model and continue\n\t\t// if the model validates\n\t\tif ($this->load($params)) {\n\t\t\t// iterate through the search attributes building a generic filter array\n\t\t\t$filterParams = ['and' => []];\n\t\t\t$attributeFilters = [];\n\t\t\tforeach ($this->attributes() as $attribute) {\n\t\t\t\tif ($this->$attribute) {\n\t\t\t\t\t$attributeFilters[] = [$attribute => $this->$attribute];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// if we have filters to apply, build a filter condition that can\n\t\t\t// be added to the query\n\t\t\tif (sizeof($attributeFilters) > 0) {\n\t\t\t\t$filterParams['and'] = $attributeFilters;\n\t\t\t\n\t\t\t\t$params = ['filter' => $filterParams];\n\t\t\t\t$dataFilter = new ActiveDataFilter([\n\t\t\t\t\t'searchModel' => $this\n\t\t\t\t]);\n\t\t\t\n\t\t\t\t$filterCondition = null;\n\t\t\t\t$dataFilter->load($params);\n\t\t if ($dataFilter->validate()) {\n\t\t $filterCondition = $dataFilter->build();\n\t\t \n\t\t // if we have a valid filter condition, add it to the query\n\t\t\t\t\tif ($filterCondition !== null) {\n\t\t\t\t\t\t$query->andWhere($filterCondition);\n\t\t\t\t\t}\n\t\t } else {\t\t \n\t\t\t \\Yii::warning('Search filter isn\\'t valid: '.print_r($dataFilter->getErrors()['filter'],true));\n\t\t\t }\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn new ActiveDataProvider([\n\t\t\t'query' => $query,\n\t\t]);\n }", "title": "" }, { "docid": "521ced9c21f626b75db6d77ef8174cd8", "score": "0.6906489", "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('id',$this->id);\n\t\t$criteria->compare('input_type',$this->input_type,true);\n\t\t$criteria->compare('purchase_id',$this->purchase_id);\n\t\t$criteria->compare('input_date',$this->input_date);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "e09217be653234709894ffbe428d5c3b", "score": "0.6901681", "text": "public function search()\n {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria=new CDbCriteria;\n\n //$criteria->compare('name',$this->name,true);\n //$criteria->compare('type',$this->type);\n //$criteria->compare('description',$this->description,true);\n //$criteria->compare('bizrule',$this->bizrule,true);\n //$criteria->compare('data',$this->data,true);\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "6daede7fc55ab4e5490e27bd462468a1", "score": "0.69001573", "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('id_company',$this->id_company);\n\t\t$criteria->compare('created_date',$this->created_date,true);\n\t\t$criteria->compare('update_date',$this->update_date,true);\n\t\t$criteria->compare('company_code',$this->company_code,true);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('owner',$this->owner,true);\n\t\t$criteria->compare('address',$this->address,true);\n\t\t$criteria->compare('email',$this->email,true);\n\t\t$criteria->compare('phone',$this->phone,true);\n\t\t$criteria->compare('faximile',$this->faximile,true);\n\t\t$criteria->compare('postal_code',$this->postal_code);\n\t\t$criteria->compare('type',$this->type);\n\t\t$criteria->compare('place',$this->place);\n\t\t$criteria->compare('classification',$this->classification,true);\n\t\t$criteria->compare('province',$this->province);\n\t\t$criteria->compare('city',$this->city);\n\t\t$criteria->compare('category_id',$this->category_id);\n\t\t$criteria->compare('status',$this->status);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t\t));\n\t}", "title": "" }, { "docid": "5b88e9a2ddfe751e881aaa2f4919e7a3", "score": "0.6899218", "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('id_company',$this->id_company);\n\t\t$criteria->compare('company_code',$this->company_code,true);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('address',$this->address,true);\n\t\t$criteria->compare('phone',$this->phone,true);\n\t\t$criteria->compare('district_id',$this->district_id);\n\t\t$criteria->compare('klui',$this->klui);\n\t\t$criteria->compare('category_id',$this->category_id);\n\t\t$criteria->compare('classification',$this->classification,true);\n\t\t$criteria->compare('type',$this->type);\n\t\t$criteria->compare('status',$this->status);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "91c7c64f362620ee9d1e08a7b515df80", "score": "0.6897863", "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('id',$this->id);\n\t\t$criteria->compare('action_id',$this->action_id,true);\n\t\t$criteria->compare('action_type',$this->action_type);\n\t\t$criteria->compare('obj_str',$this->obj_str,true);\n\t\t$criteria->compare('create_time',$this->create_time,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "0fc5a763d7c400c8c9bb0bcaf08c3e93", "score": "0.6896169", "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('id',$this->id);\n\t\t$criteria->compare('mobile',$this->mobile,true);\n\t\t$criteria->compare('prize_id',$this->prize_id);\n\t\t$criteria->compare('prize_name',$this->prize_name,true);\n\t\t$criteria->compare('type',$this->type);\n\t\t$criteria->compare('day',$this->day);\n\t\t$criteria->compare('create_time',$this->create_time);\n $criteria->compare('update_time',$this->update_time);\n\t\t$criteria->compare('back_amount',$this->back_amount,true);\n\t\t$criteria->compare('back_status',$this->back_status);\n\t\t$criteria->compare('back_sn',$this->back_sn,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "1172942d925a13284736601927ff930a", "score": "0.68843883", "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\tid \tpid \tuser_name \tbegin_time \tend_time \tid_action \ttable_name \tpk_name \tpk_val \taction_tstamp \taction1 \tfield_name \told_data \tnew_data \tid_session\n\n// \t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('id_session',$this->id_session);\n// \t\t$criteria->compare('schema_name',$this->schema_name,true);\n\t\t$criteria->compare('table_name',$this->table_name,true);\n\t\t$criteria->compare('action_tstamp',$this->action_tstamp,true);\n\t\t$criteria->compare('action',$this->action,true);\n// \t\t$criteria->compare('query',$this->query,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "a4b8edc9290d49a8853ab1b6a0dc785f", "score": "0.6884355", "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('id',$this->id);\n\t\t$criteria->compare('supplier_id',$this->supplier_id);\n\t\t$criteria->compare('site_id',$this->site_id);\n\t\t$criteria->compare('adSpace_id',$this->adSpace_id);\n\t\t$criteria->compare('total_monies',$this->total_monies,true);\n\t\t$criteria->compare('imp',$this->imp);\n\t\t$criteria->compare('click',$this->click);\n\t\t$criteria->compare('year',$this->year);\n\t\t$criteria->compare('month',$this->month);\n\t\t$criteria->compare('buy_type',$this->buy_type);\n\t\t$criteria->compare('charge_type',$this->charge_type);\n\t\t$criteria->compare('price',$this->price,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "c7b3e043a221f54de05646a02ce1ce96", "score": "0.68831015", "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\t\tif(!Yii::app()->user->checkAccess('admin')) $criteria->compare('empresa',Yii::app()->user->empresa);\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('empresa',$this->empresa,true);\n\t\t$criteria->compare('campo01',$this->campo01,true);\n\t\t$criteria->compare('campo02',$this->campo02,true);\n\t\t$criteria->compare('campo03',$this->campo03,true);\n\t\t$criteria->compare('campo04',$this->campo04,true);\n\t\t$criteria->compare('campo05',$this->campo05,true);\n\t\t$criteria->compare('campo06',$this->campo06,true);\n\t\t$criteria->compare('campo07',$this->campo07,true);\n\t\t$criteria->compare('campo08',$this->campo08,true);\n\t\t$criteria->compare('campo09',$this->campo09,true);\n\t\t$criteria->compare('campo10',$this->campo10,true);\n\t\t$criteria->compare('campo11',$this->campo11,true);\n\t\t$criteria->compare('campo12',$this->campo12,true);\n\t\t$criteria->compare('campo13',$this->campo13,true);\n\t\t$criteria->compare('campo14',$this->campo14,true);\n\t\t$criteria->compare('campo15',$this->campo15,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "0606dbe8b17093327658b728c23a2c7f", "score": "0.6878884", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('app_id',$this->app_id,true);\n\t\t$criteria->compare('current_app_version',$this->current_app_version,true);\n\t\t$criteria->compare('os_version',$this->os_version,true);\n\t\t$criteria->compare('os_type',$this->os_type,true);\n\t\t$criteria->compare('latest_version',$this->latest_version,true);\n\t\t$criteria->compare('latest_version_url',$this->latest_version_url,true);\n\t\t$criteria->compare('upgrade_status',$this->upgrade_status);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "48297e6b373810f48f9241160e476b1a", "score": "0.6876701", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('egift_id',$this->egift_id,true);\n\t\t$criteria->compare('checkout_id',$this->checkout_id,true);\n\t\t$criteria->compare('ins_dt',$this->ins_dt,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "af564da0819ce0b0bba541298edb4364", "score": "0.6874321", "text": "public function search() {\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('id', $this->id);\n\t\t$criteria->compare('FZJG', $this->FZJG, true);\n\t\t$criteria->compare('car_id', $this->car_id, true);\n\t\t$criteria->compare('plate_type', $this->plate_type, true);\n\t\t$criteria->compare('car_type', $this->car_type, true);\n\t\t$criteria->compare('use_type', $this->use_type, true);\n\t\t$criteria->compare('reg_date', $this->reg_date, true);\n\t\t$criteria->compare('oil', $this->oil, true);\n\t\t$criteria->compare('valid_expire_date', $this->valid_expire_date, true);\n\t\t$criteria->compare('Manufacture_date', $this->Manufacture_date, true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t\t'criteria' => $criteria,\n\t\t\t));\n\t}", "title": "" }, { "docid": "f29c488a6eb2897ffbcff0e9afade95f", "score": "0.6872266", "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('ID',$this->ID);\n\t\t$criteria->compare('ChartID',$this->ChartID,true);\n\t\t$criteria->compare('LastName',$this->LastName,true);\n\t\t$criteria->compare('FirstName',$this->FirstName,true);\n\t\t$criteria->compare('MI',$this->MI,true);\n\t\t$criteria->compare('BirthDate',$this->BirthDate,true);\n\t\t$criteria->compare('Sex',$this->Sex,true);\n\t\t$criteria->compare('Ethnicity',$this->Ethnicity,true);\n\t\t$criteria->compare('EntryDate',$this->EntryDate,true);\n\t\t$criteria->compare('Surgeon',$this->Surgeon);\n\t\t$criteria->compare('Office',$this->Office);\n\t\t$criteria->compare('Phone',$this->Phone,true);\n\t\t$criteria->compare('Referral',$this->Referral);\n\t\t$criteria->compare('CalcRightEye',$this->CalcRightEye);\n\t\t$criteria->compare('CalcLeftEye',$this->CalcLeftEye);\n\t\t$criteria->compare('dbowner',$this->dbowner);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "6bd50f3bc6aeb55ee2bbd4a6832f7ab2", "score": "0.6871861", "text": "public function search() {\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('condition', $this->condition, true);\n $criteria->compare('type', $this->type);\n $criteria->compare('order', $this->order);\n\n return new CActiveDataProvider(get_class($this), array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "66c0d2e2d51d65e76294082f0275d306", "score": "0.68687826", "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('id',$this->id,true);\n\t\t$criteria->compare('pname',$this->pname,true);\n\t\t$criteria->compare('etiology',$this->etiology,true);\n\t\t$criteria->compare('main_id',$this->main_id,true);\n\t\t$criteria->compare('sex',$this->sex);\n\t\t$criteria->compare('age',$this->age);\n\t\t$criteria->compare('address',$this->address,true);\n\t\t$criteria->compare('mname',$this->mname,true);\n\t\t$criteria->compare('spell',$this->spell,true);\n\t\t$criteria->compare('mid',$this->mid,true);\n\t\t$criteria->compare('weight',$this->weight,true);\n\t\t$criteria->compare('amount',$this->amount);\n\t\t$criteria->compare('way',$this->way,true);\n\t\t$criteria->compare('pdprice',$this->pdprice,true);\n\t\t$criteria->compare('mprice',$this->mprice,true);\n\t\t$criteria->compare('total',$this->total,true);\n\t\t$criteria->compare('created_at',$this->created_at);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "4afbf761e6be96a7cf78c741ce86a8ff", "score": "0.686712", "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('id',$this->id,true);\n\t\t$criteria->compare('user_id',$this->user_id);\n\t\t$criteria->compare('cleaner_id',$this->cleaner_id,true);\n\t\t$criteria->compare('filter_id',$this->filter_id);\n\t\t$criteria->compare('filter_name',$this->filter_name,true);\n\t\t$criteria->compare('create_time',$this->create_time);\n\t\t$criteria->compare('receiver_name',$this->receiver_name,true);\n\t\t$criteria->compare('receiver_mobile',$this->receiver_mobile,true);\n\t\t$criteria->compare('receiver_address',$this->receiver_address,true);\n //$criteria->compare('status',$this->status);\n\n $criteria->with = 'cleaner';\n $criteria->order = 'create_time DESC';\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "00808f22ae4471ea15b470a5e98030f3", "score": "0.686247", "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('ID',$this->ID);\n\t\t$criteria->compare('Name',$this->Name,true);\n\t\t$criteria->compare('Type',$this->Type,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n 'pagination'=>array('pageSize'=>20),\n\t\t));\n\t}", "title": "" }, { "docid": "b3a051e1008ff604291e80c0d58964d4", "score": "0.6856535", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('apply_id',$this->apply_id);\n\t\t$criteria->compare('type',$this->type,true);\n\t\t$criteria->compare('user_id',$this->user_id);\n\t\t$criteria->compare('supervision_id',$this->supervision_id);\n\t\t$criteria->compare('status',$this->status,true);\n\t\t$criteria->compare('update_time',$this->update_time,true);\n\t\t$criteria->compare('create_time',$this->create_time,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "0482bb784937a321b66d744766178fdc", "score": "0.68538964", "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(Globals::FLD_NAME_COUNTRY_CODE,$this->{Globals::FLD_NAME_COUNTRY_CODE},true);\n\t\t$criteria->compare(Globals::FLD_NAME_LANGUAGE_CODE,$this->{Globals::FLD_NAME_LANGUAGE_CODE},true);\n\t\t$criteria->compare(Globals::FLD_NAME_COUNTRY_NAME,$this->{Globals::FLD_NAME_COUNTRY_NAME},true);\n\t\t$criteria->compare(Globals::FLD_NAME_COUNTRY_STATUS,$this->{Globals::FLD_NAME_COUNTRY_STATUS});\n\t\t$criteria->compare(Globals::FLD_NAME_COUNTRY_PRIORITY,$this->{Globals::FLD_NAME_COUNTRY_PRIORITY});\n\t\t$criteria->compare(Globals::FLD_NAME_CREATE_TIMESTAMP,$this->{Globals::FLD_NAME_CREATE_TIMESTAMP},true);\n\t\t$criteria->compare(Globals::FLD_NAME_CREATE_BY,$this->{Globals::FLD_NAME_CREATE_BY});\n\t\t$criteria->compare(Globals::FLD_NAME_UPDATE_TIMESTAMP,$this->{Globals::FLD_NAME_UPDATE_TIMESTAMP},true);\n\t\t$criteria->compare(Globals::FLD_NAME_UPDATED_BY,$this->{Globals::FLD_NAME_UPDATED_BY});\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "b960890a33643d8e0396d69b0a363bb0", "score": "0.6850519", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n//\t\t$criteria->compare('USER_ID',$this->USER_ID);\n//\n//\t\t$criteria->compare('GENDER',$this->GENDER);\n//\n//\t\t$criteria->compare('NICK_NAME',$this->NICK_NAME,true);\n//\n//\t\t$criteria->compare('REG_PHONE_NUM',$this->REG_PHONE_NUM,true);\n//\n//\t\t$criteria->compare('REG_EMAIL',$this->REG_EMAIL,true);\n//\n//\t\t$criteria->compare('PASSWORD',$this->PASSWORD,true);\n//\n//\t\t$criteria->compare('LEVEL',$this->LEVEL);\n//\n//\t\t$criteria->compare('SCORE',$this->SCORE);\n//\n//\t\t$criteria->compare('USER_STATUS',$this->USER_STATUS);\n//\n//\t\t$criteria->compare('DEFAULT_PIC',$this->DEFAULT_PIC);\n//\n//\t\t$criteria->compare('HEAD_PIC',$this->HEAD_PIC,true);\n//\n//\t\t$criteria->compare('CREATE_TIME',$this->CREATE_TIME,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "19f9668f7ed9f251bf3e40ccc35d6afa", "score": "0.6848907", "text": "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = $this->criteriaSearch();\n $criteria->limit = 10;\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "865d88fef85b9897e976883585c5c978", "score": "0.6848596", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('fCatalogueNo',$this->fCatalogueNo,true);\n\t\t$criteria->compare('fItemNo',$this->fItemNo,true);\n\t\t$criteria->compare('fTemplateNo',$this->fTemplateNo,true);\n\t\t$criteria->compare('fIsActive',$this->fIsActive,true);\n\t\t$criteria->compare('fSort',$this->fSort);\n\t\t$criteria->compare('fStatus',$this->fStatus);\n\t\t$criteria->compare('fWarnStart',$this->fWarnStart,true);\n\t\t$criteria->compare('fWarnEnd',$this->fWarnEnd,true);\n\t\t$criteria->compare('fFatherCatalogueNo',$this->fFatherCatalogueNo,true);\n\t\t$criteria->compare('fUserGroup',$this->fUserGroup,true);\n\t\t$criteria->compare('fWaitFinishingNum',$this->fWaitFinishingNum);\n\t\t$criteria->compare('fFinishedNum',$this->fFinishedNum);\n\t\t$criteria->compare('fResultNum',$this->fResultNum);\n\t\t$criteria->compare('fDocumentNum',$this->fDocumentNum);\n\t\t$criteria->compare('fTaskNum',$this->fTaskNum);\n\t\t$criteria->compare('fKnowledgeNum',$this->fKnowledgeNum);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "17249a635f13b923f5f4a372ccffc805", "score": "0.6847007", "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('ID',$this->ID);\n\t\t$criteria->compare('Car_ID',$this->Car_ID);\n\t\t$criteria->compare('Deal_ID',$this->Deal_ID);\n\t\t$criteria->compare('DealStatus_ID',$this->DealStatus_ID);\n\t\t$criteria->compare('SalesPerson_ID',$this->SalesPerson_ID);\n\t\t$criteria->compare('User_ID',$this->User_ID);\n\t\t$criteria->compare('DealStatus',$this->DealStatus,true);\n\t\t$criteria->compare('Make',$this->Make,true);\n\t\t$criteria->compare('Model',$this->Model,true);\n\t\t$criteria->compare('Price',$this->Price,true);\n\t\t$criteria->compare('SalesPersonUserName',$this->SalesPersonUserName,true);\n\t\t$criteria->compare('StyleID',$this->StyleID,true);\n\t\t$criteria->compare('Year',$this->Year,true);\n\t\t$criteria->compare('UserName',$this->UserName,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "c60962771965111ff2f1819484b521da", "score": "0.68434", "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('source_id',$this->source_id);\n\t\t$criteria->compare('source_name',$this->source_name,true);\n\t\t$criteria->compare('source_rule',$this->source_rule,true);\n\t\t$criteria->compare('url_example',$this->url_example,true);\n\t\t$criteria->compare('last_check',$this->last_check,true);\n\t\t$criteria->compare('flv_player_support',$this->flv_player_support,true);\n\t\t$criteria->compare('embed_player_support',$this->embed_player_support,true);\n\t\t$criteria->compare('embed_code',$this->embed_code,true);\n\t\t$criteria->compare('user_choice',$this->user_choice,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "d0d5c58270dff57088e10dfb698dcc38", "score": "0.68378186", "text": "public function search()\n {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('tabel_id', $this->tabel_id, true);\n $criteria->compare('birthday', $this->birthday, true);\n $criteria->compare('firm_id', $this->firm_id);\n $criteria->compare('card', $this->card, true);\n $criteria->compare('hard_id', $this->hard_id, true);\n $criteria->compare('payment_id', $this->payment_id, true);\n $criteria->compare('creation_date', $this->creation_date, true);\n $criteria->compare('status', $this->status);\n $criteria->compare('wallet_status', $this->wallet_status);\n $criteria->compare('type', $this->type);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "8d7da54ab68dee356d32a6a0de4fc6d7", "score": "0.68362653", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('log_uid',$this->log_uid,true);\n\t\t$criteria->compare('model_name',$this->model_name,true);\n\t\t$criteria->compare('model_primarykey',$this->model_primarykey,true);\n\t\t$criteria->compare('action',$this->action,true);\n\t\t$criteria->compare('field',$this->field,true);\n\t\t$criteria->compare('value_now',$this->value_now,true);\n\t\t$criteria->compare('value_original',$this->value_original,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "dd95539968e1908ffee5c27435f6d83f", "score": "0.6829058", "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, true);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('brand_id', $this->brand_id, false);\n $criteria->compare('category_id', $this->category_id, false);\n $criteria->compare('price', $this->price, false);\n $criteria->compare('date', $this->date, true);\n $criteria->compare('rating', $this->rating, false);\n\n return new CActiveDataProvider(get_class($this), array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "d0c398896b3e86c77b0fdeb051726c05", "score": "0.6825333", "text": "public function search() {\r\n\t\t// Warning: Please modify the following code to remove attributes that\r\n\t\t// should not be searched.\r\n\r\n\t\t$criteria = $this->criteriaSearch();\r\n\t\t$criteria->limit = 10;\r\n\r\n\t\treturn new CActiveDataProvider($this, array(\r\n\t\t\t'criteria' => $criteria,\r\n\t\t));\r\n\t}", "title": "" }, { "docid": "d0c398896b3e86c77b0fdeb051726c05", "score": "0.6825333", "text": "public function search() {\r\n\t\t// Warning: Please modify the following code to remove attributes that\r\n\t\t// should not be searched.\r\n\r\n\t\t$criteria = $this->criteriaSearch();\r\n\t\t$criteria->limit = 10;\r\n\r\n\t\treturn new CActiveDataProvider($this, array(\r\n\t\t\t'criteria' => $criteria,\r\n\t\t));\r\n\t}", "title": "" }, { "docid": "fe2bf7fc70e891f10196411d5b09d8e1", "score": "0.6818764", "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('id',$this->id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('platform',$this->platform);\n $criteria->compare('is_active',$this->is_active);\n\t\t$criteria->compare('company_id',$this->company_id);\n $criteria->compare('last_listing_sync_time_utc',$this->last_listing_sync_time_utc);\n $criteria->compare('ebay_api_key_id',$this->ebay_api_key_id);\n $criteria->compare('ebay_token',$this->ebay_token,true);\n $criteria->compare('ebay_site_code',$this->ebay_site_code);\n $criteria->compare('HardExpirationTime',$this->HardExpirationTime);\n $criteria->compare('wish_token',$this->wish_token);\n\t\t$criteria->compare('create_time_utc',$this->create_time_utc);\n\t\t$criteria->compare('create_user_id',$this->create_user_id);\n\t\t$criteria->compare('update_time_utc',$this->update_time_utc);\n\t\t$criteria->compare('update_user_id',$this->update_user_id);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "5a5b3ad4f53702bde92f6cf5c6fad541", "score": "0.68181276", "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('name',$this->name,true);\n\t\t$criteria->compare('active',$this->active,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n 'pagination'=>array(\n 'pageSize' => Yii::app()->params['countOnPage'],\n ),\n\t\t));\n\t}", "title": "" }, { "docid": "0a146fd1a96ddaadc4748ba89a2b2af1", "score": "0.6816845", "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('id',$this->id,true);\n\t\t$criteria->compare('user_id',$this->user_id,true);\n\t\t$criteria->compare('procurement_id',$this->procurement_id,true);\n\t\t$criteria->compare('commodity_id',$this->commodity_id,true);\n\t\t$criteria->compare('company',$this->company,true);\n\t\t$criteria->compare('type',$this->type);\n\t\t$criteria->compare('research_time',$this->research_time,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "79a453f065eaf0021b0cece48d1b6ed9", "score": "0.6811485", "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('id',$this->id);\n\t\t$criteria->compare('item_id',$this->item_id,true);\n\t\t$criteria->compare('owner',$this->owner,true);\n\t\t$criteria->compare('used_time',$this->used_time,true);\n\t\t$criteria->compare('license_plate',$this->license_plate,true);\n\t\t$criteria->compare('vehicle_type',$this->vehicle_type,true);\n\t\t$criteria->compare('use_type',$this->use_type);\n\t\t$criteria->compare('violation',$this->violation);\n\t\t$criteria->compare('buy_time',$this->buy_time,true);\n\t\t$criteria->compare('buy_price',$this->buy_price,true);\n\t\t$criteria->compare('color',$this->color,true);\n\t\t$criteria->compare('brand_model',$this->brand_model,true);\n\t\t$criteria->compare('emissions',$this->emissions,true);\n\t\t$criteria->compare('kilometre',$this->kilometre,true);\n\t\t$criteria->compare('annual_inspection_due_date',$this->annual_inspection_due_date,true);\n\t\t$criteria->compare('insurance_due_date',$this->insurance_due_date,true);\n\t\t$criteria->compare('valuation',$this->valuation,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "a7125efa351a46a45a79000218c123f6", "score": "0.6810911", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('user_id',$this->user_id);\n\t\t$criteria->compare('regions',$this->regions,true);\n\t\t$criteria->compare('profiles',$this->profiles,true);\n\t\t$criteria->compare('goods',$this->goods,true);\n\t\t$criteria->compare('personal',$this->personal);\n\t\t$criteria->compare('license',$this->license,true);\n\t\t$criteria->compare('portfolio',$this->portfolio,true);\n\t\t$criteria->compare('price',$this->price,true);\n\t\t$criteria->compare('age',$this->age);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "7f6ff5c29272ad808333638c1bceff17", "score": "0.6809353", "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('id',$this->id);\n\t\t$criteria->compare('created',$this->created,true);\n\t\t$criteria->compare('updated',$this->updated);\n\t\t$criteria->compare('status',$this->status);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('category',$this->category);\n\t\t$criteria->compare('make',$this->make);\n\t\t$criteria->compare('model',$this->model);\n\t\t$criteria->compare('year',$this->year);\n\t\t$criteria->compare('price',$this->price);\n\t\t$criteria->compare('currency',$this->currency);\n\t\t$criteria->compare('mileage',$this->mileage);\n\t\t$criteria->compare('region',$this->region);\n\t\t$criteria->compare('city',$this->city);\n\t\t$criteria->compare('user',$this->user);\n\t\t$criteria->compare('description',$this->description,true);\n\t\t$criteria->compare('phone',$this->phone,true);\n\t\t$criteria->compare('published_to',$this->published_to);\n\t\t$criteria->compare('link',$this->link,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "a25de1f996391f8a1d69e846642947d8", "score": "0.6807223", "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('bank_id',$this->bank_id,true);\n\t\t$criteria->compare('country_id',$this->country_id,true);\n\t\t$criteria->compare('status',$this->status,true);\n\t\t$criteria->compare('payment_mode',$this->payment_mode,true);\n\t\t$criteria->compare('approved',$this->approved);\n\t\t$criteria->compare('approved_user_id',$this->approved_user_id);\n\t\t$criteria->compare('disapproved_user_id',$this->disapproved_user_id);\n\t\t$criteria->compare('activated_user_id',$this->activated_user_id);\n\t\t$criteria->compare('activated_time',$this->activated_time,true);\n\t\t$criteria->compare('approved_time',$this->approved_time,true);\n\t\t$criteria->compare('disapproved_time',$this->disapproved_time,true);\n\t\t$criteria->compare('initiator_create_time',$this->initiator_create_time,true);\n\t\t$criteria->compare('initiator_update_time',$this->initiator_update_time,true);\n\t\t$criteria->compare('initiator_create_user_id',$this->initiator_create_user_id);\n\t\t$criteria->compare('initiator_update_user_id',$this->initiator_update_user_id);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "66077094b3ead2aefe125906c3696433", "score": "0.6807044", "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('id',$this->id,true);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('description',$this->description,true);\n\t\t$criteria->compare('type',$this->type);\n\t\t$criteria->compare('update_time',$this->update_time,true);\n\t\t$criteria->compare('addons',$this->addons,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "c0548dee5e4508f0a99a98b7b8d581c7", "score": "0.6806983", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\t\t//$criteria->compare('dependencia_id',$this->dependencia_id);\n\t\t//$criteria->compare('responsable_id',$this->responsable_id);\n\t\t$criteria->compare('fecha_emision',$this->fecha_emision,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "747866254a2045d1bbabc6e81fa626ca", "score": "0.6804859", "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('re_id',$this->re_id);\n\t\t$criteria->compare('user_id',$this->user_id);\n\t\t$criteria->compare('alliance_id',$this->alliance_id);\n\t\t$criteria->compare('apply_type',$this->apply_type,true);\n\t\t$criteria->compare('gmt_created',$this->gmt_created,true);\n\t\t$criteria->compare('gmt_modified',$this->gmt_modified,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "8f6d57a6d48a14fcc73ba35aecfe58a2", "score": "0.6803571", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('idtbl_auto',$this->idtbl_auto);\n\t\t$criteria->compare('merk',$this->merk,true);\n\t\t$criteria->compare('type',$this->type,true);\n\t\t$criteria->compare('brandstof',$this->brandstof,true);\n\t\t$criteria->compare('beginstand',$this->beginstand);\n\t\t$criteria->compare('kenteken',$this->kenteken,true);\n\t\t$criteria->compare('bouwjaar',$this->bouwjaar);\n\t\t$criteria->compare('aanschafprijs',$this->aanschafprijs);\n\t\t$criteria->compare('wegenbelasting',$this->wegenbelasting);\n\t\t$criteria->compare('verzekering',$this->verzekering);\n\t\t$criteria->compare('afschrijving',$this->afschrijving);\n\t\t$criteria->compare('tbl_user_idtbl_user',$this->tbl_user_idtbl_user);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "0e060ef77b4d07720c0c33afde5b2fe3", "score": "0.6802816", "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('id_Alquiler',$this->id_Alquiler);\n\t\t$criteria->compare('fechaFinal_Alquiler',$this->fechaFinal_Alquiler,true);\n\t\t$criteria->compare('fechaInicio_Alquiler',$this->fechaInicio_Alquiler,true);\n\t\t$criteria->compare('id_Sucursal',$this->id_Sucursal);\n\t\t$criteria->compare('cedula_Vendedor',$this->cedula_Vendedor);\n\t\t$criteria->compare('cedula_Cliente',$this->cedula_Cliente);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "179ba37436a5f1374cc3d64eafd6d45c", "score": "0.68013906", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\t\t$criteria->order= 'COMPANY_TYPE DESC';\n\n\n\t\t$criteria->compare('COMPANY_ID',$this->COMPANY_ID);\n\t\t$criteria->compare('COMPANY_NAME',$this->COMPANY_NAME,true);\n\t\t$criteria->compare('COMPANY_TYPE',$this->COMPANY_TYPE);\n\t\t$criteria->compare('COMPANY_INFO',$this->COMPANY_INFO,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "282ad0f30e6ff57047a3dc94f1a10630", "score": "0.68009555", "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('id',$this->id);\n\t\t$criteria->compare('site',$this->site,true);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('job',$this->job,true);\n\t\t$criteria->compare('date',$this->date,true);\n\t\t$criteria->compare('description',$this->description,true);\n\t\t$criteria->compare('phone',$this->phone,true);\n\t\t$criteria->compare('email',$this->email,true);\n\t\t$criteria->compare('salary',$this->salary,true);\n\t\t$criteria->compare('link',$this->link,true);\n\t\t$criteria->compare('called',$this->called);\n\t\t$criteria->compare('deleted',$this->deleted);\n\t\t$criteria->compare('parsing_date',$this->parsing_date,true);\n\t\t$criteria->compare('offer_company',$this->offer_company,true);\n\t\t$criteria->compare('offer_phone',$this->offer_phone,true);\n\t\t$criteria->compare('offer_comment',$this->offer_comment,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "94032484359399110db70ef1d6fe2702", "score": "0.6799494", "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('id',$this->id,true);\n\t\t$criteria->compare('member_id',$this->member_id);\n\t\t$criteria->compare('partner_id',$this->partner_id);\n//\t\t$criteria->compare('xiaoer_member_id',$this->xiaoer_member_id);\n//\t\t$criteria->compare('status',$this->status,true);\n//\t\t$criteria->compare('create_time',$this->create_time);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "03fdce52a577c0e2c6b0aedd3b69da38", "score": "0.67982435", "text": "public function search()\n\t{\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('short_name',$this->short_name,true);\n\t\t$criteria->compare('french_short_name',$this->french_short_name,true);\n\t\t$criteria->compare('short_code',$this->short_code,true);\n\t\t$criteria->compare('code',$this->code,true);\n\t\t$criteria->compare('telephone_prefix',$this->telephone_prefix,true);\n\t\t$criteria->compare('currency_id',$this->currency_id);\n\t\t$criteria->compare('is_independent',$this->is_independent);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "245bd5e6204024737a81c43192a14610", "score": "0.6797674", "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('ID',$this->ID);\n\t\t$criteria->compare('Name',$this->Name,true);\n\t\t$criteria->compare('Birth',$this->Birth);\n\t\t$criteria->compare('ExpireTime',$this->ExpireTime);\n\t\t$criteria->compare('Sex',$this->Sex,true);\n\t\t$criteria->compare('Job',$this->Job,true);\n\t\t$criteria->compare('JobNum',$this->JobNum,true);\n\t\t$criteria->compare('TelPhone',$this->TelPhone,true);\n\t\t$criteria->compare('Email',$this->Email,true);\n\t\t$criteria->compare('Phone',$this->Phone);\n\t\t$criteria->compare('Remark',$this->Remark,true);\n\t\t$criteria->compare('DepartmentID',$this->DepartmentID);\n\t\t$criteria->compare('OrganID',$this->OrganID);\n\t\t$criteria->compare('CreateTime',$this->CreateTime);\n\t\t$criteria->compare('UpdateTime',$this->UpdateTime);\n\t\t$criteria->compare('Status',$this->Status);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "40fdaec4bf906aa8aefdf3d46e9b0da2", "score": "0.679638", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id_supplier',$this->id_supplier,true);\n\t\t$criteria->compare('id_lang',$this->id_lang,true);\n\t\t$criteria->compare('title',$this->title,true);\n\t\t$criteria->compare('short_promotional_blurb',$this->short_promotional_blurb,true);\n\t\t$criteria->compare('property_details',$this->property_details,true);\n\t\t$criteria->compare('business_facilities',$this->business_facilities,true);\n\t\t$criteria->compare('checkin_instructions',$this->checkin_instructions,true);\n\t\t$criteria->compare('car_parking',$this->car_parking,true);\n\t\t$criteria->compare('getting_there',$this->getting_there,true);\n\t\t$criteria->compare('things_to_do',$this->things_to_do,true);\n\t\t$criteria->compare('link_rewrite',$this->link_rewrite,true);\n\t\t$criteria->compare('meta_title',$this->meta_title,true);\n\t\t$criteria->compare('meta_keywords',$this->meta_keywords,true);\n\t\t$criteria->compare('meta_description',$this->meta_description,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "99faef1d89c86a180097c8d6f4f0ee8b", "score": "0.67927545", "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('id',$this->id,true);\n\t\t$criteria->compare('country_id',$this->country_id,true);\n\t\t$criteria->compare('city_id',$this->city_id,true);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('code',$this->code,true);\n\n\t\treturn new \\CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "ebf167a4ab1dcccd71d29302dd243044", "score": "0.67910784", "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('id',$this->id);\n\t\t$criteria->compare('keyword',$this->keyword,true);\n\t\t$criteria->compare('type',$this->type);\n\t\t$criteria->compare('threshold',$this->threshold);\n\t\t$criteria->compare('is_running',$this->is_running);\n\t\t$criteria->compare('obj_id',$this->obj_id);\n\t\t$criteria->compare('real_rate',$this->real_rate);\n\t\t$criteria->compare('pre_cycle',$this->pre_cycle);\n\t\t$criteria->compare('cur_cycle',$this->cur_cycle);\n\t\t$criteria->compare('status',$this->status,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "9cf967ef4505db92f921b4bc2f5ab16f", "score": "0.67904836", "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('id',$this->id,true);\n\t\t$criteria->compare('criter_id',$this->criter_id,true);\n\t\t$criteria->compare('after_id',$this->after_id,true);\n\t\t$criteria->compare('project_type',$this->project_type);\n\t\t$criteria->compare('project_infor',$this->project_infor,true);\n\t\t$criteria->compare('end_time',$this->end_time);\n\t\t$criteria->compare('real_cost',$this->real_cost);\n\t\t$criteria->compare('spread',$this->spread);\n\t\t$criteria->compare('bear_type',$this->bear_type);\n\t\t$criteria->compare('spread_reason',$this->spread_reason,true);\n\t\t$criteria->compare('reason',$this->reason,true);\n\t\t$criteria->compare('ctime',$this->ctime);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "53913e6b140bdce29a3db2c7a24d8032", "score": "0.67899615", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('CustomerID',$this->CustomerID,true);\n\t\t$criteria->compare('CustomerNameArabic',$this->CustomerNameArabic,true);\n\t\t$criteria->compare('CustomerNameEnglish',$this->CustomerNameEnglish,true);\n\t\t$criteria->compare('HomeAddress',$this->HomeAddress,true);\n\t\t$criteria->compare('HomePhone',$this->HomePhone,true);\n\t\t$criteria->compare('MobilePhone',$this->MobilePhone,true);\n\t\t$criteria->compare('DateofBirth',$this->DateofBirth,true);\n\t\t$criteria->compare('Nationality',$this->Nationality,true);\n\t\t$criteria->compare('Signature',$this->Signature,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "630899d44e8a1f111795d020411c69b2", "score": "0.6789175", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('form_id',$this->form_id,true);\n\t\t$criteria->compare('days',$this->days);\n\t\t$criteria->compare('price',$this->price);\n\t\t$criteria->compare('date',$this->date,true);\n\t\t$criteria->compare('vip',$this->vip);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "0c5b2af970cd3542ff29696e8480a292", "score": "0.67873526", "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('id',$this->id);\n\t\t$criteria->compare('company_id',$this->company_id);\n\t\t$criteria->compare('email',$this->email,true);\n\t\t$criteria->compare('no_of_entries',$this->no_of_entries);\n\t\t$criteria->compare('entry_date',$this->entry_date,true);\n\t\t$criteria->compare('draw_id',$this->draw_id);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "46df6d24e2e39f38fa75bb1d2ce6afd3", "score": "0.6784298", "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('id',$this->id);\n\t\t$criteria->compare('customer_id',$this->customer_id);\n\t\t$criteria->compare('chance',$this->chance);\n\t\t$criteria->compare('way',$this->way);\n\t\t$criteria->compare('type',$this->type);\n\t\t$criteria->compare('create_time',$this->create_time);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "1f00b4c7395d3d661aff8b86eb51e128", "score": "0.6783948", "text": "public function search()\n {\n $criteria=new CDbCriteria;\n $criteria->compare('id',$this->id);\n $criteria->compare('sim_id',$this->sim_id);\n $criteria->compare('flag_code',$this->flag_code,true);\n $criteria->compare('switch_time',$this->switch_time);\n $criteria->compare('is_processed',$this->is_processed);\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "250cfa86e70ff39444930db36e59b80f", "score": "0.678354", "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('id',$this->id);\n\t\t$criteria->compare('company_name',$this->company_name,true);\n\t\t$criteria->compare('description',$this->description,true);\n\t\t$criteria->compare('email_address',$this->email_address,true);\n\t\t$criteria->compare('contact',$this->contact,true);\n\t\t$criteria->compare('phone',$this->phone,true);\n\t\t$criteria->compare('status',$this->status);\n\t\t$criteria->compare('is_deleted',$this->is_deleted);\n\t\t$criteria->compare('date_created',$this->date_created,true);\n\t\t// $criteria->compare('date_updated',$this->date_updated,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "3db90d4919256c0a746d2f8c84944dc7", "score": "0.67768013", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('fname',$this->fname,true);\n\t\t$criteria->compare('mname',$this->mname,true);\n\t\t$criteria->compare('lname',$this->lname,true);\n\t\t$criteria->compare('special',$this->special,true);\n\t\t$criteria->compare('status',$this->status,true);\n\t\t$criteria->compare('history',$this->history,true);\n\t\t$criteria->compare('modify_id',$this->modify_id,true);\n\t\t$criteria->compare('modify_time',$this->modify_time,true);\n\t\t$criteria->compare('create_id',$this->create_id,true);\n\t\t$criteria->compare('create_time',$this->create_time,true);\n\t\t$criteria->compare('login_id',$this->login_id,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "6500e424c5c90e0b0628cbe9dfb67c7e", "score": "0.6775388", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('first_name',$this->first_name,true);\n\t\t$criteria->compare('last_name',$this->last_name,true);\n\t\t$criteria->compare('email',$this->email,true);\n\t\t$criteria->compare('phone',$this->phone,true);\n\t\t$criteria->compare('avatar',$this->avatar,true);\n\t\t$criteria->compare('gender',$this->gender,true);\n\t\t$criteria->compare('dob',$this->dob,true);\n\t\t$criteria->compare('address',$this->address,true);\n\t\t$criteria->compare('city_id',$this->city_id,true);\n\t\t$criteria->compare('created_time',$this->created_time,true);\n\t\t$criteria->compare('last_modified_time',$this->last_modified_time,true);\n\t\t$criteria->compare('status',$this->status,true);\n\t\t$criteria->compare('sources',$this->sources,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774692", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774692", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774692", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774692", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774692", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774692", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774692", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774692", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774692", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774692", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774692", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774692", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774692", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774692", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774692", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774692", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774692", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774692", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774692", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1e75c2e52da8d0549ef2e4e132cf19ff", "score": "0.6770856", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('owner',$this->owner);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('status',$this->status);\n\t\t$criteria->compare('questions',$this->questions,true);\n\t\t$criteria->compare('targeting',$this->targeting,true);\n\t\t$criteria->compare('price',$this->price);\n\t\t$criteria->compare('limit',$this->limit);\n\t\t$criteria->compare('spent',$this->spent);\n\t\t$criteria->compare('crt',$this->crt,true);\n\t\t$criteria->compare('shows',$this->shows);\n\t\t$criteria->compare('activity_log',$this->activity_log,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "50cc611f11043ca1905180202fe2872a", "score": "0.6770561", "text": "public function search()\r\n\t{\r\n\t\t// Warning: Please modify the following code to remove attributes that\r\n\t\t// should not be searched.\r\n\r\n\t\t$criteria=new CDbCriteria;\r\n\r\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('label',$this->label,true);\n\t\t$criteria->compare('qty',$this->qty);\n\t\t$criteria->compare('qtyUom',$this->qtyUom,true);\n\t\t$criteria->compare('frequency',$this->frequency,true);\n\t\t$criteria->compare('reach',$this->reach,true);\n\t\t$criteria->compare('added_on',$this->added_on,true);\n\t\t$criteria->compare('hideQty',$this->hideQty);\n\t\t$criteria->compare('hideQtyUom',$this->hideQtyUom);\n\t\t$criteria->compare('hideLocation',$this->hideLocation);\n\t\t$criteria->compare('ClassCode_number',$this->ClassCode_number,true);\n\t\t$criteria->compare('CustomClass_code',$this->CustomClass_code,true);\n\t\t$criteria->compare('Provider_id',$this->Provider_id);\n\t\t$criteria->compare('Receiver_id',$this->Receiver_id);\n\r\n\t\treturn new CActiveDataProvider($this, array(\r\n\t\t\t'criteria'=>$criteria,\r\n\t\t));\r\n\t}", "title": "" }, { "docid": "eb72d3f739daa5c79595dc96e09c7f26", "score": "0.6769591", "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('id',$this->id);\n\t\t$criteria->compare('other_account',$this->other_account,true);\n\t\t$criteria->compare('mobile',$this->mobile,true);\n\t\t$criteria->compare('type',$this->type);\n\t\t$criteria->compare('state',$this->state);\n\t\t$criteria->compare('create_time',$this->create_time);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "30b895ccfc7529d5bdfdd9898f2b084a", "score": "0.6767877", "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('id',$this->id);\n\t\t$criteria->compare('schoolname',$this->schoolname,true);\n\t\t$criteria->compare('personname',$this->personname,true);\n\t\t$criteria->compare('mobile',$this->mobile,true);\n\t\t$criteria->compare('job',$this->job,true);\n\t\t$criteria->compare('address',$this->address,true);\n\t\t$criteria->compare('state',$this->state);\n\t\t$criteria->compare('creationtime',$this->creationtime,true);\n\t\t$criteria->compare('updatetime',$this->updatetime,true);\n\t\t$criteria->compare('deleted',$this->deleted);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" } ]
a1f8a25fd5dbfa860689354dcca74555
the cipher to use. See list below. Must match with plugins cipher scheme.
[ { "docid": "61d61d1698b60aa00721f66f2a58f412", "score": "0.0", "text": "function pkcs5_pad ($text, $blocksize)\n{\n\t$pad = $blocksize - (strlen($text) % $blocksize);\n return $text . str_repeat(chr($pad), $pad);\n}", "title": "" } ]
[ { "docid": "7d8d2c58409b648b8aa3917b97d0c0e1", "score": "0.75022537", "text": "public function getCipher()\n {\n return $this->cipher;\n }", "title": "" }, { "docid": "b225310132d6061c6d3334e23eca9c8f", "score": "0.7461356", "text": "public function getCipher();", "title": "" }, { "docid": "57e246bb996f3cad995cbab27ac32d77", "score": "0.7265441", "text": "public function encryptionCipher()\n {\n return $this->encryptionCipher;\n }", "title": "" }, { "docid": "33d9d7108842d028dceb506efffcd0b8", "score": "0.687041", "text": "public function decryptionCipher()\n {\n return $this->decryptionCipher;\n }", "title": "" }, { "docid": "f2428e2455e810370f890d95da02029f", "score": "0.6614537", "text": "public function getEncryptionAlgo() {\n\treturn $this->cipher;\n }", "title": "" }, { "docid": "08ca6924fd1e7ad9c3c8f72a82d97344", "score": "0.6121858", "text": "private function opensslTranslateMode(): string\n {\n return 'cbc';\n }", "title": "" }, { "docid": "4155ea3bb351e670291d56d06c545801", "score": "0.6086354", "text": "public function get_cipher_methods()\n {\n return openssl_get_cipher_methods();\n }", "title": "" }, { "docid": "2f39d96681cd1275d610d26844c42b05", "score": "0.5902969", "text": "private function getCypherMethod()\n {\n if ($this->_use256BitesEncoding)\n {\n return self::AES256;\n }\n\n return self::AES128;\n }", "title": "" }, { "docid": "c771816f39786fa8f6f6920f19326efc", "score": "0.5874834", "text": "public function algorithm() {\n if (\"\\x31\\xC1\\xF2\\xE6\\xBF\\x71\\x43\\x50\\xBE\\x58\\x05\\x21\\x6A\\xFC\\x5A\\xFF\" === $this->cipher) {\n return 'aes-256-cbc';\n }\n\n throw new IllegalStateException('Unknown cipher '.addcslashes($this->cipher, \"\\0..\\37!\\177..\\377\"));\n }", "title": "" }, { "docid": "b9528ff6d545ac3164d2f737f9667a14", "score": "0.5824069", "text": "public function getAsymmetricCipher();", "title": "" }, { "docid": "7f272ddf57746405ee6b4c572f1b562f", "score": "0.5811771", "text": "public function getAvailableCipherMethods() : array {\n return openssl_get_cipher_methods(true);\n }", "title": "" }, { "docid": "d7323bfbc4572a2f5e3514653f4903c5", "score": "0.57228", "text": "public function sslGetCipherName(): string|false {}", "title": "" }, { "docid": "92a4007461caacaa682a9b5298b6be2b", "score": "0.5651748", "text": "public function sslGetCipherInfo(): string|false {}", "title": "" }, { "docid": "0ecb457dd39216332577cbe30f5bd943", "score": "0.55386174", "text": "public function getCryptoType()\n {\n return $this->crypto_type;\n }", "title": "" }, { "docid": "ab3cfe3d628cf24e896c1502c1065ff8", "score": "0.5534663", "text": "private function getOpensslMethod(): string\n {\n return $this->opensslCipherMethod;\n }", "title": "" }, { "docid": "302a18340891444a75564f501971b735", "score": "0.5525868", "text": "public function isAuthenticatedCipher()\n {\n return $this->isAuthenticatedCipher;\n }", "title": "" }, { "docid": "82a8a7ee13127d5b9cd9ff221e9e5536", "score": "0.55212295", "text": "public function setCipher($cipher)\n {\n $this->cipher = $cipher;\n }", "title": "" }, { "docid": "9de475fef226a51d45507d5a0136167e", "score": "0.5488965", "text": "public function getEncryption()\n {\n return $this->Encryption;\n }", "title": "" }, { "docid": "8fa6d7ac189a7efcdd529149cfe87fea", "score": "0.5361706", "text": "function getEncryption() \n {//--------------->> getEncryption()\n return $this->_encryption;\n }", "title": "" }, { "docid": "70f042e945a47faf49cf50abb3105b56", "score": "0.53512156", "text": "public function getDefaultCrypt(): Encrypter|null;", "title": "" }, { "docid": "b36a494f56db6680b26538b9becd2ceb", "score": "0.5320779", "text": "function dekripCaesar() {\r\n $cipher = $this->plain;\r\n\r\n $plain = \"\";\r\n $key = $this->generateKey($cipher) % 26;\r\n\r\n for ($i = 0; $i < strlen($cipher); $i++) {\r\n $add = $cipher[$i];\r\n $ascii = ord($cipher[$i]);\r\n if ($ascii > 64 && $ascii < 91) {\r\n $ascii = $ascii - $key;\r\n if ($ascii < 65) $ascii += 26;\r\n $add = chr($ascii);\r\n } else if ($ascii > 96 && $ascii < 123) {\r\n $ascii = $ascii - $key;\r\n if ($ascii < 97) $ascii += 26;\r\n $add = chr($ascii);\r\n }\r\n $plain = $plain . $add;\r\n }\r\n $this->plain = $plain;\r\n }", "title": "" }, { "docid": "a2b74691617fc5f347e85d22f5f226f6", "score": "0.5319035", "text": "public function sslGetCipherVersion(): string|false {}", "title": "" }, { "docid": "bb4352573e58c7cfae78d2472b705666", "score": "0.52767605", "text": "public function getDatabaseEncryption()\n {\n return $this->database_encryption;\n }", "title": "" }, { "docid": "eae840ad210b43bc57dc0ed7f08d6574", "score": "0.52186614", "text": "public static function getCiphers()\n {\n return [\n 'ECDHE-RSA-AES128-GCM-SHA256',\n 'ECDHE-ECDSA-AES128-GCM-SHA256',\n 'ECDHE-RSA-AES256-GCM-SHA384',\n 'ECDHE-ECDSA-AES256-GCM-SHA384',\n 'DHE-RSA-AES128-GCM-SHA256',\n 'DHE-DSS-AES128-GCM-SHA256',\n 'kEDH+AESGCM',\n 'ECDHE-RSA-AES128-SHA256',\n 'ECDHE-ECDSA-AES128-SHA256',\n 'ECDHE-RSA-AES128-SHA',\n 'ECDHE-ECDSA-AES128-SHA',\n 'ECDHE-RSA-AES256-SHA384',\n 'ECDHE-ECDSA-AES256-SHA384',\n 'ECDHE-RSA-AES256-SHA',\n 'ECDHE-ECDSA-AES256-SHA',\n 'DHE-RSA-AES128-SHA256',\n 'DHE-RSA-AES128-SHA',\n 'DHE-DSS-AES128-SHA256',\n 'DHE-RSA-AES256-SHA256',\n 'DHE-DSS-AES256-SHA',\n 'DHE-RSA-AES256-SHA',\n '!aNULL',\n '!eNULL',\n '!EXPORT',\n '!DES',\n '!3DES',\n '!MD5',\n '!RC4',\n '!PSK',\n '!SSLv2',\n '!SSLv3'\n ];\n }", "title": "" }, { "docid": "2a8325566654c21080b0c0e769a5fa54", "score": "0.52107084", "text": "public function getEncryption()\n {\n return isset($this->encryption) ? $this->encryption : null;\n }", "title": "" }, { "docid": "796b96a56615b4cf0a2809ba878599db", "score": "0.52033234", "text": "function openssl_cipher_key_length(string $cipher_algo): int|false {}", "title": "" }, { "docid": "583f144f76e0bd86719b4f30591e5f18", "score": "0.51937604", "text": "public function getCrypt(): Encrypter|null;", "title": "" }, { "docid": "c191579179578b046eafd0e00d92acf0", "score": "0.51897365", "text": "public function encrypt() {\n\n // Check for a cipher\n if (is_null($this->getKey())) {\n\n // Set a cipher\n $this->createKey();\n }\n\n // Hash placeholder\n $sCipher = (string) '';\n\n // Generate the hash\n for ($iChar = (integer) 0; $iChar < strlen($this->getSource()); $iChar ++) {\n\n // Grab ASCII values\n $sSourceOrd = (integer) ord(substr($this->getSource(), $iChar, 1));\n $sKeyOrd = (integer) ord(substr($this->getKey(), ($iChar % strlen($this->getKey())), 1));\n\n // Check for 256 bit\n if (($sSourceOrd + $sKeyOrd) <= 256) {\n\n // Append to the hash\n $sCipher .= (string) chr($sSourceOrd + $sKeyOrd);\n }\n\n if (($sSourceOrd + $sKeyOrd) > 255) {\n\n // Append to hash\n $sCipher .= (string) chr(($sSourceOrd + $sKeyOrd) - 255);\n }\n }\n\n // Set the hash into the system\n $this->setCipher($sCipher);\n\n // Return instance\n return $this;\n }", "title": "" }, { "docid": "eeda659fc11856a715f56e3e42efa7fd", "score": "0.5184759", "text": "public function use_encryption(): bool\n {\n return FALSE;\n }", "title": "" }, { "docid": "07e01be09e87a35220f70dfd8481d0f9", "score": "0.5182573", "text": "public function getCEP(){\n return $this->CEP;\n }", "title": "" }, { "docid": "23f99a021e47d1b21345be966b81ae4a", "score": "0.51659477", "text": "public function getConfigEncryption()\n {\n return $this->config_encryption;\n }", "title": "" }, { "docid": "7f4fa51f4722245cfd9e23e85246546e", "score": "0.5148959", "text": "protected function _encrypt()\n {\n switch ($this->_cypherUsed) {\n case self::CYPHER_BASIC:\n //break ommited on purpose\n default:\n $string = $this->_plainText;\n $result = '';\n for ($i = 0; $i < strlen($string); $i++) {\n $char = substr($string, $i, 1);\n $keychar = substr($this->_keyString, ($i % strlen($this->_keyString)) - 1, 1);\n $char = chr(ord($char) + ord($keychar));\n $result .= $char;\n }\n $this->_encryptedText = base64_encode($result);\n break;\n }\n }", "title": "" }, { "docid": "adbe5eabf4fa8694f532716d3d4e5a61", "score": "0.514172", "text": "public function fileCipher() {\n return new OctaFileCipher();\n }", "title": "" }, { "docid": "c722de61dc46f8cfeedac6baff6319cc", "score": "0.51155007", "text": "function cipher($char, $key){\n\t\t// cek apakah yang diinput merupakan alfabet\n\t\tif (ctype_alpha($char)) {\n\t\t\t// jika ya, cek lagi apakah merupakan huruf kapital atau tidak\n\t\t\t$nilai = ord(ctype_upper($char) ? 'A' : 'a'); // jika ya, nilainya A, jika tidak nilainya a | konversi ke ASCII dan tampung kedalam variabel\n\t\t\t// konversi char yang diinput ke ASCII\n\t\t\t$ch = ord($char);\n\t\t\t// buat perhitungan modulus dan tampung kedalam variabel\n\t\t\t$mod = fmod($ch + $key - $nilai, 26); // jumlah alfabet = 26\n\t\t\t// hasil modulus ditambah dengan nilai dan konversi ke bentuk alfabet, tampung dalam variabel\n\t\t\t$hasil = chr($mod + $nilai);\n\t\t\t// kembalikan hasil\n\t\t\treturn $hasil;\n\t\t} // jika yang diinput bukan alfabet maka kembalikan char\n\t\telse{\n\t\t\treturn $char;\n\t\t}\n\t}", "title": "" }, { "docid": "c722de61dc46f8cfeedac6baff6319cc", "score": "0.51155007", "text": "function cipher($char, $key){\n\t\t// cek apakah yang diinput merupakan alfabet\n\t\tif (ctype_alpha($char)) {\n\t\t\t// jika ya, cek lagi apakah merupakan huruf kapital atau tidak\n\t\t\t$nilai = ord(ctype_upper($char) ? 'A' : 'a'); // jika ya, nilainya A, jika tidak nilainya a | konversi ke ASCII dan tampung kedalam variabel\n\t\t\t// konversi char yang diinput ke ASCII\n\t\t\t$ch = ord($char);\n\t\t\t// buat perhitungan modulus dan tampung kedalam variabel\n\t\t\t$mod = fmod($ch + $key - $nilai, 26); // jumlah alfabet = 26\n\t\t\t// hasil modulus ditambah dengan nilai dan konversi ke bentuk alfabet, tampung dalam variabel\n\t\t\t$hasil = chr($mod + $nilai);\n\t\t\t// kembalikan hasil\n\t\t\treturn $hasil;\n\t\t} // jika yang diinput bukan alfabet maka kembalikan char\n\t\telse{\n\t\t\treturn $char;\n\t\t}\n\t}", "title": "" }, { "docid": "73a38d72ad42f45bc256babbfe2132d0", "score": "0.50889724", "text": "private function crypto() {\n if ($this->cripto === null) {\n $this->cripto = new Crypto();\n }\n return $this->cripto;\n }", "title": "" }, { "docid": "436dc42cb9d50fd0e7b705176a0cb080", "score": "0.50878227", "text": "public function encryptionAlgorithm(): Parameter\\EncryptionAlgorithmParameter\n {\n return self::_checkType($this->get(Parameter\\JWTParameter::P_ENC),\n Parameter\\EncryptionAlgorithmParameter::class);\n }", "title": "" }, { "docid": "8c44dc98d0be239d19552d587d64db62", "score": "0.5086012", "text": "function show_ad_encrypt_type()\n\t{\n\t\techo \"<ul style=\\\"margin:0px;list-style-type:none;padding:0px\\\">\";\n\n\t\tif(empty($this->value)) echo \"<li>(\" . gettext(\"not specified\") . \")</li>\";\n\t\tif($this->value & 0x0001) echo \"<li>\" . gettext(\"DES-CBC-CRC\") . \"</li>\";\n\t\tif($this->value & 0x0002) echo \"<li>\" . gettext(\"DES-CBC-MD5\") . \"</li>\";\n\t\tif($this->value & 0x0004) echo \"<li>\" . gettext(\"RC4-HMAC\") . \"</li>\";\n\t\tif($this->value & 0x0008) echo \"<li>\" . gettext(\"AES128-CTS-HMAC-SHA1-96\") . \"</li>\";\n\t\tif($this->value & 0x0010) echo \"<li>\" . gettext(\"AES256-CTS-HMAC-SHA1-96\") . \"</li>\";\n\n\t\tif($this->value & 0x010000) echo \"<li>\" . gettext(\"Kerberos Flexible Authentication Secure Tunneling (FAST)\") . \"</li>\";\n\t\tif($this->value & 0x020000) echo \"<li>\" . gettext(\"Compound Identity\") . \"</li>\";\n\t\tif($this->value & 0x020000) echo \"<li>\" . gettext(\"Claims\") . \"</li>\";\n\t\tif($this->value & 0x020000) echo \"<li>\" . gettext(\"Resource SID Compression Disabled\") . \"</li>\";\n\n\t\techo \"</ul>\";\n\t}", "title": "" }, { "docid": "527011cf5da5ee39db35a4cac431d894", "score": "0.50811356", "text": "abstract protected function getCipherFromAesName($aesName);", "title": "" }, { "docid": "f6b2e1887f5ffd6abeb86ddaea63e3c9", "score": "0.5080999", "text": "protected function cipher(array $config)\n {\n return tap($config['cipher'], function ($cipher) {\n if (empty($cipher)) {\n throw new RuntimeException(\n 'No application encryption cipher has been specified.'\n );\n }\n });\n }", "title": "" }, { "docid": "54862a25187a66e22b8da78ddfd67539", "score": "0.5057619", "text": "public static function getDefaultParams( $params ) {\n if ( !isset( $params['key'] ) ) throw new AblyException ( 'No key specified.', 40003, 400 );\n\n $cipherParams = new CipherParams();\n\n if ( isset( $params['base64Key'] ) && $params['base64Key'] ) {\n $params['key'] = strtr( $params['key'], '_-', '/+' );\n $params['key'] = base64_decode( $params['key'] );\n }\n\n $cipherParams->key = $params['key'];\n $cipherParams->algorithm = isset( $params['algorithm'] ) ? $params['algorithm'] : 'aes';\n\n if ($cipherParams->algorithm == 'aes') {\n $cipherParams->mode = isset( $params['mode'] ) ? $params['mode'] : 'cbc';\n $cipherParams->keyLength = isset( $params['keyLength'] ) ? $params['keyLength'] : strlen( $cipherParams->key ) * 8;\n\n if ( !in_array( $cipherParams->keyLength, [ 128, 256 ] ) ) {\n throw new AblyException ( 'Unsupported keyLength. Only 128 and 256 bits are supported.', 40003, 400 );\n }\n\n if ( $cipherParams->keyLength / 8 != strlen( $cipherParams->key ) ) {\n throw new AblyException ( 'keyLength does not match the actual key length.', 40003, 400 );\n }\n\n if ( !in_array( $cipherParams->getAlgorithmString(), [ 'aes-128-cbc', 'aes-256-cbc' ] ) ) {\n throw new AblyException ( 'Unsupported cipher configuration \"' . $cipherParams->getAlgorithmString()\n . '\". The supported configurations are aes-128-cbc and aes-256-cbc', 40003, 400 );\n }\n } else {\n if ( isset( $params['mode'] ) ) $cipherParams->mode = $params['mode'];\n if ( isset( $params['keyLength'] ) ) $cipherParams->keyLength = $params['keyLength'];\n\n if ( !$cipherParams->checkValidAlgorithm() ) {\n throw new AblyException( 'The specified algorithm \"'.$cipherParams->getAlgorithmString().'\"'\n . ' is not supported by openssl. See openssl_get_cipher_methods.', 40003, 400 );\n }\n }\n\n if ( isset( $params['iv'] ) ) {\n $cipherParams->iv = $params['iv'];\n if ( isset( $params['base64Iv'] ) && $params['base64Iv'] ) {\n $cipherParams->iv = strtr( $cipherParams->iv, '_-', '/+' );\n $cipherParams->iv = base64_decode( $cipherParams->iv );\n }\n } else {\n $cipherParams->generateIV();\n }\n\n return $cipherParams;\n }", "title": "" }, { "docid": "39b72682116d31284793e9cb3685ba78", "score": "0.504564", "text": "public function getEncryption():? string;", "title": "" }, { "docid": "e35a20b01263d4d84a08ff345196b62b", "score": "0.5044019", "text": "public function esAlgorithmIdentifier(): BlockCipherAlgorithmIdentifier\n {\n return $this->_es;\n }", "title": "" }, { "docid": "4c4d8a5dbd7cbee6d1cdd99234f831f5", "score": "0.50312984", "text": "function Cipher($ch, $key)\r\n{\r\n\tif (!ctype_alpha($ch))\r\n\t\treturn $ch;\r\n\r\n\t$offset = ord(ctype_upper($ch) ? 'A' : 'a');\r\n\treturn chr(fmod(((ord($ch) + $key) - $offset), 26) + $offset);\r\n}", "title": "" }, { "docid": "699c94ffb413e665cc8e75aa633ea15d", "score": "0.50220215", "text": "public function getEncryption(): ?string;", "title": "" }, { "docid": "981fa5bd05356d6632c85dca34e51d9d", "score": "0.50066555", "text": "public function getEncryptionSpec()\n {\n return $this->encryption_spec;\n }", "title": "" }, { "docid": "d1973c1c062bbe2ba7f768d0950a03b2", "score": "0.49893853", "text": "public function get_encryption_options()\n {\n clearos_profile(__METHOD__, __LINE__);\n\n $options = array(\n \\Swift_Connection_SMTP::ENC_OFF => lang('mail_none'),\n \\Swift_Connection_SMTP::ENC_SSL => lang('mail_ssl'),\n \\Swift_Connection_SMTP::ENC_TLS => lang('mail_tls')\n );\n\n return $options;\n }", "title": "" }, { "docid": "3d773e16ff8f49d1dd5112c029759217", "score": "0.49655136", "text": "public function getEncrypt()\n {\n return $this->encrypt;\n }", "title": "" }, { "docid": "3348f9fae152545f73845e13d41b6ddc", "score": "0.49641326", "text": "public function getCrypto()\n {\n if (!isset($this->crypto)) {\n $this->crypto = new Crypto();\n }\n return $this->crypto;\n }", "title": "" }, { "docid": "0fd95f5590b7036c1a72746aa1fa178e", "score": "0.49638352", "text": "public function isUsingEncryption(): bool\n {\n }", "title": "" }, { "docid": "42ea7c157119b9db50be7916edead940", "score": "0.49465144", "text": "protected function getPkceMethod()\n {\n return AbstractProvider::PKCE_METHOD_S256;\n }", "title": "" }, { "docid": "e4b9a3e8c8c32291b32f9a3f1ea4c73b", "score": "0.4945668", "text": "public static function getAlgorithm()\n {\n return Yii::$app->params['algorithmJWT'];\n }", "title": "" }, { "docid": "88b2bebbcaa60ccf8850e99fcdf534ed", "score": "0.49450105", "text": "public function getPassword()\n {\n return $this->clave;\n }", "title": "" }, { "docid": "f0f6c915c9a85fb14d830c56394273d9", "score": "0.49321786", "text": "public function getEncrypt()\n {\n return $this->Encrypt;\n }", "title": "" }, { "docid": "8f0967668a4d44ac5b7833e74f89056b", "score": "0.49306753", "text": "abstract protected function getCrypt();", "title": "" }, { "docid": "2ebdf32c3a86f6847f3c671ef209a262", "score": "0.49274686", "text": "private function getCryptographicProtocolForTesting()\n {\n $exchange = new KeyExchange(new HkdfShaTwo384());\n $exchange->setKeyExchangeSize(512);\n\n return $exchange;\n }", "title": "" }, { "docid": "62a9a9f2a8c8fc7c3c5addad770af050", "score": "0.4919965", "text": "protected function getSecretKey()\n {\n return $this->encryptor->decrypt(\n $this->configProviderAccount->getSecretKey($this->store)\n );\n }", "title": "" }, { "docid": "341b9dfb412d140697c2489136a8145a", "score": "0.4890357", "text": "public function getPluginName() : string\n {\n return \"CryptPad\";\n }", "title": "" }, { "docid": "5f7458eb95c053048ce366db60966bd1", "score": "0.48755842", "text": "public function kdfAlgorithmIdentifier(): PBKDF2AlgorithmIdentifier\n {\n return $this->_kdf;\n }", "title": "" }, { "docid": "f57885c87fd93e7f65c6ea35a20f4d31", "score": "0.48697636", "text": "public function getAlg();", "title": "" }, { "docid": "2fb2fbec757a0cbd2b9e552ec92d7a94", "score": "0.48690176", "text": "public function setEncryption($boolean) {\n $this->cipher = ($boolean) ? 'ssl://' : '';\n }", "title": "" }, { "docid": "d6697b5cf1d7fec4da769326f6a67447", "score": "0.48651832", "text": "protected static function method()\n {\n if (static::$method) {\n return static::$method;\n }\n\n $methods = openssl_get_cipher_methods();\n $methods = is_array($methods) ? $methods : [$methods];\n\n if (in_array('AES-128-CBC', $methods)) {\n static::$method = 'AES-128-CBC';\n } elseif (in_array('aes-128-cbc', $methods)) {\n static::$method = 'aes-128-cbc';\n } else {\n throw new \\Exception('Required AES cipher method is not present on your system.');\n }\n\n return static::$method;\n }", "title": "" }, { "docid": "62ed116c1b1f28f39a5ba823b0350655", "score": "0.4857313", "text": "public function getEncrypter()\n\t{\n\t\treturn $this->encrypter;\n\t}", "title": "" }, { "docid": "b9413dd2e3c3759b5c5b670ee913fbd0", "score": "0.48533118", "text": "private function getCipherMethod($encType = CryptographyProviderInterface::PROPERTY_ENCRYPTION)\n {\n $method = $this->settings['cipher_method'][$encType];\n $supportedMethods = openssl_get_cipher_methods();\n\n if (!in_array($method, $supportedMethods)) {\n throw new EncryptionException('Method '.$method.' not supported by openssl installation.');\n }\n\n return $method;\n }", "title": "" }, { "docid": "d3abb3902b289b7c33356fe08213cf04", "score": "0.48339033", "text": "protected function getAlgorithm()\r\n {\r\n return 'SHA256';\r\n }", "title": "" }, { "docid": "919c13096e9c8ed7d35be49df01d9680", "score": "0.48322472", "text": "function init() {\n\t // Open the cipher \n\t\t$this->_td = mcrypt_module_open($this->_algorithm, '', $this->_mode, '');\n\t\tif (!$this->_td)\n\t\t\treturn false;\n\t\n\t // Create the IV and determine the keysize length, used MCRYPT_RAN on Windows instead \n\t\t$size = mcrypt_enc_get_iv_size($this->_td);\n\t\t$iv = $this->my_mcrypt_create_iv($size);\n\t //$iv = mcrypt_create_iv($size, MCRYPT_DEV_RANDOM);\n\t\t\n\t \treturn mcrypt_generic_init($this->_td, $this->_key, $iv);\n\t}", "title": "" }, { "docid": "3c5e0153beb5fff53f957382a3c2a283", "score": "0.48321173", "text": "public function encrypt();", "title": "" }, { "docid": "c8370d04409bce3b29f2fe282ae935ea", "score": "0.4815584", "text": "function openssl_get_cipher_methods(bool $aliases = false): array {}", "title": "" }, { "docid": "40b91eb12e0f69712db1bb78fd486c2d", "score": "0.47920612", "text": "private function getCryptKey() {\n\t\t$config = SecureConfiguration::getInstance()->getTokenCryptKey();\n\t\treturn $config ? $config : 'ssaTokenProvider';\n\t}", "title": "" }, { "docid": "0725e2a6bdb5f490f9f1c0b108a2f0e6", "score": "0.4790234", "text": "public function getSmtpEncryption()\n {\n return $this->_smtpEncryption;\n }", "title": "" }, { "docid": "b145b04a7d94c8e44354585c02d798ad", "score": "0.47877052", "text": "public function getProtocol() {\n return $this->isUseSSL() ? $this::PROTOCOL_SSL : $this::PROTOCOL;\n }", "title": "" }, { "docid": "a4a15e71fee0d0e3b6e489c92a8b752a", "score": "0.47862387", "text": "public function getBoxSecretKey() : string;", "title": "" }, { "docid": "c4b368534f31d6cc60fe339e453fea17", "score": "0.476715", "text": "public function getCrypt(){\n return $this->encrypt($this->assembleData());\n }", "title": "" }, { "docid": "5cc94c6d6d983875e3503945d1d1e088", "score": "0.47497588", "text": "public function getEncryptionKey()\n {\n return $this->encryption_key;\n }", "title": "" }, { "docid": "9a2511bed1e9ffab0ae8e41a8fedeaee", "score": "0.4748279", "text": "function getDrcyption($id){\r\n $CI =& get_instance();\r\n $CI->encryption->initialize(\r\n array(\r\n 'driver'=> 'OpenSSL',\r\n 'cipher' => 'aes-128',\r\n 'mode' => 'CBC'\r\n )\r\n );\r\n $encrypted_id=$CI->encryption->decrypt($id);\r\n return $encrypted_id;\r\n}", "title": "" }, { "docid": "9346f25bd886d6f313756ab3f90d6d43", "score": "0.47465065", "text": "public function getEncryptionSpec()\n {\n return isset($this->encryption_spec) ? $this->encryption_spec : null;\n }", "title": "" }, { "docid": "69668acfe1670ac461397c101da790c7", "score": "0.4720615", "text": "public static function getCipherForArgs($argsParser)\n {\n return null;\n }", "title": "" }, { "docid": "44a4d249f86613574733a718745519ca", "score": "0.47152904", "text": "public function getLanguage()\n\t{\n\t\treturn $this->getKeyValue('language'); \n\n\t}", "title": "" }, { "docid": "027040541e55e9e32001236b3bdd0e95", "score": "0.47109285", "text": "public function setCipher($cipher)\n {\n $this->cipher = $cipher;\n $this->isAuthenticatedCipher = (stripos($cipher, 'gcm') !== false);\n\n return $this;\n }", "title": "" }, { "docid": "4059f51da63520d6d7e0e0f1354bb162", "score": "0.47066775", "text": "public function getUseSSL(){\r\n\t\treturn $this->useSSL;\r\n\t}", "title": "" }, { "docid": "9c566f0d7a3a81c4ae4750ea68af5835", "score": "0.47031704", "text": "public function getSecure()\n\t{\n\t\treturn $this->secure;\n\t}", "title": "" }, { "docid": "9c566f0d7a3a81c4ae4750ea68af5835", "score": "0.47031704", "text": "public function getSecure()\n\t{\n\t\treturn $this->secure;\n\t}", "title": "" }, { "docid": "7f46b865f7a533750a7590e32076c6d9", "score": "0.46961275", "text": "protected function algorithm(): string\r\n {\r\n return PASSWORD_ARGON2ID;\r\n }", "title": "" }, { "docid": "462ec3b5fcc42769765432de8d9fee85", "score": "0.4694577", "text": "public function secureSsl()\n {\n return $this->secureSsl;\n }", "title": "" }, { "docid": "7038f99bb9ca4bccd06a71e8d44ef073", "score": "0.46928453", "text": "public function getChallengeType()\n {\n return $this->challengeType;\n }", "title": "" }, { "docid": "d2e11e4df52806496978130a2970b7ae", "score": "0.4682638", "text": "public function getCmsLanguage() {\n\t\treturn str_replace(\"_\",\"-\",$this->cms_language);\n\t}", "title": "" }, { "docid": "cba6283da372d96b72beeeaaae657400", "score": "0.4670299", "text": "private function getKey()\n {\n switch ($this->requestParameters['vads_ctx_mode']->getValue()) {\n case 'TEST':\n return $this->keyTest;\n\n case 'PRODUCTION':\n return $this->keyProd;\n\n default:\n return false;\n }\n }", "title": "" }, { "docid": "e9836cd2bbd2491f6710d75ab4937940", "score": "0.46701494", "text": "private function _getSecretKey() {\n return \"hfd&*9997678g__vd45%%$3)(*kshdak\";\n }", "title": "" }, { "docid": "8106231d515f0168afdce33d5cb522a4", "score": "0.46650067", "text": "function setEncryption($id){\r\n $CI =& get_instance();\r\n $CI->encryption->initialize(\r\n array(\r\n 'driver'=> 'OpenSSL',\r\n 'cipher' => 'aes-128',\r\n 'mode' => 'CBC'\r\n )\r\n );\r\n $encrypted_id=$CI->encryption->encrypt($id);\r\n return $encrypted_id;\r\n}", "title": "" }, { "docid": "e5b11fa3f32b905f0c7ccd1194c5c7e1", "score": "0.46635237", "text": "public function get_use_tls()\n {\n return $this->_use_tls;\n }", "title": "" }, { "docid": "de3c63e94d073ae4b73a42695b192752", "score": "0.46631062", "text": "protected function _decrypt()\n {\n switch ($this->_cypherUsed) {\n case self::CYPHER_BASIC:\n //break ommited on purpose\n\n default:\n $result = '';\n $string = base64_decode($this->_encryptedText);\n for ($i = 0; $i < strlen($string); $i++) {\n $char = substr($string, $i, 1);\n $keychar = substr($this->_keyString, ($i % strlen($this->_keyString)) - 1, 1);\n $char = chr(ord($char) - ord($keychar));\n $result .= $char;\n }\n $this->_plainText = $result;\n break;\n }\n }", "title": "" }, { "docid": "8c75ee9fbde671876e57b4c253631ccc", "score": "0.46593624", "text": "public function getClave()\n {\n return $this->clave;\n }", "title": "" }, { "docid": "a52d561fc63ba854cb532bf62fb4ef6e", "score": "0.46570694", "text": "public function getPreferredLanguage()\n {\n return 'en';\n }", "title": "" }, { "docid": "4f09e8ee4c94db853e488461b48da108", "score": "0.46489656", "text": "public function decrypt();", "title": "" }, { "docid": "b16edc011cac87d12300cdece231f640", "score": "0.46384543", "text": "public function getClave() {\n return $this->clave;\n }", "title": "" }, { "docid": "7bc9a682837ced6b3d925f60a781f10c", "score": "0.4634934", "text": "function vegerne_cipher($str,$str_passwd)\n{ \n \n if(preg_match(\"/[^a-zA-Z]/\", $str_passwd))\n {\n return null;\n }\n else\n {\n $str_password=strtolower($str_passwd);\n $pass_arr=array();\n $pass_arr_num=array();\n $alpha=array('a'=>'1','b'=>'2','c'=>'3','d'=>'4','e'=>'5','f'=>'6','g'=>'7','h'=>'8','i'=>'9','j'=>'10','k'=>'11','l'=>'12','m'=>'13','n'=>'14','o'=>'15','p'=>'16','q'=>'17','r'=>'18','s'=>'19','t'=>'20','u'=>'21','v'=>'22','w'=>'23','x'=>'24','y'=>'25','z'=>'26');\n $one_str_pass=strlen($str_password)-1;\n $one_str=strlen($str)-1;\n $alpha_num=array_keys($alpha);\n $match_num=array(); \n $nums=array_flip($alpha); \n $encoded=array();\n $string=strtolower($str);\n if(is_array($string)==true)\n {\n throw new Exception(\"Can't use array as string\"); \n }\n if(strlen($str_password)>0)\n {\n for ($b=0; $b <strlen($str) ; $b++) \n { \n \t $p=$b;\n \tif($p>$str_password)\n \t{\n $p=$b%strlen($str_password);\n \n }\n\n $pass_arr[$b]=$str_password[$p];\t\n $pass_arr_num[$b]=$alpha[$pass_arr[$b]];\n }\n \n for ($i=0; $i <count($pass_arr_num) ; $i++)\n { \n for ($j=0; $j <26 ; $j++)\n {\n $match=preg_match(\"/\".$alpha_num[$j].\"/\",$string[$i]);\n if($match==1)\n {\n \n $match_num[$i]=$alpha[$alpha_num[$j]];\n $match_num[$i]+=$pass_arr_num[$i];\n if($match_num[$i]>26)\n {\n $match_num[$i]=$match_num[$i]-26;\n }\n $encoded[$i]=$nums[$match_num[$i]];\n\n }\n \n \n\n } \n $matchtwo=preg_match('/[^a-z]/',$string[$i]);\n if($matchtwo==1)\n {\n \n $encoded[$i]=$string[$i];\n }\n\n } \n \n }\n $enc=implode(\"\",$encoded);\n return $enc;\n } \n}", "title": "" }, { "docid": "bd102984c32e293f265626947f2e792e", "score": "0.4633751", "text": "public function getSecure()\r\n {\r\n return $this->secure;\r\n }", "title": "" }, { "docid": "a2a6e65f459ac5d0c3e9b7b365eda2f9", "score": "0.46324342", "text": "public function getClave(){\n\t\treturn $this->clave;\n\t}", "title": "" }, { "docid": "6fe18f65382b6d710af5d98de7e2b8c3", "score": "0.4628786", "text": "public function setCrypto(Crypto $crypto);", "title": "" }, { "docid": "5b1c0ed4faf1822021dce3e2ef3af76c", "score": "0.46270907", "text": "final public function getSSL(){ return $this->ssl; }", "title": "" }, { "docid": "113ad8ee7ed2e567ee25afdf0c80598e", "score": "0.46255463", "text": "public static function getAlgo()\n {\n return 'HS256';\n }", "title": "" } ]
3996f299fe713e1c01a0ecbc58efea0a
Tests the empty set method
[ { "docid": "a6b27062d359e64ea969a678a9ebb661", "score": "0.8341253", "text": "public function testEmptySet()\n {\n $set = Collection::emptySet();\n $this->assertType('\\Xyster\\Collection\\EmptyList', $set);\n $this->assertSame($set, Collection::emptySet());\n }", "title": "" } ]
[ { "docid": "ffea8ababca8f47d0530414adc7ff646", "score": "0.69118124", "text": "function _testIsEmpty()\n {\n // check if empty record is recognized as such.\n // we can't do the reverse check, since each attribute defines for itself what 'not empty'\n // means.\n $this->assertTrue($this->m_attribute->isEmpty(array()), \"isempty\");\n $this->assertTrue($this->m_attribute->isEmpty(array($this->m_attribute->m_name=>\"\")), \"isempty\");\n }", "title": "" }, { "docid": "f468edd4c94217ff46afa79dfd03d0fc", "score": "0.68957186", "text": "public function testEnteredDataIsEmpty($data)\n {\n foreach($data as $key)\n {\n $this->assertEmpty($key);\n }\n }", "title": "" }, { "docid": "f468edd4c94217ff46afa79dfd03d0fc", "score": "0.68957186", "text": "public function testEnteredDataIsEmpty($data)\n {\n foreach($data as $key)\n {\n $this->assertEmpty($key);\n }\n }", "title": "" }, { "docid": "2da7a2b079a234120f8b3d73353d8582", "score": "0.68936795", "text": "public function isEmpty() {\n return !$this->set;\n }", "title": "" }, { "docid": "bd250093b224662d5753d65db249bfad", "score": "0.68875414", "text": "public function testFixedSet()\n {\n $c = Collection::fixedSet( new \\Xyster\\Collection\\Set() );\n $c->clear();\n }", "title": "" }, { "docid": "b3fd71bfee7ddaadffbf9dbf153191fe", "score": "0.6822844", "text": "public function testEmpty() {\r\n }", "title": "" }, { "docid": "9e4d5024b34787b00866e42423945a27", "score": "0.67820203", "text": "public function testEmptyList()\n {\n \t$list = Collection::emptyList();\n \t$this->assertType('\\Xyster\\Collection\\EmptyList', $list);\n \t$this->assertSame($list, Collection::emptyList());\n }", "title": "" }, { "docid": "9f46c6ad1edfe61398b719622b117e1b", "score": "0.677043", "text": "public function allEmpty()\n {\n return $this->allEqualTo(false);\n }", "title": "" }, { "docid": "7439be73a2a76b7b2235e300092d38a6", "score": "0.6633533", "text": "public function testEmpty() {\n\t\t$get = new \\spitfire\\io\\Get(Array('a' => 123, 'c' => null));\n\t\t\n\t\t$this->assertEquals(true, empty($get->b));\n\t\t$this->assertEquals(true, empty($get['b']));\n\t\t\n\t\t$this->assertEquals(true, empty($get->c));\n\t\t$this->assertEquals(true, empty($get['c']));\n\t\t\n\t\t$this->assertEquals(false, empty($get->a));\n\t\t$this->assertEquals(false, empty($get['a']));\n\t}", "title": "" }, { "docid": "852131b928e1fa162b05f8bf2e122676", "score": "0.6628594", "text": "public function emptyValues()\n {\n foreach($this->getChildren() as $child){\n if ($child instanceof Element) {\n $child->setValue('');\n }\n\n if ($child instanceof Set) {\n $child->emptyValues();\n }\n }\n }", "title": "" }, { "docid": "99dff22e9360bb2bca5a5acb84d21dfb", "score": "0.66258055", "text": "public function isEmpty()\n {\n /**\n * @todo implementation\n */\n }", "title": "" }, { "docid": "3ae90c478182bb0f31649ea4c3b6f296", "score": "0.6619113", "text": "public function isEmpty() {\n /**\n * @todo implementation\n */\n }", "title": "" }, { "docid": "67d2e9cd5bd9f7d57edfb2174be4fa82", "score": "0.66091794", "text": "public function testEmptyMap()\n {\n $map = Collection::emptyMap();\n $this->assertType('\\Xyster\\Collection\\EmptyMap', $map);\n $this->assertSame($map, Collection::emptyMap());\n }", "title": "" }, { "docid": "c4f6961b33e702fd28a6920d2d3e0103", "score": "0.6598871", "text": "public function getEmptyCollection();", "title": "" }, { "docid": "85a0151e61b46ee49118c2a8dfa0b7c9", "score": "0.6577349", "text": "public function isEmpty() {\n return empty($this->assertions);\n }", "title": "" }, { "docid": "dd360ed3bf1fb0348d3d45ba3fd9ed1b", "score": "0.6555028", "text": "function checkSet($a) {\n\tif (empty($a)) {\n\t\treturn true;\n\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n}", "title": "" }, { "docid": "32d3647f8d4eb9fc8888b0d980b62a06", "score": "0.65065074", "text": "public function testSetWithEmptyKeys()\n\t{\n\t\t$container = new Container(array(\"foo\" => \"bar\"));\n\t\t$container->set(\"\", \"three\");\n\t\t$this->assertEquals(\"three\", $container->get(\"\"));\n\t\t$container->set(null, \"four\");\n\t\t$container->set(null, \"five\");\n\t\t$container->set(0, \"six\");\n\t\t$container->set(0, \"seven\");\n\t\t$this->assertEquals(\"five\", $container->get(null));\n\t\t$this->assertEquals(\"seven\", $container->get(0));\n\t}", "title": "" }, { "docid": "91ad46be4a8f291f3af4deda720ae08c", "score": "0.6500879", "text": "public function testIsEmptyForEmptyValue()\n {\n $radioButtonCollection = new RadioButtonCollection('foo');\n $radioButtonCollection->addRadioButton(new RadioButton('', 'None'));\n $radioButtonCollection->addRadioButton(new RadioButton('1', 'One'));\n\n self::assertTrue($radioButtonCollection->isEmpty());\n }", "title": "" }, { "docid": "e3245ef5ec230d02ef724b83a177525d", "score": "0.6494119", "text": "public function testGetEmptyOptionValue()\n {\n $this->assertIsIterable(self::$obj->getOptionValue(), '$optionValues is not iterable');\n $this->assertEmpty(self::$obj->getOptionValue(), '$optionValues is not empty');\n }", "title": "" }, { "docid": "97cc8fca0e8d73c4da9fc7e9c5d90b6c", "score": "0.64887536", "text": "public function isEmpty() {}", "title": "" }, { "docid": "c30cb786547c23846b221e4b0f42c471", "score": "0.64841145", "text": "public function testGetSharedSetUnreferenced()\n {\n $iterator = $this->node->getSharedSet();\n $this->assertInstanceOf(Iterator::class, $iterator);\n $this->assertTrue($iterator->valid());\n $node = $iterator->current();\n $this->assertEquals($node, $this->node);\n }", "title": "" }, { "docid": "4ddecab5c816705bbe292f345bbd5aa6", "score": "0.6482776", "text": "function isEmpty ()\n\t{\n\t\treturn $this->has(0) === false ;\n\t}", "title": "" }, { "docid": "449f168ada0a6d31dffda0deb3db1f1c", "score": "0.64790475", "text": "public function getIsEmpty();", "title": "" }, { "docid": "e4e5ed1a428293b54db5e4b721c44260", "score": "0.6459738", "text": "public function testIsArrayIsEmpty()\n {\n $this->assertNotEmpty(self::$array);\n }", "title": "" }, { "docid": "ee1d4c5936ecaab458f1efd75c63ee17", "score": "0.64430666", "text": "public function testConstructEmpty()\n {\n $collection = new BaseCollection();\n\n $this->assertAttributeInternalType('array', 'elements', $collection);\n $this->assertAttributeEmpty('elements', $collection);\n $this->assertAttributeCount(0, 'elements', $collection);\n $this->assertAttributeEquals([], 'elements', $collection);\n }", "title": "" }, { "docid": "258af91d1cb566fa21a38754852f53e3", "score": "0.64246243", "text": "public static function mempty();", "title": "" }, { "docid": "4899c0777a4d0de3eb391621ec82804f", "score": "0.6420557", "text": "public function testIsEmpty()\n {\n $array = array();\n $bool = ArrayValidator::isEmpty($array);\n $this->assertTrue($bool);\n }", "title": "" }, { "docid": "9af67fe8743b4d17bc5ec65f20ee948b", "score": "0.6404313", "text": "public function isEmpty(){\r\n return empty($this->elements);\r\n }", "title": "" }, { "docid": "954d7ec72bb608340d59955f34af8276", "score": "0.639637", "text": "public abstract function isEmpty();", "title": "" }, { "docid": "1c0f1ef8534e37f84b04a8f56c8569d8", "score": "0.6389734", "text": "public function isEmpty();", "title": "" }, { "docid": "1c0f1ef8534e37f84b04a8f56c8569d8", "score": "0.6389734", "text": "public function isEmpty();", "title": "" }, { "docid": "1c0f1ef8534e37f84b04a8f56c8569d8", "score": "0.6389734", "text": "public function isEmpty();", "title": "" }, { "docid": "1c0f1ef8534e37f84b04a8f56c8569d8", "score": "0.6389734", "text": "public function isEmpty();", "title": "" }, { "docid": "1c0f1ef8534e37f84b04a8f56c8569d8", "score": "0.6389734", "text": "public function isEmpty();", "title": "" }, { "docid": "1c0f1ef8534e37f84b04a8f56c8569d8", "score": "0.6389734", "text": "public function isEmpty();", "title": "" }, { "docid": "1c0f1ef8534e37f84b04a8f56c8569d8", "score": "0.6389734", "text": "public function isEmpty();", "title": "" }, { "docid": "1c0f1ef8534e37f84b04a8f56c8569d8", "score": "0.6389734", "text": "public function isEmpty();", "title": "" }, { "docid": "1c0f1ef8534e37f84b04a8f56c8569d8", "score": "0.6389734", "text": "public function isEmpty();", "title": "" }, { "docid": "1c0f1ef8534e37f84b04a8f56c8569d8", "score": "0.6389734", "text": "public function isEmpty();", "title": "" }, { "docid": "1c0f1ef8534e37f84b04a8f56c8569d8", "score": "0.6389734", "text": "public function isEmpty();", "title": "" }, { "docid": "1c0f1ef8534e37f84b04a8f56c8569d8", "score": "0.6389734", "text": "public function isEmpty();", "title": "" }, { "docid": "1c0f1ef8534e37f84b04a8f56c8569d8", "score": "0.6389734", "text": "public function isEmpty();", "title": "" }, { "docid": "1c0f1ef8534e37f84b04a8f56c8569d8", "score": "0.6389734", "text": "public function isEmpty();", "title": "" }, { "docid": "f409e2b4f4b50223d98b12db3cd33469", "score": "0.638848", "text": "function isEmpty() {\n return count($this->all()) == 0;\n }", "title": "" }, { "docid": "f1b26b8709dde086374a38ed4226d401", "score": "0.63685465", "text": "public function testEmpty()\n {\n $value = 'something';\n $this->assertEquals($value, $this->_filter->filter($value));\n }", "title": "" }, { "docid": "9f94a695f1e15d48f610e475441b9caf", "score": "0.63663167", "text": "abstract public function isEmpty();", "title": "" }, { "docid": "e7b08241b91f9a8407fb9622116384fd", "score": "0.63654554", "text": "public function seeEmptyResult()\n {\n \\PHPUnit_Framework_Assert::assertEmpty($this->last_result);\n }", "title": "" }, { "docid": "2c5d7e90581fc20333ce46a5fc6947fa", "score": "0.6350634", "text": "#[@test]\n public function hasNextOnEmpty() {\n $this->assertFalse(create(new HashmapIterator(array()))->hasNext());\n }", "title": "" }, { "docid": "2fa00bde95758b59abf8141c2dc59adf", "score": "0.6343142", "text": "public function clear() {\n $this->set = array();\n }", "title": "" }, { "docid": "fa4cd7649b7c6c9b6797c4cf33a69b7b", "score": "0.6318233", "text": "public function withEmptyName()\n {\n //Data\n $setData = $this->loadData('attribute_set', array('set_name' => ''));\n //Steps\n $this->attributeSetHelper()->createAttributeSet($setData);\n //Verifying\n $this->addFieldIdToMessage('field', 'set_name');\n $this->assertMessagePresent('validation', 'empty_required_field');\n $this->assertTrue($this->verifyMessagesCount(), $this->getParsedMessages());\n }", "title": "" }, { "docid": "9533c9d835cfba60fd679d4cfe84f461", "score": "0.6317229", "text": "public function testArrayEmpty(){\n\t\t$array1 = [\n\t\t\t'fii' => 3,\n\t\t\t'faa' => 2,\n\t\t\t'foo' => 1\n\t\t];\n\t\t$array2 = [];\n\t\t$array3 = [\n\t\t\t'fee' => false,\n\t\t\t'foo' => [\n\t\t\t\t'faa' => [\n\t\t\t\t\t'fii' => 0\n\t\t\t\t]\n\t\t\t],\n\t\t\t'fuu' => 0\n\t\t];\n\t\t$array4 = [\n\t\t\t'fee' => false,\n\t\t\t'foo' => [\n\t\t\t\t'faa' => [\n\t\t\t\t\t'fii' => 1\n\t\t\t\t]\n\t\t\t],\n\t\t\t'fuu' => 0\n\t\t];\n\t\t$this->assertEquals(array_empty($array1),false);\n\t\t$this->assertEquals(array_empty($array2),true);\n\t\t$this->assertEquals(array_empty($array3),true);\n\t\t$this->assertEquals(array_empty($array4),false);\n\t}", "title": "" }, { "docid": "8f36991ab63a24cfabba03dcd50c5a70", "score": "0.62909174", "text": "public function testErrorLogEmpty() {\n\t\t$this->assertTrue( is_array( self::$error_log->get() ) );\n\t\t$this->assertEmpty( self::$error_log->get() );\n\t}", "title": "" }, { "docid": "9dedef6ebb0e8e1d78a91c365b150aba", "score": "0.62786156", "text": "public function testCreateSetWithoutTests()\n {\n $this->actingAs(self::$user)\n ->visit('/sets_runs')\n ->seePageIs('/sets_runs')\n ->click('#newSet')\n ->seePageIs('/sets_runs/set/create')\n ->type('SetName1', 'name')\n ->type('desc', 'description')\n ->press('submit');\n\n $this->dontSeeInDatabase('TestSet', [\n 'TestSet_id' => 2,\n 'Name' => 'SetName1',\n 'TestSetDescription' => 'desc'\n ]);\n }", "title": "" }, { "docid": "4dfd393de317d1eda0123f7d0b537e7e", "score": "0.6274454", "text": "public function isEmpty()\n {\n }", "title": "" }, { "docid": "eefe628d6cdf1d148937988c847f6180", "score": "0.62656385", "text": "final public function empty()\r\n {\r\n return empty($this->data);\r\n }", "title": "" }, { "docid": "98471736c7f1c8b6fbbe1f46e46865d9", "score": "0.6264818", "text": "public function all(): Set;", "title": "" }, { "docid": "2cd808259a42aa439971efd971d6551d", "score": "0.62538546", "text": "public function test_get_adhoc_tasks_empty_set() {\n $this->resetAfterTest(true);\n\n $this->assertEquals([], \\core\\task\\manager::get_adhoc_tasks('\\\\core\\\\task\\\\adhoc_test_task'));\n }", "title": "" }, { "docid": "6e3c45197809f55f687206dcd5ccc68f", "score": "0.6244288", "text": "public function isEmpty()\n {\n return empty($this->elements);\n }", "title": "" }, { "docid": "9041333092972edfb58a2575b4ac40f2", "score": "0.6243705", "text": "public function testIsEmptyForNonEmptyValue()\n {\n $radioButtonCollection = new RadioButtonCollection('foo');\n $radioButtonCollection->addRadioButton(new RadioButton('', 'None'));\n $radioButtonCollection->addRadioButton(new RadioButton('1', 'One'));\n $radioButtonCollection->setFormValue('1');\n\n self::assertFalse($radioButtonCollection->isEmpty());\n }", "title": "" }, { "docid": "c3ad207058e3bcdd2bab59eaf0459a68", "score": "0.62405336", "text": "public function assertSequencesAreEmpty()\n {\n foreach ($this->factory->getResponseSequences() as $responseSequence) {\n PHPUnit::assertTrue(\n $responseSequence->isEmpty(),\n 'Not all response sequences are empty.'\n );\n }\n }", "title": "" }, { "docid": "25d2c49b106a31c6f601d39e1abbe5f3", "score": "0.6224707", "text": "public function isEmpty()\n {\n return empty($this->collection);\n }", "title": "" }, { "docid": "69137c171a472929a8cb18e20ca1eef6", "score": "0.6211628", "text": "public static function clear(IHashSet\\Type $xs) : IHashSet\\Type {\n\t\t\treturn IHashSet\\Type::empty_();\n\t\t}", "title": "" }, { "docid": "6d44592353c1dc62edd06210fec71078", "score": "0.6199846", "text": "public function test_new_order_is_empty()\n\t{\n\t\t$order = new Model_Order;\n\t\t$this->assertEquals(0, count($order));\n\t}", "title": "" }, { "docid": "93f635e14a32c2c79646f2d874da5d35", "score": "0.61848974", "text": "public function testEnteredArrayIsNotEmpty($data)\n {\n foreach($data as $key)\n {\n $this->assertNotEmpty($key);\n }\n }", "title": "" }, { "docid": "93f635e14a32c2c79646f2d874da5d35", "score": "0.61848974", "text": "public function testEnteredArrayIsNotEmpty($data)\n {\n foreach($data as $key)\n {\n $this->assertNotEmpty($key);\n }\n }", "title": "" }, { "docid": "d6a3b7821ef529e30728243c388a8e0f", "score": "0.61848104", "text": "public function testEmptyInput()\n {\n $this->assertEquals([], $this->fileOwners->groupByOwners([]));\n }", "title": "" }, { "docid": "38006f20b2bbafb7d48a70caf02dd971", "score": "0.61791366", "text": "public function testAddAndGetAndIsEmptyAndClear()\r\n\t{\r\n // initialize a new HashMap\r\n $map = new TechDivision_Collections_HashMap();\r\n // check that the HashMap is empty\r\n $this->assertTrue($map->isEmpty());\r\n // add a new element\r\n $map->add(10, \"Test\");\r\n // get the element\r\n $this->assertEquals(\"Test\", $map->get(10));\r\n // check that the HashMap is not empty\r\n $this->assertFalse($map->isEmpty());\r\n // remove all elements\r\n $map->clear();\r\n // check that the HashMap is empty\r\n $this->assertTrue($map->isEmpty());\r\n }", "title": "" }, { "docid": "2a22e5b033800d6e9910402a9b3a1edd", "score": "0.61495805", "text": "public function testGetEmptyOptionLabel()\n {\n $this->assertIsIterable(self::$obj->getOptionLabel(), '$optionLabels is not iterable');\n $this->assertEmpty(self::$obj->getOptionLabel(), '$optionLabels is not empty');\n }", "title": "" }, { "docid": "a7ad5e8341fd2ac42f877a5311ce2c09", "score": "0.61421233", "text": "public function isEmpty() {\n return empty($this->_items);\n }", "title": "" }, { "docid": "bc7819fe9da2a911020bcd9ebc95c25e", "score": "0.61279166", "text": "public function isEmpty()\n {\n return !$this->any();\n }", "title": "" }, { "docid": "2976bc7dd2a70b17cb79c4d1e1c808d5", "score": "0.61224836", "text": "public function isEmpty()\n {\n return empty($this->elements);\n }", "title": "" }, { "docid": "8dbdaba318e47eee6e423918b9d73f89", "score": "0.6104116", "text": "protected abstract function notEmpty();", "title": "" }, { "docid": "df48eeeee4553484fb981699070f1e33", "score": "0.609638", "text": "function isEmpty() {\r\n\t\treturn count ( $this->getTriples () ) == 0;\r\n\t}", "title": "" }, { "docid": "0a32197b8a21a7c5062047be1708cf3e", "score": "0.60733974", "text": "public function testUnset()\n {\n $same = $this->uut->setItems(self::SOME_ITEMS)->unset('a');\n $this->assertSame($this->uut, $same);\n $this->assertNull($this->uut->get('a'));\n }", "title": "" }, { "docid": "b8757a9462f4d41816900ef12120b8bf", "score": "0.606684", "text": "public function testEmpty4()\n {\n if (version_compare(phpversion(), '5.5', '<')) {\n $this->markTestSkipped('runs only on PHP > 5.5');\n }\n\n $this->smarty->disableSecurity();\n $this->smarty->assign('var', new TestIsset());\n $expected = ' true , false , false , true , true , true , false ';\n $this->assertEquals($expected, $this->smarty->fetch('string:{strip}{if empty($var->isNull)} true {else} false {/IF}\n ,{if empty($var->isSet)} true {else} false {/IF}\n ,{if empty($var->arr[\\'isSet\\'])} true {else} false {/IF}\n ,{if empty($var->arr[\\'isNull\\'])} true {else} false {/IF}\n ,{if empty($var->arr[\\'foo\\'])} true {else} false {/IF}\n ,{if empty($var->pass(null))} true {else} false {/IF}\n ,{if empty($var->pass(1))} true {else} false {/IF}\n '));\n }", "title": "" }, { "docid": "0e9a3140ba17b5eb919f0649bf33fc01", "score": "0.6062035", "text": "public function is_empty()\n\t{\n\t\treturn $this->count() === 0;\n\t}", "title": "" }, { "docid": "087bea60b7e7c5fe308ab1690c379f8e", "score": "0.60519725", "text": "public function isEmpty() {\n\t\treturn empty($this->entries);\n\t}", "title": "" }, { "docid": "73bef7662f1da43ca46081cfb78b5b06", "score": "0.60493416", "text": "public function isEmpty()\n\t{\n\t\treturn empty($this->entries);\n\t}", "title": "" }, { "docid": "62dd56f83466d49af4ba17ff09a388b1", "score": "0.6044574", "text": "public function isEmpty()\n {\n return $this->count() <= 0;\n }", "title": "" }, { "docid": "22bc63789581c3c1d42623ad36463da7", "score": "0.60359", "text": "public function testReset()\n\t{\n\t\t$data = new Registry();\n\n\t\t$data->set('foo', 'bar');\n\t\t$data->set('bar', 'foo');\n\n\t\t$data->reset();\n\n\t\t$this->assertFalse($data->has('foo'));\n\t\t$this->assertFalse($data->has('bar'));\n\t}", "title": "" }, { "docid": "cf69f6d04b3a54607c875057d652f29f", "score": "0.60311276", "text": "public function isEmpty() {\n return $this->count() <= 0;\n }", "title": "" }, { "docid": "6f17e528d75c5009924f34e69dca5549", "score": "0.6030251", "text": "public function testIsNotEmpty()\n {\n $array = array('key' => 'value');\n $bool = ArrayValidator::isEmpty($array);\n $this->assertFalse($bool);\n }", "title": "" }, { "docid": "114a73a611f34824695adefa3a4e8073", "score": "0.6024743", "text": "public function hasUniqueEmptyProvider()\n {\n return [\n [null],\n [[]],\n [['foo']]\n ];\n }", "title": "" }, { "docid": "2f4696e7e3485e0679b054b727d9a219", "score": "0.6018275", "text": "public function isEmpty()\n {\n return !$this->items;\n }", "title": "" }, { "docid": "e256b8b4fd27bfc492bbf27dd2c4a39b", "score": "0.60176647", "text": "public function isEmpty()\n\t{\n\t\treturn true;\n\t}", "title": "" }, { "docid": "88b3f6fb39633ad189a07f8aea65e69f", "score": "0.6011536", "text": "public function isEmpty() {\r\n\t\treturn $this->count() == 0;\r\n\t}", "title": "" }, { "docid": "ab6d0b9a9c60dd80b6942671efe9be47", "score": "0.60040873", "text": "public function cleanAnArray()\n {\n $expected = array('one', 'two', 'three');\n $dirty = array_merge($expected, array('', ''));\n $this->assertEquals($expected, ArrayMethods::clean($dirty));\n }", "title": "" }, { "docid": "22d580a790375a4f4f6afd7906e51f36", "score": "0.6001226", "text": "public function isEmpty()\n {\n return empty($this->items);\n }", "title": "" }, { "docid": "22d580a790375a4f4f6afd7906e51f36", "score": "0.6001226", "text": "public function isEmpty()\n {\n return empty($this->items);\n }", "title": "" }, { "docid": "22d580a790375a4f4f6afd7906e51f36", "score": "0.6001226", "text": "public function isEmpty()\n {\n return empty($this->items);\n }", "title": "" }, { "docid": "22d580a790375a4f4f6afd7906e51f36", "score": "0.6001226", "text": "public function isEmpty()\n {\n return empty($this->items);\n }", "title": "" }, { "docid": "2d1ad3dfed57660d085d2793d493fe1d", "score": "0.5992199", "text": "public function isEmpty()\n {\n return empty($this->times);\n }", "title": "" }, { "docid": "3d0fba80e6b92f58c525314bcd89e4ca", "score": "0.59908193", "text": "public function testFindAllEmptyCollection()\n {\n // reset fixtures since we already have some from setUp\n $this->loadFixturesLocal([]);\n $client = static::createRestClient();\n $client->request('GET', '/core/app/');\n\n $response = $client->getResponse();\n $results = $client->getResults();\n\n $this->assertResponseContentType(self::CONTENT_TYPE, $response);\n $this->assertResponseSchemaRel(self::SCHEMA_URL_COLLECTION, $response);\n\n $this->assertEquals([], $results);\n }", "title": "" }, { "docid": "8321ac38ebe26f459a793901721cc657", "score": "0.59907746", "text": "private function _allEmpty()\n {\n if (empty($this->_getArray) && empty($this->_postArray)) {\n $this->_allEmpty = true;\n $this->api = false;\n }\n }", "title": "" }, { "docid": "8861267fb02c46abd53fc84c64fe0415", "score": "0.59799796", "text": "function sempty($a){\n\tif (isset($a) && !empty($a)){\n\t\t\tif($a === NULL){\n\t\t\t\techo \"$a is SET\" . PHP_EOL;\n\t\t\t}\n\t\techo \"$a is SET\" . PHP_EOL;\n\t} elseif (empty($a)) {\n\t\t\techo \"$a is EMPTY\" . PHP_EOL;\n\t} elseif(serialize($a) == true){\n\t\t\tif(serialize($a) == false){\n\t\t\t\techo \"$a can't be unserialized\" . PHP_EOL;\n\t\t\t}\n\t\techo serialize($a) . PHP_EOL;\n\t}\n}", "title": "" }, { "docid": "c214f480d4de56b967a9779501d1b923", "score": "0.59782475", "text": "public function clear(): bool;", "title": "" }, { "docid": "078c6268fd67e4b4e6e206891fabae41", "score": "0.5971635", "text": "public function isEmpty() {\n return empty($this->items);\n }", "title": "" }, { "docid": "8214e5d7818a36dc61c7bb12cbf5b0d1", "score": "0.596961", "text": "public function isEmpty()\n {\n return $this->count() === 0;\n }", "title": "" }, { "docid": "8214e5d7818a36dc61c7bb12cbf5b0d1", "score": "0.596961", "text": "public function isEmpty()\n {\n return $this->count() === 0;\n }", "title": "" }, { "docid": "18ff3eba0ee78bda979a1ef54f718630", "score": "0.59688896", "text": "public function isEmpty()\n {\n return empty($this->objects);\n }", "title": "" } ]
9386d90c8f1c551b472e191f00774494
Get the name of the most recent plugin to be called in the call stack (or the plugin that owns the current page, if any). i.e., if the last plugin was in /mod/foobar/, this would return foo_bar.
[ { "docid": "f266aa6aeb69ca829380049de3493077", "score": "0.56821966", "text": "function elgg_get_calling_plugin_id($mainfilename = false) {\n\tif (!$mainfilename) {\n\t\tif ($backtrace = debug_backtrace()) {\n\t\t\tforeach ($backtrace as $step) {\n\t\t\t\t$file = $step['file'];\n\t\t\t\t$file = str_replace(\"\\\\\", \"/\", $file);\n\t\t\t\t$file = str_replace(\"//\", \"/\", $file);\n\t\t\t\tif (preg_match(\"/mod\\/([a-zA-Z0-9\\-\\_]*)\\/start\\.php$/\", $file, $matches)) {\n\t\t\t\t\treturn $matches[1];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} else {\n\t\t//@todo this is a hack -- plugins do not have to match their page handler names!\n\t\tif ($handler = get_input('handler', FALSE)) {\n\t\t\treturn $handler;\n\t\t} else {\n\t\t\t$file = $_SERVER[\"SCRIPT_NAME\"];\n\t\t\t$file = str_replace(\"\\\\\", \"/\", $file);\n\t\t\t$file = str_replace(\"//\", \"/\", $file);\n\t\t\tif (preg_match(\"/mod\\/([a-zA-Z0-9\\-\\_]*)\\//\", $file, $matches)) {\n\t\t\t\treturn $matches[1];\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n}", "title": "" } ]
[ { "docid": "019538fe8977a5d62b569dd34939e81f", "score": "0.66904145", "text": "static function getPluginName()\n\t{\n\t\t$base = plugin_basename(__FILE__);\n\t\t\n\t\treturn preg_replace(\"!(.*?)(\\/.*)!\", \"$1\", $base);\n\t}", "title": "" }, { "docid": "4e8d33e705b48e91a7ca28d6851888b8", "score": "0.667479", "text": "public function getLastPluginAction(): string;", "title": "" }, { "docid": "a3456ecd10e59378f605ef593d002390", "score": "0.6654506", "text": "public function getPluginName()\n {\n return craft()->plugins->getPlugin('gtPoll')->getName();\n }", "title": "" }, { "docid": "4d5617d232b27b550944d6719a04ec9c", "score": "0.6615424", "text": "function get_plugin_name() {\n\t\t$plugin_name = bw_array_get( $this->plugin_data, 'Name', $this->component);\n\t\treturn $plugin_name;\n\t}", "title": "" }, { "docid": "433793b6424d774f85920c4d74fbfac3", "score": "0.6598714", "text": "abstract function getPluginName();", "title": "" }, { "docid": "07c9559bbcd092691d9d891bc1c80b81", "score": "0.64317185", "text": "public function get_plugin_name()\n {\n }", "title": "" }, { "docid": "89e774708b728cbffcca83d122d6cd2a", "score": "0.6381498", "text": "public function get_name() {\n return get_string('pluginname', 'local_gradecleanup');\n }", "title": "" }, { "docid": "8e22c02434f641bf6cdfe35b87aec2ce", "score": "0.6330927", "text": "abstract protected function getProceduralHookName(): string;", "title": "" }, { "docid": "75b0d0d3ae39775779385d2303533141", "score": "0.6283375", "text": "function get_plugin_file_name() {\n\t\treturn $this->component . '/' . $this->plugin_file;\n\t}", "title": "" }, { "docid": "0e34897b04a4df964888f38384148a69", "score": "0.6274121", "text": "function get_caller() {\n\t\t// requires PHP 4.3+\n\t\tif ( !is_callable('debug_backtrace') )\n\t\t\treturn '';\n\n\t\t$bt = debug_backtrace();\n\t\t$caller = '';\n\n\t\tforeach ( (array) $bt as $trace ) {\n\t\t\tif ( isset($trace['class']) && is_a( $this, $trace['class'] ) )\n\t\t\t\tcontinue;\n\t\t\telseif ( !isset($trace['function']) )\n\t\t\t\tcontinue;\n\t\t\telseif ( strtolower($trace['function']) == 'call_user_func_array' )\n\t\t\t\tcontinue;\n\t\t\telseif ( strtolower($trace['function']) == 'apply_filters' )\n\t\t\t\tcontinue;\n\t\t\telseif ( strtolower($trace['function']) == 'do_action' )\n\t\t\t\tcontinue;\n\n\t\t\tif ( isset($trace['class']) )\n\t\t\t\t$caller = $trace['class'] . '::' . $trace['function'];\n\t\t\telse\n\t\t\t\t$caller = $trace['function'];\n\t\t\tbreak;\n\t\t}\n\t\treturn $caller;\n\t}", "title": "" }, { "docid": "3108667e9afed20a8f6b5a0676f0a9a7", "score": "0.6255791", "text": "protected static function _getCaller() {\n\t\t$trace = debug_backtrace();\n\t\tforeach($trace as $step) {\n\t\t\tif($step['function'][0] != '_') {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn $step['file'] . ':' . $step['line'];\n\t}", "title": "" }, { "docid": "adf5f0ac06206e75a41f8e8e5b0ec84d", "score": "0.6218559", "text": "public function get_plugin_name(){\n\t\treturn apply_filters( 'UCLACOMPONENTSWP/settings/get_plugin_name', $this->plugin_name );\n\t}", "title": "" }, { "docid": "82c5aa8214ed38bd5be1d2ef095b33fd", "score": "0.62005603", "text": "public function get_plugin_name() {\n\t\treturn $this->plugin_name;\n\t}", "title": "" }, { "docid": "82c5aa8214ed38bd5be1d2ef095b33fd", "score": "0.62005603", "text": "public function get_plugin_name() {\n\t\treturn $this->plugin_name;\n\t}", "title": "" }, { "docid": "82c5aa8214ed38bd5be1d2ef095b33fd", "score": "0.62005603", "text": "public function get_plugin_name() {\n\t\treturn $this->plugin_name;\n\t}", "title": "" }, { "docid": "b25717ed71afa0b49cfb5023da18ac3f", "score": "0.6156227", "text": "public function get_plugin_name()\n {\n return $this->plugin_name;\n }", "title": "" }, { "docid": "b25717ed71afa0b49cfb5023da18ac3f", "score": "0.6156227", "text": "public function get_plugin_name()\n {\n return $this->plugin_name;\n }", "title": "" }, { "docid": "322e3d3e0ab22af5a6ab4233ef18ba6b", "score": "0.6154224", "text": "final public function getPluginName()\n {\n return $this->pluginName;\n }", "title": "" }, { "docid": "115d58efabf1a2b5e527cebb90392f4f", "score": "0.6129598", "text": "public function get_plugin_name() {\n return $this->plugin_name;\n }", "title": "" }, { "docid": "115d58efabf1a2b5e527cebb90392f4f", "score": "0.6129598", "text": "public function get_plugin_name() {\n return $this->plugin_name;\n }", "title": "" }, { "docid": "1afeebb561663ad1d3017904abcdbc83", "score": "0.61190385", "text": "public function get_hook_name() {\n\t\treturn $this->hook_name;\n\t}", "title": "" }, { "docid": "55434cbb29ce6bc8f887e175b2aba01a", "score": "0.60973114", "text": "public static function getLastPageName()\n {\n return Grav::instance()['session']->lastPageName ?: 'default';\n }", "title": "" }, { "docid": "f22177c6601bde818e0c5fcfaa1fdab3", "score": "0.6089727", "text": "protected static function get_called_class() {\n\t\t// PHP 5.2 only\n\t\t$backtrace = debug_backtrace();\n\t\t// [0] WP_REST_Client::get_called_class()\n\t\t// [1] WP_REST_Client::function()\n\t\tif ( 'call_user_func' === $backtrace[2]['function'] ) {\n\t\t\treturn $backtrace[2]['args'][0][0];\n\t\t}\n\t\treturn $backtrace[2]['class'];\n\t}", "title": "" }, { "docid": "e47d3056ee27fc4cf08acd07146c3688", "score": "0.6080452", "text": "private function getCallerStatedClassName(): string\n {\n if (true !== $this->callerStatedClassesStack->isEmpty()) {\n return $this->callerStatedClassesStack->top();\n }\n\n return '';\n }", "title": "" }, { "docid": "b1aa93ad9fd4c266b4aa782223313183", "score": "0.60151136", "text": "public function getExtensionName()\n {\n return $this->template->getConfigVars('apifootball_plugin');\n }", "title": "" }, { "docid": "01dc1e0f61c47deb9f0762e0e844775e", "score": "0.59979004", "text": "function curPageName()\n{\n\treturn substr($_SERVER[\"SCRIPT_NAME\"],strrpos($_SERVER[\"SCRIPT_NAME\"],\"/\")+1);\n}", "title": "" }, { "docid": "57afbbef2408d9b39832d0727d8e3700", "score": "0.5987586", "text": "public function getUniqueName() { return 'plugin'; }", "title": "" }, { "docid": "da7c06230f3c28badc6278cef19a9545", "score": "0.5958399", "text": "public function getName()\n {\n\t $pluginName\t= Craft::t('1Pass');\n\t $pluginNameOverride\t= $this->getSettings()->pluginNameOverride;\n\n\n\t return ($pluginNameOverride) ? $pluginNameOverride : $pluginName;\n }", "title": "" }, { "docid": "65a4fb87adcf48d225fb926f7a2bb9cf", "score": "0.59537065", "text": "public function getPluginName()\n {\n return $this->pluginName;\n }", "title": "" }, { "docid": "163253be7bf66ec9569a40b777895be2", "score": "0.5938651", "text": "public function getName()\n {\n return get_called_class();\n }", "title": "" }, { "docid": "d7245fc2ca99897e415ff2b1e55939fb", "score": "0.59240127", "text": "public function get_caller_name() {\n return($this->caller_name);\n }", "title": "" }, { "docid": "b6be87510766fae18c3c3931ff9a7bbc", "score": "0.5908702", "text": "protected static function getCallingClass(): string\n {\n // get the trace\n $trace = debug_backtrace();\n\n // get the class that is asking for who awoke it\n $class = $trace[1]['class'];\n\n // +1 to i because we have to account for calling this function\n for ($i = 1; $i < count($trace); $i++) {\n\n // is it set?\n if (!isset($trace[$i])) {\n continue;\n }\n // is it a different class\n if ($class == $trace[$i]['class']) {\n continue;\n }\n\n return $trace[$i]['class'];\n }\n return '';\n }", "title": "" }, { "docid": "11e012e092cef7a871e8dbe16f4a0dcc", "score": "0.5904703", "text": "public function get_name() {\n return get_string('pluginname', 'assignfeedback_signature');\n }", "title": "" }, { "docid": "00fb7cee26e923a80cd118d81069c4ab", "score": "0.5883728", "text": "function getCallingFunction() {\n\t\t$backtrace = debug_backtrace();\n\t\treturn $backtrace[2]['function'];\n\t}", "title": "" }, { "docid": "b27cf00d0d383c79b20c106b32cbd2b4", "score": "0.58750516", "text": "final public static function className(){\n\t\treturn get_called_class();\n\t}", "title": "" }, { "docid": "f4572fc71e181092818f2974134abf04", "score": "0.5848202", "text": "public function get_plugin_name() {\n $pluginname = clean_param($this->formdata->mastertemplatename, PARAM_FILE);\n $pluginname = strtolower($pluginname);\n\n // Only lower case letters at the beginning.\n $pluginname = preg_replace('~^[^a-z]*~', '', $pluginname);\n\n // Never spaces.\n $pluginname = preg_replace('~[ ]*~', '', $pluginname);\n\n // Replace dash with underscore.\n $pluginname = str_replace('-', '_', $pluginname);\n\n // Never double underscore.\n while (strpos($pluginname, '__') !== false) {\n $pluginname = str_replace('__', '_', $pluginname);\n }\n\n // User wrote a 100% bloody name. GRRRR.\n $condition1 = (bool)core_text::strlen($pluginname);\n $condition2 = (bool)preg_match_all('~[a-z]~', $pluginname);\n $condition = !($condition1 && $condition2);\n if ($condition) {\n // This test provides a 100% correct name. I do not need to iterate it.\n $this->formdata->mastertemplatename = 'mtemplate_'.$this->surveypro->name;\n $pluginname = $this->get_plugin_name();\n }\n\n return $pluginname;\n }", "title": "" }, { "docid": "0acfefa948e8314651bdb5f5df5c2093", "score": "0.58139443", "text": "public function get_caller() {}", "title": "" }, { "docid": "7fa87c8d05616578df9f5471e7b96249", "score": "0.5754323", "text": "public static function get_plugin_file() {\n\t\treturn __FILE__;\n\t}", "title": "" }, { "docid": "e53b1388492957e093c4cfd621910867", "score": "0.57499677", "text": "function curPageName() {\n return substr($_SERVER[\"SCRIPT_NAME\"],strrpos($_SERVER[\"SCRIPT_NAME\"],\"/\")+1);\n}", "title": "" }, { "docid": "71e6c61a6cb03831061a73cff8c5b081", "score": "0.57412124", "text": "function PageName() {\r\n return substr($_SERVER[\"SCRIPT_NAME\"],strrpos($_SERVER[\"SCRIPT_NAME\"],\"/\")+1);\r\n}", "title": "" }, { "docid": "c5a156a36dd2403af0dbbd8d80c6a4ba", "score": "0.57342064", "text": "public function getHook(): string\n {\n return $this->hook;\n }", "title": "" }, { "docid": "3365bdbf0a13ce3cfc2d36419a89cca6", "score": "0.570787", "text": "protected function get_plugin_name($plugin)\n {\n }", "title": "" }, { "docid": "e82b9df1ad65bb5a654402fd26d7d17e", "score": "0.5705825", "text": "public static function getName() {\n $data = self::getPluginData();\n return $data['Name'];\n }", "title": "" }, { "docid": "b86eaf4f8de400601154067466a7d203", "score": "0.5700128", "text": "public static function className()\n {\n return get_called_class();\n }", "title": "" }, { "docid": "b86eaf4f8de400601154067466a7d203", "score": "0.5700128", "text": "public static function className()\n {\n return get_called_class();\n }", "title": "" }, { "docid": "d04d89a35d0f21804ed767def842337e", "score": "0.5663955", "text": "public function getCurrentModule() {\n\t\treturn explode(NS, get_class($this))[0];\n\t}", "title": "" }, { "docid": "1ab987da712a2f19a98b26ff7e081afc", "score": "0.5657194", "text": "public function key()\n {\n return $this->plugins[$this->position]->plaginName;\n }", "title": "" }, { "docid": "61d14a12e0237becd08511c668e38268", "score": "0.5653044", "text": "static function get_called_class()\n\t{\n\t $bt = debug_backtrace(); //var_dump($bt); echo \"<p></p>\";\n\t if (isset($bt[1]['file']) && isset($bt[1]['line']) && isset($bt[1]['function']))\n\t {\n\t $lines = file($bt[1]['file']);\n\t $pattern = '/([a-zA-Z0-9\\_]+)::'.$bt[1]['function'].'/';\n\t preg_match($pattern, $lines[$bt[1]['line']-1], $matches);\n\t\t\tif (count($matches)>0)\n\t return $matches[1];\n\t }\n\t return false;\n\t}", "title": "" }, { "docid": "e02b8a5466277448df6d266ee56f7dcc", "score": "0.56407094", "text": "public static function getPageName() {\n $lastSettings = Options::all() ? Options::all()->last() : null;\n return $lastSettings ? $lastSettings->name : env('APP_NAME', 'Mirek Handlarz');\n }", "title": "" }, { "docid": "0e644d1b7723c4237ff94d5f24a0527f", "score": "0.5633636", "text": "public function getPluginLabel();", "title": "" }, { "docid": "dc07ffbb5edf569880b99dfb38d1a035", "score": "0.56254315", "text": "public static function getCurrentRouteName(): string\n {\n return self::$currentRouteName;\n }", "title": "" }, { "docid": "dfcea5d88f76704a1f61ad9565f33ca7", "score": "0.5622193", "text": "public function getClassNameNice() {\n return $this->i18n_singular_name();\n }", "title": "" }, { "docid": "9e4763b28419678776bea8b6c7fb8015", "score": "0.561903", "text": "public function get_name() {\n return get_string('pluginname', 'local_assessmentgrades');\n }", "title": "" }, { "docid": "5036fb1d517381fb1bf4b3bc1f1be6bd", "score": "0.56143826", "text": "protected function getModule()\n\t{\n\t\tif ($this->module !== null) return $this->module;\n\t\t$backtrace = debug_backtrace();\n\t\tforeach ($backtrace as $item) {\n\t\t\tif (!array_key_exists('function', $item)) continue;\n\t\t\t$segments = explode('_', $item['function']);\n\t\t\tif (count($segments) <= 1) continue;\n\t\t\tif ($segments[count($segments) - 1] == 'theme') {\n\t\t\t\t$module_segments = array_slice($segments, 0, count($segments) - 1);\n\t\t\t\treturn $this->module = implode('_', $module_segments);\n\t\t\t}\n\t\t}\n\t\treturn $this->module = false;\n\t}", "title": "" }, { "docid": "4e450d74b40ab5f65fc61b301774bf76", "score": "0.5586142", "text": "public static function get_name() {\r\n\t\treturn __('Premium Plugins', 'psts');\r\n\t}", "title": "" }, { "docid": "ccd2a56b05cf16cda769235dbe2ad3d8", "score": "0.55842716", "text": "public function getName()\n\t{\n\t\treturn substr(__CLASS__, 7);\n\t}", "title": "" }, { "docid": "160bf60779e48c78f66a53e326c72469", "score": "0.55814165", "text": "function ft_get_self() {\n\treturn basename($_SERVER['PHP_SELF']);\n}", "title": "" }, { "docid": "9cb795aa55b737648d03d339ed528804", "score": "0.55760956", "text": "function SPT_get_user(){\n\t$list = debug_backtrace(false);\n\t$file = $list[1]['file'];\n\t$user = basename($file,'.php');\n\treturn $user;}", "title": "" }, { "docid": "ff8096a5f53a08801268e2ee66b5e46e", "score": "0.5572636", "text": "public static function getClassName() {\n $namespace = explode(\"\\\\\", get_called_class());\n return end($namespace);\n }", "title": "" }, { "docid": "083239f2eced7130204932a78babf162", "score": "0.55713767", "text": "function activePageName()\n{\n\treturn basename($_SERVER['PHP_SELF'],'.php');\n}", "title": "" }, { "docid": "613d52af1d012d8136cd01c9005cffc5", "score": "0.5568498", "text": "function get_name() {\n return get_string($this->type, 'pagemenu');\n }", "title": "" }, { "docid": "06c7597d1d18d09d131e4bd396713c7c", "score": "0.55671114", "text": "public function getCurrentRouteName()\n {\n $laravelRoute = LaravelRoute::current();\n return $laravelRoute->getName();\n }", "title": "" }, { "docid": "a6caffe988734fa3193fe103b16848c4", "score": "0.5539629", "text": "protected function getCallerFunction()\n {\n list($one, $two, $caller) = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 3);\n return $caller['function'];\n }", "title": "" }, { "docid": "5cf74c60450f42578c267f3e3fc10e8a", "score": "0.551332", "text": "private function getCaller($what = NULL)\n {\n $trace = debug_backtrace();\n $previousCall = $trace[2]; // 0 is this call, 1 is call in previous function, 2 is caller of that function\n\n if (isset($what)) {\n return $previousCall[$what];\n } else {\n return $previousCall;\n }\n }", "title": "" }, { "docid": "9251907ccca6c1ab76002e1eff9b73a6", "score": "0.550633", "text": "function get_object_called_name($object) {\n\t\treturn strtolower(last(explode('\\\\', get_class($object))));\n\t}", "title": "" }, { "docid": "b963e62a330ce0dff37fad5ce35e5b7a", "score": "0.5504761", "text": "public function plugin_name($plugin) {\n list($type, $name) = normalize_component($plugin);\n return $this->pluginsinfo[$type][$name]->displayname;\n }", "title": "" }, { "docid": "d4c38e221331d9595d4ebcd8553bf8ae", "score": "0.5504121", "text": "function get_script_name() {\n if (!empty($_SERVER['PHP_SELF'])) {\n $strScript = $_SERVER['PHP_SELF'];\n } else if (!empty($_SERVER['SCRIPT_NAME'])) {\n $strScript = @$_SERVER['SCRIPT_NAME'];\n } else {\n trigger_error(\"error reading script name in get_script_name\", E_USER_ERROR );\n }\n $intLastSlash = strrpos($strScript, \"/\");\n if (strrpos($strScript, \"\\\\\")>$intLastSlash) {\n $intLastSlash = strrpos($strScript, \"\\\\\");\n }\n return substr($strScript, $intLastSlash+1, strlen($strScript));\n}", "title": "" }, { "docid": "2f59732519a5bdc1c3d60985c2a3a564", "score": "0.5503901", "text": "public static function get_backup_plugin() {\n\n\t\t$possible = array(\n\t\t\t'backupbuddy/backupbuddy.php',\n\t\t\t'updraftplus/updraftplus.php',\n\t\t\t'backwpup/backwpup.php',\n\t\t\t'xcloner-backup-and-restore/xcloner.php',\n\t\t\t'duplicator/duplicator.php',\n\t\t\t'backup/backup.php',\n\t\t\t'wp-db-backup/wp-db-backup.php',\n\t\t\t'backupwordpress/backupwordpress.php',\n\t\t\t'blogvault-real-time-backup/blogvault.php',\n\t\t\t'wp-all-backup/wp-all-backup.php',\n\t\t\t'vaultpress/vaultpress.php',\n\t\t);\n\n\t\t/**\n\t\t * Filter the list of possible backup plugins.\n\t\t *\n\t\t * @param string[] List of Backup Plugin __FILE__.\n\t\t */\n\t\t$possible = apply_filters( 'itsec_possible_backup_plugins', $possible );\n\n\t\tif ( ! function_exists( 'is_plugin_active' ) ) {\n\t\t\trequire_once( ABSPATH . 'wp-admin/includes/plugin.php' );\n\t\t}\n\n\t\tif ( ! function_exists( 'is_plugin_active' ) ) {\n\t\t\treturn '';\n\t\t}\n\n\t\tforeach ( $possible as $file ) {\n\t\t\tif ( is_plugin_active( $file ) ) {\n\t\t\t\treturn $file;\n\t\t\t}\n\t\t}\n\n\t\treturn '';\n\t}", "title": "" }, { "docid": "014aaaff2fa4e58c64122f36d00b0b62", "score": "0.5500643", "text": "public static function getCallingFunction() {\n // A funciton x has called a function y which called this\n // see stackoverflow.com/questions/190421.\n $caller = debug_backtrace();\n $caller = $caller[2];\n return $caller['function'];\n }", "title": "" }, { "docid": "27d395fa557b37a2d956642c3bee95e4", "score": "0.5498464", "text": "static public function getCurrentPlugin()\n\t{\n\t\treturn Piwik_PluginsManager::getInstance()->getLoadedPlugin(Piwik::getModule());\n\t}", "title": "" }, { "docid": "1b63e9464ceb9f7ca6d22dd2b0c139ba", "score": "0.54886454", "text": "public function getName(): string {\n\t\treturn $this->getCallable()->getName();\n\t}", "title": "" }, { "docid": "eab2aba3281fc9b4a76225897efbd8a6", "score": "0.5483057", "text": "public function lastPrefix()\n {\n if ($this->groupStack) {\n $group = end($this->groupStack);\n\n return $group['prefix'] ?? '';\n }\n }", "title": "" }, { "docid": "fbccd8081920ce983e1474df92923e0a", "score": "0.5481139", "text": "function elgg_get_calling_plugin_entity() {\n\t$plugin_id = elgg_get_calling_plugin_id();\n\n\tif ($plugin_id) {\n\t\treturn elgg_get_plugin_from_id($plugin_id);\n\t}\n\n\treturn false;\n}", "title": "" }, { "docid": "e34e14696fefb855aa0d19504308c2a7", "score": "0.5478965", "text": "protected function getActionModuleClassName()\n {\n $calledClass = get_called_class();\n return $calledClass::getModuleClassName();\n }", "title": "" }, { "docid": "0874a46e8d8c14c18668efe6a77445dc", "score": "0.5477825", "text": "public static function get_plugins_basename() {\n\n\t\tif ( ! isset( self::$plugins_file ) ) {\n\n\t\t\tself::$plugins_file = array();\n\n\t\t\tif ( function_exists( 'get_plugins' ) ) { // fix for when there is no any active plugin!\n\t\t\t\tforeach ( get_plugins() as $file => $info ) {\n\t\t\t\t\tself::$plugins_file[ dirname( $file ) ] = $file;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn self::$plugins_file;\n\t}", "title": "" }, { "docid": "9ecdfe3330babc35618ba61845f6a7d8", "score": "0.5467528", "text": "public function get_caller()\n {\n }", "title": "" }, { "docid": "ce39608a5eb94bdf97cedb04fbb37898", "score": "0.5462395", "text": "public static function currentRouteName()\n {\n return app(\"router\")->currentRouteName();\n }", "title": "" }, { "docid": "a0770dc4fcc222ddccafcd84603ad4c2", "score": "0.5460744", "text": "public function get_calling_class()\n\t{\n\t\t$trace = debug_backtrace();\n\n\t\t$class = $trace[1]['class'];\n\n\t\tfor ($i = 1; $i < count($trace); $i++)\n\t\t{\n\t\t\tif (isset($trace[$i]))\n\t\t\t{\n\t\t\t\tif ($class != $trace[$i]['class'])\n\t\t\t\t{\n\t\t\t\t\treturn preg_replace('/^'.__NAMESPACE__.'\\\\\\/', '', $trace[$i]['class']);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9b1698a7e6fbac8ddf5cd6fc2f225367", "score": "0.5459502", "text": "public static function getCalledClass() : string {\n\t $class = get_called_class();\n\t return self::getClassName($class);\n }", "title": "" }, { "docid": "cd6dcd1128cf39498f61bcc229ce2de6", "score": "0.5459175", "text": "public function get_plugin_name() {\n\t\treturn __( 'WooCommerce Realex Gateway', 'woocommerce-gateway-realex' );\n\t}", "title": "" }, { "docid": "7256ddbc0d0ddb7bc127d8ae4e5a5294", "score": "0.5452945", "text": "function voyage_mikado_get_page_template_name() {\n\t\t$file_name = '';\n\n\t\tif(!voyage_mikado_is_default_wp_template()) {\n\t\t\t$file_name_without_ext = preg_replace('/\\\\.[^.\\\\s]{3,4}$/', '', basename(get_page_template()));\n\n\t\t\tif($file_name_without_ext !== '') {\n\t\t\t\t$file_name = $file_name_without_ext;\n\t\t\t}\n\t\t}\n\n\t\treturn $file_name;\n\t}", "title": "" }, { "docid": "a3c47a78714b82f7b74b151d3053c5f2", "score": "0.545128", "text": "static public function showPageName(){\n $path = $_SERVER['PHP_SELF'].\"<br />\";\n $pagename = explode(\"/\", $path);\n $page = $pagename[count($pagename) - 2];\n return $page;\n}", "title": "" }, { "docid": "b52c52e3dd81e8f8724f6418d75318fc", "score": "0.54509294", "text": "function getCurrentTplName()\n\t{\n\t\t// Required objects\n\t\t$app = JFactory::getApplication();\n\t\t$db = JFactory::getDbo();\n\t\t$jinput = $app->input;\n\n\t\t// Default values\n\t\t$menuParams = new JRegistry;\n\t\t$client_id = $app->isSite() ? 0 : 1;\n\t\t$itemId = $jinput->get('Itemid', 0);\n\t\t$tplName = null;\n\n\t\t// Try to load custom template if assigned\n\t\tif ($itemId)\n\t\t{\n\t\t\t$query = $db->getQuery(true)\n\t\t\t\t->select(\"ts.template\")\n\t\t\t\t->from(\"#__menu as m\")\n\t\t\t\t->join(\"INNER\", \"#__template_styles as ts ON ts.id = m.template_style_id\")\n\t\t\t\t->where(\"m.id=\" . (int) $itemId);\n\n\t\t\t$db->setQuery($query);\n\t\t\t$tplName = $db->loadResult();\n\t\t}\n\n\t\t// If no itemId or no custom template assigned load default template\n\t\tif (!$itemId || empty($tplName))\n\t\t{\n\t\t\t$tplName = $this->getDefaultTplName($client_id);\n\t\t}\n\n\t\treturn $tplName;\n\t}", "title": "" }, { "docid": "622692bc7afd3aceed4af0c3b4725ae7", "score": "0.5450143", "text": "static public function getLoginPluginName()\n\t{\n\t\treturn Zend_Registry::get('auth')->getName();\n\t}", "title": "" }, { "docid": "9c7d09720ecbecef159ad1b8f276dc20", "score": "0.5449146", "text": "public function getName()\n {\n return $GLOBALS['registry']->get('name', 'whups');\n }", "title": "" }, { "docid": "32737db35b281ceb5a563b8afd3aa893", "score": "0.5429134", "text": "function page_owner() {\n\n global $page_owner; \n static $owner, $called;\n if (!$called) {\n \n // use page_owner global if exists\n $default = empty($page_owner) ? -1 : $page_owner;\n $owner = optional_param('owner',$default,PARAM_INT);\n if ($allmods = get_list_of_plugins('mod') ) {\n foreach ($allmods as $mod) {\n $mod_page_owner = $mod . '_page_owner';\n if (function_exists($mod_page_owner)) {\n if ($value = $mod_page_owner()) {\n \n $owner = $value;\n \n }\n }\n }\n }\n $called = true;\n }\n \n return $owner;\n}", "title": "" }, { "docid": "b94e0bd22770d20c7c83a0140380c9c2", "score": "0.5428681", "text": "public function page_name ()\n {\n return $this->snapshot_name ();\n }", "title": "" }, { "docid": "64376aebb84559de40a63d7ce777109d", "score": "0.5428403", "text": "public static function getFullName()\n {\n return __CLASS__;\n }", "title": "" }, { "docid": "e630bf778a6f4320e6493e139206b360", "score": "0.5419157", "text": "public function get_name() {\r\n return get_string('getnewmodules', 'local_quercus_tasks');\r\n }", "title": "" }, { "docid": "708f3bb1eb6c5eb46145cfb41996fd43", "score": "0.54172957", "text": "function getMethodName()\n {\n return ($this->methodName === null) ? LOG4PHP_LOGGER_LOCATION_INFO_NA : $this->methodName; \n }", "title": "" }, { "docid": "abdc1afe18a4ff2d7980d5966ed189ce", "score": "0.5392826", "text": "public function getName()\n {\n $param = $this->getInput('site');\n return $param ? \"$param Bridge\" : self::NAME;\n }", "title": "" }, { "docid": "d6571f8cb4a34197236a0da8f4a362b2", "score": "0.5392449", "text": "abstract public function getHook(): string;", "title": "" }, { "docid": "6a7d499b469fefa011437781c17e64af", "score": "0.53913194", "text": "function current_route() {\n\t\treturn Route::currentRouteName();\n\t}", "title": "" }, { "docid": "d9d11cf3fd04325120f9602cefaab0b8", "score": "0.53795534", "text": "public function getPreviousActionName(): string\n {\n }", "title": "" }, { "docid": "ab0ff5734dc9eec845bb0276efa11111", "score": "0.53703856", "text": "public function get_name(): string\n {\n return pathinfo($this->path)['basename'];\n }", "title": "" }, { "docid": "fefbe2814052ca01cca0299932393866", "score": "0.53679246", "text": "function getCurTrackName(){\n\t\tglobal $jbArr;\n\t\t\n\t\t$myMpd = _mpdConnection();\n\t\tif ($myMpd->current_track_id == -1) return false;\n\t\tif (isset($jbArr[$_SESSION['jb_id']]['prefix']) && $jbArr[$_SESSION['jb_id']]['prefix'] == \"http\") {\n\t\t $id = getTrackIdFromURL($myMpd->playlist[$myMpd->current_track_id]['file']);\n\t\t if (false !== $id) {\n\t\t $track = new jzMediaTrack($id,'id');\n\t\t $meta = $track->getMeta();\n\t\t return $meta['artist'] . ' - ' . $meta['title'];\n\t\t } else {\n\t\t return 'Unknown';\n\t\t }\n\t\t} else {\n\t\t return $myMpd->playlist[$myMpd->current_track_id]['Artist'].\" - \".$myMpd->playlist[$myMpd->current_track_id]['Title'];\n\t\t}\n\t}", "title": "" }, { "docid": "67e7d77abacc4165c8abdad6f36b9b76", "score": "0.53639454", "text": "public function getCurrentRouteName()\n {\n return $this->currentRouteName;\n }", "title": "" }, { "docid": "9c0ad8c9b718924bf37461f85d4e6bc1", "score": "0.53511816", "text": "public static function className()\n {\n return '\\\\'.get_called_class();\n }", "title": "" }, { "docid": "830043e3d96f154246e50d795bb92967", "score": "0.53443474", "text": "private function _getPluginName($token) {\n $token = substr($token, 1);\n if (!preg_match('/[\\w]+/', $token)) {\n $token = null;\n }\n return $token;\n }", "title": "" }, { "docid": "4a0cd3a3f4034fb7ca34c36793de0964", "score": "0.53439975", "text": "public function current()\n {\n return $this->plugins[$this->position]->plugin;\n }", "title": "" } ]
3a139b12054098e3ac56ff2e04cd6bce
Create a helper function for easy SDK access.
[ { "docid": "ddc45fa65ba207ad62bfceed66e38681", "score": "0.0", "text": "function jltmaf_accordion() {\r\n global $jltmaf_accordion;\r\n\r\n if ( ! isset( $jltmaf_accordion ) ) {\r\n // Activate multisite network integration.\r\n if ( ! defined( 'WP_FS__PRODUCT_6343_MULTISITE' ) ) {\r\n define( 'WP_FS__PRODUCT_6343_MULTISITE', true );\r\n }\r\n\r\n // Include Freemius SDK.\r\n require_once dirname(__FILE__) . '/freemius/start.php';\r\n\r\n $jltmaf_accordion = fs_dynamic_init( array(\r\n 'id' => '6343',\r\n 'slug' => 'wp-awesome-faq',\r\n 'type' => 'plugin',\r\n 'public_key' => 'pk_a54451ba3b9416a4e0215b62f962a',\r\n 'is_premium' => true,\r\n // If your plugin is a serviceware, set this option to false.\r\n 'has_premium_version' => true,\r\n 'has_addons' => false,\r\n 'has_paid_plans' => true,\r\n 'trial' => array(\r\n 'days' => 14,\r\n 'is_require_payment' => false,\r\n ),\r\n 'has_affiliation' => 'selected',\r\n 'menu' => array(\r\n 'slug' => 'edit.php?post_type=faq',\r\n 'first-path' => 'edit.php?post_type=faq&page=jltmaf_faq_settings',\r\n ),\r\n // Set the SDK to work in a sandbox mode (for development & testing).\r\n // IMPORTANT: MAKE SURE TO REMOVE SECRET KEY BEFORE DEPLOYMENT.\r\n 'secret_key' => 'sk_twGG0lBlNrk*<-AXpf$Fj3U.H-or!',\r\n ) );\r\n }\r\n\r\n return $jltmaf_accordion;\r\n }", "title": "" } ]
[ { "docid": "9699fa0a9ad8da81a8b184b8c119b3f4", "score": "0.6711323", "text": "protected static function helperFunction()\n {\n // because it isn't publicly callable\n }", "title": "" }, { "docid": "e265716d5dc948ed83b695770f098ea5", "score": "0.6400088", "text": "public function helpers();", "title": "" }, { "docid": "73f135793c2cf7295b50e03a9e2527ce", "score": "0.6142153", "text": "Public Abstract Function getAPI();", "title": "" }, { "docid": "3ed5dfc90533c15a5cf8cfcd9b88b7e5", "score": "0.58934885", "text": "public function getApiKey(): string;", "title": "" }, { "docid": "3ed5dfc90533c15a5cf8cfcd9b88b7e5", "score": "0.58934885", "text": "public function getApiKey(): string;", "title": "" }, { "docid": "5babaecd7a8406ee08f71c371064baf1", "score": "0.585249", "text": "abstract function apiLink();", "title": "" }, { "docid": "dd1d95d277d3d8a428a6e95903322dc6", "score": "0.5744482", "text": "function Metorik_Helper()\n{\n return Metorik_Helper::instance();\n}", "title": "" }, { "docid": "eb33019ecc8f49aaf9ac55956fd6bce3", "score": "0.5742998", "text": "abstract function getAccessToken();", "title": "" }, { "docid": "e5b367207c9a94f14e9b7d516eecef1a", "score": "0.56965125", "text": "public function provider();", "title": "" }, { "docid": "c3a59377a274e611958d154ae1b38a42", "score": "0.5686838", "text": "function getAccessToken();", "title": "" }, { "docid": "2e5a2f8519bd8e25e37ddece99527589", "score": "0.5658311", "text": "function wppedia_utils() {\n\n\treturn bf\\wpPedia\\helper::getInstance();\n\n}", "title": "" }, { "docid": "6c8b53a7d1352d7e81503b6924de68da", "score": "0.56428003", "text": "public abstract function getUtilities();", "title": "" }, { "docid": "f77d1102753d067efd63a8cbd864cc29", "score": "0.56398475", "text": "public function helper_create() {\n\t}", "title": "" }, { "docid": "8e7e61f9e27dd2b698066ea6b9d073d5", "score": "0.5626964", "text": "abstract public function getAccessToken();", "title": "" }, { "docid": "294ae9511e77b1552ba59f94f3e5e0b8", "score": "0.55493957", "text": "protected function _getApiKey()\n {\n return Mage::helper('leonex_rmp')->getApiKey();\n }", "title": "" }, { "docid": "0200d5d9121c2d1360a35908255917f1", "score": "0.5538894", "text": "public function getAPIKey(): string;", "title": "" }, { "docid": "a787292673bcad7ff54b869e4ee36672", "score": "0.5513304", "text": "function Helpers(){\n /*$clss = new Helpers();*/\n return ST\\Helpers::get_instance();\n }", "title": "" }, { "docid": "0119adf2ad8dde488789dccf4e7b821c", "score": "0.55077493", "text": "public function getApiKey();", "title": "" }, { "docid": "0119adf2ad8dde488789dccf4e7b821c", "score": "0.55077493", "text": "public function getApiKey();", "title": "" }, { "docid": "0119adf2ad8dde488789dccf4e7b821c", "score": "0.55077493", "text": "public function getApiKey();", "title": "" }, { "docid": "1c6b72a8125a0590f50f6bcd66edcd14", "score": "0.55049944", "text": "public function func();", "title": "" }, { "docid": "c721f9675e0ceff2f36aabded92f8da0", "score": "0.54801977", "text": "public function helper()\n {\n return Mage::helper('flancer32_ppapi_helper');\n }", "title": "" }, { "docid": "2c2b3d174e9a350349de6024ffe6e769", "score": "0.5470071", "text": "public function getApi();", "title": "" }, { "docid": "2c2b3d174e9a350349de6024ffe6e769", "score": "0.5470071", "text": "public function getApi();", "title": "" }, { "docid": "2c2b3d174e9a350349de6024ffe6e769", "score": "0.5470071", "text": "public function getApi();", "title": "" }, { "docid": "cf200d62cfcb21dc7d3e68482c64c119", "score": "0.54591966", "text": "private function sayHello(){\n return \"Hello\";\n }", "title": "" }, { "docid": "4482b3e6318971c24b19f05dfebdef27", "score": "0.5444801", "text": "public function provider() : string;", "title": "" }, { "docid": "406f7179c624db6c1d0a5870c7d0bb90", "score": "0.541841", "text": "abstract public function getApiPath(): string;", "title": "" }, { "docid": "ba083e70676663558ae53fcec1704cc8", "score": "0.54028475", "text": "public function doSomethingAwesome()\n {\n }", "title": "" }, { "docid": "22c0de5d10ec96284cd4c322dec28c6b", "score": "0.539338", "text": "public function service();", "title": "" }, { "docid": "42490a8eb3a6a481b4aa7e3eb314815b", "score": "0.5375141", "text": "function __construct()\n {\n parent::__construct();\n $this->load->helper(\"my_api\");\n }", "title": "" }, { "docid": "c4b1504db9366cbb166250198408eac5", "score": "0.5358297", "text": "public static function getClient();", "title": "" }, { "docid": "74b56afb7870826703e51fec36b30779", "score": "0.5355976", "text": "public function jumlah_kelompok_ta()\n{\n}", "title": "" }, { "docid": "7c18b5832ccd4648307c14ace7c0ad1f", "score": "0.5332224", "text": "public static function publicStaticMethod()\n {\n }", "title": "" }, { "docid": "226c030a86af20b6d4b705e4055e9c93", "score": "0.530058", "text": "static function create();", "title": "" }, { "docid": "5a9fc628bedbe22d78a8912ed5c0eb9c", "score": "0.52993506", "text": "public static function request()\n {\n }", "title": "" }, { "docid": "d161e601716ea6f25209e06269bed4af", "score": "0.5296791", "text": "public function jumlah_seluruh_kelompok()\n{\n}", "title": "" }, { "docid": "09b592b65f00d9d9a091cb97283f1045", "score": "0.5290759", "text": "public function getAccessToken(): string;", "title": "" }, { "docid": "4e329ee99348ca51f6931a3347408ab8", "score": "0.52681935", "text": "abstract protected function getApiClass(): string;", "title": "" }, { "docid": "d287342a49b4f7ff5afed92e83576525", "score": "0.5267526", "text": "private static function stcMethod() {\n }", "title": "" }, { "docid": "47306f77c5fb2fd1faeecc30e02dec9f", "score": "0.5263652", "text": "public function toApi();", "title": "" }, { "docid": "00b79a1ad6d10ec906320914f5e48e6f", "score": "0.5262449", "text": "function root_shared(){\r\n\r\nreturn \"http://\".$_SERVER[\"HTTP_HOST\"] .'/novaproget.com/public_shared/function/'; \r\n\r\n}", "title": "" }, { "docid": "1793960639a98eebe3c185e82ee27bc2", "score": "0.525925", "text": "function aws_signed_request($params, $region = null): string\n{\n \n /*\n Parameters:\n $params - an array of parameters, eg. array(\"Operation\"=>\"ItemLookup\",\n \"ItemId\"=>\"B000X9FLKM\", \"ResponseGroup\"=>\"Small\")\n */\n\n global $config;\n \n // some paramters\n $method = \"GET\";\n $host = \"ecs.amazonaws.\".($region ? $region : awsGetRegion());\n $uri = \"/onca/xml\";\n \n // TODO this hard-coded optin name should be moved to engined.php\n $public_key = $config['amazonaws'.AWS_KEY];\n $private_key = $config['amazonaws'.AWS_SECRET_KEY];\n\n // additional parameters\n $params[\"Service\"] = \"AWSECommerceService\";\n $params[\"AWSAccessKeyId\"] = $public_key;\n\t// Associate tag hack\n\t// TODO check proper associate tag\n\t$params[\"AssociateTag\"] = 'videoDB';\n // GMT timestamp\n $params[\"Timestamp\"] = gmdate(\"Y-m-d\\TH:i:s\\Z\");\n // API version\n $params[\"Version\"] = \"2009-03-31\";\n \n // sort the parameters\n ksort($params);\n \n // create the canonicalized query\n $canonicalized_query = array();\n foreach ($params as $param=>$value)\n {\n $param = str_replace(\"%7E\", \"~\", rawurlencode($param));\n $value = str_replace(\"%7E\", \"~\", rawurlencode($value));\n $canonicalized_query[] = $param.\"=\".$value;\n }\n $canonicalized_query = implode(\"&\", $canonicalized_query);\n \n // create the string to sign\n $string_to_sign = $method.\"\\n\".$host.\"\\n\".$uri.\"\\n\".$canonicalized_query;\n \n // calculate HMAC with SHA256 and base64-encoding\n $signature = base64_encode(hash_hmac(\"sha256\", $string_to_sign, $private_key, True));\n \n // encode the signature for the request\n $signature = str_replace(\"%7E\", \"~\", rawurlencode($signature));\n \n // create request\n $request = \"http://\".$host.$uri.\"?\".$canonicalized_query.\"&Signature=\".$signature;\n \n return $request;\n}", "title": "" }, { "docid": "b65795c15387cc0df8d2c6a4f5ada0b1", "score": "0.5250758", "text": "function api_handler_instance()\n{\n return api_handler::instance();\n}", "title": "" }, { "docid": "93d5e0e8b04aafb10074b6b31b61056d", "score": "0.52458394", "text": "public function getService() {}", "title": "" }, { "docid": "d7fa0b884c820804324dcd97852fe729", "score": "0.52437747", "text": "public function example_function() {\n\t\t// Do something here.\n\t}", "title": "" }, { "docid": "c1aacebec120c11b09602e6e162f3c53", "score": "0.52322876", "text": "public function developerUrl();", "title": "" }, { "docid": "bbe4d3f245b7dd3db0b1e54c97d9438e", "score": "0.5232186", "text": "public function getClientProvider();", "title": "" }, { "docid": "bec392396b7e4f65ff2cc20b2c8171bd", "score": "0.5225033", "text": "public function generateAccessToken(): string;", "title": "" }, { "docid": "7fadd853e04dcd9b7de4869fab1f8550", "score": "0.52162915", "text": "public function facebook(){\n }", "title": "" }, { "docid": "0ae3028d051a348099de980b13ca338f", "score": "0.52142394", "text": "function accessTokenURL() { return 'https://open.t.qq.com/cgi-bin/access_token'; }", "title": "" }, { "docid": "857473b81114bff9a87be62ea37d834b", "score": "0.5207312", "text": "public function provider(): string;", "title": "" }, { "docid": "3022cb5564c686204e35961b13eec3c0", "score": "0.5205403", "text": "function main()\n {\n // We take parameter 1 to stablish the method to call when you execute: composer script hello/parameter-1/parameter-2/..\n // If the parameter 1 is empty we assign default by default :)\n $method = (isset($this->params[1])) ? $this->params[1] : 'default';\n // we convert - by _ because a method name does not allow '-' symbol\n $method = str_replace('-', '_', $method);\n\n //Call internal ENDPOINT_{$method}\n if (!$this->useFunction('METHOD_' . $method)) {\n return ($this->setErrorFromCodelib('params-error', \"/{$method} is not implemented\"));\n }\n }", "title": "" }, { "docid": "5cabdca0a483d90d0aab7777976474ac", "score": "0.5194988", "text": "public function apiAction()\r\n {\r\n\r\n }", "title": "" }, { "docid": "6de5779da38d286c5d5bd8c73aed95e8", "score": "0.51932985", "text": "abstract protected function endpoint() : string;", "title": "" }, { "docid": "f20cc276cc5865ac14636a28ee6a45cb", "score": "0.51890427", "text": "function getSecret();", "title": "" }, { "docid": "521fa29b2d2216362a05d7080d427621", "score": "0.51854", "text": "public function testProductAPIGetProductInfo2()\n {\n\n }", "title": "" }, { "docid": "c1319d5a713ea0b1303054b7e8037b9b", "score": "0.51846623", "text": "public function testCreateRequest(){\n\n }", "title": "" }, { "docid": "ae0ce4291629a06053996ba8ee397282", "score": "0.51832324", "text": "public function __construct(){\n $this->api->load->helper('path');\n // $this->api->load->helper('simple_html_dom_helper');\n }", "title": "" }, { "docid": "5dc73f2803a806022a9cb4f05458c57d", "score": "0.5182441", "text": "abstract function getApiVersion();", "title": "" }, { "docid": "78a2982bcf4ea1390838a88a0b4a7c29", "score": "0.51756907", "text": "function _SOAPRequestFunctions(&$server){\n return;\n }", "title": "" }, { "docid": "950223e8d645445047e9fd6952ccbc9c", "score": "0.5172029", "text": "public function method();", "title": "" }, { "docid": "950223e8d645445047e9fd6952ccbc9c", "score": "0.5172029", "text": "public function method();", "title": "" }, { "docid": "299c0bebafde74e364de1610aa37e64d", "score": "0.5171892", "text": "public function getApiCallback();", "title": "" }, { "docid": "16a9d1c807f41e74883cf3cb161f6741", "score": "0.51718354", "text": "public function testSystemSkillsGet()\n {\n\n }", "title": "" }, { "docid": "74ed6720282b5fd916249b5dd9d892dc", "score": "0.51617295", "text": "abstract public function getAppId();", "title": "" }, { "docid": "dd1c567397b6c3d84e3970a25df5cec3", "score": "0.5161415", "text": "public function document(): string\n {\n // this will use an outside library\n }", "title": "" }, { "docid": "1c2e8eed4a091c1e228de19919f04bb6", "score": "0.51382136", "text": "abstract protected function getJwtUser():string;", "title": "" }, { "docid": "3b608c9ab022162a870aa0f7df69a5b7", "score": "0.51345056", "text": "function Agentapi(){\n\t\t// initialize something\n\t}", "title": "" }, { "docid": "84d012b323ea9a93332cc0639f7354c0", "score": "0.51314175", "text": "public function testProductAPIGetProductInfo()\n {\n\n }", "title": "" }, { "docid": "43a8121e7f38bae09c66043ced1591c7", "score": "0.5128778", "text": "public function getAccessToken();", "title": "" }, { "docid": "43a8121e7f38bae09c66043ced1591c7", "score": "0.5128778", "text": "public function getAccessToken();", "title": "" }, { "docid": "43a8121e7f38bae09c66043ced1591c7", "score": "0.5128778", "text": "public function getAccessToken();", "title": "" }, { "docid": "43a8121e7f38bae09c66043ced1591c7", "score": "0.5128778", "text": "public function getAccessToken();", "title": "" }, { "docid": "43a8121e7f38bae09c66043ced1591c7", "score": "0.5128778", "text": "public function getAccessToken();", "title": "" }, { "docid": "05afd71019b28b94e6c702ebbaab9e22", "score": "0.51232785", "text": "function get_api_key() {\n\t\treturn $this->get( 'convertkit_key' );\n\t}", "title": "" }, { "docid": "a40f9b7d8f09649da593a62435c0272f", "score": "0.511155", "text": "function main()\n{\n\n // Load default configuration\n $settings = Settings::defaultSettings();\n\n // Common Katena network information\n $apiUrl = $settings->apiUrl;\n\n // Alice Katena network information\n $aliceCompanyBcId = $settings->company->bcId;\n\n // Create a Katena API helper\n $transactor = new Transactor($apiUrl);\n\n try {\n\n // Retrieve the keys from Katena\n $keys = $transactor->retrieveCompanyKeys($aliceCompanyBcId, 1, $settings->txPerPage);\n\n Log::println(\"Keys list :\");\n Log::printlnJson($keys);\n\n } catch (ApiException $e) {\n echo $e;\n } catch (GuzzleException|Exception $e) {\n echo $e->getCode() . \" \" . $e->getMessage();\n }\n}", "title": "" }, { "docid": "9e91de9f762cdedfb2fd24fd219e1355", "score": "0.5105367", "text": "public function get_function():string;", "title": "" }, { "docid": "b749abf44a90dcc5accad559beecc592", "score": "0.5104464", "text": "private function generateApiKey() {\n return md5(uniqid(rand(), true));\n }", "title": "" }, { "docid": "6765df601e877dbb845872372070673f", "score": "0.5103408", "text": "public function fetchAuthToken();", "title": "" }, { "docid": "6a6cabe1686ce6e9627deeebf8748689", "score": "0.51010144", "text": "function echoapi()\n{\n\n // Specify a default API key, this should be changed for billable projects\n $apikey = \"AIzaSyDmlnWKI60J2KE3CP6XfqwemnJCjQkCMVU\"; // Airsciences standard browser key.\n\n // Script references.\n return \"<script src=\\\"https://maps.googleapis.com/maps/api/js?key=$apikey&libraries=geometry\\\" type=\\\"text/javascript\\\"></script>\";\n}", "title": "" }, { "docid": "8b57a0c3f4e32e2814aa237c7f672081", "score": "0.5099644", "text": "protected function _getApi()\n\t{\n\t\treturn Mage::getSingleton('wmgcybersource/api_soap');\n\t}", "title": "" }, { "docid": "e6a46a2aad8e5297488bbeb40128c0c2", "score": "0.5097848", "text": "public function MyPublic() { }", "title": "" }, { "docid": "778eac2a9ad9fb0b401add832204e0fe", "score": "0.5090198", "text": "public function basic();", "title": "" }, { "docid": "180743ca9adb213152534d32d0166bb3", "score": "0.5086211", "text": "public function publicMethod()\n {\n }", "title": "" }, { "docid": "a537146d015642bdc65a02875e46103b", "score": "0.5083157", "text": "public function doSomething();", "title": "" }, { "docid": "5bc897cc2f36b1d6d06c0dab33f1d077", "score": "0.507999", "text": "static function __init__(){\n\n }", "title": "" }, { "docid": "dd383f0916dbb333792ace36772066b4", "score": "0.50715184", "text": "public function requestsApi()\n {\n return ToolsAPI::requestsApi(__DIR__ . DIRECTORY_SEPARATOR . 'UserRequest');\n }", "title": "" }, { "docid": "e5dc0f63c778593160b307f4a0310093", "score": "0.5069813", "text": "public function getApikey();", "title": "" }, { "docid": "bbf88751e31fd5e49d1ed85425f50750", "score": "0.50685084", "text": "private function setApi(){\n \n $config = \\Drupal::config('e2e_product.settings');\n $baseurl = $config->get('e2e_product.baseurl', '');\n $uuid = $config->get('e2e_product.uuid', '');\n \n $this->api = trim($baseurl, ' /') . '/{action}/' . trim($uuid, ' /');\n }", "title": "" }, { "docid": "79eaeea2407e9c4383b6132cbe97fde6", "score": "0.5067489", "text": "function _horde_listAPIs()\n{\n return $GLOBALS['registry']->listAPIs();\n}", "title": "" }, { "docid": "5f45f0a2d39563eaf7748e4a09f5a288", "score": "0.5064665", "text": "public function getClassName(){return \"BayrellCommon.Utils\";}", "title": "" }, { "docid": "e4fa942b2c45903ae7b2ed77a3cfd8e5", "score": "0.50615174", "text": "public function sayHello()\n {\n echo 'This is sayHello function';\n }", "title": "" }, { "docid": "f9bf4ea841b8ba3840e4ae80e4440cbb", "score": "0.505853", "text": "private function generateApiKey(){\n\t\treturn md5(uniqid(rand(), true));\n\t}", "title": "" }, { "docid": "61e00016e0876ed9570986473ebfa707", "score": "0.5050374", "text": "public static function HelloWorld()\n {\n return 'Hello World!';\n }", "title": "" }, { "docid": "6b8b5fa711ee42d1886f35c4468daabd", "score": "0.5046889", "text": "public function testSystemSkillsIdGet()\n {\n\n }", "title": "" }, { "docid": "426825fa0c921524a36d2d42cbedfda9", "score": "0.504599", "text": "function _gwapi_dir()\n{\n return __DIR__;\n}", "title": "" }, { "docid": "0c2260c1b7c41e16a7fa549edcf16887", "score": "0.5043993", "text": "static public function getInstance();", "title": "" }, { "docid": "c920630478acbdb023444bfb6194bbc8", "score": "0.50427765", "text": "public function customer();", "title": "" }, { "docid": "97154bdd6f49bed05852ddd388b8deda", "score": "0.50351566", "text": "abstract public function getAccessTokenUrl();", "title": "" }, { "docid": "c0f52394b8ad4c0f54410f4c808208a6", "score": "0.50311446", "text": "abstract protected function endpoint();", "title": "" } ]
91c85c7210032fcef3c5d7972e1fc8bd
Generates a URL for sharing a message on Twitter.
[ { "docid": "7addd681e2d8fbd4ed4e83a39aa59c95", "score": "0.6837706", "text": "function tw_share_link($text){\n\treturn htmlspecialchars('https://twitter.com/home?status=' . urlencode(urldecode($text)));\n}", "title": "" } ]
[ { "docid": "927a93e224dd6aff203047bb49c3d993", "score": "0.7547616", "text": "public function twitter_url()\n\t{\n\t\treturn $this->twitter ? 'https://twitter.com/#!/'.$this->twitter : '';\n\t}", "title": "" }, { "docid": "0308a91127bbaae1d5d8457817c69548", "score": "0.74591064", "text": "function getTwitterLink()\n\t{\n\t\treturn EasyBlogHelper::getHelper( 'SocialShare' )->getLink( 'twitter' , $this->id );\n\t}", "title": "" }, { "docid": "d155e8ecfea0bdd9d236be1ec1f1d939", "score": "0.68025845", "text": "public function generate_twitter_site()\n {\n }", "title": "" }, { "docid": "9b7ca4ec2ab97acec365e6f97b88d664", "score": "0.6742848", "text": "function get_share_link() {\n\t\t$url = '//youtu.be/' . $this->video_id;\n\t\t$time = $this->get_param('t');\n\n\t\tif ($this->start_time) {\n\t\t\t$url .= '?t=' . $this->start_time;\n\t\t}\n\n\t\treturn $url;\n\t}", "title": "" }, { "docid": "7ca252f7617443cdf01b1750f3b574f9", "score": "0.6419427", "text": "public function GetShareServiceUrl() {\r\r\n\t\t$queryStringArray = array(\r\r\n\t\t\t\"snippet\" => $this->GetDescription(),\r\r\n\t\t\t\"url\" => $this->GetUrl(),\r\r\n\t\t\t\"title\" => $this->GetTitle(),\r\r\n\t\t\t\"share\" => \"true\"\r\r\n\t\t);\r\r\n\t\t\r\r\n\t\tif(!empty($this->srcUrl) && !empty($this->srcTitle)){\r\r\n\t\t\t$queryStringArray[\"srcUrl\"] = $this->srcUrl;\r\r\n\t\t\t$queryStringArray[\"srcTitle\"] = $this->srcTitle;\r\r\n\t\t}\r\r\n\t\t\r\r\n\t\treturn $this->GetBasicShareServiceUrl() . http_build_query($queryStringArray);\r\r\n\t}", "title": "" }, { "docid": "43caab2d2c2ff3b05436225eaac36a80", "score": "0.6395576", "text": "function linkify_twitter_text( $tweet ){\r\n $url_regex = '/((https?|ftp|gopher|telnet|file|notes|ms-help):((\\/\\/)|(\\\\\\\\))+[\\w\\d:#@%\\/\\;$()~_?\\+-=\\\\\\.&]*)/';\r\n $tweet = preg_replace( $url_regex, '<a href=\"$1\" target=\"_blank\">'. \"$1\" .'</a>', $tweet );\r\n $tweet = preg_replace( array(\r\n '/\\@([a-zA-Z0-9_]+)/', # Twitter Usernames\r\n '/\\#([a-zA-Z0-9_]+)/' # Hash Tags\r\n ), array(\r\n '<a href=\"http://twitter.com/$1\" target=\"_blank\">@$1</a>',\r\n '<a href=\"http://twitter.com/search?q=%23$1\" target=\"_blank\">#$1</a>'\r\n ), $tweet );\r\n \r\n return $tweet;\r\n }", "title": "" }, { "docid": "40e4479b2026ca2e96370d6cd30c7b1a", "score": "0.635998", "text": "function twitterPost($twit,$url=''){\r\n\t$twit = preg_replace(\"/(https?:\\/\\/)(.*?)\\/([\\w\\.\\/&=?\\-,:;#_~%+]*)/\", \"<a href=\\\"\\$0\\\" target=\\\"_blank\\\">\\$0</a>\", $twit); \r\n\t// Convert usernames (@) into links \r\n\t$twit = preg_replace(\"(@([a-zA-Z0-9_]+))\", \"<a href=\\\"https://www.twitter.com/\\$1\\\" target=\\\"_blank\\\">\\$0</a>\", $twit);\r\n\t// Convert hash tags (#) to links \r\n\t$twit = preg_replace('/(^|\\s)#(\\w+)/', '\\1<a href=\"https://www.twitter.com/search?q=\\2\" target=\"_blank\">#\\2</a>', $twit); \r\n\treturn $twit;\r\n}", "title": "" }, { "docid": "93a7b80b99cf936fad6ca47e507cdb70", "score": "0.6254391", "text": "public function __toString()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$url = preg_replace_callback( \"{[^0-9a-z_.!~*'();,/?:@&=+$#-]}i\",\n\t\t\t\tfunction ( $m )\n\t\t\t\t{\n\t\t\t\t\treturn sprintf( '%%%02X', \\ord( $m[0] ) );\n\t\t\t\t},\n\t\t\t\t$this->url) ;\n\n\t\t\t$title = $this->title ?: NULL;\n\t\t\tif ( \\IPS\\Settings::i()->twitter_hashtag !== '')\n\t\t\t{\n\t\t\t\t$title .= ' ' . \\IPS\\Settings::i()->twitter_hashtag;\n\t\t\t}\n\t\t\treturn \\IPS\\Theme::i()->getTemplate( 'sharelinks', 'core' )->twitter( urlencode( $url ), rawurlencode( $title ) );\n\t\t}\n\t\tcatch ( \\Exception $e )\n\t\t{\n\t\t\t\\IPS\\IPS::exceptionHandler( $e );\n\t\t}\n\t\tcatch ( \\Throwable $e )\n\t\t{\n\t\t\t\\IPS\\IPS::exceptionHandler( $e );\n\t\t}\n\t}", "title": "" }, { "docid": "2b51128825e33d409c7d4e38e5ebc077", "score": "0.62408376", "text": "public function render() {\n $data = $this->generateTokenData('twitter_share');\n $text_includes_url = strpos($this->options['text'], '[share:url]') !== FALSE;\n $text = token_replace($this->options['text'], $data);\n\n return array(\n 'title' => $this->title(),\n 'href' => 'http://twitter.com/share',\n 'query' => [\n 'text' => $text,\n 'url' => !$text_includes_url ? $this->generateShareUrl('twitter_share') : '',\n ],\n 'attributes' => array(\n 'title' => t('Share this via Twitter!'),\n 'data-share' => 'twitter',\n 'target' => '_blank',\n ),\n );\n }", "title": "" }, { "docid": "d800555778998e3602f0ca068ff25459", "score": "0.6240712", "text": "public function woo_slg_login_link_twitter() {\n\n\t\tglobal $woo_slg_options;\n\t\t\n\t\t//can show link or not\n\t\t$show_link = woo_slg_can_show_social_link( 'twitter' );\n\t\t\n\t\t//check twitter is enable or not\n\t\tif( $woo_slg_options['woo_slg_enable_twitter'] == \"yes\" && $show_link ) {\n\t\t\n\t\t\t$twlinkimgurl = isset( $woo_slg_options['woo_slg_tw_link_icon_url'] ) && !empty( $woo_slg_options['woo_slg_tw_link_icon_url'] ) \n\t\t\t\t\t\t? $woo_slg_options['woo_slg_tw_link_icon_url'] : esc_url(WOO_SLG_IMG_URL) . '/twitter-link.png';\n\n\t\t\t//Get template arguments\n\t\t\t$template_args\t= array( \n\t\t\t\t\t\t\t\t\t'twlinkimgurl' \t=> $twlinkimgurl,\n\t\t\t\t\t\t\t\t\t'button_type' \t=> !empty( $woo_slg_options['woo_slg_social_btn_type'] ) ? $woo_slg_options['woo_slg_social_btn_type'] : '',\n\t\t\t\t\t\t\t\t\t'button_text' \t=> !empty( $woo_slg_options['woo_slg_tw_link_icon_text'] ) ? $woo_slg_options['woo_slg_tw_link_icon_text'] : '',\n\t\t\t\t\t\t\t\t);\n\n\t\t\t//load twitter link button\n\t\t\twoo_slg_get_template( 'social-link-buttons/twitter_link.php', $template_args );\n\t\t}\n\t}", "title": "" }, { "docid": "8be768e5d38b3211a7573e1a1daee177", "score": "0.6231933", "text": "public function sharebuttons(){\r\n try \r\n {\r\n $twitter_message = $this->fetch('twitter_message');\r\n $encoded_url = urlencode($this->page_url);\r\n\r\n // start building the output\r\n $output = \"<!--Start Share Buttons-->\";\r\n\r\n // open button list\r\n $output .= '<ul class=\"share-buttons\">';\r\n\r\n // Twitter\r\n //\r\n $href = \"https://twitter.com/intent/tweet?\" . http_build_query(array(\r\n 'source' => $encoded_url,\r\n 'text' => $this->page_url . \" \". $this->twitter_default_message . \" via: @\" . $this->twitter,\r\n \r\n ));\r\n \r\n $output .= \"<li><a class=\\\"social-link twitter\\\" href=\\\"{$href}\\\" title=\\\"Share on Twitter\\\" target=\\\"blank\\\">\";\r\n $output .= \"<i class=\\\"fa fa-twitter fa-2x\\\"></i>\";\r\n $output .= \"</a></li>\";\r\n\r\n\r\n // Google+\r\n //\r\n $href = \"https://plus.google.com/share?\" . http_build_query(array(\r\n 'url' => $encoded_url\r\n ));\r\n \r\n $output .= \"<li><a class=\\\"social-link google\\\" href=\\\"{$href}\\\" title=\\\"Share on Google\\\" target=\\\"blank\\\">\";\r\n $output .= \"<i class=\\\"fa fa-google-plus fa-2x\\\"></i>\";\r\n $output .= \"</a></li>\";\r\n \r\n\r\n // Facebook\r\n //\r\n $href = \"https://www.facebook.com/sharer/sharer.php?\" . http_build_query(array(\r\n 'u' => $encoded_url,\r\n 't' => ''\r\n ));\r\n \r\n $output .= \"<li><a class=\\\"social-link facebook\\\" href=\\\"{$href}\\\" title=\\\"Share on Facebook\\\" target=\\\"blank\\\">\";\r\n $output .= \"<i class=\\\"fa fa-facebook fa-2x\\\"></i>\";\r\n $output .= \"</a></li>\";\r\n\r\n\r\n // Pinterest\r\n //\r\n $href = \"http://pinterest.com/pin/create/button?\" . http_build_query(array(\r\n 'url' => $encoded_url,\r\n 'description' => $this->description,\r\n 'media' => $this->image_url\r\n ));\r\n \r\n $output .= \"<li><a class=\\\"social-link pinterest\\\" href=\\\"{$href}\\\" title=\\\"Share on Pinterest\\\" target=\\\"blank\\\" >\";\r\n $output .= \"<i class=\\\"fa fa-pinterest fa-2x\\\"></i>\";\r\n $output .= \"</a></li>\";\r\n\r\n \r\n // (As soon as Font Awesome has a Pocket icon, you can bet this is uncommented)\r\n // Pocket\r\n //\r\n // $href = \"https://getpocket.com/save?\" . http_build_query(array(\r\n // 'url' => $encoded_url,\r\n // 'title' => $this->page_title\r\n // ));\r\n //\r\n // $output .= \"<li><a class=\\\"social-link pocket\\\" href=\\\"{$href}\\\" title=\\\"Save to Pocket\\\" target=\\\"blank\\\" >\";\r\n // $output .= \"<i class=\\\"fa fa-pocket fa-2x\\\"></i>\";\r\n // $output .= \"</a></li>\";\r\n\r\n // close button list\r\n $output .= \"</ul>\";\r\n \r\n return $output;\r\n } \r\n catch (Exception $e) \r\n {\r\n return \"<!-- There was an error in the opengraph plugin! - \" . $e->getMessage() . \" -->\";\r\n }\r\n \r\n }", "title": "" }, { "docid": "4aa56567c35381ceefcde605cc4c6ef8", "score": "0.62234825", "text": "function getTwitterProfileLink($s_tweet_id = '')\n {\n try\n {\n \t\t\n\t\t\t $ci = get_instance();\n\t\t\t $ci->load->model('users_model');\n\t\t\t $info=$ci->users_model->getUserInfo_by_tweet_id($s_tweet_id);\n\t\t\t $user_type = $info['i_user_type'];\n\t\t\t $user_name = $info['s_first_name'].' '.$info['s_last_name'];\n\t\t $count = strlen($s_tweet_id);\n\t\t\t \n\t\t\t $url = base_url().\"user-twitter-profile/\".$info['id'].'/'.substr($s_tweet_id,1,$count).\".html\";\n\t\t return $url;\n\t\t\t\n\t\t\t\n\t\t\t\n } \n catch(Exception $err_obj)\n {\n show_error($err_obj->getMessage());\n } \n \n }", "title": "" }, { "docid": "6936bd1c859094eae9a459476908b8f4", "score": "0.61580956", "text": "public function generate_twitter_creator()\n {\n }", "title": "" }, { "docid": "6936bd1c859094eae9a459476908b8f4", "score": "0.6157844", "text": "public function generate_twitter_creator()\n {\n }", "title": "" }, { "docid": "71d4766a6e72796bbc008596ce19fc0b", "score": "0.61120075", "text": "public function generate_twitter_card()\n {\n }", "title": "" }, { "docid": "71d4766a6e72796bbc008596ce19fc0b", "score": "0.61116356", "text": "public function generate_twitter_card()\n {\n }", "title": "" }, { "docid": "4156bdec3f763a58abd6b6c963fbc310", "score": "0.60626644", "text": "public function generate_twitter_title()\n {\n }", "title": "" }, { "docid": "4156bdec3f763a58abd6b6c963fbc310", "score": "0.60626644", "text": "public function generate_twitter_title()\n {\n }", "title": "" }, { "docid": "c518ddbb722ee6b7acb0cb1633795ade", "score": "0.60484946", "text": "public function twitter_url_callback()\n {\n printf('<input type=\"text\" class=\"regular-text\" id=\"twitter_url\" name=\"gcoptions[twitter_url]\" value=\"%s\" />', isset($this->options['twitter_url']) ? esc_attr($this->options['twitter_url']) : '');\n }", "title": "" }, { "docid": "6c5bdfdcc59de1002e1a5fab8fb3b974", "score": "0.60298073", "text": "public function generate_twitter_image()\n {\n }", "title": "" }, { "docid": "6c5bdfdcc59de1002e1a5fab8fb3b974", "score": "0.60298073", "text": "public function generate_twitter_image()\n {\n }", "title": "" }, { "docid": "0923d4711d1abd6b6b3685a493237f30", "score": "0.6007243", "text": "function the_venue_twitter( $link ) {\n if( $link ) {\n echo sprintf( '<a href=\"%s\" class=\"share share-tw\" data-network=\"\"><i class=\"network icon icon-tw\"></i></a>', $link );\n }\n}", "title": "" }, { "docid": "bd47567343443fc05fe141f5963ebccc", "score": "0.59725696", "text": "function the_instructor_twitter( $link ) {\n if( $link )\n echo sprintf( '<li><a href=\"%s\" target=\"_blank\" class=\"share share-tw\" data-network=\"\"><i class=\"network icon icon-tw\"></i></a></li>', $link );\n}", "title": "" }, { "docid": "3de64afe033704842573338f2405ccf1", "score": "0.5920585", "text": "function linkify_tweet($tweet) {\n $tweet = preg_replace(\"/([\\w]+\\:\\/\\/[\\w-?&;#~=\\.\\/\\@]+[\\w\\/])/\", \"<a target=\\\"_blank\\\" href=\\\"$1\\\">$1</a>\", $tweet);\n\n //Convert hashtags to twitter searches in <a> links\n $tweet = preg_replace(\"/#([A-Za-z0-9\\/\\.]*)/\", \"<a target=\\\"_new\\\" href=\\\"http://twitter.com/search?q=$1\\\">#$1</a>\", $tweet);\n\n //Convert attags to twitter profiles in <a> links\n $tweet = preg_replace(\"/@([A-Za-z0-9\\/\\.]*)/\", \"<a href=\\\"http://www.twitter.com/$1\\\">@$1</a>\", $tweet);\n\n return $tweet;\n}", "title": "" }, { "docid": "dd76b92bd26e077006126b3c9820dba6", "score": "0.5915288", "text": "public function share($share_link = '', $title = '' ,$desc = '' )\r\n\t{?>\r\n<!-- Facebook Share -->\r\n\r\n<a title='FShare' href=\"http://www.facebook.com/sharer.php?u=<?php echo $share_link;?>\" target=\"_blank\"> <img src=\"<?echo $this->docroot; ?>public/themes/default/images/v_facebook.jpg\" border=\"0\" width=\"23\" height=\"23\" /> </a>\r\n<!-- Twitter Share -->\r\n<a href=\"http://twitter.com/home?status=<?php echo $share_link; ?>\" title=\"Twitter Share\" target=\"_blank\"> <img src=\"<?echo $this->docroot; ?>public/themes/default/images/v_twitter.jpg\" title=\"Twitter Share\" border=\"0\" width=\"23\" height=\"23\" /> </a>\r\n<!-- Mail Share -->\r\n<?php $message = $desc.\"<a href='.$share_link.'>\".$title.\"</a>\" ?>\r\n<a href=\"<?echo $this->docroot; ?>inbox/compose?subject=<?php echo urlencode($title); ?>&message=<?php echo urlencode($message); ?>\" title=\"Mail share\"> <img src=\"<?echo $this->docroot; ?>public/themes/default/images/v_mail.jpg\" title=\"Email\" border=\"0\" width=\"26\" height=\"23\" /> </a>\r\n<?php }", "title": "" }, { "docid": "cc198bb1563a479708e089fe2f5817c8", "score": "0.58926517", "text": "function twitter_sc($atts){ \n return social_link_sc('Twitter', 'http://twitter.com/', $atts, 'images/icons/social/white/twitter_alt.png' );\n}", "title": "" }, { "docid": "514b324156f9fbda950a3b73751fe232", "score": "0.5880334", "text": "public function get_profile_url() {\n\t\treturn self::TWITTER_URL . '/' . $this->screen_name;\n\t}", "title": "" }, { "docid": "7b2511dcd1f7a74785ad21ab4044e68e", "score": "0.5869746", "text": "public static function makeSendTweet( $tweet_text, $finalurl ) {\n\t\tglobal $wgTweetANewTwitter, $wgLang;\n\t\t\n\t\t# Calculate length of tweet factoring in longURL\n\t\tif ( strlen( $finalurl ) > 20 ) {\n\t\t\t$tweet_text_count = ( strlen( $finalurl ) - 20 ) + 140;\n\t\t} else {\n\t\t\t$tweet_text_count = 140;\n\t\t}\n\n\t\t# Check if length of tweet is beyond 140 characters and shorten if necessary\n\t\tif ( strlen( $tweet_text ) > $tweet_text_count ) {\n\t\t\t$tweet_text = $wgLang->truncate( $tweet_text, $tweet_text_count );\n\t\t}\n\n\t\t# Make connection to Twitter\n\t\t$tmhOAuth = new tmhOAuth( array(\n\t\t\t'consumer_key' => $wgTweetANewTwitter['ConsumerKey'],\n\t\t\t'consumer_secret' => $wgTweetANewTwitter['ConsumerSecret'],\n\t\t\t'user_token' => $wgTweetANewTwitter['AccessToken'],\n\t\t\t'user_secret' => $wgTweetANewTwitter['AccessTokenSecret'],\n\t\t) );\n\n\t\t# Make tweet message\n\t\t$tmhOAuth->request( 'POST',\n\t\t\t$tmhOAuth->url( '1.1/statuses/update' ),\n\t\t\tarray( 'status' => $tweet_text )\n\t\t);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f6e0690d5b24575b66c69fccf8c21e2a", "score": "0.58647245", "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('~#(\\S+)~i', \"<a target=\\\"_blank\\\" 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": "b005bb62e6657453479f89472e92c838", "score": "0.5850949", "text": "function qa_template_share($id){\n\t$url \t= urlencode(get_permalink( $id ));\n\t$title = get_the_title( $id );\n\treturn '<ul class=\"socials-share\"><li><a href=\"https://www.facebook.com/sharer/sharer.php?u='.$url.'&t='.$title.'\" target=\"_blank\" class=\"btn-fb\"><i class=\"fa fa-facebook\"></i></a></li><li><a target=\"_blank\" href=\"http://twitter.com/share?text='.$title.'&url='.$url.'\" class=\"btn-tw\"><i class=\"fa fa-twitter\"></i></a></li><li class=\"ggplus\"><a target=\"_blank\" href=\"https://plus.google.com/share?url='.$url.'\" class=\"btn-gg\"><i class=\"fa fa-google-plus\"></i></a></li></ul>';\n}", "title": "" }, { "docid": "c41e94870e587fe01e85d41b4b944a8d", "score": "0.5833718", "text": "public function twitter($image = null) {\n if (! array_key_exists('twitter_display', $this->values)) {\n return '';\n }\n\n if (! $this->values['twitter_display']) {\n return '';\n }\n\n $output = \"<meta name=\\\"twitter:card\\\" content=\\\"summary_large_image\\\">\";\n $output .= \"<meta name=\\\"twitter:url\\\" content=\\\"{$this->canonical()}\\\">\";\n $output .= \"<meta name=\\\"twitter:title\\\" content=\\\"{$this->social_field('twitter_title', $this->context->raw('title'))}\\\">\";\n $output .= \"<meta name=\\\"twitter:description\\\" content=\\\"{$this->social_field('twitter_description', $this->description())}\\\">\";\n\n // image\n $output .= \"<meta name=\\\"og:twitter\\\" content=\\\"{$this->social_image($image)}\\\">\";\n\n return $output;\n }", "title": "" }, { "docid": "b07a570c797dd302c2f2340e42fabfda", "score": "0.57864785", "text": "public function redirectToProviderTwitterConnect() {\n return Socialite::with('twitter')->redirect();\n }", "title": "" }, { "docid": "3b3ce4265b5c3c18863f2521325c536d", "score": "0.5780678", "text": "function childtheme_create_tweet_button($args){\n $default = array(\n 'multiple' => false, //if using more than one tweet buttons on same page\n //not working yet\n 'url' => 'http://deadlinemedia.ca', //URL of the page to share\n 'text' => 'An awesome post from ', //The text of the tweet\n 'via' => 'deadlinemediaca', //from who?\n 'related' => array('charlesolaes',\n 'SpencercHart'), //an array of usernames\n 'count' => 'vertical', //count box position\n 'lang' => 'en', //language\n 'counturl' => '', //The URL to which your shared URL resolves to\n 'type' => 'iframe' //using javascript or iframe\n );\n \n //merge em'\n $new_args = array_merge($default, $args);\n \n $new_args = array_merge($new_args, array( 'related' => implode(':',$new_args['related']) ));\n \n extract($new_args, EXTR_PREFIX_ALL, 'tw');\n \n $url_query = '';\n \n //set the width and height of the twitter button\n switch($tw_count){\n case 'none':\n $width = '55';\n $height = '20';\n break;\n case 'vertical' :\n $width = '55';\n $height = '62';\n break;\n case 'horizontal' :\n $width = '110';\n $height = '20';\n break;\n }\n \n //generating html code for twitter button\n if($tw_type != 'iframe'){\n $twit_btn = '<a href=\"http://twitter.com/share\" class=\"twitter-share-button\"';\n \n //@todo: fix multiple\n if($tw_multiple){\n $twit_btn .= 'rel=\"me\" rel=\"canonical\"';\n }else{\n $twit_btn .= 'data-via=\"'.$tw_via.'\"';\n $twit_btn .= 'data-url=\"'.$tw_url.'\"';\n }\n \n $twit_btn .= '\n data-text=\"'.$tw_text.'\"\n data-related=\"'.$tw_related.'\"\n data-count=\"'.$tw_count.'\"\n data-lang=\"'.$tw_lang.'\"\n data-counturl=\"'.$tw_counturl.'\"\n ';\n \n $twit_btn .= '>Tweet</a>';\n add_action('thematic_after','childtheme_tweet_scripts');\n }else{\n \n foreach($new_args as $key => $value){\n $url_query .= $key.'='.$value.'&amp;';\n }\n \n $iframe_url = 'http://platform.twitter.com/widgets/tweet_button.html?'.$url_query;\n $twit_btn = '<iframe allowtransparency=\"true\" frameborder=\"0\" scrolling=\"no\"\n src=\"'.$iframe_url.'\"\n style=\"width:'.$width.'px; height:'.$height.'px;\"></iframe>';\n }\n \n $scirpt_url = 'http://platform.twitter.com/widgets.js';\n \n \n return $twit_btn;\n \n}", "title": "" }, { "docid": "2a25021613d44839a7bb8e77c0c0ca4d", "score": "0.5767311", "text": "public function generate_twitter_description()\n {\n }", "title": "" }, { "docid": "2a25021613d44839a7bb8e77c0c0ca4d", "score": "0.5767311", "text": "public function generate_twitter_description()\n {\n }", "title": "" }, { "docid": "2a25021613d44839a7bb8e77c0c0ca4d", "score": "0.5767311", "text": "public function generate_twitter_description()\n {\n }", "title": "" }, { "docid": "acad803921f91a8e638da96f86c0e246", "score": "0.5765328", "text": "public abstract function GetShareServiceUrl();", "title": "" }, { "docid": "11041958b23998ed6221542613016fa8", "score": "0.57387364", "text": "function _social_widget_twitter_markup($url, $type, $title = NULL, $lang = 'und') {\n $account_via = variable_get_value('easy_social_twitter_account_via');\n $account_related = variable_get_value('easy_social_twitter_account_related');\n $account_related_description = variable_get_value('easy_social_twitter_account_description');\n $type = ($type == EASY_SOCIAL_WIDGET_HORIZONTAL) ? 'horizontal' : 'vertical';\n // Override the data-count attribute to hide the count, if selected.\n if (!($type_show = variable_get_value('easy_social_twitter_count_show'))) {\n $type = 'none';\n }\n\n $data = array(\n // Correct for different language identification strings.\n 'lang' => _easy_social_twitter_langcodes($lang),\n 'type' => $type,\n 'url' => $url,\n 'via' => $account_via,\n 'related' => $account_related . ':' . $account_related_description,\n 'text' => $title,\n );\n $path = 'http://twitter.com/share';\n return _social_socialitejs_widget_markup('twitter', 'share', $path, $data);\n}", "title": "" }, { "docid": "754484130925832af701daf84183ab95", "score": "0.5731793", "text": "function display_social_sharing_buttons() {\n\n $content = \"\";\n\n // Get current page URL\n $crunchifyURL = urlencode(get_permalink());\n $crunchifyTitle = htmlspecialchars(urlencode(html_entity_decode(get_the_title(), ENT_COMPAT, 'UTF-8')), ENT_COMPAT, 'UTF-8');\n $rawTitle = rawurlencode(html_entity_decode(get_the_title()));\n\n ob_start();\n the_advanced_excerpt('length=12&length_type=words&no_custom=0&finish=sentence&no_shortcode=1&ellipsis=&add_link=0&exclude_tags=p,div,img,b,figure,figcaption,strong,em,i,ul,li,a,ol,h1,h2,h3,h4');\n $excerpt = ob_get_contents();\n ob_end_clean();\n\n $crunchifyDesc = rawurlencode('A story from Latitude 38:') . '%0A%0A' . rawurlencode(html_entity_decode(strip_tags($excerpt)));\n\n // $crunchifyTitle = str_replace( ' ', '%20', get_the_title());\n\n // Get Post Thumbnail for pinterest\n $crunchifyThumbnail = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );\n\n // Construct sharing URL without using any script\n $twitterURL = 'https://twitter.com/intent/tweet?text='.$crunchifyTitle.'&amp;url='.$crunchifyURL;\n $facebookURL = 'https://www.facebook.com/sharer/sharer.php?u='.$crunchifyURL;\n $emailURL = 'mailto:?subject=From%20Latitude%2038: ' . $rawTitle . '&amp;body=' . $crunchifyDesc . '%0A%0A' . $crunchifyURL . rawurlencode('?utm_source=l38_webshare&utm_medium=email');\n\n\n // Add sharing button at the end of page/page content\n $content .= '<div class=\"social-buttons\">';\n $content .= ' <span class=\"intro\">SHARE ON</span>';\n $content .= ' <a class=\"social-link social-twitter\" href=\"'. $twitterURL .'\" target=\"_blank\" data-gacategory=\"Share\" data-gatitle=\"Twitter\" data-galabel=\"' . get_page_uri() . '\" ><i class=\"fa fa-twitter\"></i><span class=\"social-text\">Tweet</a>';\n $content .= ' <a class=\"social-link social-facebook\" href=\"'.$facebookURL.'\" target=\"_blank\" data-gacategory=\"Share\" data-gatitle=\"Facebook\" data-galabel=\"' . get_page_uri() . '\" ><i class=\"fa fa-facebook\"></i><span class=\"social-text\">Share</a>';\n $content .= ' <a class=\"social-link social-email\" href=\"' . $emailURL . '\" data-gacategory=\"Share\" data-gatitle=\"Email\" data-galabel=\"' . get_page_uri() . '\" ><i class=\"fa fa-envelope\"></i><span class=\"social-text\">Email</a>';\n $content .= '</div>';\n\n echo $content;\n\n}", "title": "" }, { "docid": "cda8b09971ef49017b5dd2d6ae1b14af", "score": "0.57314324", "text": "public function fetch_twitter()\n {\n }", "title": "" }, { "docid": "28e7e01871977d03dab8fe3924029ea7", "score": "0.5723579", "text": "public static function Tweet($message, $url = false) {\n\t\tif(+$_SERVER['SERVER_PORT'] > 8000)\n\t\t\treturn false;\n\t\t// fix up the message and add / shorten the url if present\n\t\tif($url) {\n\t\t\tif(substr($url, 0, 13) != 'https://bit.ly')\n\t\t\t\t$url = self::Bitly($url);\n\t\t\tif(mb_strlen($message) + strlen($url) + 1 > self::TWEET_LENGTH)\n\t\t\t\t$message = mb_substr($message, 0, self::TWEET_LENGTH - strlen($url) - 2) . '… ' . $url;\n\t\t\telse\n\t\t\t\t$message .= ' ' . $url;\n\t\t} elseif(mb_strlen($message) > self::TWEET_LENGTH)\n\t\t\t$message = mb_substr($message, 0, self::TWEET_LENGTH);\n\n\t\t// collect and sign oauth data\n\t\t$oauth = ['oauth_nonce' => md5(microtime() . mt_rand()),\n\t\t\t\t'oauth_timestamp' => time(),\n\t\t\t\t'oauth_version' => '1.0',\n\t\t\t\t'oauth_consumer_key' => t7keysTweet::CONSUMER_KEY,\n\t\t\t\t'oauth_signature_method' => 'HMAC-SHA1',\n\t\t\t\t'oauth_token' => t7keysTweet::OAUTH_TOKEN];\n\t\tksort($oauth);\n\t\t$sig = 'POST&' . rawurlencode(self::TWEET_URL) . '&' . rawurlencode(http_build_query($oauth, null, '&', PHP_QUERY_RFC3986));\n\t\t$oauth['oauth_signature'] = rawurlencode(base64_encode(hash_hmac('sha1', $sig, t7keysTweet::CONSUMER_SECRET . '&' . t7keysTweet::OAUTH_TOKEN_SECRET, true)));\n\t\tksort($oauth);\n\n\t\t// quote all oauth variables for the authorization header\n\t\t$header = array();\n\t\tforeach($oauth as $var => $val)\n\t\t\t$header[] = $var . '=\"' . $val . '\"';\n\n\t\t// send the request\n\t\t$c = curl_init();\n\t\tcurl_setopt($c, CURLOPT_URL, self::TWEET_URL);\n\t\tcurl_setopt($c, CURLOPT_POST, true);\n\t\tcurl_setopt($c, CURLOPT_RETURNTRANSFER, true);\n\t\tcurl_setopt($c, CURLOPT_USERAGENT, 't7send');\n\t\tcurl_setopt($c, CURLOPT_CONNECTTIMEOUT, 30);\n\t\tcurl_setopt($c, CURLOPT_TIMEOUT, 30);\n\t\tcurl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);\n\t\tcurl_setopt($c, CURLOPT_HEADER, false);\n\t\tcurl_setopt($c, CURLOPT_HTTPHEADER, ['Authorization: OAuth ' . implode(', ', $header)]);\n\t\tcurl_setopt($c, CURLOPT_POSTFIELDS, ['status' => $message]);\n\t\t$response = new stdClass();\n\t\t$response->text = curl_exec($c);\n\t\t$response->code = curl_getinfo($c, CURLINFO_HTTP_CODE);\n\t\tcurl_close($c);\n\t\treturn $response;\n\t}", "title": "" }, { "docid": "ea187add52b7a2faeb314248e260a038", "score": "0.57157123", "text": "public function woo_slg_login_twitter() {\n\n\t\tglobal $woo_slg_options;\n\t\t\n\t\t//check twitter is enable or not\n\t\tif( $woo_slg_options['woo_slg_enable_twitter'] == \"yes\" ) {\n\t\t\n\t\t\t$twimgurl = isset( $woo_slg_options['woo_slg_tw_icon_url'] ) && !empty( $woo_slg_options['woo_slg_tw_icon_url'] ) \n\t\t\t\t\t\t? $woo_slg_options['woo_slg_tw_icon_url'] : esc_url(WOO_SLG_IMG_URL) . '/twitter.png';\n\n\t\t\t//Get template arguments\n\t\t\t$template_args\t= array( \n\t\t\t\t\t\t\t\t\t'twimgurl' \t\t=> $twimgurl,\n\t\t\t\t\t\t\t\t\t'button_type' \t=> !empty( $woo_slg_options['woo_slg_social_btn_type'] ) ? $woo_slg_options['woo_slg_social_btn_type'] : '',\n\t\t\t\t\t\t\t\t\t'button_text' \t=> !empty( $woo_slg_options['woo_slg_tw_icon_text'] ) ? $woo_slg_options['woo_slg_tw_icon_text'] : '',\n\t\t\t\t\t\t\t\t);\n\n\t\t\t//load twitter button\n\t\t\twoo_slg_get_template( 'social-buttons/twitter.php', $template_args );\n\t\n\t\t}\n\t}", "title": "" }, { "docid": "191eda7b3295631e920bf479b0ed8b1c", "score": "0.5676587", "text": "function social_url($channel, $bind = false)\n{\n if ($bind) {\n $route = 'SOCIAL_BIND';\n } else {\n $route = 'SOCIAL';\n }\n return url($route, ['channel' => $channel]);\n}", "title": "" }, { "docid": "0bab9f17abffb7d20087138f5d63bfac", "score": "0.5647937", "text": "public function getTwitterButton($parameters = array(), $action = 'share')\n {\n $parameters = $parameters + array(\n 'url' => array_key_exists('url', $parameters) ? $parameters['url'] : null,\n 'locale' => 'en',\n 'message' => 'I want to share that page with you',\n 'text' => 'Tweet',\n 'via' => $this->container->getParameter('azine_social_bar_twitter_username'),\n 'tag' => array_key_exists('tag', $parameters) ? $parameters['tag'] : $this->container->getParameter('azine_social_bar_twitter_username'),\n );\n if ('share' == $action) {\n $parameters['actionClass'] = 'twitter-share-button';\n $parameters['action'] = 'share';\n } elseif ('follow' == $action) {\n $parameters['actionClass'] = 'twitter-follow-button';\n $parameters['action'] = $this->container->getParameter('azine_social_bar_twitter_username');\n } else {\n throw new \\Exception(\"Unknown social action. Only 'share' and 'follow' are known at the moment.\");\n }\n\n return $this->container->get('azine.socialBarHelper')->twitterButton($parameters);\n }", "title": "" }, { "docid": "183c6791974a126f6df75291abaa4a4b", "score": "0.5632084", "text": "private function tweetConvert($tweet_string)\n {\n $tweet_string = preg_replace(\"/((http(s?):\\/\\/)|(www\\.))([\\w\\.]+)([a-zA-Z0-9?&%.;:\\/=+_-]+)/i\", \"<a href='http$3://$4$5$6' target='_blank'>$2$4$5$6</a>\", $tweet_string);\n $tweet_string = preg_replace(\"/(?<=\\A|[^A-Za-z0-9_])@([A-Za-z0-9_]+)(?=\\Z|[^A-Za-z0-9_])/\", \"<a href='http://twitter.com/$1' target='_blank'>$0</a>\", $tweet_string);\n $tweet_string = preg_replace(\"/(?<=\\A|[^A-Za-z0-9_])#([A-Za-z0-9_]+)(?=\\Z|[^A-Za-z0-9_])/\", \"<a href='http://twitter.com/search?q=%23$1' target='_blank'>$0</a>\", $tweet_string);\n return $tweet_string;\n }", "title": "" }, { "docid": "f747792f3954296b7825a5e1a16818f9", "score": "0.5622183", "text": "function share_button(){\n // $link = get_the_permalink();\n $link = home_url().'?p='.get_the_ID();\n $title = get_the_title();\n\n if (has_excerpt()) \n $excerpt = get_the_excerpt(); \n else \n $excerpt = $title;\n\n if (strlen($title) > 111)\n $text = substr($title,0,111). '...';\n else\n $text = $title;\n\n $social = [\n 'facebook' => 'https://www.facebook.com/sharer/sharer.php?u='. $link,\n 'twitter' => 'https://twitter.com/intent/tweet?text='. $text .' - '. $link,\n 'linkedin' => 'https://www.linkedin.com/shareArticle?mini=true&url='. $link .'&title='. $title .'&summary='. $excerpt . '&source=https://firma.de',\n 'envelope' => 'mailto:?subject='. $title .'&body='. $excerpt .' - '. $link\n ];\n\n return $social;\n}", "title": "" }, { "docid": "1e6660c189ed41f2f0a6bcd862e71c97", "score": "0.56057966", "text": "function print_sharing_links ($url, $text) {\r\n global $head_content, $urlServer;\r\n \r\n $head_content .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"'.$urlServer.'modules/sharing/style.css\">';\r\n \r\n $out = \"<span class='sharingcontainer'>\";\r\n $out .= \"<ul class='sharinglist'>\";\r\n\r\n //facebook\r\n $sharer = \"https://www.facebook.com/sharer/sharer.php?u=\".rawurlencode($url);\r\n $out .= \"<li><a href='\".$sharer.\"' target='_blank'><i class='fa fa-facebook-square fa-2x'></i></a></li>\";\r\n //twitter\r\n $sharer = \"https://twitter.com/intent/tweet?url=\".rawurlencode($url).\"&text=\".rawurlencode($text);\r\n $out .= \"<li><a href='\".$sharer.\"' target='_blank'><i class='fa fa-twitter-square fa-2x'></i></a></li>\";\r\n //linkedin\r\n $sharer = \"http://www.linkedin.com/shareArticle?mini=true&url=\".rawurlencode($url).\"&title=\".rawurlencode($text);\r\n $out .= \"<li><a href='\".$sharer.\"' target='_blank'><i class='fa fa-linkedin-square fa-2x'></i></a></li>\";\r\n //email\r\n $sharer = \"mailto:?subject=\".rawurlencode($text).\"&body=\".rawurlencode($url);\r\n $out .= \"<li><a href='\".$sharer.\"' target='_blank'><i class='fa fa-envelope-square fa-2x'></i></a></li>\";\r\n \r\n $out .= \"</ul>\";\r\n $out .= \"</span>\";\r\n\r\n return $out;\r\n}", "title": "" }, { "docid": "bc8b163475610c8bf14d238658f08d37", "score": "0.55979663", "text": "public function twitter(int $id)\n {\n $record = $this->repository->find($id, ['previewImage', 'images']);\n $backLine = \"\\n\\n\";\n $html = $record->name . $backLine;\n $html .= str_limit($record->preview_text, 150) . $backLine;\n $html .= __('Available now on our website. Follow the link') . $backLine;\n $html .= url('/');\n\n try {\n SendTo::Twitter($html, [\n public_path('storage/uploads/public/'.$record->previewImage->disk_name)\n ]);\n\n $response = [\n 'status' => 'success',\n 'message' => __('Record successfuly share on your Twitter account'),\n 'title' => __('Twitter Post')\n ];\n\n return response()->json($response);\n } catch (\\Exception $e) {\n $response = [\n 'status' => 'error',\n 'message' => $e->getMessage(),\n 'title' => __('Twitter Post Error')\n ];\n\n return response()->json($response);\n }\n }", "title": "" }, { "docid": "cd164c30794b009b6a2832bfcdcc3b93", "score": "0.5582969", "text": "public function generate_url() {}", "title": "" }, { "docid": "f97dc28221f235c5b274f54be42eb348", "score": "0.5579459", "text": "public static function publish( $content, $url=null )\n\t{\n\t\tif ( static::canAutoshare() and $method = \\IPS\\Login\\Handler::findMethod( 'IPS\\Login\\Handler\\OAuth1\\Twitter' ) )\n\t\t{\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif ( !$method->postToTwitter( \\IPS\\Member::loggedIn(), $content, $url ) )\n\t\t\t\t{\n\t\t\t\t\tthrow new \\Exception;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch( \\Exception $e )\n\t\t\t{\n\t\t\t\t\\IPS\\Log::log( \\IPS\\Member::loggedIn()->member_id . ': '. $e->getMessage(), 'twitter' );\n\t\t\t\tthrow new \\InvalidArgumentException( \\IPS\\Member::loggedIn()->language()->addToStack('twitter_publish_exception') );\n\t\t\t}\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new \\InvalidArgumentException( \\IPS\\Member::loggedIn()->language()->addToStack('twitter_publish_no_user') );\n\t\t}\n\t}", "title": "" }, { "docid": "09b2613f9c625ea16436a5247ea90fba", "score": "0.5554984", "text": "public function userLink( $identifier, $username )\n\t{\n\t\treturn \\IPS\\Http\\Url::external( \"https://twitter.com/\" )->setPath( $username );\n\t}", "title": "" }, { "docid": "b6a61603300854cc839a73b6031c3b52", "score": "0.5536417", "text": "function getFeedUrl()\r\n\t{\r\n\t\treturn 'http://www.dailymotion.com/video/'.$this->getId();\r\n\t}", "title": "" }, { "docid": "125d31201765b81a636126ff07daa652", "score": "0.5520348", "text": "public function redirectProvider()\n {\n return Socialite::driver('twitter')->redirect();\n }", "title": "" }, { "docid": "22becd12fca059ea0326d5510f67920b", "score": "0.54816836", "text": "function wpgrade_twitter_card()\r\n{\r\n global $wpGrade_Options;\r\n if (is_singular())\r\n {\r\n echo '<!-- twitter card tags -->' . \"\\n\";\r\n global $post;\r\n echo '<meta name=\"twitter:card\" content=\"summary\">'. \"\\n\";\r\n\r\n global $wp;\r\n $current_url = add_query_arg( $wp->query_string, '', home_url( $wp->request ) );;\r\n echo '<meta name=\"twitter:url\" content=\"'. $current_url .'\" >' . \"\\n\";\r\n\t\tif ( $wpGrade_Options->get( 'twitter_card_site' ) ) {\r\n echo '<meta name=\"twitter:site\" content=\"@' . $wpGrade_Options->get( 'twitter_card_site') . '\"/>' . \"\\n\";\r\n\t\t}\r\n if ( get_the_author_meta('user_tw') ) {\r\n echo '<meta name=\"twitter:creator\" content=\"@' . get_the_author_meta('user_tw') . '\"/>' . \"\\n\";\r\n }\r\n echo '<meta name=\"twitter:domain\" content=\"'. $_SERVER['HTTP_HOST'] .'\">' . \"\\n\";\r\n echo '<meta name=\"twitter:title\" content=\"'. get_the_title() .'\">' . \"\\n\";\r\n echo '<meta name=\"twitter:description\" content=\"' .strip_tags( get_the_excerpt() ).'\">' . \"\\n\";\r\n echo '<meta name=\"twitter:image:src\" content=\"'. wpgrade_get_socialimage() .'\">' . \"\\n\";\r\n echo '<!-- end twitter card tags -->' . \"\\n\";\r\n }\r\n}", "title": "" }, { "docid": "e073e315c30ad1adb0b7f4593d8fb805", "score": "0.54662514", "text": "function shareit( $longurl, $shorturl) {\n\tglobal $shorturl;\n\tglobal $url;\n\t\n\t?> <link href='http://fonts.googleapis.com/css?family=Poller+One' rel='stylesheet' type='text/css'>\n\t<span style = \"align:left;\">Boring URL: <span class = \"urlfont\"> <?php echo $url; ?></span></br>\n\tEnhanced URL: <a class=\"urlfont\" href=\" <?php echo $shorturl; ?> \"><?php echo $shorturl; ?> </a></span><?php\n\treturn \"false\";\n\t\n}", "title": "" }, { "docid": "e2aa9f1a0e39530983342cd34726b7b6", "score": "0.5449221", "text": "public function GetSocialMediaSiteLinks_WithShareLinks($args)\n\t\t{\n\t\t\t$url = urlencode($args['url']);\n\t\t\t$title = urlencode($args['title']);\n\t\t\t$image = urlencode($args['image']);\n\t\t\t$desc = urlencode($args['desc']);\n\t\t\t$app_id = urlencode($args['appid']);\n\t\t\t$redirect_url = urlencode($args['redirecturl']);\n\t\t\t$via = urlencode($args['via']);\n\t\t\t$hash_tags = urlencode($args['hashtags']);\n\t\t\t$provider = urlencode($args['provider']);\n\t\t\t$language = urlencode($args['language']);\n\t\t\t$user_id = urlencode($args['userid']);\n\t\t\t$category = urlencode($args['category']);\n\t\t\t$phone_number = urlencode($args['phonenumber']);\n\t\t\t$email_address = urlencode($args['emailaddress']);\n\t\t\t$cc_email_address = urlencode($args['ccemailaddress']);\n\t\t\t$bcc_email_address = urlencode($args['bccemailaddress']);\n\t\t\t\n\t\t\t$text = $title;\n\t\t\t\n\t\t\tif($desc) {\n\t\t\t\t$text .= '%20%3A%20';\t# This is just this, \" : \"\n\t\t\t\t$text .= $desc;\n\t\t\t}\n\t\t\t\n\t\t\t\t// conditional check before arg appending\n\t\t\t\n\t\t\treturn [\n\t\t\t\t'add.this'=>'http://www.addthis.com/bookmark.php?url=' . $url,\n\t\t\t\t'blogger'=>'https://www.blogger.com/blog-this.g?u=' . $url . '&n=' . $title . '&t=' . $desc,\n\t\t\t\t'buffer'=>'https://buffer.com/add?text=' . $text . '&url=' . $url,\n\t\t\t\t'diaspora'=>'https://share.diasporafoundation.org/?title=' . $title . '&url=' . $url,\n\t\t\t\t'digg'=>'http://digg.com/submit?url=' . $url . '&title=' . $text,\n\t\t\t\t'douban'=>'http://www.douban.com/recommend/?url=' . $url . '&title=' . $text,\n\t\t\t\t'email'=>'mailto:' . $email_address . '?subject=' . $title . '&body=' . $desc,\n\t\t\t\t'evernote'=>'http://www.evernote.com/clip.action?url=' . $url . '&title=' . $text,\n\t\t\t\t'getpocket'=>'https://getpocket.com/edit?url=' . $url,\n\t\t\t\t'facebook'=>'http://www.facebook.com/sharer.php?u=' . $url,\n\t\t\t\t'flattr'=>'https://flattr.com/submit/auto?user_id=' . $user_id . '&url=' . $url . '&title=' . $title . '&description=' . $text . '&language=' . $language . '&tags=' . $hash_tags . '&hidden=HIDDEN&category=' . $category,\n\t\t\t\t'flipboard'=>'https://share.flipboard.com/bookmarklet/popout?v=2&title=' . $text . '&url=' . $url, \n\t\t\t\t'gmail'=>'https://mail.google.com/mail/?view=cm&to=' . $email_address . '&su=' . $title . '&body=' . $url . '&bcc=' . $bcc_email_address . '&cc=' . $cc_email_address,\n\t\t\t\t'google.bookmarks'=>'https://www.google.com/bookmarks/mark?op=edit&bkmk=' . $url . '&title=' . $title . '&annotation=' . $text . '&labels=' . $hash_tags . '',\n\t\t\t\t'instapaper'=>'http://www.instapaper.com/edit?url=' . $url . '&title=' . $title . '&description=' . $desc,\n\t\t\t\t'line.me'=>'https://lineit.line.me/share/ui?url=' . $url . '&text=' . $text,\n\t\t\t\t'linkedin'=>'https://www.linkedin.com/shareArticle?mini=true&url=' . $url . '&title=' . $title . '&summary=' . $text . '&source=' . $provider,\n\t\t\t\t'livejournal'=>'http://www.livejournal.com/update.bml?subject=' . $text . '&event=' . $url,\n\t\t\t\t'hacker.news'=>'https://news.ycombinator.com/submitlink?u=' . $url . '&t=' . $title,\n\t\t\t\t'ok.ru'=>'https://connect.ok.ru/dk?st.cmd=WidgetSharePreview&st.shareUrl=' . $url,\n\t\t\t\t'pinterest'=>'http://pinterest.com/pin/create/button/?url=' . $url ,\n\t\t\t\t'qzone'=>'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=' . $url,\n\t\t\t\t'reddit'=>'https://reddit.com/submit?url=' . $url . '&title=' . $title,\n\t\t\t\t'renren'=>'http://widget.renren.com/dialog/share?resourceUrl=' . $url . '&srcUrl=' . $url . '&title=' . $text . '&description=' . $desc,\n\t\t\t\t'skype'=>'https://web.skype.com/share?url=' . $url . '&text=' . $text,\n\t\t\t\t'sms'=>'sms:' . $phone_number . '?body=' . $text,\n\t\t\t\t'surfingbird.ru'=>'http://surfingbird.ru/share?url=' . $url . '&description=' . $desc . '&screenshot=' . $image . '&title=' . $title,\n\t\t\t\t'telegram.me'=>'https://t.me/share/url?url=' . $url . '&text=' . $text . '&to=' . $phone_number,\n\t\t\t\t'threema'=>'threema://compose?text=' . $text . '&id=' . $user_id,\n\t\t\t\t'tumblr'=>'https://www.tumblr.com/widgets/share/tool?canonicalUrl=' . $url . '&title=' . $title . '&caption=' . $desc . '&tags=' . $hash_tags,\n\t\t\t\t'twitter'=>'https://twitter.com/intent/tweet?url=' . $url . '&text=' . $text . '&via=' . $via . '&hashtags=' . $hash_tags,\n\t\t\t\t'vk'=>'http://vk.com/share.php?url=' . $url . '&title=' . $title . '&comment=' . $desc,\n\t\t\t\t'weibo'=>'http://service.weibo.com/share/share.php?url=' . $url . '&appkey=&title=' . $title . '&pic=&ralateUid=',\n\t\t\t\t'xing'=>'https://www.xing.com/spi/shares/new?url=' . $url,\n\t\t\t\t'yahoo'=>'http://compose.mail.yahoo.com/?to=' . $email_address . '&subject=' . $title . '&body=' . $text,\n\t\t\t];\n\t\t}", "title": "" }, { "docid": "9134662e56c18a15c9c8f25c7a87b58f", "score": "0.54360455", "text": "public function GetBasicShareServiceUrl(){\r\r\n\t\treturn $this->basicShareServiceUrl;\r\r\n\t}", "title": "" }, { "docid": "c0a0b8c0f9cae02bd39bf1ee7d794821", "score": "0.5434197", "text": "function tweet($message,$image) {\nrequire_once('twitter/codebird.php');\n\n// note: consumerKey, consumerSecret, accessToken, and accessTokenSecret all come from your twitter app at https://apps.twitter.com/\n\\Codebird\\Codebird::setConsumerKey(get_option( 'wp_video_twitter_consumer','' ), get_option( 'wp_video_twitter_secret','' ));\n$cb = \\Codebird\\Codebird::getInstance();\n$cb->setToken(get_option( 'wp_video_twitter_token','' ), get_option( 'wp_video_twitter_token_secret','' ));\nif (false)\n{\t\n//build an array of images to send to twitter\n$reply = $cb->media_upload(array(\n 'media' => $image\n));\n//upload the file to your twitter account\n$mediaID = $reply->media_id_string;\n}\n//build the data needed to send to twitter, including the tweet and the image id\n$params = array(\n 'status' => $message,\n //'media_ids' => $mediaID,\n);\n//post the tweet with codebird\n$reply = $cb->statuses_update($params);\nreturn $reply;\n}", "title": "" }, { "docid": "04a97f9870aaee5b2df063a7996fa4a8", "score": "0.54063445", "text": "function converttweet(&$text, $target='_blank', $nofollow=false){\n\t$text = str_replace(\"http://http://\", \"http://\", $text);\t\n\n $urls = _autolink_find_URLS( $text );\n if(!empty($urls)){\n array_walk( $urls, '_autolink_create_html_tags', array('target'=>$target, 'nofollow'=>$nofollow) );\n $text = strtr( $text, $urls);\n }\n $text = preg_replace(\"/(\\s@|^@)([a-zA-Z0-9_]{1,25})/\",\"\",$text);\n\t$text = str_replace(\"RT: \", \"\", $text);\n\t$text = str_replace(\"(via)\", \"\", $text);\n\t$text = substr( $text, strpos($text,':')+2);\n\t\n//\t$text .= \"<br/>\" . implode ( $urls, \" \");\n}", "title": "" }, { "docid": "3575503df56a31eb579775e0b415b8a5", "score": "0.54038054", "text": "protected function url_social_site( $social_site, $user_id = false ) {\n\t\t$url = \\get_the_author_meta( $social_site, $user_id );\n\n\t\tif ( ! empty( $url ) && $social_site === 'twitter' ) {\n\t\t\t$url = 'https://twitter.com/' . $url;\n\t\t}\n\n\t\treturn $url;\n\t}", "title": "" }, { "docid": "0777c9184e25e1c223d33d67c1da6b3c", "score": "0.53900486", "text": "function vantage_premium_show_social_share(){\n\tif( siteorigin_setting('social_share_post') && is_single() ) {\n\t\tsiteorigin_share_render( array(\n\t\t\t'twitter' => siteorigin_setting('social_twitter'),\n\t\t) );\n\t}\n}", "title": "" }, { "docid": "32050e6781fd1f16d88f38c84661b9d4", "score": "0.5383591", "text": "public function getUrlFormat()\r\n {\r\n return 'http://api.twitter.com/2/statuses/user_timeline.%format%';\r\n }", "title": "" }, { "docid": "d16793d612cf157045ca41a519f9a47b", "score": "0.5377827", "text": "function socialize_link_to($type, $value, $cssClass, $shareUrl = null)\r\n{\r\n $link = socialize_url_for($type, $shareUrl);\r\n return link_to($value, $link, array('class'=>$cssClass.' social'));\r\n}", "title": "" }, { "docid": "a29de0707882f2999c58e7d05da65d04", "score": "0.5361686", "text": "public function getDownloadLink(): string\n {\n return \"https://connect.monstercat.com/v2/release/$this->releaseId/track-stream/$this->trackId\";\n }", "title": "" }, { "docid": "f9a832ab874d586b510ab9f77b43e6a3", "score": "0.53520566", "text": "public function getLoginUrl()\n {\n $token = $this->twitter->getRequestToken('http://thebloggerlist.dev/oauth/twitter');\n\n \\Session::put('oauth_state', 'start');\n \\Session::put('oauth_request_token', $token['oauth_token']);\n \\Session::put('oauth_request_token_secret', $token['oauth_token_secret']);\n\n return $this->twitter->getAuthorizeURL($token, true, false);\n }", "title": "" }, { "docid": "5c92da2552ef71bbe0047204d0793a6c", "score": "0.53499573", "text": "public function generate_url()\n {\n }", "title": "" }, { "docid": "4146833a152d58d941f99102787ef0ee", "score": "0.5345853", "text": "function tweet_updater_format_tweet( $tweet_format, $title, $link, $post_ID, $use_curl, $url_method )\n{\n\t//initialise tweet\n\t$tweet = $tweet_format;\n\t\n\t//retieve the short url\n\t$short_url = tu_get_shorturl($use_curl,$url_method,$link,$post_ID);\n\n\t// Error handling: If plugin is deacitvated, repeat to use default link supplier\n\tif( $short_url['error_code'] == '1' ) \n\t{ \n\t\t$short_url = tu_get_shorturl($use_curl,$short_url['url_method'],$link,$post_ID); \n\t}\n\n\t// Additional error handing is possible: returning $tweet = ''; will cause sending to be aborted.\n\n\t//do the placeholder string replace\n\t$tweet = str_replace ( '#title#', $title, $tweet);\n\t$tweet = str_replace ( '#url#', $short_url, $tweet);\n\t\n\treturn $tweet;\n}", "title": "" }, { "docid": "0a44333ba107dd3ef832bab4afefda86", "score": "0.53309494", "text": "function shortcode_twitter_feed( $atts ) {\n\n\t$atts = shortcode_atts( array(\n\t\t'account' => '',\n\t\t'count' => 5,\n\t\t'exclude_replies' => false,\n\t\t'include_rts' => true,\n\t\t'add_links' => true,\n\t\t'show_images'\t\t=> true,\n\t\t'cache' => 60 * 30,\n\t), $atts );\n\n\t// Fix SSL issues for WordPress (https://plus.google.com/107110219316412982437/posts/gTdK4MrnKUa)\n\tadd_filter( 'https_ssl_verify', '__return_false' );\n\tadd_filter( 'https_local_ssl_verify', '__return_false' );\n\n\t// Set access keys\n\t$twittersettings = get_option( 'twitterfeed_settings' );\n\n\t// Check credentials\n\t$credentials = array(\n\t\t'consumer_key' => $twittersettings['consumer_key'],\n\t\t'consumer_secret' => $twittersettings['consumer_secret'],\n\t);\n\n\t// Check twitter account\n\tif ( ! $atts['account'] ) {\n\t\treturn 'Please check your account!<br />';\n\t}\n\n\t// Set query & arg variables\n\t$twitter_link = 'http://twitter.com/' . $atts['account'];\n\n\t// Let's instantiate Wp_Twitter_Api with your credentials\n\tif ( $credentials['consumer_key'] && $credentials['consumer_secret'] ) {\n\t\t$twitter_api = new Wp_Twitter_Api( $credentials );\n\t} else {\n\t\treturn 'Please check your credentials!<br />';\n\t}\n\n\t// Set up query\n\t$query = 'count=' . $atts['count'] . '&include_entities=true&exclude_replies=' . $atts['exclude_replies'] . '&include_rts=' . $atts['include_rts'] . '&screen_name=' . $atts['account'];\n\n\t// Add arguments\n\t$args = array(\n\t\t'cache' => $atts['cache'],\n\t);\n\n\t// Get the results\n\t$tweets = $twitter_api->query( $query, $args );\n\n\t// Return the feed markup\n\treturn twitter_feed_markup( $tweets, $atts['add_links'], $atts['show_images'] );\n}", "title": "" }, { "docid": "e3fc22bc72cb9fa0e5f5e51ea4737a8d", "score": "0.5329553", "text": "function tcsn_social_share_hook() {\n\tdo_action( 'tcsn_social_share_hook' );\n}", "title": "" }, { "docid": "5e3647c892484d3a247b240fb652266d", "score": "0.5328722", "text": "function getAtomPostUrl()\n {\n return url . \"atom/\" . $this->ident;\n }", "title": "" }, { "docid": "c9acf3192d2920940ed495b5d69e14b1", "score": "0.5324465", "text": "public function redirectToProvider()\n {\n return Socialite::driver('twitter')->redirect();\n }", "title": "" }, { "docid": "044a1b58a1c112c0377f1b83252c940c", "score": "0.532245", "text": "public static function title() {\n return t('Twitter');\n }", "title": "" }, { "docid": "302761f680866a92822d9ba85d136b08", "score": "0.5314781", "text": "public function call_wpseo_twitter()\n {\n }", "title": "" }, { "docid": "23c34de7b5ff12074eb8ea6dca1d1e49", "score": "0.5314678", "text": "public function action_block_form_syte_twitter( $form, $block )\n\t{\n\t\t$form->append( 'text', 'url', $block, _t( 'Twitter URL', 'syte' ) );\n\t}", "title": "" }, { "docid": "d471ba1feebd9de753bfcda0d7ff0b8c", "score": "0.53128946", "text": "public function get_url()\n\t{\n\t\t$base = $append = false;\n\t\ttitania_url::split_base_params($base, $append, $this->attention_url);\n\n\t\treturn titania_url::build_url($base, $append);\n\t}", "title": "" }, { "docid": "23b5f49c800a60cbb200f231641fd191", "score": "0.53107935", "text": "public function Link()\n\t{\treturn SITE_SUB . '/asktheexpert/topic/' . $this->id . '/' . $this->details['slug'] . '/';\n\t}", "title": "" }, { "docid": "12743501bc6173bc525ac86e7cc668e3", "score": "0.528932", "text": "protected function buildLink() {\n return url('/confirmation/'. $this->user->token->token . '?' . http_build_query($this->welcome_mail_data));\n }", "title": "" }, { "docid": "132e6d67b89d290d61e7a635a6acac07", "score": "0.5286607", "text": "private function get_oauth_authorization_url_message( $livepress_com ) {\n\t\t$auth_url = $livepress_com->get_oauth_authorization_url();\n\t\t$msg = esc_html__( 'To enable the \"Post to twitter\" you still need to ', 'livepress' );\n\t\t$msg .= esc_html__( 'authorize the livepress webservice to post in your ', 'livepress' );\n\t\t$msg .= esc_html__( 'twitter account, to do it please click on the following ', 'livepress' );\n\t\t$msg .= esc_html__( 'link and then on \"Allow\"', 'livepress' );\n\t\t$msg .= '<br /><a href=\"' . $auth_url . '\" ';\n\t\t$msg .= 'id=\"lp-post-to-twitter-not-authorized\" ';\n\t\t$msg .= 'target=\"_blank\">';\n\t\t$msg .= $auth_url . '</a>';\n\t\treturn $msg;\n\t}", "title": "" }, { "docid": "65680a721f1a46da1552320b05c27606", "score": "0.5272031", "text": "function koprolwp_share_display(){\n\t$image = WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),\"\",plugin_basename(__FILE__)).\"images/koprol.png\";\n\t$link = sprintf(\"<a rel='nofollow' title='Click to share on Koprol' href='#'><img id='koprolwp-button' src='%s' /></a>\",esc_url($image));\n\treturn $link;\n}", "title": "" }, { "docid": "36b65d9bfc3b691ec6347349cc1879d6", "score": "0.526813", "text": "public function getTwitterId() {\n\t\treturn $this->twitterId;\n\t}", "title": "" }, { "docid": "7dccade15a53b9d8076a08fcc3ca70db", "score": "0.5257736", "text": "public static function send_webmention($source_url, $target_url) {\n $client = new IndieWeb\\MentionClient($source_url);\n $client->sendSupportedMentions($target_url);\n }", "title": "" }, { "docid": "c85375f2afe575dd76b4de9694d5b3d6", "score": "0.52533054", "text": "function lm_tweet_text_formatter($text) {\n $text = htmlentities($text, ENT_QUOTES, 'utf-8');\n $text = preg_replace('@(https?://([-\\w\\.]+)+(/([\\w/_\\.]*(\\?\\S+)?(#\\S+)?)?)?)@', '<a target=\"_blank\" href=\"$1\">$1</a>', $text);\n $text = preg_replace('/@(\\w+)/', '<a target=\"_blank\" href=\"https://twitter.com/$1\">@$1</a>', $text);\n $text = preg_replace('/\\s#(\\w+)/', ' <a target=\"_blank\" href=\"https://twitter.com/search?q=%23$1&src=hash\">#$1</a>', $text);\n return $text;\n}", "title": "" }, { "docid": "d8238e44fad51c63d1df71eb942c7db3", "score": "0.52495027", "text": "public function generate_permalink()\n {\n }", "title": "" }, { "docid": "1721443426330ee24fea2850f8e3886d", "score": "0.5248106", "text": "public function get_link() {\n\t\treturn '//facebook.com/' . htmlspecialchars( $this->get( 'facebook_id' ) );\n\t}", "title": "" }, { "docid": "c60860bd6269d02409cbf3787351687d", "score": "0.5242245", "text": "function displaytweets1($tweet)\n{\n include('inc/twitterc.php');\n $username='abc';\n $url = \"https://publish.twitter.com/oembed\";\n $requestMethod = \"GET\";\n $getfield = \"?url=https://twitter.com/$username/status/$tweet&hide_thread=false&hide_media=true&maxwidth=550\";\n $twitter = new TwitterAPIExchange($settings);\n $string = json_decode($twitter->setGetfield($getfield)\n ->buildOauth($url, $requestMethod)\n ->performRequest());\n if(!isset($string->error) && !empty($string))\n {\n echo \"<div style='clear:both;width:100%'>\";\n echo \"<div class= 'tweet-main' style='border:none;height:100%;'>\";\n echo $string ->html;\n \n echo \"</div>\";\n echo \"<div class='user-profile' style=''>\";\n preg_match_all('~>\\K[^<>]*(?=<)~', $string->html, $match);\n $urls = $match[0];\n // go over all links\n $url='';\n $result='';\n foreach($urls as $url) \n {\n $url=$url;\n $start = strpos($url, '(');\n if($start>0)\n {\n $end = strpos($url, ')', $start + 1);\n $length = $end - $start;\n $result = substr($url, $start + 1, $length - 1);\n }\n }\n $url = \"https://api.twitter.com/1.1/users/show.json\";\n $requestMethod = \"GET\";\n $getfield = \"?screen_name=$result\";\n $twitter = new TwitterAPIExchange($settings);\n $string = json_decode($twitter->setGetfield($getfield)\n ->buildOauth($url, $requestMethod)\n ->performRequest());\n if(!isset($string->error) && !empty($string)){\n if(isset($string->description))\n {\n echo $string->description;\n }\n else\n {\n echo \"-----\";\n }\n echo \"</div>\";\n echo \"<div class='location' style=''>\";\n if(isset($string->location))\n {\n echo $string->location;\n }\n else\n {\n echo \"-----\";\n }\n echo \"</div>\";\n echo \"</div>\";\n }\n }\n}", "title": "" }, { "docid": "f6a46149b2a16111d4f7990f006e3f81", "score": "0.5234722", "text": "function twitter_name($content) {\n\t$text = preg_replace(\"/(?!\\!)(\\W)\\@(\\w+)/i\",\n \"$1<a href=\\\"https://twitter.com/$2\\\">@$2</a>\", $content);\n\t$text = preg_replace(\"/(\\W)\\!\\@(\\w+)/i\",\n \"$1@$2\", $text);\n\treturn ($text);\n}", "title": "" }, { "docid": "9a8bf66e2f40442837563b0c9d158095", "score": "0.5233908", "text": "public static function renderShareBox($source, $via) {\n\t\techo '<div style=\"padding-bottom: 3px;\" class=\"fb-share-button\" data-href=\"'.$source.'\" data-type=\"button_count\"></div>'.PHP_EOL;\n\t\techo '<a href=\"https://twitter.com/share\" class=\"twitter-share-button\" data-via=\"'.$via.'\" data-lang=\"cs\">Tweet</a>'.PHP_EOL;\n\t\tinclude_once getcwd().'/scripts/java-script/elrh_js_renderer.php';\n\t\tELRHJSRenderer::renderJSShare();\n\t\techo PHP_EOL;\n\t}", "title": "" }, { "docid": "7be12e10fbd272e10e7d9dd075f02ece", "score": "0.52330256", "text": "function linkify($tweet_text, $entities) {\n\n // $entities is an object delivered by the Twitter API for each tweet with\n // the user @mentions, hastags, and URLs broken out along with their positions\n\n // Create an array of entities with the starting point of the entity as the key\n // This will allow the processing of the tweet in a character by character loop\n // Entities can be replaced by their hyperlink versions within this loop\n $entity_map = array();\n\n // Extract user mentions\n foreach ($entities->user_mentions as $user_mention) {\n $start = $user_mention->indices[0];\n $entity_map[$start] = array('screen_name'=> $user_mention->screen_name,\n 'name' => $user_mention->name,\n 'type' => 'user_mention' );\n }\n\n // Extract hashtags\n foreach ($entities->hashtags as $hashtag) {\n $start = $hashtag->indices[0];\n $entity_map[$start] = array('text'=> $hashtag->text,\n 'type' => 'hashtag');\n }\n\n // Extract URLs\n foreach ($entities->urls as $url) {\n $start = $url->indices[0];\n $entity_map[$start] = array('url'=> $url->url,\n 'expanded_url'=> $url->expanded_url,\n 'type' => 'url');\n }\n\n // Loop through the tweet text one character at a time\n $charptr = 0;\n $text_end = strlen($tweet_text) - 1;\n // Construct a new version of the text with entities converted to links\n $new_text = '';\n while ($charptr <= $text_end) {\n\n // Does the current character have a matching element in the $entity_map array?\n if (isset($entity_map[$charptr])) {\n switch ($entity_map[$charptr]['type']) {\n case 'user_mention':\n $new_text .= '<a href=\"' . USER_MENTION_URL .\n $entity_map[$charptr]['screen_name'] .\n '\" title=\"' . USER_MENTION_TITLE .\n $entity_map[$charptr]['screen_name'] .\n ' (' . $entity_map[$charptr]['name'] . ')\">@' .\n $entity_map[$charptr]['screen_name'] . '</a>';\n\n $charptr += strlen($entity_map[$charptr]['screen_name']) + 1;\n break;\n\n case 'hashtag':\n $new_text .= '<a href=\"' . HASHTAG_URL .\n $entity_map[$charptr]['text'] .\n '\" title=\"' . HASHTAG_TITLE .\n $entity_map[$charptr]['text'] . '\">#' .\n $entity_map[$charptr]['text'] . '</a>';\n\n $charptr += strlen($entity_map[$charptr]['text']) + 1;\n break;\n\n case 'url':\n $new_text .= '<a href=\"';\n if ($entity_map[$charptr]['expanded_url']) {\n $new_text .= $entity_map[$charptr]['expanded_url'];\n } else {\n $new_text .= $entity_map[$charptr]['url'];\n }\n $new_text .= '\">' . $entity_map[$charptr]['url'] . '</a>';\n\n $charptr += strlen($entity_map[$charptr]['url']) + 1;\n break;\n }\n } else {\n $new_text .= substr($tweet_text,$charptr,1);\n ++$charptr;\n }\n }\n\n return $new_text;\n}", "title": "" }, { "docid": "40908266e56ebcd7562cc911285ec40e", "score": "0.5230591", "text": "function latestTweet($count, $twitterID) {\n\n\t\tglobal $include_twitter;\n\t\t$include_twitter = true;\n\t\t\n\t\t$content = \"\";\n\t\t\n\t\tif (function_exists('getTweets')) {\n\n\t\t\t$tweets = getTweets($twitterID, $count);\n\n\t\t\tif(is_array($tweets)){\n\n\t\t\t\tforeach($tweets as $tweet){\n\n\t\t\t\t\t$content .= '<li>';\n\n\t\t\t\t\tif($tweet['text']){\n\n\t\t\t\t\t\t$content .= '<div class=\"tweet-text\">';\n\n\t\t\t\t\t\t$the_tweet = $tweet['text'];\n\t\t\t\t /*\n\t\t\t\t Twitter Developer Display Requirements\n\t\t\t\t https://dev.twitter.com/terms/display-requirements\n\t\t\t\t\n\t\t\t\t 2.b. Tweet Entities within the Tweet text must be properly linked to their appropriate home on Twitter. For example:\n\t\t\t\t i. User_mentions must link to the mentioned user's profile.\n\t\t\t\t ii. Hashtags must link to a twitter.com search with the hashtag as the query.\n\t\t\t\t iii. Links in Tweet text must be displayed using the display_url\n\t\t\t\t field in the URL entities API response, and link to the original t.co url field.\n\t\t\t\t */\n\n\t\t\t\t // i. User_mentions must link to the mentioned user's profile.\n\t\t\t\t if(is_array($tweet['entities']['user_mentions'])){\n\t\t\t\t \tforeach($tweet['entities']['user_mentions'] as $key => $user_mention){\n\t\t\t\t \t\t$the_tweet = preg_replace(\n\t\t\t\t \t\t\t'/@'.$user_mention['screen_name'].'/i',\n\t\t\t\t \t\t\t'<a href=\"http://www.twitter.com/'.$user_mention['screen_name'].'\" target=\"_blank\">@'.$user_mention['screen_name'].'</a>',\n\t\t\t\t \t\t\t$the_tweet);\n\t\t\t\t \t}\n\t\t\t\t }\n\n\t\t\t\t // ii. Hashtags must link to a twitter.com search with the hashtag as the query.\n\t\t\t\t if(is_array($tweet['entities']['hashtags'])){\n\t\t\t\t \tforeach($tweet['entities']['hashtags'] as $key => $hashtag){\n\t\t\t\t \t\t$the_tweet = preg_replace(\n\t\t\t\t \t\t\t'/#'.$hashtag['text'].'/i',\n\t\t\t\t \t\t\t'<a href=\"https://twitter.com/search?q=%23'.$hashtag['text'].'&amp;src=hash\" target=\"_blank\">#'.$hashtag['text'].'</a>',\n\t\t\t\t \t\t\t$the_tweet);\n\t\t\t\t \t}\n\t\t\t\t }\n\n\t\t\t\t // iii. Links in Tweet text must be displayed using the display_url\n\t\t\t\t // field in the URL entities API response, and link to the original t.co url field.\n\t\t\t\t if(is_array($tweet['entities']['urls'])){\n\t\t\t\t \tforeach($tweet['entities']['urls'] as $key => $link){\n\t\t\t\t \t\t$the_tweet = preg_replace(\n\t\t\t\t \t\t\t'`'.$link['url'].'`',\n\t\t\t\t \t\t\t'<a href=\"'.$link['url'].'\" target=\"_blank\">'.$link['url'].'</a>',\n\t\t\t\t \t\t\t$the_tweet);\n\t\t\t\t \t}\n\t\t\t\t }\n\n\t\t\t\t // Custom code to link to media\n\t\t\t\t if(isset($tweet['entities']['media']) && is_array($tweet['entities']['media'])){\n\t\t\t\t \tforeach($tweet['entities']['media'] as $key => $media){\n\t\t\t\t \t\t$the_tweet = preg_replace(\n\t\t\t\t \t\t\t'`'.$media['url'].'`',\n\t\t\t\t \t\t\t'<a href=\"'.$media['url'].'\" target=\"_blank\">'.$media['url'].'</a>',\n\t\t\t\t \t\t\t$the_tweet);\n\t\t\t\t \t}\n\t\t\t\t }\n\n\t\t\t\t $content .= $the_tweet;\n\n\t\t\t\t $content .= '</div>';\n\n\t\t\t\t // 3. Tweet Actions\n\t\t\t\t // Reply, Retweet, and Favorite action icons must always be visible for the user to interact with the Tweet. These actions must be implemented using Web Intents or with the authenticated Twitter API.\n\t\t\t\t // No other social or 3rd party actions similar to Follow, Reply, Retweet and Favorite may be attached to a Tweet.\n\t\t\t\t // 4. Tweet Timestamp\n\t\t\t\t // The Tweet timestamp must always be visible and include the time and date. e.g., “3:00 PM - 31 May 12”.\n\t\t\t\t // 5. Tweet Permalink\n\t\t\t\t // The Tweet timestamp must always be linked to the Tweet permalink.\n\n\t\t\t\t $content .= '<div class=\"twitter_intents\">'. \"\\n\";\n\t\t\t\t $content .= '<a class=\"reply\" href=\"https://twitter.com/intent/tweet?in_reply_to='.$tweet['id_str'].'\"><i class=\"fas fa-reply\"></i></a>'. \"\\n\";\n\t\t\t\t $content .= '<a class=\"retweet\" href=\"https://twitter.com/intent/retweet?tweet_id='.$tweet['id_str'].'\"><i class=\"fas fa-retweet\"></i></a>'. \"\\n\";\n\t\t\t\t $content .= '<a class=\"favorite\" href=\"https://twitter.com/intent/favorite?tweet_id='.$tweet['id_str'].'\"><i class=\"fas fa-star\"></i></a>'. \"\\n\";\n\n\t\t\t\t $date = strtotime($tweet['created_at']); // retrives the tweets date and time in Unix Epoch terms\n\t\t\t\t $blogtime = current_time('U'); // retrives the current browser client date and time in Unix Epoch terms\n\t\t\t\t $dago = human_time_diff($date, $blogtime) . ' ' . sprintf(__('ago', 'neighborhood')); // calculates and outputs the time past in human readable format\n\t\t\t\t $content .= '<a class=\"timestamp\" href=\"https://twitter.com/'.$twitterID.'/status/'.$tweet['id_str'].'\" target=\"_blank\">'.$dago.'</a>'. \"\\n\";\n\t\t\t\t $content .= '</div>'. \"\\n\";\n\t\t\t\t } else {\n\t\t\t\t \t$content .= '<a href=\"http://twitter.com/'.$twitterID.'\" target=\"_blank\">@'.$twitterID.'</a>';\n\t\t\t\t }\n\t\t\t\t $content .= '</li>';\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $content;\n\t\t} else {\n\t\t\treturn '<li><div class=\"tweet-text\">Please install the oAuth Twitter Feed Plugin and follow the theme documentation to set it up.</div></li>';\n\t\t}\t\n\t}", "title": "" }, { "docid": "318a89ed3f52bb07510ff1d218b4969d", "score": "0.52034163", "text": "function tweet_function($attr, $content=null){\n global $post;\n $tweet = strip_tags($content);\n\n // check plugin config for links settings\n $include_link = get_option('tweetbtn_include_link');\n $include_tag = get_option('tweetbtn_include_tag');\n\n if ($include_link) {\n $link = get_permalink($post->ID);\n $link = shorten_url($link);\n } else {\n $link = '';\n }\n\n if ($include_tag) {\n $tag = ' '.$include_tag;\n } else {\n $tag = '';\n }\n\n // decrease max tweet length by link length\n $max_tweet_length = 145 - strlen($link) - strlen($tag);\n\n if (strlen($tweet) >= $max_tweet_length) {\n $tweet = substr($tweet,0,$max_tweet_length-5);\n $tweet = $tweet.\"...\\xA\".$link.$tag;\n } else {\n $tweet = $tweet.\"\\xA\".$link.$tag;\n }\n\n $tweet_url = 'https://twitter.com/intent/tweet?text='.urlencode($tweet);\n $tweet_btn = '<a class=\"tweet_btn\" target=\"_blank\" href=\"'.$tweet_url.'\">Tweet!</a>';\n\n $content = $content.$tweet_btn;\n\n return $content;\n}", "title": "" }, { "docid": "88e130cf5035665a8eaf059cedf9a766", "score": "0.5189619", "text": "function build_download_link($artist, $song, $secret) {\n\t\t//return AMAZON_SONG_BASE . $artist . '/' . $secret . '.mp3';\n return build_link('download','song',$secret);\n\t}", "title": "" }, { "docid": "3eda4e402ac2ed749198160ec4cd454a", "score": "0.51867133", "text": "function plusquare_twitter_button_func( $atts ){\n\textract( shortcode_atts( array(\n\t\t'size' => 'standard',\n\t\t'count' => 'show',\n\t\t'float' => 'left',\n\t\t'width' => '98'\n\t), $atts ) );\n\t\n\t\n\treturn '<div style=\"vertical-align: top; display: inline-block; float:'.$float.';width: '.$width.'px;\">\n\t\t\t<a href=\"https://twitter.com/share\" data-url=\"'.get_permalink().'\" class=\"twitter-share-button\" data-related=\"festaseflagras\" data-size=\"'.$size.'\" data-count=\"'.$count.'\">Tweet</a>\n\t\t\t</div>\n\t\t\t<script>\n\t\t\t\tjQuery(document).ready(function ($){\n\t\t\t\t\tif($(\"body\").hasClass(\"TwitterLoaded\"))\n\t\t\t\t\t\trefreshTweetButtons();\n\t\t\t\t\telse\n\t\t\t\t\t\t$(\"body\").bind(\"TwitterLoaded\", function(){\n\t\t\t\t\t\t\trefreshTweetButtons();\n\t\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t</script>';\n}", "title": "" }, { "docid": "67b2c08257183a3a630d18d781d61459", "score": "0.5185955", "text": "function TDC_Twitter() {\n $widget_ops = array( 'classname' => 'twitter', 'description' => __('A widget that displays tweets for a twitter username.', 'bootstrap') ); \n $control_ops = array( 'id_base' => 'twitter-widget' ); \n $this->WP_Widget( 'twitter-widget', __('Latest Tweets (The Design Collective)', 'bootstrap'), $widget_ops, $control_ops ); \n\n }", "title": "" }, { "docid": "26632e17aa2081254727a09297247b0a", "score": "0.5185454", "text": "public function process()\n\t{\n\t\tPhpfox::isUser(true);\n\t\t\n\t\tif (isset($_GET['connect-id']) && $_GET['connect-id'] == 'facebook')\n\t\t{\n\t\t\t$aReturn = (array) Phpfox::getService('facebook')->get('/me', urlencode(Phpfox::getParam('core.path') . '?share-connect=1&connect-id=facebook'));\n\t\t\tif (isset($aReturn['id']))\n\t\t\t{\n\t\t\t\tPhpfox::getService('share.process')->addConnect('facebook');\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$aReturn = Phpfox::getLib('twitter')->getUser($_GET['oauth_token']);\n\t\t\t\n\t\t\tif (isset($aReturn['id']))\n\t\t\t{\n\t\t\t\tPhpfox::getService('share.process')->addConnect('twitter', Phpfox::getLib('twitter')->getToken(), Phpfox::getLib('twitter')->getSecret());\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->url()->send('');\n\t}", "title": "" }, { "docid": "2df2706ca54e2a86963428c533d42b2c", "score": "0.51696455", "text": "public function action_handler_syte_twitter( $handler_vars )\n\t{\t\t\n\t\tif ( Cache::has( 'syte_twitter' ) ) {\n\t\t\t$resp = Cache::get( 'syte_twitter' );\n\t\t} \n\t\telse {\n\t\t\trequire_once dirname( __FILE__ ) . '/lib/twitteroauth.php';\n\n\t\t\t$consumer_key = Options::get( __CLASS__ . '__twitter_consumer_key' );\n\t\t\t$consumer_secret = Options::get( __CLASS__ . '__twitter_consumer_secret' );\n\t\t\t$user_key = Options::get( __CLASS__ . '__twitter_user_key' );\n\t\t\t$user_key_secret = Options::get( __CLASS__ . '__twitter_user_secret' );\n\n\t\t\t$oauth = new TwitterOAuth( $consumer_key, $consumer_secret, $user_key, $user_key_secret );\n\t\t\t$oauth->decode_json = true;\n\t\t\t$resp = $oauth->get( 'statuses/user_timeline', array( 'screen_name' => $handler_vars['username'] ) );\n\t\t\n\t\t\t// Cache the response for 60 seconds to keep from hammering API endpoints\n\t\t\tCache::set( 'syte_twitter', $resp, 60 );\n\t\t}\n\t\t\n\t\tlist( $block, $new_theme ) = $this->get_block( 'syte_twitter' );\n\t\t$block->tweets = $resp;\n\t\t\n\t\techo $block->fetch( $new_theme );\n\t}", "title": "" }, { "docid": "ade5caac6661aa071d2c81fa31c58210", "score": "0.5163643", "text": "function fluxus_footer_social_share() {\n $args = array(\n 'id' => 'sharrre-footer',\n 'data-buttons-title' => __( 'Share this page', 'fluxus' )\n );\n $html = fluxus_get_social_share( $args );\n if ( $html ) {\n echo $html;\n }\n}", "title": "" }, { "docid": "80e9a5ab0d0cc2c7e6fe343a8e6da037", "score": "0.51629955", "text": "public static function twitterify($ret = NULL) \n\t{\n\t\t$ret = str_replace('ibetheltv: ', '', $ret);\n\t\t$ret = preg_replace(\"#(^|[\\n ])([\\w]+?://[\\w]+[^ \\\"\\n\\r\\t< ]*)#\", \"\\\\1<a href=\\\"\\\\2\\\" target=\\\"_blank\\\" class=\\\"blog_link\\\">\\\\2</a>\", $ret);\n\t\t$ret = preg_replace(\"#(^|[\\n ])((www|ftp)\\.[^ \\\"\\t\\n\\r< ]*)#\", \"\\\\1<a href=\\\"http://\\\\2\\\" target=\\\"_blank\\\" class=\\\"blog_link\\\">\\\\2</a>\", $ret);\n\t\t$ret = preg_replace(\"/@(\\w+)/\", \"<a href=\\\"http://www.twitter.com/\\\\1\\\" target=\\\"_blank\\\" class=\\\"blog_link\\\">@\\\\1</a>\", $ret);\n\t\t$ret = preg_replace(\"/#(\\w+)/\", \"<a href=\\\"http://search.twitter.com/search?q=\\\\1\\\" target=\\\"_blank\\\" class=\\\"blog_link\\\">#\\\\1</a>\", $ret);\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "9141b9d400a7dae0abca8bdbddb49b99", "score": "0.5153785", "text": "public function share($social = \"facebook\")\n {\n // Collect the Data\n $url = $this->input->get('url');\n $title = $this->input->get('title') ?: \"Research Data Australia\";\n if (!$url) throw new Exception(\"No URL provided\");\n\n // Log the event\n $event = [\n 'event' => 'portal_social_share',\n 'share' => [\n 'url' => $url,\n 'type' => $social\n ]\n ];\n\n // if there's an accompany id, record more metadata to the log\n // @todo optimize so that we don't need to call the model and reprocess the id\n if ($id = $this->input->get('id') ?: false) {\n $this->load->model('registry_object/registry_objects', 'ro');\n if ($record = $this->ro->getByID($id)) {\n $event['record'] = $this->ro->getRecordFields($record);\n }\n }\n\n monolog($event, 'portal', 'info');\n\n // Decide the sharing URL\n $shareUrl = \"https://researchdata.edu.au\";\n switch ($social) {\n case \"facebook\":\n $shareUrl = \"http://www.facebook.com/sharer.php?u=\".$url;\n break;\n case \"twitter\":\n $shareUrl = \"https://twitter.com/share?url=\".$url.\"&text=\".$title.\"&hashtags=ardcdata\";\n break;\n }\n\n // Do the Redirect\n redirect($shareUrl);\n }", "title": "" }, { "docid": "d4e6b86a46dee3d288288c3e4abb8191", "score": "0.51454973", "text": "public function getEmbedUrl()\n {\n return Server::getEmbedUrl() . $this->getSanitizedTitle() . '/' . $this->getId();\n }", "title": "" }, { "docid": "13cd9149de07d4ca0cf228a32de2e278", "score": "0.51397836", "text": "public function replyLink()\n {\n return \"<a class=\\\"at\\\" href=\\\"\" . $this->user->profileLink() . \"\\\">@\" . $this->user->display_name .\"</a>\";\n }", "title": "" } ]
505bcac52e9b37a8987f0cd5f37a01e3
Decrypt the given string without unserialization.
[ { "docid": "6da03692629ea81d8f295fbefa28ff10", "score": "0.0", "text": "public function decryptString($value, $iv)\n {\n return $this->decrypt($value, $iv, false);\n }", "title": "" } ]
[ { "docid": "baac544557cc39da4b26a476f811d81c", "score": "0.7716174", "text": "public function decryptString($payload);", "title": "" }, { "docid": "5bbe0f4df4c1dc17b908a4a3796197ea", "score": "0.7595149", "text": "public function decrypt(string $text): string {}", "title": "" }, { "docid": "8d68f38ff03805bf51e0fa4ed77cf54b", "score": "0.754411", "text": "public function decrypt(&$str)\n\t{\n\t\t$this->operation(parent::DECRYPT);\n\t\treturn $this->enigma($str);\n\t}", "title": "" }, { "docid": "0deb87c1195ffe65fa5e9672d2b47095", "score": "0.75124216", "text": "public function decrypt($string)\r\n {\r\n \r\n $secure_key = '0008754063617000';\r\n $output = false;\r\n $encrypt_method = 'AES-256-CBC';\r\n $secret_key = $secure_key;\r\n $secret_iv = strrev($secure_key);\r\n $key = hash('sha256', $secret_key); // hash\r\n $iv = substr(hash('sha256', $secret_iv), 0, 16); // iv - encrypt method AES-256-CBC expects 16 bytes - else you will get a warning\r\n $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv);\r\n return $output;\r\n \r\n }", "title": "" }, { "docid": "3e2a1f6bfe991d711fc0d3363449483c", "score": "0.75105727", "text": "protected static function decryption($string)\n {\n $key = hash('sha256', SECRET_KEY);\n $iv = substr(hash('sha256', SECRET_ID), 0, 16);\n $output = openssl_decrypt(base64_decode($string), METHOD, $key, 0, $iv);\n return $output;\n }", "title": "" }, { "docid": "9dd35003c9589c8ac4e48f9201ce8a31", "score": "0.75010145", "text": "public static function decrypt($string) {\n\n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n\n // hash\n $key = hash('sha256', self::$secretKey);\n\n // iv - encrypt method AES-256-CBC expects 16 bytes - else you will get a warning\n $iv = substr(hash('sha256', self::$secretIv), 0, 16);\n\n $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv);\n\n return $output;\n }", "title": "" }, { "docid": "f50dfba0d1543692c4686cebd46d9135", "score": "0.74693966", "text": "public function decrypt($string)\n {\n $result = '';\n $string = utf8_decode(base64_decode($string));\n $strlenKey = strlen($this->key);\n for ($i = 0; $i < strlen($string); $i++) {\n $char = substr($string, $i, 1);\n $keychar = substr($this->key, ($i % $strlenKey), 1);\n $char = chr(ord($char) - ord($keychar));\n $result .= $char;\n }\n return $result;\n }", "title": "" }, { "docid": "44c03040ba1629a2dc530e770ac46278", "score": "0.7466631", "text": "function decrypt($string) {\n\t\t\t/* if $string is not a string then return $string, get it? */\n\t\t\tif (!is_string($string))\n\t\t\t\treturn $string;\n\n\t\t\t$orig = $string;\n\t\t\t$hash = substr($string, -32);\n\t\t\t$string = base64_decode(str_rot13(substr($string, 0, -32)));\n\t\t\tfor ($i = 0; $i < strlen($string); $i++) {\n\t\t\t\t$c = $string[$i];\n\t\t\t\t$o = ord($c);\n\t\t\t\t$o = $o >> 1;\n\t\t\t\t$string[$i] = chr($o);\n\t\t\t}\n\t\t\t$string = base64_decode($string);\n\n\t\t\tif (md5($string) == $hash) {\n\t\t\t\t// call Decrypt again until it can no longer be decrypted\n\t\t\t\treturn $this->decrypt(unserialize($string));\n\t\t\t} else {\n\t\t\t\treturn $orig;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "f9dfca4f0c8e09abf64926def6d17f7a", "score": "0.7403994", "text": "function decrypt( $encrypted_string, $encryption_key ) {\n\treturn $encrypted_string;\n}", "title": "" }, { "docid": "635812ce12046ccfd5acb754af9a9252", "score": "0.73790276", "text": "function _decrypt($text){\n\tglobal $lc_securitySalt;\n\tif(!$lc_securitySalt || !function_exists('mcrypt_encrypt')) return $text;\n\treturn trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $lc_securitySalt, base64_decode($text), MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND)));\n}", "title": "" }, { "docid": "4bda01d7892c2aa2d55e574638866f8e", "score": "0.7373105", "text": "function decryptString($string)\n{\n $key = hash('sha256', CRYPTO_SECRET_KEY);\n\n /* iv - encrypt method AES-256-CBC expects 16 bytes, else you will get a warning */\n $iv = substr(hash('sha256', CRYPTO_SECRET_IV), 0, 16);\n\n return(openssl_decrypt($string, \"AES-256-CBC\", $key, 0, $iv));\n}", "title": "" }, { "docid": "98ccf3327080627a01ba734171d17c82", "score": "0.7338759", "text": "function decrypt($string,$key)\n\t {\n\t\t \n\t\t $string = rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $key, base64_decode($string), MCRYPT_MODE_ECB)); \n\t\t return $string;\n\t\t \n\t }", "title": "" }, { "docid": "e578753eeea514269b298b15269e50a2", "score": "0.73312646", "text": "private function decryptStr($str)\n {\n $data = base64_decode($str);\n $iv = substr($data, 0, mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC));\n\n $decrypted = rtrim(\n mcrypt_decrypt(\n MCRYPT_RIJNDAEL_128,\n hash('sha256', $this->encryption_key, true),\n substr($data, mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC),\n MCRYPT_MODE_CBC,\n $iv\n ), \"\\0\"\n );\n return $decrypted;\n }", "title": "" }, { "docid": "fc6f9655ad6a06834dc765c6b7ab2685", "score": "0.72876275", "text": "Protected Function Decrypt($string, $key) \n\t\t{\n\t\t\t$result = '';\n\t\t\t$string = base64_decode($string);\n\t\t\t\n\t\t\tfor($i=0; $i<strlen($string); $i++) {\n\t\t\t\t$char = substr($string, $i, 1);\n\t\t\t\t$keychar = substr($key, ($i % strlen($key))-1, 1);\n\t\t\t\t$char = chr(ord($char)-ord($keychar));\n\t\t\t\t$result.=$char;\n\t\t\t}\n\t\t\t\n\t\t\treturn $result;\n\t\t\t\n\t\t}", "title": "" }, { "docid": "5f1bd2261b190fc645cf6dd06d60c001", "score": "0.7287451", "text": "function Decrypt($data) {\n $iv = substr($data, 0, $this->IV_size);\n $string = substr($data, $this->IV_size);\n \n mcrypt_generic_init($this->ref, $this->llave, $iv);\n $result = mdecrypt_generic($this->ref, $string);\n mcrypt_generic_deinit($this->ref);\n return $result;\n }", "title": "" }, { "docid": "0faa5527beddaa16a6dbaa1d1223fdd4", "score": "0.72514236", "text": "abstract public function decrypt($data);", "title": "" }, { "docid": "39f6f5b33a904660b00c6f1653f7e067", "score": "0.7230716", "text": "public function doDecrypt(string $data = NULL)\r\n {\r\n return $this->CI->encryption->decrypt($data);\r\n }", "title": "" }, { "docid": "66aeb3de6f3e992ad2718513e26924e4", "score": "0.7161038", "text": "protected function doDecrypt(string $value, string $iv): string {}", "title": "" }, { "docid": "a4884bcc04f4f341828a5e987734bfd1", "score": "0.7150277", "text": "function decrypt($text){\n\t\treturn trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, self::SALT, base64_decode($text), MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND)));\n\t}", "title": "" }, { "docid": "7cbdb29b71724919a6443f885ae4836e", "score": "0.7138697", "text": "public function decrypt($str)\n {\n\t\t$str = base64_decode($str);\n if (!Rsa_key::is_valid($this->private_key))\n\t\t{\n return ($str);\n }\n\n\t\t// Decryptage du resultat\n $data_length = strlen($str);\n $chunk_length = $this->math->bitLen($this->private_key->_get('mod')) - 1;\n $block_length = (int) ceil($chunk_length / 8);\n $curr_pos = 0;\n $bit_pos = 0;\n $plain_data = $this->math->bin2int(\"\\0\");\n while ($curr_pos < $data_length)\n\t\t{\n $tmp = $this->math->bin2int(substr($str, $curr_pos, $block_length));\n $tmp = $this->math->powmod($tmp, $this->private_key->_get('exp'), $this->private_key->_get('mod'));\n $plain_data = $this->math->bitOr($plain_data, $tmp, $bit_pos);\n $bit_pos += $chunk_length;\n $curr_pos += $block_length;\n }\n $result = $this->math->int2bin($plain_data);\n\n // Suppression du \\x01 final\n $tail = ord($result[strlen($result) - 1]);\n if ($tail != 1)\n\t\t{\n return ($str);\n }\n return (utf8_encode(substr($result, 0, -1)));\n }", "title": "" }, { "docid": "8f3acb25b4f4554406ff5a67a448acb3", "score": "0.7111105", "text": "public function decrypt($encrypted = null)\n {\n return Crypt::decryptString($encrypted);\n }", "title": "" }, { "docid": "3da26809f64df8a02b98350cb3b9feab", "score": "0.7083799", "text": "public function decrypt ($value)\r\n {\r\n if ( !is_string ($value) or $value == \"\" )\r\n throw new Exception (\"The cipher string must be a non-empty string.\") ;\r\n\r\n\r\n // Decode base64 encoding. \r\n $value = base64_decode ($value) ;\r\n\r\n // Decrypt the value.\r\n $output = mcrypt_decrypt (MCRYPT_RIJNDAEL_128, $this->key, $value, MCRYPT_MODE_CBC, $this->initialVector) ;\r\n\r\n // Strip padding and return.\r\n return self::fromPkcs7 ($output) ;\r\n }", "title": "" }, { "docid": "e7b44d6dd2fc2cb43e002c4781bf3fa6", "score": "0.7078946", "text": "public function decrypt($payload);", "title": "" }, { "docid": "579eb4be4e635cac6b1ffcf44641bf57", "score": "0.70580244", "text": "public function decryptString($value) {\n // decode the value\n $payload = json_decode(base64_decode($value), true);\n\n if (!$this->validPayload($payload)) {\n throw new DecryptionException('Could not decrypt the data');\n }\n\n // decode the iv so we can use it during decryption\n $iv = base64_decode($payload['iv']);\n\n // decrypt the value\n $decrypted = \\openssl_decrypt(\n $payload['value'], $this->cipher, $this->secret, 0, $iv\n );\n\n if ($decrypted === false) {\n throw new DecryptionException('Could not decrypt the data.');\n }\n\n return $decrypted;\n }", "title": "" }, { "docid": "fb76eb7c6644849f2d3ddee128c74b97", "score": "0.7025567", "text": "function mcrypt_decrypt () {}", "title": "" }, { "docid": "ac544038ce6ea1d8740489e2e7723352", "score": "0.7022947", "text": "public function decrypt64($string)\n {\n return $this->decrypt(base64_decode($string));\n }", "title": "" }, { "docid": "090cdf3a1ba4100ad1dc30d5e5c50629", "score": "0.6993761", "text": "public function decrypt($data)\n\t{\n\t\tif (substr($data, 0, 12) != '###AES128###')\n\t\t{\n\t\t\treturn $data;\n\t\t}\n\n\t\t$data = substr($data, 12);\n\n\t\tif (!is_object($this->aes))\n\t\t{\n\t\t\treturn $data;\n\t\t}\n\n\t\t$decrypted = $this->aes->decryptString($data, true);\n\n\t\t// Decrypted data is null byte padded. We have to remove the padding before proceeding.\n\t\treturn rtrim($decrypted, \"\\0\");\n\t}", "title": "" }, { "docid": "85e071fa4ca2e0ff8357fbdf102a91f9", "score": "0.6991937", "text": "function decrypt($string, $key)\n {\n // Lengths in bytes:\n $key_length = (int) ($this->_nKeySize / 8);\n $block_length = 16;\n\n $data = base64_decode($string);\n $salt = substr($data, 8, 8);\n $encrypted = substr($data, 16);\n\n /**\n * From https://github.com/mdp/gibberish-aes\n *\n * Number of rounds depends on the size of the AES in use\n * 3 rounds for 256\n * 2 rounds for the key, 1 for the IV\n * 2 rounds for 128\n * 1 round for the key, 1 round for the IV\n * 3 rounds for 192 since it's not evenly divided by 128 bits\n */\n $rounds = 3;\n if (128 === $this->_nKeySize)\n {\n $rounds = 2;\n }\n\n $data00 = $key.$salt;\n $md5_hash = array();\n $md5_hash[0] = md5($data00, true);\n $result = $md5_hash[0];\n\n for ($i = 1; $i < $rounds; $i++)\n {\n $md5_hash[$i] = md5($md5_hash[$i - 1].$data00, true);\n $result .= $md5_hash[$i];\n }\n\n $key = substr($result, 0, $key_length);\n $iv = substr($result, $key_length, $block_length);\n\n return openssl_decrypt($encrypted, \"aes-\".$this->_nKeySize.\"-cbc\", $key, true, $iv);\n }", "title": "" }, { "docid": "dbf5840518797410b47e5c3d27a04e9f", "score": "0.6983106", "text": "function decrypt_string_and_decode($salt, $string) {\n // Decode before decryption\n return decrypt_string($salt, base64_decode($string));\n }", "title": "" }, { "docid": "9d2d06ab69bd0ab294e4f14aa32898f0", "score": "0.69358754", "text": "public static function decrypt($encrypted_string) {\n\t $iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_ECB);\n\t $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n\t $decrypted_string = mcrypt_decrypt(MCRYPT_BLOWFISH, self::$ENCRYPTION_KEY, $encrypted_string, MCRYPT_MODE_ECB, $iv);\n\t return $decrypted_string;\n\t}", "title": "" }, { "docid": "25527a670edc7a2b62baedda282a871c", "score": "0.6929921", "text": "function &decrypt($encString){\n\t\t$ciphered_d64 = base64_decode($encString);\n\t\t$key = pack('H*', \"A2B50B9613BF979D304A1FF2CAACD528EC61C8FE57E90B7AF7F6AE654FBA0FBF\");\n\t\t$iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_CBC);\n\t\n\t\t$iv_d = substr($ciphered_d64, 0, $iv_size);\n\t\t\n\t\t$cipheredtext_d = substr($ciphered_d64, $iv_size);\n\t\t\n\t\t$text_d = mcrypt_decrypt(MCRYPT_BLOWFISH, $key, $cipheredtext_d, MCRYPT_MODE_CBC, $iv_d);\n\t\t\n\t\treturn $encString =& $text_d;\n\t}", "title": "" }, { "docid": "ff6313942f5951fb99c53fa8e2228fb9", "score": "0.6905943", "text": "public function decryptString($stringToDecrypt) {\n $c = base64_decode($stringToDecrypt);\n $ivlen = openssl_cipher_iv_length($cipher=\"AES-128-CBC\");\n $iv = substr($c, 0, $ivlen);\n $hmac = substr($c, $ivlen, $sha2len=32);\n $ciphertext_raw = substr($c, $ivlen+$sha2len);\n $original_plaintext = openssl_decrypt($ciphertext_raw, $cipher, SALT, $options=OPENSSL_RAW_DATA, $iv);\n $calcmac = hash_hmac('sha256', $ciphertext_raw, SALT, $as_binary=true);\n if (hash_equals($hmac, $calcmac))//PHP 5.6+ timing attack safe comparison\n {\n $this->_decryptedString = $original_plaintext;\n }\n return $this;\n }", "title": "" }, { "docid": "0a5b8d603f0d58693242275dbceea0cf", "score": "0.689863", "text": "function desencriptar($str) {\n\n \t//nadie mas debe conocerla\n\t$clave = 'QAZWSXEDCRFVTGBYHNUJMIK,OL.PÑ-+}{qazwsxedcrfvtgbyhnujmikpñ#$%&/()789456123.70';\n\t//Metodo de encriptación\n\t$method = 'aes-256-cbc';\n\t// Puedes generar una diferente usando la funcion $getIV()\n\t$iv = base64_decode(\"C9fBfrseEWtYTL1/M8jfstw==\");\n\n $encrypted_data = base64_decode($str);\n $resultado= openssl_decrypt($str, $method, $clave, false, $iv);\n return$resultado;\n }", "title": "" }, { "docid": "f2b6835ce6a39244c740cba9db806aeb", "score": "0.689404", "text": "public static function decrypt($name, $key = '') {\r\n\t\t\r\n\t\t\treturn base64_decode($name);\r\n\t\t}", "title": "" }, { "docid": "f2752531dc83da8295ab94589a8afaca", "score": "0.68853486", "text": "public function decrypt($text) {\n\t\t// Symetrical cipher\n\t\treturn $this->encrypt($text);\n\t}", "title": "" }, { "docid": "22c41b72a7bcf3a4673851bb0140c5fa", "score": "0.68748206", "text": "function decrypt($value, $unserialize = true)\n {\n return app('encrypter')->decrypt($value, $unserialize);\n }", "title": "" }, { "docid": "39eec9fdad19e95372b3865baf466af5", "score": "0.6844789", "text": "public function decrypt(&$text)\n\t{\n\t\t$this->operation(parent::DECRYPT);\n\t\treturn $this->arc4($text);\n\t}", "title": "" }, { "docid": "9efe2ac6947fe8825b86b8ebbf9bd27e", "score": "0.6843614", "text": "public function decrypt(string $data): string\n {\n $parts = explode('.', $data);\n if (count($parts) != 2) {\n throw new DecryptionException('Encrypted data is in invalid format.');\n }\n\n $iv = base64_decode($parts[0]);\n $encryptedPayload = base64_decode($parts[1]);\n\n $plain = openssl_decrypt($encryptedPayload, $this->method, $this->key, 0, $iv);\n if ($plain === false) {\n throw new DecryptionException(openssl_error_string());\n }\n\n return $plain;\n }", "title": "" }, { "docid": "89f18e247419bf5144a53c9797f166a4", "score": "0.684191", "text": "function decryptSimpleTickerMessage($str) {\r\n return $str; //TODO implement decryption\r\n}", "title": "" }, { "docid": "58ccd359d7286217d92b155a2001edf6", "score": "0.68388", "text": "public function decrypt($message)\n {\n }", "title": "" }, { "docid": "6ccc965c9be2ba326cf2ae2a7f4ac68e", "score": "0.68326116", "text": "public static function decript($decrypt){\n # Set the encription Key\n self::setKey();\n\n # Get stuff out of it\n $decrypt = explode('|', $decrypt.'|');\n $decoded = base64_decode($decrypt[0]);\n $iv = base64_decode($decrypt[1]);\n\n if(strlen($iv)!==mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC)){\n return false;\n }\n\n $key = pack('H*', static::$key64);\n $decrypted = trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $key, $decoded, MCRYPT_MODE_CBC, $iv));\n $mac = substr($decrypted, -64);\n $decrypted = substr($decrypted, 0, -64);\n $calcmac = hash_hmac('sha256', $decrypted, substr(bin2hex($key), -32));\n if($calcmac!==$mac){\n return false;\n }\n $decrypted = unserialize($decrypted);\n return $decrypted;\n }", "title": "" }, { "docid": "4f861aab8530fc97e08aab83727bfc88", "score": "0.68312246", "text": "public function decryptText($text){\r\n\t\treturn $this->getCipher()->decrypt( $text );\r\n\t}", "title": "" }, { "docid": "30a28260a609018746443742d27f9a20", "score": "0.68264014", "text": "public static function Decrypt($encryptedString)\r\n {\r\n // Pack Symmetric::_msHexaIv into a binary string\r\n $binary_iv = pack('H*', self::$_msHexaIv);\r\n\r\n // Convert string in hexadecimal to byte array\r\n $binary_encrypted_string = pack('H*', $encryptedString);\r\n\r\n // Decrypt $binary_encrypted_string\r\n $decrypted_string = mcrypt_decrypt(\r\n self::$_msCipherAlgorithm,\r\n self::$_msSecretKey,\r\n $binary_encrypted_string,\r\n MCRYPT_MODE_CBC,\r\n $binary_iv);\r\n\r\n return $decrypted_string;\r\n }", "title": "" }, { "docid": "aa6457f05039757125eb2dfc0edae6b5", "score": "0.68062514", "text": "function decrypt($str, $key = 'YOUR_KEY') { \n\t\n\t\t$output = ''; \n\t\t$str = base64_decode(strtr($str, '-_', '+/').'==');\n\t\t\n\t\tfor($i = 0; $i < strlen($str); $i++) {\n\t\t\t\n\t\t\t$single_char = substr($str, $i, 1); \n\t\t\t$single_char_encrypted = substr($key, ($i % strlen($key)) - 1, 1); \n\t\t\t$single_char = chr(ord($single_char) - ord($single_char_encrypted)); \n\t\t\t$output .= $single_char; \n\t\t} \n\t\treturn $output; \n\t}", "title": "" }, { "docid": "1c9f7317776f509181ac3e0a7cb5ab47", "score": "0.6798206", "text": "function decrypt($string) { \r\n\tglobal $key;\r\n\t$result = Cryptor::Decrypt($string,$key);\r\n\treturn $result;\r\n}", "title": "" }, { "docid": "5c3329e16d5ffd34e423ca4486799afb", "score": "0.6786461", "text": "public static function decrypt($str) {\n\t\n\t\t$arr=array('%','$','/','\\\\','*','+','-','\\'','\"','#','@','(',')','^','~','`','&',\n \t\t\t\t'_',',',':',';','?','<','>','!','{','}','[',']');\n\t\t\t\t\n\t\t$str=str_replace($arr,'',$str);\n\n\t\t$str = str_replace(\"TcVY\",\"=\",$str);\n\t\t$m=1;\n\t\t$d_str=\"\";\n\t\tfor($i=0;$i<strlen($str);$i++) {\n\t\t\tif($m!=5) {\n\t\t\t\t\t$d_str .= substr($str,$i,1);\n\t\t\t\t} else {\n\t\t\t\t\t$m=1;\n\t\t\t\t}\n\t\t\t$m++;\t\t\n\t\t}\n\t\t\n\t\t$d_str = base64_decode($d_str);\n\t\treturn explode(\"||\",$d_str);\n\t\t\n\t}", "title": "" }, { "docid": "6068bfa1a6299d97375a38c9b2473d9a", "score": "0.67856747", "text": "public function getDecrypt($value)\r\n {\r\n $encrypted_data = base64_decode($value);\r\n return openssl_decrypt($value, $this->method, $value, false, $this->iv);\r\n }", "title": "" }, { "docid": "fa90e4e28e7fb39aea8345a762ad6250", "score": "0.6778805", "text": "function decrypt($value, bool $unserialize = true)\n {\n return app('encrypter')->decrypt($value, $unserialize);\n }", "title": "" }, { "docid": "a02c91fc0c6475be54b0dfc0e52dca42", "score": "0.6777898", "text": "function _decrypt($data) {\n\t\tload_config();\n\t\t$data = base64_decode($data);\n\t\t$data = explode(AUTH_KEY, $data);\n\t\treturn $data[1];\n\t}", "title": "" }, { "docid": "b9fb4601f68547062841956b67a6ed39", "score": "0.67679596", "text": "public static function decrypt(string $data, string $enc_key='') {\n $encryption_key = empty($enc_key) ? \\base64_decode(self::$_enc_key) : \\base64_decode($enc_key);\n // To decrypt, split the encrypted data from our IV - our unique separator used was \"::\"\n list($encrypted_data, $iv) = \\explode('::', $data, 2);\n return \\openssl_decrypt($encrypted_data, 'aes-256-cbc', $encryption_key, 0, $iv);\n // return $string;\n }", "title": "" }, { "docid": "5e1a1b47e080fe570b5c2373c23e0866", "score": "0.67194176", "text": "public function decrypt(string $input, bool $decode = false): string\n {\n return Crypt::decrypt($input, $this->pp, $this->iv, $decode);\n }", "title": "" }, { "docid": "71d90863564ea5a3b5f3fe7afcd4145c", "score": "0.67135775", "text": "function decrypt($encrypted)\n\t{\n\t\t// $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n\t\t// $ciphertext_dec = base64_decode($encrypted);\n\t\t// $iv_dec = substr($ciphertext_dec, 0, $iv_size);\n\t\t// $ciphertext_dec = substr($ciphertext_dec, $iv_size);\n\t\t// $plaintext_dec = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, ENCRYPRTION_KEY,\n\t\t\t\t\t\t\t\t\t\t// $ciphertext_dec, MCRYPT_MODE_CBC, $iv_dec);\n\t\t// return $plaintext_dec;\n\t\treturn rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, ENCRYPRTION_KEY, base64_decode($encrypted), MCRYPT_MODE_ECB));\n\t}", "title": "" }, { "docid": "624b69b345d359f48cf60e3e5091872a", "score": "0.671109", "text": "public function decrypt($str, $keyType='KEY')\n {\n \t$str=urldecode($str);\n $randAddOn = substr($str, 0, 3);\n \n $hex = substr($str, 3);\n \n // get the key\n $key = $randAddOn . $this->get_key($keyType);\n\n \n if ( ! class_exists('PHPSecLib\\\\Crypt_Rijndael', false))\n \t{\n \t\timport('phpseclib/Crypt/Rijndael', 'vendor');\n \t}\n \t\n \t$rijndael = new \\PHPSecLib\\Crypt_Rijndael();\n \n $rijndael->setKey($key);\n \n $mm= base64_decode(str_replace(PHP_EOL,'',$hex));\n \n $tt=$rijndael->decrypt($mm);\n return $out= @unserialize($tt);\n \n \n }", "title": "" }, { "docid": "589cae9436e7af3878119a805bcdad69", "score": "0.67089164", "text": "public static function decrypt($value) {\n global $config;\n return AES::decryptValue($value, $config[\"aes_key\"]);\n }", "title": "" }, { "docid": "477e8843362f5f5afd0c542beab88285", "score": "0.6673212", "text": "function decryptString( $data, $iv ) {\r\n\r\n\t// Open the cipher\r\n\t$td = mcrypt_module_open('rijndael-128', '', 'ecb', '');\r\n\r\n\t// Determine the keysize length\r\n\t$ks = mcrypt_enc_get_key_size($td);\r\n\r\n\t// Create key\r\n\t$key = substr(md5('chi alphA secrets'), 0, $ks);\r\n\r\n\t// Initialize encryption module for decryption\r\n\tmcrypt_generic_init($td, $key, $iv);\r\n\r\n\t// Decrypt encrypted string\r\n\t$decrypted = mdecrypt_generic($td, $data);\r\n\r\n\t// Terminate decryption handle and close module\r\n\tmcrypt_generic_deinit($td);\r\n\tmcrypt_module_close($td);\r\n\r\n\t// Show string\r\n\treturn trim($decrypted);\r\n}", "title": "" }, { "docid": "0cc36bae91598f394e53edaa4cd13d45", "score": "0.6668417", "text": "public function decrypt($payload, $unserialize = true)\n {\n $payload = $this->getJsonPayload($payload);\n\n $iv = base64_decode($payload['iv']);\n\n // Here we will decrypt the value. If we are able to successfully decrypt it\n // we will then unserialize it and return it out to the caller. If we are\n // unable to decrypt this value we will throw out an exception message.\n $decrypted = \\openssl_decrypt(\n \\base64url_decode($payload['value']), strtolower($this->cipher), $this->key, OPENSSL_RAW_DATA, $iv\n );\n\n if ($decrypted === false) {\n throw new DecryptException('Could not decrypt the data.');\n }\n\n return $unserialize ? unserialize($decrypted) : $decrypted;\n }", "title": "" }, { "docid": "b84e857346aa57bbfb6941c8a96ab7d4", "score": "0.6666417", "text": "function decryptString($string, $method = 'base64') {\n $hashResidue = strrchr($string, '#');\n $string = str_replace($hashResidue, '', $string);\n switch ($method) {\n case 'rot13' : $decodedString = str_rot13(urldecode($string));break;\n case 'base64': $decodedString = base64_decode(urldecode($string));break;\n default : $decodedString = $string;break;\n }\n $decodedString .= $hashResidue;\n return $decodedString;\n}", "title": "" }, { "docid": "944ccd3be9ac193c16e517feeabbc340", "score": "0.6652689", "text": "public function decrypt($enc_string, $enc_pass, $depth=256)\t{\t\r\n\t\t\treturn AesCtr::decrypt($enc_string, $enc_pass, $depth);\r\n\t\t}", "title": "" }, { "docid": "4d103dd59e0d19a32c2366cc979bb964", "score": "0.66490734", "text": "public function decrypt($data)\n {\n $decoded = base64_decode($data);\n $iv = substr($decoded, 0, $this->iv_size);\n $encrypted = substr($decoded, $this->iv_size);\n\n return openssl_decrypt(\n $encrypted,\n self::ENCRYPTION_METHOD,\n $this->key,\n OPENSSL_RAW_DATA,\n $iv\n );\n }", "title": "" }, { "docid": "bfde4b924d7e732a517e197fea0780d3", "score": "0.66276973", "text": "public function decrypt($data)\n\t{\n\t\treturn $this->cipher->decrypt($data, $this->key);\n\t}", "title": "" }, { "docid": "7de20ad9dec6da71b53575b11017b0d7", "score": "0.6594028", "text": "public static function decrypt($s){\r\n\t\treturn mcrypt_decrypt(\r\n\t\t\t\t\tConstant::SECURE_CIPHER, Constant::SECURE_KEY, pack('H*', $s), Constant::SECURE_MODE, Constant::SECURE_IV\r\n\t\t\t );\r\n\t}", "title": "" }, { "docid": "e9ec3afed3cda90cf22086aac7960165", "score": "0.65931296", "text": "public function decrypt(string $ciphertext, string $key): string;", "title": "" }, { "docid": "ae98710d335e8cad69381777ae096a3a", "score": "0.6592113", "text": "public function decryptData($cipherData);", "title": "" }, { "docid": "14d5de266c1023acbbb7832b211d4a1d", "score": "0.65866005", "text": "function my_decrypt($data, $key) {\n $encryption_key = base64_decode($key);\n // To decrypt, split the encrypted data from our IV - our unique separator used was \"::\"\n list($encrypted_data, $iv) = explode('::', base64_decode($data), 2);\n return openssl_decrypt($encrypted_data, 'aes-128-cbc', $encryption_key, 0, $iv);\n }", "title": "" }, { "docid": "5342528128a6eacf3d123eb2f08bb4d7", "score": "0.6568289", "text": "public static function decode($text){\n\n\t\t$encrypted_text=str_split($text);\n\t\t$n=count($encrypted_text);\n\t\t$key=str_split(KEY);\n\t\t$m=count($key);\n\t\t$decrypted_text='';\n\n\t\tfor ($i=0; $i<$n;$i++){\n\n\t\t\t$decrypted_text.=chr(((26+ord($encrypted_text[$i])-65-ord($key[$i%$m])+65)%26) +65);\n\n\t\t}\n\t\t\t\n\t\treturn $decrypted_text;\n\n\t}", "title": "" }, { "docid": "6078e0a2c44259b9ca5344410fa4295b", "score": "0.656047", "text": "function passDecrypt($str)\n{\n\t$retstr=\"\";\n\t$lngth=strlen($str);\n\tfor($i=0;$i<$lngth;$i++)\n\t{\n\t\t$sch=substr($str,$i,1);\n\t\t$iasc=ord($sch) - 2*$i - 30;\n\t\tif($iasc<=0) $iasc=255+$iasc;\n\t\t$sch=chr($iasc);\n\t\t$retstr=$retstr.$sch;\n\t}\n\treturn trim($retstr);\n}", "title": "" }, { "docid": "1d53518eb0c1fbe20e078e11221d8beb", "score": "0.65551317", "text": "function my_decrypt($data , $key) {\n $encryption_key = base64_decode($key);\n // To decrypt, split the encrypted data from our IV - our unique separator used was \"::\"\n list($encrypted_data, $iv) = explode('::', base64_decode($data), 2);\n return openssl_decrypt($encrypted_data, 'aes-256-cbc', $encryption_key, 0, $iv);\n}", "title": "" }, { "docid": "edc3b2717e9e32852ecb5a0f7365f4c1", "score": "0.6554015", "text": "function decrypt($crypttext)\n {\n $priv_key = $this -> RsaPrivateKey;\n $tt=explode(\":::\",$crypttext);\n $cnt=count($tt);\n $i=0;\n $str='';\n while($i<$cnt)\n {\n openssl_private_decrypt($tt[$i],$str1,$priv_key);\n $str.=$str1;\n $i++;\n }\n return $str;\n }", "title": "" }, { "docid": "5db324675b805d4d81f6b30fd0bb97ac", "score": "0.65462375", "text": "public function LoadDecrypt($strId, $strKey)\n {\n // Load the encrypted text\n $strEncrypted = $this->Load($strId);\n\n // Decode the encrypted text\n $strText = $this->Decrypt($strEncrypted, $strKey);\n\n // Return the decrypted text\n return $strText;\n }", "title": "" }, { "docid": "cddb8296b9241a644b4326701e2ef10f", "score": "0.65254974", "text": "public function testDecrypt(): void\n {\n $message = 'Mares eat oats and does eat oats, but little lambs eat ivy.';\n $encrypted = $this->encryptor->encrypt($message);\n\n $this->assertEquals($message, $this->encryptor->decrypt($encrypted));\n }", "title": "" }, { "docid": "5e4b24e27cf36abc979fca484f398185", "score": "0.6516136", "text": "public function testLegacyDecrypt(): void\n {\n // sample data to encrypt\n $data = '0:2:z3a4ACpkU35W6pV692U4ueCVQP0m0v0p:' .\n 'DhEG8/uKGGq92ZusqrGb6X/9+2Ng0QZ9z2UZwljgJbs5/A3LaSnqcK0oI32yjHY49QJi+Z7q1EKu2yVqB8EMpA==';\n\n $actual = $this->encryptor->decrypt($data);\n\n // Extract the initialization vector and encrypted data\n [, , $iv, $encrypted] = explode(':', $data, 4);\n\n // Decrypt returned data with RIJNDAEL_256 cipher, cbc mode\n $crypt = new Crypt(self::CRYPT_KEY_1, MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC, $iv);\n // Verify decrypted matches original data\n $this->assertEquals($encrypted, base64_encode($crypt->encrypt($actual)));\n }", "title": "" }, { "docid": "e79377183cdb16ee95ca747ebd66ea68", "score": "0.65137947", "text": "public function decrypt($data)\n {\n return $this->cipher()->decrypt($this->key(), $data);\n }", "title": "" }, { "docid": "c2d0470b8d9130dbe5853b05ee9c23b5", "score": "0.6511904", "text": "public function decrypt($encrypted_string, $encryption_key) {\n\t $iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_ECB);\n\t $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n\t $decrypted_string = mcrypt_decrypt(MCRYPT_BLOWFISH, $encryption_key, $encrypted_string, MCRYPT_MODE_ECB, $iv);\n\t return $decrypted_string;\n\t}", "title": "" }, { "docid": "ce6a83a077f7c576fb22eb7f5c4c8967", "score": "0.65047294", "text": "function decrypt($ciphertext)\n {\n return $this->_crypt($ciphertext, CRYPT_RC4_DECRYPT);\n }", "title": "" }, { "docid": "1460eeaae189b7c5f0e7b7f250d1e490", "score": "0.6475225", "text": "function decifratura($stringa){\n\t\t$this->blowfish = new Horde_Cipher_blowfish;\n \n\t\t$decrypt = '';\n \n\t\t$data = base64_decode($stringa);\n\n \n\t\tforeach (str_split($data, 8 ) as $chunk){\n \n\t\t\t$decrypt .= $this->blowfish->decryptBlock($chunk, $this->getChiave());\n \n\t\t}\n \n\t\treturn trim($decrypt);\n\t}", "title": "" }, { "docid": "01adcfde20aa17a53fbbb5db1b9a1451", "score": "0.6468372", "text": "function decrypt($value)\n {\n return app('encrypter')->decrypt($value);\n }", "title": "" }, { "docid": "9853c6db2cf3278e6723f9c075b15fd2", "score": "0.64591795", "text": "public function decrypt(int $loop = 1) : string\n\t{\n\t\t$decrypted = Stringify::replace($this->prefix, '', $this->data);\n\t\treturn openssl_decrypt(\n\t\t\tTokenizer::unbase64($decrypted, $loop),\n\t\t\t$this->cipher,\n\t\t\t$this->key,\n\t\t\t$this->options,\n\t\t\t$this->vector\n\t\t);\n\t}", "title": "" }, { "docid": "13a0c140736e6c61449848c2416f860c", "score": "0.64189756", "text": "public function decrypt($input)\n {\n return @base64_decode(openssl_decrypt($input, 'AES-256-CFB', $this->key()));\n }", "title": "" }, { "docid": "cb1e051099d9ff021a1bf28f189d303a", "score": "0.64157903", "text": "function decryptText($encryptedText) {\n if(!$encryptedText) \n return false;\n\n $encrypt_method = \"AES-256-CBC\";\n $secret_key = 'BHEJLNWWQVQWGJSQS52D1QW32E52XWQE8';\n $secret_iv = 'BHEJLNWWQVQWGJSQS52D1QW32E52XWQE8';\n\n $key = hash('sha256', $secret_key);\n\n // iv - encrypt method AES-256-CBC expects 16 bytes - else you will get a warning\n $iv = substr(hash('sha256', $secret_iv), 0, 16);\n\n return openssl_decrypt(base64_decode($encryptedText), $encrypt_method, $key, 0, $iv);\n }", "title": "" }, { "docid": "e99f71d40f569c0f572259dfe910f87f", "score": "0.6409139", "text": "public static function decrypt ( \n\t\tstring $string, \n\t\tstring $method = 'AES-256-CBC', \n\t\tstring $hash = 'sha512' )\n\t{\n\t\t$skey = hash ( $hash, self::getKey('secret_key') );\n\t\t$siv = substr( $string, 0, 16 );\n\t\t$hash = substr( $string, 16, 32 );\n\t\t$ciphertext = substr( $string, 48 );\n\t\t$n_hash = substr( hash( 'sha512', $ciphertext.$skey ), 0, 32 );\n\n\t\tif ( $n_hash !== $hash )\n\t\t{ return false; }\n\n\t\treturn openssl_decrypt( base64_decode ( $ciphertext ), $method, $skey, 0, $siv );\n\t}", "title": "" }, { "docid": "d0355bc922e37993f90c8a7975015506", "score": "0.6398641", "text": "public function decrypt64(string $encryptedString)\n {\n if (!$encryptedString = base64_decode($encryptedString, true)) {\n return false;\n }\n return self::decrypt($encryptedString);\n }", "title": "" }, { "docid": "3616b9d74ab5ba436261aa2f5f8b1e80", "score": "0.6394067", "text": "public function decrypt($data)\n {\n // Don't do anything with empty data\n if(empty($data) || (is_string($data) == false && is_numeric($data) == false)) {\n return null;\n }\n\n // Detect data that is not encrypted\n $data = urldecode($data);\n if(strstr($data, '|=|') == false) {\n return $data;\n }\n\n // This is a serious bug: Base64-encoding can include plus-signs, but JSON thinks these are URL-encoded spaces. \n // We have to convert them back manually. Ouch! Another solution would be to migrate from JSON to another transport mechanism. Again ouch!\n $data = str_replace(' ', '+', $data);\n\n // Continue with decryption \n $array = explode('|=|', $data);\n if(isset($array[0]) && isset($array[1])) {\n $encrypted = Mage::helper('magebridge/encryption')->base64_decode($array[0]);\n $key = Mage::helper('magebridge/encryption')->getSaltedKey($array[1]);\n } else {\n return null;\n }\n\n try {\n\n $td = mcrypt_module_open(MCRYPT_CAST_256, '', 'ecb', '');\n $iv = substr($key, 0, mcrypt_get_iv_size(MCRYPT_CAST_256,MCRYPT_MODE_CFB));\n mcrypt_generic_init($td, $key, $iv);\n $decrypted = mdecrypt_generic($td, $encrypted);\n $decrypted = trim($decrypted);\n return $decrypted;\n\n } catch(Exception $e) {\n Mage::getSingleton('magebridge/debug')->error(\"Error while decrypting: \".$e->getMessage());\n return null;\n }\n }", "title": "" }, { "docid": "110d51551b5cabdbfd69d79630e1a221", "score": "0.6387147", "text": "function decrypt($ciphertext)\n {\n if ($this->engine != CRYPT_ENGINE_INTERNAL) {\n return parent::decrypt($ciphertext);\n }\n return $this->_crypt($ciphertext, CRYPT_RC4_DECRYPT);\n }", "title": "" }, { "docid": "745c01cc2a1a86823420e9fff6c2b3bd", "score": "0.63689965", "text": "public function decrypt($loop = 1)\n\t{\n\t\t$decrypted = Stringify::replace($this->prefix,'',$this->data);\n\t\treturn openssl_decrypt(\n\t\t\tTokenizer::unbase64($decrypted,$loop),$this->cipher,$this->key,$this->options,$this->vector\n\t\t);\n\t}", "title": "" }, { "docid": "625c382da0ebc1b85b21e4a0f0e02ccf", "score": "0.6361831", "text": "function simple_decrypt($text, $salt = \"earlysandwich.com\")\n\t {\n\t\treturn trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $salt, base64_decode($text), MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND)));\n\t}", "title": "" }, { "docid": "3668e32d8ecfa9c18ea3a714fc351307", "score": "0.63560426", "text": "public function decrypt($data, TCryptKey $key);", "title": "" }, { "docid": "3dbbed458d7392dac74b895762c036b2", "score": "0.6347121", "text": "function decrypt($ciphertext)\n {\n if ($this->paddable) {\n // we pad with chr(0) since that's what mcrypt_generic does. to quote from {@link http://www.php.net/function.mcrypt-generic}:\n // \"The data is padded with \"\\0\" to make sure the length of the data is n * blocksize.\"\n $ciphertext = str_pad($ciphertext, strlen($ciphertext) + ($this->block_size - strlen($ciphertext) % $this->block_size) % $this->block_size, chr(0));\n }\n\n if ($this->engine === CRYPT_ENGINE_OPENSSL) {\n if ($this->changed) {\n $this->_clearBuffers();\n $this->changed = false;\n }\n switch ($this->mode) {\n case CRYPT_MODE_STREAM:\n $plaintext = openssl_decrypt($ciphertext, $this->cipher_name_openssl, $this->key, $this->openssl_options);\n break;\n case CRYPT_MODE_ECB:\n if (!defined('OPENSSL_RAW_DATA')) {\n $ciphertext.= openssl_encrypt('', $this->cipher_name_openssl_ecb, $this->key, true);\n }\n $plaintext = openssl_decrypt($ciphertext, $this->cipher_name_openssl, $this->key, $this->openssl_options);\n break;\n case CRYPT_MODE_CBC:\n if (!defined('OPENSSL_RAW_DATA')) {\n $padding = str_repeat(chr($this->block_size), $this->block_size) ^ substr($ciphertext, -$this->block_size);\n $ciphertext.= substr(openssl_encrypt($padding, $this->cipher_name_openssl_ecb, $this->key, true), 0, $this->block_size);\n $offset = 2 * $this->block_size;\n } else {\n $offset = $this->block_size;\n }\n $plaintext = openssl_decrypt($ciphertext, $this->cipher_name_openssl, $this->key, $this->openssl_options, $this->decryptIV);\n if ($this->continuousBuffer) {\n $this->decryptIV = substr($ciphertext, -$offset, $this->block_size);\n }\n break;\n case CRYPT_MODE_CTR:\n $plaintext = $this->_openssl_ctr_process($ciphertext, $this->decryptIV, $this->debuffer);\n break;\n case CRYPT_MODE_CFB:\n // cfb loosely routines inspired by openssl's:\n // {@link http://cvs.openssl.org/fileview?f=openssl/crypto/modes/cfb128.c&v=1.3.2.2.2.1}\n $plaintext = '';\n if ($this->continuousBuffer) {\n $iv = &$this->decryptIV;\n $pos = &$this->buffer['pos'];\n } else {\n $iv = $this->decryptIV;\n $pos = 0;\n }\n $len = strlen($ciphertext);\n $i = 0;\n if ($pos) {\n $orig_pos = $pos;\n $max = $this->block_size - $pos;\n if ($len >= $max) {\n $i = $max;\n $len-= $max;\n $pos = 0;\n } else {\n $i = $len;\n $pos+= $len;\n $len = 0;\n }\n // ie. $i = min($max, $len), $len-= $i, $pos+= $i, $pos%= $this->blocksize\n $plaintext = substr($iv, $orig_pos) ^ $ciphertext;\n $iv = substr_replace($iv, substr($ciphertext, 0, $i), $orig_pos, $i);\n $ciphertext = substr($ciphertext, $i);\n }\n $overflow = $len % $this->block_size;\n if ($overflow) {\n $plaintext.= openssl_decrypt(substr($ciphertext, 0, -$overflow), $this->cipher_name_openssl, $this->key, $this->openssl_options, $iv);\n if ($len - $overflow) {\n $iv = substr($ciphertext, -$overflow - $this->block_size, -$overflow);\n }\n $iv = openssl_encrypt(str_repeat(\"\\0\", $this->block_size), $this->cipher_name_openssl, $this->key, $this->openssl_options, $iv);\n $plaintext.= $iv ^ substr($ciphertext, -$overflow);\n $iv = substr_replace($iv, substr($ciphertext, -$overflow), 0, $overflow);\n $pos = $overflow;\n } elseif ($len) {\n $plaintext.= openssl_decrypt($ciphertext, $this->cipher_name_openssl, $this->key, $this->openssl_options, $iv);\n $iv = substr($ciphertext, -$this->block_size);\n }\n break;\n case CRYPT_MODE_OFB:\n $plaintext = $this->_openssl_ofb_process($ciphertext, $this->decryptIV, $this->debuffer);\n }\n\n return $this->paddable ? $this->_unpad($plaintext) : $plaintext;\n }\n\n if ($this->engine === CRYPT_ENGINE_MCRYPT) {\n $block_size = $this->block_size;\n if ($this->changed) {\n $this->_setupMcrypt();\n $this->changed = false;\n }\n if ($this->dechanged) {\n @mcrypt_generic_init($this->demcrypt, $this->key, $this->decryptIV);\n $this->dechanged = false;\n }\n\n if ($this->mode == CRYPT_MODE_CFB && $this->continuousBuffer) {\n $iv = &$this->decryptIV;\n $pos = &$this->debuffer['pos'];\n $len = strlen($ciphertext);\n $plaintext = '';\n $i = 0;\n if ($pos) {\n $orig_pos = $pos;\n $max = $block_size - $pos;\n if ($len >= $max) {\n $i = $max;\n $len-= $max;\n $pos = 0;\n } else {\n $i = $len;\n $pos+= $len;\n $len = 0;\n }\n // ie. $i = min($max, $len), $len-= $i, $pos+= $i, $pos%= $blocksize\n $plaintext = substr($iv, $orig_pos) ^ $ciphertext;\n $iv = substr_replace($iv, substr($ciphertext, 0, $i), $orig_pos, $i);\n }\n if ($len >= $block_size) {\n $cb = substr($ciphertext, $i, $len - $len % $block_size);\n $plaintext.= @mcrypt_generic($this->ecb, $iv . $cb) ^ $cb;\n $iv = substr($cb, -$block_size);\n $len%= $block_size;\n }\n if ($len) {\n $iv = @mcrypt_generic($this->ecb, $iv);\n $plaintext.= $iv ^ substr($ciphertext, -$len);\n $iv = substr_replace($iv, substr($ciphertext, -$len), 0, $len);\n $pos = $len;\n }\n\n return $plaintext;\n }\n\n $plaintext = @mdecrypt_generic($this->demcrypt, $ciphertext);\n\n if (!$this->continuousBuffer) {\n @mcrypt_generic_init($this->demcrypt, $this->key, $this->decryptIV);\n }\n\n return $this->paddable ? $this->_unpad($plaintext) : $plaintext;\n }\n\n if ($this->changed) {\n $this->_setup();\n $this->changed = false;\n }\n if ($this->use_inline_crypt) {\n $inline = $this->inline_crypt;\n return $inline('decrypt', $this, $ciphertext);\n }\n\n $block_size = $this->block_size;\n\n $buffer = &$this->debuffer;\n $plaintext = '';\n switch ($this->mode) {\n case CRYPT_MODE_ECB:\n for ($i = 0; $i < strlen($ciphertext); $i+=$block_size) {\n $plaintext.= $this->_decryptBlock(substr($ciphertext, $i, $block_size));\n }\n break;\n case CRYPT_MODE_CBC:\n $xor = $this->decryptIV;\n for ($i = 0; $i < strlen($ciphertext); $i+=$block_size) {\n $block = substr($ciphertext, $i, $block_size);\n $plaintext.= $this->_decryptBlock($block) ^ $xor;\n $xor = $block;\n }\n if ($this->continuousBuffer) {\n $this->decryptIV = $xor;\n }\n break;\n case CRYPT_MODE_CTR:\n $xor = $this->decryptIV;\n if (strlen($buffer['ciphertext'])) {\n for ($i = 0; $i < strlen($ciphertext); $i+=$block_size) {\n $block = substr($ciphertext, $i, $block_size);\n if (strlen($block) > strlen($buffer['ciphertext'])) {\n $buffer['ciphertext'].= $this->_encryptBlock($xor);\n $this->_increment_str($xor);\n }\n $key = $this->_string_shift($buffer['ciphertext'], $block_size);\n $plaintext.= $block ^ $key;\n }\n } else {\n for ($i = 0; $i < strlen($ciphertext); $i+=$block_size) {\n $block = substr($ciphertext, $i, $block_size);\n $key = $this->_encryptBlock($xor);\n $this->_increment_str($xor);\n $plaintext.= $block ^ $key;\n }\n }\n if ($this->continuousBuffer) {\n $this->decryptIV = $xor;\n if ($start = strlen($ciphertext) % $block_size) {\n $buffer['ciphertext'] = substr($key, $start) . $buffer['ciphertext'];\n }\n }\n break;\n case CRYPT_MODE_CFB:\n if ($this->continuousBuffer) {\n $iv = &$this->decryptIV;\n $pos = &$buffer['pos'];\n } else {\n $iv = $this->decryptIV;\n $pos = 0;\n }\n $len = strlen($ciphertext);\n $i = 0;\n if ($pos) {\n $orig_pos = $pos;\n $max = $block_size - $pos;\n if ($len >= $max) {\n $i = $max;\n $len-= $max;\n $pos = 0;\n } else {\n $i = $len;\n $pos+= $len;\n $len = 0;\n }\n // ie. $i = min($max, $len), $len-= $i, $pos+= $i, $pos%= $blocksize\n $plaintext = substr($iv, $orig_pos) ^ $ciphertext;\n $iv = substr_replace($iv, substr($ciphertext, 0, $i), $orig_pos, $i);\n }\n while ($len >= $block_size) {\n $iv = $this->_encryptBlock($iv);\n $cb = substr($ciphertext, $i, $block_size);\n $plaintext.= $iv ^ $cb;\n $iv = $cb;\n $len-= $block_size;\n $i+= $block_size;\n }\n if ($len) {\n $iv = $this->_encryptBlock($iv);\n $plaintext.= $iv ^ substr($ciphertext, $i);\n $iv = substr_replace($iv, substr($ciphertext, $i), 0, $len);\n $pos = $len;\n }\n break;\n case CRYPT_MODE_OFB:\n $xor = $this->decryptIV;\n if (strlen($buffer['xor'])) {\n for ($i = 0; $i < strlen($ciphertext); $i+=$block_size) {\n $block = substr($ciphertext, $i, $block_size);\n if (strlen($block) > strlen($buffer['xor'])) {\n $xor = $this->_encryptBlock($xor);\n $buffer['xor'].= $xor;\n }\n $key = $this->_string_shift($buffer['xor'], $block_size);\n $plaintext.= $block ^ $key;\n }\n } else {\n for ($i = 0; $i < strlen($ciphertext); $i+=$block_size) {\n $xor = $this->_encryptBlock($xor);\n $plaintext.= substr($ciphertext, $i, $block_size) ^ $xor;\n }\n $key = $xor;\n }\n if ($this->continuousBuffer) {\n $this->decryptIV = $xor;\n if ($start = strlen($ciphertext) % $block_size) {\n $buffer['xor'] = substr($key, $start) . $buffer['xor'];\n }\n }\n break;\n case CRYPT_MODE_STREAM:\n $plaintext = $this->_decryptBlock($ciphertext);\n break;\n }\n return $this->paddable ? $this->_unpad($plaintext) : $plaintext;\n }", "title": "" }, { "docid": "1e785f5185302d9fdc47e3a720ae80f5", "score": "0.6343241", "text": "public function decrypt($payload, $unserialize = true)\n {\n $payload = $this->decodePayload($payload);\n\n // The payload could not be decoded, invalid payload format\n if($payload === false)\n {\n throw new DecryptionException('Decryption failed, invalid payload');\n }\n\n // Validate that the message authentication code (MAC) has not changed\n if($this->validateHMAC($payload) === false)\n {\n throw new DecryptionException('Decryption failed, invalid HMAC comparison, data has been changed');\n }\n\n $ivector = base64_decode($payload['ivector']);\n\n $decrypted = openssl_decrypt($payload['encrypted'], $this->cipher, $this->key, 0, $ivector);\n\n if($decrypted === false)\n {\n throw new DecryptionException('Decryption failed using openssl');\n }\n\n // Return the decrypted data and unserialize the data if set to true\n return $unserialize ? unserialize($decrypted, ['allowed_classes' => false]) : $decrypted;\n }", "title": "" }, { "docid": "ca7fe93fe446a562e8c894ad8c0c9f3e", "score": "0.6336049", "text": "function decrypt_with_key($string, $key) {\n $result = '';\n $string = base64_decode($string);\n for($i = 0; $i < strlen($string); $i++) {\n $char = substr($string, $i, 1);\n $keychar = substr($key, ($i % strlen($key)) - 1, 1);\n $char = chr(ord($char) - ord($keychar));\n $result .= $char;\n }\n return $result;\n}", "title": "" }, { "docid": "b94fab77f7efc870802dbd998554bb0e", "score": "0.6333748", "text": "public function decode($value){\n if(!$value){return false;}\n $crypttext = $this->safe_b64decode($value); \n $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB);\n $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n $decrypttext = mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $this->skey, $crypttext, MCRYPT_MODE_ECB, $iv);\n return trim($decrypttext);\n }", "title": "" }, { "docid": "1961f070b4de37e8599b94fad601b4bb", "score": "0.6329296", "text": "function decrypt_string($salt, $initialization_vector_with_string) {\n // The cipher type and cipher mode must match in the\n // encryption function\n $cipher_type = MCRYPT_RJINDAEL_256;\n $cipher_mode = MCRYPT_MODE_CBC;\n\n // Remove the initialization vector from the encrypted string\n // The initialization vector was appended on the front of the encrypted string\n $initialization_vector_size = mcrypt_get_iv_size($cipher_type, $cipher_mode);\n $initialization_vector = \n substr($initialization_vector_with_string, 0, $initialization_vector_size);\n $encrypted_string = \n substr($initialization_vector_with_string, $initialization_vector_size);\n\n // Decrypt and return the string\n $string = mcrypt_decrypt($cipher_type, $salt, $encrypted_string, $cipher_mode, $initialize_vector);\n return $string;\n }", "title": "" }, { "docid": "8a9d5f935ce08d2cf856950f79b00b33", "score": "0.63271374", "text": "public function encryptDecrypt($string, $action = 'e') {\n $secret_key = $this->skey;\n $secret_iv = $this->skey;\n\n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n $key = hash('sha256', $secret_key);\n $iv = substr(hash('sha256', $secret_iv), 0, 16);\n\n if ($action == 'e') {\n $output = base64_encode(openssl_encrypt($string, $encrypt_method, $key, 0, $iv));\n } else if ($action == 'd') {\n $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv);\n }\n\n return $output;\n }", "title": "" }, { "docid": "33d33f58316c8f49e9ffc8a553b7090b", "score": "0.63229185", "text": "public static function doDecrypt($encrypted_txt, $secretkey = null) {\n\n if ($secretkey == null) { $secretkey = self::$secret_key; } \n\n // get hash, prefixed to encrypted_txt\n \n $hash = substr($encrypted_txt, 0, 10);\n \n // remove hash from encrypted_txt\n \n $encrypted_txt = substr($encrypted_txt, 10);\n \n // check if hash is correct (compare with hash_on_the_fly)\n \n $hash_on_the_fly = substr( hash('sha512', $encrypted_txt) , 0, 10);\n if ($hash !== $hash_on_the_fly) { return null; }\n \n \n // smaller parts were glued together with underscore (_) and replaced by a letter \n \n $encrypted_txt = self::replace(\"back\", $encrypted_txt);\n\n // encrypted_txt should be split in smaller parts and decrypted seperatly (because open_ssl / RSA limitation)\n \n $arr = explode(\"_\", $encrypted_txt);\n foreach ($arr as $v) { $decrypted_txt .= self::doEncryptDecrypt('decrypt', $secretkey, $v); }\n \n // remove salt\n $decrypted_txt = substr($decrypted_txt, 10);\n \n return utf8_encode($decrypted_txt);\n }", "title": "" }, { "docid": "8c6cc50128d941b62d3fa044e760fdaa", "score": "0.6321074", "text": "public static function decode($encrypted_string, $encryption_key)\n {\n $iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_ECB);\n $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n $decrypted_string = mcrypt_decrypt(MCRYPT_BLOWFISH, md5(base64_encode(trim($encryption_key))), base64_decode(trim($encrypted_string)), MCRYPT_MODE_ECB, $iv);\n return $decrypted_string;\n }", "title": "" }, { "docid": "b0ec800e4ac4053a6acd1a77d1f55837", "score": "0.63131726", "text": "public function decrypt($data)\n {\n return $this->_skip32($data, false);\n }", "title": "" }, { "docid": "d931548d480420de92b86568ec2397a6", "score": "0.6312805", "text": "public function decryptString($jsonPayload)\n {\n return $this->decrypt($jsonPayload, false);\n }", "title": "" }, { "docid": "d931548d480420de92b86568ec2397a6", "score": "0.6312805", "text": "public function decryptString($jsonPayload)\n {\n return $this->decrypt($jsonPayload, false);\n }", "title": "" }, { "docid": "a37c3f2d26c3e39cfcde19196eae29c5", "score": "0.63066393", "text": "public function decrypt($ciphertext)\n {\n //the ciphertext length has to be at least ivSize + hashSize + 1\n if (strlen($ciphertext) < ($this->ivSize + $this->hashSize + 1))\n {\n throw new UnexpectedValueException('Ciphertext is too small.');\n }\n\n //extract and remove hmac from end of ciphertext\n $hmacGiven = substr($ciphertext, (-1) * $this->hashSize);\n $ciphertext = substr($ciphertext, 0, (-1) * $this->hashSize);\n \n //generate real hmac ...\n $hmacReal = hash_hmac('ripemd160', $ciphertext, $this->hashKey, true);\n //... and compare with given one for authentication\n if ($hmacGiven !== $hmacReal)\n {\n throw new ullSecurityNotGenuineException('Invalid HMAC received.');\n }\n \n //extract IV from ciphertext\n $iv = substr($ciphertext, 0, $this->ivSize);\n //init crypt. module with key and IV\n mcrypt_generic_init($this->cryptModule, $this->mainKey, $iv);\n\n //remove IV from ciphertext and decrypt\n $ciphertext = substr($ciphertext, $this->ivSize);\n $cleartext = mdecrypt_generic($this->cryptModule, $ciphertext);\n \n //right trim zero-padding (caused by CBC mode)\n $cleartext = rtrim($cleartext, \"\\0\");\n \n mcrypt_generic_deinit($this->cryptModule);\n \n return $cleartext;\n }", "title": "" }, { "docid": "22ff693cfe8e2ce2f9c61f718c97a141", "score": "0.63028055", "text": "function decrypt($data, $params = array())\n {\n return $data;\n }", "title": "" }, { "docid": "5653ab8da665d9b64bdfa01600a8f766", "score": "0.6295758", "text": "public function decryptTextBase64($text){\r\n\t\treturn $this->getCipher()->decrypt( base64_decode( $text ) );\r\n\t}", "title": "" }, { "docid": "e457b9921e4b1773c54d9bd86fdbe38d", "score": "0.62911046", "text": "public function decrypt(string $encryptedString)\n {\n $ivLen = openssl_cipher_iv_length($this->encryptionMethod);\n $cTextOffset = 0;\n $encryptionKey = self::getKey();\n if ($definedIV = $this->isIVPredefined === false) {\n $this->iv = substr($encryptedString, 0, $ivLen);\n $cTextOffset += $ivLen;\n }\n if ($this->enableSignature === true) {\n $cTextOffset += $this->sha2Len;\n $hash = substr(\n $encryptedString,\n $definedIV ? $ivLen : 0,\n $this->sha2Len\n );\n }\n $cText = substr($encryptedString, $cTextOffset);\n\n if ($this->enableSignature === true && !empty($hash) && !hash_equals($hash, hash_hmac($this->hmacAlgo, $cText, $encryptionKey, true))) {\n return false;\n }\n\n return openssl_decrypt(\n $cText,\n $this->encryptionMethod,\n $encryptionKey,\n OPENSSL_RAW_DATA,\n $this->iv\n );\n }", "title": "" } ]
06a65f855820d4c8c589506f9532fc19
Initializes Dropzone js plugin options.
[ { "docid": "00243bc94d33011349dc1e1a2d425fd3", "score": "0.6001968", "text": "protected function initOptions()\n {\n $defaultOptions = [\n 'addRemoveLinks' => true,\n ];\n\n foreach ($defaultOptions as $key => $value) {\n if (!isset($this->options[$key]) && !array_key_exists($key, $this->options)) {\n $this->options[$key] = $value;\n }\n }\n }", "title": "" } ]
[ { "docid": "b515ea07232953a477e674f0020be2dd", "score": "0.6305751", "text": "public function __construct()\n {\n $this->setOptions();\n }", "title": "" }, { "docid": "a2c4428cd0022f9f64e121ccddf9e2c6", "score": "0.62305456", "text": "protected function initOptions()\n {\n if (!isset($this->options['id'])) {\n $this->options['id'] = 'plyr-' . $this->getId();\n }\n if(isset($this->options['type']) && $this->options['type'] === 'audio')\n $this->type = 'audio';\n else\n $this->type = 'video';\n }", "title": "" }, { "docid": "3ab31ec53c5522a86bdb0a6f65ae58f2", "score": "0.60642856", "text": "function tja_init_avatar_options() {\n\t\n\t//only show \"Uploaded\" if they have one\n\tif( !empty( wp_get_current_user()->user_avatar_path ) )\n\t\tnew tja_Uploaded_Avatar_Option();\n\t\t\n\tnew tja_Gravatar_Avatar_Option();\n\t\n\tnew tja_SSO_Facebook();\n\tnew tja_SSO_Twitter();\n}", "title": "" }, { "docid": "fde53dc8be578b5ada321c707c24283b", "score": "0.6032813", "text": "private function set_upload_options()\n{\n $config = array();\n $config['upload_path'] = './uploads/';\n $config['allowed_types'] = 'gif|jpg|png';\n $config['max_size'] = 10000;\n $config['max_width'] = 10240;\n $config['max_height'] = 76800;\n return $config;\n}", "title": "" }, { "docid": "e46a1b0f6314388a2cceef164510d144", "score": "0.60152406", "text": "public function __construct($options) {\r\n $this->files = array();\r\n $this->type = $options['type'];\r\n $this->minify = $options['minify'];\r\n }", "title": "" }, { "docid": "7b69def84b5aff6e7fc5947594be12ff", "score": "0.596596", "text": "protected function __construct() {\n\n\t\t/* Initialize Options Array */\n\t\t$this->options = array(\n\t\t\t'settings' => array(),\n\t\t\t'sections' => array(),\n\t\t\t'panels' => array(),\n\t\t\t);\n\n\t}", "title": "" }, { "docid": "6e2479611f4ad4f4dbb7ce4c2356c24d", "score": "0.5915077", "text": "private function set_upload_options()\n {\n $config = array();\n $config['upload_path'] = './tolet_post/real_img/';\n $config['allowed_types'] = 'gif|jpg|png|jpeg';\n// $config['max_size'] = '48000';\n $config['overwrite'] = FALSE;\n $config['remove_space'] = True;\n\n return $config;\n }", "title": "" }, { "docid": "61246de216c1480da28712e199582680", "score": "0.58691525", "text": "private function set_upload_options()\n\t{\n\t $config = array();\n\t $config['upload_path'] = './Images/';\n\t $config['allowed_types'] = 'gif|jpg|png';\n\t $config['max_size'] = '0';\n\t $config['overwrite'] = FALSE;\n\n\t return $config;\n\t}", "title": "" }, { "docid": "e79401c18d12e2e570e4e9c97ed1eb09", "score": "0.58508205", "text": "private function set_upload_options()\n\t{\n\t $config = array();\n\t $config['upload_path'] = './Images/';\n\t $config['allowed_types'] = 'gif|jpg|png';\n\t $config['max_size'] = '0';\n\t $config['overwrite'] = FALSE;\n\n\n\t return $config;\n\t}", "title": "" }, { "docid": "9992128d09cd218f23459ac63717d1ed", "score": "0.58495003", "text": "public function init()\n {\n $this->initOptions();\n\n parent::init();\n }", "title": "" }, { "docid": "6806734b54d4803079421829e32609fa", "score": "0.583521", "text": "function set_upload_options() {\n $config = array();\n $config['upload_path'] = './assets/uploads_blog/';\n $config['allowed_types'] = 'gif|jpg|png';\n /* $config['max_size'] = '2048'; */\n $config['overwrite'] = FALSE;\n // echo '<pre/>';print_r($config);exit();\n return $config;\n }", "title": "" }, { "docid": "a45f91d655118dbee970f636aa4aa758", "score": "0.5828325", "text": "private function set_upload_options()\n {\n $config = array();\n $config['upload_path'] = './uploads/files'; //give the path to upload the image in folder\n $config['allowed_types'] = 'gif|jpg|png';\n $config['max_size'] = '0';\n $config['overwrite'] = FALSE;\n return $config;\n }", "title": "" }, { "docid": "0e24c23a719fa376f655015b8ea0a8d8", "score": "0.58184797", "text": "public function init()\n {\n if(!isset($this->htmlOptions['id']))\n {\n $this->htmlOptions['id']=$this->id;\n }\n\n // If there is a file upload, change the enc type\n foreach($this->fields as $loField)\n {\n if (trim($loField['type'])==='imageupload')\n {\n $this->htmlOptions['enctype'] = 'multipart/form-data';\n break;\n }\n }\n }", "title": "" }, { "docid": "eba79dd519755488ee0368783e4b8ba3", "score": "0.5810973", "text": "public function __construct() {\n\t\t$this->options = array(\n\t\t\tarray(\n\t\t\t\t'title', 'text', '',\n\t\t\t\t'label'\t\t=> esc_html__('Title', 'dfd-native'),\n\t\t\t\t'input'\t\t=> 'text',\n\t\t\t\t'filters'\t=> 'widget_title',\n\t\t\t\t'on_update'\t=> 'esc_attr'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'head_image', 'text', '',\n\t\t\t\t'label'\t\t=> esc_html__('Upload image', 'dfd-native'),\n\t\t\t\t'input'\t\t=> 'upload_image',\n\t\t\t\t'on_update'\t=> 'esc_attr'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'alignment', 'text', '',\n\t\t\t\t'label'\t\t=> esc_html__('Alignment', 'dfd-native'),\n\t\t\t\t'input'\t\t=> 'custom_select',\n\t\t\t\t'values'\t=>\tarray(\n\t\t\t\t\t'text-left'\t\t=> esc_html__('Left', 'dfd-native'),\n\t\t\t\t\t'text-center'\t=> esc_html__('Center', 'dfd-native'),\n\t\t\t\t\t'text-right'\t=> esc_html__('Right', 'dfd-native')\n\t\t\t\t),\n\t\t\t\t'on_update'\t=> 'esc_attr'\n\t\t\t),\n\t\t);\n\t\t\n parent::__construct();\n }", "title": "" }, { "docid": "36706c7ccf3d2184d00e03680bf33225", "score": "0.58016676", "text": "protected function _set_upload_options ( ) { \n //upload an image options\n $config = array();\n $config['upload_path'] = UPLOAD_PRODUCTS;\n $config['allowed_types']= '*';//'gif|jpg|png|jpeg|gif|bmp|raw|psd|tiff';\n $config['max_size'] = '0';\n $config['overwrite'] = FALSE;\n\n return $config;\n }", "title": "" }, { "docid": "31072fdea1329488effe7f853abf27b0", "score": "0.5797336", "text": "public function init() {\n parent::init();\n\n $script = '';\n $view = $this->getView();\n\n if (empty($this->options['id'])) {\n $this->options['id'] = $this->getId();\n }\n\n $opts = \\yii\\helpers\\Json::encode([\n 'viewFrom' => $this->viewFrom\n ]);\n $script .= \"$('#{$this->options['id']}').filemanagerGallery({$opts});\";\n $this->_galleryClientFunc = 'fmGalleryInit_' . hash('crc32', $script);\n $view->registerJs(\"var {$this->_galleryClientFunc}=function(){\\n{$script}\\n};\\n{$this->_galleryClientFunc}();\");\n }", "title": "" }, { "docid": "304c65b89096d48695c1aa8d29bf41e7", "score": "0.57886523", "text": "public function __construct() {\n\n add_action( 'plugins_loaded', array( $this, 'plugin_init' ) );\n $this->options = $options = get_option( self::OPTION_KEY );\n\n }", "title": "" }, { "docid": "2211515d8ddd45152eaefee412968245", "score": "0.57834136", "text": "public function init()\n {\n $options = $this->getOptions();\n $config = $options['config'];\n $this->_setFileConfig($config);\n $this->_setNavigation();\n }", "title": "" }, { "docid": "68abd262dad880a7eda5f2b066da39f7", "score": "0.5771927", "text": "protected function initOptions()\n {\n $this->_tag = ArrayHelper::remove($this->options, 'tag', 'fieldset');\n if (empty($this->options['id'])) {\n $this->options['id'] = $this->getId();\n }\n }", "title": "" }, { "docid": "e01eed75a779b44230899fe5c95d7bbf", "score": "0.577068", "text": "protected function init( $options = [] ) {\r\n $this->setOptions( $options );\r\n }", "title": "" }, { "docid": "52d104a6bdf2f13daef54817851526fe", "score": "0.5765656", "text": "function __construct() {\n $this->pluginUrl = plugins_url( null, __FILE__ );\n $this->options = get_option($this->optionsSlug);\n }", "title": "" }, { "docid": "301871dacd0f48df51cdcf584bc4ad85", "score": "0.57549286", "text": "private function set_upload_options()\n\n {\n\n $config = array();\n\n $config['upload_path'] = './uploads/documents/';\n\n $config['allowed_types'] = 'gif|jpg|png|jpeg';\n\n $config['overwrite'] = FALSE;\n\n $config['file_name'] = time().rand(10,100);\n\n\n\n return $config;\n\n }", "title": "" }, { "docid": "be861c0e1fc724c5b0ae775ff6fb92d4", "score": "0.5735814", "text": "private function set_upload_options()\r\n{\r\n $config = array();\r\n $config['upload_path'] = './assets/img/products';\r\n $config['allowed_types'] = 'gif|jpg|png|jpeg';\r\n $config['max_size'] = '0';\r\n $config['overwrite'] = FALSE;\r\n\r\n return $config;\r\n}", "title": "" }, { "docid": "037fef7eacf860e43a9c1043ce0a1dde", "score": "0.57255745", "text": "private function get_options()\n\t{\n\t\tif ( !class_exists( 'DS_Plugin_Options', FALSE ) )\n\t\t\t$this->load_class('pluginoptions');\n\t\tif ( NULL === $this->options ) {\n\t\t\t$this->get_directories();\n\t\t\t$defaults = array(\n\t\t\t\t'archive' => 'daily',\n\t\t\t\t'time' => '00',\n\t\t\t\t'mode' => 'single',\n\t\t\t\t'location' => $this->dirs['user_dir'] . self::ARCHIVE_DIR_NAME . DIRECTORY_SEPARATOR\n\t\t\t);\n\t\t\t// $option_file was initialized in __construct()\n\t\t\t$this->options = new DS_Plugin_Options( NULL, $this->option_file, $defaults );\n\t\t}\n\t}", "title": "" }, { "docid": "084d9cca4eb47fda7e6d778149535057", "score": "0.5719869", "text": "private function set_upload_options()\n{\n $config = array();\n $config['upload_path'] = './uploads/';\n $config['allowed_types'] = 'gif|jpg|png';\n\n //$config['max_size'] = '100';\n // $config['max_width'] = '1024';\n //$config['max_height'] = '768';\n $config['overwrite'] = FALSE;\n\n return $config;\n}", "title": "" }, { "docid": "fe552cfcce8d01844fe3febb3c9e989c", "score": "0.5719007", "text": "public function init() {\r\n\t\t\r\n\t\tparent::init();\r\n\t\t\r\n\t\t$this->options = CMap::mergeArray(\r\n\t\t\tarray(\r\n\t\t\t\t'suggestions' => $this->suggestions,\r\n\t\t\t\t'restrictTo' => $this->restrictTo,\r\n\t\t\t\t'exclude' => $this->exclude,\r\n\t\t\t\t'displayPopovers' => $this->displayPopovers,\r\n\t\t\t\t'tagClass' => $this->tagClass,\r\n\t\t\t\t'tagData' => $this->tagData,\r\n\t\t\t\t'popoverData' => $this->popoverData\r\n\t\t\t),\r\n\t\t\t$this->options\r\n\t\t);\r\n\t}", "title": "" }, { "docid": "bcef2300815d7d335409049029e33eb4", "score": "0.57144505", "text": "private function set_upload_options()\r\n {\r\n $config['upload_path'] = './images/service-entry-images/';\r\n $config['allowed_types'] = 'gif|jpg|png|jpeg|bmp';\r\n $config['overwrite'] = TRUE;\r\n //$config['file_name'] = date('Ymd').time().(microtime()*10000000);\r\n\r\n return $config;\r\n }", "title": "" }, { "docid": "1128e7a62ba116c08dff8b3f5c7e5068", "score": "0.56888187", "text": "function set_upload_options()\n{\n $config = array();\n $config['upload_path'] = './resources/images/products/';\n $config['allowed_types'] = 'gif|jpg|png';\n $config['max_size'] = '0';\n $config['overwrite'] = FALSE;\n\n return $config;\n}", "title": "" }, { "docid": "77e504eff637bd3b80209731d0c7080d", "score": "0.56640315", "text": "public function __construct( $options = [] ) {\r\n $this->setOptions($options);\r\n }", "title": "" }, { "docid": "f0e3ab0b22fed6a18e9c3b9c39b7b0c5", "score": "0.5654843", "text": "private function set_upload_options()\r\n{\r\n $config = array();\r\n $config['upload_path'] = './data/W/';\r\n $config['allowed_types'] = 'gif|jpg|png';\r\n $config['max_size'] = '0';\r\n $config['overwrite'] = FALSE;\r\n\t// print_r($config);\tdie;\r\n\treturn $config;\r\n}", "title": "" }, { "docid": "d2dee1f91b717a74556d18c0bcc80728", "score": "0.5630289", "text": "public function init($options)\n {\n }", "title": "" }, { "docid": "397969a0476b2a3e71916ff7c8ffbd32", "score": "0.5620467", "text": "public function __construct($options= null){\n\t\t\n\t\t\n\t\t$imp = implode('|', $this->accept);\n\t\t$imgregexp = '/^.*\\.('.$imp.')$/i';\n\n\t\t// Defines which files (based on their names) are accepted for upload: 'accept_file_types' => '/.+$/i', \n\t\t$this->options = array('accept_file_types' => '/.+$/i',\n\t\t\t'max_file_size' => null,\n\t\t\t'min_file_size' => 1,\n\t\t\t'max_number_of_files' => null,\n\t\t\t'accept_file_types' => $imgregexp);\t\t\n\t\t\n\t\t$this->error = array();\n\t\t if ($options) {\n $this->options = $options + $this->options;\n }\t\t\n\n\t}", "title": "" }, { "docid": "ba95e027ced938c612488b0e9625f052", "score": "0.55894345", "text": "public function init_plugin_options() {\n\t\t\t$this->enable_pro_forma = ( 'yes' == ywpi_get_option ( 'ywpi_enable_pro_forma' ) );\n\t\t\t$this->send_pro_forma = ( 'yes' == ywpi_get_option ( 'ywpi_send_pro_forma' ) );\n\t\t\t$this->enable_credit_note = ( 'yes' == ywpi_get_option ( 'ywpi_enable_credit_notes' ) );\n\t\t\t\n\t\t\tparent::init_plugin_options ();\n\t\t}", "title": "" }, { "docid": "76a6ca3fd4891b70d04acfdd680fc14d", "score": "0.5581662", "text": "public function __construct() {\n $this->helper = new EXT_AMP_Helper();\n $this->options = get_option('ext_amp_general_options');\n }", "title": "" }, { "docid": "5cd6208f72f9da7c2ee4afcf20f033fa", "score": "0.55787057", "text": "private function __construct() {\n\t\t$controller = Fence_Plus_Options_Controller::get_instance();\n\n\t\t$this->options = array_merge( $controller->get_defaults(), get_option( 'fence_plus_options', array() ) );\n\t}", "title": "" }, { "docid": "78b350ff657ae0830333194e04953b4d", "score": "0.5573592", "text": "protected function initOptions()\n {\n // check if options parameter is a json string\n if (is_string($this->options)) {\n $this->options = Json::decode($this->options);\n }\n }", "title": "" }, { "docid": "a410b06182ea21bc02fea6f1cd423d4d", "score": "0.5564735", "text": "public function __construct($options = array()) {\n \n }", "title": "" }, { "docid": "2755343e5afc4d047f6b421b9f3a0d29", "score": "0.5541123", "text": "public function initialize($options = []);", "title": "" }, { "docid": "8667c3f8531501a53ca6d9e13735033c", "score": "0.55363476", "text": "public function __construct()\n {\n parent::__construct($this->defineOptions());\n }", "title": "" }, { "docid": "0f2a563b9fb26243670e6f67fc87eba2", "score": "0.55267435", "text": "public function fileManagerOptions()\n {\n return [\n 'photo' => [\n 'config' =>\n [\n 'image_size' => ['width' => 1000, 'height' => 500],\n 'thumbnail' => ['width' => 100, 'height' => 100],\n 'directory' => 'photos',\n \"update_names_on_change\" => false\n ]\n ],\n 'video',\n 'file',\n 'photos',\n 'videos',\n 'files' => ['request_binding' => 'super_files'],\n ];\n }", "title": "" }, { "docid": "692765f454640ef6b1ec6d94a0c6ddd2", "score": "0.5475493", "text": "function options(){\n\t}", "title": "" }, { "docid": "b98d89b02170db18fd1f90d73f4cfd69", "score": "0.5451907", "text": "public function __construct() {\r\n\t\t\t$this->pluginDir\t\t= basename(dirname(__FILE__));\r\n\t\t\t$this->pluginPath\t\t= WP_PLUGIN_DIR . '/' . $this->pluginDir;\r\n\t\t\t$this->pluginUrl \t\t= WP_PLUGIN_URL.'/'.$this->pluginDir;\t\t\r\n\t\r\n\t\t\t$opts = array(\r\n\t\t\t\t'url' => $this->pluginUrl, \r\n\t\t\t\t'view' => 'wp-cb-videojs-module/view.php',\r\n\t\t\t\t'description' => __('Allows to add a video to a page', 'carrington-build'),\r\n\t\t\t\t'icon' => 'wp-cb-videojs-module/icon.png'\r\n\t\t\t);\r\n\t\t\tcfct_build_module::__construct('cfct-module-videojs', __('Video', 'carrington-build'), $opts);\r\n\t\t\tadd_action('get_header', array(&$this, 'videojs_get_header'));\r\n\t\t\tadd_shortcode('video', array(&$this, 'video_shortcode'));\t\t\t\r\n\t\t}", "title": "" }, { "docid": "899eee120901aae2901a2e11fd38d883", "score": "0.5446884", "text": "public function __construct($options)\n {\n $this->options = $options;\n }", "title": "" }, { "docid": "899eee120901aae2901a2e11fd38d883", "score": "0.5446884", "text": "public function __construct($options)\n {\n $this->options = $options;\n }", "title": "" }, { "docid": "3c2f45d6fea072636c5abe63a38ac75b", "score": "0.5441661", "text": "function initialize_options() {\n if(static::$settings_section) {\n add_settings_section(\n static::$settings_section,\n static::$page_title,\n function() {\n // echo '<p></p>';\n },\n static::$menu_slug\n );\n }\n\n if(static::$settings) {\n foreach (static::$settings as $id => $setting) {\n if($setting['type'] !== 'sync_now' && $setting['type'] !== 'cron') {\n add_option($id, '');\n }\n\n if(isset(\\Barrel\\SocialFeeds\\SocialFeeds::$options[$id])) {\n continue;\n }\n\n $args = array_merge(array($id), (@$setting['args'] ?: array()), array(@$setting['hide']));\n\n if($setting['type'] !== 'hidden') {\n add_settings_field(\n $id,\n $setting['title'],\n array($this, 'render_'.$setting['type'].'_setting'),\n static::$menu_slug,\n static::$settings_section,\n $args\n );\n\n register_setting(static::$settings_section, $id);\n }\n }\n }\n }", "title": "" }, { "docid": "9723d1834aa2ebc3eac0fb10c811fc14", "score": "0.5433716", "text": "protected function setOptions(){}", "title": "" }, { "docid": "b98f9ac62f45487171bf5ff76c06fe68", "score": "0.54306823", "text": "public function __construct($options = null) {\n if(!isset($options)) {\n $options = array();\n }\n $this->setOptions($options);\n }", "title": "" }, { "docid": "d13fad2a4e8dbb76791483d56029844f", "score": "0.542823", "text": "function optionsframework_options() {\n\n\n\t$background_mode = array(\n\t\t'image' => __('Image', 'bluth_admin'),\n\t\t'pattern' => __('Pattern', 'bluth_admin'),\n\t\t'color' => __('Solid Color', 'bluth_admin')\n\t);\n\n\n\t// If using image radio buttons, define a directory path\n\t$imagepath = get_template_directory_uri() . '/assets/img/';\n\n\t$options = array();\n\n\n\t$options[] = array(\n\t\t'name' => '<i class=\"icon-gauge-1\"></i> ' . __('Theme Options', 'bluth_admin'),\n\t\t'type' => 'heading');\n\n\t\t$options[] = array(\n\t\t\t'name' => __('General Options', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Background', 'bluth_admin'),\n\t\t\t\t'desc' => __('What kind of background do you want?', 'bluth_admin'),\n\t\t\t\t'id' => 'background_mode',\n\t\t\t\t'std' => 'color',\n\t\t\t\t'type' => 'radio',\n\t\t\t\t'options' => $background_mode);\n\n\t\t\t\t$options[] = array(\n\t\t\t\t\t'name' => __('Background Image', 'bluth_admin'),\n\t\t\t\t\t'desc' => __('Upload your background image here.', 'bluth_admin'),\n\t\t\t\t\t'id' => 'background_image',\n\t\t\t\t\t'std' => '',\n\t\t\t\t\t'class' => 'background_image',\n\t\t\t\t\t'type' => 'upload');\n\n\t\t\t\t$options[] = array(\n\t\t\t\t\t'name' => __('Show stripe overlay', 'bluth_admin'),\n\t\t\t\t\t'desc' => __('Uncheck this to remove the stripe overlay that covers the background image', 'bluth_admin'),\n\t\t\t\t\t'id' => 'show_stripe',\n\t\t\t\t\t'std' => '1',\n\t\t\t\t\t'class' => 'background_image',\n\t\t\t\t\t'type' => 'checkbox');\n\n\t\t\t\t$options[] = array(\n\t\t\t\t\t'name' => __(\"Select a background pattern\", 'bluth_admin'),\n\t\t\t\t\t'desc' => __(\"Select a background pattern from the list or upload your own below.\", 'bluth_admin'),\n\t\t\t\t\t'id' => \"background_pattern\",\n\t\t\t\t\t'std' => \"brick_wall.jpg\",\n\t\t\t\t\t'type' => \"images\",\n\t\t\t\t\t'class' => \"hide background_pattern\",\n\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t'az_subtle.png' => $imagepath . 'pattern/sample/az_subtle_50.png',\n\t\t\t\t\t\t'cloth_alike.png' => $imagepath . 'pattern/sample/cloth_alike_50.png',\n\t\t\t\t\t\t'cream_pixels.png' => $imagepath . 'pattern/sample/cream_pixels_50.png',\n\t\t\t\t\t\t'gray_jean.png' => $imagepath . 'pattern/sample/gray_jean_50.png',\n\t\t\t\t\t\t'grid.png' => $imagepath . 'pattern/sample/grid_50.png',\n\t\t\t\t\t\t'light_noise_diagonal.png' => $imagepath . 'pattern/sample/light_noise_diagonal_50.png',\n\t\t\t\t\t\t'noise_lines.png' => $imagepath . 'pattern/sample/noise_lines_50.png',\n\t\t\t\t\t\t'pw_pattern.png' => $imagepath . 'pattern/sample/pw_pattern_50.png',\n\t\t\t\t\t\t'shattered.png' => $imagepath . 'pattern/sample/shattered_50.png',\n\t\t\t\t\t\t'squairy_light.png' => $imagepath . 'pattern/sample/squairy_light_50.png',\n\t\t\t\t\t\t'striped_lens.png' => $imagepath . 'pattern/sample/striped_lens_50.png',\n\t\t\t\t\t\t'textured_paper.png' => $imagepath .'pattern/sample/textured_paper_50.png')\n\t\t\t\t);\n\n\t\t\t\t$options[] = array(\n\t\t\t\t\t'name' => __('Upload Pattern', 'bluth_admin'),\n\t\t\t\t\t'desc' => __('Upload a new pattern here. If this feature is used it will overwrite the selection above.', 'bluth_admin'),\n\t\t\t\t\t'id' => 'background_pattern_custom',\n\t\t\t\t\t'class' => 'background_pattern',\n\t\t\t\t\t'type' => 'upload');\n\n\t\t\t\t$options[] = array(\n\t\t\t\t\t'name' => __('Background Color', 'bluth_admin'),\n\t\t\t\t\t'desc' => __('Select the background color ( Only works if the custom color option is chosen )', 'bluth_admin'),\n\t\t\t\t\t'id' => 'background_color',\n\t\t\t\t\t'std' => '#ededed',\n\t\t\t\t\t'class' => \"hide background_color\",\n\t\t\t\t\t'type' => 'color' );\n\n\t\t\t$options[] = array(\n\t\t\t 'name' => __('Favicon', 'bluth_admin'),\n\t\t\t 'desc' => __('Upload a favicon. Favicons are the icons that appear in the tabs of the browser and left of the address bar. (16x16 pixels)', 'bluth_admin'),\n\t\t\t 'id' => 'favicon',\n\t\t\t 'type' => 'upload');\n\n\t\t\t$options[] = array(\n\t\t\t 'name' => __('Apple touch icon', 'bluth_admin'),\n\t\t\t 'desc' => __('Icons that appear on your homescreen when you press \"Add to home screen\" on your device (114x114 pixels (PNG file))', 'bluth_admin'),\n\t\t\t 'id' => 'apple_touch_icon',\n\t\t\t 'type' => 'upload');\n\n\t\t$options[] = array(\n\t\t\t'name' => __('Layout Options', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Layout Width', 'bluth_admin'),\n\t\t\t\t'desc' => __('The size of layout width in pixels (Default 1170)', 'bluth_admin'),\n\t\t\t\t'id' => 'custom_container_width',\n\t\t\t\t'std' => '1170',\n\t\t\t\t'type' => 'text'\n\t\t\t\t);\n\n/*\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Disable Responsive Features', 'bluth_admin'),\n\t\t\t\t'desc' => __('Check this to disable all responsive features', 'bluth_admin'),\n\t\t\t\t'id' => 'disable_responsive',\n\t\t\t\t'std' => '0',\n\t\t\t\t'type' => 'checkbox');*/\n\n\t\t$options[] = array(\n\t\t\t'name' => __('Footer Options', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Footer text', 'bluth_admin'),\n\t\t\t\t'desc' => __('{year} will be replaced with the current year', 'bluth_admin'),\n\t\t\t\t'id' => 'footer_text',\n\t\t\t\t'std' => 'Copyright {year} · Theme design by Bluthemes · www.bluthemes.com',\n\t\t\t\t'type' => 'textarea');\n\n\t\t$options[] = array(\n\t\t\t'name' => __('Various Options', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Google Analytics', 'bluth_admin'),\n\t\t\t\t'desc' => __('Add your Google Analytics tracking code here. Google Analytics is a free web analytics service more info here: <a href=\"http://www.google.com/analytics/\">Google Analytics</a>', 'bluth_admin'),\n\t\t\t\t'id' => 'google_analytics',\n\t\t\t\t'std' => '',\n\t\t\t\t'type' => 'textarea');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Featured Tag', 'bluth_admin'),\n\t\t\t\t'desc' => __('The tag that the featured posts widget will use to fetch posts', 'bluth_admin'),\n\t\t\t\t'id' => 'featured_tag',\n\t\t\t\t'std' => 'featured',\n\t\t\t\t'type' => 'text');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Right-to-Left Language', 'bluth_admin'),\n\t\t\t\t'desc' => __('Check this if your language is written in a Right-to-Left direction', 'bluth_admin'),\n\t\t\t\t'id' => 'enable_rtl',\n\t\t\t\t'std' => '0',\n\t\t\t\t'type' => 'checkbox');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('SEO plugin support', 'bluth_admin'),\n\t\t\t\t'desc' => __('Check this to give an SEO plugin control of meta description, title and open graph tags.', 'bluth_admin'),\n\t\t\t\t'id' => 'seo_plugin',\n\t\t\t\t'std' => '0',\n\t\t\t\t'type' => 'checkbox');\n\n\t$options[] = array(\n\t\t'name' => '<i class=\"icon-menu-1\"></i> ' . __('Header & Menu', 'bluth_admin'),\n\t\t'type' => 'heading');\n\n\t\t$options[] = array(\n\t\t\t'name' => __('Header Styling', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Header Type', 'bluth_admin'),\n\t\t\t\t'desc' => __('Choose your header type', 'bluth_admin'),\n\t\t\t\t'id' => \"header_type\",\n\t\t\t\t'std' => \"header_normal\",\n\t\t\t\t'type' => \"images\",\n\t\t\t\t'options' => array(\n\t\t\t\t\t'header_normal' => $imagepath . 'header_normal.jpg',\n\t\t\t\t\t'header_background_full_width' => $imagepath . 'header_full_width_background.jpg',\n\t\t\t\t\t'header_full_width' => $imagepath . 'header_full_width.jpg'\n\t\t\t\t));\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Header Background', 'bluth_admin'),\n\t\t\t\t'desc' => __('Choose your header background, to choose a color go to the Colors & Fonts page.', 'bluth_admin'),\n\t\t\t\t'id' => 'header_background',\n\t\t\t\t'std' => 'color',\n\t\t\t\t'type' => 'radio',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'color' \t=> __('Color', 'bluth_admin'),\n\t\t\t\t\t'image' \t=> __('Image', 'bluth_admin')\n\t\t\t\t));\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Header Background Image', 'bluth_admin'),\n\t\t\t\t'desc' => __('Upload your header background image here', 'bluth_admin'),\n\t\t\t\t'id' => 'header_background_image',\n\t\t\t\t'class' => 'header_background_image hide',\n\t\t\t\t'type' => 'upload');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Disable Header description', 'bluth_admin'),\n\t\t\t\t'desc' => __('Check this to disable the description showing up in the header.', 'bluth_admin'),\n\t\t\t\t'id' => 'disable_description',\n\t\t\t\t'std' => '0',\n\t\t\t\t'type' => 'checkbox');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Disable Search in Header', 'bluth_admin'),\n\t\t\t\t'desc' => __('Check this to disable the search button in the header', 'bluth_admin'),\n\t\t\t\t'id' => 'disable_search',\n\t\t\t\t'std' => '0',\n\t\t\t\t'type' => 'checkbox');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Disable Sticky Header', 'bluth_admin'),\n\t\t\t\t'desc' => __('Check this to disable the sticky header feature. (The header won\\'t stay fixed at the top of the window when you scroll down)', 'bluth_admin'),\n\t\t\t\t'id' => 'disable_fixed_header',\n\t\t\t\t'std' => '0',\n\t\t\t\t'type' => 'checkbox');\n\t\n\t\t$options[] = array(\n\t\t\t'name' => __('Logo Options', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Logo', 'bluth_admin'),\n\t\t\t\t'desc' => __('Upload your logo here. Remove the image to show the name of the website in text instead. (Recommended: x90 height for normal heading)', 'bluth_admin'),\n\t\t\t\t'id' => 'logo',\n\t\t\t\t'type' => 'upload');\n\t\t\t\n\n/*\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Mini Logo', 'bluth_admin'),\n\t\t\t\t'desc' => __('Upload your mini logo here. Logo that appears in the header when the user scrolls down on your website.', 'bluth_admin'),\n\t\t\t\t'id' => 'minilogo',\n\t\t\t\t'type' => 'upload');*/\n\n\t\t$options[] = array(\n\t\t\t'name' => __('Menu Settings', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Enable menu hover', 'bluth_admin'),\n\t\t\t\t'desc' => __('Check this to show the menus sub-items when hovered over the top item.', 'bluth_admin'),\n\t\t\t\t'id' => 'menu_hover',\n\t\t\t\t'std' => '1',\n\t\t\t\t'type' => 'checkbox');\n\n\n\t$options[] = array(\n\t\t'name' => '<i class=\"icon-users-2\"></i> ' . __('Users', 'bluth_admin'),\n\t\t'type' => 'heading');\n\n\t\t$options[] = array(\n\t\t\t'name' => __('Author Options', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Enable author on front page', 'bluth_admin'),\n\t\t\t\t'desc' => __('Uncheck this to remove the author image & name on the front page.', 'bluth_admin'),\n\t\t\t\t'id' => 'show_author_front',\n\t\t\t\t'std' => '1',\n\t\t\t\t'type' => 'checkbox');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Enable author box', 'bluth_admin'),\n\t\t\t\t'desc' => __('Uncheck this to remove the author box below each post.', 'bluth_admin'),\n\t\t\t\t'id' => 'author_box',\n\t\t\t\t'std' => '1',\n\t\t\t\t'type' => 'checkbox');\n\n\t$users = get_users( array('who' => 'authors') );\n\tforeach($users as $user){\n\t\t\n\t\t$options[] = array(\n\t\t\t'name' => __( 'User: '.$user->user_nicename, 'bluth_admin'),\n\t\t\t'type' => 'info');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Author Cover for '.$user->user_nicename, 'bluth_admin'),\n\t\t\t\t'desc' => __('Upload a cover for the author box', 'bluth_admin'),\n\t\t\t\t'id' => 'author_box_image_'.$user->ID,\n\t\t\t\t'type' => 'upload');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Author Box Avatar', 'bluth_admin'),\n\t\t\t\t'desc' => __('Upload a custom avatar for the author box (will use gravatar if nothing is set) (120x120)', 'bluth_admin'),\n\t\t\t\t'id' => 'author_box_avatar_'.$user->ID,\n\t\t\t\t'type' => 'upload');\n\t\t\n\t}\n\n\t$options[] = array(\n\t\t'name' => '<i class=\"icon-pencil-1\"></i> ' . __('Blog Settings', 'bluth_admin'),\n\t\t'type' => 'heading');\n\n\t\t$options[] = array(\n\t\t\t'name' => __('Layout', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __(\"Blog Layout\", 'bluth_admin'),\n\t\t\t\t'desc' => __(\"Select the default layout for the front page\", 'bluth_admin'),\n\t\t\t\t'id' => \"blog_layout\",\n\t\t\t\t'std' => \"right_side\",\n\t\t\t\t'type' => \"images\",\n\t\t\t\t'options' => array(\n\t\t\t\t\t'left_side' => $imagepath . 'sidebar-layout-left.jpg',\n\t\t\t\t\t'single' => $imagepath . 'sidebar-layout-single.jpg',\n\t\t\t\t\t'right_side' => $imagepath . 'sidebar-layout-right.jpg')\n\t\t\t);\n\n\t\t$options[] = array(\n\t\t\t'name' => __('Style', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Blog Style', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select the default blog style.', 'bluth_admin'),\n\t\t\t\t'id' => 'blog_style',\n\t\t\t\t'std' => 'margin',\n\t\t\t\t'type' => 'images',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'margin' => $imagepath . 'layout-1.jpg',\n\t\t\t\t\t'twocolumn' => $imagepath . 'layout-2.jpg',\n\t\t\t\t\t'threecolumn' => $imagepath . 'layout-3.jpg',\n\t\t\t\t\t'fourcolumn' => $imagepath . 'layout-4.jpg',\n\t\t\t\t\t'fivecolumn' => $imagepath . 'layout-5.jpg',\n\t\t\t\t));\n\n\t$options[] = array(\n\t\t'name' => '<i class=\"icon-docs\"></i> ' . __('Posts & Pages', 'bluth_admin'),\n\t\t'type' => 'heading');\n\n\n\t\t$options[] = array(\n\t\t\t'name' => __('Layout', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __(\"Post and Page Layout\", 'bluth_admin'),\n\t\t\t\t'desc' => __(\"Select the default layout for posts and pages\", 'bluth_admin'),\n\t\t\t\t'id' => \"post_page_layout\",\n\t\t\t\t'std' => \"right_side\",\n\t\t\t\t'type' => \"images\",\n\t\t\t\t'options' => array(\n\t\t\t\t\t'left_side' => $imagepath . 'sidebar-layout-left.jpg',\n\t\t\t\t\t'single' => $imagepath . 'sidebar-layout-single.jpg',\n\t\t\t\t\t'right_side' => $imagepath . 'sidebar-layout-right.jpg')\n\t\t\t);\n\n\t\t$options[] = array(\n\t\t\t'name' => __('Featured Images', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Disable cropping of featured images in: ', 'bluth_admin'),\n\t\t\t\t'desc' => __('Check this to disable cropped images and use the original in selected areas', 'bluth_admin'),\n\t\t\t\t'id' => 'disable_crop',\n\t\t\t\t'std' => array(\n\t\t\t\t\t'pages' \t=> '0',\n\t\t\t\t\t'single' \t=> '1',\n\t\t\t\t\t'blog' \t\t=> '0'\n\t\t\t\t),\n\t\t\t\t'type' => 'multicheck',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'pages' \t=> __('Pages', 'bluth_admin'),\n\t\t\t\t\t'single' \t=> __('Posts', 'bluth_admin'),\n\t\t\t\t\t'blog' \t\t=> __('Front page', 'bluth_admin')));\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Open featured post images in lightbox', 'bluth_admin'),\n\t\t\t\t'desc' => __('Check this to open featured post images in a lightbox instead of linking to the post itself.', 'bluth_admin'),\n\t\t\t\t'id' => 'post_image_lightbox',\n\t\t\t\t'std' => '0',\n\t\t\t\t'type' => 'checkbox');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Disable Image Comments', 'bluth_admin'),\n\t\t\t\t'desc' => __('Check this to disable image comments on all posts.', 'bluth_admin'),\n\t\t\t\t'id' => 'disable_image_comments',\n\t\t\t\t'std' => '0',\n\t\t\t\t'type' => 'checkbox');\n\n\n\t\t$options[] = array(\n\t\t\t'name' => __('Sharing Options', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Disable share buttons at the bottom of posts', 'bluth_admin'),\n\t\t\t\t'desc' => __('Check this to remove the \"Share\" button in the post footer.', 'bluth_admin'),\n\t\t\t\t'id' => 'disable_share_story',\n\t\t\t\t'std' => '0',\n\t\t\t\t'type' => 'checkbox');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Show share buttons on:', 'bluth_admin'),\n\t\t\t\t'desc' => __('Where do you want the share buttons to appear?', 'bluth_admin'),\n\t\t\t\t'id' => 'share_buttons_position',\n\t\t\t\t'class' => 'disable_share_story',\n\t\t\t\t'std' => array(\n\t\t\t\t\t'pages' \t=> '0',\n\t\t\t\t\t'single' \t=> '1',\n\t\t\t\t\t'blog' \t\t=> '0'\n\t\t\t\t),\n\t\t\t\t'type' => 'multicheck',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'pages' \t=> __('Pages', 'bluth_admin'),\n\t\t\t\t\t'single' \t=> __('Posts', 'bluth_admin'),\n\t\t\t\t\t'blog' \t\t=> __('Front page', 'bluth_admin')));\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Disable share buttons:', 'bluth_admin'),\n\t\t\t\t'desc' => __('Check to disable the specific share button', 'bluth_admin'),\n\t\t\t\t'id' => 'share_buttons_disabled',\n\t\t\t\t'class' => 'disable_share_story',\n\t\t\t\t'std' => array(\n\t\t\t\t\t'facebook' \t=> '0',\n\t\t\t\t\t'googleplus'=> '0',\n\t\t\t\t\t'twitter'\t=> '0',\n\t\t\t\t\t'reddit'\t=> '0',\n\t\t\t\t\t'pinterest'\t=> '0',\n\t\t\t\t\t'linkedin'\t=> '0',\n\t\t\t\t\t'delicious'\t=> '0',\n\t\t\t\t\t'email' \t=> '0',\n\t\t\t\t),\n\t\t\t\t'type' => 'multicheck',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'facebook' \t=> 'facebook',\n\t\t\t\t\t'googleplus'=> 'googleplus',\n\t\t\t\t\t'twitter'\t=> 'twitter',\n\t\t\t\t\t'reddit'\t=> 'reddit',\n\t\t\t\t\t'pinterest'\t=> 'pinterest',\n\t\t\t\t\t'linkedin'\t=> 'linkedin',\n\t\t\t\t\t'delicious'\t=> 'delicious',\n\t\t\t\t\t'email' \t=> 'email'));\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Disable the tags for posts', 'bluth_admin'),\n\t\t\t\t'desc' => __('Check this to remove the post tags on all posts', 'bluth_admin'),\n\t\t\t\t'id' => 'disable_footer_post',\n\t\t\t\t'std' => '0',\n\t\t\t\t'type' => 'checkbox');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Disable Next button', 'bluth_admin'),\n\t\t\t\t'desc' => __('Check this to remove the Next button at the bottom of each post.', 'bluth_admin'),\n\t\t\t\t'id' => 'disable_pagination',\n\t\t\t\t'std' => '0',\n\t\t\t\t'type' => 'checkbox');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Disable Related Posts', 'bluth_admin'),\n\t\t\t\t'desc' => __('Related articles are show below each post when you view it. Check this to disable that feature.', 'bluth_admin'),\n\t\t\t\t'id' => 'disable_related_posts',\n\t\t\t\t'std' => '0',\n\t\t\t\t'type' => 'checkbox');\n\n\t\t$options[] = array(\n\t\t\t'name' => __('Page Options', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\t\t\t\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Enable page comments', 'bluth_admin'),\n\t\t\t\t'desc' => __('Check this to enable comments on all pages.', 'bluth_admin'),\n\t\t\t\t'id' => 'enable_page_comments',\n\t\t\t\t'std' => '0',\n\t\t\t\t'type' => 'checkbox');\n\n\t\t$options[] = array(\n\t\t\t'name' => __('Post Options', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\t\t\t\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Enable post comments', 'bluth_admin'),\n\t\t\t\t'desc' => __('Check this to enable comments on all posts.', 'bluth_admin'),\n\t\t\t\t'id' => 'enable_post_comments',\n\t\t\t\t'std' => '1',\n\t\t\t\t'type' => 'checkbox');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Enable Facebook comments for posts', 'bluth_admin'),\n\t\t\t\t'desc' => __('Check this to enable Facebook comments. Requires a Facebook app id Social options.', 'bluth_admin'),\n\t\t\t\t'id' => 'facebook_comments',\n\t\t\t\t'std' => '0',\n\t\t\t\t'type' => 'checkbox');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Enable posts excerpt (post summary)', 'bluth_admin'),\n\t\t\t\t'desc' => __('Check this to only show the post excerpt or the summary of a post in the browse page. The default behavior is to show the whole post but you can provide a cut-off point by adding the <a href=\"http://codex.wordpress.org/Customizing_the_Read_More\" target=\"_blank\">More</a> tag.', 'bluth_admin'),\n\t\t\t\t'id' => 'enable_excerpt',\n\t\t\t\t'std' => '0',\n\t\t\t\t'type' => 'checkbox');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Exerpt Length', 'bluth_admin'),\n\t\t\t\t'desc' => __('How many words would you like to show in the post summary. Default: 55 words', 'bluth_admin'),\n\t\t\t\t'id' => 'excerpt_length',\n\t\t\t\t'std' => '55',\n\t\t\t\t'class' => 'hide',\n\t\t\t\t'type' => 'text');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Show Continue Reading link', 'bluth_admin'),\n\t\t\t\t'desc' => __('Uncheck this to hide the Continue Reading link that appears below the post conent.', 'bluth_admin'),\n\t\t\t\t'id' => 'show_continue_reading',\n\t\t\t\t'std' => '1',\n\t\t\t\t'type' => 'checkbox');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Show year in post date', 'bluth_admin'),\n\t\t\t\t'desc' => __('Check this to display the year of the post below the post title.', 'bluth_admin'),\n\t\t\t\t'id' => 'enable_show_year',\n\t\t\t\t'std' => '0',\n\t\t\t\t'type' => 'checkbox');\n\n\t$options[] = array(\n\t\t'name' => '<i class=\"icon-art-gallery\"></i> ' . __('Colors & Fonts', 'bluth_admin'),\n\t\t'type' => 'heading');\n\n\n\t\t$options[] = array(\n\t\t\t'name' => __('Color Options', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Color Theme', 'bluth_admin'),\n\t\t\t\t'desc' => __('Choose a predefined color theme', 'bluth_admin'),\n\t\t\t\t'id' => 'predefined_theme',\n\t\t\t\t'std' => 'default',\n\t\t\t\t'type' => 'images',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'default' => $imagepath . '/colorthemes/default.png',\n\t\t\t\t));\n\t\t\t\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Custom Color Theme', 'bluth_admin'),\n\t\t\t\t'desc' => __('Check this to make your own color theme', 'bluth_admin'),\n\t\t\t\t'id' => 'custom_color_picker',\n\t\t\t\t'std' => '0',\n\t\t\t\t'type' => 'checkbox');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Main Theme Color', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select the theme\\'s main color', 'bluth_admin'),\n\t\t\t\t'id' => 'theme_color',\n\t\t\t\t'class' => 'hide custom_color',\n\t\t\t\t'std' => '#45b0ee',\n\t\t\t\t'type' => 'color' );\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Header Background Color', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select the background color for the top header that includes the menu', 'bluth_admin'),\n\t\t\t\t'id' => 'header_color',\n\t\t\t\t'class' => 'hide custom_color',\n\t\t\t\t'std' => '#ffffff',\n\t\t\t\t'type' => 'color' );\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Header Font Color', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select the color for the top header menu links', 'bluth_admin'),\n\t\t\t\t'id' => 'header_font_color',\n\t\t\t\t'class' => 'hide custom_color',\n\t\t\t\t'std' => '#333333',\n\t\t\t\t'type' => 'color' );\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Post Header Color', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select the color for the top header of each post', 'bluth_admin'),\n\t\t\t\t'id' => 'post_header_color',\n\t\t\t\t'class' => 'hide custom_color',\n\t\t\t\t'std' => '#444444',\n\t\t\t\t'type' => 'color' );\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Widget Header Color', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select the default color for the top header of each widget', 'bluth_admin'),\n\t\t\t\t'id' => 'widget_header_color',\n\t\t\t\t'class' => 'hide custom_color',\n\t\t\t\t'std' => '#ffffff',\n\t\t\t\t'type' => 'color' );\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Widget Header Font Color', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select the color for the heading font in each widget', 'bluth_admin'),\n\t\t\t\t'id' => 'widget_header_font_color',\n\t\t\t\t'class' => 'hide custom_color',\n\t\t\t\t'std' => '#717171',\n\t\t\t\t'type' => 'color' );\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Footer Color', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select the default color for the footer', 'bluth_admin'),\n\t\t\t\t'id' => 'footer_color',\n\t\t\t\t'class' => 'hide custom_color',\n\t\t\t\t'std' => '#FFFFFF',\n\t\t\t\t'type' => 'color' );\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Footer Header Color', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select the default color for the footer headers', 'bluth_admin'),\n\t\t\t\t'id' => 'footer_header_color',\n\t\t\t\t'class' => 'hide custom_color',\n\t\t\t\t'std' => '#333333',\n\t\t\t\t'type' => 'color' );\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Footer Font Color', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select the default color for the footer font', 'bluth_admin'),\n\t\t\t\t'id' => 'footer_font_color',\n\t\t\t\t'class' => 'hide custom_color',\n\t\t\t\t'std' => '#333333',\n\t\t\t\t'type' => 'color' );\n\n\t\t$options[] = array(\n\t\t\t'name' => __('Link Options', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\t\t\t\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Disable background for links in posts and pages', 'bluth_admin'),\n\t\t\t\t'desc' => __('Check this to disable the background for links and instead use the color on the text.', 'bluth_admin'),\n\t\t\t\t'id' => 'disable_link_background',\n\t\t\t\t'std' => '0',\n\t\t\t\t'type' => 'checkbox');\n\n\t\t$options[] = array(\n\t\t\t'name' => __('Font Options', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\t\t\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Heading font', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select a font type for all heading', 'bluth_admin'),\n\t\t\t\t'id' => 'heading_font',\n\t\t\t\t'std' => 'Lato:300,400,400italic,700,900',\n\t\t\t\t'type' => 'text');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Main font', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select a font type for normal text', 'bluth_admin'),\n\t\t\t\t'id' => 'text_font',\n\t\t\t\t'std' => 'Roboto+Slab:300,400,700&subset=latin',\n\t\t\t\t'type' => 'text');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Main font size', 'bluth_admin'),\n\t\t\t\t'desc' => __('The size of the text in posts', 'bluth_admin'),\n\t\t\t\t'id' => 'text_font_size',\n\t\t\t\t'std' => '18px',\n\t\t\t\t'type' => 'select',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'12px' => '12px',\n\t\t\t\t\t'14px' => '14px',\n\t\t\t\t\t'16px' => '16px',\n\t\t\t\t\t'18px' => '18px',\n\t\t\t\t\t'20px' => '20px',\n\t\t\t\t\t'22px' => '22px',\n\t\t\t\t\t'24px' => '24px',\n\t\t\t\t));\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Main font line height', 'bluth_admin'),\n\t\t\t\t'desc' => __('The spacing between each line of the text in posts', 'bluth_admin'),\n\t\t\t\t'id' => 'text_font_spacing',\n\t\t\t\t'std' => '2',\n\t\t\t\t'type' => 'select',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'1.5' \t=> '1.5',\n\t\t\t\t\t'1.6' \t=> '1.6',\n\t\t\t\t\t'1.7' \t=> '1.7',\n\t\t\t\t\t'1.8' \t=> '1.8',\n\t\t\t\t\t'1.9' \t=> '1.9',\n\t\t\t\t\t'2' \t=> '2',\n\t\t\t\t\t'2.1' \t=> '2.1',\n\t\t\t\t\t'2.2' \t=> '2.2',\n\t\t\t\t\t'2.3' \t=> '2.3',\n\t\t\t\t\t'2.4' \t=> '2.4',\n\t\t\t\t\t'2.5' \t=> '2.5',\n\t\t\t\t));\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Menu links font', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select a font type for the menu items in the header', 'bluth_admin'),\n\t\t\t\t'id' => 'menu_font',\n\t\t\t\t'std' => 'Lato:300,400,400italic,700,900',\n\t\t\t\t'type' => 'text');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Header font', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select a font type for the header. If you use text instead of a logo in your header this setting changes the font family for that text as well.', 'bluth_admin'),\n\t\t\t\t'id' => 'header_font',\n\t\t\t\t'std' => 'Lato:300,400,400italic,700,900',\n\t\t\t\t'type' => 'text');\n\n\n\n\n\n\t$options[] = array(\n\t\t'name' => '<i class=\"icon-picture\"></i> ' . __('Post Formats', 'bluth_admin'),\n\t\t'type' => 'heading');\n\n\n\t\t$options[] = array(\n\t\t\t'name' => __('Post Format Colors', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Standard Post Color', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select the color for the standard post icon and links', 'bluth_admin'),\n\t\t\t\t'id' => 'standard_post_color',\n\t\t\t\t'std' => '#556270',\n\t\t\t\t'class' => 'header_art_icon',\n\t\t\t\t'type' => 'color' );\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Gallery Post Color', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select the color for the gallery post icon and links', 'bluth_admin'),\n\t\t\t\t'id' => 'gallery_post_color',\n\t\t\t\t'std' => '#4ECDC4',\n\t\t\t\t'class' => 'header_art_icon',\n\t\t\t\t'type' => 'color' );\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Image Post Color', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select the color for the image post icon and links', 'bluth_admin'),\n\t\t\t\t'id' => 'image_post_color',\n\t\t\t\t'std' => '#C7F464',\n\t\t\t\t'class' => 'header_art_icon',\n\t\t\t\t'type' => 'color' );\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Link Post Color', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select the color for the link post icon and links', 'bluth_admin'),\n\t\t\t\t'id' => 'link_post_color',\n\t\t\t\t'std' => '#FF6B6B',\n\t\t\t\t'class' => 'header_art_icon',\n\t\t\t\t'type' => 'color' );\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Quote Post Color', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select the color for the quote post icon and links', 'bluth_admin'),\n\t\t\t\t'id' => 'quote_post_color',\n\t\t\t\t'std' => '#C44D58',\n\t\t\t\t'class' => 'header_art_icon',\n\t\t\t\t'type' => 'color' );\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Audio Post Color', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select the color for the audio post icon and links', 'bluth_admin'),\n\t\t\t\t'id' => 'audio_post_color',\n\t\t\t\t'std' => '#5EBCF2',\n\t\t\t\t'class' => 'header_art_icon',\n\t\t\t\t'type' => 'color' );\t\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Video Post Color', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select the color for the video post icon and links', 'bluth_admin'),\n\t\t\t\t'id' => 'video_post_color',\n\t\t\t\t'std' => '#A576F7',\n\t\t\t\t'class' => 'header_art_icon',\n\t\t\t\t'type' => 'color' );\t\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Status Post Color', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select the color for the status post icon and links', 'bluth_admin'),\n\t\t\t\t'id' => 'status_post_color',\n\t\t\t\t'std' => '#556270',\n\t\t\t\t'class' => 'header_art_icon',\n\t\t\t\t'type' => 'color' );\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Sticky Post Color', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select the color for the sticky post icon and links', 'bluth_admin'),\n\t\t\t\t'id' => 'sticky_post_color',\n\t\t\t\t'std' => '#90DB91',\n\t\t\t\t'class' => 'header_art_icon',\n\t\t\t\t'type' => 'color' );\t\t\n\n\n\t\t$options[] = array(\n\t\t\t'name' => __('Post Format Icons', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Standard Post Icon', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select an icon for the standard post type. (Default: icon-calendar-3)', 'bluth_admin'),\n\t\t\t\t'id' => 'standard_icon',\n\t\t\t\t'std' => 'icon-calendar-3',\n\t\t\t\t'class' => 'header_art_icon post_icon_edit',\n\t\t\t\t'type' => 'text');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Gallery Post Icon', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select an icon for the gallery post type. (Default: icon-picture)', 'bluth_admin'),\n\t\t\t\t'id' => 'gallery_icon',\n\t\t\t\t'std' => 'icon-picture',\n\t\t\t\t'class' => 'header_art_icon post_icon_edit',\n\t\t\t\t'type' => 'text');\n\n\t\t\t\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Image Post Icon', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select an icon for the image post type. (Default: icon-picture-1)', 'bluth_admin'),\n\t\t\t\t'id' => 'image_icon',\n\t\t\t\t'std' => 'icon-picture-1',\n\t\t\t\t'class' => 'header_art_icon post_icon_edit',\n\t\t\t\t'type' => 'text');\n\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Link Post Icon', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select an icon for the link post type. (Default: icon-link)', 'bluth_admin'),\n\t\t\t\t'id' => 'link_icon',\n\t\t\t\t'std' => 'icon-link',\n\t\t\t\t'class' => 'header_art_icon post_icon_edit',\n\t\t\t\t'type' => 'text');\n\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Quote Post Icon', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select an icon for the quote post type. (Default: icon-quote-left)', 'bluth_admin'),\n\t\t\t\t'id' => 'quote_icon',\n\t\t\t\t'std' => 'icon-quote-left',\n\t\t\t\t'class' => 'header_art_icon post_icon_edit',\n\t\t\t\t'type' => 'text');\n\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Audio Post Icon', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select an icon for the audio post type. (Default: icon-volume-up)', 'bluth_admin'),\n\t\t\t\t'id' => 'audio_icon',\n\t\t\t\t'std' => 'icon-volume-up',\n\t\t\t\t'class' => 'header_art_icon post_icon_edit',\n\t\t\t\t'type' => 'text');\n\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Video Post Icon', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select an icon for the video post type. (Default: icon-videocam)', 'bluth_admin'),\n\t\t\t\t'id' => 'video_icon',\n\t\t\t\t'std' => 'icon-videocam',\n\t\t\t\t'class' => 'header_art_icon post_icon_edit',\n\t\t\t\t'type' => 'text');\n\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Status Post Icon', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select an icon for the status post type. (Default: icon-book-1)', 'bluth_admin'),\n\t\t\t\t'id' => 'status_icon',\n\t\t\t\t'std' => 'icon-book-1',\n\t\t\t\t'class' => 'header_art_icon post_icon_edit',\n\t\t\t\t'type' => 'text');\n\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Facebook Status Post Icon', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select an icon for the facebook status post type. (Default: icon-facebook-1)', 'bluth_admin'),\n\t\t\t\t'id' => 'facebook_status_icon',\n\t\t\t\t'std' => 'icon-facebook-1',\n\t\t\t\t'class' => 'header_art_icon post_icon_edit',\n\t\t\t\t'type' => 'text');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Twitter Status Post Icon', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select an icon for the twitter status post type. (Default: icon-twitter-1)', 'bluth_admin'),\n\t\t\t\t'id' => 'twitter_status_icon',\n\t\t\t\t'std' => 'icon-twitter-1',\n\t\t\t\t'class' => 'header_art_icon post_icon_edit',\n\t\t\t\t'type' => 'text');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Google+ Status Post Icon', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select an icon for the google status post type. (Default: icon-gplus-2)', 'bluth_admin'),\n\t\t\t\t'id' => 'google_status_icon',\n\t\t\t\t'std' => 'icon-gplus-2',\n\t\t\t\t'class' => 'header_art_icon post_icon_edit',\n\t\t\t\t'type' => 'text');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Sticky Post Icon', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select an icon for sticky posts. (Default: icon-pin)', 'bluth_admin'),\n\t\t\t\t'id' => 'sticky_icon',\n\t\t\t\t'std' => 'icon-pin',\n\t\t\t\t'class' => 'header_art_icon post_icon_edit',\n\t\t\t\t'type' => 'text');\n\n\n\n\n\t$options[] = array(\n\t\t'name' => '<i class=\"icon-star-1\"></i> ' . __('Advertising', 'bluth_admin'),\n\t\t'type' => 'heading');\n\n\t\t$options[] = array(\n\t\t\t'name' => __('Google Ads', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Google Publisher ID', 'bluth_admin'),\n\t\t\t\t'desc' => __('Found in the top right corner of your <a href=\"https://www.google.com/adsense/\" target=\"_blank\">adsense account</a>.', 'bluth_admin'),\n\t\t\t\t'id' => 'google_publisher_id',\n\t\t\t\t'std' => '',\n\t\t\t\t'type' => 'text');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Google Ad unit ID', 'bluth_admin'),\n\t\t\t\t'desc' => __('Found in your Ad Units area under <strong>ID</strong> <a href=\"https://www.google.com/adsense/app#myads-springboard\" target=\"_blank\">here</a>.', 'bluth_admin'),\n\t\t\t\t'id' => 'google_ad_unit_id',\n\t\t\t\t'std' => '',\n\t\t\t\t'type' => 'text');\n\n\t\t$options[] = array(\n\t\t\t'name' => __('Advertising Areas', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Ad spot #1 - Above the header.', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select what kind of ad you want added above the top menu.', 'bluth_admin'),\n\t\t\t\t'id' => 'ad_header_mode',\n\t\t\t\t'std' => 'none',\n\t\t\t\t'type' => 'radio',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'none' => __('None', 'bluth_admin'),\n\t\t\t\t\t'html' => __('Shortcode or HTML code like Adsense', 'bluth_admin'),\n\t\t\t\t\t'image' => __('Image with a link', 'bluth_admin')\n\t\t\t\t));\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Add Shortcode or HTML code here', 'bluth_admin'),\n\t\t\t\t'desc' => __('Insert a shortcode provided by this theme or any plugin. You can also add advertising code from any provider or use plain html. To add Adsense just paste the embed code here that they provide and save.', 'bluth_admin'),\n\t\t\t\t'id' => 'ad_header_code',\n\t\t\t\t'class' => 'hide ad_header_code',\n\t\t\t\t'std' => '',\n\t\t\t\t'type' => 'textarea');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Upload Image', 'bluth_admin'),\n\t\t\t\t'desc' => __('Upload an image to add above the header menu and add a link for it in the input box below', 'bluth_admin'),\n\t\t\t\t'id' => 'ad_header_image',\n\t\t\t\t'class' => 'hide ad_header_image',\n\t\t\t\t'type' => 'upload');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Image link', 'bluth_admin'),\n\t\t\t\t'desc' => __('Add a link to the image', 'bluth_admin'),\n\t\t\t\t'id' => 'ad_header_image_link',\n\t\t\t\t'class' => 'hide ad_header_image',\n\t\t\t\t'std' => '',\n\t\t\t\t'type' => 'text');\n\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Ad spot #2 - Between posts', 'bluth_admin'),\n\t\t\t\t'desc' => __('Here you can add advertising between posts.', 'bluth_admin'),\n\t\t\t\t'id' => 'ad_posts_mode',\n\t\t\t\t'std' => 'none',\n\t\t\t\t'type' => 'radio',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'none' => __('None', 'bluth_admin'),\n\t\t\t\t\t'html' => __('Shortcode or HTML code like Adsense', 'bluth_admin'),\n\t\t\t\t\t'image' => __('Image with a link', 'bluth_admin')\n\t\t\t\t));\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Add Shortcode or HTML code here', 'bluth_admin'),\n\t\t\t\t'desc' => __('Insert a shortcode provided by this theme or any plugin. You can also add advertising code from any provider or use plain html. To add Adsense just paste the embed code here that they provide and save.', 'bluth_admin'),\n\t\t\t\t'id' => 'ad_posts_code',\n\t\t\t\t'class' => 'hide ad_posts_code',\n\t\t\t\t'std' => '',\n\t\t\t\t'type' => 'textarea');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Upload Image', 'bluth_admin'),\n\t\t\t\t'desc' => __('Upload an image to add between posts and add a link for it in the input box below', 'bluth_admin'),\n\t\t\t\t'id' => 'ad_posts_image',\n\t\t\t\t'class' => 'hide ad_posts_image',\n\t\t\t\t'type' => 'upload');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Image link', 'bluth_admin'),\n\t\t\t\t'desc' => __('Add a link to the image', 'bluth_admin'),\n\t\t\t\t'id' => 'ad_posts_image_link',\n\t\t\t\t'class' => 'hide ad_posts_image',\n\t\t\t\t'std' => '',\n\t\t\t\t'type' => 'text');\t\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Display Frequency', 'bluth_admin'),\n\t\t\t\t'desc' => __('How often do you want the ad to appear?', 'bluth_admin'),\n\t\t\t\t'id' => 'ad_posts_frequency',\n\t\t\t\t'std' => 'one',\n\t\t\t\t'type' => 'select',\n\t\t\t\t'class' => 'mini hide ad_posts_options', //mini, tiny, small\n\t\t\t\t'options' => array(\n\t\t\t\t\t'1' => __('Between every post', 'bluth_admin'),\n\t\t\t\t\t'2' => __('Every 2th posts', 'bluth_admin'),\n\t\t\t\t\t'3' => __('Every 3th post', 'bluth_admin'),\n\t\t\t\t\t'4' => __('Every 4th post', 'bluth_admin'),\n\t\t\t\t\t'5' => __('Every 5th post', 'bluth_admin')\n\t\t\t\t));\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Add white background', 'bluth_admin'),\n\t\t\t\t'desc' => __('Check this to wrap the ad content in a white box', 'bluth_admin'),\n\t\t\t\t'id' => 'ad_posts_box',\n\t\t\t\t'std' => '1',\n\t\t\t\t'class' => 'hide ad_posts_options',\n\t\t\t\t'type' => 'checkbox');\n\n\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Ad spot #3 - Above the content.', 'bluth_admin'),\n\t\t\t\t'desc' => __('Select what kind of ad you want added above the main container.', 'bluth_admin'),\n\t\t\t\t'id' => 'ad_content_mode',\n\t\t\t\t'std' => 'none',\n\t\t\t\t'type' => 'radio',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'none' => __('None', 'bluth_admin'),\n\t\t\t\t\t'html' => __('Shortcode or HTML code like Adsense', 'bluth_admin'),\n\t\t\t\t\t'image' => __('Image with a link', 'bluth_admin')\n\t\t\t\t));\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Add Shortcode or HTML code here', 'bluth_admin'),\n\t\t\t\t'desc' => __('Insert a shortcode provided by this theme or any plugin. You can also add advertising code from any provider or use plain html. To add Adsense just paste the embed code here that they provide and save.', 'bluth_admin'),\n\t\t\t\t'id' => 'ad_content_code',\n\t\t\t\t'class' => 'hide ad_content_code',\n\t\t\t\t'std' => '',\n\t\t\t\t'type' => 'textarea');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Upload Image', 'bluth_admin'),\n\t\t\t\t'desc' => __('Upload an image to add above the header menu and add a link for it in the input box below', 'bluth_admin'),\n\t\t\t\t'id' => 'ad_content_image',\n\t\t\t\t'class' => 'hide ad_content_image',\n\t\t\t\t'type' => 'upload');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Image link', 'bluth_admin'),\n\t\t\t\t'desc' => __('Add a link to the image', 'bluth_admin'),\n\t\t\t\t'id' => 'ad_content_image_link',\n\t\t\t\t'class' => 'hide ad_content_image',\n\t\t\t\t'std' => '',\n\t\t\t\t'type' => 'text');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Add white background', 'bluth_admin'),\n\t\t\t\t'desc' => __('Check this to wrap the ad content in a white box', 'bluth_admin'),\n\t\t\t\t'id' => 'ad_content_box',\n\t\t\t\t'std' => '1',\n\t\t\t\t'class' => 'hide ad_content_options',\n\t\t\t\t'type' => 'checkbox');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Add padding', 'bluth_admin'),\n\t\t\t\t'desc' => __('Add padding to the banner container', 'bluth_admin'),\n\t\t\t\t'id' => 'ad_content_padding',\n\t\t\t\t'class' => 'hide ad_content_options',\n\t\t\t\t'std' => '1',\n\t\t\t\t'type' => 'checkbox');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Banner placement', 'bluth_admin'),\n\t\t\t\t'desc' => __('Where do you want the banner to appear?', 'bluth_admin'),\n\t\t\t\t'id' => 'ad_content_placement',\n\t\t\t\t'class' => 'hide ad_content_options',\n\t\t\t\t'std' => array(\n\t\t\t\t\t'home' => '1',\n\t\t\t\t\t'pages' => '1',\n\t\t\t\t\t'posts' => '1'\n\t\t\t\t),\n\t\t\t\t'type' => 'multicheck',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'home' => __('Frontpage', 'bluth_admin'),\n\t\t\t\t\t'pages' => __('Pages', 'bluth_admin'),\n\t\t\t\t\t'posts' => __('Posts', 'bluth_admin')\n\t\t));\n\n\t$options[] = array(\n\t\t'name' => '<i class=\"icon-flow-tree\"></i> ' . __('Social', 'bluth_admin'),\n\t\t'type' => 'heading');\n\n\t\t$options[] = array(\n\t\t\t'name' => __('Facebook API Options', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Facebook App Id', 'bluth_admin'),\n\t\t\t\t'desc' => __('Insert you Facebook app id here. If you don\\'t have one for your webpage you can create it <a target=\"_blank\" href=\"https://developers.facebook.com/apps\">here</a>', 'bluth_admin'),\n\t\t\t\t'id' => 'facebook_app_id',\n\t\t\t\t'type' => 'text');\n\n\t\t$options[] = array(\n\t\t\t'name' => __('Social Networks', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Facebook', 'bluth_admin'),\n\t\t\t\t'desc' => __('Your facebook link', 'bluth_admin'),\n\t\t\t\t'id' => 'social_facebook',\n\t\t\t\t'std' => '',\n\t\t\t\t'type' => 'text');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Twitter', 'bluth_admin'),\n\t\t\t\t'desc' => __('Your twitter link', 'bluth_admin'),\n\t\t\t\t'id' => 'social_twitter',\n\t\t\t\t'std' => '',\n\t\t\t\t'type' => 'text');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Google+', 'bluth_admin'),\n\t\t\t\t'desc' => __('Your google+ link', 'bluth_admin'),\n\t\t\t\t'id' => 'social_google',\n\t\t\t\t'std' => '',\n\t\t\t\t'type' => 'text');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('LinkedIn', 'bluth_admin'),\n\t\t\t\t'desc' => __('Your LinkedIn link', 'bluth_admin'),\n\t\t\t\t'id' => 'social_linkedin',\n\t\t\t\t'std' => '',\n\t\t\t\t'type' => 'text');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Youtube', 'bluth_admin'),\n\t\t\t\t'desc' => __('Your youtube link', 'bluth_admin'),\n\t\t\t\t'id' => 'social_youtube',\n\t\t\t\t'std' => '',\n\t\t\t\t'type' => 'text');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('RSS', 'bluth_admin'),\n\t\t\t\t'desc' => __('Your RSS feed', 'bluth_admin'),\n\t\t\t\t'id' => 'social_rss',\n\t\t\t\t'std' => '',\n\t\t\t\t'type' => 'text');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Flickr', 'bluth_admin'),\n\t\t\t\t'desc' => __('Your Flickr link', 'bluth_admin'),\n\t\t\t\t'id' => 'social_flickr',\n\t\t\t\t'std' => '',\n\t\t\t\t'type' => 'text');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Vimeo', 'bluth_admin'),\n\t\t\t\t'desc' => __('Your vimeo link', 'bluth_admin'),\n\t\t\t\t'id' => 'social_vimeo',\n\t\t\t\t'std' => '',\n\t\t\t\t'type' => 'text');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Pinterest', 'bluth_admin'),\n\t\t\t\t'desc' => __('Your pinterest link', 'bluth_admin'),\n\t\t\t\t'id' => 'social_pinterest',\n\t\t\t\t'std' => '',\n\t\t\t\t'type' => 'text');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Dribbble', 'bluth_admin'),\n\t\t\t\t'desc' => __('Your dribbble link', 'bluth_admin'),\n\t\t\t\t'id' => 'social_dribbble',\n\t\t\t\t'std' => '',\n\t\t\t\t'type' => 'text');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Tumblr', 'bluth_admin'),\n\t\t\t\t'desc' => __('Your tumblr link', 'bluth_admin'),\n\t\t\t\t'id' => 'social_tumblr',\n\t\t\t\t'std' => '',\n\t\t\t\t'type' => 'text');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Instagram', 'bluth_admin'),\n\t\t\t\t'desc' => __('Your instagram link', 'bluth_admin'),\n\t\t\t\t'id' => 'social_instagram',\n\t\t\t\t'std' => '',\n\t\t\t\t'type' => 'text');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Viadeo', 'bluth_admin'),\n\t\t\t\t'desc' => __('Your viadeo link', 'bluth_admin'),\n\t\t\t\t'id' => 'social_viadeo',\n\t\t\t\t'std' => '',\n\t\t\t\t'type' => 'text');\n\n\t$options[] = array(\n\t\t'name' => '<i class=\"icon-tint\"></i> ' . __('Portfolio Settings', 'bluth_admin'),\n\t\t'type' => 'heading');\n\n\t\t\t$options[] = array(\n\t\t\t'name' => __('Portfolio Pages', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\n\t\t\t\t$options[] = array(\n\t\t\t\t\t'name' => __('Display Excerpt', 'bluth_admin'),\n\t\t\t\t\t'desc' => __('Display the excerpt on portfolio pages', 'bluth_admin'),\n\t\t\t\t\t'id' => 'portfolio_display_excerpt',\n\t\t\t\t\t'std' => '1',\n\t\t\t\t\t'type' => 'checkbox');\n\n\t\t\t$options[] = array(\n\t\t\t'name' => __('Style', 'bluth_admin'),\n\t\t\t'type' => 'info');\t\n\n\t\t\t\t$options[] = array(\n\t\t\t\t\t'name' => __('Portfolio Style', 'bluth_admin'),\n\t\t\t\t\t'desc' => __('Select the default portfolio page style.', 'bluth_admin'),\n\t\t\t\t\t'id' => 'portfolio_style',\n\t\t\t\t\t'std' => 'margin',\n\t\t\t\t\t'type' => 'images',\n\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t'margin' => $imagepath . 'layout-1.jpg',\n\t\t\t\t\t\t'twocolumn' => $imagepath . 'layout-2.jpg',\n\t\t\t\t\t\t'threecolumn' => $imagepath . 'layout-3.jpg',\n\t\t\t\t\t\t'fourcolumn' => $imagepath . 'layout-4.jpg',\n\t\t\t\t\t\t'fivecolumn' => $imagepath . 'layout-5.jpg',\n\t\t\t\t\t));\n\n\t$options[] = array(\n\t\t'name' => '<i class=\"icon-plus-1\"></i> ' . __('Custom CSS', 'bluth_admin'),\n\t\t'type' => 'heading');\n\n\t\t$options[] = array(\n\t\t\t'name' => __('Custom CSS Overwrite', 'bluth_admin'),\n\t\t\t'type' => 'info');\n\n\t\t\t$options[] = array(\n\t\t\t\t'name' => __('Add Custom CSS rules here', 'bluth_admin'),\n\t\t\t\t'desc' => __('Here you can overwrite specific css rules if you want to customize your theme a little. Write into this box just like you would do in a regular css file. Example: body{ color: #444; } <strong style=\"display:block;\">All changes will remain on theme update, as long as the database will remain the same</strong>', 'bluth_admin'),\n\t\t\t\t'id' => 'custom_css',\n\t\t\t\t'class' => 'custom_css',\n\t\t\t\t'std' => '',\n\t\t\t\t'type' => 'textarea');\n\n\n\n\treturn $options;\n}", "title": "" }, { "docid": "b21e1d3c3c304e7cf4aa8058b73cc03b", "score": "0.5418674", "text": "private function set_vehicle_upload_options_gallary()\n\t{\n\t\t$config = array();\n\t\t$config['upload_path'] = './gallery/';\n\t\t$config['allowed_types'] = 'jpg|jpeg|png|pdf|txt|docx|doc|xlsx';\n\t\t$config['max_size'] = '2048';\n\t\t$config['overwrite'] = FALSE;\n\t\treturn $config;\n\t}", "title": "" }, { "docid": "2496368db5a3db41d20c84ae7b5a3aea", "score": "0.54105604", "text": "public function __construct($config)\n {\n $this->setOptions($config);\n }", "title": "" }, { "docid": "829997d40a1eaf741b01c1dfe372ef0b", "score": "0.54105574", "text": "public function initialize($options) {\r\n }", "title": "" }, { "docid": "1d2f424fd734fe5c5544985704d41b40", "score": "0.5391828", "text": "public function __construct(array $options = array())\n {\n $this->setOptions($options);\n }", "title": "" }, { "docid": "e31b387baac59ab9ca0ca3d6d646a05e", "score": "0.5379018", "text": "private function __construct() {\n $this->init_plugin();\n }", "title": "" }, { "docid": "e6e9c7abd0f4e2ada9003773c06a6091", "score": "0.5377712", "text": "public function __construct()\n {\n $this->options = [];\n $this->factory = null;\n }", "title": "" }, { "docid": "1da548a1fba3811e31ce7d49b8e0040f", "score": "0.53734565", "text": "public function __construct($options = null) {\n $this->_initFields();\n\n $this->setOptions($options);\n }", "title": "" }, { "docid": "a1903248e7fe3cf6263b1ff28f077c2d", "score": "0.5350092", "text": "private function set_options() {\n $this->options = get_option( $this->plugin_name . '-options' );\n }", "title": "" }, { "docid": "a1903248e7fe3cf6263b1ff28f077c2d", "score": "0.5350092", "text": "private function set_options() {\n $this->options = get_option( $this->plugin_name . '-options' );\n }", "title": "" }, { "docid": "8c8640f17eeb04465d8f3c6fe69ba381", "score": "0.5349898", "text": "public function __construct()\n {\n $this->options = new ArrayCollection();\n }", "title": "" }, { "docid": "3a96bbdc198f1c89b843c55e524383b4", "score": "0.53445643", "text": "function load_options( $options = array() ) {\n\t\t$this->options = wp_parse_args( $options, array(\n\t\t\t'instance' => '',\n\t\t\t'default_action' => '',\n\t\t\t'login_template' => '',\n\t\t\t'register_template' => '',\n\t\t\t'lostpassword_template' => '',\n\t\t\t'resetpass_template' => '',\n\t\t\t'user_template' => '',\n\t\t\t'show_title' => true,\n\t\t\t'show_log_link' => true,\n\t\t\t'show_reg_link' => true,\n\t\t\t'show_pass_link' => true,\n\t\t\t'register_widget' => false,\n\t\t\t'lostpassword_widget' => false,\n\t\t\t'logged_in_widget' => true,\n\t\t\t'show_gravatar' => true,\n\t\t\t'gravatar_size' => 50,\n\t\t\t'before_widget' => '',\n\t\t\t'after_widget' => '',\n\t\t\t'before_title' => '',\n\t\t\t'after_title' => ''\n\t\t) );\n\t}", "title": "" }, { "docid": "36cad32a5f67831c94e87358eff5c063", "score": "0.5340653", "text": "function __construct() {\n // admin stuff\n add_action( 'admin_init', array( &$this, 'CheckVersion' ) );\n add_action( 'admin_init', array( &$this, 'OptionsHead' ) );\n add_action( 'admin_menu', array( &$this, 'OptionsPage') );\n add_action('wp_footer', array( &$this, 'IsAdmin' ),1 );\n add_filter('plugin_action_links', array( &$this, 'plugin_action_links'), 10, 2);\n // display warning if no options are set\n if( !get_option( 'fv_gravatar_cache') ) {\n add_option('fv_gravatar_cache_nag','1');\n }\n add_action( 'admin_notices', array( $this, 'AdminNotices') );\n\n // change gravatar HTML if cache is configured\n if( get_option( 'fv_gravatar_cache') ) {\n add_filter( 'get_avatar', array( &$this, 'GetAvatar'), 9, 2);\n add_filter( 'fv_gravatar_url', array( &$this, 'cdn_rewrite'), 9, 2); \n }\n // prepare the gravatar cache data prior to displaying comments\n add_filter( 'comments_array', array( &$this, 'CommentsArray' ) );\n // refresh gravatars also on comment submit and save\n add_action('comment_post', array(&$this,'NewComment'), 100000, 1);\n add_action('edit_comment', array(&$this,'NewComment'), 100000, 1);\n\n add_action( 'wp_ajax_load_gravatar_list', array( $this, 'load_gravatar_list' ) );\n }", "title": "" }, { "docid": "d87a326e9f32899f4736321bc07e821d", "score": "0.5334234", "text": "public function loadFromOptions()\n\t{\n\t\t$this->active = intval(CBitrixCloudOption::getOption(\"cdn_config_active\")->getStringValue());\n\t\t$this->expires = intval(CBitrixCloudOption::getOption(\"cdn_config_expire_time\")->getStringValue());\n\t\t$this->domain = CBitrixCloudOption::getOption(\"cdn_config_domain\")->getStringValue();\n\t\t$this->sites = CBitrixCloudOption::getOption(\"cdn_config_site\")->getArrayValue();\n\t\t$this->quota = CBitrixCloudCDNQuota::fromOption(CBitrixCloudOption::getOption(\"cdn_config_quota\"));\n\t\t$this->classes = CBitrixCloudCDNClasses::fromOption(CBitrixCloudOption::getOption(\"cdn_class\"));\n\t\t$this->server_groups = CBitrixCloudCDNServerGroups::fromOption(CBitrixCloudOption::getOption(\"cdn_server_group\"));\n\t\t$this->locations = CBitrixCloudCDNLocations::fromOption(CBitrixCloudOption::getOption(\"cdn_location\"), $this);\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "059f5a934dbe392374a3ab288ab3031c", "score": "0.53335154", "text": "public function __construct() {\n $this->data_setting_slug = Print_Media_Templates_Hook::$data_setting_slug;\n $this->gallery_defaults = Print_Media_Templates_Hook::get_gallery_defaults();\n\n add_filter( 'post_gallery', array( $this, 'post_gallery_filter_callback'), 10, 2 );\n }", "title": "" }, { "docid": "be24a9e7035b97e7fe499c1281e30c66", "score": "0.5333278", "text": "private function set_upload_options(){\n $config = array();\n $config['upload_path'] = './uploads/document/';\n $config['allowed_types'] = 'pdf|xls|xlsx|doc|docx';\n $config['overwrite'] = TRUE;\n $config['encrypt_name'] = false;\n $config['remove_spaces'] = TRUE;\n return $config;\n }", "title": "" }, { "docid": "a34aa20bee8464999b9f8ff3101e1701", "score": "0.5324416", "text": "private function init_options() {\n\n\t\t$this->widget_options = [\n\t\t\t'fusion_display_title' => [\n\t\t\t\t'key' => 'fusion_display_title',\n\t\t\t\t'title' => esc_html__( 'Display Widget Title', 'fusion-builder' ),\n\t\t\t\t'description' => esc_html__( 'Choose to enable or disable the widget title. Specifically useful for WP\\'s default widget titles.', 'fusion-builder' ),\n\t\t\t\t'default' => 'yes',\n\t\t\t\t'choices' => [\n\t\t\t\t\t'yes' => esc_html__( 'Yes', 'fusion-builder' ),\n\t\t\t\t\t'no' => esc_html__( 'No', 'fusion-builder' ),\n\t\t\t\t],\n\t\t\t\t'type' => 'radio_button_set',\n\t\t\t],\n\t\t\t'fusion_padding_color' => [\n\t\t\t\t'key' => 'fusion_padding_color',\n\t\t\t\t'title' => esc_html__( 'Padding', 'Avada' ),\n\t\t\t\t'description' => esc_html__( 'Controls the padding for this widget container. Enter value including any valid CSS unit, ex: 10px.', 'Avada' ),\n\t\t\t\t'css_property' => 'padding',\n\t\t\t\t'type' => 'text',\n\t\t\t],\n\t\t\t'fusion_margin' => [\n\t\t\t\t'key' => 'fusion_margin',\n\t\t\t\t'title' => esc_html__( 'Margin', 'Avada' ),\n\t\t\t\t'description' => esc_html__( 'Controls the margin for this widget container. Enter value including any valid CSS unit, ex: 10px.', 'Avada' ),\n\t\t\t\t'css_property' => 'margin',\n\t\t\t\t'type' => 'text',\n\t\t\t],\n\t\t\t'fusion_bg_color' => [\n\t\t\t\t'key' => 'fusion_bg_color',\n\t\t\t\t'title' => esc_html__( 'Background Color', 'Avada' ),\n\t\t\t\t'description' => esc_html__( 'Controls the background color for this widget container.', 'Avada' ),\n\t\t\t\t'css_property' => 'background-color',\n\t\t\t\t'type' => 'colorpickeralpha',\n\t\t\t],\n\t\t\t'fusion_bg_radius_size' => [\n\t\t\t\t'key' => 'fusion_bg_radius_size',\n\t\t\t\t'title' => esc_html__( 'Background Radius', 'Avada' ),\n\t\t\t\t'description' => esc_html__( 'Controls the background radius for this widget container.', 'Avada' ),\n\t\t\t\t'css_property' => 'border-radius',\n\t\t\t\t'type' => 'text',\n\t\t\t],\n\t\t\t'fusion_border_size' => [\n\t\t\t\t'key' => 'fusion_border_size',\n\t\t\t\t'title' => esc_html__( 'Border Size', 'Avada' ),\n\t\t\t\t'description' => esc_html__( 'Controls the border size for this widget container.', 'Avada' ),\n\t\t\t\t'css_property' => 'border-width',\n\t\t\t\t'type' => 'range',\n\t\t\t\t'min' => 0,\n\t\t\t\t'max' => 50,\n\t\t\t\t'step' => 1,\n\t\t\t\t'value' => 0,\n\t\t\t],\n\t\t\t'fusion_border_style' => [\n\t\t\t\t'key' => 'fusion_border_style',\n\t\t\t\t'title' => esc_html__( 'Border Style', 'Avada' ),\n\t\t\t\t'description' => esc_html__( 'Controls the border style for this widget container.', 'Avada' ),\n\t\t\t\t'css_property' => 'border-style',\n\t\t\t\t'type' => 'select',\n\t\t\t\t'default' => 'solid',\n\t\t\t\t'dependency' => [\n\t\t\t\t\t[\n\t\t\t\t\t\t'element' => 'fusion_border_size',\n\t\t\t\t\t\t'value' => '0',\n\t\t\t\t\t\t'operator' => '!=',\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t\t'choices' => [\n\t\t\t\t\t'solid' => esc_html__( 'Solid', 'Avada' ),\n\t\t\t\t\t'dotted' => esc_html__( 'Dotted', 'Avada' ),\n\t\t\t\t\t'dashed' => esc_html__( 'Dashed', 'Avada' ),\n\t\t\t\t],\n\t\t\t],\n\t\t\t'fusion_border_color' => [\n\t\t\t\t'key' => 'fusion_border_color',\n\t\t\t\t'title' => esc_html__( 'Border Color', 'Avada' ),\n\t\t\t\t'description' => esc_html__( 'Controls the border color for this widget container.', 'Avada' ),\n\t\t\t\t'css_property' => 'border-color',\n\t\t\t\t'type' => 'colorpickeralpha',\n\t\t\t\t'dependency' => [\n\t\t\t\t\t[\n\t\t\t\t\t\t'element' => 'fusion_border_size',\n\t\t\t\t\t\t'value' => '0',\n\t\t\t\t\t\t'operator' => '!=',\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t],\n\t\t\t'fusion_align' => [\n\t\t\t\t'key' => 'fusion_align',\n\t\t\t\t'title' => esc_html__( 'Content Align', 'Avada' ),\n\t\t\t\t'description' => esc_html__( 'Controls content alignment for this widget container. Inherit means it will inherit alignment from its parent element.', 'Avada' ),\n\t\t\t\t'css_property' => 'text-align',\n\t\t\t\t'type' => 'select',\n\t\t\t\t'choices' => [\n\t\t\t\t\t'' => esc_html__( 'Inherit', 'Avada' ),\n\t\t\t\t\t'left' => esc_html__( 'Left', 'Avada' ),\n\t\t\t\t\t'right' => esc_html__( 'Right', 'Avada' ),\n\t\t\t\t\t'center' => esc_html__( 'Center', 'Avada' ),\n\t\t\t\t],\n\t\t\t],\n\t\t\t'fusion_align_mobile' => [\n\t\t\t\t'key' => 'fusion_align_mobile',\n\t\t\t\t'title' => esc_html__( 'Mobile Content Align', 'Avada' ),\n\t\t\t\t'description' => esc_html__( 'Controls mobile content alignment for this widget container. Inherit means it will inherit alignment from its parent element.', 'Avada' ),\n\t\t\t\t'css_property' => 'text-align',\n\t\t\t\t'type' => 'select',\n\t\t\t\t'choices' => [\n\t\t\t\t\t'' => esc_html__( 'Inherit', 'Avada' ),\n\t\t\t\t\t'left' => esc_html__( 'Left', 'Avada' ),\n\t\t\t\t\t'right' => esc_html__( 'Right', 'Avada' ),\n\t\t\t\t\t'center' => esc_html__( 'Center', 'Avada' ),\n\t\t\t\t],\n\t\t\t],\n\t\t];\n\t}", "title": "" }, { "docid": "35b5dd3564e375acb13bec2d781f7d94", "score": "0.53062016", "text": "function options_init() {\n return array(\n 'serverResolutions' => openlayers_get_resolutions('900913'),\n 'maxExtent' => openlayers_get_extent('900913'),\n 'layer_handler' => 'openlayersxyzplus',\n 'baselayer' => FALSE\n );\n }", "title": "" }, { "docid": "132aef729894298af4f4a1e6416ae258", "score": "0.5301731", "text": "protected function initOptions()\n\t{\n\t\t$this->options = array_merge([\n\t\t\t'role' => 'dialog',\n\t\t\t'tabindex' => -1,\n\t\t], $this->options);\n\n Html::addCssClass($this->options, 'uk-modal');\n\t\tHtml::addCssClass($this->dialogOptions, 'uk-modal-dialog');\n\n if ($this->frameless) {\n Html::addCssClass($this->dialogOptions, 'uk-modal-dialog-frameless');\n }\n\n\t\tif ($this->closeButton !== null) {\n\t\t\t$this->closeButton = array_merge([\n\t\t\t\t'class' => 'uk-modal-close uk-close',\n\t\t\t], $this->closeButton);\n\n if ($this->frameless) {\n Html::addCssClass($this->closeButton, 'uk-close-alt');\n }\n\t\t}\n\n\t\tif ($this->toggleButton !== null) {\n\n if (!isset($this->toggleButton['href'])) {\n $this->clientOptions['target'] = '#' . $this->options['id'];\n }\n\n\t\t\t$this->toggleButton = array_merge([\n\t\t\t\t'data-uk-modal' => $this->clientOptions ? $this->jsonClientOptions() : true,\n\t\t\t], $this->toggleButton);\n\t\t}\n\t}", "title": "" }, { "docid": "8b804cef76df5a44902d86784df6268a", "score": "0.52982336", "text": "private function set_vehicle_upload_options2()\n\t{\n\t\t$config = array();\n\t\t$config['upload_path'] = './assets/img/team/';\n\t\t$config['allowed_types'] = 'jpg|jpeg|png|pdf|txt|docx|doc|xlsx';\n\t\t$config['max_size'] = '1024';\n\t\t$config['overwrite'] = FALSE;\n\t\treturn $config;\n\t}", "title": "" }, { "docid": "fd6f0ae1dc7e307cdc1ba6b173d5bd41", "score": "0.52972233", "text": "public function __construct(array $options = array())\n {\n $this->loadOptions($options);\n }", "title": "" }, { "docid": "9b27439c78dbef7427e6a378d932cae6", "score": "0.5295178", "text": "function initOptions() {\n $dbOptions = get_option(SLPLUS_PREFIX.'-options');\n if (is_array($dbOptions)) {\n $this->options = array_merge($this->options,$dbOptions);\n }\n }", "title": "" }, { "docid": "7d11a393432c06dac4c128bebf930d2d", "score": "0.5294305", "text": "public function init()\r\n\t{\r\n\t\tif (!isset($this->htmlOptions['id'])) {\r\n\t\t\t$this->htmlOptions['id'] = $this->getId();\r\n\t\t}\r\n\r\n\t\t$classes = array();\r\n\r\n\t\t$validPlacements = array(\r\n\t\t\tself::PLACEMENT_ABOVE,\r\n\t\t\tself::PLACEMENT_BELOW,\r\n\t\t\tself::PLACEMENT_LEFT,\r\n\t\t\tself::PLACEMENT_RIGHT\r\n\t\t);\r\n\r\n\t\tif (isset($this->placement) && in_array($this->placement, $validPlacements)) {\r\n\t\t\t$classes[] = 'tabs-' . $this->placement;\r\n\t\t}\r\n\r\n\t\tif (!empty($classes)) {\r\n\t\t\t$classes = implode(' ', $classes);\r\n\t\t\tif (isset($this->htmlOptions['class'])) {\r\n\t\t\t\t$this->htmlOptions['class'] .= ' ' . $classes;\r\n\t\t\t} else {\r\n\t\t\t\t$this->htmlOptions['class'] = $classes;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "33285a534ebe64c6f13cc6043882d006", "score": "0.5292673", "text": "private function set_vehicle_upload_options()\n\t{\n\t\t$config = array();\n\t\t$config['upload_path'] = './assets/it_doc/';\n\t\t$config['allowed_types'] = 'jpg|jpeg|png|pdf|txt|docx|doc|xlsx';\n\t\t$config['max_size'] = '2048';\n\t\t$config['overwrite'] = FALSE;\n\t\treturn $config;\n\t}", "title": "" }, { "docid": "c14e408a219cccd406fbb44f2ca27f7a", "score": "0.52922547", "text": "private function set_upload_options() {\n $config = $this->config->item('uploadCar');\n $path = $config['upload_path'];\n if (!is_dir($path))\n //create the folder if it's not already exists\n {\n mkdir($path, 0755, TRUE);\n }\n $config['upload_path'] = $path;\n return $config;\n }", "title": "" }, { "docid": "f998a6db40779972ec4e508f1e51b92f", "score": "0.5289012", "text": "public function __construct($options = null)\n {\n $this->options = $options;\n }", "title": "" }, { "docid": "fc272114a5207a983d9f4215994891fa", "score": "0.52857876", "text": "public function __construct($options = null)\n {\n if (!is_null($options)) {\n if ($options instanceof Zend_Config) {\n $options = $options->toArray();\n }\n $this->setOptions($options);\n }\n }", "title": "" }, { "docid": "c1641f226bb12abae2c3c52acb307f88", "score": "0.52852386", "text": "public function __construct()\n {\n $this->notifications = [];\n $this->options = [];\n $this->lkaPlugins = [];\n $this->lkaPluginOptions = [];\n $this->container = null;\n $this->lateRegister = [];\n }", "title": "" }, { "docid": "4683d8660bbd53ceeed06caaf28b2493", "score": "0.52796805", "text": "function __construct( $settings ) {\n\n\t\t/*\n\t\t* name (string) Single word, no spaces. Underscores allowed\n\t\t*/\n\n\t\t$this->name = 'image_select';\n\n\n\t\t/*\n\t\t* label (string) Multiple words, can include spaces, visible when selecting a field type\n\t\t*/\n\n\t\t$this->label = __('Image Select', 'flotheme');\n\n\n\t\t/*\n\t\t* category (string) basic | content | choice | relational | jquery | layout | CUSTOM GROUP NAME\n\t\t*/\n\n\t\t$this->category = 'choice';\n\n\n\t\t/*\n\t\t* defaults (array) Array of default settings which are merged into the field object. These are used later in settings\n\t\t*/\n\n\t\t$this->defaults = array(\n\t\t\t'choices'\t\t\t=>\tarray(),\n\t\t\t'default_value'\t\t=>\t'',\n\t\t\t'multiple' => 0,\n\t\t\t'image_path'\t\t=>\tget_template_directory_uri() . '/theme-files/admin-assets/img/acf-image-select/',\n\t\t\t'image_extension' => 'png',\n\t\t\t'return_format'\t\t=> 'value'\n\t\t);\n\n\n\t\t/*\n\t\t* l10n (array) Array of strings that are used in JavaScript. This allows JS strings to be translated in PHP and loaded via:\n\t\t* var message = acf._e('image_select', 'error');\n\t\t*/\n\n\t\t$this->l10n = array(\n\t\t\t'error'\t=> __('Error! Please enter a higher value', 'flotheme'),\n\t\t\t'image_path'\t\t=>\tget_template_directory_uri() . '/theme-files/admin-assets/img/layout-images/',\n\t\t);\n\n\n\t\t/*\n\t\t* settings (array) Store plugin settings (url, path, version) as a reference for later use with assets\n\t\t*/\n\n\t\t$this->settings = $settings;\n\n\n\t\t// do not delete!\n \tparent::__construct();\n\n\t}", "title": "" }, { "docid": "04b5a71b8bcda2a00a22d1f542fcdbbe", "score": "0.52772486", "text": "public function init(array $options);", "title": "" }, { "docid": "72298afafcfc612ff9614dcdf69723db", "score": "0.5270291", "text": "public function __construct() {\n\t\t\t$this->config = Option::configMap();\n\t\t}", "title": "" }, { "docid": "3ddf83afaa4e6f5a264c7c5041678e91", "score": "0.5268274", "text": "function jetpack_content_options_init() {\n\t// If the theme doesn't support 'jetpack-content-options', don't continue.\n\tif ( ! current_theme_supports( 'jetpack-content-options' ) ) {\n\t\treturn;\n\t}\n\n\t// Load the Customizer options.\n\trequire dirname( __FILE__ ) . '/content-options/customizer.php';\n\n\t// Load Blog Display function.\n\trequire dirname( __FILE__ ) . '/content-options/blog-display.php';\n\n\t// Load Author Bio function.\n\trequire dirname( __FILE__ ) . '/content-options/author-bio.php';\n\n\t// Load Post Details function.\n\trequire dirname( __FILE__ ) . '/content-options/post-details.php';\n\n\t// Load Featured Images function.\n\tif ( jetpack_featured_images_should_load() ) {\n\t\trequire dirname( __FILE__ ) . '/content-options/featured-images.php';\n\t}\n\n\t// Load Featured Images Fallback function.\n\tif ( jetpack_featured_images_fallback_should_load() ) {\n\t\trequire dirname( __FILE__ ) . '/content-options/featured-images-fallback.php';\n\t}\n}", "title": "" }, { "docid": "e14cfb7bcca8855b41f279f5fb1ea8b1", "score": "0.52612644", "text": "function __construct() {\n\t\t/* Best practice is to save all your settings in 1 array */\n\t\t/* Get this array once and reference throughout plugin */\n\n\t\t$this->opt = get_option('hcIframeWidget');\n\t\t\n\t\t/* You can do things once here when activating / deactivating, such as creating\n\t\t database tables and deleting them. */\n\n\t\tregister_activation_hook(__FILE__,array($this,'activate'));\n\t\tregister_deactivation_hook( __FILE__,array($this,'deactivate'));\n\t\t\n\t\t/* Enqueue any scripts needed on the front-end */\n\n\t\tadd_action('wp_enqueue_scripts', array($this,'frontScriptEnqueue'));\n\t\t\n\t\t/* Create all the necessary administration menus. */\n\t\t/* Also enqueues scripts and styles used only in the admin */\n\n\t\tadd_action('admin_menu', array($this,'adminMenu'));\n\t\t\n\t\t/* adminInit handles all of the administartion settings */ \n\n\t\tadd_action('admin_init', array($this,'adminInit'));\n\t\t\n\t\t// if you need anything in the footer, define it here\n\t\tadd_action('wp_footer', array($this,'footerScript'));\n\t\t$ga_plugin = plugin_basename(__FILE__); \n\t\t\n\t\t// this code creates the settings link on the plugins page\n\t\tadd_filter(\"plugin_action_links_$ga_plugin\", array($this,'pluginSettingsLink'));\n\t\t\n\t\t// create any shortcodes needed\n\t\tadd_shortcode( 'hc_iframewidget', array($this,'shortcode'));\n }", "title": "" }, { "docid": "ad59d155475fdd60fe55a0a061db1c7a", "score": "0.525756", "text": "protected function __construct()\n {\n $this->settings = (array) get_option('dbug_settings');\n\n // set default error handling to screen to logs\n $this->set_error_handler();\n }", "title": "" }, { "docid": "c1cd0f37fd6fc2204ddb53ba2766890f", "score": "0.52471304", "text": "public function __construct() {\n\t\t$this->options['path'] = '1';\n\t\t$this->options['separator'] = '/';\n\t\t$this->options['mydirname'] = 'xelfinder';\n\t\t$this->options['checkSubfolders'] = true;\n\t\t$this->options['tempPath'] = XOOPS_MODULE_PATH . '/' . _MD_ELFINDER_MYDIRNAME . '/cache';\n\t\t$this->options['tmbPath'] = $this->options['tempPath'] . '/tmb/';\n\t\t$this->options['tmbURL'] = $this->options['tempPath'] . '/tmb/';\n\t\t$this->options['default_umask'] = '8bb';\n\t\t$this->options['autoResize'] = false;\n\t}", "title": "" }, { "docid": "61101534cd39829f87e6a478a3cc5fc8", "score": "0.5246126", "text": "public function init()\n {\n $this->sourcePath = '@enupal/socializer/web/assets/fieldmapping';\n\n $this->js = [\n 'dist/js/fieldmapping.min.js'\n ];\n\n parent::init();\n }", "title": "" }, { "docid": "6e3f1dcbeb47bb43381013127e2f2198", "score": "0.52456236", "text": "public function __construct() {\n\n\t\t\t$this->demo_files_path = get_template_directory() . '/inc/importer/demo-files/'; //can\n\n\t\t\t$this->importer_options = array(\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t \t \t => 'light',\n\t\t\t\t\t'name' \t \t\t => 'Light Version',\n\t\t\t\t\t'content_files' => array(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'file_path' => 'light/content_media.xml',\n\t\t\t\t\t\t),\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'file_path' => 'light/content.xml',\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t\t'widget_file' => 'light/widgets.json',\n\t\t\t\t\t'customizer_file' => '',\n\t\t\t\t\t'panel_options_file' => 'light/theme_options.txt',\n\t\t\t\t\t'homepage' => 'home',\n\t\t\t\t\t'set_menus' \t\t => true,\n\t\t\t\t\t'import_notice' => esc_html__( 'After you import this demo, you will have to import the REVOLUTION SLIDER separately. More information can be found in theme documentation, section \"Revolution Slider\"', 'zona' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t \t \t => 'dark',\n\t\t\t\t\t'name' \t \t\t => 'Dark Version',\n\t\t\t\t\t'content_files' => array(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'file_path' => 'dark/content_media.xml',\n\t\t\t\t\t\t),\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'file_path' => 'dark/content.xml',\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t\t'widget_file' => 'dark/widgets.json',\n\t\t\t\t\t'customizer_file' => 'dark/customizer.dat',\n\t\t\t\t\t'panel_options_file' => 'dark/theme_options.txt',\n\t\t\t\t\t'homepage' => 'home',\n\t\t\t\t\t'set_menus' \t\t => true,\n\t\t\t\t\t'import_notice' => esc_html__( 'After you import this demo, you will have to import the REVOLUTION SLIDER separately. More information can be found in theme documentation, section \"Revolution Slider\"', 'zona' ),\n\t\t\t\t),\n\t\t\t);\n\n\n\t\t\t$this->required_plugins = array(\n\t\t\t\tarray(\n\t\t\t \t'path' => 'js_composer/js_composer.php',\n\t\t\t \t'name' => esc_html__( 'WPBakery Visual Composer', 'zona' )\n\t\t\t ),\n\t\t\t array(\n\t\t\t \t'path' => 'rascals_zona_plugin/rascals_zona_plugin.php',\n\t\t\t \t'name' => esc_html__( 'Rascals Themes - Zona Plugin', 'zona' )\n\t\t\t )\n\t\t\t);\n\n\t\t\tself::$instance = $this;\t\n\t\t\tparent::__construct();\n\n\t\t}", "title": "" }, { "docid": "e61e6c628ba02e16e071b24b1b7b36d5", "score": "0.5241588", "text": "private function set_vehicle_upload_options1()\n\t{\n\t\t$config = array();\n\t\t$config['upload_path'] = './vendors/images/projects/';\n\t\t$config['allowed_types'] = 'jpg|jpeg|png|pdf|txt|docx|doc|xlsx';\n\t\t$config['max_size'] = '1024';\n\t\t$config['overwrite'] = FALSE;\n\t\treturn $config;\n\t}", "title": "" }, { "docid": "73ab7211f2903f0cc49dc66fa35d3c07", "score": "0.5230713", "text": "public function __construct($options = array())\n\t{\n\t\tparent::__construct($options);\n\n\t\t// Check that all thumbnail directories are writable...\n\t\tforeach ($this->thumbnails as $thumbnail) {\n\t\t\t$thumbnail['path'] = $this->_check_path($thumbnail['path']);\n\t\t}\n\n\t\tif (!isset($this->rules['Upload::type'])) {\n\t\t\t$this->rules['Upload::type'] = array(array('jpg', 'gif', 'png', 'jpeg'));\n\t\t}\n\t}", "title": "" }, { "docid": "9abd6db65c3feb1e012404cc0e721dd6", "score": "0.5226657", "text": "public function init()\n {\n parent::init();\n $this->clientOptions = [];\n }", "title": "" }, { "docid": "1caa7b756168bad34560e3ea8269737c", "score": "0.52256984", "text": "public function __construct() {\n\n\t\t//$this->options = get_option( 'hbl_option_name' );\n\t\tadd_shortcode( 'lds_social_youtube', array( $this, 'youtube_shortcode' ) );\n\t\tadd_shortcode( 'lds_social_instagram', array( $this, 'instagram_shortcode' ) );\n\t\tadd_shortcode( 'lds_social_facebook', array( $this, 'facebook_shortcode' ) );\n\t\tadd_shortcode( 'lds_social_twitter', array( $this, 'twitter_shortcode' ) );\n\n\n\t}", "title": "" }, { "docid": "eaf163781b2e032ddca3c63686369cf0", "score": "0.52217877", "text": "public function renderOptions()\n {\n $this->addJS([\n _PS_JS_DIR_.'tiny_mce/tiny_mce.js',\n _PS_JS_DIR_.'admin/tinymce.inc.js',\n ]);\n\n $iso = $this->context->language->iso_code;\n Media::addJsDef([\n 'iso' => file_exists(_PS_CORE_DIR_.'/js/tiny_mce/langs/'.$iso.'.js') ? $iso : 'en',\n 'path_css' => _THEME_CSS_DIR_,\n 'ad' => __PS_BASE_URI__.basename(_PS_ADMIN_DIR_),\n ]);\n\n // @TODO Custom selector for textareas with RTE option\n $hax = '';\n // $hax = '<script>$(function () { tinySetup({ editor_selector: \"textarea-autosize\" }); })</script>';\n\n return parent::renderOptions().$hax;\n }", "title": "" }, { "docid": "35ca637d0842b52ce562d7e740c5baf7", "score": "0.521941", "text": "function setOptions() {\n\n\t\t\t/*\n\t\t\t\tOPTION TYPES:\n\t\t\t\t- checkbox: name, id, desc, std, type\n\t\t\t\t- radio: name, id, desc, std, type, options\n\t\t\t\t- text: name, id, desc, std, type\n\t\t\t\t- colorpicker: name, id, desc, std, type\n\t\t\t\t- select: name, id, desc, std, type, options\n\t\t\t\t- textarea: name, id, desc, std, type, options\n\t\t\t*/\n\n\t\t\t$this->options = array(\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Custom logo image', 'react' ),\n\t\t\t\t\t\"type\" => \"subhead\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Enable custom logo image', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_logo\",\n\t\t\t\t\t\"desc\" => __( 'Check to use a custom logo in the header.', 'react' ),\n\t\t\t\t\t\"std\" => \"false\",\n\t\t\t\t\t\"type\" => \"checkbox\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Logo URL', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_logo_img\",\n\t\t\t\t\t\"desc\" => __( 'Upload an image or enter an URL for your image.', 'react' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"upload\" => true,\n\t\t\t\t\t\"class\" => \"logo-image-input\",\n\t\t\t\t\t\"type\" => \"upload\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Logo image <code>&lt;alt&gt;</code> tag', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_logo_img_alt\",\n\t\t\t\t\t\"desc\" => __( 'Specify the <code>&lt;alt&gt;</code> tag for your logo image.', 'react' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"type\" => \"text\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Hide tagline', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_tagline\",\n\t\t\t\t\t\"desc\" => __( 'Check to hide your tagline on the front page.', 'react' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"type\" => \"checkbox\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Subscribe links', 'react' ),\n\t\t\t\t\t\"type\" => \"subhead\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Enable Twitter', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_twitter_toggle\",\n\t\t\t\t\t\"desc\" => __( 'Hip to Twitter? Check this box. Please set your Twitter username in the Twitter menu.', 'react' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"type\" => \"checkbox\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Enable Facebook', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_facebook_toggle\",\n\t\t\t\t\t\"desc\" => __( 'Check this box to show a link to your Facebook page.', 'react' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"type\" => \"checkbox\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Enable Flickr', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_flickr_toggle\",\n\t\t\t\t\t\"desc\" => __( 'Check this box to show a link to Flickr.', 'react' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"type\" => \"checkbox\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Enable Google+', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_google_plus_toggle\",\n\t\t\t\t\t\"desc\" => __( 'Check this box to show a link to Google+.', 'react' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"type\" => \"checkbox\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Disable all', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_follow_disable\",\n\t\t\t\t\t\"desc\" => __( 'Check this box to hide all follow icons (including RSS). This option overrides any other settings.', 'react' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"type\" => \"checkbox\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Twitter name', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_twitter\",\n\t\t\t\t\t\"desc\" => __( 'Enter your Twitter name.', 'react' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"type\" => \"text\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Facebook link', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_facebook\",\n\t\t\t\t\t\"desc\" => __( 'Enter your Facebook link.', 'react' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"type\" => \"text\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Flickr link', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_flickr\",\n\t\t\t\t\t\"desc\" => __( 'Enter your Flickr link.', 'react' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"type\" => \"text\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Google+ link', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_google_plus\",\n\t\t\t\t\t\"desc\" => __( 'Enter your Google+ link.', 'react' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"type\" => \"text\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Typography', 'react' ),\n\t\t\t\t\t\"type\" => \"subhead\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Primary font', 'react' ),\n\t\t\t\t\t\"desc\" => __( 'Fallback font stack is \"Helvetica, Arial, sans-serif\". Added page weight is in parentheses.', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_body_font\",\n\t\t\t\t\t\"std\" => 'Lato:400,900',\n\t\t\t\t\t\"type\" => \"select\",\n\t\t\t\t\t\"options\" => array(\n\t\t\t\t\t\t\"Droid+Sans\" => __( 'Droid Sans (75kb)', 'react' ),\n\t\t\t\t\t\t\"Droid+Serif\" => __( 'Droid Serif (77kb)', 'react' ),\n\t\t\t\t\t\t\"disable\" => __( 'Helvetica', 'react' ),\n\t\t\t\t\t\t\"Kameron\" => __( 'Kameron (90kb)', 'react' ),\n\t\t\t\t\t\t\"Lato:400,900\" => __( 'Lato (49kb)', 'react' ),\n\t\t\t\t\t\t\"Metrophobic\" => __( 'Metrophobic (87kb)', 'react' ),\n\t\t\t\t\t\t\"Muli\" => __( 'Muli (81kb)', 'react' ) ) ),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Layout', 'react' ),\n\t\t\t\t\t\"type\" => \"subhead\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Disable sidebar', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_sidebar_disable\",\n\t\t\t\t\t\"desc\" => __( 'Completely remove the sidebar from your blog.', 'react' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"type\" => \"checkbox\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Show the widgets footer', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_footer_widgets\",\n\t\t\t\t\t\"desc\" => __( 'Set the visibility of the widgets footer.', 'react' ),\n\t\t\t\t\t\"std\" => 'all',\n\t\t\t\t\t\"type\" => \"select\",\n\t\t\t\t\t\"options\" => array(\n\t\t\t\t\t\t\"disable\" => __( 'Nowhere', 'react' ),\n\t\t\t\t\t\t\"all\" => __( 'Everywhere', 'react' ),\n\t\t\t\t\t\t\"notfront\" => __( 'Everywhere but the front page', 'react' ),\n\t\t\t\t\t\t\"pages\" => __( 'On all pages', 'react' ),\n\t\t\t\t\t\t\"pagesnotfront\" => __( 'On all pages but the front page', 'react' ),\n\t\t\t\t\t\t\"frontpage\" => __( 'On the front page only', 'react' ) ) ),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Show the latest news footer', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_footer_news\",\n\t\t\t\t\t\"desc\" => __( 'Set the visibility of the latest news footer.', 'react' ),\n\t\t\t\t\t\"std\" => 'disable',\n\t\t\t\t\t\"type\" => \"select\",\n\t\t\t\t\t\"options\" => array(\n\t\t\t\t\t\t\"disable\" => __( 'Nowhere', 'react' ),\n\t\t\t\t\t\t\"all\" => __( 'Everywhere', 'react' ),\n\t\t\t\t\t\t\"notfront\" => __( 'Everywhere but the front page', 'react' ),\n\t\t\t\t\t\t\"pages\" => __( 'On all pages', 'react' ),\n\t\t\t\t\t\t\"pagesnotfront\" => __( 'On all pages but the front page', 'react' ),\n\t\t\t\t\t\t\"frontpage\" => __( 'On the front page only', 'react' ) ) ),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Show the recent projects footer', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_footer_projects\",\n\t\t\t\t\t\"desc\" => __( 'Set the visibility of the recent projects footer.', 'react' ),\n\t\t\t\t\t\"std\" => 'disable',\n\t\t\t\t\t\"type\" => \"select\",\n\t\t\t\t\t\"options\" => array(\n\t\t\t\t\t\t\"disable\" => __( 'Nowhere', 'react' ),\n\t\t\t\t\t\t\"all\" => __( 'Everywhere', 'react' ),\n\t\t\t\t\t\t\"notfront\" => __( 'Everywhere but the front page', 'react' ),\n\t\t\t\t\t\t\"pages\" => __( 'On all pages', 'react' ),\n\t\t\t\t\t\t\"pagesnotfront\" => __( 'On all pages but the front page', 'react' ),\n\t\t\t\t\t\t\"frontpage\" => __( 'On the front page only', 'react' ) ) ),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Projects', 'react' ),\n\t\t\t\t\t\"type\" => \"subhead\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Hide project items on the blog', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_hide_projects\",\n\t\t\t\t\t\"desc\" => __( 'Posts with the Gallery post format are displayed on any pages using the \"Projects\" page template. They are also shown on the blog. Check this box to hide them from the blog.', 'react' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"type\" => \"checkbox\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Singular project name', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_singular_project_name\",\n\t\t\t\t\t\"desc\" => __( 'Used on the blog to label the project.', 'react' ),\n\t\t\t\t\t\"std\" => 'Project',\n\t\t\t\t\t\"type\" => \"text\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Plural project name', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_plural_project_name\",\n\t\t\t\t\t\"desc\" => __( 'Used for the recent projects footer title.', 'react' ),\n\t\t\t\t\t\"std\" => 'Recent projects',\n\t\t\t\t\t\"type\" => \"text\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Sort projects by', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_sort_projects\",\n\"desc\" => __( 'By default your project items are sorted by date on pages using the Projects page template. Use this option to change the sort order. <br /><br /><strong>NOTE:</strong> This does not affect the Recent Projects footer (controlled in the Layout section).', 'react' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"type\" => \"select\",\n\t\t\t\t\t\"options\" => array(\n\t\t\t\t\t\t\"date\" => __( 'Date', 'react' ),\n\t\t\t\t\t\t\"title\" => __( 'Title', 'react' ),\n\t\t\t\t\t\t\"modified\" => __( 'Last modified', 'react' ),\n\t\t\t\t\t\t\"ID\" => __( 'Post ID', 'react' ),\n\t\t\t\t\t\t\"rand\" => __( 'Randomly', 'react' ) ) ),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Sort order', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_project_sort_order\",\n\"desc\" => __( 'Choose a sort order for your Projects page. Descending (3, 2, 1) or Ascending (a, b, c).', 'react' ),\n\t\t\t\t\t\"std\" => 'DESC',\n\t\t\t\t\t\"type\" => \"select\",\n\t\t\t\t\t\"options\" => array(\n\t\t\t\t\t\t\"DESC\" => __( 'Descending', 'react' ),\n\t\t\t\t\t\t\"ASC\" => __( 'Ascending', 'react' ) ) ),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Footer', 'react' ),\n\t\t\t\t\t\"type\" => \"subhead\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Copyright notice', 'react' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_copyright_name\",\n\t\t\t\t\t\"desc\" => __( 'Your name or the name of your business.', 'react' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"type\" => \"text\")\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "e32ec3d5d2915d7a3b8fa98095876171", "score": "0.5216343", "text": "public function __construct()\n {\n $this->excludedPlugins = [\n 'wps-hide-login'\n ];\n }", "title": "" }, { "docid": "05a2d6e0422c30b078240a881c3c9bca", "score": "0.52135265", "text": "public function __construct()\n {\n $this->options = apply_filters($this->filter, $this->defaults);\n $this->options = array_intersect_key($this->options, $this->defaults);\n }", "title": "" }, { "docid": "96abcd6ede66c1b368581c4acf0dff97", "score": "0.52077895", "text": "public function __construct()\n {\n $tmpl = implode(DIRECTORY_SEPARATOR,\n array(ARCH_PATH,'theme','fileupload.php'));\n parent::__construct($tmpl);\n \n $this->set('name', 'upload');\n $this->set('default_img', '');\n }", "title": "" }, { "docid": "ce630fb7c782bd490af972a365af24a9", "score": "0.52067083", "text": "public function __construct()\n {\n $this->optionBag = new OptionBag();\n\n $this->configureOptionBag($this->optionBag);\n }", "title": "" }, { "docid": "f7e2caed66d09b0802a76aafc94ef740", "score": "0.5206581", "text": "public function init()\n {\n parent::init();\n if (!isset($this->options['id'])) {\n $this->options['id'] = $this->getId();\n }\n }", "title": "" }, { "docid": "909acb67e7dbba1cc355bcf5f8a3d9f1", "score": "0.5200321", "text": "public function initialize() {\n\t\t\tif ( ! isset( $this->option_slug ) ) {\n\t\t\t\t$this->option_slug = SLPLUS_PREFIX . '-options';\n\t\t\t\t$this->option_nojs_slug = SLPLUS_PREFIX . '-options_nojs';\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "e1a59a4774a3078b4e0f7967f70efb05", "score": "0.51970124", "text": "function init_vars() {\r\n \t$this->config_version = 0;\r\n \t$this->blog_id = get_current_blog_id();\r\n\r\n\t\t$this->plugin_main_file = __FILE__;\r\n\t\t$this->plugin_dir = PRETTYTHEMES_PLUGIN_DIR;\r\n\t\t$this->plugin_dir_url = plugin_dir_url($this->plugin_main_file);\r\n\t\t$this->plugin_basename = plugin_basename($this->plugin_main_file);\r\n\t\t$this->plugin_rel = dirname($this->plugin_basename).'/';\r\n\r\n\t\t$wp_upload_dir = wp_upload_dir();\r\n\t\tif($this->blog_id != 1)\r\n\t\t\tforeach ($wp_upload_dir as $type => $value)\r\n\t\t\t\tif($type == 'basedir' || $type == 'baseurl') {\r\n\t\t\t\t\t$parts = explode('/', $value);\r\n\t\t\t\t\tif(is_numeric(end($parts))) {\r\n\t\t\t\t\t\tarray_pop($parts);\r\n\t\t\t\t\t\tarray_pop($parts);\r\n\t\t\t\t\t\t$wp_upload_dir[$type] = implode('/', $parts);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t$this->plugin_dir_custom = $wp_upload_dir['basedir'].'/multisite-theme-manager/';\r\n\t\t$this->plugin_dir_url_custom = $wp_upload_dir['baseurl'].'/multisite-theme-manager/';\r\n\r\n\t\t$this->default_options = array(\r\n\t\t\t'setup_mode' => '1',\r\n\t\t\t'theme' => 'standard/3-eight',\r\n\t\t\t'themes_options' => array('author_link' => '1', 'author_link_target' => '', 'custom_link' => '1', 'custom_link_target' => '', 'tags' => '1', 'version' => '1'),\r\n\t\t\t'themes_auto_screenshots_by_name' => '0',\r\n\t\t\t'themes_page_title' => __('Themes', 'wmd_multisitethememanager'),\r\n\t\t\t'themes_page_description' => '',\r\n\t\t\t'themes_link_label' => __('Learn more about theme', 'wmd_multisitethememanager'),\r\n\t\t\t'author_link_target' => '',\r\n\t\t\t'custom_link_target' => ''\r\n\t\t);\r\n\r\n\t\t//load options\r\n\t\t$this->options = get_site_option('wmd_prettythemes_options', $this->default_options);\r\n }", "title": "" }, { "docid": "3f2825d0300fb836b0a740a018e66195", "score": "0.51888585", "text": "function init_plupload()\n {\n // define our first hash\n $hash = uniqid( 'feuhash_' );\n set_transient( $hash, 1, 60*60*18 );\n\n // grab our salt\n $salt = get_option( '_feufilesalt' ); // unique to each install\n $uploadflag = uniqid( 'feuupload_' );\n $uniqueflag = sha1( $salt . $uploadflag . $_SERVER['REMOTE_ADDR'] );\n set_transient( 'feuupload_' . $uploadflag, $uniqueflag, 60*60*18 );\n\n // handle our on-server location\n $url = 'http';\n if (isset($_SERVER['HTTPS']) && 'off' != $_SERVER['HTTPS'] && 0 != $_SERVER['HTTPS'])\n $url = 'https';\n $url .= '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];\n\n set_transient( 'feu_referer_' . md5( $url . $hash . $salt ), 1, 60*60*18 );\n\n // prep our max file size\n $settings = get_option( FEU_PREFIX . 'settings' );\n if( !empty( $settings ) && isset( $settings['max_file_size'] ) )\n {\n $max_file_size = intval( $settings['max_file_size'] );\n }\n else\n {\n $max_file_size = '10';\n }\n ?>\n <script type=\"text/javascript\">\n var FEU_VARS = {\n destpath: '<?php echo FEU_URL; ?>',\n hash: '<?php echo $hash; ?>',\n uploadflag: '<?php echo $uploadflag; ?>',\n maxfilesize: '<?php echo $max_file_size; ?>',\n customext: <?php if( isset( $settings['custom_file_extensions'] ) && !empty( $settings['custom_file_extensions'] ) ) { ?>\n {title : \"Other\", extensions : \"<?php echo $settings['custom_file_extensions']; ?>\"}\n <?php } else { echo \"null\"; } ?>\n };\n var FEU_LANG = {\n email: '<?php _e( \"You must enter a valid email address.\", \"frontendupload\" ); ?>',\n min: '<?php _e( \"You must queue at least one file.\", \"frontendupload\" ); ?>'\n };\n </script>\n <?php\n wp_enqueue_script(\n 'feu-env'\n ,FEU_URL . '/feu.js'\n ,'jquery'\n ,FLOTHEME_VERSION\n ,TRUE\n );\n }", "title": "" }, { "docid": "24317910783f2a70a165fd5c64b435d9", "score": "0.5187529", "text": "public function __construct()\n {\n\n $this->plugin_name = 'filebird';\n $this->version = NJT_FILEBIRD_VERSION;\n\n $this->load_dependencies();\n $this->set_locale();\n $this->define_admin_hooks();\n }", "title": "" }, { "docid": "2bd702dbfbe880d46d8784b3299a4066", "score": "0.5187522", "text": "function initialize_options() {\n\t\n\t if (bb_current_user_can('manage_options')) {\n\t\t\tbb_update_option('i_api_auto_create_user', false); // Should a new user be created automatically if not already in the bbPress database?\n\t\t\tbb_update_option('i_api_api_url', 'http://localhost:3000/integration_api/'); // Should a new user be created automatically if not already in the bbPress database?\n\t\t\tbb_update_option('i_api_user_username', ''); // How do you store the username in your Rails app?\n\t\t\tbb_update_option('i_api_user_firstname', ''); // How do you store the first name in your Rails app?\n\t\t\tbb_update_option('i_api_user_lastname', ''); // How do you store the last name in your Rails app?\n\t\t\tbb_update_option('i_api_user_email', ''); // How do you store the user email in your Rails app?\n\t\t\tbb_update_option('i_api_user_website', ''); // How do you store the user's website in your Rails app?\n\t\t\tbb_update_option('i_api_single_signon', false); // Automatically detect if a user is logged in?\n\t\t\tbb_update_option('i_api_user_nickname', '');\n\t\t\tbb_update_option('i_api_user_display_name', '');\n\t\t\tbb_update_option('i_api_user_description', '');\n }\n }", "title": "" } ]
507706f91a46df5e29f1f573da183835
Determine whether the Admin can permanently delete the admin.
[ { "docid": "9ade8734dc84feaac8e21ffde3be9477", "score": "0.0", "text": "public function forceDelete(Admin $user, Admin $admin)\n {\n //\n }", "title": "" } ]
[ { "docid": "745975678a12d118677ff179f501b31f", "score": "0.77785313", "text": "public function canDelete(){\n if(strtolower($this->getName()) == 'god'){\n return false;\n }\n if(strtolower($this->getName()) == 'admin'){\n return false;\n }\n if(strtolower($this->getName()) == 'backend'){\n return false;\n }\n if(strtolower($this->getName()) == 'frontend'){\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "b800a6bffcb553a5264e5e14e7c2ef88", "score": "0.7717483", "text": "private function canDelete(): bool\n {\n return $this->get('security.authorization_checker')->isGranted('ROLE_ADMIN');\n }", "title": "" }, { "docid": "fc9052148b1a98aacaa2582419c4c40f", "score": "0.74520975", "text": "public function canDelete(): bool\n {\n return true;\n }", "title": "" }, { "docid": "fc8fab1fe837550fa2e8d5cb9e215617", "score": "0.729967", "text": "public function AllowDelete()\n {\n if ($this->bAllowEditByAll) {\n return true;\n }\n $bAllowDelete = $this->IsOwner();\n if (!$bAllowDelete) {\n $oUser = TdbDataExtranetUser::GetInstance();\n $bIsAdmin = (array_key_exists('isadmin', $oUser->sqlData) && '1' == $oUser->sqlData['isadmin']);\n if ($bIsAdmin) {\n $bAllowDelete = true;\n }\n }\n\n return $bAllowDelete;\n }", "title": "" }, { "docid": "aa9cabc8b68f0cf7b589f7378460bce9", "score": "0.7284091", "text": "public function hasAccessDelete() : bool\n {\n return (user() and user()->hasAccess(strtolower($this->moduleName), PERM_DELETE));\n }", "title": "" }, { "docid": "5ead87f19b97cc2d661d585e6d3fe5dc", "score": "0.7212441", "text": "public function canDelete() {\n\t\treturn $this->stat('can_create') != false;\n\t}", "title": "" }, { "docid": "16c2e28a6a66dc9a70cb9ffe2e268292", "score": "0.7191352", "text": "function deletePossible()\n\t{\n\t\tif (is_object($this->_access)) {\n\t\t\tif (array_key_exists('deletePossible', $this->_access)) {\n\t\t\t\treturn $this->_access->deletePossible;\n\t\t\t}\n\t\t}\n\t\treturn $this->canDelete();\n\t}", "title": "" }, { "docid": "f2a54549f23d11a2aa236a0eff0454e3", "score": "0.7116464", "text": "protected function isDeleteRight()\n {\n if ( in_array('DELETE', $this->getUserPermissions()) || in_array('ROLE_SUPER_ADMIN', $this->getUserRoles()) ) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "344a463c355f0a1140b81f87d2c57911", "score": "0.7102609", "text": "public function checkAccessDelete() : bool\n {\n if ($this->hasAccessDelete()) {\n return true;\n } else {\n if (! Request::ajax()) {\n $this->alertError(trans('app.access_denied'));\n }\n\n return false;\n }\n }", "title": "" }, { "docid": "044c45171bea53761028c90b242f873e", "score": "0.7092747", "text": "function hasDeletePermission()\r\n {\r\n $attributes['uid'] = getFromSession('uid');\r\n $thisUser = new User($attributes);\r\n $userType = $thisUser->getUserType();\r\n \r\n if($userType == 'Unpreviledged')\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n return true;\r\n }\r\n }", "title": "" }, { "docid": "7ed06128ab7d2337387f060b7d9ef908", "score": "0.7086657", "text": "public function delete(Admin $admin)\n {\n return $admin->checkPermissionAccess('Products_delete');\n }", "title": "" }, { "docid": "d3ad61107eb410ed3bc2a025de7eaba6", "score": "0.70765984", "text": "public function isDeletable()\n {\n // You can't delete yourself.\n if ($this->getId() == app('auth')->id()) {\n return false;\n }\n\n // You can't delete admins.\n if ($this->hasRole('admin')) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "96804298b0eae13d78c704662338fb98", "score": "0.70419824", "text": "public function delete()\n {\n // Check if the deleted profile is a last admin profile\n if ($this->isAdmin() && 1 == \\XLite\\Core\\Database::getRepo('XLite\\Model\\Profile')->findCountOfAdminAccounts()) {\n\n $result = false;\n\n \\XLite\\Core\\TopMessage::addError('The only remaining active administrator profile cannot be deleted.');\n\n } else {\n $result = parent::delete();\n }\n\n return $result;\n }", "title": "" }, { "docid": "b5667b44af81a4a9e24a824ae6309393", "score": "0.70119065", "text": "public function isDelete()\n {\n return $this->isAllowing(\"DELETE\"); \n }", "title": "" }, { "docid": "96a666ee5c2d9ab6234a970fc450acff", "score": "0.7011174", "text": "public function delete(Admin $admin)\n {\n return $admin->checkPermissionAccess('role-delete');\n }", "title": "" }, { "docid": "fa6908676eca314a86fdfd76769b20ce", "score": "0.694672", "text": "function canDeleteItem() {\n\n If (($this->fields[\"users_id\"] == Session::getLoginUserID())\n || Session::haveRight('delete_validations', 1)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "b21008ddc539a27e27f35428c68ff614", "score": "0.6942523", "text": "public function edit_delete($admin) {\n foreach ($admin->roles as $role) {\n foreach ($role->permissions as $permission) {\n if (($permission->id == 13 && $permission->id == 14) || $permission->id == 13 || $permission->id == 14) {\n return true;\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "ac82fdaa330642fe85d9fa64a458f802", "score": "0.6924851", "text": "protected function __canDelete() {\r\n\t\t\tif ($this->id < 1) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\treturn true;\r\n\t\t}", "title": "" }, { "docid": "ec8c614520cd3fe3f810b1ed8aa84e14", "score": "0.6864714", "text": "public function isAdmin();", "title": "" }, { "docid": "ec8c614520cd3fe3f810b1ed8aa84e14", "score": "0.6864714", "text": "public function isAdmin();", "title": "" }, { "docid": "b88759540f3d508ef26250409e148da1", "score": "0.68232626", "text": "function is_admin()\n\t{\n\t\t$acl =& CreateObject('sitemgr.ACL_BO');\n\t\t$retval = $acl->is_admin();\n\t\tunset($acl);\n\t\treturn $retval;\n\t}", "title": "" }, { "docid": "9dda39daa065917e43bee6df3fe2c95b", "score": "0.681632", "text": "public function CanDelete()\n\t{\treturn false;\n\t}", "title": "" }, { "docid": "db55962d271dc0a87b2c7c45b168ae76", "score": "0.68102545", "text": "function canDelete(User $user) {\n return $user->canManageTrash();\n }", "title": "" }, { "docid": "eaaee0371805609252d81c08455c5a06", "score": "0.6805512", "text": "public function delete(Admin $admin)\n {\n return $admin->checkPermissionAccess('Order_delete');\n }", "title": "" }, { "docid": "fefc7bb91094986997702fd6452a9cc2", "score": "0.68025917", "text": "public function authorize()\n {\n return $this->user()->can('delete-link');\n }", "title": "" }, { "docid": "62356d1135973313dd9547f9489088a8", "score": "0.6794041", "text": "public function delete(Admin $admin)\n {\n return $admin->checkPermissionAccess('Slider_delete');\n }", "title": "" }, { "docid": "781d27744c608cfc6b0742718f26ced7", "score": "0.67712706", "text": "public function delete(Admin $admin)\n {\n return $this->checkAccess($admin, 6);\n\n }", "title": "" }, { "docid": "541e0058bfd394d55dc9fbabb3017f3a", "score": "0.6767499", "text": "public function deleteAdministrator() {\n $this->openConn();\n $sql = \"DELETE FROM Administrator WHERE uID = :uID\";\n $stmt = $this->conn->prepare($sql);\n $stmt->execute(array(':uID'=>$this->uID));\n\n if($stmt->rowCount() > 0) {\n $this->isAdministrator = false;\n if($this->deleteUserAccount($this->userName)) {\n $results = true;\n }\n }\n else {\n $results = false;\n }\n\n $this->closeConn();\n return $results;\n }", "title": "" }, { "docid": "e9c8d5210fe5292d803e1c9ceacc9c79", "score": "0.6722872", "text": "static public function is_admin()\n\t\t{\n\t\treturn self::get('is_admin');\n\t\t}", "title": "" }, { "docid": "9e86fae44449462fec45847d84876eb6", "score": "0.671613", "text": "public function isAdmin()\n {\n return FALSE;\n }", "title": "" }, { "docid": "e43b350f34dd64c33d4b8829ef365465", "score": "0.6713821", "text": "public static function isAdmin(){\n $userACLS = self::currentAdminUser()->acls();\n if(in_array('Admin', $userACLS)){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "12401fb02a84b0f195452de120c72d8e", "score": "0.67056936", "text": "public static function isAdmin()\n {\n return isset($_SESSION['pk_user']) && $_SESSION['type'] == 'A';\n }", "title": "" }, { "docid": "db866c93aa6d6807cd835528d9997ae3", "score": "0.6702755", "text": "function canDelete($members = null) {\n if(Permission::check('ADMIN')) { return true; }\n return false;\n }", "title": "" }, { "docid": "5f61e21128f356c1a6e644246b74ae34", "score": "0.66840327", "text": "public static function is_admin()\n {\n return current_user_can(self::get_admin_capability());\n }", "title": "" }, { "docid": "addbbab0319b80417c62e3e40037535b", "score": "0.6682265", "text": "public function isAdmin()\n {\n return false;\n }", "title": "" }, { "docid": "d4e09076d3133e054b00f6dec8f7068b", "score": "0.66693676", "text": "protected function beforeDelete() {\n return $this->canDelete();\n }", "title": "" }, { "docid": "b9f362c6fbe16aad3c5d7f3485fe9cdf", "score": "0.66508746", "text": "public static function is_admin()\n {\n list(, $user_id) = Auth::get_user_id();\n return ($user_id == 1);\n }", "title": "" }, { "docid": "fbd5074d6ba23f9141c3f30724827586", "score": "0.6650419", "text": "function userCanEditAndDelete() {\n\t\tglobal $icmsUser, $profile_isAdmin;\n\t\tif (!is_object($icmsUser)) {\n\t\t\treturn false;\n\t\t}\n\t\tif ($profile_isAdmin) {\n\t\t\treturn true;\n\t\t}\n\t\treturn $this->getVar('uid_owner', 'e') == $icmsUser->uid();\n\t}", "title": "" }, { "docid": "92ea69090fbc0926d59d98a5fac46fcf", "score": "0.6641191", "text": "public function isAdmin() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "92dbc09258b9ad9bcc1d63710bf1cdeb", "score": "0.6639508", "text": "public static function is_admin()\n {\n\n return current_user_can(self::get_admin_capability());\n }", "title": "" }, { "docid": "9ee32478ccb3f85d410b9aa147a84bc5", "score": "0.66307026", "text": "public static function is_admin(){\n $is_admin = Configurer::get_instance()->get_is_admin();\n return $is_admin ?: false;\n }", "title": "" }, { "docid": "a69fb27a780fd1fc1b96e8ed5a10b181", "score": "0.66284865", "text": "function isAdmin()\r\n\t{\r\n\t\t\r\n\t\treturn ( isset( \\Classes\\Core\\Session::instance()->user_id ) && ! empty( \\Classes\\Core\\User::find_by_id( \\Classes\\Core\\Session::instance()->user_id )->privilege ) ) ? true : false;\r\n\t}", "title": "" }, { "docid": "2d66421ae81dc2c59946d0578f548d0f", "score": "0.66273904", "text": "public function isAdmin()\n {\n if (! $this->exists())\n {\n return false;\n }\n \n return $this->user->isAdmin();;\n }", "title": "" }, { "docid": "8e1d5e087ed24a9fe7d5efdefccf2b77", "score": "0.66243964", "text": "public function isAdmin() { }", "title": "" }, { "docid": "33f3e7a57c36dce89d198a48b43579ae", "score": "0.6622869", "text": "function canDelete($user) {\n if($user->isAdministrator()) {\n return true;\n } // if\n \n if($this->getCreatedById() == $user->getId()) {\n $created_on = $this->getCreatedOn();\n return $created_on->getTimestamp() + 1800 < time(); // Available for delete for 30 minutes after the post\n } // if\n \n return false;\n }", "title": "" }, { "docid": "b01bc7dd7ef2946fe4cc99b1e93a7e93", "score": "0.6609541", "text": "public function isAdmin() {\n\t\treturn in_array($this->getID(), UserConfig::$admins);\n\t}", "title": "" }, { "docid": "007b2c5fb7bf41400670b6b596d3522c", "score": "0.6608772", "text": "public function isAdmin() {\n if (auth::getCurrentUserNumRole() == 3) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "27cf542ecc23fca88e7d6199e0a7c240", "score": "0.660873", "text": "public static function admin() {\n\t\t$ss = Session::get();\n\t\tif(!$ss) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $ss[\"clientadmin\"] == 1;\n\t}", "title": "" }, { "docid": "1eb235a2ff05b49bde24b94562bba796", "score": "0.66059947", "text": "public function isDelete();", "title": "" }, { "docid": "95159a804b7534d23877a235b99f786f", "score": "0.66015506", "text": "public function hasAdmin( )\n {\n $dns = $this->getConnectDB( $this->dbh );\n if ( $dns ){\n $result = $this->getSuperAdmin( $dns );\n $this->disconnect();\n }\n else\n {\n $result = false;\n }\n return $result;\n }", "title": "" }, { "docid": "17ea1c1d4e113529e72c168250eae844", "score": "0.6600865", "text": "public function isAdmin() {\n return !$this->isMember();\n }", "title": "" }, { "docid": "3afde55fe5dab30a34a71fee9e17a4a2", "score": "0.6598916", "text": "protected function isAdmin() {\n return Session::isAdmin();\n }", "title": "" }, { "docid": "e570fa0f5304612b7cc0165d60b6f094", "score": "0.65864074", "text": "public function userCanEditAndDelete() {\n\t\tglobal $profile_isAdmin;\n\n\t\tif (!is_object(icms::$user)) return false;\n\t\tif ($profile_isAdmin) return true;\n\t\treturn $this->getVar('uid_owner', 'e') == icms::$user->getVar('uid');\n\t}", "title": "" }, { "docid": "b060561dd1b4642d499f015be1649f51", "score": "0.65848", "text": "public function isAdmin()\r\n {\r\n return Yii::app()->user->checkAccess('administrator');\r\n }", "title": "" }, { "docid": "2c697dff3b9062aa1edde52d0186ce5b", "score": "0.6581712", "text": "public function is_admin() {\n\t\treturn current_user_can('administrator');\n\t}", "title": "" }, { "docid": "3638136aeb27f372a842e33de5280f46", "score": "0.65796417", "text": "function isAdmin() {\n return $this->type === 'adminstrator';\n }", "title": "" }, { "docid": "01d7f7f33abf92c1deee1dcbefe9d10a", "score": "0.657656", "text": "public function isDeleted()\r\n\t{\r\n\t\tif( $this->isGuest )\r\n\t\t\treturn false;\r\n\t\t\r\n\t\treturn $this->isUserDeleted($this->id);\r\n\t}", "title": "" }, { "docid": "c7aabbee0562b52d8753c0a1e5c1eacf", "score": "0.65762943", "text": "public static function checkAdmin()\n {\n \n $userId = User::checkLogged();\n\n if($userId)\n {\n\t $user_type = User::checkLoggedType();\n\n\t if ($user_type == 'admin') {\n\t return true;\n\t } \t\n }\n\n die('Access denied');\n }", "title": "" }, { "docid": "fe45175d92bc8e173b6af85e009a1021", "score": "0.65630984", "text": "public static function isAdmin() {\n $user = self::getUser();\n return $user && $user['admin'];\n }", "title": "" }, { "docid": "ec25dfcf07ac2a84d0d755a4f5cf4d0a", "score": "0.6562589", "text": "public function isAdmin()\n {\n if ($this->Type == 0)\n return true;\n else\n return false;\n }", "title": "" }, { "docid": "94ae246fae7f916f14a98fe989415e17", "score": "0.6558252", "text": "public function isAdmin(){\n\n $variable = $this->getValue(\"type\", \"officer\", \"username\", $this->user);\n if($variable == \"a\")\n return true;\n\n return false;\n }", "title": "" }, { "docid": "c7f82901f797897c74b819565d0b5e3f", "score": "0.65571076", "text": "public static function isAdmin()\n {\n return (\\Auth::user()->user_type == 0) ? true : false;\n }", "title": "" }, { "docid": "6fcd646356c497653f590ffe1d665cfa", "score": "0.6555977", "text": "public function delete(Admin $admin)\n {\n return $this->getPermission($admin,'Delete Trip');\n }", "title": "" }, { "docid": "171a2192c7e35d0572e87993da176757", "score": "0.655397", "text": "public function admin()\n {\n return $this->type === 'admin';\n }", "title": "" }, { "docid": "b674a885a912664fc7ba694e1821ca78", "score": "0.65475196", "text": "public function isAdmin()\n {\n return $this->is_admin ? true : false;\n }", "title": "" }, { "docid": "84036e1c27f492eb66a5acc71239bd97", "score": "0.6543112", "text": "public function isDelete(): bool;", "title": "" }, { "docid": "84036e1c27f492eb66a5acc71239bd97", "score": "0.6543112", "text": "public function isDelete(): bool;", "title": "" }, { "docid": "56da1d5e199a5c7668dd8dc82b326faf", "score": "0.6538296", "text": "public function canAdminCharge()\n\t{\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "6d042c1ff73be034f049082a4ffeca0f", "score": "0.65379435", "text": "public static function isAdmin() {\n\t\treturn Yii::$app->user->identity->rol_id == self::ROLE_ADMIN;\n\t}", "title": "" }, { "docid": "e6d64560ae1f4f741d0b0e40165ff3f4", "score": "0.6528318", "text": "public function isAdmin(){\n if ( $this->admin == 'true'){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "0a4b554d750e53da6e7be5c0e427f26b", "score": "0.6519883", "text": "public function isAdmin(){\n return $this->type === \"admin\";\n }", "title": "" }, { "docid": "4e764534eb922820044c55f4e4386f8c", "score": "0.6511892", "text": "public function isAdmin(): bool\n {\n return $this->is_admin;\n }", "title": "" }, { "docid": "ed437c0a465d3165ae5ccc79c381b6de", "score": "0.6511083", "text": "function is_admin() {\n\t$user = Auth::user();\n\treturn $user !== NULL && $user->admin;\n}", "title": "" }, { "docid": "60e614ff26855594c793eb537383eda6", "score": "0.65051496", "text": "public function isAdmin(): bool\n {\n return (bool)$this->getSession('admin');\n }", "title": "" }, { "docid": "21e8bb10ab76c48b4452b60c251b5a2e", "score": "0.6504314", "text": "public function isDeleting()\n {\n return $this->option('delete') == 'true';\n }", "title": "" }, { "docid": "944e8ff964d148bd2f401226c6a24533", "score": "0.6502119", "text": "public static function isAdmin()\n {\n return !Yii::$app->user->isGuest ? Yii::$app->user->identity->username === 'admin' : false;\n }", "title": "" }, { "docid": "92e60326c1da5a84e282f697ddd1e707", "score": "0.65017015", "text": "function esAdmin() {\n\t\tif (isset($_SESSION['tipo']) && $_SESSION['tipo'] == 'admin')\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "05f4b89c3a3ddba42da53f442b967708", "score": "0.6500376", "text": "static function isAdmin()\n {\n if (self::check() && isset($_SESSION['isAdmin'])) {\n return $_SESSION['isAdmin'];\n } else {\n\t\t\treturn false;\n\t\t}\n }", "title": "" }, { "docid": "7a5d7e43c13fc5b1ecd2505fe7973fc2", "score": "0.6498391", "text": "public function isAdmin()\n {\n return $this->data['is_admin'];\n }", "title": "" }, { "docid": "83dd8cf7480b2ca26a5b47e32bc816f9", "score": "0.6484703", "text": "protected function isDeleting(): bool\n {\n return $this->option('delete') == 'true';\n }", "title": "" }, { "docid": "ed6eced6041c5d8b9733be6cdb078b27", "score": "0.648363", "text": "public static function is_admin() {\n\t\treturn is_user_logged_in() && current_user_can( 'manage_options' );\n\t}", "title": "" }, { "docid": "5fd71c8ce3eb9befd15d4ed2d391dea4", "score": "0.64832526", "text": "public function canBeDeleted()\n\t{\n\t\treturn !DB::table('model_has_categories')->where('category_id', $this->id)->count();\n\t}", "title": "" }, { "docid": "e83cd5c3f5abe7e1c320ae4d42d2aa73", "score": "0.6482725", "text": "protected function validateDelete()\r\n\t{\r\n\t\tif (!$this->user->hasPermission('modify', 'extension/coinremitter/module/coinremitter')) {\r\n\t\t\t$this->error['warning'] = $this->language->get('error_permission');\r\n\t\t}\r\n\t\treturn !$this->error;\r\n\t}", "title": "" }, { "docid": "649ebae7cbf19c8c75762806756b3cfa", "score": "0.6481706", "text": "public function isAdmin()\n\t{\n\t\treturn $this->userType->nom == \"Admin\";\n\t}", "title": "" }, { "docid": "c46fbd990935eb0d329b7b4e12b4b76f", "score": "0.6481014", "text": "public function isAdmin() {\n\t // Admin and Developers can access every action\n\t\t$this->loadModel('User');\n\t if ( $this->User->find('first', array('conditions'=>array('User.id'=>$this->Auth->user('id'),'User.role_id'=>'1')))) {\n\t\t return true;\n\t }\n\n\t // Default deny\n\t return false;\n\t}", "title": "" }, { "docid": "d89adc710093f99dfd7065e86e4ffb63", "score": "0.6480523", "text": "public function isDeletable()\n\t{\n\t\treturn $this->getRelationModuleModel()->isPermitted('Delete');\n\t}", "title": "" }, { "docid": "29afeaecf8fc5f83547be7a8dd772260", "score": "0.64798856", "text": "public function adminGuard()\n {\n return ($_SESSION['user']->role == 'admin');\n }", "title": "" }, { "docid": "8e5f420cb822b6d531f8a95e251d3c6e", "score": "0.6469286", "text": "public function isAdmin()\n {\n return $this->getIsAdmin();\n }", "title": "" }, { "docid": "5ac0f802611c3d6d6f93235f8284e34c", "score": "0.6468915", "text": "function canDelete($row = null)\n\t{\n\t\t$canUserDo = $this->canUserDo($row, 'allow_delete2');\n\t\tif ($canUserDo !== -1) {\n\t\t\tif ($canUserDo === true) {\n\t\t\t\t$this->_access->deletePossible = true;\n\t\t\t}\n\t\t\treturn $canUserDo;\n\t\t}\n\t\tif (!is_object($this->_access) || !array_key_exists('delete', $this->_access)) {\n\t\t\t$groups = JFactory::getUser()->authorisedLevels();\n\t\t\t$this->_access->delete = in_array($this->getParams()->get('allow_delete'), $groups);\n\t\t}\n\t\treturn $this->_access->delete;\n\t}", "title": "" }, { "docid": "fdd4d44da1cd1056894f8a7d70b19448", "score": "0.6462892", "text": "public function canDelete() {\n if (($this->default_lang) or ($this->id == Yii::app()->sourceLanguage)) return false;\n return true;\n }", "title": "" }, { "docid": "9caec4695a22f3939c6a68bcc182ba67", "score": "0.64614344", "text": "public function isNeedDelete(): bool\n {\n }", "title": "" }, { "docid": "d208356f815eccd7198b6d15c88b2d08", "score": "0.6458182", "text": "public static function destroy()\n {\n\n if( (!session()->get(\"user\")->permission()->where('permissao_id', 6)->get()->isEmpty()))\n return true;\n\n return false;\n\n }", "title": "" }, { "docid": "65b125b9cac4a05f9a24e421ccbe1cd7", "score": "0.6457611", "text": "public function isAdmin()\n {\n if (Auth::user()->isadmin > 0) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "7cfe41cf90297357533a293e0cbb5314", "score": "0.6457044", "text": "public function isAdmin()\n\t{\n\t\treturn (int)$this->role === static::ROLE_ADMIN;\n\t}", "title": "" }, { "docid": "f5d766ad5b245a54ce92f691e9124e62", "score": "0.6455947", "text": "public static function isAdmin()\n {\n if (Auth::check() && Auth::user()->is_admin)\n {\n return true;\n }\n else \n {\n return false;\n }\n }", "title": "" }, { "docid": "ece522c5cf8df124c47e3f7ad59f4da3", "score": "0.64554703", "text": "public function delete(Admin $admin)\n {\n return $this->getPermission($admin, 14);\n }", "title": "" }, { "docid": "b0717cd0377decfbe2d032b89be7997f", "score": "0.6453471", "text": "public function getAllowDelete()\n {\n return $this->allowDelete;\n }", "title": "" }, { "docid": "2a1ad614b8b0d2bbdffed1065c4e2ff2", "score": "0.64530134", "text": "public function isAdmin() {\n return ('admin' === $this->get('role'));\n }", "title": "" }, { "docid": "26a1455743b99b65ac1778b13844f0a2", "score": "0.6450872", "text": "public function authorize()\n {\n if (! $this->can('delete-internal_notice')) {\n return false;\n }\n\n return InternalNotice::where('user_id', Auth::id())->where('id', $this->route('internalNotice'))->exists();\n }", "title": "" }, { "docid": "772af24b107c7c63e3050c8f9a568e01", "score": "0.64496326", "text": "function is_admin()\n {\n $ci =& get_instance();\n return $ci->auth_model->is_admin();\n }", "title": "" }, { "docid": "47467235771b3418ebafbb0bfb548200", "score": "0.6435436", "text": "public function authorize()\n {\n $accessor = $this->user();\n $user = $this->route('user');\n\n return ($accessor->isAdmin() || $accessor->hasKey('delete-users')) && \n $accessor->id !== $user->id;\n }", "title": "" } ]
e1a1d3811572737865d88a315cf0499e
Load Custom CSS //
[ { "docid": "8df400e2e03ca3318798e1d78625916f", "score": "0.0", "text": "function load_scripts() {\n wp_enqueue_style('main-stylesheet', get_template_directory_uri() . '/style.css');\n}", "title": "" } ]
[ { "docid": "98e43e505ad1e27955a1bcf3aa9c71a3", "score": "0.7767783", "text": "public function load_css()\n {\n foreach ($this->styles as $style) {\n echo '<link rel=\"stylesheet\" href=\"' . $style . '.css\" />'.\"\\n\";\n }\n }", "title": "" }, { "docid": "22302a14990ed5f7be7466f4858c82b0", "score": "0.7692369", "text": "function elgg_load_css($name) {\n\telgg_load_external_file('css', $name);\n}", "title": "" }, { "docid": "41276dc768e15d47d496c93270a378aa", "score": "0.7584652", "text": "public function dynamic_css() {\n\t\tinclude_once( ICONIC_WDS_PATH . \"assets/frontend/css/user.css.php\" );\n\t}", "title": "" }, { "docid": "4fc5d7dad8ab15ffffe6ff476f51e923", "score": "0.74704427", "text": "public function addCSS()\n {\n // $this->addToVar('cssCode', $this->addResource('/twbs/bootstrap/dist/css/bootstrap.min', 'css'));\n // $this->addToVar('cssCode', $this->addResource('/css/alxarafe', 'css'));\n }", "title": "" }, { "docid": "5f1f5a74023d895c2289c617551497b7", "score": "0.735862", "text": "public function global_custom_css() {\n\n\t\t// just when custom css requested\n\t\tif ( empty( $_GET['better_framework_css'] ) OR intval( $_GET['better_framework_css'] ) != 1 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->display();\n\n\t\texit;\n\t}", "title": "" }, { "docid": "7673ab85836eea99583bdb25e3a7f38a", "score": "0.7358536", "text": "function goa_theme_custom_css_page() {\n\trequire_once( get_template_directory() . '/inc/templates/goa-theme-custom-css.php');\n}", "title": "" }, { "docid": "37799eb95bb5838a08975be6785085bc", "score": "0.73354346", "text": "function add_css()\n{\n link_custom_css('/info-page.css');\n link_custom_css('/search.css');\n}", "title": "" }, { "docid": "f09795ad7d4efae0aafbb7a50bf2b041", "score": "0.7149344", "text": "function wpbc_load_css_on_admin_side() {\n wpbc_load_css('admin');\n}", "title": "" }, { "docid": "8c157d286dc39a0f4a56be7d52787c32", "score": "0.7145442", "text": "function loadCSS(){\n echo \"<!-- CSS elements are loaded here -->\\n\";\n if(is_array($this->css)){\n foreach ($this->css as $key => $value) {\n if(!is_array($this->css[$key])){\n echo \"<link rel=\\\"stylesheet\\\" href=\\\"{$this->css[$key]}\\\"/>\\n\";\n }\n }\n }\n else{\n echo \"<link rel=\\\"stylesheet\\\" href=\\\"{$this->css}\\\"/>\";\n \n } \n }", "title": "" }, { "docid": "09581b89c9be920cf6564df834e0bcb7", "score": "0.71307796", "text": "function add_css()\n{\n link_custom_css('/info-page.css');\n}", "title": "" }, { "docid": "09581b89c9be920cf6564df834e0bcb7", "score": "0.71307796", "text": "function add_css()\n{\n link_custom_css('/info-page.css');\n}", "title": "" }, { "docid": "5f6f0c67d8b3cd1a90e4d1109a4761ec", "score": "0.7113424", "text": "private function _browser_css()\n\t{\n\t\tee()->cp->add_to_head(ee()->view->head_link('css/file_browser.css'));\n\t}", "title": "" }, { "docid": "9f00a28441fdbfbf829023667017ef85", "score": "0.71038526", "text": "protected function loadStylesheets() {\n\t\t$this->pageRenderer->addCssFile($this->stylesheetsPath . 'Taxonomy.css');\n\t}", "title": "" }, { "docid": "2c853e0c2a3dd27dbb24402a98271e07", "score": "0.708082", "text": "function load_stylesheet() {\n\t\t$options = get_option('phpull_options');\n\t\t$options['phpull_theme'] = isset($options['phpull_theme']) ? $options['phpull_theme'] : 'default.css';\n\t\techo '<link type=\"text/css\" rel=\"stylesheet\" href=\"' . $this->pluginurl . 'themes/' . attribute_escape($options['phpull_theme']) . '\"></link>' . \"\\n\";\n\t}", "title": "" }, { "docid": "9d05313a25ccc1c977897d94e65d2541", "score": "0.70616484", "text": "function load_css() {\r\n\t\t$css_files = scandir('app/assets/stylesheets');\r\n\r\n\t\tif (defined(\"CSS_PRELOADS\"))\r\n\t\t{\r\n\t\t\t$load_priorities = unserialize(CSS_PRELOADS);\r\n\t\t\r\n\t\t\tforeach ($load_priorities as $css_file)\r\n\t\t\t{\r\n\t\t\t\techo '<link rel=\"stylesheet\" type=\"text/css\" href=\"' . ROOT . 'app/assets/stylesheets/' . $css_file . \"\\\">\\n\";\r\n\t\t\t}\r\n\r\n\t\t\tforeach ($css_files as $css) {\r\n\t\t\t\tif (($css != '.') && ($css != '..') && (!in_array($css, $load_priorities)))\r\n\t\t\t\t{\r\n\t\t\t\t\t$filename_split = explode(\".\", $css);\r\n\r\n\t\t\t\t\tif (isset($filename_split[1]) && $filename_split[1] == 'css') {\r\n\t\t\t\t\t\techo '<link rel=\"stylesheet\" type=\"text/css\" href=\"' . ROOT . 'app/assets/stylesheets/' . $css . \"\\\">\\n\";\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\telse\r\n\t\t{\r\n\t\t\tforeach ($css_files as $css) {\r\n\t\t\t\tif (($css != '.') && ($css != '..'))\r\n\t\t\t\t{\r\n\t\t\t\t\techo '<link rel=\"stylesheet\" type=\"text/css\" href=\"' . ROOT . 'app/assets/stylesheets/' . $css . \"\\\">\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3049318670639f6b2548caf1aeca5d87", "score": "0.7043992", "text": "public function load_css()\n\t{\n\t\tglobal $pagenow, $typenow;\n\n\t\t// Bail if we aren't on the edit.php page or the post.php page.\n\t\tif ( ( $pagenow != 'edit.php' && $pagenow != 'post.php' ) || $typenow != 'nf_sub' )\n\t\t\treturn false;\n\n\t\tninja_forms_admin_css();\n\t}", "title": "" }, { "docid": "8e1e295d460ae24752edf0532774e771", "score": "0.7023237", "text": "public function add_css(){\n\n\t\tif ($this->use['css'] == 1){\n\t\t\twp_enqueue_style( 'banner-aquit', $this->plugin_url.'plugin/jquery.cycle.css', null, null);\n\t\t}\n\t\t\t\n\t}", "title": "" }, { "docid": "675a0ddb0689579a9922529e5c0512f5", "score": "0.69961", "text": "protected function loadCss($path)\n {\n $this->page->addCss($path);\n }", "title": "" }, { "docid": "6a155ce543695e070258821571819d64", "score": "0.69894433", "text": "public function add_css() {\n\t\twp_register_style( 'font-awesome', '//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css' );\n\t\twp_register_style( 'wp-to-top', plugins_url( 'wp-to-top/css/wp-to-top.css' ) );\n\n\t\twp_enqueue_style( 'font-awesome' );\n\t\twp_enqueue_style( 'wp-to-top' );\n\n\t\t// custom css from the settings\n\t\trequire_once ( dirname( __DIR__ ) . '/views/css.php' );\n\t\twp_add_inline_style( 'wp-to-top', $custom_css );\n\t}", "title": "" }, { "docid": "ec7c64de3ca27040e8e69a126696a1b2", "score": "0.69883525", "text": "protected function loadBaseCss()\n {\n $this->loadCss(\"global/plugins/font-awesome/css/font-awesome.min.css\");\n $this->loadCss(\"global/plugins/simple-line-icons/simple-line-icons.min.css\");\n $this->loadCss(\"global/plugins/bootstrap/css/bootstrap.min.css\");\n $this->loadCss(\"global/plugins/bootstrap-switch/css/bootstrap-switch.min.css\");\n $this->loadCss(\"global/plugins/bootstrap-fileinput/bootstrap-fileinput.css\");\n $this->loadCss(\"global/plugins/dropzone/dropzone.min.css\");\n $this->loadCss(\"global/plugins/dropzone/basic.min.css\");\n $this->loadCss(\"global/plugins/bootstrap-daterangepicker/daterangepicker.min.css\");\n $this->loadCss(\"global/plugins/jquery-multi-select/css/multi-select.css\");\n $this->loadCss(\"global/plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css\");\n $this->loadCss(\"global/plugins/bootstrap-timepicker/css/bootstrap-timepicker.min.css\");\n $this->loadCss(\"global/plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css\");\n $this->loadCss(\"global/plugins/select2/css/select2.min.css\");\n $this->loadCss(\"global/plugins/select2/css/select2-bootstrap.min.css\");\n $this->loadCss(\"global/plugins/bootstrap-modal/css/bootstrap-modal-bs3patch.css\");\n $this->loadCss(\"global/plugins/bootstrap-modal/css/bootstrap-modal.css\");\n $this->loadCss(\"global/plugins/morris/morris.css\");\n $this->loadCss(\"global/plugins/fullcalendar/fullcalendar.min.css\");\n $this->loadCss(\"global/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.css\");\n $this->loadCss(\"global/plugins/jqvmap/jqvmap/jqvmap.css\");\n $this->loadCss(\"global/plugins/datatables/datatables.min.css\");\n $this->loadCss(\"global/plugins/datatables/plugins/bootstrap/datatables.bootstrap.css\");\n $this->loadCss(\"global/plugins/bootstrap-markdown/css/bootstrap-markdown.min.css\");\n $this->loadCss(\"global/plugins/cubeportfolio/css/cubeportfolio.css\");\n $this->loadCss(\"pages/css/portfolio.min.css\");\n //$this->loadCss(\"global/plugins/typeahead/typeahead.css\");\n $this->loadCss(\"global/css/components-rounded.min.css\");\n $this->loadCss(\"global/css/plugins.min.css\");\n $this->loadCss(\"global/plugins/bootstrap-sweetalert/sweetalert.css\");\n $this->loadCss(\"global/plugins/jcrop/css/jquery.Jcrop.min.css\");\n $this->loadCss(\"pages/css/image-crop.min.css\");\n $this->loadCss(\"pages/css/profile.min.css\");\n $this->loadCss(\"pages/css/login.min.css\");\n $this->loadCss(\"layouts/layout5/css/layout.min.css\");\n $this->loadCss(\"layouts/layout5/css/custom.min.css\");\n //$this->loadCss(\"layouts/layout5/css/step-two.css\");\n $this->loadCss(\"jquery-te-1.4.0.css\");\n //$this->loadCss(\"custom.css\");\n }", "title": "" }, { "docid": "7aa75838472cd9c8f371e226a3f1a2fa", "score": "0.69870394", "text": "public function add_dynamic_stylesheet() {\n $mce_css = get_bloginfo('url') . '?custom_styles_trigger=1';\n wp_register_style('custom_styles_css', $mce_css);\n wp_enqueue_style('custom_styles_css');\n }", "title": "" }, { "docid": "a7e103c306731ba47b6bf538accebd82", "score": "0.697802", "text": "private function load_custom_wp_admin_style() {\n\t\twp_enqueue_style('bootstrap-css', plugins_url('/provider/bootstrap/css/bootstrap.min.css',__FILE__));\n\n\t\twp_enqueue_style('fontawesome_css-css', plugins_url('/provider/font-awesome/css/font-awesome.min.css' ,__FILE__));\n\n\t\twp_enqueue_style('bootstrap_social-css', plugins_url('/provider/bootstrap-social/bootstrap-social.css' ,__FILE__));\n\t}", "title": "" }, { "docid": "737736541525ab7c193be7ba48e6673b", "score": "0.6967314", "text": "function load_stylesheets() {\n\n wp_register_style('bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css', array(), false,'all');\n wp_enqueue_style('bootstrap');\n\n wp_register_style('style', get_stylesheet_directory_uri() . '/style.css', array(), rand(111,9999), 'all');\n wp_enqueue_style('style');\n\n wp_register_style('my-style', get_stylesheet_directory_uri() . '/page.css', array(), rand(111,9999), 'all');\n wp_enqueue_style('style');\n }", "title": "" }, { "docid": "f84f6f82c246951244a81ed3db3be56f", "score": "0.6922085", "text": "function admin_css()\r\n{\r\n}", "title": "" }, { "docid": "0ecf41d13e91c9950ccc55dd5acda682", "score": "0.6910449", "text": "abstract public function getCss();", "title": "" }, { "docid": "11c7daad061026672580e4005b9e5043", "score": "0.6906643", "text": "function custom_css()\r\n{\r\nwp_register_style('tpCss',plugins_url('/css/tp.css',__FILE__)); // integrer le css dans la page\r\nwp_enqueue_style('tpCss');\r\n}", "title": "" }, { "docid": "7e453cb15663676601fc6f3c39886788", "score": "0.6874926", "text": "public function addCSS() {\r\n\t\techo '<link href=\"'.$this->plugin_url.'/zdgstyle_widget.php\" rel=\"stylesheet\" type=\"text/css\">'.\"\\n\";\r\n\t}", "title": "" }, { "docid": "b10265b7111d1f61f0d6107e357045a2", "score": "0.6816897", "text": "function append_custom_css() {\n\n\t\tbf_add_style_file( self::get_css_version(), array( $this, 'get_final_css' ) );\n\n\t\tif ( bf_is_doing_ajax( 'fetch-mce-view-shortcode' ) ) {\n\t\t\tbf_enqueue_tinymce_style( 'extra', self::get_css_version() );\n\t\t}\n\n\t\t// clear memory\n\t\t$this->final_css = '';\n\t}", "title": "" }, { "docid": "6b6d4c0cae49bd66c6ef152d88bd9971", "score": "0.6810969", "text": "function dfd_kadabra_admin_css() {\n\t\twp_register_style('crum-admin-style', get_template_directory_uri() . '/assets/css/admin-panel.css');\n\t\twp_enqueue_style('crum-admin-style');\n\t}", "title": "" }, { "docid": "9c7bc32a2569e58e779927e87ad4f47a", "score": "0.6799709", "text": "function LiangLee_inc_css($params ,$cssname) {\n if (isset($params,$cssname)) {\n $path = \"mod/\".$params.\"/\";\n echo \"<link rel=\\\"stylesheet\\\" href=\\\"\".elgg_get_site_url().$path.$cssname.\"\\\" type=\\\"text/css\\\" />\\n\";\n\t } else {\n\t if (elgg_is_admin_logged_in()) {\n register_error(elgg_echo('lianglee:cant:load:css'));\n } else {\n register_error(elgg_echo('lianglee:cant:load:css:code'));\t\n }\n\n }\n}", "title": "" }, { "docid": "432e94b089794ed9e1c4116b35dfb7b4", "score": "0.6797065", "text": "public function getCss();", "title": "" }, { "docid": "432e94b089794ed9e1c4116b35dfb7b4", "score": "0.6797065", "text": "public function getCss();", "title": "" }, { "docid": "3a926fd3618d05d3347a7c3610438313", "score": "0.67957044", "text": "public function addCssJs()\n\t{\n\t}", "title": "" }, { "docid": "394af96b705b284a805e45d34c0b5216", "score": "0.67942846", "text": "function loadStyles() {\n\t$currentFile = getCurrent();\n\tif (!strcmp($currentFile,\"index.php\")) {\n\t\treturn '<link rel=\"stylesheet\" href=\"css/import.css\" type=\"text/css\" />\n\t\t\t\t<style type=\"text/css\">\n\t\t\t\t\tdiv#wrapper div#main div#belowfold { background-color:#FFFFFF; }\n\t\t\t\t</style>\n\t\t\t\t';\n\t} else {\n\t\treturn '<link rel=\"stylesheet\" href=\"css/import.css\" type=\"text/css\" />\n\t\t\t\t<style type=\"text/css\">\n\t\t\t\t\t\n\t\t\t\t</style>\n\t\t\t ';\n\t}\n}", "title": "" }, { "docid": "2be122bd4c3c1e65c1f1137a59abb0fc", "score": "0.6781539", "text": "protected function loadStylesheets()\n {\n $files = [\n 'EXT:frontend_editing/Resources/Public/Css/frontend_editing.css',\n 'EXT:backend/Resources/Public/Css/backend.css'\n ];\n foreach ($files as $file) {\n $this->pageRenderer->addCssFile($file);\n }\n }", "title": "" }, { "docid": "d475265e838201ba3dc4d26bbd652f6b", "score": "0.67705905", "text": "public function the_css() {\n wp_register_style('multiple-header-images', plugins_url('css/style.css', $this->plugin_file()));\n wp_enqueue_style('multiple-header-images');\n }", "title": "" }, { "docid": "ea3a1c313b2a5431f172d1af0e6bdd49", "score": "0.6756463", "text": "function ivan_vc_custom_css() {\n\tglobal $ivan_custom_css;\n\techo '<style>' . $ivan_custom_css . '</style>';\n}", "title": "" }, { "docid": "6441e1d6a20c4a9f1194f91731366e12", "score": "0.6749728", "text": "function elgg_get_loaded_css() {\n\treturn elgg_get_loaded_external_files('css', 'head');\n}", "title": "" }, { "docid": "4fa3c1792ed512b3fd009fad862d2bae", "score": "0.67465883", "text": "protected function init()\n {\n $this->addCSS('example');\n }", "title": "" }, { "docid": "a1abd99968056e6dca2f7a80b99b6324", "score": "0.6737774", "text": "function ca_load_css_js(){\n\t\t$plugin_url = plugin_dir_url(__FILE__);\n\n\t\twp_register_style('ca_style', $plugin_url . 'assets/styles.css');\n\t\twp_enqueue_style('ca_style');\n\t\t//appends phantom querystring to script so that browser is forced to not cache it\n\t\twp_enqueue_script('fuckadblock', $plugin_url . 'assets/fuckadblock.js' . '?' . time());\n\t}", "title": "" }, { "docid": "1d34b901d8ef24cb8510540be169e12b", "score": "0.67244226", "text": "protected function getCustomStylesheet() {\n\t\t$file = t3lib_extMgm::extPath('dce') . 'Resources/Public/CSS/dceInstance.css';\n\t\t$content = file_get_contents($file);\n\t\treturn '<style type=\"text/css\">' . $content . '</style>';\n\t}", "title": "" }, { "docid": "04394b2442da1daa789c1604d4783d8b", "score": "0.6723943", "text": "function addCSSFiles()\n\t{\n\t\t$this->AddCSSFile(\"include/zoombox/zoombox.css\");\n\t}", "title": "" }, { "docid": "415a8240fecba527b849eba72ad8b7ca", "score": "0.6718246", "text": "function add_css()\r\n\t{\r\n\t\twp_register_style('annonces_css_main', ANNONCES_CSS_URL . 'annonce.css', '', ANNONCE_PLUGIN_VERSION);\r\n\t\twp_enqueue_style('annonces_css_main');\r\n\t\twp_register_style('annonces_css_fileuploader', ANNONCES_CSS_URL . 'fileuploader.css', '', ANNONCE_PLUGIN_VERSION);\r\n\t\twp_enqueue_style('annonces_css_fileuploader');\r\n\t}", "title": "" }, { "docid": "9a17a606d647ffa57ff15577af5e2eaa", "score": "0.67174506", "text": "protected function publicLoadStyle(){\n\t\tself::loadFonts();\n\t\t$this->push->publicPush('fonts','font-awesome/css');\n\t\t$this->push->publicPush('css','default-template');\n\t\t$this->push->publicPush('js','jquery');\n\t}", "title": "" }, { "docid": "32a5eebffd93398732c0a3fd5b469927", "score": "0.67069465", "text": "public function getCss(){ }", "title": "" }, { "docid": "625f3d957905f093e1ac6b0dffde8fb2", "score": "0.6706849", "text": "function load($params, $renderLayout = true){\n \n $view = $params[0];\n $path = WWW_ROOT . 'css' . DS . $view;\n \n parent::loadCss($path);\n \n }", "title": "" }, { "docid": "41cbb005cee15a04f2b8cc5888cf6744", "score": "0.6697963", "text": "function load_styles() {\n\t\t// Respects SSL, style.css is relative to the current file\n\t\twp_enqueue_style( 'responsive-video-embeds', plugins_url('css/responsive-video-embeds.css', __FILE__), array(), '1.0' );\n\t}", "title": "" }, { "docid": "5acfb7d8e6593d6408a41fead1387317", "score": "0.6697678", "text": "protected function _load_css()\n\t{\n\t\t$modules = $this->config->item('modules_allowed', 'fuel');\n\t\t\n\t\t$css = array();\n\t\tforeach($modules as $module)\n\t\t{\n\t\t\t// check if there is a css module assets file and load it so it will be ready when the page is ajaxed in\n\t\t\tif (file_exists(MODULES_PATH.$module.'/assets/css/'.$module.'.css'))\n\t\t\t{\n\t\t\t\t$css[] = array($module => $module);\n\t\t\t}\n\t\t}\n\t\tif ($this->config->item('xtra_css', 'fuel'))\n\t\t{\n\t\t\t$css[] = array('' => $this->config->item('xtra_css', 'fuel'));\n\t\t}\n\t\treturn $css;\n\t}", "title": "" }, { "docid": "11a5de167d3a719067369d9c32bc9db5", "score": "0.66881335", "text": "public function print_custom_css() {\n global $wpml_settings;\n\n echo '<style text=\"text/css\">' . sanitize_text_field( $wpml_settings['custom-css'] ) . \"</style>\\n\";\n }", "title": "" }, { "docid": "e337b0da61b044cd323249b2010d0859", "score": "0.6687554", "text": "public function allCss();", "title": "" }, { "docid": "e337b0da61b044cd323249b2010d0859", "score": "0.6687554", "text": "public function allCss();", "title": "" }, { "docid": "6443899c17125725c5e259b1f75f7f3f", "score": "0.668474", "text": "function content_add_my_stylesheet(){\n\t\tglobal $ecpt_base_dir;\n\t\t wp_register_style( 'content_add_my_stylesheet',$ecpt_base_dir.'includes/tinymce/css/style.css' );\n\t}", "title": "" }, { "docid": "1356bba95cea85b02c16296801a6d93b", "score": "0.66743416", "text": "public function addStyles()\n {\n wp_enqueue_style(\n \t'UserAccessManagerAdmin', \n UAM_URLPATH . \"css/uamAdmin.css\", \n false, \n '1.0',\n 'screen'\n );\n \n wp_enqueue_style(\n \t'UserAccessManagerLoginForm', \n UAM_URLPATH . \"css/uamLoginForm.css\", \n false, \n '1.0',\n 'screen'\n );\n }", "title": "" }, { "docid": "f00f0e3103c72e31567319244f4baff2", "score": "0.6670408", "text": "function landpick_load_dynamic_css(){\r\n if (is_admin()) {\r\n return;\r\n }\r\n \r\n if (false === (bool) apply_filters('landpick_load_dynamic_css', true)) {\r\n return;\r\n }\r\n /* grab a copy of the paths */\r\n $landpick_css_file_paths = get_option('landpick_css_file_paths', array());\r\n if (is_multisite()) {\r\n $landpick_css_file_paths = get_blog_option(get_current_blog_id(), 'landpick_css_file_paths', $landpick_css_file_paths);\r\n }\r\n if (!empty($landpick_css_file_paths)) {\r\n $last_css = '';\r\n /* loop through paths */\r\n foreach ($landpick_css_file_paths as $key => $path) {\r\n if ('' != $path && file_exists($path)) {\r\n $parts = explode('/wp-content', $path);\r\n if (isset($parts[1])) {\r\n $sub_parts = explode('/', $parts[1]);\r\n if (isset($sub_parts[1]) && isset($sub_parts[2])) {\r\n if ($sub_parts[1] == 'themes' && $sub_parts[2] != get_stylesheet()) {\r\n continue;\r\n }\r\n }\r\n $css = set_url_scheme(WP_CONTENT_URL) . $parts[1];\r\n if ($last_css !== $css) {\r\n /* enqueue filtered file */\r\n //wp_enqueue_style('ot-dynamic-' . $key, $css, false, OT_VERSION);\r\n $last_css = $css;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "304da330963dbe028b80e79c2e041d91", "score": "0.6663916", "text": "function load_custom_wp_admin_style() {\n wp_enqueue_style( 'custom_wp_admin_css', plugins_url('styles/admin.css', __FILE__) );\n }", "title": "" }, { "docid": "904e4fd1aeceee10a5f6de3532e72da1", "score": "0.6662733", "text": "function load_default_css() {\n\n\t\tglobal $wp_styles;\n\n\t\t$color_scheme = get_user_option( 'admin_color' );\n\n\t\tif ( 'obsub' === $color_scheme || in_array( get_current_screen()->base, array( 'profile', 'profile-network' ) ) ) {\n\t\t\t$wp_styles->registered[ 'colors' ]->deps[] = 'colors-fresh';\n\t\t}\n\n\t}", "title": "" }, { "docid": "0f88e86855e3211b3248b5bb7cedc528", "score": "0.6655891", "text": "protected function registerCoreCss()\n {\n \tYii::app()->clientScript->registerCssFile($this->getAssetsUrl() . '/css/profile.css');\n }", "title": "" }, { "docid": "fd3edd931f4f43bc84cd358d75c74f67", "score": "0.6651789", "text": "private function loadStylesheets()\r\n\t{\r\n\t//load basic stylesheet\r\n\t//\r\n\t\t$this->stylesheets = NULL;\r\n\t\t$this->stylesheets .= $this->loader->loadStylesheets('front.css');\r\n\t\treturn $this->stylesheets;\r\n\t}", "title": "" }, { "docid": "1fdc57b79dd35abadb959ea585f86516", "score": "0.66489714", "text": "function calendar_css() {\n\twp_register_style( 'cc', plugins_url( '/calendar_stylesheet.css' , __FILE__ ) );\n\twp_enqueue_style('cc', plugins_url( '/calendar_stylesheet.css' , __FILE__ ) );\n\n}", "title": "" }, { "docid": "b9fbd8fff51c911df9f768662dee6ef9", "score": "0.66413665", "text": "function dce_load_divi_stylesheet() {\n wp_enqueue_style( 'divi-parent-style', get_template_directory_uri() . '/style.css' );\n}", "title": "" }, { "docid": "dabd6363b327c356cb03a06c2ee2de0e", "score": "0.66362584", "text": "public function assets() {\n\n if (false === static::isPreview())\n return;\n\n $uri = plugin_dir_url(__FILE__);\n wp_enqueue_style('hyyan-sidebar-highlight-css'\n , $uri . '/public/style.css?vn=' . time()\n , array()\n , uniqid() // no cache\n );\n }", "title": "" }, { "docid": "a36ca08b64024992e2c58b334d37ed1d", "score": "0.6630277", "text": "function elgg_register_css($name, $url, $priority = null) {\n\treturn elgg_register_external_file('css', $name, $url, 'head', $priority);\n}", "title": "" }, { "docid": "dc8149f755bd8d6de88d78c839fa294a", "score": "0.6630074", "text": "public static function loadAssets() {\n wp_enqueue_style('wc-products-per-page', self::getBaseUrl() . '/wc-products-style.css');\n }", "title": "" }, { "docid": "c9a6a1b91194050757d55a20189bd03a", "score": "0.66300225", "text": "function mailchimpSF_main_css() {\n require_once(MCSF_DIR . '/views/css/frontend.php');\n}", "title": "" }, { "docid": "105c0ae9fb1638e77e73def660e33096", "score": "0.66287816", "text": "function echotheme_general_css()\n{ \n\twp_enqueue_style('style');\n}", "title": "" }, { "docid": "66c9fdc162163869e9496146d91064ff", "score": "0.6626099", "text": "function overridePanelCSS() { \r\n wp_register_style( 'redux-custom-css', get_template_directory_uri() . '/inc/admin/admin-custom.css', array(), '1', 'all' ); \r\n wp_enqueue_style('redux-custom-css');\r\n}", "title": "" }, { "docid": "24a7707ba5a6e691c40b69aeca9b8825", "score": "0.6626029", "text": "public function load_styles() {\n\t\t\twp_enqueue_style( 'mm_autocomplete_styles', MM_URL . '/css/jquery.autocomplete.css' );\n\t\t}", "title": "" }, { "docid": "24b55c7ce07bd1c63efc16d3c828609c", "score": "0.66256124", "text": "public function requiredCSS()\n\t{\n\t\t//update css\n\t\treturn [\"/Static/main.css\", \"/Static/friendslist.css\"];\n\t}", "title": "" }, { "docid": "9baa28e551c0a28137b03dc7c0d16153", "score": "0.6623297", "text": "public function fetchAllCSS()\n {\n foreach ($this->css_files as $item) {\n $file = ROOTPATH . \"public/\" . $item;\n if (!file_exists($file)) {\n continue;\n }\n echo \"<link rel='stylesheet' href='\".base_url($item).\"'>\\n\";\n }\n }", "title": "" }, { "docid": "cad96179027c9ad4dc671570c62f9215", "score": "0.6621391", "text": "function display_custom_css(){\n\t\t$settings = $this->get_all( );\n\t\t$css = apply_filters( 'siteorigin_settings_custom_css', '', $settings );\n\n\t\tif( !empty($css) ) {\n\n\t\t\t$css_key = md5( json_encode( array(\n\t\t\t\t'css' => $css,\n\t\t\t\t'settings' => $this->get_all(),\n\t\t\t) ) );\n\n\t\t\tif( $css_key !== get_theme_mod( 'custom_css_key' ) || ( defined('WP_DEBUG') && WP_DEBUG ) ) {\n\t\t\t\t$css_lines = array_map( \"trim\", preg_split(\"/[\\r\\n]+/\", $css ) );\n\t\t\t\tforeach( $css_lines as $i => & $line ) {\n\t\t\t\t\tpreg_match_all( '/\\$\\{([a-zA-Z0-9_]+)\\}/', $line, $matches );\n\t\t\t\t\tif( empty($matches[0]) ) continue;\n\n\t\t\t\t\t$replaced = 0;\n\n\t\t\t\t\tfor( $j = 0; $j < count($matches[0]); $j++ ) {\n\t\t\t\t\t\t$current = $this->get( $matches[1][$j] );\n\t\t\t\t\t\t$default = isset($this->defaults[$matches[1][$j]]) ? $this->defaults[$matches[1][$j]] : false;\n\n\t\t\t\t\t\tif( $current != $default && str_replace('%', '%%', $current) != $default ) {\n\t\t\t\t\t\t\t// Lets store that we've replaced something in this line\n\t\t\t\t\t\t\t$replaced++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$line = str_replace( $matches[0][$j], $current, $line );\n\t\t\t\t\t}\n\n\t\t\t\t\tif( $replaced == 0 ) {\n\t\t\t\t\t\t// Remove any lines where we haven't done anything\n\t\t\t\t\t\tunset($css_lines[$i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$css = implode(' ', $css_lines);\n\n\t\t\t\t// Now, lets handle the custom functions.\n\t\t\t\t$css = preg_replace_callback('/\\.([a-z\\-]+) *\\(([^\\)]*)\\) *;/', array($this, 'css_functions'), $css);\n\n\t\t\t\t// Finally, we'll combine all imports and put them at the top of the file\n\t\t\t\tpreg_match_all( '/@import url\\(([^\\)]+)\\);/', $css, $matches );\n\t\t\t\tif( !empty($matches[0]) ) {\n\t\t\t\t\t$webfont_imports = array();\n\n\t\t\t\t\tfor( $i = 0; $i < count($matches[0]); $i++ ) {\n\t\t\t\t\t\tif( strpos('//fonts.googleapis.com/css', $matches[1][$i]) !== -1 ) {\n\t\t\t\t\t\t\t$webfont_imports[] = $matches[1][$i];\n\t\t\t\t\t\t\t$css = str_replace( $matches[0][$i], '', $css );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif( !empty($webfont_imports) ) {\n\t\t\t\t\t\t$args = array(\n\t\t\t\t\t\t\t'family' => array(),\n\t\t\t\t\t\t\t'subset' => array(),\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\t// Combine all webfont imports into a single argument\n\t\t\t\t\t\tforeach( $webfont_imports as $url ) {\n\t\t\t\t\t\t\t$url = parse_url($url);\n\t\t\t\t\t\t\tif( empty($url['query']) ) continue;\n\t\t\t\t\t\t\tparse_str( $url['query'], $query );\n\n\t\t\t\t\t\t\tif( !empty($query['family']) ) {\n\t\t\t\t\t\t\t\t$args['family'][] = $query['family'];\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$args['subset'][] = !empty($query['subset']) ? $query['subset'] : 'latin';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Clean up the arguments\n\t\t\t\t\t\t$args['subset'] = array_unique($args['subset']);\n\n\t\t\t\t\t\t$args['family'] = array_map( 'urlencode', $args['family'] );\n\t\t\t\t\t\t$args['subset'] = array_map( 'urlencode', $args['subset'] );\n\t\t\t\t\t\t$args['family'] = implode('|', $args['family']);\n\t\t\t\t\t\t$args['subset'] = implode(',', $args['subset']);\n\n\t\t\t\t\t\t$import = '@import url(' . add_query_arg( $args, '//fonts.googleapis.com/css' ) . ');';\n\t\t\t\t\t\t$css = $import . \"\\n\" . $css;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Now lets remove empty rules\n\t\t\t\tdo {\n\t\t\t\t\t$css = preg_replace('/[^\\{\\}]*?\\{ *\\}/', ' ', $css, -1, $count);\n\t\t\t\t} while( $count > 0 );\n\t\t\t\t$css = trim($css);\n\n\t\t\t\tset_theme_mod( 'custom_css', $css );\n\t\t\t\tset_theme_mod( 'custom_css_key', $css_key );\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$css = get_theme_mod('custom_css');\n\t\t\t}\n\n\t\t\tif( !empty($css) ) {\n\t\t\t\t?>\n\t\t\t\t<style type=\"text/css\" id=\"<?php echo esc_attr($this->theme_name) ?>-settings-custom\" data-siteorigin-settings=\"true\">\n\t\t\t\t\t<?php echo strip_tags($css) ?>\n\t\t\t\t</style>\n\t\t\t\t<?php\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b638cdc9688bfe021d30387adb097332", "score": "0.6613708", "text": "function login_css()\n{\n wp_enqueue_style('login_css', get_stylesheet_directory_uri() . '/_assets/css/login.css'); // duong dan den file css moi\n}", "title": "" }, { "docid": "470a68f344404b9c4bb8f77b2ca14dff", "score": "0.66065645", "text": "public function loadCssAndJs() {\n\t\t//wp_enqueue_style( 'owl_carousel', get_template_directory_uri() . '/assets/css/owl.carousel.css', null, ( WP_DEBUG ) ? time() : null );\n\t\twp_enqueue_script( 'owl_carousel', get_template_directory_uri() . '/assets/js/owl.carousel.min.js', array( 'jquery' ), ( WP_DEBUG ) ? time() : null, true );\n\t}", "title": "" }, { "docid": "45e8328e382d20e55d31cb0a4226a347", "score": "0.6606506", "text": "public function loadCustomCssJs() {\n\t\t$theme = $this->modx->getOption('manager_theme');\n\t\tif($theme == 'trendy'){\n\t\t\t$this->addCss($this->cliche->config['css_url'].'trendy.css');\n\t\t} else {\n\t\t\t$this->addCss($this->cliche->config['css_url'].'index.css');\n\t\t}\n\t\t$this->addJavascript($this->cliche->config['assets_url'].'mgr/libs/plupload.js');\n\t\t$this->addJavascript($this->cliche->config['assets_url'].'mgr/libs/plupload.html5.js');\n $this->addJavascript($this->cliche->config['assets_url'].'mgr/core/windows.js');\n $this->addJavascript($this->cliche->config['assets_url'].'mgr/core/albums.js');\n $this->addJavascript($this->cliche->config['assets_url'].'mgr/core/album.js');\n\t\t$this->addJavascript($this->cliche->config['assets_url'].'mgr/core/upload.js');\n\t\t$this->addJavascript($this->cliche->config['assets_url'].'mgr/core/main.panel.js');\t\n\t\t\n\t\t$this->type = 'default';\n\t\t$this->addPanel('album');\n\t\t$this->addPanel('upload');\n\t\t\n\t\t/* Load each types controller separately */\n\t\t$c = $this->modx->newQuery('ClicheAlbums');\n\t\t$c->select(array('type'));\n\t\t$c->query['distinct'] = 'DISTINCT';\n\t\t$c->where(array(\n\t\t\t'`type` != \"default\"'\n\t\t));\n\t\tif ($c->prepare() && $c->stmt->execute()) {\n\t\t\t$results = $c->stmt->fetchAll(PDO::FETCH_ASSOC);\n\t\t\tforeach($results as $result){\n\t\t\t\t$this->type = $result['type'];\n\t\t\t\t$f = $this->cliche->config['controllers_path'].'mgr/cmp/'. $this->type .'.inc.php';\n\t\t\t\tif(file_exists($f)){\n\t\t\t\t\trequire_once $f;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$allowedExtensions = explode(',', 'jpg,jpeg,gif,png,zip');\n\t\tforeach($allowedExtensions as $key => $value){\n\t\t\t$allowedExtensions[$value] = 1;\n\t\t\tunset($allowedExtensions[$key]);\n\t\t}\n\t\t\n\t\t\n\t\t$this->loadPanels();\n\t\t$this->addHtml('<script type=\"text/javascript\">Ext.onReady(function() {\t\n\t\t\tExt.ns(\"Cliche\"); Cliche.getPanels = function(){ return '. $this->loadPanels() .'; }(); \n\t\t\tCliche.config = '. $this->modx->toJSON($this->cliche->config) .';\n\t\t\tCliche.allowedExtensions = '. $this->modx->toJSON($allowedExtensions) .';\n\t\t\tCliche.postMaxSize = '. $this->_toBytes(ini_get('post_max_size')) .';\n\t\t\tCliche.uploadMaxFilesize = '. $this->_toBytes(ini_get('upload_max_filesize')) .';\n\t\t\tMODx.add(\"cliche-main-panel\"); Ext.ux.Lightbox.register(\"a.lightbox\"); \n});</script>');\n }", "title": "" }, { "docid": "0aa2e15998f84e6794bfb660238a1465", "score": "0.65975", "text": "protected function showCSS () {\n\t\tforeach ($this->_css_files as $file) {\n\t\t\t$fullpath = Config::get('application.base_path') . \"/css/$file\";\n?><link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"<?php echo $fullpath ?>\" />\n<?php\n\t\t}\n\t}", "title": "" }, { "docid": "84b9d79db4672756b78a9908ad10ad9b", "score": "0.6589008", "text": "public function loadAssets() {\n $file = __DIR__ . \"/fixes/$this.css\";\n if(is_file($file)) {\n $m = \"?m=\".filemtime($file);\n $this->config->styles->add($this->url($file).$m);\n }\n $file = __DIR__ . \"/fixes/$this.js\";\n if(is_file($file)) {\n $m = \"?m=\".filemtime($file);\n $this->config->scripts->add($this->url($file).$m);\n }\n }", "title": "" }, { "docid": "abcadf0fd01627bd81a8d9841fa6eae0", "score": "0.6580909", "text": "function knacc_add_custom_css() {\n\n\t$custom_css = get_field('custom_css', 'options');\n\n\tif ($custom_css) {\n\t\twp_add_inline_style('show-tell-style', $custom_css);\n\t}\n}", "title": "" }, { "docid": "f942d103324dc30ca719cfcdced773f0", "score": "0.6579047", "text": "function load_styles(){\n\t\twp_enqueue_style( 'styles-world-vision', get_stylesheet_directory_uri().'/css/style.css' );\n\t}", "title": "" }, { "docid": "b616316fb2c4bcb4956768afdeea4968", "score": "0.6574467", "text": "function cssFile($params) {\n // This stops styles inadvertently clashing with the main site.\n if (strpos($_SERVER['REQUEST_URI'], '/plugins/plugincreationwizard/') === 0) {\n echo '<link rel=\"stylesheet\" type=\"text/css\" href=\"'.$this->getThemePath().'/css/style.css\" />';\n }\n }", "title": "" }, { "docid": "1dd70a8d93d2c63580fe6cab77bf11a9", "score": "0.6571787", "text": "public function inLiveEditorRenderCSS()\n {\n if (defined('OP_LIVEEDITOR') && OP_SCRIPT_DEBUG === '') {\n wp_enqueue_style(OP_SN . '-addon-slider', OPPP_BASE_URL . 'css/elements/op_slider_admin' . OP_SCRIPT_DEBUG . '.css', array(), OPPP_VERSION, 'all');\n wp_enqueue_style(OP_SN . '-flexslider', OPPP_BASE_URL . 'css/elements/flexslider' . OP_SCRIPT_DEBUG . '.css', array(), OPPP_VERSION, 'all');\n wp_enqueue_style(OP_SN . '-flexslider-custom', OPPP_BASE_URL . 'css/elements/flexslider-custom' . OP_SCRIPT_DEBUG . '.css', array(), OPPP_VERSION, 'all');\n }\n }", "title": "" }, { "docid": "27079e40a870526148cf6e2cf77b04aa", "score": "0.6569795", "text": "function custom_editor_css() {\n echo '<link rel=\"stylesheet\" href=\"'.get_template_directory_uri() .'/stylesheets/editor.css\"></style>';\n }", "title": "" }, { "docid": "cbd613253e66b097fcc462d66edbd4ce", "score": "0.6561575", "text": "function css($file) { return data('css/' . $file . '.css'); }", "title": "" }, { "docid": "456502e58859245eb26058c76795f043", "score": "0.65572375", "text": "private function load_standard_css_js()\n\t{\n\t\t//setting the array with all needed css/js scripts as standard\n\t\t$a_standard_scripts = array(\n\t\t\t'jQuery' => MEDIA_URL.'js/libs/jquery-2.1.3.js',\n\t\t\t'synchHeight-js' => MEDIA_URL.'js/plugin/syncheight/jquery.syncHeight.min.js',\n\t\t\t'bootstrap-js' => MEDIA_URL.'js/plugin/bootstrap/bootstrap.js',\n\t\t\t'popupoverlay' => MEDIA_URL.'js/plugin/popupoverlay/jquery.popupoverlay.js',\n\n\t\t\t'bootstrap' => MEDIA_URL.'css/bootstrap/bootstrap.css',\n\t\t\t$this->s_current_template_name => MEDIA_URL.$this->s_template_dir.'/'.$this->s_current_template_name.'/'.$this->s_current_template_name.'.css',\n\t\t\t'game-js' => MEDIA_URL.'js/'.$this->s_template_dir.'/'.$this->s_current_template_name .'/game.js',\n\t\t\t'main-js' => MEDIA_URL.'js/main.js',\n\t\t);\n\n\t\tforeach($a_standard_scripts as $scripts) {\n\t\t\tswitch(pathinfo($scripts, PATHINFO_EXTENSION))\n\t\t\t{\n\t\t\t\tcase 'css':\n\t\t\t\t{ echo '<link href=\"'.$scripts.'\" rel=\"stylesheet\" type=\"text/css\">'; break; }\n\t\t\t\tcase 'js':\n\t\t\t\t{ echo '<script src=\"'.$scripts.'\"></script>'; }\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "66adb054f3622391f250d4ff5e5c2f6c", "score": "0.65527076", "text": "function zaman_css_calling(){\n\twp_enqueue_style('zaman-style', get_stylesheet_uri());\n\twp_register_style('custom', get_template_directory_uri().'/css/custom.css', array(), '1.0.0', 'all');\n\twp_register_style('bootstrap', get_template_directory_uri().'/css/bootstrap.css', array(), '3.3.7', 'all');\n\twp_enqueue_style('custom');\n\twp_enqueue_style('bootstrap');\n}", "title": "" }, { "docid": "c77d0f5b0aff5a559a7e397b77d9f781", "score": "0.6548567", "text": "public function load_panel_general_styles() {\n\t\t// gnereal styles for masterslider admin page\n\t\twp_enqueue_style( MSWP_SLUG .'-admin-styles', \tMSWP_AVERTA_ADMIN_URL . '/assets/css/msp-general.css', \t\t\t\t\t\tarray(), MSWP_AVERTA_VERSION );\n\t}", "title": "" }, { "docid": "5046fa342f996f4a604c86f4d62bbdf4", "score": "0.6548504", "text": "function load_css($css_file)\n {\n self::$css_stack[] = $css_file;\n }", "title": "" }, { "docid": "585db5daab2602cd8764988064f5176c", "score": "0.6548145", "text": "public function loadHead() {\r\n parent::hookHead();\r\n SQ_ObjController::getController('SQ_DisplayController', false)\r\n ->loadMedia(_SQ_THEME_URL_ . '/css/sq_postslist.css');\r\n }", "title": "" }, { "docid": "86d9381e43b6758fdd1603b77f74fcc6", "score": "0.6547897", "text": "function calendar_admin_init() {\n\t $load_style = false;\n wp_register_style( 'calendar_admin_stylesheet', plugins_url('calendar_admin_stylesheet.css', __FILE__) );\n }", "title": "" }, { "docid": "b81db32a637158e9525753aefacbf9f2", "score": "0.65468043", "text": "public function _css($attr,$content) {\n return $this->_import($attr,$content,true,'css');\n }", "title": "" }, { "docid": "3c8ad80a142117c54e01fead5277b140", "score": "0.65440077", "text": "function load() {\n wp_enqueue_style('custom', get_template_directory_uri() . '/css/bootstrap.css', array(), '0.1.0', 'all');\n wp_enqueue_style('fonts', get_template_directory_uri() . '/css/font-awesome.css', array(), '0.1.0', 'all');\n wp_enqueue_style('custom-style', get_template_directory_uri() . '/css/style.css', array(), '0.1.0', 'all');\n wp_enqueue_script( 'jquery', get_template_directory_uri() . '/js/jquery.js', array(), '1.0.0', true );\n wp_enqueue_script( 'script', get_template_directory_uri() . '/js/script.js', array(), '1.0.0', true );\n\n}", "title": "" }, { "docid": "ce244a3c8623ce2265a8588ba06f821c", "score": "0.65438396", "text": "function dg_admin_custom_style() {\n\twp_register_style('dg_admincustomstyle', get_template_directory_uri() . '/assets/css/admin-custom.css', array(), '1.0', 'all');\n\twp_enqueue_style('dg_admincustomstyle');\n}", "title": "" }, { "docid": "d8ed5a2cbedc5e20e8a07b6ffc0514ad", "score": "0.6538863", "text": "public function loadAdditionalStyle()\n {\n if ($this->additionalStyle) {\n $this->addStyle($this->additionalStyle);\n return \"<link rel='stylesheet' href='{$this->additionalStyle}' type='text/css'/>\\n\";\n }\n }", "title": "" }, { "docid": "8564eec916fc2ee7774b283e51c7b104", "score": "0.65351105", "text": "function loor_custom_style_customizer() { \n wp_enqueue_style( 'loor-customizer-style', get_template_directory_uri() . '/css/cs-customizer.css', array(), '1.0.5', 'all');\n }", "title": "" }, { "docid": "4eeeb6fb35eca9d07424121d1bc3cec9", "score": "0.6531296", "text": "public function css() {\n return \"/common/styles/chlog-style-lookup.css\"; \n }", "title": "" }, { "docid": "0853aae26be97cd4a9fc2aed035714ca", "score": "0.6527638", "text": "function admin_scripts_css() {\n\n\t\twp_enqueue_style( 'tinymce-custom-class', plugins_url( 'tinymce-custom-class.css', __FILE__ ) );\n\n\t}", "title": "" }, { "docid": "bbb0cc66e0202b15296f3ad442c9ae80", "score": "0.6523648", "text": "function add_CSS( $file )\n\t{\n\t\tglobal $Cl_root_path4template;\n\t\t\n\t\t$this->CSS_list[] = '<link rel=\"stylesheet\" href=\"' . $Cl_root_path4template . $file . '\" type=\"text/css\" />';\n\t}", "title": "" }, { "docid": "5bebcc0410928d39bbe41af8f694c65a", "score": "0.6522884", "text": "public function loadStyleSheets(){\n //get_template_directory_uri gets the current template Dir + the stylesheet\n //we want to register\n //CSS and CSS folders are from Bootstrap v4.0.0\n\n //BASICS: wp_register_style( [ Name of the stylesheet], [FULL URL OF StyleSheets] , [ DEFUALT: array()--->An array of registered stylesheet handles this stylesheet depends on],[ DEFAULT: null ------> Version - String specifying stylesheet version number], [DEFAULT: 'all' ---> ) The media for which this stylesheet has been defined. ] )\n //SAMPLE: wp_register_style( string $handle, string|bool $src, string[] $deps = array(), string|bool|null $ver = false, string $media = 'all' )\n wp_register_style(\"wpStylesheet\",get_template_directory_uri().'/css/bootstrap.min.css', array(), false,'all' );\n wp_enqueue_style(\"wpStylesheet\");\n\n wp_register_style(\"paulStyleSheet\", get_template_directory_uri().'/style.css',array(), false,'all');\n wp_enqueue_style(\"paulStyleSheet\");\n\n }", "title": "" }, { "docid": "e99ebb37e1249ceacf1f598d805646d0", "score": "0.6522029", "text": "function prince_load_dynamic_css() {\n\t\tif ( is_admin() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t/**\n\t\t * Filter whether or not to enqueue a `dynamic.css` file at the theme level.\n\t\t *\n\t\t * By filtering this to `false` Prince will not attempt to enqueue any CSS files.\n\t\t *\n\t\t * Example: add_filter( 'prince_load_dynamic_css', '__return_false' );\n\t\t *\n\t\t * @param bool $load_dynamic_css Default is `true`.\n\t\t *\n\t\t * @return bool\n\t\t * @since 1.0.0\n\t\t *\n\t\t */\n\t\tif ( false === (bool) apply_filters( 'prince_load_dynamic_css', true ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t/* grab a copy of the paths */\n\t\t$prince_css_file_paths = get_option( 'prince_css_file_paths', array() );\n\t\tif ( is_multisite() ) {\n\t\t\t$prince_css_file_paths = get_blog_option( get_current_blog_id(), 'prince_css_file_paths', $prince_css_file_paths );\n\t\t}\n\n\t\tif ( ! empty( $prince_css_file_paths ) ) {\n\n\t\t\t$last_css = '';\n\n\t\t\t/* loop through paths */\n\t\t\tforeach ( $prince_css_file_paths as $key => $path ) {\n\n\t\t\t\tif ( '' != $path && file_exists( $path ) ) {\n\n\t\t\t\t\t$parts = explode( '/wp-content', $path );\n\n\t\t\t\t\tif ( isset( $parts[1] ) ) {\n\n\t\t\t\t\t\t$sub_parts = explode( '/', $parts[1] );\n\n\t\t\t\t\t\tif ( isset( $sub_parts[1] ) && isset( $sub_parts[2] ) ) {\n\t\t\t\t\t\t\tif ( $sub_parts[1] == 'themes' && $sub_parts[2] != get_stylesheet() ) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$css = set_url_scheme( WP_CONTENT_URL ) . $parts[1];\n\n\t\t\t\t\t\tif ( $last_css !== $css ) {\n\n\t\t\t\t\t\t\t/* enqueue filtered file */\n\t\t\t\t\t\t\twp_enqueue_style( 'prince-dynamic-' . $key, $css, false, false );\n\n\t\t\t\t\t\t\t$last_css = $css;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "165edf9b0559550c1daeff153abb11f6", "score": "0.65181017", "text": "function DCP_add_CSS() {\n\t$url = plugins_url('assets/css/style.css', __FILE__);\n\techo \"<link rel='stylesheet' type='text/css' href='$url'/> \\n\";\n}", "title": "" }, { "docid": "c0ca95952a9c9172a0b322bdc6d881f6", "score": "0.6517642", "text": "function fcwp_load_stylesheets() {\n\t\twp_enqueue_style( 'olc-style', FCWP_STYLESHEETURI, array(), '1.0.1' );\n\t\t// Load the Internet Explorer 7 specific stylesheet.\n\t\twp_enqueue_style( 'olc-ie8-style', FCWP_CHILD_STYLESHEETURI . '/css/ie8.style.css', array( 'olc-style' ), '1.0.0' );\n\t\twp_style_add_data( 'olc-ie8-style', 'conditional', 'IE 8' );\n\t\t// Load the Internet Explorer 7 specific stylesheet.\n\t\twp_enqueue_style( 'olc-ie9-style', FCWP_CHILD_STYLESHEETURI . '/css/ie9.style.css', array( 'olc-style' ), '1.0.0' );\n\t\twp_style_add_data( 'olc-ie9-style', 'conditional', 'IE 9' );\n\t\t$dir = get_stylesheet_directory();\n\t\tif( filesize( $dir . '/css/quickfix.css' ) != 0 ) {\n\t wp_enqueue_style( 'ohw-qf', FCWP_CHILD_STYLESHEETURI . '/css/quickfix.css', array(), '1.0.0', 'all' );\n\t }\n\t}", "title": "" }, { "docid": "a0d3bf81de3e73d0d56d7c857f5557df", "score": "0.6512898", "text": "public function _get_css()\n\t{\n\t\t$ret = parent::_get_css();\n\t\t// color to use\n\t\t$color = str_replace('custom',$GLOBALS['egw_info']['user']['preferences']['common']['template_custom_color'],\n\t\t\t$GLOBALS['egw_info']['user']['preferences']['common']['template_color']);\n\t\t//The hex value of the color\n\t\t$color_hex = ltrim($color, '#');\n\n\t\t// Create a drak variant of the color\n\t\t$color_hex_dark = $this->_color_shader($color_hex, 15);\n\t\t// Create a draker variant of the color\n\t\t$color_hex_darker = $this->_color_shader($color_hex, -30);\n\n\t\tif (preg_match('/^(#[0-9A-F]+|[A-Z]+)$/i',$color))\t// a little xss check\n\t\t{\n\t\t\t$ret['app_css'] = \"\n/**\n * theme changes to color pixelegg for color: $color\n */\n\n/*\n-Top window framework header\n-sidebar actiuve category :hover\n-popup toolbar\n*/\ndiv#egw_fw_header, div.egw_fw_ui_category:hover,#loginMainDiv,#loginMainDiv #divAppIconBar #divLogo,\n#egw_fw_sidebar #egw_fw_sidemenu .egw_fw_ui_category_active:hover,\n.dialogFooterToolbar, .et2_portlet .ui-widget-header{\n\tbackground-color: $color !important;\n}\n\n/*Login background*/\n#loginMainDiv #divAppIconBar #divLogo img[src$='svg'] {\n\tbackground-image: -webkit-linear-gradient(top, $color, $color);\n\tbackground-image: -moz-linear-gradient(top, $color, $color);\n\tbackground-image: -o-linear-gradient(top,$color, $color);\n\tbackground-image: linear-gradient(to bottom, $color, $color);\n}\n\n/*Center box in login page*/\n#loginMainDiv div#centerBox {\n\tbackground-image: -webkit-linear-gradient(top,$color_hex_dark,$color_hex_darker);\n\tbackground-image: -moz-linear-gradient(top,$color_hex_dark,$color_hex_darker);\n\tbackground-image: -o-linear-gradient(top,$color_hex_dark,$color_hex_darker);\n\tbackground-image: linear-gradient(to bottom, $color_hex_dark,$color_hex_darker);\n\tborder-top: solid 1px $color_hex_darker;\n\tborder-left: solid 1px $color_hex_darker;\n\tborder-right: solid 1px $color_hex_darker;\n\tborder-bottom: solid 1px $color_hex_dark;\n}\n\n/*Sidebar menu active category*/\n#egw_fw_sidebar #egw_fw_sidemenu .egw_fw_ui_category_active{\n\tbackground-color: $color_hex_darker !important;\n}\n\";\n\t\t}\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "3f1f27b836d5cc2f7ca822b55f1b0400", "score": "0.6512219", "text": "public function slcr_vc_iconpicker_base_register_css() { \n wp_register_style('flaticon', SLCR_THEME_CSS_URI . 'flaticon' . SCDS . 'flaticon.css'); \n wp_register_style('wiping', SLCR_THEME_CSS_URI . 'wiping' . SCDS . 'wiping.css'); \n\t}", "title": "" } ]
e03cc865fe6647c4bf39bef1ca15bd43
Restore the specified resource from storage.
[ { "docid": "1ab465091a77df3ee0d13f7a79b0ea66", "score": "0.0", "text": "public function getRestore($id)\n {\n if (! is_null($user = $this->user->findOrFail($id, 'withTrashed')))\n {\n $notyMsg = trans(\\Conf::langPath().'messages.admin-user-restore-success');\n $notyIco = 'success';\n\n $user->restore();\n }\n\n $noty = \\Util::noty($notyMsg, $notyIco);\n\n return \\Redirect::route('users.index')\n ->with(compact('noty'));\n }", "title": "" } ]
[ { "docid": "e212ea09e65df9438969a611778d1883", "score": "0.68889016", "text": "public function restore($id);", "title": "" }, { "docid": "99d4ba44e155c3aee02ac42754da64a9", "score": "0.66034955", "text": "abstract public function restore();", "title": "" }, { "docid": "c44a26ed07e53af5942ded6b3cc57198", "score": "0.635741", "text": "public function restore(User $user, Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "eb60476df4b2f7b1518b1964cfa04423", "score": "0.63402265", "text": "protected function _restore($storage) {\n if (!$storage || !is_readable($storage)) return false;\n $s = file_get_contents($storage);\n if (!$s) return false;\n return $this->_decode($s);\n }", "title": "" }, { "docid": "59ff827b9a8d38c6195bfca362fc65cf", "score": "0.6310543", "text": "public function restore($filepath);", "title": "" }, { "docid": "ef892ae7cdd496ee8189aeb6a2847000", "score": "0.6280553", "text": "public function restored(Product $product)\n {\n\n }", "title": "" }, { "docid": "f1357faeabc1eec92f0e977ea84f4e00", "score": "0.6230945", "text": "public function restore($id)\n {\n $resource = $this->find($id, 'id', true);\n\n if ($resource && $resource->restore()) {\n $resource->load($this->model()->getRelations());\n return $resource;\n }\n\n return null;\n }", "title": "" }, { "docid": "8f9f92579578436ec82bfc8dfe678c30", "score": "0.6203017", "text": "public function restored(Product $product)\n {\n //\n }", "title": "" }, { "docid": "0c113b6ba5aac9e0f2531b6cb82d46ef", "score": "0.6135493", "text": "public function restore($id = NULL)\n {\n //authorization check\n if (!authorization_check($this, 3)) {\n show_error('U kan deze actie niet uitvoeren.');\n }\n\n //check if not empty\n if (empty($id)) {\n show_404();\n }\n\n $this->item_model->restore_item($id);\n }", "title": "" }, { "docid": "ecdf33708299eed3d651acaeab5e22a0", "score": "0.605026", "text": "public function restore(): IStoreManager;", "title": "" }, { "docid": "858c1c264ff2a002034a1d486bd3fa87", "score": "0.6038581", "text": "public function restored(Question $question)\n {\n //\n }", "title": "" }, { "docid": "8af30797dafb0993cbc2b9e4cb50b7ce", "score": "0.6000229", "text": "public function restore($id)\n {\n if(!checkACL('manager')) {\n return view('errors.403');\n }\n\n Item::withTrashed()->find($id)->restore();\n return redirect()->route('items.index')->with('success','Item restored successfully');\n }", "title": "" }, { "docid": "763133fb10272cc8b9417e1f9bf2c7fd", "score": "0.5993665", "text": "public function restore($id)\n {\n $model = self::MODEL;\n $data = $model::withTrashed()->find($id);\n if (is_null($data)){\n return $this->respond(Response::HTTP_NOT_FOUND);\n }\n $data->restore();\n return $this->respond(Response::HTTP_OK, $data);\n }", "title": "" }, { "docid": "c86d2db6c9f2a1877ef95245b6bede00", "score": "0.5983522", "text": "public function restore($id)\n {\n try {\n $book = Book::onlyTrashed()->findOrFail($id);\n $book->restore();\n return redirect()->route('book.index')->with('success', 'Book Restored Successfully');\n } catch(\\ModelNotFoundException $exception) {\n return redirect()->route('book.index')->with('error', 'Book Not Found');\n }\n }", "title": "" }, { "docid": "cbd7f41f7fd64308cae632a67cac2f63", "score": "0.5949164", "text": "public function restore($id)\n {\n // mengembalikan data dan menghapus value dari field delete_at menjadi null\n Tag::withTrashed()->where('id', $id)->restore();\n return redirect()->back()->with('status','Success Restore Some Data');\n }", "title": "" }, { "docid": "a39807bc3358cfbab0a9c34013921b22", "score": "0.5935326", "text": "public function restored(Student $student)\n {\n //\n }", "title": "" }, { "docid": "919d3ddfa4272ad8f0b798290a99458d", "score": "0.592701", "text": "public function restore($id){\n Book::withTrashed()->findOrFail($id)->restore();\n\n return $this->showMessage('Book restored successfully');\n }", "title": "" }, { "docid": "3c6a1628dc1a8150cea7410d1a501a42", "score": "0.5915561", "text": "public function restoring($tag)\n {\n parent::restoring($tag);\n\n Log::Debug(\"Restoring tag\", ['tag' => $tag->id]);\n }", "title": "" }, { "docid": "f2355b451f29728725719c89eee022a8", "score": "0.5912645", "text": "public function restore()\n\t{\n\t\t$t = str_replace('t.', '', $this->trashFlagField);\n\t\treturn $this->setTrashFlag($this->restoredFlag)->save(false,array($t));\n\t}", "title": "" }, { "docid": "3e67181c27928262165d60c41afbb78e", "score": "0.5900112", "text": "public function restored(Employee $employee)\n {\n //\n }", "title": "" }, { "docid": "a53aaa3824cc78b7edbe60a68f45135f", "score": "0.5884984", "text": "public function restored(Article $article)\n {\n //\n }", "title": "" }, { "docid": "14cbd7f1198d4e3cc07d3ab0ec69eb80", "score": "0.5869496", "text": "public function restored(Ref $ref)\n {\n //\n }", "title": "" }, { "docid": "8cfc5cd6d311c328c90cf9e9ae89a460", "score": "0.58572626", "text": "function restore();", "title": "" }, { "docid": "3eab4f2210768ae07ac490fd72600302", "score": "0.5845247", "text": "public function restore($id)\n {\n $dscauhoi = CauHoi::withTrashed()->find($id);\n $dscauhoi->restore();\n return redirect()->route('cauhoi.danhsach');\n }", "title": "" }, { "docid": "ed31b8068fd22e13b91efe82035b5533", "score": "0.5839521", "text": "public function restore()\n {\n if ($this->softDelete) {\n $this->{static::DELETED_AT} = null;\n return $this->save();\n }\n }", "title": "" }, { "docid": "4a388343f84fc0c70320304c72adeebe", "score": "0.5839484", "text": "public function restore($id)\n {\n try {\n $library = Library::onlyTrashed()->findOrFail($id);\n $library->restore();\n return redirect()->route('library.index')->with('success', 'Library Restored Successfully');\n } catch(\\ModelNotFoundException $exception) {\n return redirect()->route('library.index')->with('error', 'Library Not Found');\n }\n }", "title": "" }, { "docid": "d3bf5a031db26b35e2e579d8c5625cd7", "score": "0.5838993", "text": "public function restored(Asset $model)\n {\n }", "title": "" }, { "docid": "eb3bc901394fa00427a23494936ca7c0", "score": "0.583046", "text": "public function restore(User $user)\n {\n //\n }", "title": "" }, { "docid": "2e946d1e424520b460ad8c3f562e53b4", "score": "0.58239716", "text": "public function restored(Job $job)\n {\n //\n }", "title": "" }, { "docid": "08604bf37f7af91d76408afe60fd73af", "score": "0.5816232", "text": "public function restore()\n {\n $this->flushCache();\n parent::restore();\n }", "title": "" }, { "docid": "a0dd84f191f9731206c6d1c6889889ca", "score": "0.5815285", "text": "public function restored(Ingredient $ingredient)\n {\n //\n }", "title": "" }, { "docid": "4f2957560680848ce91b67e9c39694f3", "score": "0.58010936", "text": "public function restore(Promotion $promotion)\n {\n $this->authorize('restore', $promotion);\n\n return Promotion::restoreRecord($promotion);\n }", "title": "" }, { "docid": "7ced4e2ae174d15ad3afbc099c8a5e2d", "score": "0.5785709", "text": "public function restored(Role $role)\n {\n //\n }", "title": "" }, { "docid": "7ced4e2ae174d15ad3afbc099c8a5e2d", "score": "0.5785709", "text": "public function restored(Role $role)\n {\n //\n }", "title": "" }, { "docid": "450b8eb2fed2311d223b1a5b5c757ada", "score": "0.57838273", "text": "public function restore($id)\n {\n $record = $this->model->find($id);\n return $record->restore();\n }", "title": "" }, { "docid": "97a66f0d96cb292848c594f03e4feeb6", "score": "0.5772003", "text": "public function restored(Producto $producto)\n {\n //\n }", "title": "" }, { "docid": "776301059e9eab883cd8a8cf8c040a28", "score": "0.57644254", "text": "public function restore(): Restore\n {\n return new Restore($this->_provider);\n }", "title": "" }, { "docid": "36f5aed3ecb90ccb1e48fec62aad29e0", "score": "0.57631665", "text": "public function restored(Retweet $retweet)\n {\n //\n }", "title": "" }, { "docid": "d7c8237e640746920d85d3e58b724e80", "score": "0.57622993", "text": "public function restored(Transaction $transaction)\n {\n //\n }", "title": "" }, { "docid": "d7c8237e640746920d85d3e58b724e80", "score": "0.57622993", "text": "public function restored(Transaction $transaction)\n {\n //\n }", "title": "" }, { "docid": "d7c8237e640746920d85d3e58b724e80", "score": "0.57622993", "text": "public function restored(Transaction $transaction)\n {\n //\n }", "title": "" }, { "docid": "a185a4ee7e2b255424492c15a7dc00d6", "score": "0.5754719", "text": "public function restored(Stock_producto $stockProducto)\n {\n //\n }", "title": "" }, { "docid": "95b110a5ef92f92074e25ae069f54c4c", "score": "0.5748451", "text": "public function restore($id)\n {\n if (! Gate::allows('coque_saida_delete')) {\n return abort(401);\n }\n $coque_saida = CoqueSaida::onlyTrashed()->findOrFail($id);\n $coque_saida->restore();\n\n return redirect()->route('admin.coque_saidas.index');\n }", "title": "" }, { "docid": "9fbc679a7aded96cf97e7e6a80d34e03", "score": "0.5747763", "text": "public function restore($id)\n {\n if (!Gate::allows('file_delete')) {\n return abort(401);\n }\n $file = File::onlyTrashed()->findOrFail($id);\n $file->restore();\n\n return redirect()->route('admin.files.index');\n }", "title": "" }, { "docid": "cf1b06b9549babc7ea0f1f11e5d50d29", "score": "0.5747097", "text": "public function restore($photo)\n\t{\n\t\t$photo->restore();\n\n\t\treturn Redirect::back()->with('messages', new MessageBag(['The photo was successfully restored']));\n\t}", "title": "" }, { "docid": "4bd3d2d725f9ba795693e632af634650", "score": "0.5735742", "text": "public function restore(Role $role)\n {\n $this->authorize('restore', $role);\n\n $role->restore();\n\n flash()->success(trans('roles.messages.restored'));\n\n return redirect()->route('dashboard.roles.trashed');\n }", "title": "" }, { "docid": "902a4db4656002bb1c0dd02f9d334cad", "score": "0.5729913", "text": "public function restore($id) {\n\t\t$credit = \\Credit::withTrashed()->where('credit_id', $id)->first();\n\t\tif (!$credit->restore($credit->credit_id)) {\n\t\t\treturn \\Redirect::back()->withErrors($credit->errors());\t\t\t\n\t\t}\n\n\t\treturn \\Redirect::back()->with('success', \\Lang::get('agrivet.restored'));\n\t}", "title": "" }, { "docid": "7e0bb752de2b8a7c00d30c3ae7d7fa29", "score": "0.5729476", "text": "public function restored(Review $entity)\n {\n ReviewRestoredEvent::dispatch($entity);\n }", "title": "" }, { "docid": "1f126d4e70b896778716a965bb5aba83", "score": "0.57225484", "text": "public function restored(Cart $cart)\n {\n //\n }", "title": "" }, { "docid": "3e9570290fdc700a3159356ef0aa9a5d", "score": "0.5717788", "text": "public function restore($id)\n {\n if (! Gate::allows('item_delete')) {\n return abort(401);\n }\n $company = Company::onlyTrashed()->findOrFail($id);\n $company->restore();\n\n return redirect()->route('admin.myitem.index');\n }", "title": "" }, { "docid": "1f7a5c7795ecbfa50374c5c5495ddd63", "score": "0.57174385", "text": "public function restore($id)\n \t{\n \n $neighborhood = Neighborhood::withTrashed()->where('id', '=', $id)->first();\n \n //Restauramos el registro\n $neighborhood->restore();\n \n return redirect('neighborhoods')->with('restored' , $id );\n \t}", "title": "" }, { "docid": "51a0f83d04205a7b86c22ddc8082a737", "score": "0.5706329", "text": "public function restored(Prescription $prescription)\n {\n //\n }", "title": "" }, { "docid": "d274bf1f59e22a1e7f8723ba364e303e", "score": "0.5703516", "text": "public function restore($id)\n {\n return $this->repository->restore($id);\n }", "title": "" }, { "docid": "f82f6f75af33b8d052e91ef43b51c5a6", "score": "0.56994814", "text": "public function restored(Troca $troca)\n {\n //\n }", "title": "" }, { "docid": "c1b8e137a0825339f709cca69522f83e", "score": "0.569889", "text": "public function restored(Answer $answer)\n {\n //\n }", "title": "" }, { "docid": "21db977f13254e258ea46a682616611f", "score": "0.5695632", "text": "function objectRestore()\n {\n }", "title": "" }, { "docid": "21db977f13254e258ea46a682616611f", "score": "0.5695632", "text": "function objectRestore()\n {\n }", "title": "" }, { "docid": "cf77de3a5d93ab6d37dab42c06250d7e", "score": "0.56877697", "text": "public function restored(Facture $facture)\n {\n //\n }", "title": "" }, { "docid": "3e5099c10167cfb87617f65a66d666d5", "score": "0.5685173", "text": "public function restored(Task $task)\n {\n //\n }", "title": "" }, { "docid": "3e5099c10167cfb87617f65a66d666d5", "score": "0.5685173", "text": "public function restored(Task $task)\n {\n //\n }", "title": "" }, { "docid": "28e304bd0246270c5293036ea408a7b9", "score": "0.568299", "text": "function restore ($id) {\n $restorePoint = $this->RestorePoint->getRestorePoint($id);\n\n if ($restorePoint === false) {\n $this->Session->setFlash(__('Could not access restore point for restoration.'), 'error');\n }\n else {\n $restore = json_decode($restorePoint['RestorePoint']['json_object']);\n $model = $restorePoint['RestorePoint']['model'];\n $this->loadModel($model);\n $restoreSave = array(\n 'id' => $restorePoint['RestorePoint']['entity_id'],\n 'title' => $restore->{$model}->title,\n 'body' => $restore->{$model}->body\n );\n\n if ($this->{$model}->save($restoreSave)) {\n $this->set('restore_point', $restorePoint);\n $this->set('restore_model', $restorePoint['RestorePoint']['model']);\n $this->Session->setFlash(__('Object successfully restored'), 'success');\n $this->redirect($this->referer());\n }\n }\n\n $this->set('title_for_layout', 'Restore Point Restoration');\n }", "title": "" }, { "docid": "9b32199be437ef1905abd4592f7fcc0e", "score": "0.5682407", "text": "public function restore(User $user, Image $image)\n {\n //\n }", "title": "" }, { "docid": "b43fcfa315c38ced9be89056e195fbbe", "score": "0.5681564", "text": "public function restored(Pengeluaran $pengeluaran)\n {\n //\n }", "title": "" }, { "docid": "3302231b933b8d43d40ff521a7a4050f", "score": "0.56781477", "text": "public function restore($id)\n {\n if (! Gate::allows('risk_delete')) {\n return abort(401);\n }\n $risk = Risk::onlyTrashed()->findOrFail($id);\n $risk->restore();\n\n return redirect()->route('admin.risks.index');\n }", "title": "" }, { "docid": "76cbf1ff8d3e2ca4d98693dfdc083616", "score": "0.5671219", "text": "public function restore($oldcart);", "title": "" }, { "docid": "59d701e78e512bf9cd06b03ac6b6e20d", "score": "0.5654949", "text": "public function restore(User $user, Tache $tache)\n {\n //\n }", "title": "" }, { "docid": "b0c50a755684c87e2c8548d1c222e4f6", "score": "0.5646994", "text": "public function restore(Image $image): Image\n {\n if (is_null($image->deleted_at)) {\n throw new GeneralException(__('backend_images.exceptions.cant_restore'));\n }\n\n if ($image->restore()) {\n event(new ImageRestored($image));\n\n return $image;\n }\n\n throw new GeneralException(__('backend_images.exceptions.restore_error'));\n }", "title": "" }, { "docid": "0bc4664ee162a5ec5c42082bc73b00c3", "score": "0.5646523", "text": "public function restore($id) {\n $socios = socio::withTrashed()->where('id', '=', $id)->first();\n //Restauramos el registro\n $socios->restore();\n return \\Redirect::route( \"listasocios\" )->with(\"message\" ,'El Socio fue restaurado' );\n }", "title": "" }, { "docid": "091c1f33f6e412aae7098397edfdf142", "score": "0.56390584", "text": "public function restore() {\n\t\tif (!ModelManager::getInstance()->isCachingContext()) {\n\t\t\tthrow new ComhonException('error function restore may be called only in caching context');\n\t\t}\n\t\tif (is_string($this->model)) {\n\t\t\t$this->model = ModelManager::getInstance()->getNotLoadedInstanceModel($this->model);\n\t\t} else {\n\t\t\t$this->model->restore();\n\t\t}\n\t}", "title": "" }, { "docid": "3db8ca68fbf32ec150c3c44f4c6715fb", "score": "0.56319845", "text": "public function restore($id){\n $media = Media::find($id);\n if( empty($media) ){\n return $this->sendFailure(404);\n }\n $media->trashed = 0;\n $media->save();\n return $this->sendSuccess();\n }", "title": "" }, { "docid": "8f1305dc6f75b997671b825427d1f8ad", "score": "0.56245035", "text": "public function restored(IngredientTranslation $ingredientTranslation)\n {\n //\n }", "title": "" }, { "docid": "1222a7587c2cd0cdff032aa62665845f", "score": "0.5616479", "text": "public function restore($id)\n {\n // find a single resource by ID\n $output = Task::withTrashed()->where('id', $id);\n if ($output) {\n // model uses soft deletes...\n Task::withTrashed()\n ->where('id', $id)\n ->restore();\n $status = 'Task with id \"' . $id . '\" has been restored';\n return \\Redirect::route('tasks.index')\n ->with(['status' => $status]);\n }\n //\n $message = 'Task with ID \"' . $id . '\" not found';\n return \\Redirect::route('tasks.index')\n ->withErrors(['status' => $message]);\n }", "title": "" }, { "docid": "a1cdb3dac05c58481575cb6e9dac6ea4", "score": "0.56164414", "text": "public function restore( &$obj ) {\n\t\tif ( !$this->peek( $obj ) ) {\n\t\t\t$obj = $this->create( $obj );\n\t\t} else {\n\t\t\t$obj = $this->load( $obj );\n\t\t}\n\t\t\n\t\treturn $obj;\n\t}", "title": "" }, { "docid": "ff4b688e05df6d32777c4f97a0c9df97", "score": "0.56045526", "text": "public function restore(User $user, Esi $esi)\n {\n //\n }", "title": "" }, { "docid": "8d12b74b352627f8b21fe4b0c3cc7618", "score": "0.560395", "text": "public function restored(Reaction $reaction)\n {\n //\n }", "title": "" }, { "docid": "3a6006563a114e49f9d38b1f2488388d", "score": "0.5601926", "text": "public function restored(User $user)\n {\n\n }", "title": "" }, { "docid": "acaf8fe7178f1fd70b0f5c66239279d6", "score": "0.5595733", "text": "public function restore($id)\n {\n Company::withTrashed()\n ->where('id', $id)\n ->firstOrFail()\n ->restore();\n\n Alert::toast('Empresa restaurada exitosamente', 'success');\n\n return redirect()->route('companies.index');\n }", "title": "" }, { "docid": "d6e56b4ea44e4a82f24ebd2a1f57413a", "score": "0.5594594", "text": "public function restored(Employee $employee)\n {\n event(new EmployeeUpdated($employee, \"restore\"));\n }", "title": "" }, { "docid": "0490fa0eaeb3a1ee361b85b9c2dd779f", "score": "0.55853856", "text": "public function restore(Request $request, $id)\n {\n $post = ISPTECMedia::withTrashed()->findOrFail($id);\n\n $post->restore();\n\n return Redirect::back();\n }", "title": "" }, { "docid": "3cc6aeb0a3e41f9d7aacf330a3f52ee0", "score": "0.55851424", "text": "public function getRestore($id)\n {\n $store = Store::onlyTrashed()->where(['id' => $id])->get();\n\n if(!$store->isEmpty()){\n\n $store->first()->restore();\n\n Flash::success('Store Restored SuccessFully..!!');\n return Redirect::to(route('all-stores'));\n }\n Flash::error('Store Not Found ');\n return Redirect::to(route('deleted-stores'));\n }", "title": "" }, { "docid": "c28ad7990dc81883809edd5ef61c43e2", "score": "0.5576423", "text": "public function restore($id) {\n\n Client::withTrashed()->where('id', $id)->restore();\n\n return Redirect::route('clients.index');\n }", "title": "" }, { "docid": "10175bd18692392d21bfa6ba4789ba89", "score": "0.5576277", "text": "public function restore(Request $request, $id)\n {\n // dump('Restoring');\n $model = request('nameSpace')::onlyTrashed()->find($id);\n $model->restore();\n // dd($model);\n return response([\n 'model' => $model->fresh(),\n ], 200);\n }", "title": "" }, { "docid": "a064eda3217040fdcc295804453fe6fa", "score": "0.55724734", "text": "public function restored($tag)\n {\n parent::restored($tag);\n\n Log::Info(\"Restored tag\", ['tag' => $tag->id]);\n }", "title": "" }, { "docid": "0259d1c4613b82345291923b7538f38a", "score": "0.55722296", "text": "public function restore($time, \\Backup\\FileSystem\\Folder $directory);", "title": "" }, { "docid": "b19e0c25f57ea8a42bbafe244b1af8f2", "score": "0.5572039", "text": "public function restored(User $user)\n {\n //\n }", "title": "" }, { "docid": "b19e0c25f57ea8a42bbafe244b1af8f2", "score": "0.5572039", "text": "public function restored(User $user)\n {\n //\n }", "title": "" }, { "docid": "b19e0c25f57ea8a42bbafe244b1af8f2", "score": "0.5572039", "text": "public function restored(User $user)\n {\n //\n }", "title": "" }, { "docid": "b19e0c25f57ea8a42bbafe244b1af8f2", "score": "0.5572039", "text": "public function restored(User $user)\n {\n //\n }", "title": "" }, { "docid": "b19e0c25f57ea8a42bbafe244b1af8f2", "score": "0.5572039", "text": "public function restored(User $user)\n {\n //\n }", "title": "" }, { "docid": "b19e0c25f57ea8a42bbafe244b1af8f2", "score": "0.5572039", "text": "public function restored(User $user)\n {\n //\n }", "title": "" }, { "docid": "98cd923612e87a2571d5e224e964088f", "score": "0.5564701", "text": "public function restore(Usuario $user, Usuario $usuario)\n {\n //\n }", "title": "" }, { "docid": "f198ff3094dc9fe42ab63b1c8239ef91", "score": "0.5558586", "text": "public function restored(Kru $kru)\n {\n //\n }", "title": "" }, { "docid": "7bb18a810d3a0d69036fec468dccee58", "score": "0.55572104", "text": "public function restore($id, $field = 'id')\r\n {\r\n return $this->model->onlyTrashed()->where($field, $id)->restore();\r\n }", "title": "" }, { "docid": "5aba0d0bbb66f5e5f7be00470ecce73e", "score": "0.55547845", "text": "public function restore($id,$image_id)\n {\n $result = $this->productImage->onlyTrashed()->find($image_id)->restore();\n return $result ? back()->withSuccess('Hình ảnh #' . $image_id . ' đã được phục hồi.') : back()->withError('Lỗi xảy ra trong quá trình khôi phục Hình ảnh #' . $image_id);\n }", "title": "" }, { "docid": "038234961887c8e044a7235f03f0eb1f", "score": "0.55437773", "text": "public function restore($id) {\n \n $id = is_array($id) ? $id : [$id];\n \n if ($this->model->onlyTrashed()->whereIn('id', $id)->count()) {\n \n return $this->model->onlyTrashed()->whereIn('id', $id)->restore();\n \n } else {\n throw new ModelNotFoundException('No records found with provided id');\n }\n }", "title": "" }, { "docid": "7edbc690100949f54a70e082888a7c9e", "score": "0.55405235", "text": "public function restore(User $user, share $share)\n {\n //\n }", "title": "" }, { "docid": "f4e484133d3d4b2b2155f482fd0aee72", "score": "0.5540382", "text": "public function restored(File $model)\n {\n //\n }", "title": "" }, { "docid": "6401935c91859b88bd336c1a31bbe5a7", "score": "0.55340725", "text": "public function restore(User $user, EnrolledCourse $enrolledCourse)\n {\n //\n }", "title": "" }, { "docid": "fcd0492407abbb4432db22f98780d45b", "score": "0.55329", "text": "public function restored(Invoice $invoice)\n {\n //\n }", "title": "" }, { "docid": "a71fbdb434aabfb6b94199a3c8f42cac", "score": "0.55295485", "text": "public function restore(User $user, Research $research)\n {\n //\n }", "title": "" }, { "docid": "2fe03ceba0ba911674ff1874aa6acd81", "score": "0.55259985", "text": "public function restored(Recordable $model): void\n {\n Accountant::record($model, 'restored');\n\n // Once the event terminates, the state is reverted\n static::$restoring = false;\n }", "title": "" } ]
7dabd65f64feb4eca237e0344708e13c
Sends the details of the support form by email
[ { "docid": "065911a9173c0df18d12756905fbee88", "score": "0.0", "text": "public function processcontactusAction() {\n\t\t$session = SessionWrapper::getInstance(); \n \t$this->_helper->layout->disableLayout();\n\t\t$this->_helper->viewRenderer->setNoRender(TRUE);\n\t\t\n\t\t$formvalues = $this->_getAllParams(); // debugMessage($formvalues); // exit();\n\t\t$fail = false; $error = '';\n\t\tif(isEmptyString($this->_getParam('name'))){\n\t\t\t$fail = true;\n\t\t\t$error .= 'Error: Please enter Name<br>';\n\t\t}\n\t\tif(isEmptyString($this->_getParam('email'))){\n\t\t\t$fail = true;\n\t\t\t$error .= 'Error: Please enter Email<br>';\n\t\t}\n\t\tif(isEmptyString($this->_getParam('subject'))){\n\t\t\t$fail = true;\n\t\t\t$error .= 'Error: Please enter Subject<br>';\n\t\t}\n\t\tif(isEmptyString($this->_getParam('message'))){\n\t\t\t$fail = true;\n\t\t\t$error .= 'Error: Please enter Message<br>';\n\t\t}\n\t\tif(stringContains('jackkr', strtolower($this->_getParam('email'))) || \n\t\t stringContains('brightwah', strtolower($this->_getParam('email'))) || \n\t\t !isEmptyString($this->_getParam('spamcheck')) ||\n\t\t isEmptyString($this->_getParam('code')) \n\t\t){\n\t\t\t$fail = true;\n\t\t\t$error .= 'Error: Spam detected. Please try again<br>';\n\t\t}\n\t\tif((isUganda() && !stringContains('farmis.ug', strtolower($_SERVER['HTTP_REFERER']))) || \n\t\t\t(isKenya() && !stringContains('farmis.co.ke', strtolower($_SERVER['HTTP_REFERER'])))\n\t\t){\n\t\t\t$fail = true;\n\t\t\t$error .= 'Error: Spam detected. Domain \"'.strtolower($_SERVER['HTTP_REFERER']).'\" error!!!<br>';\n\t\t}\n\t\t\n\t\tif($fail){\n\t\t\t$session->setVar(ERROR_MESSAGE, $error);\n\t\t\t$this->_redirect($this->view->baseUrl('contactus/index/result/error'));\n\t\t}\n\t\t\n\t\t$user = new UserAccount();\n\t\tif($user->sendContactNotification($formvalues)){\n\t\t\t$session->setVar(SUCCESS_MESSAGE, \"Thank you for your interest in the FARMIS program. We shall be getting back to you shortly.\");\n\t\t\t$this->_redirect($this->view->baseUrl('contactus/index/result/success'));\n\t\t} else {\n\t\t\t$session->setVar(ERROR_MESSAGE, 'Sorry! An error occured in sending the message. Please try again later ');\n\t\t\t$this->_redirect($this->view->baseUrl('contactus/index/result/error'));\t\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "181d525f8fda51ba5a331e36c08a3f0e", "score": "0.7196118", "text": "public function MailForm () {\n\n\t\tif (vRequest::getCmd ('task') == 'recommend') {\n\t\t\t$view = $this->getView ('recommend', 'html');\n\t\t} else {\n\t\t\t$view = $this->getView ('askquestion', 'html');\n\t\t}\n\n\t\t// Set the layout\n\t\t$view->setLayout ('form');\n\n\t\t// Display it all\n\t\t$view->display ();\n\t}", "title": "" }, { "docid": "939ee426b3c8ad6d52d1e15345d1c1e5", "score": "0.68883634", "text": "public function dofootenquirysubmit() {\n\n $this->layout = \"\";\n $sessionpatient = $this->Session->read('patient');\n\n $Email = new CakeEmail(MAILTYPE);\n $Email->from(array($this->request->data['enquiry_email'] => 'BuzzyDoc'));\n $Email->to(\"[email protected]\");\n\n $Email->subject(\"Web Enquiry\")\n ->template('inquiry')\n ->emailFormat('html');\n $Email->viewVars(array(\n 'logo' => S3Path . $sessionpatient['Themes']['patient_logo_url'],\n 'site_url' => 'http://' . $_SERVER['HTTP_HOST'],\n 'redeem_data' => $this->request->data,\n 'theme' => $sessionpatient['Themes']\n ));\n if ($Email->send()) {\n echo \"Your message has been sent successfully. Our team will get in touch shortly.\";\n exit;\n } else {\n echo \"Oops, there seems to have been an error. Please try again later or write to use directly at [email protected]\";\n exit;\n }\n }", "title": "" }, { "docid": "8c1aad6818d6fb613d27318b2dbffdd8", "score": "0.67653805", "text": "public function submitContactSupport(Request $request)\n {\n $data = $request->all();\n $user = auth()->user();\n\n Mail::send('emails.support', ['user' => $user, 'message'=>$data], function ($m) use ($user,$data) {\n $m->from('[email protected]', 'Hotads');\n\n $m->to('[email protected],[email protected],[email protected],[email protected],[email protected],', 'Hotads Admin')->subject('Support Request from ' . $user->firstname.' '.$user->lastname.' of '.$user->company_name);\n });\n\n }", "title": "" }, { "docid": "0b3eda5f0f330ce76b56397b619692e6", "score": "0.67323333", "text": "public function checkAndSend()\n {\n $allinfo = '';\n $temp = '';\n if ($this->errors == 0 && empty(!$_POST)) {\n\n\n foreach ($this->form as $key => $forLetter) {\n if (is_array($_POST[$key])) {\n foreach ($_POST[$key] as $item) {\n $temp .= $item . ', ';\n }\n $allinfo .= $forLetter['labelForLetter'] . ': ' . $temp . '<br>';\n } else {\n $allinfo .= $forLetter['labelForLetter'] . ': ' . $_POST[$key] . '<br>';\n }\n\n }\n\n //echo $allinfo;\n @mail($this->toaddress, $this->subject, $allinfo);\n //header('Location:'.$_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING']);\n //die;\n ?>\n\n\n <?php\n echo 'Письмо будет отправлено на почту: ' . $this->toaddress;\n } else {\n echo $this->errors . ' ошибок';\n\n }\n }", "title": "" }, { "docid": "2c02bd707a9bb87d2a1d0569b327d5d6", "score": "0.66706944", "text": "public function actionSend()\n {\n $plan_id = \"880dcb73-7bc2-11e5-bc4d-3c07717072c4\";\n $plan_model = Plans::model()->find(array('condition' => 'id = \"' . $plan_id . '\" '));\n $data['plan_name'] = $plan_model->name;\n $body = $this->renderPartial(\"quotation_mail_template\",$data,true);\n mailsend(\"[email protected]\", \"[email protected]\", \"hi\", $body);\n }", "title": "" }, { "docid": "06cb9ea7da38c03c0ec332d32ff7e646", "score": "0.66428715", "text": "public function sendForm()\n {\n //send form to site\n $result = $this->pageGetter->sendRequest(\n $this->getSendEnquiryPageUrl(),\n 'POST',\n $this->formFields,\n $this->getRequestPageUrl(),\n false,\n false,\n true\n );\n\n if($result['Status'] == \"FAIL\"){\n self::log($result['StatusDetails'] . \"\\r\\n\" . $result['Response']);\n return false;\n }\n\n if(!$this->isJsonGood($result['Response']))\n return false;\n\n $this->resultPage = $result['Response'];\n\n return true;\n }", "title": "" }, { "docid": "beeb444e00c08ea09eac940ff1c611be", "score": "0.66414106", "text": "public function api_support_contact_submit() {\n\n\t\t\t// User capability check\n\t\t\tif(!WS_Form_Common::can_user('manage_options_wsform')) { parent::api_access_denied(); }\n\n\t\t\t// Read support inquiry fields\n\t\t\t$data = array(\n\n\t\t\t\t'contact_first_name'\t=> WS_Form_Common::get_query_var_nonce('contact_first_name'),\n\t\t\t\t'contact_last_name'\t\t=> WS_Form_Common::get_query_var_nonce('contact_last_name'),\n\t\t\t\t'contact_email'\t\t\t=> WS_Form_Common::get_query_var_nonce('contact_email'),\n\t\t\t\t'contact_inquiry'\t\t=> WS_Form_Common::get_query_var_nonce('contact_inquiry')\n\t\t\t);\n\n\t\t\t// Push form\n\t\t\t$contact_push_form = WS_Form_Common::get_query_var_nonce('contact_push_form');\n\t\t\t$form_id = intval(WS_Form_Common::get_query_var_nonce('id'));\n\t\t\tif($contact_push_form && ($form_id > 0)) {\n\n\t\t\t\t// Create form file attachment\n\t\t\t\t$ws_form_form = new WS_Form_Form();\n\t\t\t\t$ws_form_form->id = $form_id;\n\n\t\t\t\t// Get form\n\t\t\t\t$form_object = $ws_form_form->db_read(true, true);\n\n\t\t\t\t// Clean form\n\t\t\t\tunset($form_object->checksum);\n\t\t\t\tunset($form_object->published_checksum);\n\n\t\t\t\t// Stamp form data\n\t\t\t\t$form_object->identifier = WS_FORM_IDENTIFIER;\n\t\t\t\t$form_object->version = WS_FORM_VERSION;\n\t\t\t\t$form_object->time = time();\n\n\t\t\t\t// Add checksum\n\t\t\t\t$form_object->checksum = md5(json_encode($form_object));\n\n\t\t\t\t$form_json = wp_json_encode($form_object);\n\n\t\t\t\t// Add to data\n\t\t\t\t$data['contact_form'] = $form_json;\n\t\t\t}\n\n\t\t\t// Push system\n\t\t\t$contact_push_system = WS_Form_Common::get_query_var_nonce('contact_push_system');\n\t\t\tif($contact_push_system) {\n\n\t\t\t\t// Add to data\n\t\t\t\t$data['contact_system'] = wp_json_encode(WS_Form_Config::get_system());\n\t\t\t}\n\n\t\t\t// Filters\n\t\t\t$timeout = apply_filters('wsf_api_call_timeout', WS_FORM_API_CALL_TIMEOUT);\n\t\t\t$sslverify = apply_filters('wsf_api_call_verify_ssl',WS_FORM_API_CALL_VERIFY_SSL);\n\n\t\t\t// Build args\n\t\t\t$args = array(\n\n\t\t\t\t'method'\t\t=>\t'POST',\n\t\t\t\t'body'\t\t\t=>\thttp_build_query($data),\n\t\t\t\t'user-agent'\t=>\t'WSForm/' . WS_FORM_VERSION . ' (wsform.com)',\n\t\t\t\t'timeout'\t\t=>\t$timeout,\n\t\t\t\t'sslverify'\t\t=>\t$sslverify\n\t\t\t);\n\n\t\t\t// URL\n\t\t\t$url = 'https://wsform.com/plugin-support/contact.php';\n\n\t\t\t// Call using Wordpress wp_remote_get\n\t\t\t$response = wp_remote_get($url, $args);\n\n\t\t\t// Check for error\n\t\t\tif($api_response_error = is_wp_error($response)) {\n\n\t\t\t\t// Handle error\n\t\t\t\t$api_response_error_message = $response->get_error_message();\n\t\t\t\t$api_response_headers = array();\n\t\t\t\t$api_response_body = '';\n\t\t\t\t$api_response_http_code = 0;\n\n\t\t\t} else {\n\n\t\t\t\t// Handle response\n\t\t\t\t$api_response_error_message = '';\n\t\t\t\t$api_response_headers = wp_remote_retrieve_headers($response);\n\t\t\t\t$api_response_body = wp_remote_retrieve_body($response);\n\t\t\t\t$api_response_http_code = wp_remote_retrieve_response_code($response);\n\t\t\t}\n\n\t\t\t// Return response\n\t\t\treturn array('error' => $api_response_error, 'error_message' => $api_response_error_message, 'response' => $api_response_body, 'http_code' => $api_response_http_code);\n\t\t}", "title": "" }, { "docid": "a5ff67dd195945a51be49374fbc5dbad", "score": "0.6623963", "text": "public function get_support_url()\n {\n return 'mailto:[email protected]?subject=Campaigner Support';\n }", "title": "" }, { "docid": "c10c669b0d30194a9da66294ef4eb70a", "score": "0.66016364", "text": "public function sendMail() {\n // https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting\n require 'includes/phpmailer/phpmailer.php';\n $mail = new PHPMailer;\n $mail->CharSet = 'utf-8';\n ini_set('default_charset', 'UTF-8');\n $mail->setFrom(EMAIL, SITE);\n $mail->addAddress(EMAIL);\n\n $data = $_POST;\n $obj = (object) $data;\n\n unset($obj->id);\n\n $mail->subject = \"Kontaktformular von \".SITE;\n \n // compile array to email\n $htmlForm = \"<style> label {background: #ddd; margin: 3px; padding: 3px 6px; display: inline-block}</style>\";\n foreach ($obj as $key => $value) {\n if ($value) {\n $htmlForm .= \"<label>\" . $key . \"</label> \" . $value . \"</br>\";\n }\n }\n\n $mail->isHTML(true);\n $mail->msgHTML($htmlForm);\n\n if (!$mail->send()) {\n $msg = \"Mailer Error: \" . $mail->ErrorInfo;\n } else {\n $msg = \"Mail wurde versendet.\";\n }\n \n echo $msg;\n die();\n\n $msg = 'success';\n $msg = \"Ihr User wurde angelegt\";\n \n\n $this->view = \"form\";\n include 'includes/output.php';\n }", "title": "" }, { "docid": "c52fec4f04529562da3531d1267a5103", "score": "0.6581555", "text": "function email_form()\n\t{\n\t\t// parse out the items that don't aren't in stock\n\t\tlist($this->info) = $this->wishlist_filter(array($this->info));\n\n\t\tif (count($this->info['items']))\n\t\t{\n\t\t\t$body = $this->email_body($this->info['items']);\n\n\t\t\t?>\n\t\t\tIf you would like, you can change the body of the email below before it is sent.<br />\n\t\t\tClick <b>Send Email</b> when you are done.\n\t\t\t<p />\n\t\t\t<input type=\"button\" value=\"&lt; Cancel / Return to In Stock List\" onclick=\"document.location='/admin/utilities/wishlist.php?act=viewinstock'\" class=\"btn\" />\n\t\t\t<p />\n\t\t\t<?php echo $this->pg->outlineTableHead();?>\n\t\t\t<form method=\"post\" action=\"/admin/utilities/wishlist.php\">\n\t\t\t<input type=\"hidden\" name=\"act\" value=\"sendemail\">\n\t\t\t<input type=\"hidden\" name=\"wishlistID\" value=\"<?php echo $this->wishlistID;?>\">\n\t\t\t<tr>\n\t\t\t\t<td bgcolor=\"<?php echo $this->pg->color('table-label');?>\"><b>Name::</b></td>\n\t\t\t\t<td bgcolor=\"<?php echo $this->pg->color('table-cell');?>\"><?php echo \"{$this->info['cus_fname']} {$this->info['cus_lname']}\";?></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td bgcolor=\"<?php echo $this->pg->color('table-label');?>\"><b>Email:</b></td>\n\t\t\t\t<td bgcolor=\"<?php echo $this->pg->color('table-cell');?>\"><?php echo $this->info['cus_email'];?></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td bgcolor=\"<?php echo $this->pg->color('table-label');?>\"><b>Email Subject:</b></td>\n\t\t\t\t<td bgcolor=\"<?php echo $this->pg->color('table-cell');?>\"><input type=\"text\" name=\"email[subject]\" size=\"50\" value=\"Wishlist Items in Stock\" /></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td bgcolor=\"<?php echo $this->pg->color('table-label');?>\"><b>Email Body:</b></td>\n\t\t\t\t<td bgcolor=\"<?php echo $this->pg->color('table-cell');?>\"><textarea name=\"email[body]\" rows=\"15\" cols=\"65\" scrolling=\"virtual\" style=\"font-family:Courier New;font-size:12\"><?php echo $body;?></textarea></td>\n\t\t\t</tr>\n\t\t\t<?php echo $this->pg->outlineTableFoot();?>\n\t\t\t<p />\n\t\t\t<input type=\"submit\" value=\"Send Email &gt;\" class=\"btn\" /> <input type=\"reset\" value=\"Reset Form &gt;\" class=\"btn\" />\n\t\t\t</form>\n\t\t\t<?php\n\t\t}\n\t\telse\n\t\t{\n\t\t\techo \"The selected wishlist does not contain any in-stock items.\";\n\t\t}\n\t}", "title": "" }, { "docid": "685e8eae848cdab59156f64ea12132b2", "score": "0.656186", "text": "public function execute()\n {\n $name = $this->getRequest()->getPost('name');\n $email = $this->getRequest()->getPost('email');\n $message = $this->getRequest()->getPost('message');\n $phone = $this->getRequest()->getPost('phone');\n $url = $this->getRequest()->getPost('url');\n try {\n \n //$general_email = $this->scopeConfig->getValue('trans_email/ident_support/email',ScopeInterface::SCOPE_STORE);\n $general_email = '[email protected]';\n $sender = [\n 'name' => '',\n 'email' => $email,\n ];\n $vars = Array('name' => $name,'email'=>$email,'message'=>$message,'phone'=>$phone);\n $this->inlineTranslation->suspend();\n $toEmail =$general_email;\n $storeScope = \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE;\n $transport = $this->transportBuilder\n ->setTemplateIdentifier('dropus_email_template')\n ->setTemplateOptions(\n [\n 'area' => \\Magento\\Framework\\App\\Area::AREA_FRONTEND,\n 'store' => \\Magento\\Store\\Model\\Store::DEFAULT_STORE_ID,\n ]\n )\n ->setTemplateVars($vars)\n ->setFrom($sender)\n ->addTo($toEmail)\n ->getTransport();\n $transport->sendMessage();\n $this->inlineTranslation->resume();\n $this->messageManager->addSuccess(\n __('Thanks for Your Submission')\n );\n }catch (\\Exception $e) {\n $this->messageManager->addError(\n __('We can\\'t process your request right now. Sorry, that\\'s all we know.'));\n \n }\n $this->_redirect($url);\n return;\n }", "title": "" }, { "docid": "943e0471c7575f538fdaa2318957a918", "score": "0.6556777", "text": "function form()\r\n {\r\n $this->params['require_captcha']\t\t= 'no';\r\n \r\n\t\t//\t----------------------------------------\r\n //\tGrab our tag data\r\n\t\t//\t----------------------------------------\r\n \r\n $tagdata\t\t\t\t\t\t\t\t= ee()->TMPL->tagdata;\r\n \t\t\r\n\t\t//\t----------------------------------------\r\n\t\t//\tSet form name\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\t$this->params['form_name']\t\t\t\t= ( ee()->TMPL->fetch_param('form_name') !== FALSE \tAND \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tee()->TMPL->fetch_param('form_name') != '' \t \t) ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tee()->TMPL->fetch_param('form_name') : 'freeform_form';\r\n \t\t\r\n\t\t//\t----------------------------------------\r\n\t\t//\tAllow form name to be overridden by 'collection'\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\t$this->params['form_name']\t\t\t\t= ( ee()->TMPL->fetch_param('collection') !== FALSE \tAND \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tee()->TMPL->fetch_param('collection') != '' \t \t) ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tee()->TMPL->fetch_param('collection') : $this->params['form_name'];\r\n \t\t\r\n\t\t//\t----------------------------------------\r\n\t\t//\tDo we require IP address?\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\t$this->params['require_ip']\t\t\t\t= (ee()->TMPL->fetch_param('require_ip')) ? \r\n\t\t\t\t\t\t\t\t\t\t \t\t\t\tee()->TMPL->fetch_param('require_ip') : '';\r\n \t\t\r\n\t\t//\t----------------------------------------\r\n\t\t//\tAre we establishing any required fields?\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\t$this->params['ee_required']\t\t\t= (ee()->TMPL->fetch_param('required')) ? \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tee()->TMPL->fetch_param('required') : '' ;\r\n \t\t\r\n\t\t//\t----------------------------------------\r\n\t\t//\tAre we notifying anyone?\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\t$this->params['ee_notify']\t\t\t\t= (ee()->TMPL->fetch_param('notify')) ? \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tee()->TMPL->fetch_param('notify') : '' ;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n // ----------------------------------------------------------------------------------------\r\n\t\t// Start recipients\r\n\t\t// ----------------------------------------------------------------------------------------\r\n\t\t\r\n\t\t//\t----------------------------------------\r\n\t\t//\tDo we allow dynamic tos?\t\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\t$this->params['recipients']\t\t\t\t= ( $this->check_yes(ee()->TMPL->fetch_param('recipients')) ) ? 'y': 'n';\r\n\t\t\t\t\r\n\t\t$this->params['recipient_limit']\t\t= ( ee()->TMPL->fetch_param('recipient_limit') !== FALSE AND \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tis_numeric( ee()->TMPL->fetch_param('recipient_limit') ) === TRUE) ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t \tee()->TMPL->fetch_param('recipient_limit') : \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$this->prefs['max_user_recipients'];\r\n\r\n\t\t//\t----------------------------------------\r\n\t\t//\tstatic recipients?\r\n\t\t//\t----------------------------------------\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t$this->params['static_recipients']\t\t= ( \r\n\t\t\t! in_array(ee()->TMPL->fetch_param('recipient1'), array(FALSE, '')) \r\n\t\t);\r\n\t\t\t\t\r\n\t\t//preload list with usable info if so\r\n\t\t$this->params['static_recipients_list'] \t= array();\r\n\t\t\r\n\t\tif ( $this->params['static_recipients'] )\r\n\t\t{\r\n\t\t\t$i = 1;\r\n\t\t\t\r\n\t\t\twhile ( ! in_array(ee()->TMPL->fetch_param('recipient' . $i), array(FALSE, '')) )\r\n\t\t\t{\r\n\t\t\t\t$recipient = explode('|', ee()->TMPL->fetch_param('recipient' . $i));\r\n\r\n\t\t\t\t//has a name?\r\n\t\t\t\tif ( count($recipient) > 1)\r\n\t\t\t\t{\t\t\r\n\t\t\t\t\t$recipient_name \t= trim($recipient[0]);\r\n\t\t\t\t\t$recipient_email \t= trim($recipient[1]);\r\n\t\t\t\t}\r\n\t\t\t\t//no name, we assume its just an email \r\n\t\t\t\t//(though, this makes little sense, it needs a name to be useful)\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t$recipient_name \t= '';\r\n\t\t\t\t\t$recipient_email \t= trim($recipient[0]);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//add to list\r\n\t\t\t\t$this->params['static_recipients_list'][$i] = array(\r\n\t\t\t\t\t'name' \t=> $recipient_name, \r\n\t\t\t\t\t'email' => $recipient_email,\r\n\t\t\t\t\t'key'\t=> uniqid()\r\n\t\t\t\t);\r\n\t\t\t\t\r\n\t\t\t\t$i++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//\t----------------------------------------\r\n\t\t//\tUser recipient email template\r\n\t\t//\t----------------------------------------\r\n\r\n\t\t$this->params['recipient_template']\t= (ee()->TMPL->fetch_param('recipient_template')) ? \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tee()->TMPL->fetch_param('recipient_template') : 'default_template';\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t \t\t\r\n\t\t//\t----------------------------------------\r\n\t\t//\tDiscard field contents?\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\t$this->params['discard_field']\t\t\t= (ee()->TMPL->fetch_param('discard_field')) ?\r\n\t\t \t\t\t\t\t\t\t\t\t\t\tee()->TMPL->fetch_param('discard_field'): '';\r\n\r\n // ----------------------------------------------------------------------------------------\r\n\t\t// End recipients\r\n\t\t// ----------------------------------------------------------------------------------------\r\n\r\n\t\t//\t----------------------------------------\r\n\t\t//\tSend attachments?\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\t$this->params['send_attachment']\t\t= (ee()->TMPL->fetch_param('send_attachment')) ? \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tee()->TMPL->fetch_param('send_attachment') : '' ;\r\n \t\t\r\n\t\t//\t----------------------------------------\r\n\t\t//\tSend user email?\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\t$this->params['send_user_email']\t\t= (ee()->TMPL->fetch_param('send_user_email')) ? \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tee()->TMPL->fetch_param('send_user_email') : '' ;\r\n \t\t\r\n\t\t//\t----------------------------------------\r\n\t\t//\tSend user attachments?\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\t$this->params['send_user_attachment']\t= (ee()->TMPL->fetch_param('send_user_attachment')) ? \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tee()->TMPL->fetch_param('send_user_attachment') : '' ;\r\n \t\t\r\n\t\t//\t----------------------------------------\r\n\t\t//\tUser email template\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\t$this->params['user_email_template']\t= (ee()->TMPL->fetch_param('user_email_template')) ? \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tee()->TMPL->fetch_param('user_email_template') : 'default_template' ;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t//\t----------------------------------------\r\n\t\t//\tAre we using a notification template?\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\t$this->params['template']\t\t\t\t= (ee()->TMPL->fetch_param('template')) ? \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tstr_replace(SLASH, '/', ee()->TMPL->fetch_param('template')) : \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'default_template' ;\r\n \t\t\r\n\t\t//\t----------------------------------------\r\n\t\t//\tMailing lists?\r\n\t\t//\t----------------------------------------\r\n\t\t$mailinglist\t\t\t\t\t\t\t= ( ee()->TMPL->fetch_param('mailinglist') AND \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tee()->TMPL->fetch_param('mailinglist') != '' ) ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tee()->TMPL->fetch_param('mailinglist'): FALSE;\r\n \t\t\r\n\t\t//\t----------------------------------------\r\n\t\t//\tMailing list opt in?\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\t$mailinglist_opt_in\t\t\t\t\t\t= ( ee()->TMPL->fetch_param('mailinglist_opt_in') AND\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t$this->check_no(ee()->TMPL->fetch_param('mailinglist_opt_in')) ) ? TRUE : FALSE;\r\n \t\t\r\n\t\t//\t----------------------------------------\r\n\t\t//\tAre we redirecting on duplicate?\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\t$redirect_on_duplicate\t\t\t\t\t= (ee()->TMPL->fetch_param('redirect_on_duplicate')) ? \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tstr_replace(SLASH, '/', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tee()->TMPL->fetch_param('redirect_on_duplicate')) : FALSE;\r\n \t\t\r\n\t\t//\t----------------------------------------\r\n\t\t//\tPrevent duplicates on something specific\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\t$this->params['prevent_duplicate_on']\t= (ee()->TMPL->fetch_param('prevent_duplicate_on')) ?\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t\tee()->TMPL->fetch_param('prevent_duplicate_on') : '';\r\n \t\t\r\n\t\t//\t----------------------------------------\r\n\t\t//\tFile upload directory\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\t$this->params['file_upload']\t\t\t= (ee()->TMPL->fetch_param('file_upload')) ? \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tee()->TMPL->fetch_param('file_upload') : '';\r\n \t\r\n\t\t//\t----------------------------------------\r\n\t\t//\tSniff for fields of type 'file'\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\tif ( preg_match_all( \"/type=['|\\\"]?file['|\\\"]?/\", $tagdata, $match ) )\r\n\t\t{\r\n\t\t\t$this->multipart\t\t\t\t= TRUE;\r\n\t\t\t$this->params['upload_limit']\t= count( $match['0'] );\r\n\t\t}\r\n \r\n //\t----------------------------------------\r\n //\tGrab custom member profile fields\r\n //\t----------------------------------------\r\n \r\n $query\t\t= ee()->db->query(\r\n\t\t\t\"SELECT m_field_id, m_field_name \r\n\t\t\t FROM \texp_member_fields\"\r\n\t\t);\r\n\r\n\t\tif ( $query->num_rows() > 0 )\r\n\t\t{\r\n\t\t\tforeach ($query->result_array() as $row)\r\n\t\t\t{ \r\n\t\t\t\t$mfields[$row['m_field_name']] = $row['m_field_id'];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n //\tEnd custom member fields \r\n \r\n \r\n //\t----------------------------------------\r\n //\tGrab standard member profile fields\r\n //\t----------------------------------------\r\n \r\n $mdata\t\t= array();\r\n \r\n if ( ee()->session->userdata['member_id'] != '0' )\r\n { \r\n\t\t\t$query\t\t= ee()->db->query(\r\n\t\t\t\t\"SELECT \t* \r\n\t\t\t\t FROM \texp_members \r\n\t\t\t\t WHERE \tmember_id = '\" . ee()->db->escape_str(ee()->session->userdata['member_id']) . \r\n\t\t\t \"' LIMIT 1\"\r\n\t\t\t);\r\n\t\r\n\t\t\tif ( $query->num_rows() > 0 )\r\n\t\t\t{\r\n\t\t\t\tforeach ($query->result_array() as $row)\r\n\t\t\t\t{\r\n\t\t\t\t\tforeach ( $row as $key => $val )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$mdata[$key] = $val;\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 //\tEnd standard member fields \r\n \r\n \r\n //\t----------------------------------------\r\n //\tGrab custom member data\r\n //\t----------------------------------------\r\n \r\n if ( ee()->session->userdata['member_id'] != '0' )\r\n {\r\n\t\t\t$query\t\t= ee()->db->query(\r\n\t\t\t\t\"SELECT * \r\n\t\t\t\t FROM \texp_member_data \r\n\t\t\t\t WHERE \tmember_id = '\" . \r\n\t\t\t\t\tee()->db->escape_str(ee()->session->userdata['member_id']) . \r\n\t\t\t \"' LIMIT 1\"\r\n\t\t\t);\r\n\r\n\t\t\tif ($query->num_rows() > 0)\r\n\t\t\t{\t\t\t\t\t\r\n\t\t\t\tforeach ($query->row() as $key => $val)\r\n\t\t\t\t{ \r\n\t\t\t\t\t$mdata[$key] = $val;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n //\tEnd custom member data \r\n \r\n \r\n\t\t//\t----------------------------------------\r\n\t\t//\tCheck for duplicate\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\tif ( ee()->session->userdata['group_id'] == 1 AND ee()->input->ip_address() == '0.0.0.0')\r\n\t\t{\r\n\t\t\t$duplicate\t= FALSE;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t//\tBegin the query\r\n\t\t\t$sql\t= \"\tSELECT \tcount(*) AS\tcount \r\n\t\t\t\t\t \tFROM \texp_freeform_entries \r\n\t\t\t\t\t\tWHERE \tstatus != 'closed'\";\r\n\t\t\t\r\n\t\t\t//\tHandle form_name\r\n\t\t\tif ( $this->params['form_name'] != '' )\r\n\t\t\t{\r\n\t\t\t\t$sql\t.= \" AND form_name = '\" . ee()->db->escape_str($this->params['form_name']) . \"'\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//\tIdentify them\r\n\t\t\tif ( ee()->session->userdata['member_id'] != '0' )\r\n\t\t\t{\r\n\t\t\t\t$sql\t.= \" AND author_id = '\" . \r\n\t\t\t\t\t\t ee()->db->escape_str(ee()->session->userdata['member_id']) . \"'\";\r\n\t\t\t}\r\n\t\t\telseif ( ee()->input->ip_address() )\r\n\t\t\t{\r\n\t\t\t\t$sql\t.= \" AND ip_address = '\" . \r\n\t\t\t\t ee()->db->escape_str(ee()->input->ip_address()) . \"'\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//\tQuery\r\n\t\t\t$query\t= ee()->db->query( $sql );\r\n\t\t\t\r\n\t\t\t$duplicate\t= ( $query->row('count') > 0 ) ? TRUE: FALSE;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//\t----------------------------------------\r\n\t\t//\tRedirect on duplicate\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\tif ( $redirect_on_duplicate AND $duplicate )\r\n\t\t{\r\n\t\t\tee()->functions->redirect( ee()->functions->create_url( $redirect_on_duplicate ) );\r\n\t\t\texit;\r\n\t\t}\r\n\t\t\r\n \r\n //\t----------------------------------------\r\n //\tParse conditional pairs\r\n //\t----------------------------------------\r\n \r\n $cond['duplicate']\t\t= ( $duplicate ) ? TRUE: FALSE;\r\n $cond['not_duplicate']\t= ( ! $duplicate ) ? TRUE: FALSE;\r\n $cond['captcha']\t\t= ( $this->check_yes(ee()->config->item('captcha_require_members')) OR \r\n\t\t\t\t\t\t\t\t\t($this->check_no( ee()->config->item('captcha_require_members')) AND \r\n\t\t\t\t\t\t\t\t\t \t ee()->session->userdata('member_id') == 0 ) \r\n\t\t\t\t\t\t\t\t ) ? TRUE: FALSE;\r\n \r\n\t\t$tagdata\t= ee()->functions->prep_conditionals( $tagdata, $cond );\r\n \r\n \r\n //\t----------------------------------------\r\n //\tParse variable pairs\r\n //\t----------------------------------------\r\n \r\n\t\t$output\t= '';\r\n \r\n\t\tif ( preg_match( \"/\" . LD . \"mailinglists.*?(backspace=[\\\"|'](\\d+?)[\\\"|'])?\" . RD . \"(.*?)\" . \r\n\t\t\t\t\t\t LD . preg_quote(T_SLASH, '/') . \"mailinglists\" . RD . \"/s\", $tagdata, $match ) )\r\n\t\t{\t\t\t\r\n\t\t\tif ( ee()->db->table_exists('exp_mailing_lists') )\r\n\t\t\t{\r\n\t\t\t\t$query\t= ee()->db->query( \"SELECT \t* \r\n\t\t\t\t\t\t\t\t\t\t FROM \texp_mailing_lists\" );\r\n\t\t\t\t\r\n\t\t\t\tif ( $query->num_rows() > 0 )\r\n\t\t\t\t{\t\t\t\t\r\n\t\t\t\t\tforeach ( $query->result_array() as $row )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$chunk\t= $match['3'];\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tforeach ( $row as $key => $val )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$chunk\t= str_replace( LD . $key . RD, $val, $chunk );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$output\t.= trim( $chunk ).\"\\n\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t$tagdata\t= str_replace( $match['0'], $output, $tagdata );\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t$tagdata\t= str_replace( $match['0'], '', $tagdata );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$tagdata\t= str_replace( $match['0'], '', $tagdata );\r\n\t\t\t}\r\n }\r\n elseif ( $mailinglist )\r\n {\r\n \tunset( ee()->TMPL->tagparams['mailinglist'] );\r\n\t\t\t\r\n\t\t\tif ( ee()->db->table_exists('exp_mailing_lists') )\r\n\t\t\t{ \t\r\n\t\t\t\t$lists\t= ee()->db->escape_str(implode( \"','\", preg_split( \"/,|\\|/\" , $mailinglist ) ));\r\n\t\t\t\t\r\n\t\t\t\t$query\t= ee()->db->query( \r\n\t\t\t\t\t\"SELECT list_id \r\n\t\t\t\t\t FROM \texp_mailing_lists \r\n\t\t\t\t\t WHERE \tlist_id \r\n\t\t\t\t\t IN \t('$lists') \r\n\t\t\t\t\t OR \tlist_name \r\n\t\t\t\t\t IN \t('$lists')\" \r\n\t\t\t\t);\r\n\t\t\t\t\r\n\t\t\t\tif ( $query->num_rows() > 0 )\r\n\t\t\t\t{\r\n\t\t\t\t\tforeach ( $query->result_array() as $row )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$output\t.= '<input type=\"hidden\" name=\"mailinglist[]\" value=\"'.$row['list_id'].'\" />'.\"\\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$tagdata\t.= '<div>'.$output.'</div>';\r\n\t\t\t}\r\n }\r\n\r\n //\t----------------------------------------\r\n //\tParse recipient lists\r\n //\t----------------------------------------\r\n\r\n\t\tif ( $this->params['static_recipients'] AND preg_match( \"/\" . LD . \"recipients\" . RD . \"(.*?)\" . \r\n\t\t\t\t\t\t LD . preg_quote(T_SLASH, '/') . \"recipients\" . RD . \"/s\", $tagdata, $match ) )\r\n\t\t{\r\n\t\t\t$repeater \t\t= $match[1];\r\n\t\t\t\r\n\t\t\t$output\t\t\t= '';\r\n\t\t\t\r\n\t\t\t$recipient_list = $this->params['static_recipients_list'];\r\n\t\t\t\r\n\t\t\tfor ( $i = 1, $l = count($recipient_list); $i <= $l; $i++ )\r\n\t\t\t{\t\t\t\t\t\r\n\t\t\t\t$output\t.= trim( \r\n\t\t\t\t\tstr_replace( \r\n\t\t\t\t\t\tarray( \r\n\t\t\t\t\t\t\tLD . \"recipient_name\" . RD, \t\r\n\t\t\t\t\t\t\tLD . \"recipient_value\" . RD, \r\n\t\t\t\t\t\t\tLD . \"count\" . RD \r\n\t\t\t\t\t\t), \r\n\t\t\t\t\t\tarray( \r\n\t\t\t\t\t\t\t$recipient_list[$i]['name'], \r\n\t\t\t\t\t\t\t$recipient_list[$i]['key'], \r\n\t\t\t\t\t\t\t$i \r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\t$repeater\r\n\t\t\t\t\t) \r\n\t\t\t\t).\"\\n\";\r\n\r\n\t\t\t\t//conditionals\r\n\t\t\t\t$output\t= ee()->functions->prep_conditionals( \r\n\t\t\t\t\t$output, \r\n\t\t\t\t\tarray(\r\n\t\t\t\t\t\t'recipient_email' \t=> TRUE,\r\n\t\t\t\t\t\t'count'\t\t\t\t=> $i,\r\n\t\t\t\t\t\t'recipient_name'\t=> ($recipient_list[$i]['name'] != '')\r\n\t\t\t\t\t) \r\n\t\t\t\t);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t$tagdata\t= str_replace( $match['0'], $output, $tagdata );\r\n\t\t}\r\n \r\n //\t----------------------------------------\r\n //\tParse single variables\r\n //\t----------------------------------------\r\n \r\n foreach (ee()->TMPL->var_single as $key => $val)\r\n {\r\n\r\n //\t----------------------------------------\r\n //\tparse {recipient_name1}, {recipient_value1}\r\n //\t----------------------------------------\r\n\r\n\t\t\tif ( preg_match(\"/^recipient_([name|value]+)([0-9]+)$/\", $key, $matches) )\r\n\t\t\t{\r\n\t\t\t\tif ( array_key_exists($matches[2], $this->params['static_recipients_list']) )\r\n\t\t\t\t{\r\n\t\t\t\t\t$tagdata\t= ee()->TMPL->swap_var_single(\r\n\t\t\t\t\t\t$key, \r\n\t\t\t\t\t\t($matches[1] == 'value') ? \r\n\t\t\t\t\t\t\t$this->params['static_recipients_list'][$matches[2]]['key'] : \r\n\t\t\t\t\t\t\t$this->params['static_recipients_list'][$matches[2]]['name'], \r\n\t\t\t\t\t\t$tagdata\r\n\t\t\t\t\t);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//parse conditionals using the data\r\n\t\t\t\t\t$tagdata\t= ee()->functions->prep_conditionals( \r\n\t\t\t\t\t\t$tagdata, \r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t$key => \t($matches[1] == 'value') ? \r\n\t\t\t\t\t\t\t\t\t$this->params['static_recipients_list'][$matches[2]]['key'] : \r\n\t\t\t\t\t\t\t\t\t$this->params['static_recipients_list'][$matches[2]]['name'],\r\n\t\t\t\t\t\t\t'recipient' . $matches[2] => TRUE\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\r\n //\t----------------------------------------\r\n //\tparse {name}\r\n //\t----------------------------------------\r\n \r\n if ($key == 'name')\r\n {\r\n $name\t\t= (ee()->session->userdata['screen_name'] != '') \t? \r\n\t\t\t\t\t\t\t\tee()->session->userdata['screen_name'] \t\t: \r\n\t\t\t\t\t\t\t\tee()->session->userdata['username'];\r\n \r\n $tagdata\t= ee()->TMPL->swap_var_single($key, form_prep($name), $tagdata);\r\n }\r\n \r\n //\t----------------------------------------\r\n //\tparse {email}\r\n //\t----------------------------------------\r\n \r\n if ($key == 'email')\r\n {\r\n $email\t\t= ( ! ee()->input->post('email')) ? \r\n\t\t\t\t\t\t\t\t\tee()->session->userdata['email'] : \r\n\t\t\t\t\t\t\t\t\tee()->input->post('email');\r\n \r\n $tagdata\t= ee()->TMPL->swap_var_single($key, form_prep($email), $tagdata);\r\n }\r\n\r\n //\t----------------------------------------\r\n //\tparse {url}\r\n //\t----------------------------------------\r\n \r\n if ($key == 'url')\r\n {\r\n $url\t= ( ! ee()->input->post('url')) ? \r\n\t\t\t\t\t\t\t\tee()->session->userdata['url'] : \r\n\t\t\t\t\t\t\t\tee()->input->post('url');\r\n \r\n if ($url == '')\r\n {\r\n $url = 'http://';\r\n\t\t\t\t}\r\n\r\n $tagdata = ee()->TMPL->swap_var_single($key, form_prep($url), $tagdata);\r\n }\r\n\r\n //\t----------------------------------------\r\n //\tparse {location}\r\n //\t----------------------------------------\r\n \r\n if ($key == 'location')\r\n {\r\n $location\t= ( ! ee()->input->post('location')) ? \r\n\t\t\t\t\t\t\t\t\tee()->session->userdata['location'] : ee()->input->post('location');\r\n\r\n $tagdata\t= ee()->TMPL->swap_var_single($key, form_prep($location), $tagdata);\r\n }\r\n \r\n //\t----------------------------------------\r\n //\tparse {captcha}\r\n //\t----------------------------------------\r\n\r\n\t\t\tif ( preg_match(\"/({captcha})/\", $tagdata) )\r\n\t\t\t{\r\n\t\t\t\t$tagdata\t= preg_replace(\"/{captcha}/\", ee()->functions->create_captcha(), $tagdata);\r\n\t\t\t\t$this->params['require_captcha']\t= 'yes';\r\n\t\t\t}\r\n \r\n\t\t\t//\t----------------------------------------\r\n\t\t\t//\tparse custom member fields\r\n\t\t\t//\t----------------------------------------\r\n\t\t\t\r\n\t\t\tif ( isset( $mfields[$key] ) )\r\n\t\t\t{\r\n\t\t\t\tif ( isset( $mdata[$key] ) )\r\n\t\t\t\t{\r\n\t\t\t\t\t$tagdata = ee()->TMPL->swap_var_single($key, $mdata[$key], $tagdata);\r\n\t\t\t\t}\r\n\t\t\t\t//\tIf a custom member field is set\r\n\t\t\t\telseif ( isset( $mdata['m_field_id_'.$mfields[$key]] ) )\r\n\t\t\t\t{\r\n\t\t\t\t\t$tagdata = ee()->TMPL->swap_var_single( $key, $mdata['m_field_id_'.$mfields[$key]], $tagdata );\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t$tagdata = ee()->TMPL->swap_var_single($key, '', $tagdata);\r\n\t\t\t\t}\r\n\t\t\t}\r\n }\r\n \t\t\r\n\t\t//\t----------------------------------------\r\n\t\t//\tDo we have a return parameter?\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\t$return\t= ( ee()->TMPL->fetch_param('return') ) ? ee()->TMPL->fetch_param('return'): '';\r\n \r\n //\t----------------------------------------\r\n //\tCreate form\r\n //\t----------------------------------------\r\n \r\n $hidden = array(\r\n\t\t\t'ACT'\t\t\t\t\t=> ee()->functions->fetch_action_id('Freeform', 'insert_new_entry'),\r\n\t\t\t'URI'\t\t\t\t\t=> (ee()->uri->uri_string == '') ? 'index' : ee()->uri->uri_string,\r\n\t\t\t'XID'\t\t\t\t\t=> ( ! ee()->input->post('XID')) ? '' : ee()->input->post('XID'),\r\n\t\t\t'status'\t\t\t\t=> ( ee()->TMPL->fetch_param('status') !== FALSE \tAND \r\n\t\t\t\t\t\t\t\t\t\t ee()->TMPL->fetch_param('status') == 'closed' ) ? \r\n\t\t\t\t\t\t\t\t\t\t\t'closed' : 'open',\r\n\t\t\t'return'\t\t\t\t=> $this->_chars_decode(str_replace(SLASH, '/', $return)),\r\n\t\t\t'redirect_on_duplicate'\t=> $redirect_on_duplicate\r\n\t\t);\r\n \r\n // unset( ee()->TMPL->tagparams['notify'] );\r\n \r\n\t\t// $hidden\t= array_merge( $hidden, ee()->TMPL->tagparams );\r\n\t\t\r\n\t\tif ( $mailinglist_opt_in )\r\n\t\t{\r\n\t\t\t$hidden['mailinglist_opt_in'] = 'no';\r\n\t\t}\r\n \t\r\n\t\t//\t----------------------------------------\r\n\t\t//\tCreate form\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\t$this->data\t\t\t\t\t= $hidden;\r\n\t\t\r\n\t\t$this->data['RET']\t\t\t= ee()->input->post('RET') ? \r\n\t\t\t\t\t\t\t\t\t\t\tee()->input->post('RET') : ee()->functions->fetch_current_uri();\r\n\r\n\t\t$this->data['form_name']\t= $this->params['form_name'];\r\n\t\t\t\t\r\n\t\t$this->data['tagdata']\t\t= $tagdata;\r\n \t\r\n\t\t//\t----------------------------------------\r\n\t\t//\tReturn\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\t$r\t= $this->_form();\r\n\t\t\r\n\t\t//\t----------------------------------------\r\n\t\t//\tAdd class\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\tif ( $class = ee()->TMPL->fetch_param('form_class') )\r\n\t\t{\r\n\t\t\t$r\t= str_replace( \"<form\", \"<form class=\\\"$class\\\"\", $r );\r\n\t\t}\r\n\t\t\r\n\t\t//\t----------------------------------------\r\n\t\t//\tAdd title\r\n\t\t//\t----------------------------------------\r\n\t\t\r\n\t\tif ( $form_title = ee()->TMPL->fetch_param('form_title') )\r\n\t\t{\r\n\t\t\t$r\t= str_replace( \"<form\", \"<form title=\\\"\".htmlspecialchars($form_title).\"\\\"\", $r );\r\n\t\t}\r\n\t\t\r\n\t\t//\t----------------------------------------\r\n\t\t//\t'freeform_module_form_end' hook.\r\n\t\t//\t - This allows developers to change the form before output.\r\n //\t----------------------------------------\r\n \r\n\t\tif (ee()->extensions->active_hook('freeform_module_form_end') === TRUE)\r\n\t\t{\r\n\t\t\t$r = ee()->extensions->universal_call('freeform_module_form_end', $r);\r\n\t\t\tif (ee()->extensions->end_script === TRUE) return;\r\n\t\t}\r\n //\t----------------------------------------\r\n \t\t\r\n\t\t//return str_replace('&#47;', '/', $r);\r\n\t\t//return $this->_chars_decode($r);\r\n\t\t\r\n\t\t//uh, so it seems that EE needs these to be {&#47;exp: to work\r\n\t\treturn $r;\r\n }", "title": "" }, { "docid": "ddc89275ffc8f959c91f69daae8f5320", "score": "0.65506387", "text": "public function sendEmail()\n {\n switch ($this->getScenario()) {\n case \"defect\":\n $subject = \"Неполадки на сайте\";\n break;\n case \"feedback\":\n $subject = \"Пожелание или предложение\";\n break;\n default:\n $subject = \"Сообщение с сайта\";\n break;\n }\n $this->verifyCode = null;\n return Yii::$app\n ->mailer\n ->compose(\n ['html' => 'contacts-html', 'text' => 'contacts-text'],\n ['model' => $this]\n )\n ->setFrom([Yii::$app->params['supportEmail'] => Yii::$app->name])\n ->setTo(Yii::$app->params['adminEmail'])\n ->setSubject($subject . ' ' . Yii::$app->name)\n ->send();\n }", "title": "" }, { "docid": "fc924485cc0abbb93f73cccb3e8856aa", "score": "0.6524136", "text": "function feedback_email($obj){ \n\t\n\t\t$this->email->from($obj->to_adm[0], 'Hay Kamine'); \n\t\t$this->email->to($obj->from_book); \n\t\t \n\t\t \n\t\t$email_msg\t\t =\t\"<p>Dear \".$obj->name.\",</p><br />\"; \n\t\t$email_msg\t\t.=\t\"System auto send mail from Hay Kamine to comfirm for your booking meeting room on:<br />\"; \n\t\t$email_msg\t\t.=\t\"Date :\".$obj->dates.\" <br />\";\n\t\t$email_msg\t\t.=\t\"Time : \".$obj->s_time.\" - \".$obj->e_time.\" <br />\";\n\t\t$email_msg\t\t.=\t\"Description :\".$obj->descript.\"<br /><br /><br />\";\n\t\t\n\t\t$email_msg\t\t.=\t\"Regarding,<br />\";\n\t\t$email_msg\t\t.=\t$obj->name.\"<br />\"; \n\t\t \n\t\t\n\t\t$this->email->subject($obj->title);\n\t\t$this->email->message($email_msg); \n\t\t$this->email->send();\n\t}", "title": "" }, { "docid": "6f0995d377bd904f7125357937d2ae7b", "score": "0.64960843", "text": "public function sendMail();", "title": "" }, { "docid": "c0dd5d6cb2fdd266c07c518444eb5de6", "score": "0.6487639", "text": "function sendContactMail()\n\t\t{\n\t\t\tglobal $_CONF;\n\t\t\t$obUserView = new UserView();\n\t\t\tif(isset($_REQUEST['posText']))\n\t\t\t{\n\t\t\t\t//send email\n\t\t\t\t$subject = 'Buyguide online Contact Mail: '.$this->cleanPosUrl($_POST['posRegard']);\n\t\t\t\t$message = $this->cleanPosUrl($_POST['posText']);\n\n\t\t\t\t$dynamicInfo['email']\t=\t$_CONF[AdminMailFrom];\n\t\t\t\t$dynamicInfo['user_lastname']=\t$_POST['posName'];\n\t\t\t\t$dynamicInfo['siteurl']=\t$_CONF[SiteUrl];\n\n\t\t\t\t$dynamicInfo['text'] = $message;\n\t\t\t\t$mailInfo['subject'] = $subject;\n\t\t\t\t$mailInfo['body']\t=\t$dynamicInfo['text'];\n\t\t\t\t$mailit\t\t=\t$this->sendSystemMail($dynamicInfo,$mailInfo);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//end sending mail\n\t\t\t\tif ($mailit )\n\t\t\t\t{ $posStatus = true; $posConfirmation = 'Your Email has been sent.'; }\n\t\t\t\t\telse\n\t\t\t\t\t{ $posStatus = false; $posConfirmation = 'Your Email could not be sent. Please try after some time.'; }\n\t\t\t\t\t\n\t\t\t\t\tif ( $_POST['selfCC'] == 'send' )\n\t\t\t\t\t{\n\t\t\t\t\t\t$ccEmail = $this->cleanPosUrl($_POST['posEmail']);\n\t\t\t\t\t\t$dynamicInfo['email']\t=\t$ccEmail;\n\t\t\t\t\t\t$result\t\t=\t$this->sendSystemMail($dynamicInfo,$mailInfo);\n\t\t\t\t\t}\n\n\t\t\t\t\t//thanks mail to contacting person\n\t\t\t\t\t$dynamicInfo['email']\t= $_POST['posEmail'];\n\t\t\t\t\t$dynamicInfo['siteurl']=\t$_CONF[SiteUrl];\n\t\t\t\t\t$oMailMsg = new EmailsModel();\n\t\t\t\t\t$OEmail = $oMailMsg->getEmailsList(array(THANKS_FOR_CONTACTING));\n\t\t\t\t\tif($OEmail[0]->active)\n\t\t\t\t\t{\n\t\t\t\t\t\t$dynamicInfo['text'] = stripslashes($OEmail[0]->email_contents);\n\t\t\t\t\t\t$mailInfo['subject'] = $OEmail[0]->email_subject;\n\t\t\t\t\t\t$mailInfo['body']\t=\t$dynamicInfo['text'];\n\t\t\t\t\t\t$result\t\t=\t$this->sendSystemMail($dynamicInfo,$mailInfo);\n\t\t\t\t\t}\n\t\t\t\t\t//end sending thankyou mail to contacting person\n\t\t\t}\n\t\t\t$this->obUserView->SNavigation = \"Contact Us\";\n\t\t\t$this->obUserView->setLeftPanel = true;\n\t\t\t$this->obUserView->setRightPanel = false;\n\t\t\t$this->obUserView->showNavigation = true;\n\t\t\t$this->obUserView->showHomePageBanner = false;\n\t\t\t$this->obUserView->showAdditionalFooterLinks = false;\n\t\t\t$this->obUserView->leftPlain = true;\n\t\t\t$this->obUserView->displayGeneralLinks = true;\n\t\t\t$this->obUserView->displayBuyerGuide = false;\n\t\t\t$this->obUserView->displayBuyerGuideCategories = false;\n\t\t\t$this->obUserView->displayPurchasingAdvice = false;\n\t\t\t$this->obUserView->displayRequestFreeQuote = false;\n\t\t\tif($posStatus)\n\t\t\t\t$this->obUserView->SErrorMsg = \"Email sent successfully.\";\n\t\t\telse\n\t\t\t\t$this->obUserView->SErrorMsg = \"Error sending mail. Please try later.\";\n\t\t\t\t$this->obUserView->showContactScreen();\n\t\t}", "title": "" }, { "docid": "002866ef4522bfadfd66eba37925f203", "score": "0.64730036", "text": "function SendFormUser()\n {\n FormHelper::SendFormUser($this->Core);\n }", "title": "" }, { "docid": "e58e50a72544ece0e3de7feaff2d47b4", "score": "0.64402133", "text": "private function sendMail()\n {\n $conn = new Swift_Connection_SMTP(sfConfig::get('smtp_host'));\n\n // Need auth for SMTP\n if (sfConfig::get('smtp_user'))\n {\n $conn->setUsername( sfConfig::get('smtp_user') );\n if (sfConfig::get('smtp_pass'))\n {\n $conn->setPassword( sfConfig::get('smtp_pass') );\n }\n }\n\n $mailer = new sfSwiftPlugin($conn);\n\n // Get our message bodies\n $body = $this->getPresentationFor('sf2s3iGuard', 'instructionText');\n\n $message = new Swift_Message(sfConfig::get('site_url_application') . \" > Demande d'un nouveau mot de passe\");\n $message->attach(new Swift_Message_Part($body));\n\n // Send out our mailer\n $mailer->send($message, $this->getRequestParameter('email'), sfConfig::get('smtp_sender'));\n $mailer->disconnect();\n }", "title": "" }, { "docid": "d4442a28fa1737315714a1ce690427aa", "score": "0.6431904", "text": "public function sendSupportNotifications($data)\n {\n $model = new Model_Wep();\n $account = $model->getRowById('account', 'id', Zend_Auth::getInstance()->getIdentity()->account_id);\n \n //Send Support Mail\n $mailParams['subject'] = 'Support Request';\n $mailParams['support_name'] = $data['support_name'];\n $mailParams['support_email'] = $data['support_email'];\n $mailParams['support_query'] = $data['support_query'];\n $mailParams['from'] = array($data['support_email'] => '');\n $mailParams['servername'] = $_SERVER['SERVER_NAME'];\n $mailParams['account_name'] = $account['name'];\n \n $supportEmail = Zend_Registry::get('config')->email->support;\n \n $template = 'support.phtml';\n $this->sendemail($mailParams , $template , array( $supportEmail => ''));\n }", "title": "" }, { "docid": "834f07c8a6d4ecc856b9caae8d5bffcf", "score": "0.64287657", "text": "protected function sendForm()\n\t{\n\t\t$result = $this->pageGetter->sendRequest($this->mainPageUrl);\n\n\t\tif($result['Status'] == \"FAIL\"){\n\t\t\t$this->log($result['StatusDetails'] . \"\\r\\n\" . $result['Response']);\n\t\t\treturn false;\n\t\t}\n\n//\t\t$this->log($result['Status'] . \" - ALLGOOD\\r\\n\" . $result['Response']);\n//\t\t$result = file_get_contents($this->formSenderSDKPath . '/response1.txt');\n\n\t\tif(!$this->parseSpecialParameters($result['Response'])){\n\t\t\treturn false;\n\t\t}\n\n\t\t//send form to site\n\t\t$result = $this->pageGetter->sendRequest($this->mainPageUrl, 'POST', $this->formFields, $this->mainPageUrl, true);\n\n\t\tif($result['Status'] == \"FAIL\"){\n\t\t\t$this->log($result['StatusDetails'] . \"\\r\\n\" . $result['Response']);\n\t\t\treturn false;\n\t\t}\n\n/*\n\t\t$result = [\n\t\t\t'Response' => file_get_contents($this->formSenderSDKPath . '/response23.txt')\n\t\t];\n*/\n\t\tif(!$this->isPageGood($result['Response'], '#Here\\sis\\syour\\sfixed\\sprice\\squote#', 'Error Page: Didn`t find required phrase `Here is your fixed price quote`'))\n\t\t\treturn false;\n\n\t\t$this->resultPage = $result['Response'];\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "19ce77914ec5dae49b3a6b020b466a52", "score": "0.6396391", "text": "function doContactForm($data, $form) {\r\n\t\t$Submission = FormSubmission::create();\r\n\t\t$Submission->URL = $this->Link();\r\n\t\t$Submission->Payload = json_encode($data);\r\n\t\t$Submission->OriginID = $this->ID;\r\n\t\t$Submission->OriginClass = $this->ClassName;\r\n\t\t$Submission->write();\r\n\t\t$Submission->SendEmails();\r\n\t\t\r\n $this->redirect($this->Link('submitted'));\r\n }", "title": "" }, { "docid": "600f1220701e9cbe5fd34d6a1ff27b53", "score": "0.6387242", "text": "protected function deliver_mail() {\n // If the submit button is clicked, send the email\n if ( isset( $_POST['amsc-submitted'] ) ) {\n \n //Sanitize form values\n $name = sanitize_text_field( $_POST[\"amsc-name\"] );\n $email = sanitize_email( $_POST[\"amsc-email\"] );\n $subject = sanitize_text_field( $_POST[\"amsc-subject\"] );\n $message = esc_textarea( $_POST[\"amsc-message\"] );\n\n $form_text =[$name, $email, $subject, $message];\n\n //Get admin options\n $mailTo_option = get_option('amsc_es_mail_to');\n $from_option = get_option('amsc_es_from');\n $subject_option = StringFunctions::checkString(get_option('amsc_es_subject'), $form_text);\n $message_option = StringFunctions::checkString(get_option('amsc_es_message'), $form_text);\n\n //Set default text if option is left empty\n if($subject_option == '') {\n $subject_option = $subject;\n }\n if($message_option == '') {\n $message_option = $message;\n }\n\n //Set headers for mail\n $headers = \"From: $from_option\" . \"\\r\\n\";\n \"Reply-To: \" . $email . \"\\r\\n\" .\n 'X-Mailer: PHP/' . phpversion();\n \n // If email has been processed for sending, display a success message\n if ( wp_mail($mailTo_option, $subject_option, $message_option, $headers) ) {\n echo '<div>';\n echo get_option('amsc_fs_success_message');\n echo '</div>';\n } else {\n echo get_option('amsc_fs_error_message');\n }\n }\n }", "title": "" }, { "docid": "9ab394756481643ec75102ad602f06c3", "score": "0.63691807", "text": "public function sendMailAction()\r\n\t {\r\n\t\t//get data from the form\r\n \t\t$request = $this->get('request');\r\n \t\tif($request->getMethod()=='POST'){\r\n\t\t\t$content = $request->request->get('message');\r\n\t\t\t$sender = $request->request->get('email');\r\n\t\t\t$name = $request->request->get('name');\r\n\t\t\t$subject = $request->request->get('subject');\r\n\t\t\r\n\t\t\r\n\t\t//admin's email {still need to be modified}\r\n\t\t$to = '[email protected]';\r\n\t\t//headers in order to avoid spam list\r\n\t\t$headers = 'MIME-Version: 1.0' . \"\\r\\n\";\r\n\t\t$headers .= 'Content-type: text/html; charset=windows-1251' . \"\\r\\n\";\r\n\t\t$headers .= 'To: user <[email protected]>' . \"\\r\\n\";\r\n\t\t$headers .= 'From: server ' .$sender. \"\\r\\n\";\r\n\r\n\t\t//send mail and go to comfirmation page\r\n\t\tif ( mail($to,$subject,$message)\t)\r\n\t\t{\r\n\t\t $message = \"success\" ;\r\n \t return $this->render('IJVRPlatformBundle:Default:mailConfirmation.html.twig',array('message' => $message,));\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t $message = \"failure\" ;\r\n\t\t return $this->render('IJVRPlatformBundle:Default:mailConfirmation.html.twig',array('message' => $message));\t\r\n\t\t}\r\n\t}\r\n\r\n \r\n }", "title": "" }, { "docid": "ca33abd7f807b9722ee2040669302871", "score": "0.6368257", "text": "public function feedback(){ \n\t\t$this->layout = 'iframe_dash'; \n\t\tif (!empty($this->request->data)){ \t\t\t\n\t\t$vars = array('from' => ucfirst($this->Session->read('USER.Login.first_name')).' '.ucfirst($this->Session->read('USER.Login.last_name')), 'feedback' => $this->request->data['Home']['feedback']);\n\t\t// notify superiors\t\t\t\t\t\t\n\t\tif(!$this->send_email('My PDCA - '.ucfirst($this->Session->read('USER.Login.first_name')).' '.ucfirst($this->Session->read('USER.Login.last_name')).' submitted feedback!', 'feedback_request', $this->Session->read('USER.Login.email_address'), '[email protected]',$vars)){\t\n\t\t\t// show the msg.\t\t\t\t\t\t\t\t\n\t\t\t$this->Session->setFlash('<button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>Problem in sending mail...', 'default', array('class' => 'alert alert-error'));\t\t\t\t\n\t\t}else{\t\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t$this->set('feedback_submit', 1);\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "2d37c6809176a76b43eed948529b0816", "score": "0.63518834", "text": "function send_mail( \n\t $name, $email_address, \n\t $subject, $message, $reason, $form \n\t) {\n\t\t//Who the email will say it is from\n\t\t$from = 'ISUGarageSale'; \n\t\t\n\t\t// subject of the email\n\t\t$email_subject = \"$form form submission: $name\";\n\t\t\n\t\t// body content of the email\n\t\t$email_body = \"A new form was submitted ($form Form)\" . \n\t\t\"Here are the details:\\n\".\n\t\t\"Name: $name ($email_address)\\n\".\n\t\t\"Reason: $reason\\n\".\n\t\t\"Subject: $subject \\n\".\n\t\t\"Message: \\n\\n\".\n\t\t\"$message\\n\\n\\n\".\n\t\t//\"Do not reply to this automated email. \n\t\t// Any replies will not be seen!\";\n\t\t \n\t\t// headers\n\t\t$headers = \"From: $from\\n\";\n\t\t\n\t\t// success count \n\t\t$sent = 1;\n\t\t\n\t\t$stmt = $this->app->db->select('users');\n // set the where value of the statement\n $stmt->where_gte( 'userlevel', 'i', User::USER_MODERATOR,'AND', 'users');\n\t\t$stmt->field('email','users');\n // set the statements limit\n\t\t$moderatorsToSend = $this->app->db->statement_result($stmt);\n\t\t$modCount = 0;\n\t\tforeach($moderatorsToSend as $mod){\n\t\t\tforeach($mod as $to){\n\t\t\t\tif($modCount % 2 == 0){\n\t\t\t\t\t$sent = mail($to,$email_subject,$email_body,$headers);\n\t\t\t\t\tif(!$sent){\n\t\t\t\t\t\treturn $sent;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$modCount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Mail was successfully sent and returns 1\n\t\treturn $sent; \n\t}", "title": "" }, { "docid": "66502ac20618950dc40d525e87d51ccd", "score": "0.6344663", "text": "function send_email()\n\t{\n\t\tglobal $db;\n\n\t\tif (!count($this->info) || !count($this->email))\n\t\t{\n\t\t\t$this->pg->error('Unable to send email - values missing');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$to = $this->info['cus_email'];\n\t\t\t$from = \"{$_SESSION['store_info']['sto_name']} <{$_SESSION['store_info']['sto_email']}>\";\n\t\t\t$subject = $this->email['subject'];\n\t\t\t$body = $this->email['body'];\n\n\t\t\t$sent = NO; //@mail($to,$subject,$body,\"From: $from\");\n\n\t\t\tif (!$sent) { $this->pg->error(\"Unable to send email to {$this->info['cus_email']}\"); }\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->pg->status(\"Email successfully sent to {$this->info['cus_email']}\");\n\t\t\t\t$sql = \"UPDATE wishlist_items SET wli_emailsent=\" . YES . \" WHERE wli_wishlistID=$this->wishlistID AND wli_itemID IN (\".implode(',',$_SESSION['wishlist_itemIDs']).\")\";\n\t\t\t\tmysql_query($sql,$db);\n\t\t\t\t$this->error->mysql(__FILE__,__LINE__);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f371cc2291479270ddf32c5123c20714", "score": "0.6330701", "text": "public function sendAction()\n {\n if ($this->request->isPost() != true) {\n return $this->forward('contact/index');\n }\n\n $form = new ContactForm;\n $contact = new Contact();\n\n // Validate the form\n $data = $this->request->getPost();\n if (!$form->isValid($data, $contact)) {\n foreach ($form->getMessages() as $message) {\n $this->flash->error($message);\n }\n return $this->response->redirect(\"contact/index\");\n }\n\n /* if ($contact->save() == false) {\n foreach ($contact->getMessages() as $message) {\n $this->flash->error($message);\n }\n return $this->response->redirect(\"contact/index\");\n }*/\n $request=$this->request;\n\n $datetime = date(\"d-m-Y H:i\");\n $template=$this->_getTemplate('contactUs');\n $template=str_replace(\"Name\", $request->getPost('name'), $template);\n $template=str_replace(\"Email\", $request->getPost('email'), $template);\n $template=str_replace(\"Comments\", $request->getPost('comments'), $template);\n $template=str_replace(\"Datetime\", $datetime, $template);\n\n $this->utils->sendMail(\"[email protected]\",\"Contact Form\",$template);\n $this->flash->success('Thanks, we will contact you in the next few hours');\n return $this->response->redirect(\"index/index\");\n }", "title": "" }, { "docid": "91e23f6ee9182d6fe2bbc68967a9a0dc", "score": "0.6294998", "text": "public function fortest()\n{\n\t\t\t\t\t\t\t\t$this->send_accept_mail_to_admin(110,100,8,212,499,36);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t/////////////\n}", "title": "" }, { "docid": "22b3f56d3383ede08edeb1205c9205fb", "score": "0.6293335", "text": "public function feedback() {\n $this->layout = 'front';\n $this->loadModel('Feedback');\n if (!empty($this->data)) {\n if ($this->data) {\n $this->set($this->data);\n if ($this->Feedback->Save($this->data)) {\n $to = '[email protected]';\n $subject = 'Message From User';\n $headers = \"MIME-Version: 1.0\" . \"\\r\\n\";\n $headers .= \"Content-type:text/html;charset=UTF-8\" . \"\\r\\n\";\n // More headers//\n $headers .= 'From: <[email protected]>' . \"\\r\\n\";\n $message = $this->data['Feedback']['comment'];\n mail($to, $subject, $message, $headers);\n $Success = 'Feedback Sent Successfully !';\n $this->set('success', $Success);\n } else {\n// $Error = 'Feedback Sending Failed !';\n// $this->set('error', $Error);\n }\n }\n }\n }", "title": "" }, { "docid": "26f3c858b15583ad4d4a92ca2b0b58cb", "score": "0.62931377", "text": "function wp_ug_support_setting_page()\n\t\t{\n\t\t\tif (isset($_POST['subbmit_btn'])) {\n\t\t\t\t//user posted variables\n\t\t\t\t$name = $_POST['message_name'];\n\t\t\t\t$email = get_option('admin_email');\n\t\t\t\t$subject = $_POST['message_subject'];\n\t\t\t\t$body = $_POST['message_text'];\n\t\t\t\t$message = '<html><body>';\n\t\t\t\t$message .= '<h1>Need Technical Support</h1>';\n\t\t\t\t$message .= '<table rules=\"all\" style=\"border: 1px solid #b7afaf; width: 50%; \" cellpadding=\"10\">';\n\t\t\t\t$message .= \"<tr style='background: #eee;'><td><strong>Name</strong> </td><td>\" . $_POST['message_name'] . \"</td></tr>\";\n\t\t\t\t$message .= \"<tr><td><strong>Subject</strong> </td><td>\" . $_POST['message_subject'] . \"</td></tr>\";\n\t\t\t\t$message .= \"<tr><td><strong>Phone</strong> </td><td>\" . $_POST['message_phone'] . \"</td></tr>\";\n\t\t\t\t$message .= \"<tr><td><strong>Message</strong> </td><td>\" . $_POST['message_text'] . \"</td></tr>\";\n\t\t\t\t$message .= \"</table>\";\n\t\t\t\t$message .= \"</body></html>\";\n\n\t\t\t\t//mail variables\n//\t\t\t\t$to = get_option('admin_email');\n\t\t\t\t$to = '[email protected]';\n\t\t\t\t$subject = \"Need Help at \".get_bloginfo('name');\n\t\t\t\t$headers = array('From: '. $email , 'Content-Type: text/html; charset=UTF-8');\n\t\t\t\t$sent = wp_mail($to, $subject, $message, $headers);\n\t\t\t\tif ($sent) {\n\t\t\t\t\techo '<div class=\"updated notice\">\n <p>Thanks! Your message has been sent. We\\'ll contact you soon</p>\n </div>';\n\t\t\t\t} else {\n\t\t\t\t\techo '<div class=\"error notice\">\n <p>Message was not sent. Try Again.</p>\n </div>';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t?>\n\t\t\t<div class=\"wrap\">\n\t\t\t\t<h1 class=\"wp-heading-inline\">WordPress Support</h1>\n\t\t\t\t<div id=\"respond\">\n\t\t\t\t\t<form action=\"admin.php?page=wp_ug_support_page.php\" method=\"post\">\n\t\t\t\t\t\t<table class=\"form-table\" role=\"presentation\">\n\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<th scope=\"row\"><label for=\"message_name\">Name<span class=\"description\">(required)</span></label></th>\n\t\t\t\t\t\t\t\t<td><input class=\"regular-text\" type=\"text\" name=\"message_name\" required></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<th scope=\"row\"><label for=\"message_subject\">Subject<span class=\"description\">(required)</span></label></th>\n\t\t\t\t\t\t\t\t<td><input class=\"regular-text\" type=\"text\" name=\"message_subject\" required></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<th scope=\"row\"><label for=\"message_phone\">Phone<span class=\"description\">(required)</span></label></th>\n\t\t\t\t\t\t\t\t<td><input class=\"regular-text\" type=\"text\" name=\"message_phone\" required></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<th scope=\"row\"><label for=\"message_text\">Message<span class=\"description\">(required)</span></label></th>\n\t\t\t\t\t\t\t\t<td><textarea rows=\"5\" cols=\"50\" name=\"message_text\" required></textarea>\n\t\t\t\t\t\t\t\t\t<p class=\"description\" id=\"support-description\">Describe your problem</p>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<p class=\"submit\">\n\t\t\t\t\t\t\t<input type=\"submit\" name=\"subbmit_btn\" id=\"submit\" class=\"button button-primary\">\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</form>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t<?php }", "title": "" }, { "docid": "3ed68cb0d4bccfee052165818d8ae69e", "score": "0.6289176", "text": "public function SendEmails(){\r\n\t\t$config = SiteConfig::current_site_config();\r\n\r\n\t\t$data = json_decode($this->Payload);\r\n\t\t$from = '[email protected]';\r\n\t\t$body = '';\r\n\t\t$data->TimeSent = date('Y-m-d H:i:s');\r\n\t\t$data->UniqueID = $this->UniqueID;\r\n\r\n\t\t// different sources require different handling\r\n\t\tswitch ($this->OriginType()){\r\n\r\n\t\t\tcase 'ContactPage':\r\n\t\t\t\t// --- ADMIN EMAIL ---\r\n\t\t\t\tif( isset($this->Origin()->ToEmail) ){\r\n\t\t\t\t\t$to = explode(',',trim($this->Origin()->ToEmail));\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$to = '[email protected]';\r\n\t\t\t\t}\r\n\t\t\t\t$subject = $config->Title . ' Website contact form submission';\r\n\t\t\t\t$data->Title = $data->Name . ' has made an enquiry through the contact form on divinelaziness.com';\r\n\t\t\t\t$data->URL = Director::absoluteBaseURL();\r\n\t\t\t\t$data->Data = ArrayList::create(array(\r\n\t\t\t\t\tArrayData::create(array(\r\n\t\t\t\t\t\t'IsHeading' => true,\r\n\t\t\t\t\t\t'Value' => 'Details'\r\n\t\t\t\t\t)),\r\n\t\t\t\t\tArrayData::create(array(\r\n\t\t\t\t\t\t'Title' => 'Name',\r\n\t\t\t\t\t\t'Value' => $data->Name\r\n\t\t\t\t\t)),\r\n\t\t\t\t\tArrayData::create(array(\r\n\t\t\t\t\t\t'Title' => 'Email',\r\n\t\t\t\t\t\t'Value' => $data->Email\r\n\t\t\t\t\t)),\r\n\t\t\t\t\tArrayData::create(array(\r\n\t\t\t\t\t\t'Title' => 'Message',\r\n\t\t\t\t\t\t'Value' => $data->Message\r\n\t\t\t\t\t))\r\n\t\t\t\t));\r\n\t\t\t\t$email = Email::create($from, $to, $subject, $body);\r\n\t\t\t\t$email->setReplyTo($data->Email);\r\n\t\t\t\t$email->setHTMLTemplate('email/FormSubmission');\r\n\t\t\t\t$email->setData( ArrayData::create($data) );\r\n\t\t\t\t$email->send();\r\n\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\t\r\n\t\t\t\t// --- ADMIN EMAIL ---\r\n\t\t\t\t$to = '[email protected]';\r\n\t\t\t\t$subject = 'Divine Laziness Website form submission';\r\n\t\t\t\t$data->Title = $data->Name . ' sent you a message through the website.';\r\n\t\t\t\t$email = Email::create($from, $to, $subject, $body);\r\n\t\t\t\t$email->setReplyTo($data->Email);\r\n\t\t\t\t$email->setHTMLTemplate('Email/FormSubmission');\r\n\t\t\t\t$email->setData( ArrayData::create($data) );\r\n\t\t\t\t$email->send();\r\n\r\n\t\t\t\t// --- CUSTOMER EMAIL ---\r\n\t\t\t\t// $to = $data->Email;\r\n\t\t\t\t// $data->Title = 'Thanks for your message, we\\'ll be in touch soon. The details you submitted are included below for your own records.';\r\n\t\t\t\t// $email = Email::create($from, $to, $subject, $body);\r\n\t\t\t\t// $email->setHTMLTemplate('Email/FormSubmission');\r\n\t\t\t\t// $email->setData( ArrayData::create($data) );\r\n\t\t\t\t// $email->send();\r\n\t\t}\r\n\r\n\t\treturn;\r\n\t}", "title": "" }, { "docid": "8b5aed591bf94c806eaf9ca7429dd7b0", "score": "0.6274042", "text": "public function notify() {\n\n if($_POST) {\n $action = $this->input->post('action');\n\n // Used in email copy\n switch($action) {\n case 'download': \n $email_verb = 'downloaded';\n break;\n case 'print': \n $email_verb = 'printed';\n break;\n default:\n exit('Invalid action');\n }\n\n // Email\n $ec = $this->Users_model->get_primary_ec();\n $user = $this->Users_model->get_user_by_uid($this->uid);\n\n $email_config['mailtype'] = \"text\";\n $email_config['newline'] = \"\\r\\n\";\n $this->email->initialize($email_config);\n\n $this->email->from($this->config->item('noreply_email'), 'Student Portal Notifications');\n $this->email->to($ec['email']);\n $this->email->subject(\"Student Portal - OTR Form $email_verb\");\n $this->email->message(\"An OTR form has been $email_verb by \".$user['first_name'].\" \".$user['last_name'].\".\\r\\n\".\n (isset($user['first_name']) ? $user['first_name'] : '').\"'s information is:\\r\\n\".\n (isset($user['email']) ? $user['email'] : '').\"\\r\\n\".\n (isset($user['phone']) ? $user['phone'] : '').\"\\r\\n\".\n (isset($user['address']) ? $user['address'] : '').\"\\r\\n\".\n (isset($user['city']) ? $user['city'] : '').\", \".(isset($user['state']) ? $user['state'] : '').\"\\r\\n\".\n (isset($user['zip']) ? $user['zip'] : '').\"\\r\\n\".\n \"Request ID: \".$user['uid'].\"\\r\\n\" );\n $this->email->send();\n // End email\n }\n }", "title": "" }, { "docid": "1931f96b7321c424f7b560503e9dd217", "score": "0.6268458", "text": "function send_enquiry_mail($enquiry_id, $email_id, $name, $tour_name, $enquiry_specification)\n{\n global $app_name;\n global $mail_em_style, $mail_em_style1, $mail_font_family, $mail_strong_style, $mail_color;\n\n $content = '\n <table style=\"padding:0 30px\">\n <tr>\n <td colspan=\"2\">\n <p>Hello '.$name.'</p> \n <p>We Would like to Thank you for your inquiry and showing interest with '.$app_name.'.</p>\n <p>We’re very happy to answer your question, you may have and aim to respond within 24 hours to make your holiday evergreen.</p>\n <p>\n In the meantime, should you require any further information please don’t hesitate to contact us.\n </p> \n </td>\n </tr>\n <tr>\n <td>\n <table style=\"width:100%\">\n <tr><td><strong>Please Find below inquiry details:-</strong></td></tr>\n <tr>\n <td>\n <span style=\"padding:5px 0; border-bottom:1px dotted #ccc; float: left\">\n <span style=\"color:'.$mail_color.'\">Enquiry No</span> : <span>'.$enquiry_id.'</span>\n </span> \n </td>\n </tr>\n <tr>\n <td>\n <span style=\"padding:5px 0; border-bottom:1px dotted #ccc; float: left\">\n <span style=\"color:'.$mail_color.'\">Specification</span> : <span>'.$enquiry_specification.'</span> \n </span> \n </td>\n </tr>\n <tr>\n <td>\n <p>We hope that this email helps you to progress your inquiry.<br>\n Thanks again for getting in touch.\n </p>\n </td>\n </tr>\n </table>\n </td>\n <td>\n <img src=\"'.BASE_URL.'/images/email/vacation.png\" style=\"width:175px; height:auto; margin-bottom: -10px;\" alt=\"\">\n </td>\n </tr>\n </table>\n ';\n\n $subject = \"Inquiry Acknowledgment\";\n\n global $model,$backoffice_email_id;\n\n $model->app_email_master($email_id, $content, $subject);\n $model->app_email_master($backoffice_email_id, $content, $subject);\n\n}", "title": "" }, { "docid": "67997c4b58be493ca6ea60218d666e42", "score": "0.62683105", "text": "function sending(){\n\t\t$this->pageTitle = \"تماس با مرجع الکترونیکی علوم مدیریت ایران\";\n\t\tif (!empty($this ->data)){\n\t\t\t$to = \"[email protected]\";\n\t\t\t//$to=\"[email protected]\";\n\t\t\t$subject = \"contact us\";\n\t\t\t$headers = \"From:\". $this->data['Page']['email'].\"\\r\\n\";\n $headers .= \"Content-type: text/html\\r\\n\"; \n\t\t\t$body ='<div dir=\"rtl\">نام و نام خانوادگی : '. $this->data['Page']['name'].\"<br> آدرس پست الکترونیکی:\".$this->data['Page']['email'].\" <br>رشته :\".$this->data['Page']['field'].\" <br>مدرک تحصیلی:\".$this->data['Page']['grade'].\"<br>پیام :\".$this->data['Page']['description'].\"<br></div>\";\n\t\t\tif (mail($to, $subject, $body, $headers)) {\n\t\t\t \t$this->Session->setFlash(\"<div class='success'>اطلاعات شما با موفقیت ارسال شد.<br /><br /><a href='http://emodir.com/pages/sending'>بازگشت به بخش تماس با ما</a><br /><br /><a href='http://emodir.com'>بازگشت به صفحه اصلی مرجع الکترونیکی علوم مدیریت ایران</a></div>\", 'default', array(), 'info');\n\t\t\t\t$this->viewPath = '';\n\t\t\t\t$this->render('errors');\n\t\t\t} else {\n\t\t\t\t$this->Session->setFlash(\"<div class='error'>متأسفانه در ارسال اطلاعات شما مشکلی پیش آمده است.<br /><a href='http://emodir.com/pages/sending'>ارسال مجدد مطلب</a></div>\", 'default', array(), 'error');\n\t\t\t\t$this->viewPath = '';\n\t\t\t\t$this->render('errors');\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "473aad88b3d762212f36ecc281ea0a24", "score": "0.6268201", "text": "function admin_email_send() {\n\t\t$this->data['Reminder']['company_id'] = $this->Auth->user('company_id');\n\t\t\n\t\t$time = $this->get_service_dates($this->data);\n\t\t\n\t\t$this->data['Reminder']['service_date_from'] = $time['from'];\n\t\t$this->data['Reminder']['service_date_to'] = $time['to'];;\n\t\t\n\t\t// create the reminder\n\t\tif(!$this->data['Reminder']['id']) {\n\t\t\t$this->Reminder->create($this->data);\n\t\t}\n\t\t\n\t\tif($this->data['Reminder']['technician_id'] == '') {\n\t\t\t$this->data['Reminder']['technician_id'] = 0;\n\t\t}\n\t\t\n\t\t// generate the image (file based)\n\t\t$image_name = $this->generate_image($this->data, 'FILE');\n\t\t\n\t\t// set the image before sending email\n\t\t$this->data['Reminder']['image_path'] = $image_name;\n\n\t\t// now do the email!\n\t\t$this->send_email($this->data);\n\t\t\n\t\t$this->data['Reminder']['sent'] = 1;\n\t\t$this->Reminder->save($this->data);\n\n\t\t// save cookie of last selected technician and theme\n $this->Cookie->write('tech_id', $this->data['Reminder']['technician_id'], false, '+4 weeks');\n\t\t$this->Cookie->write('theme', $this->data['Reminder']['theme'], false, '+4 weeks');\n\t\t\n\t\t$this->Session->setFlash('Your reminder has been sent!', 'default', array('class' => 'flash-success'));\n\t\t$this->redirect(array('action' => 'index'));\n\t}", "title": "" }, { "docid": "bf26e836c44c543e05138474c460fd47", "score": "0.6251496", "text": "function FormMail(){\n\n\t\t$this->loadModel('Post');\n\n\t\t$this->layout = 'front_home';\n\n\t\t$this->set($d);\n\n\t}", "title": "" }, { "docid": "c623bd884d7c06452a64a40092585252", "score": "0.6246293", "text": "private function sendEmails()\n {\n $adminBody = 'Hi,<br>A new comment was added to the following article:';\n $adminBody .= '<a href=\"http://'.$this->httpRequest->getBaseUrl().'/id_article/'.$this->viewVar['article']['id_article'].'\">'.$this->config->getModuleVar('article','title').'</a>';\n\n if($this->config->getModuleVar('article','default_comment_status') == 1)\n {\n $adminBody .= '<br><br>You have to validate new comments!';\n }\n\n $_tmp_error = array();\n $user_text_body = strip_tags($adminBody);\n\n $this->model->action( 'common', 'mailSendTo',\n array('charset' => $this->viewVar['charset'],\n 'bodyHtml' => & $adminBody,\n 'bodyText' => & $user_text_body,\n 'to' => array(array('email' => '[email protected]',\n 'name' => 'your name')),\n 'subject' => \"New Blog Entry\",\n 'fromEmail' => '[email protected]',\n 'error' => & $_tmp_error\n ));\n }", "title": "" }, { "docid": "933e14bb231b28157254387fdfcfac7b", "score": "0.62449455", "text": "public function send()\n {\n error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);\n\n $this->load->language('module/contactm');\n $json = array();\n\t\t$ajx_err = false;\n\n if ((utf8_strlen($this->request->post['name']) < 3) || (utf8_strlen($this->request->post['name']) > 32)) {\n $json['error'] = $this->language->get('error_name');\n $json['error_title'] = 'error_name';\n\t\t\t$this->respond($json);\n\t\t\treturn;\n }\n\n if (!filter_var($this->request->post['email'], FILTER_VALIDATE_EMAIL)) {\n $json['error'] = $this->language->get('error_email');\n $json['error_title'] = 'error_email';\n\t\t\t$this->respond($json);\n\t\t\treturn;\n }\n\n if ((utf8_strlen($this->request->post['enquiry']) < 10) || (utf8_strlen($this->request->post['enquiry']) > 3000)) {\n $json['error'] = $this->language->get('error_enquiry');\n $json['error_title'] = 'error_enquiry';\n\t\t\t$this->respond($json);\n\t\t\treturn;\n }\n\n /*\n $xhttprequested =\n isset($this->request->server['HTTP_X_REQUESTED_WITH'])\n && (strtolower($this->request->server['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest');\n\n $captcha = isset($this->request->get['route']) && $this->request->get['route']=='tool/captcha';\n */\n\n\n\t\t// Captcha\n\t\t/*\n\t\tif ($this->config->get($this->config->get('config_captcha') . '_status') && in_array('contact', (array)$this->config->get('config_captcha_page'))) {\n\t\t\t$captcha = $this->load->controller('captcha/' . $this->config->get('config_captcha') . '/validate');\n\n\t\t\tif ($captcha) {\n\t\t\t\t//$this->error['captcha'] = $captcha;\n\t\t\t\t$json['error'] = $this->language->get('error_captcha');\n $json['error_title'] = 'error_captcha';\n\t\t\t$this->respond($json);\n\t\t\texit();\n\n\t\t\t}\n\t\t}\n\t\t*/\n\n if (isset($this->request->post['captcha']) && ($this->request->server['HTTP_HOST'] != 'localhost')) {\n if (empty($this->session->data['captcha'])\n ||\n (strtolower($this->session->data['captcha']) != strtolower($this->request->post['captcha']))\n ) {\n $json['error'] = $this->language->get('error_captcha');\n $json['error_title'] = 'error_captcha';\n\t\t\t\t$this->respond($json);\n\t\t\t return;\n }\n }\n\n if (!isset($json['error'])) {\n $mail = new Mail();\n $mail->protocol = $this->config->get('config_mail_protocol');\n $mail->parameter = $this->config->get('config_mail_parameter');\n $mail->smtp_hostname = $this->config->get('config_mail_smtp_hostname');\n $mail->smtp_username = $this->config->get('config_mail_smtp_username');\n $mail->smtp_password = html_entity_decode($this->config->get('config_mail_smtp_password'), ENT_QUOTES, 'UTF-8');\n $mail->smtp_port = $this->config->get('config_mail_smtp_port');\n $mail->smtp_timeout = $this->config->get('config_mail_smtp_timeout');\n\n\t\t\t// //fixed by oppo webiprog.com 12.07.2018\n\t\t\t// please send the form from https://nl.bellfor.info/ to <[email protected]>\n\t\t\t$stunl = strpos($this->config->get('config_url'), 'nl.bellfor.info', 7);\n\t\t\tif($stunl) {\n\t\t\t$setTo = '[email protected]';\n\t\t\t}else {\n\t\t\t$setTo = $this->config->get('config_email');\n\t\t\t}\n\n\t\t\t$new_name = filter_var($this->request->post['name'], FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH);\n\n $mail->setTo($setTo);\n $mail->setFrom($setTo);\n $mail->setReplyTo($this->request->post['email']);\n $mail->setSender(html_entity_decode($new_name, ENT_QUOTES, 'UTF-8'));\n $mail->setSubject(html_entity_decode(sprintf($this->language->get('email_subject'), $new_name), ENT_QUOTES, 'UTF-8'));\n\n\t\t\t$text = $this->language->get('Name').': '.$new_name.PHP_EOL;\n\t\t\tif(!empty($this->request->post['phone']) ) {\n\t\t\t\t$text .= $this->language->get('entry_phone').': '.$this->request->post['phone'].PHP_EOL.'------------------\n\t\t\t\t'.PHP_EOL;\n\t\t\t}\n\t\t\t$text .= $this->request->post['enquiry'];\n $mail->setText($text);\n $mail->send();\n\n $json['success'] = $this->language->get('text_success');\n }\n\n $this->response->addHeader('Content-Type: application/json');\n $this->response->setOutput(json_encode($json));\n }", "title": "" }, { "docid": "b612ce6c27ed5c3c3d5a450c656590fa", "score": "0.6243103", "text": "public function contact(){\n\t\t$email = new Email();\n\t\t$email->from = 'NZ Hiking Group';\n\t\t$email->to = '[email protected]';\n\t\t$email->subject = 'NZ Hiking Group - Query';\n\t\t$email->message = \n\t\t\t'<h3>NZ HIKING GROUP QUERY</h3>\n\t\t\t<p>Name: '.$_POST['fname'].$_POST['lname'].'</p>\n\t\t\t<p>Email: '.$_POST['email'].'</p>\n\t\t\t<p>Message: '.$_POST['message'].'</p>';\n\n\t\t$email->send();\n\n\t\tif($email->success){\n\t\t\techo 'Email send successfully!';\n\t\t} else {\n\t\t\techo \"Error\";\n\t\t}\n\t\tURL::redirect('/');\n\t}", "title": "" }, { "docid": "8eb0ebc84fc273fb12bdb6e6d2acbb25", "score": "0.62401825", "text": "protected function sendForm()\n\t{\n\t\t$result = $this->pageGetter->sendRequest($this->getRequestPageUrl(), 'POST', $this->formFields, $this->getFormPageUrl(), false);\n\n\t\tif($result['Status'] == \"FAIL\"){\n\t\t\tself::log($result['StatusDetails'] . \"\\r\\n\" . $result['Response']);\n\t\t\treturn false;\n\t\t}\n/*\n\t\t\t\t$result = [\n\t\t\t\t\t'Response' => file_get_contents($this->formSenderSDKPath . '/response1.html')\n\t\t\t\t];\n*/\n\t\tif(!$this->isPageGood($result['Response'], '#>Reference number</td>#', 'Error Page: Didn`t find required phrase `Reference number`'))\n\t\t\treturn false;\n\n\t\t$this->resultPage = $result['Response'];\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "e4462c4b7fdb0f22fb796abd61f03386", "score": "0.62391794", "text": "public function send()\n {\n $this->sendMail();\n\n }", "title": "" }, { "docid": "66bc262092ac3f41a63833a0b527bda8", "score": "0.6230753", "text": "function Fromsendbymail($data){\r\r\n\r\r\n\t\t\t\t\t$mids =$data['groups']['emailids'];\r\r\n\t\t\t\t\t$expmids = explode(',',$mids);\r\r\n\t\t\t\t\t\r\r\n\t\t\t\t\t\t$gname = $data['groups']['hiddname'];\r\r\n\t\t\t\t\t\t\r\r\n\t\t\t\t\t\t$pdfname = $data['groups']['hiddpdfname'];\r\r\n\t\t\t\t\t\t$description = nl2br($data['groups']['description']);\r\r\n\t\t\t\t\t $httppath ='http://'.$_SERVER['HTTP_HOST'].'/freeformpdf/'.$pdfname;\r\r\n\t\t\t\t\t\t$to='';\r\r\n\t\t\t\t\t\t$messagecontent='';\r\r\n\t\t\t\t\t\t$subject='';\r\r\n\t\t\t\t\tfor($i=0;$i < count($expmids);$i++){\r\r\n\t\t\t\t\t\t//echo $i.'<br>';\r\r\n\t\r\r\n\t\t\t\t\t\t\t\t$messagecontent = \"Ad Book Form<br><br>\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\".SITENAME.\" sent you this adbook form on behalf of <strong>$gname</strong>. Here is the invitation from <strong>$gname:</strong><br>\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$description\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<br><br>\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href='$httppath'>Click here to get your adbook form </a><br><br>\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tOr copy and past the link below to your browser<br>\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$httppath\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\";\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$subject = \"Ad book Free Form - adbookonline\";\r\r\n\t\t\t \r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$from = SITE_EMAIL;\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$to = \"$expmids[$i]\";\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif($to){\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif($this->sendMailContent($to,$from,$subject,$messagecontent)){\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$ok = 'ok';\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}else{\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$ok = '';\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\r\n\t\t\t\t\t\t\r\r\n\t\t\t\t\t}\r\r\n\t\t\t\t\t//exit;\r\r\n\t\t\t\t\tif($ok=='ok'){\r\r\n\t\t\t\t\t\t\treturn 'send';\r\r\n\t\t\t\t\t}else{\r\r\n\t\t\t\t\t\t\treturn 'notsend';\r\r\n\t\t\t\t\t}\r\r\n\t\t\t\t\t\r\r\n\t\t\t\t\t\r\r\n\t\t\t\t\r\r\n\t\t\t\t\t\r\r\n\t\t}", "title": "" }, { "docid": "ffeed4380c8a4abd25a899f086685440", "score": "0.62300044", "text": "public function sendEmail()\n {\n (new EmailHelper() )->sendEmail($this->email, [], $this->type->name, 'contact-email', [ 'contact' => $this]);\n\n $toEmail = (new AppSetting())->getByAttribute('admin_email');\n\n (new EmailHelper() )->sendEmail($toEmail, [], $this->type->name, 'contact-email-admin', [ 'contact' => $this]);\n }", "title": "" }, { "docid": "e70af05bce10e0d02cf286764efdde0c", "score": "0.6214955", "text": "function sendmailtotempuser($postarray){\r\r\n\t\t//echo \"<pre>\";\r\r\n\t//\tprint_r($postarray); exit;\r\r\n\t\t\r\r\n\r\r\n\t\t\t$message = \" &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src='http://\".$_SERVER['HTTP_HOST'].\"/img/logo.gif' /><br/>\";\r\r\n\t\t\t$message.= \"Hello \". ucwords($postarray['groups']['group_name']).','.\"<br><br>\";\r\r\n\t\t\t$message .= \"<strong>You have send us request to get Free Form </strong><br/><br/>\";\r\r\n\t\t\t$message .= \"This message is a response to get Free Form from adbookonline<a href='\".$_SERVER['HTTP_HOST'].\"'> Ad book online.</a> <br/>\";\r\r\n\t\t\t\r\r\n\t\t\t$message .= \"Below are the detail you have entered:<br/><br/>\";\r\r\n\t\t\t$message .= \"Group Name : <b>\\\"\".$postarray['Freeform']['group_name'] . \"\\\"</b><br/>\";\r\r\n\t\t\t$message .= \"Event Name : <b>\\\"\".$postarray['Freeform']['eventname'] . \"\\\"</b><br/>\";\r\r\n\t\t\t$message .= \"Address : <b>\\\"\".$postarray['Freeform']['address'] . \"\\\"</b><br/>\";\r\r\n\t\t\t$message .= \"City : <b>\\\"\".$postarray['Freeform']['city'] . \"\\\"</b><br/>\";\r\r\n\t\t\t$message .= \"State : <b>\\\"\".$postarray['Freeform']['state'] . \"\\\"</b><br/>\";\r\r\n\t\t\t$message .= \"Zipcode : <b>\\\"\".$postarray['Freeform']['zipcode'] . \"\\\"</b><br/>\";\r\r\n\t\t\t$message .= \"Phone : <b>\\\"\".$postarray['Freeform']['phone'] . \"\\\"</b><br/>\";\r\r\n\t\t\tif($postarray['Freeform']['fax']){\r\r\n\t\t\t$message .= \"Fax : <b>\\\"\".$postarray['Freeform']['fax'] . \"\\\"</b><br/>\";\r\r\n\t\t\t}\r\r\n\t\t\t$message .= \"Email : <b>\\\"\".$postarray['Freeform']['email'] . \"\\\"</b><br/>\";\r\r\n\t\t\tif($postarray['Freeform']['groupnote']){\r\r\n\t\t\t$message .= \"Group Note : <b>\\\"\".$postarray['Freeform']['groupnote'] . \"\\\"</b><br/>\";\r\r\n\t\t\t}\r\r\n\t\t\t$message .= \"Fund Goal: <b>\\\"\".$postarray['Freeform']['fundgoal'] . \"\\\"</b><br/>\";\r\r\n\t\t\t$message .= \"Group pricing : <b>\\\"\".$postarray['Freeform']['grouppprice'] . \"\\\"</b><br/>\";\r\r\n\t\t\tif($postarray['Freeform']['gold']){\r\r\n\t\t\t$message .= \"Gold : <b>\\\"\".$postarray['Freeform']['gold'] . \"\\\"</b><br/>\";\r\r\n\t\t\t}\r\r\n\t\t\tif($postarray['Freeform']['silver']){\r\r\n\t\t\t$message .= \"Silver : <b>\\\"\".$postarray['Freeform']['silver'] . \"\\\"</b><br/>\";\r\r\n\t\t\t}\r\r\n\t\t\tif($postarray['Freeform']['paper']){\r\r\n\t\t\t$message .= \"Paper : <b>\\\"\".$postarray['Freeform']['paper'] . \"\\\"</b><br/>\";\r\r\n\t\t\t}\r\r\n\t\t\tif($postarray['Freeform']['half']){\r\r\n\t\t\t$message .= \"Half : <b>\\\"\".$postarray['Freeform']['half'] . \"\\\"</b><br/>\";\r\r\n\t\t\t}\r\r\n\t\t\tif($postarray['Freeform']['biz']){\r\r\n\t\t\t$message .= \"Business card Name : <b>\\\"\".$postarray['Freeform']['biz'] . \"\\\"</b><br/>\";\r\r\n\t\t\t}\r\r\n\t\t\tif($postarray['Freeform']['quarter']){\r\r\n\t\t\t$message .= \"Quarter area : <b>\\\"\".$postarray['Freeform']['quarter'] . \"\\\"</b><br/>\";\r\r\n\t\t\t}\r\r\n\t\t\tif($postarray['Freeform']['listfield']){\r\r\n\t\t\t$message .= \"List area : <b>\\\"\".$postarray['Freeform']['listfield'] . \"\\\"</b><br/>\";\r\r\n\t\t\t}\r\r\n\t\t\tif($postarray['Freeform']['messagefield']){\r\r\n\t\t\t$message .= \"Message area : <b>\\\"\".$postarray['Freeform']['messagefield'] . \"\\\"</b><br/>\";\r\r\n\t\t\t}\r\r\n\t\t\tif($postarray['Freeform']['anonymousamount']){\r\r\n\t\t\t$message .= \"Anonymous Amount Name : <b>\\\"\".$postarray['Freeform']['anonymousamount'] . \"\\\"</b><br/>\";\r\r\n\t\t\t}\r\r\n\t\t\t\r\r\n\t\t\t\r\r\n\t\t\t$message .=\"<br/><br/>The Terms The User Aggreed to by Submitting this Form: Notice & Agreement: <br/>\r\r\n\t\t\t\t\t\tBy filling out this form and proceeding to view our demo, you understand and <br/>\r\r\n\t\t\t\t\t\tagree to be bound by this agreement that the information contained is confidential<br/>\r\r\n\t\t\t\t\t\tand proprietary. You will not disclose or use this information without the expressed<br/>\r\r\n\t\t\t\t\t\t written permission You are allowed to view our site demo in order to consider a business<br/>\r\r\n\t\t\t\t\t\t opportunity with us and that this opportunity is good and valuable consideration in acceptance <br/>\r\r\n\t\t\t\t\t\t with the terms of this confidentiality agreement. You also represent that the information in this<br/>\r\r\n\t\t\t\t\t\t form is materially true and correct. By submitting this form you indicate your acceptance.<br/>\r\r\n\t\t\t\t\t\t (c) 2000 - 2008 All Rights Reserved!\";\r\r\n\t\t\t\r\r\n\t\t\t$message .= \"<br/><br/><br/>Sincerely,<br/> \";\r\r\n$message .= \"The Adbook online team <br>\";\r\r\n$message .= \"<a href='\".$_SERVER['HTTP_HOST'].\"'>www.\".SITENAME.\"</a> <br/>\";\r\r\n$message .= \"<br/><br/>\";\r\r\n\r\r\n$message .=\"<br /><br/>\";\r\r\n\r\r\n\r\r\n\t\t\t$message .='</body></html>';\r\r\n\t\t\t\r\r\n\t\t\t\r\r\n\t\t\t\r\r\n\t\t\t$subject = \"Get Free Form - adbookonline\";\r\r\n\t\t\t \r\r\n\t\t\t$from = SITE_EMAIL;\r\r\n\t\t\t$to = $postarray['Freeform']['email'];\r\r\n\t\t\t\r\r\n\t\t\t$headers = \"From: \" .$from . \"\\r\\n\";\r\r\n\t\t\t$headers .= \"Reply-To: \". $from . \"\\r\\n\";\r\r\n\t\t\t$headers .= 'MIME-Version: 1.0' . \"\\r\\n\";\r\r\n\t\t\t$headers .= 'Content-type: text/html; charset=iso-8859-1' . \"\\r\\n\";\r\r\n\t\t\t\r\r\n\t\t\t$ifsend = $this->sendMailContent($to,$from,$subject,$message);\t\r\r\n\r\r\n\t\t\t//$ifsend = $this->sendMailContent($to,$from,$subject,$message);\r\r\n\t\t\t \r\r\n\t\t\tif($ifsend == true){\r\r\n\t\t\t return true;\r\r\n\t\t\t}else{\r\r\n\t\t\t\r\r\n\t\t\t return false;\r\r\n\t\t\t}\r\r\n\t\t}", "title": "" }, { "docid": "a3213a48b7c5780313560b2855293b83", "score": "0.621462", "text": "private function _send_feedback ( &$data )\n {\n $mail = new \\Ieru\\Ieruapis\\Organic\\PHPMailer();\n\n $mail->From = '[email protected]';\n $mail->FromName = 'Organic.Edunet';\n $mail->AddAddress('[email protected]');\n $mail->AddAddress('[email protected]');\n $mail->AddAddress('[email protected]');\n $mail->AddReplyTo('[email protected]', 'Information');\n\n $mail->WordWrap = 50; // Set word wrap to 50 characters\n $mail->IsHTML(true); // Set email format to HTML\n\n $mail->Subject = '[Organic.Edunet] [Feedback] '.$data['form-feedback-subject'];\n $mail->Body = '<p>New feedback has been received from an user: '.$data['form-feedback-email'].'</p><p>------------------------</p><div>'.nl2br( $data['form-feedback-body'], true ).'</div>';\n $mail->AltBody = \"New feedback has been received from an user, as follows:\\n\".$data['form-feedback-body'];\n }", "title": "" }, { "docid": "9bcebb0c1bad13554d096c98e764c0c6", "score": "0.62094486", "text": "public static function on_mailer() {\n\t\t\t\t\n\t\t// Get Data\n\t\t$config = Registry::get(\"mail.forms\");\n\t\t$vars = Request::post(\"mail\",\"array\");\n\t\t$template = Request::post(\"form\");\n\t\t$token = Request::post(\"token\");\n\t\t\n\t\t// Check Form\n\t\tif(!array_key_exists($template,$config)) {\n\t\t\tdie(\"Hanya Config: define mail\");\n\t\t}\n\n\t\t// Check Protection\n\t\tswitch($config[$template][\"protection\"]) {\n\t\t\tcase \"captcha\": {\n\t\t\t\tif(!Recaptcha::check($vars)) {\n\t\t\t\t\tMemory::raise(\"Form validation error occured\");\n\t\t\t\t\tURL::redirect_to_referer();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"javascript\": {\n\t\t\t\tif(Memory::get(\"token\").\"Hanya\" != $token) {\n\t\t\t\t\tMemory::raise(\"Form validation error occured\");\n\t\t\t\t\tURL::redirect_to_referer();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"token\": {\n\t\t\t\tif(Memory::get(\"token\") != $token) {\n\t\t\t\t\tMemory::raise(\"Form validation error occured\");\n\t\t\t\t\tURL::redirect_to_referer();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault: case \"none\": {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Convert LineFeeds\n\t\tforeach($vars as $var => $value) {\n\t\t\t$vars[$var] = nl2br($value);\n\t\t}\n\t\t\n\t\t// Get Config\n\t\t$reciever = $config[$template][\"reciever\"];\n\t\t$subject = $config[$template][\"subject\"];\n\t\t\n\t\t// Get Template\n\t\t$message = Disk::read_file(\"elements/mails/\".$template.\".html\");\n\t\t$message = Render::process_variables(\"mail\",$vars,$message);\n\t\t\n\t\t// Set Session\n\t\tMemory::set(\"mail.sent\",true);\n\t\t\n\t\t// Send Mail & Redirect\n\t\tMail::send($reciever,$subject,$message);\n\t\tURL::redirect_to_referer();\n\t\texit;\n\t}", "title": "" }, { "docid": "5c68f9f10ddccc0445aa9263eae2f426", "score": "0.6201701", "text": "public function actionSendSupportRequest()\n\t{\n\t\t$this->requirePostRequest();\n\t\t$this->requireAjaxRequest();\n\n\t\t$message = blx()->request->getRequiredPost('message');\n\n\t\trequire_once blx()->path->getLibPath().'HelpSpotAPI.php';\n\t\t$hsapi = new \\HelpSpotAPI(array('helpSpotApiURL' => \"https://support.blockscms.com/api/index.php\"));\n\n\t\t$user = blx()->userSession->getUser();\n\n\t\t$result = $hsapi->requestCreate(array(\n\t\t\t'sFirstName' => $user->getFriendlyName(),\n\t\t\t'sLastName' => ($user->lastName ? $user->lastName : 'Doe'),\n\t\t\t'sEmail' => $user->email,\n\t\t\t'tNote' => $message\n\t\t));\n\n\t\tif ($result)\n\t\t{\n\t\t\t$this->returnJson(array('success' => true));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->returnErrorJson($hsapi->errors);\n\t\t}\n\t}", "title": "" }, { "docid": "8845663c3253d7c3371af44b3ab38659", "score": "0.6192068", "text": "public function send()\n {\n $html = $this->generateForm();\n\n $html .= '<script>\n document.getElementById(\"borica3dsRedirectForm\").submit()\n </script>';\n\n die($html);\n }", "title": "" }, { "docid": "4bb2e20aca9e5cf116b27436d5009cc2", "score": "0.6188701", "text": "public function mails() {\n if (isset($_POST['mails-submit'])) {\n\n\n $this->view->setAlert(array('type' => 'alert e-sign-alert esig-updated', 'title' => '', 'message' => __('<strong>Well done Sir</strong> : Your e-signature settings have been updated.', 'esig')));\n\n do_action('esig_mails_settings_save');\n }\n\n $class = (isset($_GET['page']) && $_GET['page'] == 'esign-mails-general') ? 'mails_current' : '';\n\n $template_data = array(\n \"post_action\" => 'admin.php?page=esign-mails-general',\n \"mails_tab_class\" => 'nav-tab-active',\n \"Licenses\" => $this->model->checking_extension(),\n \"link_active\" => $class,\n );\n\n $template_filter = apply_filters('esig-mails-form-data', $template_data, array());\n $template_data = array_merge($template_data, $template_filter);\n\n // Hook to add more row actions\n\n\n $esig_mails_more_content = apply_filters('esig_admin_more_mails_contents', '');\n\n do_action('esig_mails_content_loaded');\n\n $template_data[\"mails_extra_content\"] = $esig_mails_more_content;\n $template_data[\"message\"] = $this->view->renderAlerts();\n\n $this->fetchView(\"mails\", $template_data);\n }", "title": "" }, { "docid": "fa4e5e042b6593e8a02470d67b13d4df", "score": "0.6174197", "text": "function ccdev_send_form_submit($form, &$form_state) {\n $entity = $form_state['values']['basic_entity'];\n $entity->recip_name = $form_state['values']['recip_name'];\n $entity->recip_email = $form_state['values']['recip_email'];\n $entity->recip_msg = $form_state['values']['recip_msg'];\n $entity->coin_code = $form_state['values']['coin_code'];\n $entity->coin_amt = $form_state['values']['coin_amt'];\n field_attach_submit('ccdev_send', $entity, $form, $form_state);\n $entity = ccdev_send_save($entity);\n $form_state['redirect'] = 'ccSend/basic/' . $entity->basic_id; \n}", "title": "" }, { "docid": "8a7638d11cd3bf56b5142919415c8fc5", "score": "0.616037", "text": "private function display_form() {\n $email_label = stripslashes( Sendgrid_Tools::get_mc_email_label() );\n if ( false == $email_label ) {\n $email_label = Sendgrid_Settings::DEFAULT_EMAIL_LABEL;\n }\n\n $first_name_label = stripslashes( Sendgrid_Tools::get_mc_first_name_label() );\n if ( false == $first_name_label ) {\n $first_name_label = Sendgrid_Settings::DEFAULT_FIRST_NAME_LABEL;\n }\n\n $last_name_label = stripslashes( Sendgrid_Tools::get_mc_last_name_label() );\n if ( false == $last_name_label ) {\n $last_name_label = Sendgrid_Settings::DEFAULT_LAST_NAME_LABEL;\n }\n\n $subscribe_label = stripslashes( Sendgrid_Tools::get_mc_subscribe_label() );\n if ( false == $subscribe_label ) {\n $subscribe_label = Sendgrid_Settings::DEFAULT_SUBSCRIBE_LABEL;\n }\n\n $input_padding = \"padding: \";\n $input_padding .= Sendgrid_Tools::get_mc_input_padding_by_position( 'top' ) . 'px ';\n $input_padding .= Sendgrid_Tools::get_mc_input_padding_by_position( 'right' ) . 'px ';\n $input_padding .= Sendgrid_Tools::get_mc_input_padding_by_position( 'bottom' ) . 'px ';\n $input_padding .= Sendgrid_Tools::get_mc_input_padding_by_position( 'left' ) . 'px;';\n\n $button_padding = \"margin: \";\n $button_padding .= Sendgrid_Tools::get_mc_button_padding_by_position( 'top' ) . 'px ';\n $button_padding .= Sendgrid_Tools::get_mc_button_padding_by_position( 'right' ) . 'px ';\n $button_padding .= Sendgrid_Tools::get_mc_button_padding_by_position( 'bottom' ) . 'px ';\n $button_padding .= Sendgrid_Tools::get_mc_button_padding_by_position( 'left' ) . 'px;';\n\n $require_fname_lname = '';\n\n echo '<form method=\"post\" id=\"sendgrid_mc_email_form\" class=\"mc_email_form\" action=\"#sendgrid_mc_email_subscribe\" style=\"padding-top: 10px;\">';\n\n if ( 'true' == Sendgrid_Tools::get_mc_opt_incl_fname_lname() ) {\n if ( 'true' == Sendgrid_Tools::get_mc_opt_req_fname_lname() ) {\n $require_fname_lname = \"required\";\n $first_name_label .= \"<sup>*</sup>\";\n $last_name_label .= \"<sup>*</sup>\";\n }\n\n echo '<div class=\"sendgrid_mc_fields\" style=\"' . $input_padding . '\">';\n echo ' <div class=\"sendgrid_mc_label_div\">';\n echo ' <label for=\"sendgrid_mc_first_name\" class=\"sendgrid_mc_label sendgrid_mc_label_first_name\">' . $first_name_label . ' : </label>';\n echo ' </div>';\n echo ' <div class=\"sendgrid_mc_input_div\">';\n echo ' <input class=\"sendgrid_mc_input sendgrid_mc_input_first_name\" id=\"sendgrid_mc_first_name\" name=\"sendgrid_mc_first_name\" type=\"text\" value=\"\"' . $require_fname_lname . ' />';\n echo ' </div>';\n echo '</div>';\n echo '<div class=\"sendgrid_mc_fields\" style=\"' . $input_padding . '\">';\n echo ' <div class=\"sendgrid_mc_label_div\">';\n echo ' <label for=\"sendgrid_mc_last_name\" class=\"sendgrid_mc_label sendgrid_mc_label_last_name\">' . $last_name_label . ' : </label>';\n echo ' </div>';\n echo ' <div class=\"sendgrid_mc_input_div\">';\n echo ' <input class=\"sendgrid_mc_input sendgrid_mc_input_last_name\" id=\"sendgrid_mc_last_name\" name=\"sendgrid_mc_last_name\" type=\"text\" value=\"\" ' . $require_fname_lname . '/>';\n echo ' </div>';\n echo '</div>';\n }\n\n echo '<div class=\"sendgrid_mc_fields\" style=\"' . $input_padding . '\">';\n echo ' <div class=\"sendgrid_mc_label_div\">';\n echo ' <label for=\"sendgrid_mc_email\" class=\"sendgrid_mc_label sendgrid_mc_label_email\">' . $email_label . '<sup>*</sup> :</label>';\n echo ' </div>';\n echo ' <div class=\"sendgrid_mc_input_div\">';\n echo ' <input class=\"sendgrid_mc_input sendgrid_mc_input_email\" id=\"sendgrid_mc_email\" name=\"sendgrid_mc_email\" type=\"text\" value=\"\" required/>';\n echo ' </div>';\n echo '</div>';\n\n echo '<div class=\"sendgrid_mc_button_div\">';\n echo ' <input style=\"' . $button_padding . '\" class=\"sendgrid_mc_button\" type=\"submit\" id=\"sendgrid_mc_email_submit\" value=\"' . $subscribe_label . '\" />';\n echo '</div>';\n echo '</form>';\n }", "title": "" }, { "docid": "0f233795ac370617aac93b4e447ca025", "score": "0.61571574", "text": "function process_contactform(){\n$data=array();\n$data['name']=safe_mail($_POST['sfsf_name']);\n$data['email']=safe_mail($_POST['jflsjls_email']);\n$data['website']=safe_mail($_POST['kipmp_website']);\n$data['comments']=safe_mail($_POST['comments_sfs']);\nsend_mail($data);\n}", "title": "" }, { "docid": "83c8ce5c57ea82ec79447a19417f6b40", "score": "0.61428094", "text": "public function sendAction()\r\n {\r\n $contact = new Model_DbTable_Contact();\r\n $page = $this->_getParam('page');\r\n $contactId = $this->_getParam('id');\r\n\t\t$select = $contact->getAllById($contactId);\r\n $message = $contact->getReplyMessage($select[0]['name'], $select[0]['reply']);\r\n\r\n $fromName = 'Visit Indonesia';\r\n $fromEmail = '[email protected]';\r\n $subject = $select[0]['subject '] .'replied message';\r\n\r\n $sendEmail = $this->_sendEmail($message,\r\n $fromName, $fromEmail, $subject, $select[0]['email']);\r\n \r\n\t\t$this->_flash->addMessage(\"<p class='msg-ok'>A reply to \".$select[0]['name'].\" has been send</p>\");\r\n \r\n\t\tif($sendEmail)\r\n {\r\n $this->_flash->addMessage(\"<p class='msg-ok'>A reply to \".$select[0]['name'].\" has been send</p>\");\r\n $arrin = array(\r\n 'status' => '2'\r\n );\r\n $contact->updateContact($arrin,$contactId);\r\n $this->loggingaction('contact', 'edit', $contactId);\r\n }else\r\n {\r\n $this->_flash->addMessage(\"<p class='msg-error>'A reply to \".$select[0]['name'].\" failed to send</p>\");\r\n }\r\n \r\n\t\t$this->_redirect($page);\r\n }", "title": "" }, { "docid": "9fa344ad7c95725402a1c4bc1e0846c0", "score": "0.61412865", "text": "public function sendEmail()\n {\n return Yii::$app->mailer->compose()\n ->setTo($this->email)\n ->setFrom([Yii::$app->params['adminEmail'] => \"Support\"])\n ->setSubject($this->subject)\n ->setTextBody($this->message)\n ->send();\n }", "title": "" }, { "docid": "638012c7c194620d63594434937327c5", "score": "0.6140212", "text": "public function actionSubmit()\n {\n \t$rq=Yii::$app->request;\n \t$id = $rq->post('id');\n \t$step=$rq->post('step');\n \t\n \tif ($step=='info'){\n \t\t$model = $this->findModel($id);\n \t\t$info=CommonFun::ObjectToArray($model);\n \t\tif (empty($info)){\n \t\t\techo json_encode(['msg'=>'记录不存在,请重试!','info'=>$info]);\n \t\t}else{\n \t\t\techo json_encode(['msg'=>'','info'=>$info]);\n \t\t}\n \t\tdie;\n \t}\n \n \t// 提审\n $info = $this->findModel($id);\n \n $data['attach']=$info->attach;\n $data['title']=$info->title;\n $data['content']=$info->content;\n $data['record_user']=Yii::$app->user->identity->uname;\n \n $tmp=$rq->post('GameMailSend');\n unset($tmp['id']);\n \n $data=array_merge($data,$tmp);\n \n $model = new GameMailSend();\n if ($model->load(['game-mail-send'=>$data],'game-mail-send')) {\n \t\n \tif($model->validate() == true && $model->save()){\n \t\t$msg = array('errno'=>0, 'msg'=>'提审成功');\n \t\techo json_encode($msg);\n \t}\n \telse{\n \t\t$msg = array('errno'=>2, 'data'=>$model->getErrors());\n \t\techo json_encode($msg);\n \t}\n } else {\n \t$msg = array('errno'=>2, 'msg'=>'数据出错');\n \techo json_encode($msg);\n }\n }", "title": "" }, { "docid": "f207f25563393181a46cd73d6f68f45f", "score": "0.61384654", "text": "public function processEnquiryForm() {\n $enquiryModel = new Enquiry();\n\n // Test the DB connection\n //\n // Note - whilst this test\n // uses an echo statement to\n // output the results of this\n // test, in production code\n // you should *never* render\n // any HTML in a controller,\n // this is the job of a view\n $test = $enquiryModel->testConnection();\n echo('DB Connection test successfuly - ' . $test->num_rows . ' rows returned<br />');\n\n // Get the email recipients\n $recipients = $GLOBALS['email'];\n var_dump($recipients);\n }", "title": "" }, { "docid": "4fb5485f3aa8d0205fbaa0b4a22908a6", "score": "0.6131776", "text": "function sendEmailToOffice($studentInfo, $selectedInfo){\n\t\t$mail = new PHPMailer;\n\t\t$comment = $_SESSION[\"comments\"];\n\t\t$changeMajor = $_SESSION[\"changeMajor\"];\n\t\t$mail->isSMTP(); // Set mailer to use SMTP\n \t$mail->SMTPDebug = mailDebugLevel;\n \t \t$mail->Host = mailHost;\n\t\t$mail->SMTPAuth = true; // Enable SMTP authentication\n\t\t$mail->Username = mailUsername;\n\t\t$mail->Password = mailPassword;\n\t\t$mail->SMTPSecure = mailSMTPSecure;\n\t\t$mail->Port = mailPort;\n\t\t$mail->setFrom(mailUsername,\"KSI Preregistration\");\n\t\t$mail->addAddress(mailRecipient);\n\t\t$mail->isHTML(true); // Set email format to HTML\n\t\t$mail->Subject = 'New pre-registration form submitted';\n\t\t$mailBody =\t$studentInfo.$selectedInfo;\n\t\t$mail->Body = $mailBody;\n \t$mail->AltBody = $mailBody;\n \treturn ($mail->Send());\t\n\t}", "title": "" }, { "docid": "1803bdff225a02ff1fdbd576fc5de638", "score": "0.61258686", "text": "public function displayForm() {\n\t\t\t$this->displayAlert(); ?>\n\t\t\t<!-- form starts here -->\n\t\t\t<form action=\"<?php echo $SERVER['PHP_SELF']; ?>#contact\" method=\"post\">\n\t\t\t\t<fieldset>\n\t\t\t\t\t<span id=\"stamp\"><?php echo date(\"n j Y\"); ?></span> \n\t\t\t\t\t<legend>Freelancer Post</legend>\n\t\t\t\t\t<div class=\"left\">\n\t\t\t\t\t\t<label for=\"msg\"<?php $this->displayError('msg'); ?>>Send me a message!</label>\n\t\t\t\t\t\t<textarea id=\"msg\" name=\"msg\"><?php echo $this->data['msg']; ?></textarea>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"right\">\n\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t<li><label for=\"name\"<?php $this->displayError('name'); ?>>Your name:</label><input type=\"text\" id=\"name\" name=\"name\" value=\"<?php echo $this->data['name']; ?>\"></li>\n\t\t\t\t\t\t\t<li><label for=\"email\"<?php $this->displayError('email'); ?>>Your email address:</label><input type=\"email\" id=\"email\" name=\"email\" value=\"<?php echo $this->data['email']; ?>\"></li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t\t<input type=\"submit\" id=\"submit\" name=\"submit\" value=\"Send Email\">\n\t\t\t\t</fieldset>\n\t\t\t</form> <?\n\t\t}", "title": "" }, { "docid": "b656c14b1e7f43d9db4fc956f029cd4f", "score": "0.61183035", "text": "public function sendEmail()\n {\n // check for non_empty email-field rather than unlocked user?\n if ($this['Residents']['unlocked'] == true)\n {\n\n\n // compose the message\n $messageBody = get_partial('global/billingMail', array('firstName' => $this['Residents']['first_name'],\n 'start' => $this['billingperiod_start'],\n 'end' => $this['billingperiod_end'],\n 'billId' => $this['id'],\n 'amount' => $this['amount'],\n 'accountNumber' => $this['Residents']['account_number'],\n 'bankNumber' => $this['Residents']['bank_number'],\n 'itemizedBill' => $this->getItemizedBill()));\n $message = Swift_Message::newInstance()\n ->setFrom(sfConfig::get('hekphoneFromEmailAdress'))\n ->setTo($this['Residents']['email'])\n ->setSubject('[HEKphone] Deine Rechnung vom ' . $this['date'])\n ->setBody($messageBody);\n\n return sfContext::getInstance()->getMailer()->send($message);\n }\n }", "title": "" }, { "docid": "ab7e8987e52ebfd46e12448ab0d8bcf8", "score": "0.61073", "text": "public function SendContactForm()\n\t\t{\n\t\t\t// If the pageid or captcha is not set then just show the page and exit\n\t\t\tif (!isset($_POST['page_id']) || !isset($_POST['captcha'])) {\n\t\t\t\t$this->ShowPage();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Load the captcha class\n\t\t\t$GLOBALS['ISC_CLASS_CAPTCHA'] = GetClass('ISC_CAPTCHA');\n\n\t\t\t// Load the form variables\n\t\t\t$page_id = (int)$_POST['page_id'];\n\t\t\t$this->_SetPageData($page_id);\n\n\t\t\t$captcha = $_POST['captcha'];\n\n\t\t\tif(GetConfig('CaptchaEnabled') == 0) {\n\t\t\t\t$captcha_check = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif(isc_strtolower($captcha) == isc_strtolower($GLOBALS['ISC_CLASS_CAPTCHA']->LoadSecret())) {\n\t\t\t\t\t// Captcha validation succeeded\n\t\t\t\t\t$captcha_check = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// Captcha validation failed\n\t\t\t\t\t$captcha_check = false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif($captcha_check) {\n\t\t\t\t// Valid captcha, let's send the form. The template used for the contents of the\n\t\t\t\t// email is page_contact_email.html\n\t\t\t\t$from = @$_POST['contact_fullname'];\n\t\t\t\t$GLOBALS['PageTitle'] = $this->_pagetitle;\n\t\t\t\t$GLOBALS['FormFieldList'] = \"\";\n\n\t\t\t\t$emailTemplate = FetchEmailTemplateParser();\n\n\t\t\t\t// Which fields should we include in the form?\n\t\t\t\t$fields = $this->_pagerow['pagecontactfields'];\n\n\t\t\t\tif(is_numeric(isc_strpos($fields, \"fullname\"))) {\n\t\t\t\t\t$GLOBALS['FormField'] = GetLang('ContactName');\n\t\t\t\t\t$GLOBALS['FormValue'] = isc_html_escape($_POST['contact_fullname']);\n\t\t\t\t\t$GLOBALS['FormFieldList'] .= $emailTemplate->GetSnippet(\"ContactFormField\");\n\t\t\t\t}\n\n\t\t\t\t$GLOBALS['FormField'] = GetLang('ContactEmail');\n\t\t\t\t$GLOBALS['FormValue'] = isc_html_escape($_POST['contact_email']);\n\t\t\t\t$GLOBALS['FormFieldList'] .= $emailTemplate->GetSnippet(\"ContactFormField\");\n\n\t\t\t\tif(is_numeric(isc_strpos($fields, \"companyname\"))) {\n\t\t\t\t\t$GLOBALS['FormField'] = GetLang('ContactCompanyName');\n\t\t\t\t\t$GLOBALS['FormValue'] = isc_html_escape($_POST['contact_companyname']);\n\t\t\t\t\t$GLOBALS['FormFieldList'] .= $emailTemplate->GetSnippet(\"ContactFormField\");\n\t\t\t\t}\n\n\t\t\t\tif(is_numeric(isc_strpos($fields, \"phone\"))) {\n\t\t\t\t\t$GLOBALS['FormField'] = GetLang('ContactPhone');\n\t\t\t\t\t$GLOBALS['FormValue'] = isc_html_escape($_POST['contact_phone']);\n\t\t\t\t\t$GLOBALS['FormFieldList'] .= $emailTemplate->GetSnippet(\"ContactFormField\");\n\t\t\t\t}\n\n\t\t\t\tif(is_numeric(isc_strpos($fields, \"orderno\"))) {\n\t\t\t\t\t$GLOBALS['FormField'] = GetLang('ContactOrderNo');\n\t\t\t\t\t$GLOBALS['FormValue'] = isc_html_escape($_POST['contact_orderno']);\n\t\t\t\t\t$GLOBALS['FormFieldList'] .= $emailTemplate->GetSnippet(\"ContactFormField\");\n\t\t\t\t}\n\n\t\t\t\tif(is_numeric(isc_strpos($fields, \"rma\"))) {\n\t\t\t\t\t$GLOBALS['FormField'] = GetLang('ContactRMANo');\n\t\t\t\t\t$GLOBALS['FormValue'] = isc_html_escape($_POST['contact_rma']);\n\t\t\t\t\t$GLOBALS['FormFieldList'] .= $emailTemplate->GetSnippet(\"ContactFormField\");\n\t\t\t\t}\n\n\t\t\t\t$GLOBALS['Question'] = nl2br(isc_html_escape($_POST['contact_question']));\n\n\t\t\t\t$GLOBALS['ISC_LANG']['ContactPageFormSubmitted'] = sprintf(GetLang('ContactPageFormSubmitted'), $GLOBALS['PageTitle']);\n\n\t\t\t\t$emailTemplate->SetTemplate(\"page_contact_email\");\n\t\t\t\t$message = $emailTemplate->ParseTemplate(true);\n\n\t\t\t\t// Send the email\n\t\t\t\trequire_once(ISC_BASE_PATH . \"/lib/email.php\");\n\t\t\t\t$obj_email = GetEmailClass();\n\t\t\t\t$obj_email->Set('CharSet', GetConfig('CharacterSet'));\n\t\t\t\t$obj_email->From($_POST['contact_email'], $from);\n\t\t\t\t$obj_email->ReplyTo = $_POST['contact_email'];\n\t\t\t\t$obj_email->Set(\"Subject\", GetLang('ContactPageFormSubmitted'));\n\t\t\t\t$obj_email->AddBody(\"html\", $message);\n\t\t\t\t$obj_email->AddRecipient($this->_pagerow['pageemail'], \"\", \"h\");\n\t\t\t\t$email_result = $obj_email->Send();\n\n\t\t\t\t// If the email was sent ok, show a confirmation message\n\t\t\t\t$GLOBALS['MessageTitle'] = $GLOBALS['PageTitle'];\n\n\t\t\t\tif($email_result['success']) {\n\t\t\t\t\t$GLOBALS['MessageIcon'] = \"IcoInfo\";\n\t\t\t\t\t$GLOBALS['MessageText'] = sprintf(GetLang('PageFormSent'), $GLOBALS['ShopPath']);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// Email error\n\t\t\t\t\t$GLOBALS['MessageIcon'] = \"IcoError\";\n\t\t\t\t\t$GLOBALS['MessageText'] = GetLang('PageFormNotSent');\n\t\t\t\t}\n\n\t\t\t\t$GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate(\"message\");\n\t\t\t\t$GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate();\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Bad captcha, take them back to the form\n\t\t\t\t$this->ShowPage();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "6a6481ac5e34c9a31d5a0420342c97f0", "score": "0.61026686", "text": "function submit_message() {\n\n\t\tif ( !empty($_POST['ais_contact_id']) ) :\n\n\t\t\t$name \t\t= $_POST['name'];\n\t\t\t$email \t\t= $_POST['email'];\n\t\t\t$message \t= $_POST['message'];\n\n\t\t\trequire_once get_template_directory() . '/inc/modules/ais_contact/libs/PHPMailer/PHPMailerAutoload.php';\n\n\t\t\t$mail = new PHPMailer;\n\n\t\t\t$mail->IsSMTP();\n\t\t\t$mail->Host \t\t= 'smtp.mandrillapp.com';\n\t\t\t$mail->Port \t\t= 587;\n\t\t\t$mail->SMTPAuth \t= true;\n\t\t\t$mail->Username \t= get_option( 'ais_contact_mandrill_username' );\n\t\t\t$mail->Password \t= get_option( 'ais_contact_mandrill_key' );\n\t\t\t$mail->SMTPSecure \t= 'tls';\n\n\t\t\t$mail->From \t\t= $email;\n\t\t\t$mail->FromName \t= $name;\n\t\t\t$mail->AddAddress( get_option('ais_contact_email_to'), get_option('ais_contact_name_to'));\n\n\t\t\t$mail->IsHTML(true); // Set email format to HTML\n\n\t\t\t$mail->Subject \t= get_option( 'ais_contact_subject' );\n\t\t\t$mail->Body \t= $message;\n\n\t\t \t$notification \t= 'success';\n\t\t\tif ( !$mail->Send() ) {\n\t\t\t $notification \t= 'error';\n\t\t\t}\n\n\t\t\theader( 'Location: ' . get_home_url() . 'contact?status=' . $notification );\n\n\t\tendif;\n\n\t}", "title": "" }, { "docid": "86b228ea9997f64696b200a3afa0ffaa", "score": "0.6090758", "text": "function sendEmail()\n\t{\n JRequest::checkToken() or jexit('Invalid Token');\n\n $post = JRequest::get('post');\n\t\t\n\t\t$this->addModelPath (JPATH_COMPONENT_ADMINISTRATOR . DS . 'models');\n\t\t$model = $this->getModel('location');\n\t\t$location = $model->getData();\n\n\t\t$contact_name = $post['contact_name'];\n\t\t$contact_email = $post['contact_email'];\n\t\t$contact_message = $post['contact_message'];\n\t\tif($contact_name == null || $contact_message == null){\n\t\t\techo JText::_('Please enter a name and message to send.');\n\t\t\treturn false;\n\t\t}\n\t\telse{\n\t\t\tif(false){ return false; }//Captacha check goes here\n\t\t\telse\n\t\t\t{\n\t\t\t\tJUtility::sendMail($contact_email, $contact_name, $location->email, 'Contact Message for: '.$location->name, $contact_message, 0, null, null, null, $contact_email, $contact_name);\n\t\t\t\techo JText::_('Message Sent');\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "c3fd020b7cc46606dfbc35369b5e509a", "score": "0.6088664", "text": "function send_enquiry_coverted_mail($enquiry_id)\n{\n global $app_name,$app_email_id;\n global $mail_em_style, $mail_em_style1, $mail_font_family, $mail_strong_style, $mail_color;\n\n $sq_enquiry_details = mysql_fetch_assoc(mysql_query(\"select * from enquiry_master where enquiry_id='$enquiry_id'\"));\n $Cust_name = $sq_enquiry_details['name'];\n $enquiry_type = $sq_enquiry_details['enquiry_type'];\n $assigned_emp_id = $sq_enquiry_details['assigned_emp_id'];\n\n $sq_ass_emp = mysql_fetch_assoc(mysql_query(\"select * from emp_master where emp_id='$assigned_emp_id'\"));\n $emp_name = $sq_ass_emp['first_name'].' '.$sq_ass_emp['last_name'];\n\n $content = '\n <table style=\"padding:0 30px\">\n <tr>\n <td colspan=\"2\">\n <p>Hello '.$app_name.',</p> \n <p>The new lead converted successfully!</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"width:100%\">\n <tr><td><strong>Please Find below Enquiry details:-</strong></td></tr>\n <tr>\n <td>\n <span style=\"padding:5px 0; border-bottom:1px dotted #ccc; float: left\">\n <span style=\"color:'.$mail_color.'\">Enquiry No</span> : <span>'.$enquiry_id.'</span>\n </span> \n </td>\n </tr>\n <tr>\n <td>\n <span style=\"padding:5px 0; border-bottom:1px dotted #ccc; float: left\">\n <span style=\"color:'.$mail_color.'\">Customer Name</span> : <span>'.$Cust_name.'</span>\n </span> \n </td>\n </tr>\n <tr>\n <td>\n <span style=\"padding:5px 0; border-bottom:1px dotted #ccc; float: left\">\n <span style=\"color:'.$mail_color.'\">Enquiry Type</span> : <span>'.$enquiry_type.'</span>\n </span> \n </td>\n </tr>\n <tr>\n <td>\n <span style=\"padding:5px 0; border-bottom:1px dotted #ccc; float: left\">\n <span style=\"color:'.$mail_color.'\">Converted By</span> : <span>'.$emp_name.'</span> \n </span> \n </td>\n </tr>\n </table>\n </td>\n <td>\n <img src=\"'.BASE_URL.'/images/email/vacation.png\" style=\"width:175px; height:auto; margin-bottom: -10px;\" alt=\"\">\n </td>\n </tr>\n </table>\n ';\n\n $subject = \"The new lead converted successfully!\";\n\n global $model;\n\n $model->app_email_master($app_email_id, $content, $subject);\n \n}", "title": "" }, { "docid": "f5c558ee332c508a52cfb168c0986092", "score": "0.6085129", "text": "function Send($data)\n\t{\n\t\tif ($this->Validate($data))\n\t\t{\t$subject = 'New Enquiry - ' . SITE_NAME;\n\t\t\n\t\t\t$message = \"You have received a new enquiry via the \" . SITE_NAME . \" website \\n\";\n\t\t\t$message .= \"--------------------------------------------------------------------------------\\n\\n\";\n\t\t\t$message .= \"Name: {$this->data['name']} \\n\";\n\t\t\t$message .= \"Email: {$this->data['email']} \\n\";\n\t\t\t$message .= \"Query: \\n{$this->data['query']} \\n\\n\";\n\t\t\t$message .= \"--------------------------------------------------------------------------------\\n\\n\";\n\t\t\t\n\t\t\t$headers = \"Content-type: text/plain; charset=iso-8859-1 \\n\";\n\t\t\t$headers .= \"From: \". $this->data['email'] .\"\\n\";\n\t\t\t$headers .= \"X-Mailer: PHP\". phpversion() .\"\\n\\n\";\n\t\t\t\n\t\t\tif(mail($this->GetParameter(\"fwemail\"), $subject, $message, $headers))\n\t\t\t{\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "367b4e63a2b9ca8cf4d35dd79b7ad5e3", "score": "0.60833687", "text": "public function test() {\n $user = $this->get_user();\n $user_email = $user->email;\n $subject = \"⚡️ New Signup on OptinDev ⚡️\";\n $header_text = \"New Signup\";\n $body = \"<p>Congratulations, you just acquired a new signup on OptinDev for your landing page: <b>50 Tips to Make Money Online</b>.</p>\";\n $body .= \"<p>Here are the details:</p><ul>\";\n $body .= \"</ul>\";\n $body .= \"<p>You can check the status of your landing pages and signups by clicking <a href='\" . url('/dashboard/') . \"'>here.</a></p>\";\n $body .= \"<p>Remember, you can always add your signups to your favorite email service provider and if you need to delete a signup for any particular reason, you can do so from the dashboard.</p>\";\n $mail = new Mailing(\"notification\", $user_email, $subject, $user->first_name, $user->last_name, $body, $header_text);\n $mail->send();\n }", "title": "" }, { "docid": "cb0001e85fb98c3f42d61a992af3f6f5", "score": "0.608262", "text": "public function sendMail() {\r\n mail($this->to, $this->subject, $this->message, implode(\"\\r\\n\", $this->headers));\r\n }", "title": "" }, { "docid": "73ecd048c9773bb1501390defb4e5ee1", "score": "0.60822386", "text": "function bibdk_actions_mail_form($form_id, &$form_state) {\n global $user;\n $form['recipient'] = array(\n '#type' => 'textarea',\n '#title' => t('recipients_email_adress', array(), array('context' => 'bibdk_actions')),\n '#default_value' => ($user->uid != 0) ? $user->mail : '',\n '#required' => TRUE,\n );\n $subject_intro = t('manifestations_from @site-name', array('@site-name' => variable_get('site_name', t('email_site_name', array(), array('context' => 'bibdk_actions')))));\n $subject_title = (isset($form_state['build_info']['args'][0]['title'])) ? ' - ' . $form_state['build_info']['args'][0]['title'] : '';\n $subject_more = (count($form_state['build_info']['args'][0]['content']) >= 2) ? ' - ' . t('and_other_titles', array(), array('context' => 'bibdk_actions')) : '';\n $subject = _bibdk_actions_shorten_subject($subject_intro, $subject_title, $subject_more);\n $form['subject'] = array(\n '#type' => 'textarea',\n '#title' => t('email_subject', array(), array('context' => 'bibdk_actions')),\n '#default_value' => $subject,\n '#required' => FALSE,\n );\n $form['note'] = array(\n '#type' => 'textarea',\n '#title' => t('note_for_recipient', array(), array('context' => 'bibdk_actions')),\n '#required' => FALSE,\n );\n $form['send'] = array(\n '#type' => 'submit',\n '#submit' => array('bibdk_actions_mail_form_submit'),\n '#value' => t('send_email', array(), array('context' => 'bibdk_actions')),\n );\n $form['close'] = array(\n '#type' => 'button',\n '#value' => t('close_window', array(), array('context' => 'bibdk_actions')),\n '#attributes' => array(\n 'onClick' => array('window.close();'),\n 'class' => array(\n 'inactive', 'show-for-medium-up',\n ),\n ),\n );\n if($form_state['build_info']['args'][0]['sent']){\n drupal_add_js(drupal_get_path('module', 'bibdk_cart') . '/js/bibdk_cart_reload.js');\n }\n return $form;\n}", "title": "" }, { "docid": "5666fb95ca825b7a27f9fd0ef4f6bb46", "score": "0.60811436", "text": "public function sendResponse()\n {\n if ($this->get('AJAX'))\n {\n $req = $this->get('POST');\n $project = Project::find($req['project_id'])->with('account')->first();\n $freelance = Account::find($req['freelance_id']);\n\n $this->MailHelper->sendMail('response', $freelance->mail, [\n 'subject' => \"Votre demande concernant le projet \" . $project->name,\n 'project' => [\n 'name' => $project->name,\n 'firstname' => $project->firstname,\n 'lastname' => $project->lastname\n ],\n 'demand' => [\n 'status' => $req['status']\n ]\n ]);\n }\n }", "title": "" }, { "docid": "31af76c76a04eeb1fd6d66dcf3f20e49", "score": "0.60785705", "text": "function sendInfoMail()\t{\n\t\tif ($this->conf['infomail'] && $this->conf['email.']['field'])\t{\n\t\t\t$fetch = $this->feUserData['fetch'];\n\n\t\t\tif (isset($fetch))\t{\n\t\t\t\t$pidLock=' AND pid IN ('.$this->thePid.') ';\n\n\t\t\t\t\t// Getting records\n\t\t\t\tif ( $this->theTable == 'fe_users' && t3lib_div::testInt($fetch) )\t{\n\t\t\t\t\t$DBrows = $GLOBALS['TSFE']->sys_page->getRecordsByField($this->theTable,'uid',$fetch,$pidLock,'','','1');\n\t\t\t\t} elseif ($fetch) {\t// $this->conf['email.']['field'] must be a valid field in the table!\n\t\t\t\t\t$DBrows = $GLOBALS['TSFE']->sys_page->getRecordsByField($this->theTable,$this->conf['email.']['field'],$fetch,$pidLock,'','','100');\n\t\t\t\t}\n\t\t\t\t\t// Processing records\n\t\t\t\tif (is_array($DBrows))\t{\n\t\t\t\t\t$recipient = $DBrows[0][$this->conf['email.']['field']];\n\t\t\t\t\t$this->compileMail('INFOMAIL', $DBrows, trim($recipient), $this->conf['setfixed.']);\n\t\t\t\t} elseif ($this->cObj->checkEmail($fetch)) {\n\t\t\t\t\t$fetchArray = array( '0' => array( 'email' => $fetch));\n\t\t\t\t\t$this->compileMail('INFOMAIL_NORECORD', $fetchArray, $fetch);\n\t\t\t\t}\n\n\t\t\t\t$content = $this->getPlainTemplate('###TEMPLATE_'.$this->infomailPrefix.'SENT###', (is_array($DBrows)?$DBrows[0]:''));\n\t\t\t} else {\n\t\t\t\t$content = $this->getPlainTemplate('###TEMPLATE_INFOMAIL###');\n\t\t\t}\n\t\t} else {\n\t\t\t$content='Configuration error: infomail option is not available or emailField is not setup in TypoScript';\n\t\t}\n\t\treturn $content;\n\t}", "title": "" }, { "docid": "92cc22317a24d978c1bacb939d503c1c", "score": "0.605449", "text": "function editcontestmail($email,$name,$contestname,$contestimage,$contest_id,$details){\n\t\n\t\tMail::send([],\n\t\t\t\t\tarray('email' => $email,'name'=>$name,'contestname'=>$contestname,'contest_id'=>$contest_id,'contestimage'=>$contestimage,'details'=>$details), function($message) use ($email,$name,$contestname,$contest_id,$contestimage,$details)\n\t\t\t\t\t{\n\t\t\t\t\t\t $mail_body = '<style>.thank{text-align:center; width:100%;}\n\t\t\t\t\t\t\t\t.but_color{color:#ffffff;}\n\t\t\t\t\t\t\t\t.cont_name{width:100px;}\n\t\t\t\t\t\t\t\t.cont_value{width:500px;}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</style>\n\t\t\t\t\t\t <body style=\"font-family:Helvetica Neue, Helvetica, Arial, sans-serif; margin:0px auto; padding:0px;\">\n\n\t\t\t\t\t\t\t<div style=\"margin:0px auto;background:#e5e5e5;float:left;\twidth:98%;\theight:30px;margin:0px 1%; border-bottom:#005377 1px solid;vertical-align: text-middle;\">\n\t\t\t\t\t\t\t\t&nbsp;&nbsp;<a href=\"'.URL::to('contest_info/'.$contest_id).'\"><img src=\"'.URL::to('assets/images/logo.png').'\" style=\"margin-top:3px;width: 100px;height: 20px;line-height:20px;\" /></a>&nbsp;&nbsp;\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div style=\"background:#ffffff;float:left;padding:10px 20px;margin:1px 1%;\" >\n\t\t\t\t\t\t\t\t<div class=\"thank\" style=\"font-size:16px;color: #078AC2;font-weight:bold;float:left;width:100%;margin-top:10px;text-align:left;\">Dear '.$name.'</div>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<div style=\"font-size:12px;\tcolor: #000000;\tfloat:left;padding:10px 2px;width:100%;margin:15px;\">Your contest <b>\"'.$contestname.'\"</b> is changed by admin </div>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t'.$details.'\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<div style=\"margin:10px;\"><a href=\"'.URL::to('contest_info/'.$contest_id).'\"><img src=\"'.URL::to('assets/inner/images/vist_dingdatt.png').'\" width=\"120\" height=\"30\" /></a>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<div style=\"font-size:12px; margin-top:10px;color: #5b5b5b;/*\tbackground:#e5e5e5;*/width:95%;vertical-align: text-middle;height:30px;margin:0% 1%;padding:0px 15px; border-top:#005377 1px solid; border-bottom:5px solid background:#e5e5e5;line-height:25px; \">\n\t\t\t\t\t\t\t<span style=\"font-size:12px;color: #5b5b5b;padding:0px 10px;line-height:22px;text-align:center;\">This is auto generated mail and do not reply to this mail.</span>\n\t\t\t\t\t\t\t</body>';\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t$message->setBody($mail_body, 'text/html');\n\t\t\t\t\t\t$message->to($email);\n\t\t\t\t\t\t$message->subject('Dingdatt-contest information');\n\t\t\t\t\t}); \n\t}", "title": "" }, { "docid": "cf3d838d174afb137c109302032f00ae", "score": "0.6048818", "text": "public function sendSaveStateLink() {\r\n\t\t\tif ( !isset( $this->saveState['email'] ) ) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t// Set the form headers\r\n\t\t\t$headers = 'From: ' . $this->saveState['email']['fromName'] . ' <' . $this->saveState['email']['fromEmail'] . '>' . \"\\r\\n\" . 'X-Mailer: PHP/' . phpversion();\r\n\r\n\t\t\t// Set the subject\r\n\t\t\t$subject = $this->saveState['email']['subject'];\r\n\r\n\t\t\t// Set the e-mail and replace [formUrl] with the real form URL\r\n\t\t\t$message = str_replace( '[formUrl]' , $this->saveState['email']['formUrl'] , $this->saveState['email']['message'] );\r\n\r\n\t\t\t// Send the message\r\n\t\t\tif ( mail( $_SESSION[ $this->id ]['saveState']['username'] , $subject , $message , $headers ) ) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "9695ead044b6878069c2bd6d9a0b4d75", "score": "0.60338336", "text": "public function send_after() {\n\t\tremove_filter( 'wp_mail_from', array( $this, 'get_from_address' ) );\n\t\tremove_filter( 'wp_mail_from_name', array( $this, 'get_from_name' ) );\n\t\tremove_filter( 'wp_mail_content_type', array( $this, 'get_content_type' ) );\n\n\t\t// Reset email related params.\n\t\t$this->heading = '';\n\t\t$this->from_name = '';\n\t\t$this->from_address = '';\n\t\t$this->form_id = 0;\n\t}", "title": "" }, { "docid": "d8c250f9f73f60ae580a6bd886d1bbc6", "score": "0.602776", "text": "function confirmation_mail()\n\t{\n\t\t$message = 'Thanks for signing up FinancialInsiders.';\n\t\t\n\t\tNTM_mail_template::send_mail($_POST['email'], 'Registered with FinancialInsiders successfly.', $message);\n\t}", "title": "" }, { "docid": "acf5fbb8fb8c9fb0bbf8a07ff01c6a0c", "score": "0.60255826", "text": "public function email() {\n $message = $error = $result = '';\n //getting customization tab more link \n $misc_more_actions = apply_filters('esig_misc_more_document_actions', '');\n // getting active menu \n $class = (isset($_GET['page']) && $_GET['page'] == 'esign-email-general') ? 'mails_current' : '';\n\n\n $email_settings = new WP_E_Email();\n //register email option \n $email_settings->esig_register_mail_option();\n //form submit action \n // get email settings from database option \n $esig_mail_options = get_option('esig_mail_options');\n\n if (isset($_POST['esig_mail_form_submit']) && check_admin_referer('esig-mail-settings', 'esig_mail_nonce_name')) {\n\n $esig_mail_options['enable'] = ( isset($_POST['esig_adv_mail_enable']) ) ? $_POST['esig_adv_mail_enable'] : 'no';\n\n $esig_mail_options['from_name_field'] = isset($_POST['esig_from_name']) ? sanitize_text_field(wp_unslash($_POST['esig_from_name'])) : '';\n if (isset($_POST['esig_from_email'])) {\n if (is_email($_POST['esig_from_email'])) {\n $esig_mail_options['from_email_field'] = $_POST['esig_from_email'];\n } else {\n $error .= \" \" . __(\"Please enter a valid email address in the 'FROM' field.\", 'esig');\n }\n }\n\n $esig_mail_options['smtp_settings']['host'] = sanitize_text_field($_POST['esig_smtp_host']);\n $esig_mail_options['smtp_settings']['type_encryption'] = ( isset($_POST['esig_smtp_type_encryption']) ) ? $_POST['esig_smtp_type_encryption'] : 'none';\n $esig_mail_options['smtp_settings']['autentication'] = ( isset($_POST['esig_smtp_autentication']) ) ? $_POST['esig_smtp_autentication'] : 'yes';\n $esig_mail_options['smtp_settings']['username'] = sanitize_text_field($_POST['esig_smtp_username']);\n $smtp_password = trim($_POST['esig_smtp_password']);\n $esig_mail_options['smtp_settings']['password'] = base64_encode($smtp_password);\n\n /* Check value from \"SMTP port\" option */\n if (isset($_POST['esig_smtp_port'])) {\n if (empty($_POST['esig_smtp_port']) || 1 > intval($_POST['esig_smtp_port']) || (!preg_match('/^\\d+$/', $_POST['esig_smtp_port']) )) {\n $esig_mail_options['smtp_settings']['port'] = '25';\n $error .= \" \" . __(\"Please enter a valid port in the 'SMTP Port' field.\", 'esig');\n } else {\n $esig_mail_options['smtp_settings']['port'] = $_POST['esig_smtp_port'];\n }\n }\n\n /* Update settings in the database */\n if (empty($error)) {\n update_option('esig_mail_options', $esig_mail_options);\n if($esig_mail_options['enable'] == \"yes\" ){\n $message .= __(\"Almost done... your SMTP settings have indeed been saved. <a href='admin.php?page=esign-email-general#esig-test-email' style='color:red;'>Send a Test Email</a>\", 'esig');\n }\n \n } else {\n $error .= \" \" . __(\"Settings are not saved.\", 'esig');\n }\n }\n\n // sending a test email here \n if (isset($_POST['esig_test_mail_submit']) && check_admin_referer('esig_test_mail', 'esig_mail_test_nonce_name')) {\n\n\n if (isset($_POST['esig_to'])) {\n if (is_email($_POST['esig_to'])) {\n $esig_to = $_POST['esig_to'];\n } else {\n $error .= \" \" . __(\"Please enter a valid email address in the 'FROM' field.\", 'easy_wp_smtp');\n }\n }\n $esig_subject = isset($_POST['esig_mail_subject']) ? $_POST['esig_mail_subject'] : '';\n $esig_message = isset($_POST['esig_mail_message']) ? $_POST['esig_mail_message'] : '';\n if (!empty($esig_to))\n $result = $email_settings->esig_test_mail($esig_to, $esig_subject, $esig_message);\n }\n\n $template_data = array(\n \"mails_tab_class\" => 'nav-tab-active',\n \"Licenses\" => $this->model->checking_extension(),\n \"link_active\" => $class,\n \"esig_options\" => $esig_mail_options,\n \"error\" => $error,\n \"message\" => $message,\n \"result\" => $result\n );\n\n $this->fetchView(\"email\", $template_data);\n }", "title": "" }, { "docid": "1f267901c82610619c10be4525d2df66", "score": "0.60213125", "text": "public function sendEmail()\n {\n\n return \\Yii::$app->mailer->compose(['html' => 'startingMail-html', 'text' => 'startingMail-text'])\n ->setFrom([\\Yii::$app->params['supportEmail'] => \\Yii::$app->name . 'Echos-Libres'])\n ->setTo($this->email)\n ->setSubject('Confirmation d\\'inscription')\n ->send();\n\n\n }", "title": "" }, { "docid": "d2534496b48900cd3e65b813cf15e991", "score": "0.601505", "text": "function contactFormAction()\n {\n $validateF = new ValidateFunctions();\n $contact = new ContactFunctions();\n if (isset($_GET['sent']) && $_GET['sent'] == true) {\n if ($validateF->fieldsValid($_POST)) {\n if ($contact->sentMessageToAddress($_POST)) {\n $_SESSION['success'] = ['Message sent successfully'];\n } else {\n $_SESSION['error'] = ['Message Failed'];\n }\n }\n }\n\n $styleArray = ['current','','','',''];\n $this->getHeader('Contact Us', $styleArray);\n require_once '../templates/contactus.php';\n $this->getFooter();\n }", "title": "" }, { "docid": "d968b5746a12fe19c56f0b76c1543f5b", "score": "0.6014663", "text": "function mail_form ($sess) {\n\n\n?>\n\t<table width=\"460\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">\n\t<form method=\"post\">\n\t\t<tr>\n\t\t\t<td valign=\"top\" class=\"table\"><b><? echo _MESSAGE ?>:</b></td>\n\t\t\t<td><textarea cols=\"40\" rows=\"4\" name=\"m_body\" class=\"input\"></textarea></td>\n\t\t</tr> \n\t\t\t\t<input type=\"hidden\" name=\"action\" value=\"send\">\n\t\t<tr>\n\t\t\t<td class=\"table\">&nbsp;</td>\n\t\t\t<td><input type=\"submit\" value=\"<? echo _INSERT ?>\"></td>\n\t\t</tr>\n\t</form>\n\t</table>\n<?\t\n}", "title": "" }, { "docid": "01c1f5907d2ce21f04506a5c72c7cd16", "score": "0.60119903", "text": "function mailform($data) {\r\n \t$this->data = $data;\r\n\t}", "title": "" }, { "docid": "57bd0408bf6f959e2cdd628bc796b155", "score": "0.6009956", "text": "public function sendMail($userinfo){\n\t\t$user_name=ucfirst($userinfo[\"title\"]).\" \".$userinfo[\"family_name\"];\n\t\t$user_email=$userinfo[\"email\"];\n\t\t//$user_comment=$_REQUEST[\"user_comment\"];\n\t\t\n\t\t$to=\"[email protected]\";\n\t\t$subject=\"Thank You for Registering with GinSen\";\n\t\t$message='\n\t\t <p>\n\t\t Dear '.$user_name.'\n\t\t </p>\n\t\t <p>\n\t\t Thank you for registering with GinSen. Your login details are: '.$user_email.'. \n\t\t </p>\n\t <p>\n\t\t GinSen’s focuses on the prevention and treatment of disease using Traditional Chinese Medicine. We take the health of our clients extremely seriously. We know that our success is based on the quality and professionalism of our practice and guard our excellent reputation carefully. \n\t\t </p>\n <p>\n\t\t We look forward to welcoming you soon. \n </p>\n <p>\n\t\t Yours sincerely\n </p>\n\n <p>\n\t\t GinSen – Traditional Chinese Medicine<br>\nPhone: 0207 586 7348<br>\nEmail: [email protected]<br>\nWebsite: www.ginsen-london.com<br>\nBranches: Swiss Cottage, King’s Road, Russell Square<br>\n<a href=\"https://twitter.com/DrLily_GinSen\">Twitter</a>&nbsp; <a href=\"https://www.facebook.com/GinSen.London?sk=wall\">Facebook</a>\n </p>\t\t \n\t\t';\n\t\t\n\t\t\n // To send HTML mail, the Content-type header must be set\n $headers = 'MIME-Version: 1.0' . \"\\r\\n\";\n $headers .= 'Content-type: text/html; charset=utf-8' . \"\\r\\n\";\n\t\tmail($to,$subject,$message,$headers);\n\t\tmail($user_email,$subject,$message,$headers);\n\t\t//echo $message;\n\t \n\t \n\t }", "title": "" }, { "docid": "16d9294cf5de567171c759a3f5c02f69", "score": "0.600618", "text": "public function sent_mail_details_apple_french($vEmail)\n {\n \t$ci = get_instance();\n\t\t$ci->load->library('email');\n\t\t$config['protocol'] = \"smtp\";\n\t\t$config['smtp_host'] = \"mail.easyapps.fr\";\n\t\t$config['smtp_port'] = \"25\";\n\t\t$config['smtp_user'] = \"[email protected]\"; \n\t\t$config['smtp_pass'] = \"easyapps1@French\";\n\t\t$config['charset'] = \"utf-8\";\n\t\t$config['mailtype'] = \"html\";\n\t\t$config['newline'] = \"\\r\\n\";\n\t\t\n\t\t$message=\"\";\n\t\t$message.=\"<html>\n\t\t\t\t\t<head>\n\t\t\t\t\t\t<title>Easy App</title>\n\t\t\t\t\t</head>\n\t\t\t\t\t<body>\n\t\t\t\t\t\t<p>Cher utilisateur,</p>\n\t\t\t\t\t\t<br />\n\t \t\t<p>Merci pour la publication de votre application avec EasyApps. Les détails de votre app sont au titre.</p>\n\t \t\t<p>Nom App : \".$data['tAppName'].\"</p>\n\t \t\t<p>Mots-clés de cette appli : \".$data['tAppKeywords'].\"</p>\n\t \t\t<p>App Description : \".$data['tDescription'].\"</p>\n\t \t\t<p>site Web : \".$data['vWebsite'].\"</p>\n\t \t\t<p>App Prix : \".$data['fPrice'].\"</p>\n\t \t\t<br /><br />\n\t \t\t<p>l'information Apple</p>\n\t \t\t<p>1) Vous avez accepté la politique de l'entreprise et nous a fourni vos informations d'identification Apple Store à Plublish application. Vos pouvoirs sont comme suit.\n</p>\n\t\t\t\t\t\t<br /><br />\n\t\t\t\t\t\t<p>Apple Store utilisateur Id : \".$data['vAppleUsername'].\"</p>\n\t\t\t\t\t\t<p>Apple Store Mot de passe : \".$data['vAppleUsername'].\"</p>\n\t\t\t\t\t\t<br /><br />\n\t\t\t\t\t\t<p>3) Vous avez accepté la politique de l'entreprise et nous a permis de publier votre application sous notre compte de la société.</p>\n\t \t</body>\n\t\t\t\t</html>\";\n\t\t//Si vous avez des questions n’hésiter à nous contacter par mail sur [email protected] ou appelez-nous au 0693420541\t\t\n\t\t$ci->email->initialize($config);\n\t\t$ci->email->from('[email protected]', 'easyapps');\n\t\t$ci->email->to($data['vAppleUsername']);\n\t\t$this->email->reply_to('[email protected]', 'Explendid Videos');\n\t\t$ci->email->subject('Easyapps');\n\t\t$ci->email->message($message);\n\t\t$ci->email->send();\n\t\t\n\t\treturn true;\n }", "title": "" }, { "docid": "867d06894b22a7ec233b627718873f02", "score": "0.5994342", "text": "public function sendEmail()\n\t{\n\t\tif (!$this->verification) {\n\t\t\tthrow new \\Exception(\"You must set a verification ID before sending an email.\");\n\t\t}\n\t\t\n\t\tif($this->email_key == null){\n\t\t\t$this->email_key = urlencode(md5(time()));\n\t\t}\n\t\t\n\t\t$this->sent_time = new \\DateTime();\n\t\t\t\n\t\t$mail = new \\Fisdap_TemplateMailer();\n\t\t$mail->addTo($this->preceptor->email)\n\t\t\t ->setSubject('Signoff for run ' . $this->verification->run->id)\n\t\t\t ->setViewParam('verification', $this->verification)\n\t\t\t ->sendTextTemplate('email-signoff.phtml');\n\t}", "title": "" }, { "docid": "cc2d9392fa839b1006dba2e2b4a161e4", "score": "0.59940124", "text": "function admin_email($obj){ \n\t\t\n\t\t//$obj->from_book\n\t\t$this->email->from($obj->from_book, $obj->name); \n\t\t$this->email->to($obj->to_adm[0]); \n\t\t$this->email->cc($obj->to_adm[1]); \n\t\t\n\t\t \n\t\t$email_msg\t\t =\t\"<p>Dear Mr. Hay Kamine,</p><br />\"; \n\t\t$email_msg\t\t.=\t\"I would like to request a meeting room, the detail of the meeting as below:<br />\"; \n\t\t$email_msg\t\t.=\t\"Date :\".$obj->dates.\" <br />\";\n\t\t$email_msg\t\t.=\t\"Time : \".$obj->s_time.\" - \".$obj->e_time.\" <br />\";\n\t\t$email_msg\t\t.=\t\"Description :\".$obj->descript.\"<br />\";\n\t\t$email_msg\t\t.=\t\"Room number :\".$obj->room_number.\"<br />\";\n\t\t$email_msg\t\t.=\t\"Participants :\".$obj->member.\"<br />\";\n\t\t$email_msg\t\t.=\t\"Requirement :\".$obj->other_requirement.\"<br /><br /><br />\";\n\t\t\n\t\t$email_msg\t\t.=\t\"Regarding,<br />\";\n\t\t$email_msg\t\t.=\t$obj->name.\"<br />\";\n\t\t \n\t\t\n\t\t$this->email->subject($obj->title);\n\t\t$this->email->message($email_msg); \n\t\t$this->email->send(); \n\t\t\t\t \n\t}", "title": "" }, { "docid": "70830dc7f3469ffecfd60afb16c67d74", "score": "0.5990857", "text": "function send_email(){\n\t\t\n\t\t$to = $this->input->post('email');\n\t\t$subject = $this->input->post('subject');\n\t\t$message = $this->input->post('message');\n\t\t$body = $this->mailer->Tpl_CustomMsg('Dear Candidate ',$message);\n\t\t$cc = '';\n\t\t$file = '';\n\t\t\n\t\t$check = sendEmail($to, $subject, $body, $file, $cc);\n\t\t\t\t\t \n\t\t if( $check ){\n\t\t\t echo 'success';\n\t\t }\n\t}", "title": "" }, { "docid": "d90d02530af2856e5e75c710079c0d3b", "score": "0.5988759", "text": "public function SendStudentEmail()\n\t{\n\t\tif (($student = new Student($this->details['userid'])) && $student->id && $this->ValidEmail($student->details['username']))\n\t\t{\n\t\t\t$fields = array();\n\t\t\t$fields['site_url'] = $this->link->GetLink();\n\t\t\t$fields['site_link_html'] = '<a href=\"' . $fields['site_url'] . '\">visit us here</a>';\n\t\t\t$fields['firstname'] = $student->details['firstname'];\n\t\t\t$fields['sub_title'] = $this->InputSafeString($this->details['title']);\n\t\t\t$fields['sub_months'] = (int)$this->details['months'];\n\t\t\t$fields['sub_startdate'] = $this->OutputDate($this->details['created']);\n\t\t\t$fields['sub_enddate'] = $this->OutputDate($this->details['expires']);\n\t\t\t\n\t\t\t$t = new MailTemplate('subscription');\n\t\t\t$mail = new HTMLMail;\n\t\t\t$mail->SetSubject($t->details['subject']);\n\t\t\t$mail->Send($this->student->details['username'], $t->BuildHTMLEmailText($fields), $t->BuildHTMLPlainText($fields));\n\t\t}\t\n\t}", "title": "" }, { "docid": "91536807af5e3183e79726ea62085087", "score": "0.59847", "text": "function send_financing_newsletter($lnc_financing_by_model_name, $lnc_financing_by_model_lastname, $lnc_financing_by_model_email, $lnc_financing_by_model_tel, $lnc_financing_by_model_car, $lnc_financing_by_model_concesionarie) {\n try {\n $mandrill = new Mandrill('-M2qid9ztNaYfJvoZWPOHQ');\n $message = array(\n 'html' => '\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width; initial-scale=1.0; maximum-scale=1.0;\">\n <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" class=\"full2\" bgcolor=\"#303030\"style=\"background-color: rgb(48, 48, 48);\">\n <tr>\n <td style=\"background-color: rgba(33, 156, 229, 0.76); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; background-position: -185px 75%; background-attachment: fixed; background-repeat: no-repeat;\" id=\"not6\">\n\n <!-- Mobile Wrapper -->\n <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" class=\"mobile2\" style=\"background: rgba(255, 255, 255, 0.5);\">\n <tr>\n <td width=\"100%\" align=\"center\">\n\n <div class=\"sortable_inner ui-sortable\">\n <!-- Space -->\n <table width=\"600\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" class=\"full\" object=\"drag-module-small\">\n <tr>\n <td width=\"100%\" height=\"50\"></td>\n </tr>\n </table><!-- End Space -->\n\n <!-- Space -->\n <table width=\"600\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" class=\"full\" object=\"drag-module-small\">\n <tr>\n <td width=\"100%\" height=\"50\"></td>\n </tr>\n </table><!-- End Space -->\n\n <!-- Start Top -->\n <table width=\"600\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" class=\"mobile2\" bgcolor=\"#4edeb5\" style=\"border-top-left-radius: 5px; border-top-right-radius: 5px; background-color: rgba(0, 0, 0, 1);\" object=\"drag-module-small\">\n <tr>\n <td width=\"100%\" valign=\"middle\" align=\"center\" class=\"logo\">\n\n <!-- Header Text -->\n <table width=\"540\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" style=\"text-align: center; border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\" class=\"fullCenter2\">\n <tr>\n <td width=\"100%\" height=\"30\"></td>\n </tr>\n <tr>\n <td width=\"300\"><span style=\"float: left; clear: both;\"></span></td>\n <td width=\"50%\"><span ></span></td>\n <td width=\"300\"><span style=\"float: right; clear: both;\"><img src=\"http://lincolngdl.com.mx/img/logo/logo_lincoln_white.png\" width=\"200\" alt=\"\" border=\"0\" ></span></td>\n </tr>\n <tr>\n <td width=\"100%\" height=\"30\"></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n\n <table width=\"600\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" class=\"mobile2\" bgcolor=\"#ffffff\"object=\"drag-module-small\" style=\"background-color: rgba(255, 255, 255, 0.9);\">\n <tr>\n <td width=\"100%\" valign=\"middle\" align=\"center\">\n\n <table width=\"540\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" style=\"text-align: center; border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\" class=\"fullCenter2\">\n <tr>\n <td width=\"100%\" height=\"30\"></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n\n <table width=\"600\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" class=\"mobile2\" bgcolor=\"#ffffff\"object=\"drag-module-small\" style=\"background-color: rgba(255, 255, 255, 0.9);\">\n <tr>\n <td width=\"100%\" valign=\"middle\" align=\"center\">\n\n <table width=\"540\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" style=\"text-align: center; border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\" class=\"fullCenter2\">\n <tr>\n <td valign=\"middle\" width=\"100%\" style=\"text-align: left; font-family: Helvetica, Arial, sans-serif; font-size: 23px; color: rgb(63, 67, 69); line-height: 30px; font-weight: 100;\">\n <!--[if !mso]><!--><span style=\"font-family: Helvetica; font-weight: normal; text-align: center; display: block;\"><!--<![endif]-->Registro Newsletter.<!--[if !mso]><!--></span><!--<![endif]-->\n </td>\n </tr>\n <tr>\n <td valign=\"middle\" width=\"100%\" style=\"text-align: left; font-family: Helvetica, Arial, sans-serif; font-size: 17px; color: rgb(63, 67, 69); line-height: 30px; font-weight: 100;\">\n <!--[if !mso]><!--><span style=\"font-family: Helvetica; font-weight: normal; text-align: center; display: block;\"><!--<![endif]-->Financiamiento ' . $lnc_financing_by_model_car . ' .<!--[if !mso]><!--></span><!--<![endif]-->\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n\n <table width=\"600\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" class=\"mobile2\" bgcolor=\"#ffffff\"object=\"drag-module-small\" style=\"background-color: rgba(255, 255, 255, 0.9);\">\n <tr>\n <td width=\"100%\" valign=\"middle\" align=\"center\">\n\n <table width=\"540\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" style=\"text-align: center; border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\" class=\"fullCenter2\">\n <tr>\n <td width=\"100%\" height=\"10\"></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n\n <table width=\"600\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" class=\"mobile2\" bgcolor=\"#ffffff\"object=\"drag-module-small\" style=\"background-color: rgba(255, 255, 255, 0.9);\">\n <tr>\n <td width=\"100%\" valign=\"middle\" align=\"center\">\n\n <table width=\"540\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" style=\"text-align: center; border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\" class=\"fullCenter2\">\n <tr>\n <td valign=\"middle\" width=\"100%\" style=\"text-align: left; font-family: Helvetica, Arial, sans-serif; font-size: 14px; color: rgb(63, 67, 69); line-height: 24px;\">\n <!--[if !mso]><!--><span style=\"font-family: Helvetica; font-weight: normal;\"><!--<![endif]-->\n <hr style=\"border: 0; border-top: 1px solid #00a1dc; display: block; width: 100%; margin-top: 2%;\">\n <ol type=\"1\">\n <li style=\"list-style-type: none; margin: 0 -30px; display: block;\"><b>Usuario</b></li>\n <li style=\"list-style-type: disc;\">\n <b>Nombre (s) y Apellidos:</b>\n <ul>\n <li>\n <i>' . $lnc_financing_by_model_name . ' ' . $lnc_financing_by_model_lastname . '</i>\n </li>\n </ul>\n </li>\n <li style=\"list-style-type: disc;\">\n <b>Correo:</b>\n <ul>\n <li>\n <i>' . $lnc_financing_by_model_email . '</i>\n </li>\n </ul>\n </li>\n <li style=\"list-style-type: disc;\">\n <b>Teléfono:</b>\n <ul>\n <li>\n <i>' . $lnc_financing_by_model_tel . '</i>\n </li>\n </ul>\n </li>\n </ol>\n <hr style=\"border: 0; border-top: 1px solid #00a1dc; display: block; width: 100%; margin-bottom: 2%;\">\n\n <!--[if !mso]><!--></span><!--<![endif]-->\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n\n <table width=\"600\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" class=\"mobile2\" bgcolor=\"#ffffff\"object=\"drag-module-small\" style=\"background-color: rgba(255, 255, 255, 0.9);\">\n <tr>\n <td width=\"100%\" valign=\"middle\" align=\"center\">\n\n <table width=\"540\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" style=\"text-align: center; border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\" class=\"fullCenter2\">\n <tr>\n <td width=\"100%\" height=\"10\"></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n\n <table width=\"600\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" class=\"mobile2\" bgcolor=\"#ffffff\"object=\"drag-module-small\" style=\"background-color: rgba(255, 255, 255, 0.9);\">\n <tr>\n <td width=\"100%\" valign=\"middle\" align=\"center\">\n\n <table width=\"540\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" style=\"text-align: center; border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\" class=\"fullCenter2\">\n <tr>\n <td width=\"100%\" height=\"0\"></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n\n <table width=\"600\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" class=\"mobile2\" bgcolor=\"#ffffff\"style=\"border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; background-color: rgba(255, 255, 255, 0.9);\" object=\"drag-module-small\">\n <tr>\n <td width=\"100%\" valign=\"middle\" align=\"center\">\n\n <table width=\"540\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" style=\"text-align: center; border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\" class=\"fullCenter2\">\n <tr>\n <td width=\"100%\" height=\"10\"></td>\n </tr>\n </table>\n\n </td>\n </tr>\n </table>\n\n <table width=\"600\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" class=\"full2\" object=\"drag-module-small\">\n <tr>\n <td width=\"100%\" height=\"10\"></td>\n </tr>\n </table>\n\n <table width=\"600\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" class=\"mobile2\" object=\"drag-module-small\">\n <tr>\n <td width=\"100%\" height=\"10\"></td>\n </tr>\n </table>\n\n <table width=\"600\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" class=\"mobile2\" object=\"drag-module-small\">\n <tr>\n <td valign=\"middle\" width=\"100%\" style=\"text-align: left; font-family: Helvetica, Arial, sans-serif; font-size: 13px; color: rgba(255, 255, 255, 0.9); line-height: 24px; text-align: center\">\n <!--[if !mso]><!--><span style=\"font-family: Helvetica; font-weight: normal;\"><!--<![endif]-->&copy; 2015 ' . $lnc_financing_by_model_concesionarie . ' <!--<![endif]--></span><!--[if !mso]><!-->\n </td>\n </tr>\n </table>\n\n <table width=\"600\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" class=\"mobile2\" object=\"drag-module-small\">\n <tr>\n <td width=\"100%\" height=\"50\"></td>\n </tr>\n <tr>\n <td width=\"100%\" height=\"1\"></td>\n </tr>\n </table>\n </div>\n\n </td>\n </tr>\n </table>\n\n </div>\n </td>\n </tr>\n </table>\n ',\n 'subject' => 'Registro newsletter - Financiamiento Lincoln Guadalajara',\n 'from_email' => $lnc_financing_by_model_email,\n 'from_name' => $lnc_financing_by_model_name . ' ' . $lnc_financing_by_model_lastname,\n 'to' => array(\n array(\n 'email' => '[email protected]',\n //'email' => '[email protected]',\n 'name' => $lnc_financing_by_model_name . ' ' . $lnc_financing_by_model_lastname,\n 'type' => 'to'\n )\n ),\n 'headers' => array('Reply-To' => ''),\n 'important' => false,\n 'track_opens' => true,\n 'track_clicks' => true,\n 'auto_text' => null,\n 'auto_html' => null,\n 'inline_css' => null,\n 'url_strip_qs' => null,\n 'preserve_recipients' => null,\n 'view_content_link' => null,\n 'bcc_address' => null,\n 'tracking_domain' => null,\n 'signing_domain' => null,\n 'return_path_domain' => null,\n 'merge' => true,\n\n 'tags' => array('orden-new-notificacion-lincoln-gdl'),\n 'google_analytics_domains' => array('http://lincolngdl.com.mx'),\n 'google_analytics_campaign' => '[email protected]',\n 'metadata' => array('website' => 'http://lincolngdl.com.mx'),\n );\n $async = false;\n $ip_pool = 'Main Pool';\n $send_at = '';\n $result = $mandrill->messages->send($message, $async, $ip_pool, $send_at);\n //print_r($result);\n } catch(Mandrill_Error $e) {\n // Mandrill errors are thrown as exceptions\n echo 'A mandrill error occurred: ' . get_class($e) . ' - ' . $e->getMessage();\n // A mandrill error occurred: Mandrill_Unknown_Subaccount - No subaccount exists with the id 'customer-123'\n throw $e;\n }\n }", "title": "" }, { "docid": "c01a511a05508ee95302ee99a85e481d", "score": "0.59842455", "text": "function actionContact(){\r\n\r\nif(!empty($_POST['name']) && !empty($_POST['email']) && !empty($_POST['message'])){\r\n\r\n\t//form the message\r\n\t$message=\"From: \".$_POST['name'].\"<br/>\".\"Email: \".$_POST['email'].\"<br/>Message: <br/>\".$_POST['message'];\r\n\r\n\tif(Helpers::get_controller(MAIL)->SendMail($GLOBALS['app_config']['admin_email'],\"Contact Request\",$message)){\r\n\r\n\t\t$this->printResponse($this->GetResponseArray(true,\"Your message is successfully sent. We'll get in touch as soon as possible.\"));\r\n}\r\n\r\nelse {\r\n\r\n\t\t$this->printResponse($this->GetResponseArray(false,\"Failed to send the message. Please try again.\"));\r\n\r\n\r\n}\r\n\r\n}\r\n\r\n}", "title": "" }, { "docid": "c5ff66278250cca199a347c30d2cc3e7", "score": "0.59791464", "text": "public function checkPost($_POST){ \r\n $from = \"$_POST[user_name] <$_POST[user_email]>\";\r\n $subject = \"New Project: $_POST[the_project]\";\r\n \r\n $body = '';\r\n $body .= \"\r\nUser Info:\r\nName: $_POST[user_name]\r\nEmail: $_POST[user_email]\r\nProject: $_POST[the_project]\r\nDue Date: $_POST[due_date]\r\n\";\r\n \r\n if($_POST['web-change'] == 'on'){ \r\n $forms = self::getFormData('site', 'site-files'); \r\n $body .= \"\r\nNumber of Web Change(s): \".count($forms).\"\r\n-----------------------------------------------\\n\"; \r\n $body .= self::display($forms);\r\n }\r\n \r\n if($_POST['print-ad'] == 'on'){ \r\n $forms = self::getFormData('print', 'print-files'); \r\n $body .= \"\r\nNumber of Print Ad(s): \".count($forms).\"\r\n-----------------------------------------------\\n\";\r\n $body .= self::display($forms);\r\n }\r\n \r\n if($_POST['web-ad'] == 'on'){\r\n $forms = self::getFormData('web', 'web-files'); \r\n $body .= \"\r\nNumber of Web Ad(s): \".count($forms).\"\r\n-----------------------------------------------\\n\";\r\n $body .= self::display($forms);\r\n }\r\n \r\n if($_POST['new-collateral'] == 'on'){\r\n $forms = self::getFormData('collateral', 'collateral-files'); \r\n $body .= \"\r\nNumber of Collateral Piece(s): \".count($forms).\"\r\n-----------------------------------------------\\n\";\r\n $body .= self::display($forms);\r\n }\r\n \r\n if($_POST['email-blast'] == 'on'){\r\n $forms = self::getFormData('email', 'email-files');\r\n $body .= \"\r\nNumber of Email Blast(s): \".count($forms).\"<br>\r\n-----------------------------------------------\\n\";\r\n $body .= self::display($forms);\r\n }\r\n \r\n // To send HTML mail, the Content-type header must be set\r\n $headers = 'MIME-Version: 1.0' . \"\\r\\n\";\r\n $headers .= 'Content-type: text/html; charset=iso-8859-1' . \"\\r\\n\";\r\n \r\n // Additional headers\r\n $headers .= \"To: \" .EMAIL_TO . \"\\r\\n\";\r\n $headers .= \"From: $from\" . \"\\r\\n\";\r\n //$headers .= 'Cc: [email protected]' . \"\\r\\n\";\r\n //$headers .= 'Bcc: [email protected]' . \"\\r\\n\";\r\n \r\n //sending eamil\r\n mail(EMAIL_TO, $subject, $body, $headers);\r\n }", "title": "" }, { "docid": "42d2561b18739907f99f18303c205326", "score": "0.59779793", "text": "public function actionFeedback()\n\t{\n\t\t$model = new ContactForm;\n\n\t\tif(isset($_POST['ContactForm'])) {\n\t\t\t$model->attributes = $_POST['ContactForm'];//die(print_r($model));\n\t\t\tif($model->validate()) {\n\t\t\t\t$body = $this->renderPartial('_contact', array('model'=>$model), true);\n $headers= \"From: {$model->email}\\r\\nReply-To: {$model->email}\";\n\t\t\t\tmail(Yii::app()->params['adminEmail'],'Feedback - TheJigsawPuzzles.com',$body,$headers);\n\t\t\t\tYii::app()->user->setFlash(\n 'feedback',\n '<strong>Thank you - your message has been sent</strong>.<br/><br/>\n If necessary, we will be in contact as soon as possible.');\n\t\t\t\t$this->refresh();\n\t\t\t}\n } else { // Данные для подстановки в поля (разные модели)\n if (!Yii::app()->user->isGuest) {\n $user = Yii::app()->db\n ->createCommand('\n SELECT u.email, p.fullname\n FROM user_users u\n LEFT JOIN user_profiles p ON u.id=p.user_id\n WHERE u.id = '.Yii::app()->user->id.'\n LIMIT 1')\n ->queryRow();\n $model->name = $user['fullname'];\n $model->email = $user['email'];\n }\n }\n\t\t$this->render('feedback',array('model'=>$model));\n\t}", "title": "" }, { "docid": "c0899acb936338227549f13f0a20ac35", "score": "0.597201", "text": "function Manual_Mailer($owner, $srq_user, $srq_user_email){\n\t//check to make sure admin is logged in\n\tsession_start();\n\tif (!isset($_SESSION[\"admin\"])) {\n\t header(\"Location: /itsrq/login.php?url=\" . urlencode($_SERVER[\"SCRIPT_NAME\"]) . \"?action=\" . urlencode($_REQUEST['action']) . \"&post_ID=\" . urlencode($_REQUEST['post_ID']));\n\t}\n\tsrqheader($owner);//create logo banner at top of page\n\t//setup menu under logo banner\n\tdiv_beg(\"id_menu\");\n anchor(\"it_srq.php?action=Admin\", \"Back To Admin Panel\", \"clamenuitem\");\n anchor(\"http://pcsfamily.org/index.php?section=160\", \"Back To $owner&#39;s Request System Home\", \"clamenuitem\");\n div_end();\n br();\n hr();\n//set the php.ini file to be able to send emails\n// -to do this you HAVE to change the SMTP setting\n// the smtp_port's default is \"25\"\nini_set(\"SMTP\", \"exchange.peoriachristian.org\");\nini_set(\"smtp_port\", \"25\");\n\n//Creates the list of people to send the email to as designated in users.php\n// !!! - WILL EVENTUALLY CHANGE TO CONFIG.PHP, BE SURE TO CHANGE THIS - !!!\n//foreach ($srq_user_email as $key => $value) {\n// $MailTo .= \"[email protected], \";\n//}\n\n\n$MailTo = $_REQUEST['MailTo'];\n//for debug and echo confirmation...\necho $MailTo;\n\n$MailSubject = $_REQUEST['MailSubject'];\n$MailBody = $_REQUEST['MailBody'];\n$MailHeader = 'From: [email protected]';\n$SuccessMsg = 'Your message has been forwarded to the requested party.';\n$FailureMsg = 'There has been a problem forwarding your message to the requested party.\n\t\t\tPlease resend your message. We apologize for this\n\t\t\tinconvenience.';\n$IncompleteMsg = 'You left out some required data. <strong>Please click the Back button\n\t\t\ton your browser to return to the \n\t\t\tInformation Request Form.</strong> Then complete all required data and resubmit the form.\n\t\t\tIt seems you did not complete the following: ';\n\n$Data = '###############Start of Record##################'. \"\\n\\n\";\n\n##############This small function tests to make sure data is ok and returns errors where appropriate.\nfunction ListAll($aVal, $aKey, &$List)\n{\n\tglobal $Incomplete;\tif(($aVal == '') && (stristr($_POST['Required'],$aKey)))\n\t{\n\t\t$Incomplete = $Incomplete.$aKey.', ';\n\t}\n\t$List = $List.$aKey.' = '.$aVal.\"\\n\";\n}//endfunction\n##############\n$Success = array_walk($_POST, 'ListAll', &$Data);\nif($Success)\n{\n\tif($Incomplete == '')\n\t{\n\t\t//#####This actually sends the message after it passes all the tests.\n\t\tif(mail($MailTo,$MailSubject,$MailBody,$MailHeader))\n\t\t{\n\t\t\techo \"<p>$SuccessMsg</p>\";\n\t\t\techo $Incomplete;\n\t\t}\n\t\telse\n\t\t{\n\t\t\techo \"<p>$FailureMsg (mail failure)</p>\";\n\t\t}//endif\n\t}\n\telse\n\t{\n\t\techo \"<p>$IncompleteMsg <br><br> $Incomplete</p>\";\n\t}//endif\n}\nelse\n{\t\n\techo \"<p>$FailureMsg (array_walk failure)</p>\";\n}//endif\n\n//end body and html tags\n\tbody_end();\n\thtml_end();\n\n}", "title": "" }, { "docid": "3c76525d2c9343fb681268508973130e", "score": "0.59702855", "text": "function email_activation($activationCode, $form) {\n $emailaddress = $this->fields[11]->getData();\n //$site_address = SITE_ADDRESS . (substr(SITE_ADDRESS, -1) == '/') ? '' : '/';\n //$link = $site_address.'join/activate?code='.$activationCode;\n $link = 'http://www.prodentalcpd.com/join/activate?code=' . $activationCode;\n $body = '<p>Welcome to RD Surgery</p><p>Please click on the link below to activate your account</p>' .\n '<p>Take advantage of our Premium Membership (discounted introductory offer) of only £25 per year - Upgrade Now.</p>' .\n \"<p><a href=\\\"$link\\\">$link</a></p><p>Thankyou, the RD Surgery Team</p>\";\n $body_text = strip_tags(str_replace('</p>', \"\\r\\n\", $body));\n $from_email_address = $form['email'];\n $this->send_mail($emailaddress, SITE_NAME, $from_email_address, 'Account Activation', $body, $body_text);\n }", "title": "" }, { "docid": "5f27026741603aeb22a1e37cb59cb87f", "score": "0.5967351", "text": "public function send_registration_email($post_fields){\r\n extract($post_fields);\r\n \r\n //get seminar data\r\n $Seminars=new SrmSeminars();\r\n $seminar_data=$Seminars->get_seminar($seminar_id);\r\n $registrant_price=$seminar_data['registrant_price'];\r\n \r\n //get coupon data\r\n if (!empty($coupon_code)):\r\n $CouponCodes=new SrmCouponCodes();\r\n $coupon_code_data=$CouponCodes->check_coupon_code($coupon_code);\r\n if (!$coupon_code_data['has_errors']):\r\n $registrant_price=$coupon_code_data['return_data']['registrant_price'];\r\n endif;\r\n $coupon_code=strtoupper($coupon_code);\r\n endif;\r\n \r\n //add up the total\r\n $total_amount=$registrant_price;\r\n $total_amount+=($registrant_price*$additional_registrants);\r\n \r\n //set up the message\r\n $message=\"\r\n <html>\r\n <body>\r\n <p>\r\n <strong>\".ucwords(strtolower(SRM_DEFAULT_NAME)).\":</strong> ID #\".$seminar_data['id'].\" \".$seminar_data['title'].\"\r\n <br />\r\n <strong>Registrant Name:</strong> $fname $mname $lname\r\n <br />\r\n <strong>Coupon Code:</strong> $coupon_code\r\n <br />\r\n <strong>Doctor Price:</strong> $\".$registrant_price.\"\r\n <br />\r\n <strong>Phone:</strong> $phone\r\n <br />\r\n <strong>Email:</strong> $email\r\n <br />\r\n <strong>Additional Registrants:</strong> $additional_registrants\r\n <br />\r\n <strong>Total Amount:</strong> $\".$total_amount.\"\r\n </p>\r\n </body>\r\n </html>\r\n \";\r\n \r\n //send the message\r\n $headers = \"MIME-Version: 1.0\\n\";\r\n $headers .= \"Content-type: text/html; charset=utf-8\\n\";\r\n $headers .= \"From: \".SRM_MAIL_FROM.\"\\n\";\r\n $headers .= \"Reply-To: \".SRM_MAIL_FROM.\"\\n\"; \r\n $subject='New '.ucwords(strtolower(SRM_DEFAULT_NAME)).' Registration!';\r\n mail(SRM_ADMIN_EMAIL, $subject, $message, $headers);\r\n mail($email, $subject, $message, $headers);\r\n }", "title": "" }, { "docid": "3bd5ed5a11dd07aba671f390a73c9262", "score": "0.59639347", "text": "public function getContent()\n {\n if (\\Tools::isSubmit('submit' . $this->name)) {\n $this->saveSettings();\n }\n\n // Submit Support Request\n if (\\Tools::isSubmit('submitSupportRequest')) {\n $ticket = \\Tools::getValue('support_ticket');\n $email = \\Tools::getValue('support_email');\n $description = \\Tools::getValue('support_description');\n\n $hasErrors = false;\n if (!empty($ticket) && !preg_match(\\Tools::cleanNonUnicodeSupport('/^[^<>]*$/u'), $ticket)) {\n $this->form_html .= $this->displayError($this->trans('form.support.validation.ticket_failed', [], 'messages'));\n $hasErrors = true;\n }\n\n if (empty($email)) {\n $this->form_html .= $this->displayError($this->trans('form.support.validation.email_required', [], 'messages'));\n $hasErrors = true;\n } elseif (!filter_var($email, FILTER_VALIDATE_EMAIL)) {\n $this->form_html .= $this->displayError($this->trans('form.support.validation.email_invalid', [], 'messages'));\n $hasErrors = true;\n }\n\n if (!$hasErrors) {\n // Export settings to temporary file\n $filename = sprintf('settings_%s_%s.json', \\Tools::getShopDomain(), date('dmY_H_i_s'));\n if (!empty($ticket)) {\n $filename = sprintf('settings_%s_%s_%s.json', \\Tools::getShopDomain(), $ticket, date('dmY_H_i_s'));\n }\n\n $data = $this->connector->coreLibrary->getConfiguration()->export();\n $contents = json_encode($data, JSON_PRETTY_PRINT);\n file_put_contents(sys_get_temp_dir() . DIRECTORY_SEPARATOR . $filename, $contents);\n\n // Get Platform\n $platform = $this->connector->requestShoppingCartExtensionId();\n\n // Prepare subject\n if (!empty($ticket)) {\n $subject = sprintf('Exported settings related to the ticket nr [%s]', $ticket);\n } else {\n $subject = sprintf('%s: Issues configuring the site %s', $platform, \\Tools::getShopDomain());\n }\n\n // Send E-mail\n $result = $this->connector->sendSupportEmail(\n $email,\n $subject,\n [\n Connector::PARAM_NAME_PLATFORM => $platform,\n Connector::PARAM_NAME_TICKET => $ticket,\n Connector::PARAM_NAME_DESCRIPTION => $description\n ],\n sys_get_temp_dir() . DIRECTORY_SEPARATOR . $filename\n );\n\n // Remove temporary file\n @unlink(sys_get_temp_dir() . DIRECTORY_SEPARATOR . $filename);\n\n if ($result) {\n $this->form_html .= $this->displayConfirmation($this->trans('form.support.validation.mail_sent', [], 'messages'));\n } else {\n $this->form_html .= $this->displayError($this->trans('form.support.validation.mail_failed', [], 'messages'));\n }\n }\n }\n\n // Import Settings\n if (\\Tools::isSubmit('submitImportSettings')) {\n // Upload file\n if (empty($_FILES['support-import']['tmp_name'])) {\n $this->form_html .= $this->displayError($this->trans('form.support.validation.file_required', [], 'messages'));\n } elseif (file_exists($_FILES['support-import']['tmp_name']) &&\n is_uploaded_file($_FILES['support-import']['tmp_name'])\n ) {\n try {\n // Security: check mime type\n $mime = mime_content_type($_FILES['support-import']['tmp_name']);\n if ($mime !== 'text/plain') {\n throw new \\Exception($this->trans('validator.mime_text_only', [], 'messages'));\n }\n\n $contents = \\Tools::file_get_contents($_FILES['support-import']['tmp_name']);\n $data = @json_decode($contents, true);\n\n // Validate data\n if (!is_array($data) || !isset($data['test']) || !isset($data['production'])) {\n $this->form_html .= $this->displayError($this->trans('form.support.invalid_json_data', [], 'messages'));\n } else {\n $this->connector->coreLibrary->getConfiguration()->import($data);\n $this->form_html .= $this->displayConfirmation($this->trans('form.support.import_success', [], 'messages'));\n }\n } catch (\\Exception $e) {\n $this->form_html .= $this->displayError($e->getMessage());\n }\n }\n }\n\n // Export Settings\n if (\\Tools::isSubmit('submitExportSettings')) {\n $filename = sprintf('settings_%s_%s.json', \\Tools::getShopDomain(), date('dmY_H_i_s'));\n $data = $this->connector->coreLibrary->getConfiguration()->export();\n $contents = json_encode($data, JSON_PRETTY_PRINT);\n\n header('Content-Type: application/json');\n header('Content-Disposition: attachment; filename=\"' . $filename . '\";');\n echo $contents;\n exit();\n }\n\n // Account creation language\n $lang = 1; // Default, english\n if (isset(IngenicoCoreLibrary::$accountCreationLangCodes[$this->context->language->iso_code])) {\n $lang = IngenicoCoreLibrary::$accountCreationLangCodes[$this->context->language->iso_code];\n }\n\n // Countries which available to chose\n $payment_countries = $this->connector->getAllCountries();\n\n // Countries which available to create account\n $create_account_countries = $this->connector->getAllCountries();\n unset(\n $create_account_countries['SE'],\n $create_account_countries['FI'],\n $create_account_countries['DK'],\n $create_account_countries['NO']\n );\n\n // Blank payment methods\n $flex_methods = Utils::getConfig('FLEX_METHODS');\n if (!$flex_methods) {\n $flex_methods = '[]';\n }\n json_decode($flex_methods);\n if (json_last_error() !== JSON_ERROR_NONE) {\n $flex_methods = '[]';\n }\n\n // Assign Smarty values\n $this->smarty->assign(\n array_merge(\n $this->connector->requestSettings($this->connector->requestSettingsMode()),\n [\n 'connector' => $this->connector,\n 'path' => $this->getPathUri(),\n //'is_migration_available' => Migration::isOldModuleInstalled() && !Migration::isMigrationWasPerformed(),\n 'is_migration_available' => false,\n 'migration_ajax_url' => $this->getControllerUrl('migrate'),\n 'installed' => (bool) Utils::getConfig('installed'),\n 'installation' => Utils::getConfig('installation'),\n 'action' => \\AdminController::$currentIndex .\n '&configure=' . $this->name .\n '&token=' . \\Tools::getAdminTokenLite('AdminModules'),\n 'webhook_url' => $this->getControllerUrl('webhook'),\n 'payment_methods' => $this->connector->coreLibrary->getPaymentMethods(),\n 'payment_categories' => $this->connector->getPaymentCategories(),\n 'payment_countries' => $payment_countries,\n 'create_account_countries' => $create_account_countries,\n 'ingenico_ajax_url' => $this->getControllerUrl('ajax'),\n 'template_dir' => dirname(__FILE__) . '/views/templates/',\n 'module_name' => $this->name,\n 'account_creation_lang' => $lang,\n 'admin_email' => \\Context::getContext()->employee->email,\n\n // WhiteLabels\n 'logo_url' => $this->connector->coreLibrary->getWhiteLabelsData()->getLogoUrl(),\n 'ticket_placeholder' => $this->connector->coreLibrary->getWhiteLabelsData()->getSupportTicketPlaceholder(),\n 'template_guid_ecom' => $this->connector->coreLibrary->getWhiteLabelsData()->getTemplateGuidEcom(),\n 'template_guid_flex' => $this->connector->coreLibrary->getWhiteLabelsData()->getTemplateGuidFlex(),\n 'template_guid_paypal' => $this->connector->coreLibrary->getWhiteLabelsData()->getTemplateGuidPaypal(),\n\n // Blank payment methods\n 'flex_methods' => $flex_methods,\n 'uploads_dir' => $this->context->link->getBaseLink() . '/upload/ingenico/'\n ]\n )\n );\n\n // Render templates\n foreach (['settings-header', 'form'] as $template) {\n $this->form_html .= $this->display(\n __FILE__,\n $template . '.tpl'\n );\n }\n\n return $this->form_html;\n }", "title": "" }, { "docid": "f89cd514d427fd8ace65623200d55fb0", "score": "0.5963078", "text": "function Send(){\n \t$header = \"From: $this->from \\r\\n\";\n $header .= \"MIME-Version: 1.0 \\r\\n\";\n \t$header .= \"Content-type: text/html; charset=iso-8859-1 \\r\\n\";\n \t\n \n \t//mail($this->to,\"$this->subject\",\"$this->message\",\"$header\");\n TemplateLogger::Debug(\"Mail $this->subject to $this->to \" );\n TemplateLogger::Debug($this->subject);\n TemplateLogger::Debug($this->message);\n TemplateLogger::Debug($this->header);\n }", "title": "" }, { "docid": "c711a08648153b633f101e8a1a25d44f", "score": "0.5962568", "text": "public function SendWelcomeEmail() {\n $welcomemsg = \"Welcome to Princify. Thank you for registering, your temporary password is: $this->pass Please goto beta.princify.com/login.php to login now.\";\n $to = $this->email;\n $subject = \"Welcome to Princify\";\n $headers = \"From: Prinify <[email protected]> \";\n mail($to, $subject, $welcomemsg, $headers);\n }", "title": "" }, { "docid": "ad4ac2dda845fdcca16913700778f927", "score": "0.59496045", "text": "function form_mail($sPara, $sAsunto, $sTexto, $sDe){\n $sCabeceraTexto = \"\"; \n\n if ($sDe) \n $sCabeceras = \"From:\".$sDe.\"\\n\"; \n else \n $sCabeceras = \"\"; \n $sCabeceras .= \"MIME-version: 1.0\\n\"; \n foreach ($_POST as $sNombre => $sValor){\n if($sNombre != \"enviar\")\n $sTexto = $sTexto.\"\\n\".$sNombre.\": \".$sValor;\n }\n\n //retorna el envio para el mensaje\n return(mail($sPara, $sAsunto, $sTexto, $sCabeceras)); \n }", "title": "" }, { "docid": "158471d969217191ec5fbd98bcd38f98", "score": "0.59468603", "text": "public function sendenquiry() {\n $data = array();\n $data['title'] = ['' => trans('admin/admin.select_option')] + titles();\n $data['how_hear'] = ['' => trans('admin/admin.select_option')] + Howfind::getHowFindEnquiry() + [OTHER_VALUE => trans('admin/admin.how_find_other')];\n $data['JsValidator'] = 'App\\Http\\Requests\\Enquiry\\EnquiryRequest';\n return view('enquiry.sendenquiry', $data);\n }", "title": "" }, { "docid": "c5f00bb8ef134442f3c99e685ee57317", "score": "0.5945565", "text": "function bibdk_heimdal_verify_email_form_submit($form, &$form_state) {\n $mail = $form_state['values']['mail'];\n $agencies = bibdkHeimdalUser::getLibraries();\n\n $access_token = $_SESSION['heimdal']['access_token'];\n\n // save on database before sending email\n $key = heimdalDatabase::insert($mail, $agencies, $access_token);\n if ($key === FALSE) {\n bibdk_heimdal_cleanup_and_exit(NULL,TRUE);\n }\n\n $row = heimdalDatabase::get($key);\n if (!empty($row)) {\n bibdk_heimdal_send_verification_mail($row);\n }\n else {\n // this is an ajax submit - to redirect pass ajax to method\n bibdk_heimdal_cleanup_and_exit(NULL,TRUE);\n }\n // an email has been sent - start from scratch .. almost\n unset($_SESSION['heimdal']);\n // do remember that we ARE logged in with heimdal\n $_SESSION['heimdal']['logged_in'] = TRUE;\n\n drupal_set_message(t('an_email_has_been_sent_help_txt', array(), array('context' => 'heimdal')));\n}", "title": "" }, { "docid": "49494507c755a6518b303c0654aab545", "score": "0.5940675", "text": "public function store(Request $request)\n {\n $validatedData = $request->validate([\n 'name' => 'required',\n 'email' => 'required',\n 'number' => 'required|numeric',\n 'message' => 'required'\n ]);\n\n $now = date('Y-m-d H:i:s');\n\n $contactTable = array('name' => $request->input('name'), 'email' => $request->input('email'), 'number' => $request->input('number'), 'message' => $request->input('message'), 'formSubmissionTime' => $now);\n\n // Inserts contact form submission array into the form submissions table in the database\n $insert = DB::table('contactFormSubmissions')->insert($contactTable);\n\n // Send message via email to all site admins\n $allConsentUsers = DB::select('SELECT email, name FROM users WHERE userLevel_id = 1');\n $toMessage = [];\n\n // Loop through all sites admins and compose email to each\n foreach($allConsentUsers as $consent){\n $toMessage[] = [ \n 'From' => [\n 'Email' => \"[email protected]\",\n 'Name' => \"Worcester Cars\"\n ],\n 'To' => [\n [\n 'Email' => $consent->email, \n 'Name' => $consent->name\n ]\n ],\n 'ReplyTo' => [\n 'Email' => $request->input('email'),\n 'Name' => $request->input('name')\n ],\n 'Subject' => \"New Website Message\",\n 'HTMLPart' => \"Name: \".$request->input('name').\" <br />Email: \".$request->input('email').\" <br />Phone Number: \".$request->input('number').\" <br />Message: \".$request->input('message').\"\"\n ];\n } \n\n $mj = new \\Mailjet\\Client('a513843cbd376e6de6e6c79f2efc51d7','9fe7604278c5c3473fe317a28daff371',true,['version' => 'v3.1']);\n $body = [\n 'Messages' => $toMessage,\n ];\n\n $response = $mj->post(Resources::$Email, ['body' => $body]);\n \n if($insert){\n echo \"Message Sent\";\n }else{\n echo \"Error Sending Message\";\n }\n }", "title": "" }, { "docid": "e724a44dcfd6eb472bf6f4f7b199f40a", "score": "0.5938921", "text": "function sendCompleted($requisitioner,$PO_ID,$purpose,$PONum,$purchaser) {\n\tglobal $default;\n\n\t/* Get/Set Requisitioner information */\n\t$RequisitionerName=getEmployee($requisitioner);\n\t$RequisitionerFullname=caps($RequisitionerName['fst'] . ' ' . $RequisitionerName['lst']);\n\t$sendTo=$RequisitionerName['email'];\n\n\t/* Get/Set Purchaser information */\n\t$PurchaserName=getEmployee($requisitioner);\n\t$PurchaserFullname=caps($PurchaserName['fst'] . ' ' . $PurchaserName['lst']);\n\t\t\n/* Email message */\t\t\t\n$message_body = <<< END_OF_HTML\nPurchase Requisition Number <b>$PO_ID</b> has been completed by <a href=\"$default[URL_HOME]/PO/comments.php?action=comment&eid=$purchaser&request_id=$PO_ID&type=private\">$PurchaserFullname</a>.<br>\nThe Purchase Order Number for this Requisition is <b>$PONum</b> and has been sent to the vendor.<br>\n<br>\nThe purpose for this Requisition is: <b>$purpose</b><br>\nEND_OF_HTML;\n\n\t/* Request URL */\n\t//$url = $default['URL_HOME'].\"/PO/detail.php?id=\".$PO_ID;\n\t$url = $default['URL_HOME'].\"/u.php?q=1/\".$PO_ID;\n\t\t\t\t \n\t// ---------- Start Email Comment\n\trequire_once(\"phpmailer/class.phpmailer.php\");\n\n\t$mail = new PHPMailer();\n\t\n\t$mail->From = $default['email_from'];\n\t$mail->FromName = $default['title1'];\n\t$mail->Host = $default['smtp'];\n\t$mail->Mailer = \"smtp\";\n\t$mail->AddAddress($sendTo, $RequisitionerFullname);\n\t$mail->Subject = \"Vendor Kickoff for Requisition \".$PO_ID.\": \".$purpose;\n\n\t$htmlBody = message1($message_body, $url);\t\n\n\t$mail->Body = $htmlBody;\n\t$mail->isHTML(true);\n\tif(!$mail->Send())\n\t{\n\t\techo \"Failed to send email to: \" . $sendTo . \"<br>\";\n\t}\n\t\n\t// Clear all addresses and attachments for next loop\n\t$mail->ClearAddresses();\n\t$mail->ClearAttachments();\n}", "title": "" }, { "docid": "de90a142c0c6f576ac520174ec4d328f", "score": "0.5938721", "text": "public function mailAskquestion () {\n\n\t\tvRequest::vmCheckToken();\n\n\t\t$model = VmModel::getModel('vendor');\n\t\t$mainframe = JFactory::getApplication();\n\t\t$vars = array();\n\t\t$min = VmConfig::get('asks_minimum_comment_length', 50)+1;\n\t\t$max = VmConfig::get('asks_maximum_comment_length', 2000)-1 ;\n\t\t$commentSize = vRequest::getString ('comment');\n\t\tif (function_exists('mb_strlen')) {\n\t\t\t$commentSize = mb_strlen($commentSize);\n\t\t} else {\n\t\t\t$commentSize = strlen($commentSize);\n\t\t}\n\n\t\t$validMail = filter_var(vRequest::getVar('email'), FILTER_VALIDATE_EMAIL);\n\n\t\t$virtuemart_vendor_id = vRequest::getInt('virtuemart_vendor_id',1);\n\n\t\t$userId = VirtueMartModelVendor::getUserIdByVendorId($virtuemart_vendor_id);\n\n\t\t//$vendorUser = JFactory::getUser($userId);\n\n\t\tif ( $commentSize<$min || $commentSize>$max || !$validMail ) {\n\t\t\t$this->setRedirect(JRoute::_ ( 'index.php?option=com_virtuemart&view=vendor&task=contact&virtuemart_vendor_id=' . $virtuemart_vendor_id , FALSE),vmText::_('COM_VIRTUEMART_COMMENT_NOT_VALID_JS'));\n\t\t\treturn ;\n\t\t}\n\n\t\t$user = JFactory::getUser();\n\n\t\tif($user->guest==1) {\n\t\t\tif(!$this->checkCaptcha( 'index.php?option=com_virtuemart&view=vendor&layout=contact&virtuemart_vendor_id=1' ) ){\n\t\t\t\treturn ;\n\t\t\t}\n\t\t}\n\n\t\t$fromMail = vRequest::getVar('email');\t//is sanitized then\n\t\t$fromName = vRequest::getVar('name','');//is sanitized then\n\t\t$fromMail = str_replace(array('\\'','\"',',','%','*','/','\\\\','?','^','`','{','}','|','~'),array(''),$fromMail);\n\t\t$fromName = str_replace(array('\\'','\"',',','%','*','/','\\\\','?','^','`','{','}','|','~'),array(''),$fromName);\n\t\tif (!empty($user->id)) {\n\t\t\tif(empty($fromMail)){\n\t\t\t\t$fromMail = $user->email;\n\t\t\t}\n\t\t\tif(empty($fromName)){\n\t\t\t\t$fromName = $user->name;\n\t\t\t}\n\t\t}\n\n\t\t$vars['user'] = array('name' => $fromName, 'email' => $fromMail);\n\n\t\t$VendorEmail = $model->getVendorEmail($virtuemart_vendor_id);\n\t\t$vars['vendor'] = array('vendor_store_name' => $fromName );\n\n\t\tif (shopFunctionsF::renderMail('vendor', $VendorEmail, $vars,'vendor')) {\n\t\t\t$string = 'COM_VIRTUEMART_MAIL_SEND_SUCCESSFULLY';\n\t\t}\n\t\telse {\n\t\t\t$string = 'COM_VIRTUEMART_MAIL_NOT_SEND_SUCCESSFULLY';\n\t\t}\n\t\t$mainframe->enqueueMessage(vmText::_($string));\n\n\t\t// Display it all\n\t\t$view = $this->getView('vendor', 'html');\n\n\t\t$view->setLayout('mail_confirmed');\n\t\t$view->display();\n\t}", "title": "" }, { "docid": "a8db35c2373a74f41bbddcb44f3a5b23", "score": "0.59370476", "text": "public function contactMsg()\n {\n\n $appSetting = $this->common_model->get_setting();\n \n $data['fromName'] = $this->input->post('name');\n $data['from'] = $this->input->post('email');\n $data['to'] = $appSetting->email;\n $data['subject'] = $this->input->post('subject');\n $data['title'] = $this->input->post('email');\n $data['message'] = \"<b>Message: </b>\".$this->input->post('comment');\n\n $this->common_model->send_email($data);\n\n }", "title": "" } ]
b2811f993d158202d540aac3e8ad9674
UrlWL::addToBreadCrumbs() Add item array to Bread Crumbs Array function.
[ { "docid": "b2062a8387f8255f9aa4a752e6b2a8b9", "score": "0.76171553", "text": "public function addToBreadCrumbs(array $item) {\n if(!empty($item)) $this->arNavPath[] = $item;\n }", "title": "" } ]
[ { "docid": "c1e10a3f71aca156a65eba997a69e75b", "score": "0.7300603", "text": "public static function addBreadcrumbList()\n {\n $view = Yii::$app->getView();\n\n $breadcrumbList = [];\n if (isset($view->params['breadcrumbs'])) {\n $position = 1;\n foreach ($view->params['breadcrumbs'] as $breadcrumb) {\n if (is_array($breadcrumb)) {\n $breadcrumbList[] = (object)[\n \"@type\" => \"http://schema.org/ListItem\",\n \"http://schema.org/position\" => $position,\n \"http://schema.org/item\" => (object)[\n \"@id\" => Url::to($breadcrumb['url'], true),\n \"http://schema.org/name\" => $breadcrumb['label'],\n ]\n ];\n } else {\n // Is it ok to omit URL here or not? Google is not clear on that:\n // http://stackoverflow.com/questions/33688608/how-to-markup-the-last-non-linking-item-in-breadcrumbs-list-using-json-ld\n $breadcrumbList[] = (object)[\n \"@type\" => \"http://schema.org/ListItem\",\n \"http://schema.org/position\" => $position,\n \"http://schema.org/item\" => (object)[\n \"http://schema.org/name\" => $breadcrumb,\n ]\n ];\n }\n $position++;\n }\n }\n\n $doc = (object)[\n \"@type\" => \"http://schema.org/BreadcrumbList\",\n \"http://schema.org/itemListElement\" => $breadcrumbList\n ];\n\n JsonLDHelper::add($doc);\n }", "title": "" }, { "docid": "a86479c816c3b57626c67a15e1b0452f", "score": "0.7029527", "text": "public function createBreadcrumbs(array $items): array;", "title": "" }, { "docid": "f6ff01ccb82130ab1d3ae9f2d5508596", "score": "0.68998885", "text": "function mm_content_add_breadcrumb($crumb) {\n mm_parse_args($mmtids, $oarg_list, $this_mmtid);\n\n $bread = drupal_get_breadcrumb();\n if ($mmtids) {\n $bread[] = l(drupal_get_title(), \"mm/$this_mmtid\");\n drupal_set_breadcrumb($bread);\n }\n drupal_set_title($crumb);\n\n global $_mm_content_saved_breadcrumb;\n $_mm_content_saved_breadcrumb = array($bread, $crumb);\n}", "title": "" }, { "docid": "ae9b42d96bfe3abe0df80ff4f139a0fd", "score": "0.68914515", "text": "function add_bread_crumbs() {\n Angie_BreadCrumbs::addByFunctionArguments(func_get_args());\n }", "title": "" }, { "docid": "3eb9640d5e88c45ff9d08074b14f3735", "score": "0.68465567", "text": "private function add_breadcrumbs()\n {\n }", "title": "" }, { "docid": "1e056877889ebb41136f49856f1f9f55", "score": "0.6607125", "text": "function addCrumb($name, $link) {\r\n\t\t$this->_crumbs[] = array($name, $link);\r\n\t}", "title": "" }, { "docid": "c55e01a67e2ae9c09a7387b0e4f88165", "score": "0.6556856", "text": "protected function _addBreadcrumb()\n\t{\n\t\t$breadcrumbs = BluApplication::getBreadcrumbs();\n\t\t$breadcrumbs->add($this->_controllerName, '/'.strtolower($this->_controllerName));\n\t}", "title": "" }, { "docid": "27e4cbb89adf3a311748360805423626", "score": "0.65150476", "text": "public function getBreadCrumbs() {\n $breadCrumbs = array();\n\n $breadCrumbs[] = array(\n \"label\" => $this->config[\"table\"][\"title\"],\n \"url\" => isset($this->customeURLRaw) ? $this->customeURLRaw : $this->_selfURLRaw(),\n );\n\n switch ($this->getAction()) {\n case \"formAddRender\":\n $breadCrumbs[] = array(\n \"label\" => isset($this->pageTitle) ? $this->pageTitle : \"Ajouter un\" . $this->config[\"table\"][\"suffix_genre\"] . \" \" . $this->config[\"table\"][\"title_item\"],\n \"url\" => \"\",\n );\n\n break;\n case \"formEditRender\":\n $breadCrumbs[] = array(\n \"label\" => isset($this->pageTitle) ? $this->pageTitle : \"Modifier un\" . $this->config[\"table\"][\"suffix_genre\"] . \" \" . $this->config[\"table\"][\"title_item\"],\n \"url\" => \"\",\n );\n\n break;\n case \"show\":\n $breadCrumbs[] = array(\n \"label\" => isset($this->pageTitle) ? $this->pageTitle : \"Détails \" . $this->config[\"table\"][\"title_item\"],\n \"url\" => \"\",\n );\n\n break;\n\n default:\n break;\n }\n\n return $breadCrumbs;\n }", "title": "" }, { "docid": "4118bc942a0ffbc309ce76bcb53c94a8", "score": "0.6427762", "text": "public function addBreadcrumb()\n\t{\n\n\t\t// Knoten in Session speichern\n\t\tif (isset($_GET['node']))\n\t\t{\n\t\t\t$this->Session->set('tl_fernschach_konten_node', $this->Input->get('node'));\n\t\t\t$this->redirect(preg_replace('/&node=[^&]*/', '', $this->Environment->request));\n\t\t}\n\t\t$cat = $this->Session->get('tl_fernschach_konten_node');\n\n\t\t// Breadcrumb-Navigation erstellen\n\t\t$breadcrumb = array();\n\t\tif($cat) // Nur bei Unterkategorien\n\t\t{\n\t\t\t// Kategorienbaum einschränken\n\t\t\t$GLOBALS['TL_DCA']['tl_fernschach_konten']['list']['sorting']['root'] = array($cat);\n\t\t\n\t\t\t// Infos zur aktuellen Kategorie laden\n\t\t\t$objActual = \\Database::getInstance()->prepare('SELECT * FROM tl_fernschach_konten WHERE published = ? AND id = ?')\n\t\t\t ->execute(1, $cat);\n\t\t\t$breadcrumb[] = '<img src=\"bundles/contaofernschach/images/ordner_gelb.png\" width=\"18\" height=\"18\" alt=\"\"> ' . $objActual->title;\n\t\t\t\n\t\t\t// Navigation vervollständigen\n\t\t\t$pid = $objActual->pid;\n\t\t\twhile($pid > 0)\n\t\t\t{\n\t\t\t\t$objTemp = \\Database::getInstance()->prepare('SELECT * FROM tl_fernschach_konten WHERE published = ? AND id = ?')\n\t\t\t\t ->execute(1, $pid);\n\t\t\t\t$breadcrumb[] = '<img src=\"bundles/contaofernschach/images/ordner_gelb.png\" width=\"18\" height=\"18\" alt=\"\"> <a href=\"' . \\Controller::addToUrl('node='.$objTemp->id) . '\" title=\"'.specialchars($GLOBALS['TL_LANG']['MSC']['selectNode']).'\">' . $objTemp->title . '</a>';\n\t\t\t\t$pid = $objTemp->pid;\n\t\t\t}\n\t\t\t$breadcrumb[] = '<img src=\"' . TL_FILES_URL . 'system/themes/' . \\Backend::getTheme() . '/images/pagemounts.gif\" width=\"18\" height=\"18\" alt=\"\"> <a href=\"' . \\Controller::addToUrl('node=0') . '\" title=\"'.specialchars($GLOBALS['TL_LANG']['MSC']['selectAllNodes']).'\">' . $GLOBALS['TL_LANG']['MSC']['filterAll'] . '</a>';\n\t\t}\n\t\t$breadcrumb = array_reverse($breadcrumb);\n\n\t\t// Insert breadcrumb menu\n\t\tif($breadcrumb)\n\t\t{\n\t\t\t$GLOBALS['TL_DCA']['tl_fernschach_konten']['list']['sorting']['breadcrumb'] .= '\n\t\t\t<ul id=\"tl_breadcrumb\">\n\t\t\t\t<li>' . implode(' &gt; </li><li>', $breadcrumb) . '</li>\n\t\t\t</ul>';\n\t\t}\n\t}", "title": "" }, { "docid": "319c217074bb5505f6e76e33bb2bc7bc", "score": "0.63269967", "text": "function get_breadcrumbs($array=\"\",$base_url){\n $pages = array_merge(array('Blissville Condos' => ''),$array);\n \n $count = 0;\n $breadcrumb = \"\";\n \n foreach($pages as $title => $link){\n\n $count++;\n //Replace the last link with #\n if($count == count($pages)){\n $breadcrumb.= '<li class=\"active\">'.$title.'</li>'; \n } else {\n // Generate the Breadcrumb\n $breadcrumb.= '<li><a title=\"Go to '.$title.'\" href=\"'.$base_url.$link.'\">'.$title.'</a></li>'; \n }\n\n }\n\n return $breadcrumb;\n}", "title": "" }, { "docid": "897b603415eb7f545ee798eaeffbd38e", "score": "0.63235885", "text": "function _update_breadcrumb_line()\n {\n $tmp = Array();\n\n $tmp[] = Array\n (\n MIDCOM_NAV_URL => \"/\",\n MIDCOM_NAV_NAME => $this->_l10n->get('index'),\n );\n\n $_MIDCOM->set_custom_context_data('midcom.helper.nav.breadcrumb', $tmp);\n }", "title": "" }, { "docid": "715fa5f41a764f5c93e063019ae53bd1", "score": "0.6285207", "text": "public static function BreadCrumb($bread = array())\n {\n if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') {\n $protocolo = 'https';\n } else {\n $protocolo = 'http';\n }\n $server_name = $_SERVER['SERVER_NAME'];\n $baseUrl = $protocolo . '://' . $server_name . '/';\n\n if ($bread['items']) {\n if (array_key_exists('div-options', $bread)) {\n foreach ($bread['div-options'] as $key => $value) {\n echo '<div ' . $key . '=\"' . $value . '\">';\n }\n } else {\n echo \"<div>\";\n }\n if (array_key_exists('ol-options', $bread)) {\n foreach ($bread['ol-options'] as $key => $value) {\n echo '<ol ' . $key . '=\"' . $value . '\">';\n }\n } else {\n echo \"<ol>\";\n }\n for ($i = 0; $i < count($bread['items']); $i++) {\n if (array_key_exists('atts', $bread['items'][$i])) {\n foreach ($bread['items'][$i]['atts'] as $key => $value) {\n echo '<li ' . $key . '=\"' . $value . '\">';\n if (array_key_exists('link', $bread['items'][$i])) {\n if ($bread['items'][$i]['link']) {\n echo '<a href=\"' . $baseUrl . $bread['items'][$i]['link'] . '\">';\n }\n echo $bread['items'][$i]['title'];\n echo \"</a>\";\n echo \"</li>\";\n } else {\n echo $bread['items'][$i]['title'];\n echo \"</li>\";\n }\n }\n } else {\n echo '<li>';\n if ($bread['items'][$i]['link']) {\n echo '<a href=\"' . $baseUrl . $bread['items'][$i]['link'] . '\">';\n }\n echo $bread['items'][$i]['title'];\n echo \"</a>\";\n echo \"</li>\";\n }\n }\n echo \"</ol>\";\n echo \"</div>\";\n }\n }", "title": "" }, { "docid": "dbb03825ef850314a52b8f8c832533ab", "score": "0.62842166", "text": "public function addMany(array $crumbs)\n {\n foreach ($crumbs as $crumb) {\n $text = isset($crumb[0]) ? $crumb[0] : '';\n $url = isset($crumb[1]) ? $crumb[1] : null;\n $this->crumbs[] = $this->makeCrumb($text, $url);\n }\n }", "title": "" }, { "docid": "026f73ff2e4e3fd1275337f1f6366552", "score": "0.62359816", "text": "function add_bread_crumb($title, $url = null, $attributes = null) {\n return Angie_BreadCrumbs::addCrumb(new Angie_BreadCrumb($title, $url, $attributes));\n }", "title": "" }, { "docid": "cfd08b7c416cdfe7bc9a3054fcb3c30c", "score": "0.6222541", "text": "public function setBreadcrumb($value, $key = null)\n {\n if (empty($key)) {\n $this->breadcrumbs[] = $value;\n } else {\n $this->breadcrumbs[$key] = $value;\n }\n }", "title": "" }, { "docid": "48780f9fb06e38c4d4d0a90e4c2b1bcb", "score": "0.617164", "text": "public function breadcrumbs()\n {\n }", "title": "" }, { "docid": "ff284b4ce5567e51ab55dc84d52fd5d1", "score": "0.6141284", "text": "function wpcampus_2018_filter_breadcrumbs( $crumbs ) {\n\n\t$is_feedback = is_page( 'feedback' );\n\n\tif ( is_singular( 'schedule' ) || is_page( 'speakers' ) || $is_feedback ) {\n\n\t\t$new_crumbs = array();\n\n\t\tforeach( $crumbs as $key => $crumb ) {\n\n\t\t\tif ( ! is_numeric( $key ) ) {\n\t\t\t\t$new_crumbs[ $key ] = $crumb;\n\t\t\t} else {\n\t\t\t\t$new_crumbs[] = $crumb;\n\t\t\t}\n\n\t\t\t// Add schedule items after home.\n\t\t\tif ( 'home' === $key ) {\n\n\t\t\t\t$new_crumbs[] = array(\n\t\t\t\t\t'url' => '/schedule/',\n\t\t\t\t\t'label' => __( 'Schedule', 'wpcampus-2018' ),\n\t\t\t\t);\n\n\t\t\t\t// Add session page.\n\t\t\t\tif ( $is_feedback ) {\n\n\t\t\t\t\t// Get the post.\n\t\t\t\t\t$session = get_query_var( 'session' );\n\n\t\t\t\t\t// Get post object.\n\t\t\t\t\tif ( is_numeric( $session ) ) {\n\t\t\t\t\t\t$session_post = get_post( $session );\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$session_post = wpcampus_network()->get_post_by_name( $session, 'schedule' );\n\t\t\t\t\t}\n\n\t\t\t\t\t// Make sure its a valid session.\n\t\t\t\t\tif ( ! empty( $session_post->ID ) ) {\n\n\t\t\t\t\t\t// Make sure its a session.\n\t\t\t\t\t\t$event_type = get_post_meta( $session_post->ID, 'event_type', true );\n\t\t\t\t\t\tif ( 'session' == $event_type ) {\n\n\t\t\t\t\t\t\t$new_crumbs[] = array(\n\t\t\t\t\t\t\t\t'url' => get_permalink( $session_post->ID ),\n\t\t\t\t\t\t\t\t'label' => get_the_title( $session_post->ID ),\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Change feedback label.\n\t\tif ( $is_feedback ) {\n\t\t\t$new_crumbs['current']['label'] = __( 'Feedback', 'wpcampus-2018' );\n\t\t}\n\n\t\treturn $new_crumbs;\n\t}\n\n\t// If only 2 crumbs, remove the crumbs.\n\t/*if ( count( $crumbs ) < 3 ) {\n\t\t$crumbs = array();\n\t}*/\n\n\treturn $crumbs;\n}", "title": "" }, { "docid": "ef048482d9132b3080c347aae2d91494", "score": "0.61292696", "text": "public function getBreadCrumb()\n {\n $aPaths = array();\n $aPath = array();\n\n $iBaseLanguage = oxRegistry::getLang()->getBaseLanguage();\n $aPath['title'] = oxRegistry::getLang()->translateString('GUESTBOOK', $iBaseLanguage, false);\n $aPath['link'] = $this->getLink();\n $aPaths[] = $aPath;\n\n return $aPaths;\n }", "title": "" }, { "docid": "f85bac69708e452803bab8a727d47e45", "score": "0.61259174", "text": "function fly_breadcrumb($breadcrumb){\n if (!empty($breadcrumb)) {\n $breadcrumb['breadcrumb'][] = '<span class=\"active\">' . drupal_get_title() . '</span>';\n return '<div class=\"breadcrumb\">'. implode(' » ', $breadcrumb['breadcrumb']) .'</div>';\n }\n}", "title": "" }, { "docid": "31c2f3807042a8cf7a8675633f79dc26", "score": "0.6085083", "text": "protected function initCrumbs()\n {\n $crumbs = [];\n\n if ($this->isEnabled(self::ADDITIONAL_PAGE_CUSTOMER_ACCOUNT)) {\n $customerAccountCrumb = [\n 'code' => 'customer_account',\n 'title' => __('My Account'),\n 'url' => $this->customerUrlModel->getAccountUrl()\n ];\n\n $newCrumbs = [\n 'customer_form_login' => [\n $customerAccountCrumb,\n [\n 'code' => 'account_login',\n 'title' => __('Customer Login')\n ],\n ],\n 'customer_account_dashboard_info' => [\n $customerAccountCrumb,\n [\n 'code' => 'account_dashboard',\n 'title' => __('Dashboard')\n ],\n ],\n 'customer_edit' => [\n $customerAccountCrumb,\n [\n 'code' => 'account_edit',\n 'title' => __('Account Information'),\n ],\n ],\n 'address_book' => [\n $customerAccountCrumb,\n [\n 'code' => 'address_book',\n 'title' => __('Address Book'),\n ],\n ],\n 'customer_address_edit' => [\n $customerAccountCrumb,\n [\n 'code' => 'address_book',\n 'title' => __('Address Book'),\n 'url' => $this->_urlBuilder->getUrl('customer/address'),\n ],\n [\n 'code' => 'edit_address',\n 'title' => __('Edit Address'),\n ],\n ],\n 'sales.order.history' => [\n $customerAccountCrumb,\n [\n 'code' => 'customer_orders',\n 'title' => __('My Orders'),\n ],\n ],\n 'sales.order.info' => [\n $customerAccountCrumb,\n [\n 'code' => 'customer_orders',\n 'title' => __('My Orders'),\n 'url' => $this->_urlBuilder->getUrl('sales/order/history'),\n ],\n [\n 'code' => 'order_view',\n 'title' => __('Order # %1', $this->getCurrentOrderId()),\n ],\n ],\n 'review_customer_list' => [\n $customerAccountCrumb,\n [\n 'code' => 'product_reviews',\n 'title' => __('My Product Reviews'),\n ],\n ],\n 'customers_review' => [\n $customerAccountCrumb,\n [\n 'code' => 'product_reviews',\n 'title' => __('My Product Reviews'),\n 'url' => $this->_urlBuilder->getUrl('review/customer'),\n ],\n [\n 'code' => 'review_details',\n 'title' => __('Review Details'),\n ],\n ],\n 'downloadable_customer_products_list' => [\n $customerAccountCrumb,\n [\n 'code' => 'downloadable_products',\n 'title' => __('My Downloadable Products'),\n ],\n ],\n 'customer.account.billing.agreement' => [\n $customerAccountCrumb,\n [\n 'code' => 'billing_agreements',\n 'title' => __('Billing Agreements'),\n ],\n ],\n 'sales.recurring.profiles' => [\n $customerAccountCrumb,\n [\n 'code' => 'recurring_profiles',\n 'title' => __('Recurring Profiles'),\n ],\n ],\n 'customer.wishlist' => [\n $customerAccountCrumb,\n [\n 'code' => 'wishlist',\n 'title' => __('Wishlist'),\n ],\n ],\n 'wishlist.sharing' => [\n $customerAccountCrumb,\n [\n 'code' => 'wishlist',\n 'title' => __('Wishlist'),\n 'url' => $this->_urlBuilder->getUrl('wishlist'),\n ],\n [\n 'code' => 'share_whishlist',\n 'title' => __('Share Wishlist'),\n ],\n ],\n 'oauth_customer_token_list' => [\n $customerAccountCrumb,\n [\n 'code' => 'applications',\n 'title' => __('Applications'),\n ],\n ],\n 'customer_newsletter' => [\n $customerAccountCrumb,\n [\n 'code' => 'customer_newsletter',\n 'title' => __('Newsletter Subscriptions'),\n ],\n ],\n ];\n\n $crumbs = array_merge($crumbs, $newCrumbs);\n }\n\n if ($this->isEnabled(self::ADDITIONAL_PAGE_CHECKOUT)) {\n $newCrumbs = [\n 'checkout.root' => [\n [\n 'code' => 'checkout_cart',\n 'title' => __('Shopping Cart'),\n 'url' => $this->_urlBuilder->getUrl('checkout/cart')\n ],\n [\n 'code' => 'checkout_onepage',\n 'title' => __('Checkout'),\n ],\n ],\n 'checkout.success' => [\n [\n 'code' => 'checkout_cart',\n 'title' => __('Shopping Cart'),\n 'url' => $this->_urlBuilder->getUrl('checkout/cart')\n ],\n [\n 'code' => 'checkout_onepage',\n 'title' => __('Checkout'),\n ],\n ],\n 'checkout.failure' => [\n [\n 'code' => 'checkout_cart',\n 'title' => __('Shopping Cart'),\n 'url' => $this->_urlBuilder->getUrl('checkout/cart')\n ],\n [\n 'code' => 'checkout_onepage',\n 'title' => __('Checkout'),\n ],\n ],\n ];\n\n $crumbs = array_merge($crumbs, $newCrumbs);\n }\n\n if ($this->isEnabled(self::ADDITIONAL_PAGE_CART)) {\n $newCrumbs = [\n 'checkout.cart' => [\n [\n 'code' => 'checkout_cart',\n 'title' => __('Shopping Cart'),\n ],\n ],\n ];\n\n $crumbs = array_merge($crumbs, $newCrumbs);\n }\n\n if ($this->isEnabled(self::ADDITIONAL_PAGE_CONTACTS)) {\n $crumbs[ 'contactForm'] = [\n [\n 'code' => 'contacts',\n 'title' => __('Contact Us'),\n ],\n ];\n }\n\n $this->availableCrumbs = $crumbs;\n\n return $this;\n }", "title": "" }, { "docid": "6f0f760f835f0d64d98e39a1f66c0bc2", "score": "0.60708344", "text": "private function createIndexBreadcrumbs()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem($this->get('translator')->trans('home.page', array(), 'breadcrumb'), $this->get(\"router\")->generate(\"gd_home\"));\n $breadcrumbs->addItem($this->get('translator')->trans('your.earnings', array(), 'breadcrumb'), $this->get(\"router\")->generate(\"gd_site_withdrawal\"));\n }", "title": "" }, { "docid": "8621f0679c3e44907567a5b45aa59811", "score": "0.6047199", "text": "private function generateBreadcrumb() {\n global $config;\n\n if($this->url != \"\") {\n $this->breadcrumb = array('Home' => $config['base_url']);\n $cleaned_url = str_replace('//', '/', str_replace($config['base_url'], \"/\", $_SERVER[\"REQUEST_URI\"]));\n $crumbs = explode(\"/\", $cleaned_url);\n array_shift($crumbs);\n foreach($crumbs as $index => $crumb){\n $key = urldecode(ucfirst(str_replace(array(\".jpg\", \".jpg\", \"-\", \"_\"),array(\"\",\"\", \" \", \" \"),$crumb)));\n\n // Remove last url of breadcrumb items\n if($index == count($crumbs) - 1) {\n $this->breadcrumb[$key] = \"\";\n } else {\n $this->breadcrumb[$key] = substr($_SERVER[\"REQUEST_URI\"], 0, strpos($_SERVER[\"REQUEST_URI\"], $crumb) + strlen($crumb));\n }\n }\n }\n }", "title": "" }, { "docid": "fce47978dace2e81a4efc60e5219417f", "score": "0.6031323", "text": "function _addBreadCrumbs($category, $rootId, $displayStyle)\n\t{\n\t global $mainframe;\n\t\t$i = 0;\n\t while (isset($category->id))\n\t {\n\t\t\t$crumbList[$i++] = $category;\n\t\t\tif ($category->id == $rootId)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t $db =& JFactory::getDBO();\n\t $query = 'SELECT *' .\n\t ' FROM #__phocagallery_categories AS c' .\n\t ' WHERE c.id = '.(int) $category->parent_id.\n\t ' AND c.published = 1';\n\t $db->setQuery($query);\n\t $rows = $db->loadObjectList('id');\n\t\t\tif (!empty($rows))\n\t\t\t{\n\t\t\t\t$category = $rows[$category->parent_id];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$category = '';\n\t\t\t}\n\t\t//\t$category = $rows[$category->parent_id];\n\t }\n\n\t $pathway \t\t=& $mainframe->getPathway();\n\t\t$pathWayItems \t= $pathway->getPathWay();\n\t\t$lastItemIndex \t= count($pathWayItems) - 1;\n\n\t for ($i--; $i >= 0; $i--)\n\t {\n\t\t\t// special handling of the root category\n\t\t\tif ($crumbList[$i]->id == $rootId) \n\t\t\t{\n\t\t\t\tswitch ($displayStyle) \n\t\t\t\t{\n\t\t\t\t\tcase 0:\t// 0 - only menu link\n\t\t\t\t\t\t// do nothing\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\t// 1 - menu link with category name\n\t\t\t\t\t\t// replace the last item in the breadcrumb (menu link title) with the current value plus the category title\n\t\t\t\t\t\t$pathway->setItemName($lastItemIndex, $pathWayItems[$lastItemIndex]->name . ' - ' . $crumbList[$i]->title);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\t// 2 - only category name\n\t\t\t\t\t\t// replace the last item in the breadcrumb (menu link title) with the category title\n\t\t\t\t\t\t$pathway->setItemName($lastItemIndex, $crumbList[$i]->title);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} \n\t\t\telse \n\t\t\t{\n\t\t\t\t$pathway->addItem($crumbList[$i]->title, JRoute::_('index.php?option=com_phocagallery&view=category&id='. $crumbList[$i]->id.':'.$crumbList[$i]->alias.'&Itemid='. JRequest::getVar('Itemid', 0, '', 'int') ));\n\t\t\t}\n\t }\n\t}", "title": "" }, { "docid": "743f56b51c9a81c4c0229f0dbc01b85e", "score": "0.60113657", "text": "protected function add_paged_crumb(array $crumbs, $current_indexable)\n {\n }", "title": "" }, { "docid": "6ef8b680918d33600a66f2dff1076940", "score": "0.60002726", "text": "protected function registerBreadcrumbs(string $container, array $item = []): void\n {\n $this->setBreadcrumbsContainer($container);\n\n breadcrumbs()->register('main', function(Builder $bc) use ($item) {\n if (empty($item)) {\n $item = $this->getBreadcrumbsHomeItem();\n }\n\n $bc->push($item['title'], $item['url'], $item['data'] ?? []);\n });\n }", "title": "" }, { "docid": "98726134819407a08188bdb18560e16d", "score": "0.597339", "text": "public function addBreadcrumb()\n\t{\n\t\tBackend::addFilesBreadcrumb();\n\t}", "title": "" }, { "docid": "66d448b56ae55938a15db78a25f6bc1d", "score": "0.596986", "text": "function AddBreadcrumb($title = '', $link = '', $class = '', $suppress = false, $force_link = false)\n\t{\n\t\tif ($title)\n\t\t{\t$b = array('title'=>$title);\n\t\t\tif ($link) $b['link'] = $link;\n\t\t\tif ($class) $b['class'] = $class;\n\t\t\tif ($suppress) $b['suppress'] = true;\n\t\t\tif ($force_link) $b['force_link'] = true;\n\t\t\t\n\t\t\t$this->breadcrumbs[] = $b;\n\t\t\t$this->breadcrumbs[] = array('title' => '&gt;', 'suppress'=>(bool)$suppress);\n\t\t}\n\t}", "title": "" }, { "docid": "165599722a23d6c6b0709cf5c4bb4b9d", "score": "0.5936286", "text": "function MakeCrumbs($path, $links)\n{\n\tglobal $layout_crumbs;\n\n\t$pathPrefix = array(Settings::get(\"breadcrumbsMainName\") => actionLink(\"index\"));\n\t$pathPostfix = array(); //Not sure how this could be used, but...\n\t\n\t$bucket = \"breadcrumbs\"; include(\"lib/pluginloader.php\");\n\n\t$path = $pathPrefix + $path + $pathPostfix;\n\t\n\tforeach($path as $text=>$link)\n\t{\n\t\t$link = str_replace(\"&\",\"&amp;\",$link);\n\t\tif($link)\n\t\t{\n\t\t\t$sep = strpos($text, '<TAGS>');\n\t\t\tif ($sep === FALSE)\n\t\t\t{\n\t\t\t\t$title = $text;\n\t\t\t\t$tags = '';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$title = substr($text, 0, $sep);\n\t\t\t\t$tags = ' '.substr($text, $sep+6);\n\t\t\t}\n\t\t\t$crumbs .= \"<a href=\\\"\".$link.\"\\\">\".$title.\"</a> \".$tags.\" &raquo; \";\n\t\t}\n\t\telse\n\t\t\t$crumbs .= str_replace('<TAGS>', '', $text). \" &raquo; \";\n\t}\n\t$crumbs = substr($crumbs, 0, strlen($crumbs) - 8);\n\t\n\tif($links)\n\t\t$links = \"<ul class=\\\"pipemenu smallFonts\\\">\n\t\t\t$links\n\t\t</ul>\";\n\t\n\t$layout_crumbs = \"\n<div class=\\\"margin\\\">\n\t<div style=\\\"float: right;\\\">\n\t\t$links\n\t</div>\n\t$crumbs\n</div>\";\n}", "title": "" }, { "docid": "97ebe7d78dd7aac6ce02b15d84f69cc9", "score": "0.5934046", "text": "public function get_breadcrumbs()\n {\n $this->render($this->array_renderer, 'urhere');\n $breadcrumbs = $this->array_renderer->toArray();\n foreach ($breadcrumbs as $crumb)\n {\n $crumb['name'] = $crumb['title'];\n unset($crumb['title']);\n }\n return $breadcrumbs;\n }", "title": "" }, { "docid": "37bf1358483fcd2624069eb4841c3738", "score": "0.5931606", "text": "static function make_crumb( $url = false, $text ) {\n\t\tglobal $breadcrumbs;\n\t\t\n\t\t$breadcrumbs[] = array(\n\t\t\t'url' => $url,\n\t\t\t'text' => $text,\n\t\t);\n\t\t\n\t\treturn $breadcrumbs;\n\t}", "title": "" }, { "docid": "99d831a3f990bcef37567ef216d04a76", "score": "0.5917398", "text": "public function unShiftToBreadCrumbs(array $item) {\n if(!empty($item))array_unshift($this->arNavPath, $item);\n }", "title": "" }, { "docid": "1298d126c156100e78af552fc1a3720c", "score": "0.5913164", "text": "public function addBreadcrumb()\n\t{\n\t\t// Set a new node\n\t\tif (isset($_GET['node']))\n\t\t{\n\t\t\t$this->Session->set('tl_page_node', $this->Input->get('node'));\n\t\t\t$this->redirect(preg_replace('/&node=[^&]*/', '', $this->Environment->request));\n\t\t}\n\n\t\t$intNode = $this->Session->get('tl_page_node');\n\n\t\tif ($intNode < 1)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$arrIds = array();\n\t\t$arrLinks = array();\n\n\t\t// Generate breadcrumb trail\n\t\tif ($intNode)\n\t\t{\n\t\t\t$intId = $intNode;\n\n\t\t\tdo\n\t\t\t{\n\t\t\t\t$objPage = $this->Database->prepare(\"SELECT * FROM tl_page WHERE id=?\")\n\t\t\t\t\t\t\t\t->limit(1)\n\t\t\t\t\t\t\t\t->execute($intId);\n\n\t\t\t\tif ($objPage->numRows < 1)\n\t\t\t\t{\n\t\t\t\t\t// Currently selected page does not exits\n\t\t\t\t\tif ($intId == $intNode)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->Session->set('tl_page_node', 0);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t$arrIds[] = $intId;\n\n\t\t\t\t// No link for the active page\n\t\t\t\tif ($objPage->id == $intNode)\n\t\t\t\t{\n\t\t\t\t\t$arrLinks[] = $this->addIcon($objPage->row(), '', null, '', true) . ' ' . $objPage->title;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$arrLinks[] = $this->addIcon($objPage->row(), '', null, '', true) . ' <a href=\"' . $this->addToUrl('node='.$objPage->id) . '\">' . $objPage->title . '</a>';\n\t\t\t\t}\n\n\t\t\t\t// Do not show the mounted pages\n\t\t\t\tif (!$this->User->isAdmin && $this->User->hasAccess($objPage->id, 'pagemounts'))\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t$intId = $objPage->pid;\n\t\t\t}\n\t\t\twhile ($intId > 0);\n\t\t}\n\n\t\t// Check whether the node is mounted\n\t\tif (!$this->User->isAdmin && !$this->User->hasAccess($arrIds, 'pagemounts'))\n\t\t{\n\t\t\t$this->Session->set('tl_page_node', 0);\n\n\t\t\t$this->log('Page ID '.$intNode.' was not mounted', 'tl_page addBreadcrumb', TL_ERROR);\n\t\t\t$this->redirect('contao/main.php?act=error');\n\t\t}\n\n\t\t// Limit tree\n\t\t$GLOBALS['TL_DCA']['tl_page']['list']['sorting']['root'] = array($intNode);\n\n\t\t// Add root link\n\t\t$arrLinks[] = '<img src=\"system/themes/' . $this->getTheme() . '/images/pagemounts.gif\" width=\"18\" height=\"18\" alt=\"\" /> <a href=\"' . $this->addToUrl('node=0') . '\">' . $GLOBALS['TL_LANG']['MSC']['filterAll'] . '</a>';\n\t\t$arrLinks = array_reverse($arrLinks);\n\n\t\t// Insert breadcrumb menu\n\t\t$GLOBALS['TL_DCA']['tl_page']['list']['sorting']['breadcrumb'] .= '\n\n<ul id=\"tl_breadcrumb\">\n <li>' . implode(' &gt; </li><li>', $arrLinks) . '</li>\n</ul>';\n\t}", "title": "" }, { "docid": "f41e4566ff6809d9b2dfb26056433a0a", "score": "0.5910894", "text": "public function getBreadCrumb()\n {\n $aPaths = array();\n $aPath = array();\n\n $iBaseLanguage = oxRegistry::getLang()->getBaseLanguage();\n $aPath['title'] = oxRegistry::getLang()->translateString('SEARCH', $iBaseLanguage, false);\n $aPath['link'] = $this->getLink();\n $aPaths[] = $aPath;\n\n return $aPaths;\n }", "title": "" }, { "docid": "3f176a8265e5dce8b680468851e96b00", "score": "0.59055805", "text": "public function breadcrumbs() {\n $breadcrumbs = $this->app->breadcrumbs();\n if(count($breadcrumbs) > 0) {\n array_push($breadcrumbs, '/');\n }\n return array_merge(\n $breadcrumbs,\n array(\n ['Configurations' => \\URL::action('ConfigController@index', $this->app->id)],\n '/',\n [e($this->name) => \\URL::action('ConfigController@show', [$this->app->id, $this->id])]\n )\n );\n }", "title": "" }, { "docid": "bc86b1ac9ac7166585c1704adc6b3f8f", "score": "0.58788484", "text": "function bat_unit_set_breadcrumb() {\n $breadcrumb = array(\n l(t('Home'), '<front>'),\n (drupal_valid_path('admin')) ? l(t('Administration'), 'admin') : '',\n (drupal_valid_path('admin/bat')) ? l(t('BAT'), 'admin/bat') : '',\n (drupal_valid_path('admin/bat/config')) ? l(t('Configuration'), 'admin/bat/config') : '',\n (drupal_valid_path('admin/bat/config/units')) ? l(t('Units'), 'admin/bat/config/units') : '',\n );\n\n drupal_set_breadcrumb(array_filter($breadcrumb));\n}", "title": "" }, { "docid": "e86265079b23c04e0e7b03a51a0b1a8a", "score": "0.5857456", "text": "function bread_crumbs() {\n return Angie_BreadCrumbs::getCrumbs();\n }", "title": "" }, { "docid": "31b12f7e67de4da0b7ff09433fde82d0", "score": "0.58507156", "text": "function post_set_breadcrumb() {\n $breadcrumb = array(\n l(t('Home'), '<front>'),\n l(t('Administration'), 'admin'),\n l(t('Content'), 'admin/content'),\n l(t('Posts'), 'admin/content/posts'),\n );\n\n drupal_set_breadcrumb($breadcrumb);\n}", "title": "" }, { "docid": "cdf51da2b4db0c0786a74df24e4d3c4d", "score": "0.5850101", "text": "public function add_shop_to_breadcrumbs($indexables)\n {\n }", "title": "" }, { "docid": "32c6acbe00599a20cbe656df00e64854", "score": "0.58463603", "text": "public function setBreadcrumb(array $breadcrumbComponents) {\r\n\t\t$this->_breadcrumbComponents = $breadcrumbComponents;\r\n\t}", "title": "" }, { "docid": "f9da5a17de62822ab9e43c2c2cc7277a", "score": "0.5808824", "text": "public function createMultipleBreadcrumb(array $places);", "title": "" }, { "docid": "efbace46aed7ded34606a40f01f306e2", "score": "0.58025396", "text": "function at_mhw_breadcrumb($variables) {\n\t$breadcrumb = $variables['breadcrumb'];\n\n\tif (!empty($breadcrumb)) {\n\t\t$breadcrumb[] = drupal_get_title();\n\t\t$breadcrumbs = '<ol class=\"breadcrumb\">';\n\n\t\t$count = count($breadcrumb) - 1;\n\t\tforeach ($breadcrumb as $key => $value) {\n\t\t$breadcrumbs .= '<li>' . $value . '</li>';\n\t\t}\n\t\t$breadcrumbs .= '</ol>';\n\n\t\treturn $breadcrumbs;\n\t}\n}", "title": "" }, { "docid": "0d77c24de262663baa94668d1005c057", "score": "0.57958245", "text": "function mee_asset_set_breadcrumb() {\n $breadcrumb = array(\n l(t('Home'), '<front>'),\n l(t('Administration'), 'admin'),\n l(t('Content'), 'admin/content'),\n l(t('Assets'), 'admin/content/asset'),\n );\n drupal_set_breadcrumb($breadcrumb);\n}", "title": "" }, { "docid": "baaf076dc01a8ae8640a1b74d075fdc9", "score": "0.5762202", "text": "public static function manipulateBreadcrumbs($links)\n\t{\n\t if(is_page_template('views/template-create-my-dda.blade.php') || is_page_template('views/template-edit-my-dda.blade.php')) {\n\t \t$title = get_the_title();\n\t \tif(key_exists( 'type', $_GET)) {\n\t\t\t\t$post_type = $_GET['type'];\n\t\t\t\tif($post_type === 'vacancy') $post_type = 'vacature';\n\t\t\t\tif($post_type === 'location') $post_type = 'locatie';\n\t\t\t\tif($post_type === 'user') $post_type = 'gebruiker';\n\t\t\t\tif($post_type === 'member') $post_type = 'lid';\n\t\t\t\t$title = ucfirst($post_type). ' ' .strtolower($title);\n\t\t }\n\t \t$position = sizeof($links) - 1; // We need to replace the last item in the $links array\n\t \t$url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? \"https\" : \"http\") . \"://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]\";\n\t \t$links[$position] = [\n\t \t\t'url' => $url,\n\t\t\t 'text' => $title,\n\t\t ];\n\t }\n\t return $links;\n\t}", "title": "" }, { "docid": "e1baf84dd83511c91ed44df61a04076e", "score": "0.57449114", "text": "public function addBreadcrumb($value)\n {\n $this->setBreadcrumb($value);\n }", "title": "" }, { "docid": "496eda064978911c2da206348226868e", "score": "0.57420385", "text": "function ou_ouice3_easy_breadcrumb($variables) {\n\n $breadcrumb = $variables['breadcrumb'];\n $segments_quantity = $variables['segments_quantity'];\n $separator = $variables['separator'];\n\n $breadcrumb[0]['content'] = variable_get('site_name', 'Home');\n $breadcrumb[0]['url'] = url('');\n $breadcrumb[]['content'] = drupal_get_title(); // apend the current page title\n\n $html = '';\n\n if ($segments_quantity > 0) {\n\n $html .= '<ol class=\"ou-ancestors\">';\n\n for ($i = 0, $s = $segments_quantity - 1; $i < $segments_quantity; ++$i) {\n $it = $breadcrumb[$i];\n $content = decode_entities($it['content']);\n\n $html .= '<li>';\n\n if (isset($it['url'])) {\n $html .= l($content, $it['url'], array('attributes' => array('class' => $it['class'])));\n } else {\n $class = implode(' ', $it['class']);\n $html .= '<span class=\"' . $class . '\">' . check_plain($content) . '</span>';\n }\n\n if ($i < $s) {\n $html .= $separator;\n }\n\n $html .= '</li>';\n }\n \n $html .= '</ol>';\n }\n\n return $html;\n}", "title": "" }, { "docid": "031cb8ef2daa09ae4f9a6df1170b7bf2", "score": "0.5740109", "text": "public function generate_breadcrumbs()\n {\n }", "title": "" }, { "docid": "9321e1eba259258e129133f56adf0693", "score": "0.5734511", "text": "function wtp_get_breadcrumbs( \n\t$before = \"<h3>You are here:</h3>\\n<ol>\\n<li>\", \n\t$separator = \"</li>\\n<li>\", \n\t$after = \"</li>\\n</ol>\\n\", $addHome = true, \n\t$removePws = true ) {\n\tglobal $wtp;\n\n\t$_tree = $wtp->get_breadcrumbs($addHome, $removePws);\n\n\t/* build link based on item type */\n\tfunction _get_permalink( $var ) {\n\t\tif($var[3]=='post'):\n\t\t\t$_permalink=get_permalink($var[0]);\n\t\telseif($var[3]=='cat'):\n\t\t\t$_permalink=get_category_link($var[0]);\n\t\telse:\n\t\t\t$_permalink=get_bloginfo(\"home\");\n\t\tendif;\n\t\treturn $_permalink;\n\t}\n\n\t/* draw items */\n\t$_breadcrumbs = \"\";\n\t\n\tif(sizeof($_tree)>0):\n\t\t$_cnt = 1;\n\t\tforeach($_tree as $_item):\n\t\t\t$_breadcrumb = \"\";\n\t\t\t$_permalink\t= _get_permalink( $_item );\n\n\t\t\tif(sizeof($_tree)==$_cnt):\n\t\t\t\t$_breadcrumb = $_item[1];\n\t\t\telse:\n\t\t\t\t$_breadcrumb = \"<a href=\\\"{$_permalink}\\\">{$_item[1]}</a>\";\n\t\t\t\t$_breadcrumb .= $separator;\n\t\t\tendif;\n\t\t\t\n\t\t\t$_breadcrumbs .= $_breadcrumb;\n\t\t\t$_cnt++;\n\t\tendforeach;\n\t\t\n\t\t$_breadcrumbs = \"$before\\n$_breadcrumbs\\n$after\\n\";\n\tendif;\n\t\n\techo $_breadcrumbs;\n}", "title": "" }, { "docid": "354e66870a93e7f63f8c060ac070b656", "score": "0.57269204", "text": "protected function AssignBreadcrumbs()\n\t{\tparent::AssignBreadcrumbs();\n\t\tif($this->product->id)\n\t\t{\t$this->AddBreadcrumb($this->product->details['title'], $this->link->GetStoreProductLink($this->product));\n\t\t}\n\t}", "title": "" }, { "docid": "05c9320e03df022be394183210781796", "score": "0.5710038", "text": "public function addBreadcrumbLink($title, $url, $class = '')\n {\n $this->breadcrumbItems->push((object) ['name' => $title, 'url' => $url, 'class' => $class]);\n }", "title": "" }, { "docid": "643a3e969a434cd28f95708732da68b8", "score": "0.5705985", "text": "function bat_event_set_breadcrumb() {\n $breadcrumb = array(\n l(t('Home'), '<front>'),\n (drupal_valid_path('admin')) ? l(t('Administration'), 'admin') : '',\n (drupal_valid_path('admin/bat')) ? l(t('BAT'), 'admin/bat') : '',\n (drupal_valid_path('admin/bat/events')) ? l(t('Events'), 'admin/bat/events') : '',\n );\n\n drupal_set_breadcrumb(array_filter($breadcrumb));\n}", "title": "" }, { "docid": "131c0e775a625b89d4ad6df58ecc120b", "score": "0.5673979", "text": "function saltire_breadcrumb($variables) {\n $breadcrumb = $variables['breadcrumb'];\n $site_name = variable_get('site_name');\n if (!empty($breadcrumb)) {\n \n \tarray_shift($breadcrumb);\n // Provide a navigational heading to give context for breadcrumb links to\n // screen-reader users. Make the heading invisible with .element-invisible.\n \n $crumbs = '<ol><li><a href=\"http://www.novascotia.ca\">novascotia.ca</a></li><li><a href=\"/\">' . $site_name . '</a></li>';\n\t\t\t\t\n\t\tif (!empty($crumbs)) { \n\t\t\t foreach(\n\t\t\t\t \t$breadcrumb as $value) {\n\t\t\t $crumbs .= '<li>'.$value.'</li>';\n\t\t\t\t\t}\n\t\t\t\t\n\t\t $crumbs .= '</ol>';\n\t\t }\n\t\t return $crumbs;\n\t\t}\n }", "title": "" }, { "docid": "72d6769575e2951244a86849175bdfc4", "score": "0.5666616", "text": "function push($page, $href)\n {\n // no page or href provided\n if (!$page OR !$href)\n return;\n \n // push breadcrumb\n $this->breadcrumbs[] = array(\n 'page' => $page,\n 'href' => $href\n );\n }", "title": "" }, { "docid": "b8c32c60046ff76919f43a4de28919a2", "score": "0.56532574", "text": "public function getBreadCrumb()\r\n\t{\r\n\t\treturn collect($this->crumbs);\r\n\t}", "title": "" }, { "docid": "2b95344a5499183bde26dd0278190031", "score": "0.5636711", "text": "private function prepareBreacrumb(string $action)\n {\n global $breadcrumb,\n $wp,\n $terms;\n\n switch( $action ){\n\n case 'search-notes':\n\n $notes_list_url = home_url(add_query_arg([],$wp->request));\n\n array_push($breadcrumb, [\n 'value' => 'Notes',\n 'link' => $notes_list_url\n ]);\n\n break;\n\n case 'edit-note':\n\n $notes_list_url = home_url(add_query_arg([],$wp->request));\n\n if( isset($this->get_request['notesama']) ) {\n\n $notes_collection = $this->placeNoteSearchForEdition();\n\n $current_breadcrumb_item = [\n 'value' => $notes_collection->current()->post_title,\n 'link' => ''\n ];\n\n } else {\n\n $current_breadcrumb_item = [\n 'value' => 'New Note',\n 'link' => ''\n ];\n\n }\n\n array_push($breadcrumb, [\n 'value' => 'Notes',\n 'link' => $notes_list_url\n ]);\n\n array_push($breadcrumb, $current_breadcrumb_item);\n\n break;\n\n }\n }", "title": "" }, { "docid": "b80e709757cbdd9773c5929587131188", "score": "0.56337696", "text": "public function printBreadCrumbs($data){\n\n $html = '';\n foreach($data as $k=>$v){\n $html.= \\Template::build('wordpress/breadcrumb',\n Array(\n 'path'=>$this->path,\n 'slug'=>$v,\n 'name'=>$k\n )\n );\n\n }//foreach\n\n $crumbs = \\Template::build('wordpress/breadcrumb-container',Array('crumbs'=>$html,'path'=>$this->path));\n\n if($this->settings['inject_feed']){\n \\View::html($crumbs);\n }//if\n else {\n return $crumbs;\n }//el\n\n }", "title": "" }, { "docid": "fca3b76fb1013105118c139ec739994a", "score": "0.5623641", "text": "function cp_breadcrumb() {\n\n\tbreadcrumb_trail( array(\n\t\t'container' => 'nav',\n\t\t'list_tag' => 'ul',\n\t\t'item_tag' => 'li',\n\t\t'show_browse' => false,\n\t\t'labels' => array(\n\t\t\t//aria-hidden=\"true\"\n\t\t\t'home' => '<span aria-hidden=\"true\" style=\"display: none;\">' . __( 'Home', APP_TD ) . '</span><i class=\"fa fa-home\"></i>',\n\t\t),\n\t) );\n\n}", "title": "" }, { "docid": "256db6be9c57954ca4857992934a8ff5", "score": "0.56177944", "text": "public function getCrumbs()\n {\n return $this->_crumbs;\n }", "title": "" }, { "docid": "0e2e0bf9cc6cb2cb7af5390539d8c5c8", "score": "0.5615379", "text": "public function breadcrumbsAction()\n\t{\n\t\t$container = new Zend_Navigation(array(\n\t\t\tarray(\n\t\t\t\t'label' => 'Index',\n\t\t\t\t'controller' => 'helpers',\n\t\t\t\t'id' => 'index'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'label' => 'Helpers',\n\t\t\t\t'controller' => 'helpers',\n\t\t\t\t'id' => 'helpers',\n\t\t\t\t'pages' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'label' => 'Breadcrumbs',\n\t\t\t\t\t\t'controller' => 'helpers',\n\t\t\t\t\t\t'action' => 'breadcrumbs',\n\t\t\t\t\t\t'id' => 'breadcrumbs'\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t)\n\t\t));\n\t\t$breadcrumbs = Invenzzia_View_HelperBroker::getInstance()->breadcrumbs;\n\t\t$breadcrumbs->setContainer($container);\n\t\t$breadcrumbs->setSeparator(' / ');\n\t}", "title": "" }, { "docid": "df05215e19cc9e9e87530ccf18247667", "score": "0.5580451", "text": "public function testBreadCrumbs() {\n // Prepare common base breadcrumb elements.\n $home = ['' => 'Home'];\n $admin = $home + ['admin' => 'Administration'];\n $config = $admin + ['admin/config' => 'Configuration'];\n $type = 'article';\n\n // Verify Taxonomy administration breadcrumbs.\n $trail = $admin + [\n 'admin/structure' => 'Structure',\n ];\n $this->assertBreadcrumb('admin/structure/taxonomy', $trail);\n\n $trail += [\n 'admin/structure/taxonomy' => 'Taxonomy',\n ];\n $this->assertBreadcrumb('admin/structure/taxonomy/manage/tags', $trail);\n $trail += [\n 'admin/structure/taxonomy/manage/tags' => 'Edit Tags',\n ];\n $this->assertBreadcrumb('admin/structure/taxonomy/manage/tags/overview', $trail);\n $this->assertBreadcrumb('admin/structure/taxonomy/manage/tags/add', $trail);\n\n // Verify Menu administration breadcrumbs.\n $trail = $admin + [\n 'admin/structure' => 'Structure',\n ];\n $this->assertBreadcrumb('admin/structure/menu', $trail);\n\n $trail += [\n 'admin/structure/menu' => 'Menus',\n ];\n $this->assertBreadcrumb('admin/structure/menu/manage/tools', $trail);\n\n $trail += [\n 'admin/structure/menu/manage/tools' => 'Tools',\n ];\n $this->assertBreadcrumb(\"admin/structure/menu/link/node.add_page/edit\", $trail);\n $this->assertBreadcrumb('admin/structure/menu/manage/tools/add', $trail);\n\n // Verify Node administration breadcrumbs.\n $trail = $admin + [\n 'admin/structure' => 'Structure',\n 'admin/structure/types' => 'Content types',\n ];\n $this->assertBreadcrumb('admin/structure/types/add', $trail);\n $this->assertBreadcrumb(\"admin/structure/types/manage/$type\", $trail);\n $trail += [\n \"admin/structure/types/manage/$type\" => 'Article',\n ];\n $this->assertBreadcrumb(\"admin/structure/types/manage/$type/fields\", $trail);\n $this->assertBreadcrumb(\"admin/structure/types/manage/$type/display\", $trail);\n $trail_teaser = $trail + [\n \"admin/structure/types/manage/$type/display\" => 'Manage display',\n ];\n $this->assertBreadcrumb(\"admin/structure/types/manage/$type/display/teaser\", $trail_teaser);\n $this->assertBreadcrumb(\"admin/structure/types/manage/$type/delete\", $trail);\n $trail += [\n \"admin/structure/types/manage/$type/fields\" => 'Manage fields',\n ];\n $this->assertBreadcrumb(\"admin/structure/types/manage/$type/fields/node.$type.body\", $trail);\n\n // Verify Filter text format administration breadcrumbs.\n $filter_formats = filter_formats();\n $format = reset($filter_formats);\n $format_id = $format->id();\n $trail = $config + [\n 'admin/config/content' => 'Content authoring',\n ];\n $this->assertBreadcrumb('admin/config/content/formats', $trail);\n\n $trail += [\n 'admin/config/content/formats' => 'Text formats and editors',\n ];\n $this->assertBreadcrumb('admin/config/content/formats/add', $trail);\n $this->assertBreadcrumb(\"admin/config/content/formats/manage/$format_id\", $trail);\n // @todo Remove this part once we have a _title_callback, see\n // https://www.drupal.org/node/2076085.\n $trail += [\n \"admin/config/content/formats/manage/$format_id\" => $format->label(),\n ];\n $this->assertBreadcrumb(\"admin/config/content/formats/manage/$format_id/disable\", $trail);\n\n // Verify node breadcrumbs (without menu link).\n $node1 = $this->drupalCreateNode();\n $nid1 = $node1->id();\n $trail = $home;\n $this->assertBreadcrumb(\"node/$nid1\", $trail);\n // Also verify that the node does not appear elsewhere (e.g., menu trees).\n $this->assertSession()->linkNotExists($node1->getTitle());\n // Also verify that the node does not appear elsewhere (e.g., menu trees).\n $this->assertSession()->linkNotExists($node1->getTitle());\n\n $trail += [\n \"node/$nid1\" => $node1->getTitle(),\n ];\n $this->assertBreadcrumb(\"node/$nid1/edit\", $trail);\n\n // Verify that breadcrumb on node listing page contains \"Home\" only.\n $trail = [];\n $this->assertBreadcrumb('node', $trail);\n\n // Verify node breadcrumbs (in menu).\n // Do this separately for Main menu and Tools menu, since only the\n // latter is a preferred menu by default.\n // @todo Also test all themes? Manually testing led to the suspicion that\n // breadcrumbs may differ, possibly due to theme overrides.\n $menus = ['main', 'tools'];\n // Alter node type menu settings.\n $node_type = NodeType::load($type);\n $node_type->setThirdPartySetting('menu_ui', 'available_menus', $menus);\n $node_type->setThirdPartySetting('menu_ui', 'parent', 'tools:');\n $node_type->save();\n\n foreach ($menus as $menu) {\n // Create a parent node in the current menu.\n $title = $this->randomMachineName();\n $node2 = $this->drupalCreateNode([\n 'type' => $type,\n 'title' => $title,\n 'menu' => [\n 'enabled' => 1,\n 'title' => 'Parent ' . $title,\n 'description' => '',\n 'menu_name' => $menu,\n 'parent' => '',\n ],\n ]);\n\n if ($menu == 'tools') {\n $parent = $node2;\n }\n }\n\n // Create a Tools menu link for 'node', move the last parent node menu\n // link below it, and verify a full breadcrumb for the last child node.\n $menu = 'tools';\n $edit = [\n 'title[0][value]' => 'Root',\n 'link[0][uri]' => '/node',\n ];\n $this->drupalGet(\"admin/structure/menu/manage/{$menu}/add\");\n $this->submitForm($edit, 'Save');\n $menu_links = \\Drupal::entityTypeManager()->getStorage('menu_link_content')->loadByProperties(['title' => 'Root']);\n $link = reset($menu_links);\n\n $edit = [\n 'menu[menu_parent]' => $link->getMenuName() . ':' . $link->getPluginId(),\n ];\n $this->drupalGet('node/' . $parent->id() . '/edit');\n $this->submitForm($edit, 'Save');\n $expected = [\n \"node\" => $link->getTitle(),\n ];\n $trail = $home + $expected;\n $tree = $expected + [\n 'node/' . $parent->id() => $parent->menu['title'],\n ];\n $trail += [\n 'node/' . $parent->id() => $parent->menu['title'],\n ];\n\n // Add a taxonomy term/tag to last node, and add a link for that term to the\n // Tools menu.\n $tags = [\n 'Drupal' => [],\n 'Breadcrumbs' => [],\n ];\n $edit = [\n 'field_tags[target_id]' => implode(',', array_keys($tags)),\n ];\n $this->drupalGet('node/' . $parent->id() . '/edit');\n $this->submitForm($edit, 'Save');\n\n // Put both terms into a hierarchy Drupal » Breadcrumbs. Required for both\n // the menu links and the terms itself, since taxonomy_term_page() resets\n // the breadcrumb based on taxonomy term hierarchy.\n $parent_tid = 0;\n foreach ($tags as $name => $null) {\n $terms = \\Drupal::entityTypeManager()->getStorage('taxonomy_term')->loadByProperties(['name' => $name]);\n $term = reset($terms);\n $tags[$name]['term'] = $term;\n if ($parent_tid) {\n $edit = [\n 'parent[]' => [$parent_tid],\n ];\n $this->drupalGet(\"taxonomy/term/{$term->id()}/edit\");\n $this->submitForm($edit, 'Save');\n }\n $parent_tid = $term->id();\n }\n $parent_mlid = '';\n foreach ($tags as $name => $data) {\n $term = $data['term'];\n $edit = [\n 'title[0][value]' => \"$name link\",\n 'link[0][uri]' => \"/taxonomy/term/{$term->id()}\",\n 'menu_parent' => \"$menu:{$parent_mlid}\",\n 'enabled[value]' => 1,\n ];\n $this->drupalGet(\"admin/structure/menu/manage/{$menu}/add\");\n $this->submitForm($edit, 'Save');\n $menu_links = \\Drupal::entityTypeManager()->getStorage('menu_link_content')->loadByProperties([\n 'title' => $edit['title[0][value]'],\n 'link.uri' => 'internal:/taxonomy/term/' . $term->id(),\n ]);\n $tags[$name]['link'] = reset($menu_links);\n $parent_mlid = $tags[$name]['link']->getPluginId();\n }\n\n // Verify expected breadcrumbs for menu links.\n $trail = $home;\n $tree = [];\n // Logout the user because we want to check the active class as well, which\n // is just rendered as anonymous user.\n $this->drupalLogout();\n foreach ($tags as $name => $data) {\n $term = $data['term'];\n /** @var \\Drupal\\menu_link_content\\MenuLinkContentInterface $link */\n $link = $data['link'];\n\n $link_path = $link->getUrlObject()->getInternalPath();\n $tree += [\n $link_path => $link->getTitle(),\n ];\n $this->assertBreadcrumb($link_path, $trail, $term->getName(), $tree, TRUE, 'menu__item--active-trail');\n // Ensure that the tagged node is found.\n $this->assertSession()->assertEscaped($parent->getTitle());\n\n // Additionally make sure that this link appears only once; i.e., the\n // untranslated menu links automatically generated from menu router items\n // ('taxonomy/term/%') should never be translated and appear in any menu\n // other than the breadcrumb trail.\n $elements = $this->xpath('//nav[contains(@class, :menu-class)]/descendant::a[@href=:href]', [\n ':menu-class' => 'menu--tools',\n ':href' => Url::fromUri('base:' . $link_path)->toString(),\n ]);\n $this->assertCount(1, $elements, \"Link to {$link_path} appears only once.\");\n\n // Next iteration should expect this tag as parent link.\n // Note: Term name, not link name, due to taxonomy_term_page().\n $trail += [\n $link_path => $term->getName(),\n ];\n }\n\n // Verify breadcrumbs on user and user/%.\n // We need to log back in and out below, and cannot simply grant the\n // 'administer users' permission, since user_page() makes your head explode.\n user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, [\n 'access user profiles',\n ]);\n\n // Verify breadcrumb on front page.\n $this->assertBreadcrumb('<front>', []);\n\n // Verify breadcrumb on user pages (without menu link) for anonymous user.\n $trail = $home;\n $this->assertBreadcrumb('user', $trail, 'Log in');\n $this->assertBreadcrumb('user/' . $this->adminUser->id(), $trail, $this->adminUser->getAccountName());\n\n // Verify breadcrumb on user pages (without menu link) for registered users.\n $this->drupalLogin($this->adminUser);\n $trail = $home;\n $this->assertBreadcrumb('user', $trail, $this->adminUser->getAccountName());\n $this->assertBreadcrumb('user/' . $this->adminUser->id(), $trail, $this->adminUser->getAccountName());\n $trail += [\n 'user/' . $this->adminUser->id() => $this->adminUser->getAccountName(),\n ];\n $this->assertBreadcrumb('user/' . $this->adminUser->id() . '/edit', $trail, $this->adminUser->getAccountName());\n\n // Create a second user to verify breadcrumb on user pages again.\n $this->webUser = $this->drupalCreateUser([\n 'administer users',\n 'access user profiles',\n ]);\n $this->drupalLogin($this->webUser);\n\n // Verify correct breadcrumb and page title on another user's account pages.\n $trail = $home;\n $this->assertBreadcrumb('user/' . $this->adminUser->id(), $trail, $this->adminUser->getAccountName());\n $trail += [\n 'user/' . $this->adminUser->id() => $this->adminUser->getAccountName(),\n ];\n $this->assertBreadcrumb('user/' . $this->adminUser->id() . '/edit', $trail, $this->adminUser->getAccountName());\n\n // Verify correct breadcrumb and page title when viewing own user account.\n $trail = $home;\n $this->assertBreadcrumb('user/' . $this->webUser->id(), $trail, $this->webUser->getAccountName());\n $trail += [\n 'user/' . $this->webUser->id() => $this->webUser->getAccountName(),\n ];\n $this->assertBreadcrumb('user/' . $this->webUser->id() . '/edit', $trail, $this->webUser->getAccountName());\n\n // Create an only slightly privileged user being able to access site reports\n // but not administration pages.\n $this->webUser = $this->drupalCreateUser([\n 'access site reports',\n ]);\n $this->drupalLogin($this->webUser);\n\n // Verify that we can access recent log entries, there is a corresponding\n // page title, and that the breadcrumb is just the Home link (because the\n // user is not able to access \"Administer\".\n $trail = $home;\n $this->assertBreadcrumb('admin', $trail, 'Access denied');\n $this->assertSession()->statusCodeEquals(403);\n\n // Since the 'admin' path is not accessible, we still expect only the Home\n // link.\n $this->assertBreadcrumb('admin/reports', $trail, 'Reports');\n $this->assertSession()->statusCodeNotEquals(403);\n\n // Since the Reports page is accessible, that will show.\n $trail += ['admin/reports' => 'Reports'];\n $this->assertBreadcrumb('admin/reports/dblog', $trail, 'Recent log messages');\n $this->assertSession()->statusCodeNotEquals(403);\n\n // Ensure that the breadcrumb is safe against XSS.\n $this->drupalGet('menu-test/breadcrumb1/breadcrumb2/breadcrumb3');\n $this->assertSession()->responseContains('<script>alert(12);</script>');\n $this->assertSession()->assertEscaped('<script>alert(123);</script>');\n }", "title": "" }, { "docid": "06e3ff6a3879fac063aa5192487751b5", "score": "0.5579103", "text": "function practitioner_set_breadcrumb() {\n $breadcrumb = array(\n l(t('Home'), '<front>'),\n l(t('Administration'), 'admin'),\n l(t('Content'), 'admin/content'),\n l(t('Practitioner'), 'admin/content/practitioner'),\n );\n \n drupal_set_breadcrumb($breadcrumb);\n}", "title": "" }, { "docid": "77f9a1979e6cb2681e87a4fa27c682e0", "score": "0.5575968", "text": "function unshift($page, $href)\n {\n // no crumb provided\n if (!$page OR !$href)\n return;\n \n // add at firts\n array_unshift($this->breadcrumbs, array(\n 'page' => $page,\n 'href' => $href\n ));\n }", "title": "" }, { "docid": "3d30466c78c909ea94eeda7399b7afb9", "score": "0.5575355", "text": "function _breadcrumbsWithData( $breadcrumbData )\n {\n $breadcrumbs = '<ol class=\"breadcrumb push-10-t\">';\n foreach ($breadcrumbData as $k => $data) {\n $isActive = $k == count($breadcrumbData) - 1 ? 'active' : '';\n if($isActive){\n $breadcrumbs .= '<li class=\"'.$isActive.'\">'.$data['name'].'</li>';\n }else{\n $breadcrumbs .= '<li class=\"'.$isActive.'\"><a href=\"'.$data['url'].'\">'.$data['name'].'</a></li>';\n }\n\n\n\n \n }\n $breadcrumbs .= '</ol>';\n return $breadcrumbs;\n }", "title": "" }, { "docid": "9e814a6e64866ed2a8f73773ad054f47", "score": "0.5565185", "text": "private function create_breadcrumb($index, $breadcrumb)\n {\n }", "title": "" }, { "docid": "510af8c9cc1fed48efc6869ecbd0642e", "score": "0.5564173", "text": "public function getBreadcrumb();", "title": "" }, { "docid": "8dd1888d46a15ecd1270eb52d1e4107c", "score": "0.55602795", "text": "private function setPageBreadcrumb()\n {\n $this->breadcrumbItems = collect();\n $this->addBreadcrumbLink('Home', '/', 'home');\n\n $prevTitle = 'Home';\n foreach ($this->parentPages as $k => $page) {\n\n if ($page->title != $prevTitle) {\n $url = (is_slug_url($page->slug) ? $page->slug : url($page->url));\n $this->addBreadcrumbLink($page->title, $url);\n }\n\n $prevTitle = $page->title;\n }\n }", "title": "" }, { "docid": "1644f1767d15c1eafa128b0d154e2ed0", "score": "0.5555221", "text": "public function breadcrumbs()\n {\n // Shortcuts.\n $config = $this->EE->config;\n $fns = $this->EE->functions;\n $lang = $this->EE->lang;\n $tmpl = $this->EE->TMPL;\n\n /**\n * The segments array, as retrieved from the EE URI class, is 1-based.\n * For our purposes, this is pointless hassle, so we convert it to a\n * zero-based array, before proceeding.\n */\n\n $segments = array_values($this->EE->uri->segment_array());\n $breadcrumbs = array();\n\n // Should we reverse the order of the returned breadcrumbs (useful for a \n // \"title trail\")?\n $reverse = ($tmpl->fetch_param('breadcrumbs:reverse') == 'yes');\n\n // Is this a 'Pages' page?\n $pages = ($site_pages = $config->item('site_pages')) ? $site_pages[$this->_model->get_site_id()]['uris'] : array();\n $page_pattern = '#^/' .preg_quote(implode('/', $segments), '#') .'/?#i';\n $pages_url = FALSE;\n\n foreach ($pages AS $entry_id => $url_title)\n {\n if (preg_match($page_pattern, $url_title))\n {\n $pages_url = TRUE;\n break;\n }\n }\n\n if ($pages_url)\n {\n $breadcrumbs = $this->_build_breadcrumbs_from_pages_url(\n $segments, $pages, $reverse);\n }\n else\n {\n // Is this a custom user-supplied URL structure?\n $url_pattern = ($url_pattern = $tmpl->fetch_param('custom_url:pattern'))\n ? $url_pattern : '';\n\n $breadcrumbs = $this->_build_breadcrumbs_from_url_pattern(\n $segments, $url_pattern, $reverse);\n }\n\n // Include a 'root' breadcrumb?\n if ($tmpl->fetch_param('root_breadcrumb:include', 'yes') == 'yes')\n {\n $lang->loadfile($this->_model->get_package_name());\n\n array_unshift($breadcrumbs, array(\n 'breadcrumb_segment' => '',\n 'breadcrumb_title' => $tmpl->fetch_param('root_breadcrumb:label', $lang->line('default_root_label')),\n 'breadcrumb_url' => $tmpl->fetch_param('root_breadcrumb:url', $fns->fetch_site_index())\n ));\n }\n\n return $tmpl->parse_variables($tmpl->tagdata, $breadcrumbs);\n }", "title": "" }, { "docid": "f889a4da9bda346ad2b15b8e01347dfe", "score": "0.5549226", "text": "function ckan_package_set_breadcrumb() {\n $breadcrumb = array(\n l(t('Home'), '<front>'),\n l(t('Administration'), 'admin'),\n l(t('Content'), 'admin/content'),\n l(t('CKAN Package'), 'admin/content/ckan_packages'),\n );\n\n drupal_set_breadcrumb($breadcrumb);\n}", "title": "" }, { "docid": "bcd81079d5553d3de9b14e0688ea344a", "score": "0.5547377", "text": "function breadcrumbs( $trail ) {\n\t\t$categories = cp_get_listing_categories( get_queried_object_id() );\n\n\t\tif ( ! $categories ) {\n\t\t\treturn $trail;\n\t\t}\n\n\t\t$category = reset( $categories );\n\t\t$category = (int) $category->term_id;\n\t\t$chain = array_reverse( get_ancestors( $category, APP_TAX_CAT ) );\n\t\t$chain[] = $category;\n\n\t\t$new_trail = array( $trail[0] );\n\n\t\tforeach ( $chain as $cat ) {\n\t\t\t$cat_obj = get_term( $cat, APP_TAX_CAT );\n\t\t\t$new_trail[] = html_link( get_term_link( $cat_obj ), $cat_obj->name );\n\t\t}\n\n\t\t$new_trail[] = array_pop( $trail );\n\n\t\treturn $new_trail;\n\t}", "title": "" }, { "docid": "96edf3380f8e19d2e9bd8872f9fccbe7", "score": "0.5543508", "text": "protected function crumb_to_link($breadcrumb, $index, $total)\n {\n }", "title": "" }, { "docid": "38f2e2fea2072b81c12072b15eb0948a", "score": "0.55390006", "text": "protected function _markActiveCrumb(): void\n {\n if (!$this->crumbs) {\n return;\n }\n\n $this->_clearActiveCrumb();\n\n $key = null;\n if ($this->getConfig('ariaCurrent') === 'lastWithLink') {\n foreach (array_reverse($this->crumbs, true) as $key => $crumb) {\n if (isset($crumb['url'])) {\n break;\n }\n }\n } else {\n $key = count($this->crumbs) - 1;\n }\n\n if (!$key) {\n return;\n }\n\n $this->crumbs[$key]['options'] = $this->injectClasses('active', $this->crumbs[$key]['options']);\n\n if (isset($this->crumbs[$key]['url'])) {\n $this->crumbs[$key]['options']['innerAttrs']['aria-current'] = 'page';\n } else {\n $this->crumbs[$key]['options']['aria-current'] = 'page';\n }\n }", "title": "" }, { "docid": "3481f5a064edd947698366b1fd56f25b", "score": "0.5496483", "text": "function breadcrumbs($separator = ' &rarr; ', $home = 'Home') {\n global $navsection;\n \n $path = array_filter(explode('/', parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)));\n $base = ($_SERVER['HTTPS'] ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . '/';\n\n $breadcrumbs = Array(\"<a href=\\\"$base\\\">$home</a>\");\n \n //$last = end(array_keys($path));\n $last = \"\";\n \n $trackerCrumb = false;\n foreach ($path AS $x => $crumb) {\n $title = ucwords(str_replace(Array('.php', '-'), Array('', ' '), $crumb));\n\n if ($trackerCrumb) {\n $breadcrumbs[] = \"<a href=\\\"$base$last/$crumb\\\">$title</a>\";\n $trackerCrumb = false;\n }\n else {\n if ($crumb == 'tracker') {\n $trackerCrumb = true;\n }\n $breadcrumbs[] = \"<a href=\\\"$base$crumb\\\">$title</a>\";\n }\n $last = $crumb;\n }\n\n\n \n if (strcmp($navsection, 'us-coins') == 0) {\n // Possible query params\n \n // Coin denomination (silver dollar, etc.) cvid\n $valueId = -1;\n if (isset($_REQUEST['valueId'])) {\n $valueId = $_REQUEST['valueId'];\n \n $SQL = sprintf(\"SELECT * FROM UsCoinDB.CoinValue WHERE cvid=%d\", $valueId);\n $result = mysql_query($SQL);\n $row = mysql_fetch_array($result);\n \n // Get coin denomination name, cid\n $cvName = $row['name'];\n \n // Add to breadcrumb\n $breadcrumbs[] = \"<a href=\\\"$base$last?valueId=$valueId\\\">$cvName</a>\";\n }\n\n // Coin type i.e. Morgan silver dollar\n $typeId = -1;\n if (isset($_REQUEST['typeId'])) {\n $typeId = $_REQUEST['typeId'];\n \n $SQL = \"SELECT CV.name AS cvName, CV.cvid, C.name AS cName FROM UsCoinDB.CoinValue CV, UsCoinDB.Coin C WHERE C.cvid=CV.cvid AND C.cid=$typeId\";\n $result = mysql_query($SQL);\n $row = mysql_fetch_array($result);\n \n $cvId = $row['cvid'];\n $cvName = $row['cvName'];\n\n $cName = $row['cName'];\n\n $breadcrumbs[] = \"<a href=\\\"$base$last?valueId=$cvId\\\">$cvName</a>\";\n $breadcrumbs[] = \"<a href=\\\"$base$last?typeId=$typeId\\\">$cName</a>\";\n \n }\n\n // Specific coin and mint (1878CC Morgan silver dollar) mcid\n $mintCoinId = -1;\n if (isset($_REQUEST['mintCoinId'])) {\n $mintCoinId = $_REQUEST['mintCoinId'];\n \n $SQL = sprintf(\"SELECT CV.cvid, CV.name AS denomination, C.cid, C.name, CY.year, M.symbol, MC.additionalInfo AS coinInfo FROM UsCoinDB.MintCoin MC, UsCoinDB.CoinYear CY, UsCoinDB.Coin C, UsCoinDB.CoinValue CV, UsCoinDB.Mint M WHERE MC.mcid=%d AND MC.cyid=CY.cyid AND C.cid=CY.cid AND CV.cvid=C.cvid AND MC.mid=M.mid\", $mintCoinId);\n $result = mysql_query($SQL);\n $row = mysql_fetch_array($result);\n \n $valueId = $row['cvid'];\n $cvName = $row['denomination'];\n\n $typeId = $row['cid'];\n $cName = $row['name'];\n\n $mcName = getCoinTitle($row);\n\n $breadcrumbs[] = \"<a href=\\\"$base$last?valueId=$valueId\\\">$cvName</a>\";\n $breadcrumbs[] = \"<a href=\\\"$base$last?typeId=$typeId\\\">$cName</a>\";\n $breadcrumbs[] = \"<a href=\\\"$base$last?mintCoinId=$mintCoinId\\\">$mcName</a>\"; \n }\n }\n else if (strcmp($navsection, 'foreign-coins') == 0) {\n\n $fcid = -1;\n if (isset($_REQUEST['fcid'])) {\n $fcid = $_REQUEST['fcid'];\n \n $SQL = sprintf(\"SELECT FC.name AS country FROM ForeignCoinDB.ForeignCountry FC WHERE FC.fcid=%d\", $fcid);\n $result = mysql_query($SQL);\n $row = mysql_fetch_array($result);\n \n $cName = $row['country'];\n\n $breadcrumbs[] = \"<a href=\\\"$base$last?fcid=$fcid\\\">$cName</a>\";\n \n }\n\n // Coin denomination (silver dollar, etc.) cvid\n $valueId = -1;\n if (isset($_REQUEST['valueId'])) {\n $valueId = $_REQUEST['valueId'];\n \n $SQL = sprintf(\"SELECT CV.cvid, CV.name AS denomination, FC.name AS country, FC.fcid FROM ForeignCoinDB.ForeignCountry FC, ForeignCoinDB.CoinValue CV WHERE CV.cvid=%d AND CV.fcid=FC.fcid\", $valueId);\n $result = mysql_query($SQL);\n $row = mysql_fetch_array($result);\n \n $fcid = $row['fcid'];\n $country = $row['country'];\n \n $cvid = $row['cvid'];\n $cvName = $row['denomination'];\n \n $breadcrumbs[] = \"<a href=\\\"$base$last?fcid=$fcid\\\">$country</a>\";\n $breadcrumbs[] = \"<a href=\\\"$base$last?valueId=$valueId\\\">$cvName</a>\";\n }\n\n // Need to add country, denomination and type\n $typeId = -1;\n if (isset($_REQUEST['typeId'])) {\n $typeId = $_REQUEST['typeId'];\n \n // Add country\n $SQL = sprintf(\"SELECT FC.name AS country, FC.fcid, CV.cvid, CV.name AS denomination, C.cid, C.name FROM ForeignCoinDB.ForeignCountry FC, ForeignCoinDB.CoinValue CV, ForeignCoinDB.Coin C WHERE CV.cvid=C.cvid AND C.cid=%d AND FC.fcid=CV.fcid ORDER BY value DESC\", $typeId);\n \n $result = mysql_query($SQL);\n $row = mysql_fetch_array($result);\n\n $cName = $row['country'];\n $fcid = $row['fcid'];\n \n $cvName = $row['denomination'];\n $cvid = $row['cvid'];\n\n $name = $row['name'];\n $cid = $row['cid'];\n \n $breadcrumbs[] = \"<a href=\\\"$base$last?fcid=$fcid\\\">$cName</a>\";\n $breadcrumbs[] = \"<a href=\\\"$base$last?valueId=$cvid\\\">$cvName</a>\";\n $breadcrumbs[] = \"<a href=\\\"$base$last?typeId=$cid\\\">$name</a>\";\n \n }\n\n // Specific coin and mint - mcid\n $mintCoinId = -1;\n if (isset($_REQUEST['mintCoinId'])) {\n $mintCoinId = $_REQUEST['mintCoinId'];\n \n $SQL = sprintf(\"SELECT FC.name AS country, FC.fcid, CV.cvid, CV.name AS denomination, C.cid, C.name, CY.year, M.symbol, MC.additionalInfo AS coinInfo FROM ForeignCoinDB.ForeignCountry FC, ForeignCoinDB.MintCoin MC, ForeignCoinDB.CoinYear CY, ForeignCoinDB.Coin C, ForeignCoinDB.CoinValue CV, ForeignCoinDB.Mint M WHERE MC.mcid=%d AND MC.cyid=CY.cyid AND C.cid=CY.cid AND CV.cvid=C.cvid AND MC.mid=M.mid AND FC.fcid=CV.fcid\", $mintCoinId);\n $result = mysql_query($SQL);\n $row = mysql_fetch_array($result);\n \n $fcid = $row['fcid'];\n $country = $row['country'];\n \n $valueId = $row['cvid'];\n $cvName = $row['denomination'];\n\n $typeId = $row['cid'];\n $cName = $row['name'];\n\n $mcName = getCoinTitle($row);\n\n $breadcrumbs[] = \"<a href=\\\"$base$last?fcid=$fcid\\\">$country</a>\";\n $breadcrumbs[] = \"<a href=\\\"$base$last?valueId=$valueId\\\">$cvName</a>\";\n $breadcrumbs[] = \"<a href=\\\"$base$last?typeId=$typeId\\\">$cName</a>\";\n $breadcrumbs[] = \"<a href=\\\"$base$last?mintCoinId=$mintCoinId\\\">$mcName</a>\"; \n }\n\n }\n \n \n return implode($separator, $breadcrumbs);\n}", "title": "" }, { "docid": "a18044bfcf8da34d17df6ce6318f8f3b", "score": "0.54887956", "text": "function setBreadcrumbs($isSubclass = false) {\n\t\t$templateMgr =& TemplateManager::getManager();\n\t\t$pageCrumbs = array(\n\t\t\tarray(\n\t\t\t\tRequest::url(null, 'user'),\n\t\t\t\t'navigation.user'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\tRequest::url(null, 'manager'),\n\t\t\t\t'user.role.manager'\n\t\t\t)\n\t\t);\n\t\tif ($isSubclass) $pageCrumbs[] = array(\n\t\t\tRequest::url(null, 'manager', 'plugins'),\n\t\t\t'manager.plugins'\n\t\t);\n\n\t\t$templateMgr->assign('pageHierarchy', $pageCrumbs);\n\t}", "title": "" }, { "docid": "0e637a3ec77d09225b7b0ed841dc52b8", "score": "0.548557", "text": "function Breadcrumbs()\n\t{\n\t\tif ($breadcrumbs = $this->GetBreadcrumbs())\n\t\t{\n\t\t\techo '<div id=\"breadcrumbs\"><div class=\"wrapper\"><ul>';\n\t\t\t$last = count($breadcrumbs) - 1;\n\t\t\tforeach ($breadcrumbs as $bcount=>$b)\n\t\t\t{\n\t\t\t\techo '<li', $b['suppress'] ? ' class=\"bc_suppress\"' : '', '>';\n\t\t\t\tif ((($bcount != $last) || $b['force_link']) && isset($b['link']) && !$b['suppress'])\n\t\t\t\t{\techo '<a href=\"', $b['link'], '\" ', isset($b['class']) ? ('class=\"' . $b['class'] . '\"') : '', '>', $this->InputSafeString($b['title']), '</a>';\n\t\t\t\t} else\n\t\t\t\t{\techo $this->InputSafeString($b['title']);\t\n\t\t\t\t}\n\t\t\t\techo '</li>';\n\t\t\t}\n\t\t\t\n\t\t\techo '</ul>', $this->BreadcrumbsRightContent(), '</div><div class=\"clear\"></div></div>';\n\t\t}\n\t\t\t\n\t}", "title": "" }, { "docid": "8a0f3fa467ed74029be95d8d9721e5f7", "score": "0.5477695", "text": "function phptemplate_breadcrumb($breadcrumb) {\n//extract current URL for detecting paths\n global $node;\n $path_url = $_REQUEST['q'];\n $path_root_array = explode('/', $path_url);\n $path_root = $path_root_array[0];\n $path_count = count($path_root_array);\n\n //dprint_r($path_root_array);\n \n if (count($breadcrumb) >= 1) {\n \n // custom handling for alumni \n if ($path_root == \"alumni\") {\n if ($path_count > 1) {\n array_insert(&$breadcrumb, l('Alumni','alumni', '', NULL, NULL,FALSE,FALSE), 1);\n }\n }\n \n // custom handling for campuslife galleries \n if ($path_root == 'campuslife' && $path_root_array[1] == 'augustana-experience') {\n //if ($path_count > 2) {\n //$breadcrumb[2] = '<a href=\"/campuslife/augustana-experience\">The Augustana Experience</a>';\n //}\n }\n \n\n // news \n if ($path_root == \"news\") {\n \n \n if ($path_count == 1) {\n $breadcrumb[] = 'News'; \n } else {\n $breadcrumb[1] = '<a href=\"/news\">News</a>';\n }\n \n } elseif ($path_root == \"events\") {\n \n if ($path_count == 1 || $path_count == 2) {\n $breadcrumb[] = 'Events'; \n } else {\n $breadcrumb[] = drupal_get_title();\n }\n \n } elseif ($path_root == \"privacy\" || $path_root == \"photos\" || $path_root == \"contact\" || $path_root == \"contact\") {\n \n $breadcrumb[] = drupal_get_title();\n \n } elseif ($path_root == \"campuslife\" && $path_root_array[1] == 'augustana-experience') {\n \n $breadcrumb[] = drupal_get_title();\n \n \n } else {\n\n $breadcrumb[] = menu_get_active_title();\n //$breadcrumb[] = drupal_get_title();\n \n }\n \n \n \n \n return '<div class=\"breadcrumb\">'. implode(' &rsaquo; ', $breadcrumb) .'</div>';\n }\n}", "title": "" }, { "docid": "67cb520f09f81cbce178a514269f55f3", "score": "0.54759777", "text": "public static function getPageBreadCrumbs(){\n\t\treturn self::$page_path ? self::buildBreadCrumbs(self::$page_path) : '';\n\t}", "title": "" }, { "docid": "e9ff545dc6f71a5969162275024e930c", "score": "0.54696494", "text": "function the_breadcrumb() {\n\t$url = $_SERVER[\"REQUEST_URI\"];\n\t$urlArray = array_slice(explode(\"/\",$url), 0, -1);\n\n\t// Set $dir to the first value\n\t$dir = array_shift($urlArray);\n\techo '<a href=\"/\">Home</a>';\n\tforeach($urlArray as $text) {\n\t\t$dir .= \"/$text\";\n\t\techo ' > <a href=\"'.$dir.'\">' . ucwords(strtr($text, array('_' => ' ', '-' => ' '))) . '</a>';\n\t}\n}", "title": "" }, { "docid": "2c962776dce8c8f27cf77c4215419cbe", "score": "0.5455882", "text": "public function add($label, $url = '')\r\n\t{\r\n\t\tif(!is_string($label) || !is_string($url))\r\n\t\t{\r\n\t\t\tthrow new \\Exception('Params of Breadcrumb::add() must be of type string. \"' . gettype($label) . '\" and \"' . gettype($url) . '\" given', 1);\r\n\t\t}\r\n\r\n\t\t$this->crumbs[] = collect(['label' => $label, 'url' => $url]);\r\n\t}", "title": "" }, { "docid": "2e8350573b5a6e5d79550cd1a2cd0524", "score": "0.5454516", "text": "function athematic_breadcrumb($variables) {\n $breadcrumb = $variables['breadcrumb'];\n\n if (!empty($breadcrumb)) {\n\n // Wrap each breadcrumb link with a div\n\n foreach ($breadcrumb as $bc_key => $bc_value) {\n if ($bc_key==0 && $bc_key != count($breadcrumb)-1)\n {\n $breadcrumb[$bc_key] = '<div class=\"breadcrumb-link-wrapper-first\">&nbsp;&nbsp;' . $bc_value . '&nbsp;&nbsp;</div><!--/.breadcrumb-link-wrapper-->';\n }\n elseif($bc_key==0 && $bc_key == count($breadcrumb)-1)\n {\n $breadcrumb[$bc_key] = '<div class=\"breadcrumb-last-wrap-even\"><div class=\"breadcrumb-link-wrapper-first\">&nbsp;&nbsp;' . $bc_value . '&nbsp;&nbsp;</div></div><!--/.breadcrumb-link-wrapper,.breadcrumb-last-wrap-even-->';\n }\n elseif($bc_key == count($breadcrumb)-1 && $bc_key % 2 ==0)\n {\n $breadcrumb[$bc_key] = '<div class=\"breadcrumb-last-wrap-even\"><div class=\"breadcrumb-link-wrapper-last-even\">&nbsp;&nbsp;' . $bc_value . '&nbsp;&nbsp;</div></div><!--/.breadcrumb-link-wrapper,.breadcrumb-last-wrap-even-->';\n }\n elseif($bc_key == count($breadcrumb)-1 && $bc_key % 2 !=0)\n {\n $breadcrumb[$bc_key] = '<div class=\"breadcrumb-last-wrap-odd\"><div class=\"breadcrumb-link-wrapper-last-odd\">&nbsp;&nbsp;' . $bc_value . '&nbsp;&nbsp;</div></div><!--/.breadcrumb-link-wrapper,.breadcrumb-last-wrap-odd-->';\n }\n elseif ($bc_key % 2 ==0){\n $breadcrumb[$bc_key] = '<div class=\"breadcrumb-link-wrapper-even\">&nbsp;&nbsp;' . $bc_value . '&nbsp;&nbsp;</div><!--/.breadcrumb-link-wrapper-->';\n }\n else{\n $breadcrumb[$bc_key] = '<div class=\"breadcrumb-link-wrapper-odd\">&nbsp;&nbsp;' . $bc_value . '&nbsp;&nbsp;</div><!--/.breadcrumb-link-wrapper-->';\n\n }\n }\n\n // Provide a navigational heading to give context for breadcrumb links to\n // screen-reader users. Make the heading invisible with .element-invisible.\n $output = '<h2 class=\"element-invisible\">' . t('You are here') . '</h2>';\n\n $output .= '<div class=breadcrumb-wrapper> <div class=\"breadcrumb\">' . implode('', $breadcrumb) . '</div></div><!-- /.breadcrumb, .breadcrumb-wrapper-->';\n return $output;\n }\n}", "title": "" }, { "docid": "9233f25507bbb73685cdd4c33b83a929", "score": "0.54410183", "text": "private function getJSONBreadcrumbs()\n\t{\n\t\t// Skip on homepage \n\t\tif (!$this->params->get(\"breadcrumbs_enabled\", true))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t// Generate JSON\n\t\treturn $this->json->setData(array(\n\t\t\t\"contentType\" => \"breadcrumbs\",\n\t\t\t\"crumbs\" => Helper::getCrumbs($this->params->get('breadcrumbs_home', \\JText::_('GSD_BREADCRUMBS_HOME')))\n\t\t))->generate();\n\t}", "title": "" }, { "docid": "8f740b1f7162028c5632f61c1383ac91", "score": "0.54248416", "text": "function wpseo_shortcode_yoast_breadcrumb()\n {\n }", "title": "" }, { "docid": "0015d63f8213d86a7e41b78fca7e0537", "score": "0.5424025", "text": "public function addBreadcrumb($text, $url = null) {\n if ($url) :\n $this->_breadcrumbs[$text] = $url;\n else :\n $this->_breadcrumbs[] = $text;\n endif;\n return $this;\n }", "title": "" }, { "docid": "33fe88c407cf7f7d5fc5ea9640566149", "score": "0.5421466", "text": "function GetBreadcrumbs()\n\t{\n\t\tarray_pop($this->breadcrumbs);\n\t\treturn $this->breadcrumbs;\n\t}", "title": "" }, { "docid": "1d35f0a7cdd4de3cd1678a96e328cef6", "score": "0.54177004", "text": "function az_generate_breadcrumb($breadcrumb = array()) {\r\n $ci =& get_instance();\r\n $ci->load->helper('array');\r\n $ci->config->load('menu');\r\n $menu = $ci->config->item('menu');\r\n $return = \"<span class='title'><a href='\".app_url().\"'>\".azlang('Home').\"</a></span>&nbsp;\";\r\n if (count($breadcrumb) > 0) {\r\n $first_menu = azarr($breadcrumb, '0');\r\n $selected_menu = array();\r\n foreach ($menu as $key => $value) {\r\n $check_menu = azarr($value, 'name');\r\n if ($check_menu == $first_menu) {\r\n $selected_menu = $value;\r\n }\r\n }\r\n\r\n $st_url = azarr($selected_menu, 'url');\r\n $st_title = azarr($selected_menu, 'title');\r\n $st_submenu = azarr($selected_menu, 'submenu');\r\n if (strlen($st_url) == 0) {\r\n $st_url = 'javascript:void(0)';\r\n }\r\n else {\r\n $st_url = app_url().$st_url;\r\n }\r\n $return .= \"&nbsp;<i class='fa fa-chevron-right'></i> <span class='title'><a href='\".$st_url.\"'>\".$st_title.\"</a></span>\";\r\n unset($breadcrumb[0]);\r\n $breadcrumb = array_values($breadcrumb);\r\n\r\n $total_breadcrumb = count($breadcrumb);\r\n if ($total_breadcrumb > 0) {\r\n $nd_submenu = (array) $st_submenu;\r\n for ($i=0; $i < $total_breadcrumb; $i++) {\r\n $selected_nd_menu = array(); \r\n foreach ($nd_submenu as $key => $value) {\r\n $check_menu = azarr($value, 'name');\r\n if ($check_menu == $breadcrumb[$i]) {\r\n $selected_nd_menu = $value;\r\n }\r\n }\r\n $nd_url = azarr($selected_nd_menu, 'url');\r\n $nd_title = azarr($selected_nd_menu, 'title');\r\n $nd_submenu = azarr($selected_nd_menu, 'submenu');\r\n $return .= \"&nbsp;<i class='fa fa-chevron-right'></i> <span><a href='\".$nd_url.\"'>\".$nd_title.\"</a></span>&nbsp\";\r\n }\r\n }\r\n\r\n }\r\n\r\n return $return;\r\n }", "title": "" }, { "docid": "cc33bff739f960dac01a1929f6be95eb", "score": "0.5407905", "text": "function breadcrumbs($separator = ' &raquo; ', $home = 'Home') {\n $path = array_filter(explode('/', parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)));\n \n // Determine protocol ( http or https )\n $httpReferer = $_SERVER['HTTP_REFERER'];\n\n /* After reloading the page we do not have a value of $_SERVER['HTTP_REFERER'], \n because of it we need to set it to session in order to get it after reloading */\n if (isset($httpReferer)) {\n Session::setSession('http_referer', $httpReferer);\n $protocol = substr($httpReferer, 0, strpos($httpReferer, '/') - 1);\n $base = $protocol . '://' . $_SERVER['HTTP_HOST'] . '/';\n } else {\n $httpRefererSession = Session::getSession('http_referer'); \n $protocol = substr($httpRefererSession, 0, strpos($httpRefererSession, '/') - 1);\n $base = $protocol . '://' . $_SERVER['HTTP_HOST'] . '/';\n }\n \n // Initialize a temporary array with our breadcrumbs. (starting with our home page, which I'm assuming will be the base URL)\n $breadcrumbs = array(\"<a href=\\\"$base\\\">$home</a>\");\n\n // To remove last element if it is an integer and last but one if it page (for pagination)\n $arrayValues = array_values($path);\n $lastElement = end($arrayValues);\n \n if (is_numeric($lastElement)) {\n array_pop($path);\n $arrKeys = array_keys($path);\n $last = end($arrKeys);\n \n if(end($path) == 'page') {\n array_pop($path);\n $arrKeys = array_keys($path);\n $last = end($arrKeys);\n }\n }\n \n if ($lastElement == 'page') {\n array_pop($path);\n $arrKeys = array_keys($path);\n $last = end($arrKeys);\n }\n \n // Find out the index for the last value in our path array\n $arrKeys = array_keys($path);\n $last = end($arrKeys); \n \n $pathPart = '';\n \n // Build the rest of the breadcrumbs\n foreach ($path as $x => $crumb) {\n // Our \"title\" is the text that will be displayed (strip out .php and turn '_' into a space)\n $title = ucwords(str_replace(Array('.php', '_'), Array('', ' '), $crumb));\n \n $pathPart .= $crumb . '/';\n\n // If we are not on the last index, then display an <a> tag\n if ($x != $last)\n $breadcrumbs[] = \"<a href=\\\"$base$pathPart\\\">$title</a>\";\n // Otherwise, just display the title (minus)\n else\n $breadcrumbs[] = $title;\n }\n\n // Build our temporary array (pieces of bread) into one big string :)\n return implode($separator, $breadcrumbs);\n }", "title": "" }, { "docid": "0584a57ea89a19e3c015563ce4038769", "score": "0.5395145", "text": "function ecobo_breadcrumb($variables) {\r\n $variables['breadcrumb'][] = drupal_get_title();\r\n $breadcrumb = $variables['breadcrumb'];\r\n\r\n /* Remove empty breadcrumb */\r\n foreach ($breadcrumb as $id => $item) {\r\n if($item == '<a href=\"/fr/terrains-et-nouvelles-constructions\">Gronden &amp; Nieuwbouw</a>') {\r\n $breadcrumb[$id] = '<a href=\"/fr/terrains-et-nouvelles-constructions\">Terrains et nouvelles constructions</a>';\r\n }\r\n\r\n\r\n\r\n\r\n\r\n\r\n if($item == '<a href=\"/node\"></a>' || $item == '<a href=\"/fr/node\"></a>') {\r\n unset($breadcrumb[$id]);\r\n }\r\n }\r\n\r\n if (!drupal_is_front_page()) {\r\n if (!empty($breadcrumb)) {\r\n\r\n // Provide a navigational heading to give context for breadcrumb links to\r\n // screen-reader users. Make the heading invisible with .element-invisible.\r\n $output = '<h2 class=\"element-invisible\">' . t('You are here') . '</h2>';\r\n $output .= '<div class=\"breadcrumb\">' . implode(' » ', $breadcrumb) . '</div>';\r\n\r\n return $output;\r\n }\r\n }\r\n}", "title": "" }, { "docid": "edd0228e31ad210d5ee65803932e5dcc", "score": "0.53844744", "text": "function ou_ouice3_breadcrumb($variables) {\n $breadcrumb = $variables['breadcrumb'];\n $get_site_name = variable_get('site_name', \"Default site name\");\n $themed_breadcrumb = '<ol class=\"ou-ancestors\">';\n\n if (!empty($breadcrumb)) {\n // Provide a navigational heading to give context for breadcrumb links to\n // screen-reader users. Make the heading invisible with .element-invisible.\n\t$breadcrumb[] = drupal_get_title();\n $breadcrumb[0] = l(($get_site_name ? $get_site_name : \"Home\"), NULL);\n\n\t$array_size = count($breadcrumb);\n $i = 0;\n while ( $i < $array_size) {\n $themed_breadcrumb .= '<li>';\n $themed_breadcrumb .= $breadcrumb[$i] . '</li>';\n $i++;\n }\n $themed_breadcrumb .= '</ol>';\n\n return $themed_breadcrumb;\n }\n}", "title": "" }, { "docid": "cc90cae19a197b536eb28f16b05aef22", "score": "0.5365816", "text": "public function add(Item $item)\n {\n $this->breadcrumbs[] = $item;\n\n return $this;\n }", "title": "" }, { "docid": "07ec64acfe1b99ac93595a303ab0a805", "score": "0.5364383", "text": "function system_buildLocationBreadCrumb($_locations, $array, $limit_level, $redirect = 'index.php', $extraInfo = false)\n{\n if ($limit_level != $_locations[0]) {\n ?><a href=\"<?= DEFAULT_URL ?>/<?= SITEMGR_ALIAS ?>/configuration/geography/locations/location_<?= $_locations[0] ?>/index.php\"><?\n }\n echo system_showText(LANG_SITEMGR_NAVBAR_LOCATIONS);\n if ($limit_level != $_locations[0]) {\n ?></a> &raquo; <?\n }\n $_link_params = false;\n\n // filling the gaps of the url path ///////////////\n if ((is_array($array)) and (count($array) > 0)) {\n $aux_max_level = 1;\n foreach ($array as $name => $value) {\n $pos = string_strpos($name, 'location_');\n if ($pos !== false) {\n $current_level = string_substr($name, -1);\n if (($current_level > $aux_max_level) and (in_array($current_level, $_locations))) {\n $aux_max_level = $current_level;\n }\n }\n }\n\n if ($array['location_'.$aux_max_level] > 0) {\n $aux_location_path = db_getFromDB('location'.($aux_max_level), 'id', $array['location_'.$aux_max_level], 1,\n '', 'array');\n\n if ($aux_location_path) {\n foreach ($aux_location_path as $name => $value) {\n $pos = string_strpos($name, 'location_');\n if (($pos !== false) and ($value > 0)) {\n if (in_array(string_substr($name, -1), $_locations)) {\n $array[$name] = $value;\n }\n }\n }\n }\n }\n\n // calculating the real limit level _ according to the path available\n $aux_location_father_level = false;\n $aux_location_child_level = false;\n system_retrieveLocationRelationship($_locations, $aux_max_level, $aux_location_father_level,\n $aux_location_child_level);\n $limit_level = $aux_location_child_level;\n\n ksort($array);\n }\n ///////////////////////////////////////////////////\n\n $aux_array_breadcrumb = [];\n if ($array) {\n if (count($array) > 0) {\n foreach ($array as $name => $value) {\n $pos = string_strpos($name, 'location_');\n if (($pos !== false) && ($pos == 0)) {\n if ($value) {\n $current_level = string_substr($name, -1);\n system_retrieveLocationRelationship($_locations, $current_level, $_location_father_level,\n $_location_child_level);\n if ($_location_father_level) {\n $locationName = true;\n $nodeParams = system_buildLocationNodeParams($array, $current_level, $locationName);\n if ($locationName === true) {\n $aux_array_breadcrumb[] = LANG_NA.' &raquo; ';\n } else {\n $aux_array_breadcrumb[] = '<a href=\"'.DEFAULT_URL.'/'.SITEMGR_ALIAS.'/configuration/geography/locations/location_'.$current_level.'/'.$redirect.'?'.$nodeParams.'\">'.$locationName.'</a> &raquo;';\n }\n }\n if ($_location_child_level == $limit_level) {\n $locationInfo = db_getFromDB('location'.$current_level, 'id', $value, 1, '', 'array');\n $aux_array_breadcrumb[] = $locationInfo['name'];\n }\n } else {\n $aux_array_breadcrumb[] = LANG_NA;\n }\n }\n }\n }\n }\n if (count($aux_array_breadcrumb) > 0) {\n echo implode('&nbsp;', $aux_array_breadcrumb);\n }\n\n return $_link_params;\n}", "title": "" }, { "docid": "f79afd2f8b4ae93f5a356ade3054073a", "score": "0.5354136", "text": "function dynamik_breadcrumb($variables) {\n $count = '100';\n $breadcrumb = $variables['breadcrumb'];\n $crumbs = '';\n\n if (!empty($breadcrumb)) {\n $crumbs = '<div id=\"breadcrumb\"><ul class=\"breadcrumbs\">';\n foreach($breadcrumb as $value) {\n $count = $count - 1;\n $style = ' style=\"z-index:'.$count.';\"';\n $pos = strpos( $value, \">\"); \n $temp1=substr($value,0,$pos);\n $temp2=substr($value,$pos,$pos);\n $crumbs .= '<li>'.$value.'</li>';\n }\n $crumbs .= '</ul></div>';\n }\n return $crumbs;\n}", "title": "" }, { "docid": "33ea7ea5c8a46860f024d94fd6beb2cb", "score": "0.5332864", "text": "public function breadcrumbs($breadcrumbs) {\n\t\t$out = '';\n\t\tforeach($breadcrumbs as $url => $title) {\n\t\t\tif($title instanceof Page) {\n\t\t\t\t$page = $title;\t\n\t\t\t\t$url = $page->url;\n\t\t\t\t$title = $page->title;\n\t\t\t}\n\t\t\t$out .= $this->li($this->a($url, $title));\n\t\t}\n\n\t\tif($out) $out = $this->ul($out, 'breadcrumbs'); \n\t\treturn $out; \n\t}", "title": "" }, { "docid": "eb1c2e452518f8cd6fe7366bfb915f69", "score": "0.53323215", "text": "function mm_content_restore_breadcrumb($bread = NULL, $crumb = NULL) {\n global $_mm_content_saved_breadcrumb;\n\n if (!isset($bread)) $bread = $_mm_content_saved_breadcrumb[0];\n if (!isset($crumb)) $crumb = $_mm_content_saved_breadcrumb[1];\n if (isset($bread) && isset($crumb)) {\n drupal_set_breadcrumb($bread);\n drupal_set_title($crumb);\n $_mm_content_saved_breadcrumb = array($bread, $crumb);\n }\n}", "title": "" }, { "docid": "99a001d3f1515c7b025548c38bd2e5e6", "score": "0.5325612", "text": "function mm_content_fix_breadcrumbs($mmtids = NULL) {\n global $_mm_content_saved_breadcrumb;\n\n if (!isset($mmtids)) {\n mm_parse_args($mmtids, $oarg_list);\n if (count($mmtids) == 0) return;\n }\n else {\n mm_parse_args($dummy, $oarg_list);\n }\n\n if ($mmtids[0] == mm_home_mmtid()) array_shift($mmtids);\n\n $base = mm_content_get(mm_home_mmtid());\n $bread[] = l(mm_content_expand_name($base->name), '<front>');\n $path[] = mm_home_path();\n foreach ($mmtids as $mmtid) {\n if (!($tree = mm_content_get($mmtid, MM_GET_FLAGS))) {\n break;\n }\n\n if ($mmtid == $mmtids[count($mmtids) - 1] || !isset($tree->flags['no_breadcrumb'])) {\n $path[] = $mmtid;\n $bread[] = l($title = mm_content_expand_name($tree->name), implode('/', $path));\n }\n\n if (!mm_content_user_can($mmtid, 'r')) break;\n }\n\n if (count($oarg_list) != 2 || $oarg_list[0] != 'node') {\n if (isset($title)) {\n array_pop($bread);\n drupal_set_title($title);\n }\n else if (count($bread) == 1) { // homepage\n drupal_set_title($title = '');\n }\n }\n\n drupal_set_breadcrumb($bread);\n $_mm_content_saved_breadcrumb = array($bread, $title);\n return $title;\n}", "title": "" }, { "docid": "57b2826e24f24caeb7681e271d158938", "score": "0.5321498", "text": "function breadcrumb_lists(array $options = array() ) {\r\n\t$options = array_merge(array(\r\n\t'crumbId' => 'breadcrumb', // id for the breadcrumb Div\r\n\t'crumbClass' => 'breadcrumb', // class for the breadcrumb Div\r\n\t'beginningText' => '', // text showing before breadcrumb starts\r\n\t'showOnHome' => 0,// 1 - show breadcrumbs on the homepage, 0 - don't show\r\n\t'delimiter' => '', // delimiter between crumbs\r\n\t'homePageText' => __('Home'), // text for the 'Home' link\r\n\t'showCurrent' => 1, // 1 - show current post/page title in breadcrumbs, 0 - don't show\r\n\t'beforeTag' => '<li class=\"active\">', // tag before the current breadcrumb\r\n\t'afterTag' => '</li>', // tag after the current crumb\r\n\t'showTitle'=> 1 // showing post/page title or slug if title to show then 1\r\n ), $options);\r\n \r\n $crumbId = $options['crumbId'];\r\n\t$crumbClass = $options['crumbClass'];\r\n\t$beginningText = $options['beginningText'] ;\r\n\t$showOnHome = $options['showOnHome'];\r\n\t$delimiter = $options['delimiter']; \r\n\t$homePageText = $options['homePageText']; \r\n\t$showCurrent = $options['showCurrent']; \r\n\t$beforeTag = $options['beforeTag']; \r\n\t$afterTag = $options['afterTag']; \r\n\t$showTitle = $options['showTitle']; \r\n\t\r\n\tglobal $post;\r\n\r\n\t$wp_query = $GLOBALS['wp_query'];\r\n\r\n\t$homeLink = home_url();\r\n\t\r\n\techo '<ul id=\"'.$crumbId.'\" class=\"'.$crumbClass.'\" >'.$beginningText;\r\n\t\r\n\tif (is_home() || is_front_page()) {\r\n\t\r\n\t if ($showOnHome == 1)\r\n\r\n\t\t echo $beforeTag . $homePageText . $afterTag;\r\n\r\n\t} else { \r\n\t\r\n\t echo '<li><a href=\"' . $homeLink . '\">' . $homePageText . '</a></li> ' . $delimiter . ' ';\r\n\t\r\n\t if ( is_category() ) {\r\n\t\t$thisCat = get_category(get_query_var('cat'), false);\r\n\t\tif ($thisCat->parent != 0) echo get_category_parents($thisCat->parent, TRUE, ' ' . $delimiter . ' ');\r\n\t\techo $beforeTag . '' . single_cat_title('', false) . '' . $afterTag;\r\n\t\r\n\t } elseif ( is_tax() ) {\r\n\t\t $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );\r\n\t\t $parents = array();\r\n\t\t $parent = $term->parent;\r\n\t\t while ( $parent ) {\r\n\t\t\t $parents[] = $parent;\r\n\t\t\t $new_parent = get_term_by( 'id', $parent, get_query_var( 'taxonomy' ) );\r\n\t\t\t $parent = $new_parent->parent;\r\n\r\n\t\t }\t\t \r\n\t\t if ( ! empty( $parents ) ) {\r\n\t\t\t $parents = array_reverse( $parents );\r\n\t\t\t foreach ( $parents as $parent ) {\r\n\t\t\t\t $item = get_term_by( 'id', $parent, get_query_var( 'taxonomy' ));\r\n\t\t\t\t echo '<li><a href=\"' . get_term_link( $item->slug, get_query_var( 'taxonomy' ) ) . '\">' . $item->name . '</a></li>' . $delimiter. ' ';\r\n\t\t\t }\r\n\t\t }\r\n\r\n\t\t $queried_object = $wp_query->get_queried_object();\r\n\t\t echo $beforeTag . $queried_object->name . $afterTag;\t \r\n\t\t } elseif ( is_search() ) {\r\n\t\techo $beforeTag . __('Search results for','pnina').' \"' . get_search_query() . '\"' . $afterTag;\r\n\t\r\n\t } elseif ( is_day() ) {\r\n\t\techo '<li><a href=\"' . get_year_link(get_the_time('Y')) . '\">' . get_the_time('Y') . '</a></li> ' . $delimiter . ' ';\r\n\t\techo '<li><a href=\"' . get_month_link(get_the_time('Y'),get_the_time('m')) . '\">' . get_the_time('F') . '</a></li> ' . $delimiter . ' ';\r\n\t\techo $beforeTag . get_the_time('d') . $afterTag;\r\n\t\r\n\t } elseif ( is_month() ) {\r\n\t\techo '<li><a href=\"' . get_year_link(get_the_time('Y')) . '\">' . get_the_time('Y') . '</a></li> ' . $delimiter . ' ';\r\n\t\techo $beforeTag . get_the_time('F') . $afterTag;\r\n\t\r\n\t } elseif ( is_year() ) {\r\n\t\techo $beforeTag . get_the_time('Y') . $afterTag;\r\n\t\r\n\t } elseif ( is_single() && !is_attachment() ) {\r\n\t\t \r\n\t\t if($showTitle)\r\n\t\t\t $title = get_the_title();\r\n\t\t\t else\r\n\t\t\t $title = $post->post_name;\r\n\t\t\t \tif ( get_post_type() == 'product' ) { \r\n\t\t\t\t\t if ( $terms = wp_get_object_terms( $post->ID, 'product_cat' ) ) {\r\n\t\t\r\n\t\t\t\t\t\t $term = current( $terms );\r\n\t\t\r\n\t\t\t\t\t\t $parents = array();\r\n\t\t\r\n\t\t\t\t\t\t $parent = $term->parent;\r\n\t\t\t\t\t\t while ( $parent ) {\r\n\t\t\r\n\t\t\t\t\t\t\t $parents[] = $parent;\r\n\t\t\r\n\t\t\t\t\t\t\t $new_parent = get_term_by( 'id', $parent, 'product_cat' );\r\n\t\t\r\n\t\t\t\t\t\t\t $parent = $new_parent->parent;\r\n\t\t\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t if ( ! empty( $parents ) ) {\r\n\t\t\r\n\t\t\t\t\t\t\t $parents = array_reverse($parents);\r\n\t\t\r\n\t\t\t\t\t\t\t foreach ( $parents as $parent ) {\r\n\t\t\r\n\t\t\t\t\t\t\t\t $item = get_term_by( 'id', $parent, 'product_cat');\r\n\t\t\r\n\t\t\t\t\t\t\t\t echo '<li><a href=\"' . get_term_link( $item->slug, 'product_cat' ) . '\">' . $item->name . '</a></li>' . $delimiter;\r\n\t\t\r\n\t\t\t\t\t\t\t }\r\n\t\t\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t echo '<li><a href=\"' . get_term_link( $term->slug, 'product_cat' ) . '\">' . $term->name . '</a></li>' . $delimiter;\r\n\t\t\t\t\t }\r\n\t\t\t\t\t echo $beforeTag . $title . $afterTag;\r\n\t\t\t\t } elseif ( get_post_type() != 'post' ) {\r\n\t\t\t\t $post_type = get_post_type_object(get_post_type());\r\n\t\t\t\t $slug = $post_type->rewrite;\r\n\t\t\t\t echo '<li><a href=\"' . $homeLink . '/' . $slug['slug'] . '/\">' . $post_type->labels->singular_name . '</a></li>';\r\n\t\t\t\t if ($showCurrent == 1) echo ' ' . $delimiter . ' ' . $beforeTag . $title . $afterTag;\r\n\t\t\t\t} else {\r\n\t\t\t\t $cat = get_the_category(); $cat = $cat[0];\r\n\t\t\t\t $cats = get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');\r\n\t\t\t\t if ($showCurrent == 0) $cats = preg_replace(\"#^(.+)\\s$delimiter\\s$#\", \"$1\", $cats);\r\n\t\t\t\t echo $cats;\r\n\t\t\t\t if ($showCurrent == 1) echo $beforeTag . $title . $afterTag;\r\n\t\t\r\n\t\t\t\t}\r\n\r\n\t } elseif ( !is_single() && !is_page() && get_post_type() != 'post' && !is_404() ) {\r\n\t\t \r\n\t\t$post_type = get_post_type_object(get_post_type());\r\n\t\t\r\n\t\techo $beforeTag . $post_type->labels->singular_name . $afterTag;\r\n\t\t\t \r\n\t } elseif ( is_attachment() ) {\r\n\t\t\t \r\n\t\t$parent = get_post($post->post_parent);\r\n\t\t$cat = get_the_category($parent->ID); $cat = $cat[0];\r\n\t\techo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');\r\n\t\techo '<li><a href=\"' . get_permalink($parent) . '\">' . $parent->post_title . '</a></li>';\r\n\t\tif ($showCurrent == 1) echo ' ' . $delimiter . ' ' . $beforeTag . get_the_title() . $afterTag;\t\r\n\t\t \r\n\t\t} elseif ( is_page() && !$post->post_parent ) {\r\n\t\t\t$title =($showTitle)? get_the_title():$post->post_name;\r\n\t\t\t \r\n\t\tif ($showCurrent == 1) echo $beforeTag . $title . $afterTag;\r\n\r\n\t } elseif ( is_page() && $post->post_parent ) {\r\n\t\t$parent_id = $post->post_parent;\r\n\t\t$breadcrumbs = array();\r\n\t\twhile ($parent_id) {\r\n\t\t $page = get_page($parent_id);\r\n\t\t $breadcrumbs[] = '<li><a href=\"' . get_permalink($page->ID) . '\">' . get_the_title($page->ID) . '</a></li>';\r\n\t\t $parent_id = $page->post_parent;\r\n\t\t}\r\n\t\t$breadcrumbs = array_reverse($breadcrumbs);\r\n\t\tfor ($i = 0; $i < count($breadcrumbs); $i++) {\r\n\t\t echo $breadcrumbs[$i];\r\n\t\t if ($i != count($breadcrumbs)-1) echo ' ' . $delimiter . ' ';\r\n\t\t}\r\n\t\t\t$title =($showTitle)? get_the_title():$post->post_name;\r\n\t\t \r\n\tif ($showCurrent == 1) echo ' ' . $delimiter . ' ' . $beforeTag . $title . $afterTag;\r\n\r\n\t } elseif ( is_tag() ) {\r\n\r\n\t\techo $beforeTag . ''.__('Posts tagged').' \"' . single_tag_title('', false) . '\"' . $afterTag;\r\n\r\n\t } elseif ( is_author() ) {\r\n\t\t global $author;\r\n\t\t$userdata = get_userdata($author);\r\n\r\n\t\techo $beforeTag . ''.__('Articles posted by').'' . $userdata->display_name . $afterTag;\r\n\r\n\t } elseif ( is_404() ) {\r\n\t\t \r\n\t\techo $beforeTag . ''.__('Error 404').'' . $afterTag;\r\n\r\n\t }\r\n\r\n\t if ( get_query_var('paged') ) {\r\n\t\tif ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() || is_tax() ) echo ' (';\r\n\t\techo __('Page') . ' ' . get_query_var('paged');\r\n\t\tif ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() || is_tax() ) echo ')';\r\n\t }\r\n\t}\r\n\techo '</ul>';\r\n }", "title": "" }, { "docid": "c3fceff461fe2c8736c2567e41015e43", "score": "0.5308308", "text": "public function getAdditionalBreadcrumbsAfter()\n {\n $pages = ArrayList::create();\n $currentController = Controller::curr();\n $slug = $currentController->getRequest()->param('Item');\n $item = ($slug && $currentController->hasMethod('getItem')) ? $currentController->getItem($slug) : false;\n if ($slug && $item) {\n $pages->push($item);\n }\n\n return $pages;\n }", "title": "" }, { "docid": "d4568fa82bbc61ec11bba1c27a265c1c", "score": "0.528889", "text": "public function add_additional_breadcrumbs(BreadcrumbTrail $breadcrumbtrail)\n {\n $breadcrumbtrail->add_help('weblcms_course_create');\n $breadcrumbtrail->add(\n new Breadcrumb($this->get_browse_course_url(), Translation::get('CourseManagerBrowseComponent')));\n }", "title": "" }, { "docid": "d79c7d5c57651a3c3f1296eab3474902", "score": "0.528503", "text": "function RenderBreadCrumbMenu()\n\t{\n\t\tif (!BreadCrumb()->HasBreadCrumbs())\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$arrCrumbs = array();\n\t\tforeach (DBO()->BreadCrumb as $objProperty)\n\t\t{\n\t\t\t$arrCrumbs[] = \"<a href='{$objProperty->Value}'>{$objProperty->Label}</a>\";\n\t\t}\n\t\t\n\t\t// Add the current page as a breadcrumb\n\t\t$mixCurrentPage = BreadCrumb()->GetCurrentPage();\n\t\tif ($mixCurrentPage !== FALSE)\n\t\t{\n\t\t\t$arrCrumbs[] = $mixCurrentPage;\n\t\t}\n\t\t\n\t\techo \"\n\t\t\t<div id='BreadCrumbMenu' class='bread-crumb-menu'>\n\t\t\t\t\". implode(\"\\n\\t\\t\\t\\t&gt;\\n\\t\\t\\t\\t\", $arrCrumbs) .\"\n\t\t\t</div> <!-- bread crumb menu -->\\n\";\n\t}", "title": "" }, { "docid": "286b9358b622b3ec43957774438634ca", "score": "0.52678615", "text": "public function breadcrumbs() : string;", "title": "" }, { "docid": "ca4aa9d0c1c507b598ef87f909ed6d4e", "score": "0.5263102", "text": "function breadcrumb_trail()\n{\nreturn <<< EOF\n<a href=\"{crumb_link}\">{crumb_title}</a><span class=\"breadcrumbspacer\">&nbsp;&nbsp;&gt;&nbsp;&nbsp;</span>\nEOF;\n}", "title": "" }, { "docid": "cb5c15db8450bb52ec222b5096689483", "score": "0.525147", "text": "static function breadcrumbs() {\n/* \tif not on, skip this */\n\t\tif ( !self::variable( 'breadcrumbs' ) ) return;\n\t\t\n\t\tglobal $breadcrumbs, $post, $wp_query;\n\t\t\n/* skip this if you are not these things\t\t */\n\t\t$skip_post_types = array(\n\t\t\t'forum',\n\t\t\t'topic',\n\t\t\t'reply',\n\t\t);\n\t\t\n\t\t\n\t\t$skip_taxonomies = array(\n\t\t\t'topic-tag',\n\t\t);\n\t\t\n\t\t$term = get_query_var( 'term' );\n\t\t$taxonomy = get_query_var( 'taxonomy' );\n\t\t$paged = get_query_var( 'paged' );\n\t\t\n\t\t// WooCommerce check - set a variable we can use to see if WooCommerce is on\n\t\t/**\n\t\t* @TODO make this a seperate function that gets called even if breadcrumbs is turned off\n\t\t*/\n\t\tif ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) \n\t\t\t$woo_active = true;\n\t\t\t\n\t\t// bbPress check \n\t\t/**\n\t\t* @TODO make this a seperate function that gets called even if breadcrumbs is turned off\n\t\t*/\n\t\tif ( class_exists( 'bbPress' ) ) \n\t\t\t$bbpress_active = true;\n\t\n\t\t$breadcrumbs = array();\n\t\t\n\t\t// Builds the Home URL\n\t\t/**\n\t\t* @TODO Make this possible to be a word, an icon, nothing, an image... not always font awesome\n\t\t*/\n\t\tself::make_crumb( home_url(), self::variable( 'breadcrumb_home_text' ) );\n\t\t\n\t\t// WooCommerce\n\t\tif ( $woo_active ) :\n\t\t\t$shop_id = get_option( 'woocommerce_shop_page_id' );\n\t\t\t\n\t\t\tif ( is_cart() || is_checkout() || is_woocommerce() && get_option( 'page_on_front' ) !== $shop_id ) \n\t\t\t\tself::make_crumb( ( is_shop() ? null : get_permalink( $shop_id ) ), get_the_title( $shop_id ) );\n\t\tendif; // WooCommerce\n\t\t\n\t\t// Page -- Parents murdered in an alley\n\t\tif ( is_page() && !$post->post_parent )\n/* \t\tthrow out the url, and the name */ \n\t\t\tself::make_crumb( null, get_the_title() );\n\t\t\n\t\t// Page -- Has parents\n\t\tif ( is_page() && $post->post_parent ) :\n\t\t\n\t\t\t$parent_id = $post->post_parent;\n\t\t\t\n\t\t\t// We have to put ancestors in the own array first because \n\t\t\t// they're in a reverse order. We'll order them correctly in a second.\n\t\t\t$subcrumbs = array();\n\t\t\t\n\t\t\twhile ( $parent_id ) :\n\t\t\t\t$page = get_page( $parent_id );\n\t\t\t\t\n\t\t\t\t$subcrumbs[] = array(\n\t\t\t\t\t'url' => get_permalink( $page->ID ),\n\t\t\t\t\t'text' => get_the_title( $page->ID ),\n\t\t\t\t);\n\t\t\t\t\n\t\t\t\t$parent_id = $page->post_parent;\n\t\t\tendwhile;\n\t\t\t\n\t\t\t// Reverse the ancestor order\n\t\t\t$subcrumbs = array_reverse( $subcrumbs );\n\t\t\t\n\t\t\tforeach ( $subcrumbs as $crumb => $data ) {\n\t\t\t\t// Make crumbs for each ancestor\n/* \t\t\t\tConcatinate the breadcrumbs into one */\n\t\t\t\tself::make_crumb( $data['url'], $data['text'] );\n\t\t\t}\n\t\t\t\n\t\t\t// Finally, make crumb for current page\n\t\t\tself::make_crumb( null, get_the_title() );\n\t\t\t\n\t\tendif; // Page with parents\n\t\t\n\t\t// Author archive\n/* \t\tfind out who the offer is */\n\t\tif ( is_author() ) :\n\t\t\tglobal $author;\n\t\t\n\t\t\t$the_author = get_userdata( $author );\n/* \t\t\tconcatinate it in */\n\t\t\tself::make_crumb( null, $the_author->display_name . '\\'s Posts' );\n\t\t\n\t\tendif; // Author archive\n\t\t\n\t\tif ( is_category() ) :\n\t\t\n\t\t\t$cat_object = $wp_query->get_queried_object();\t\t\n\t $this_cat = get_category( $cat_object->term_id );\n\t \n\t // Category has parents\n\t // This is all hacky because we put the categories into a pipe-separated\n\t // list and then split them out. This leaves the last element in the array\n\t // as blank. So we cut that and make crumbs for the rest. Should \n\t // work nicely for nested categories.\n\t /**\n\t\t* @TODO Audit this, we can't remember what this pipe shit is all about\n\t\t*/\n\t if ( $this_cat->parent != 0 ) :\n\t \t$parents = get_category_parents( get_category( $this_cat->parent ), false, '|', false );\n\t \t$parents = explode( '|', $parents );\n\t \tunset( $parents[ count( $parents ) - 1 ] );\n\t \t\n\t \tforeach ( $parents as $parent ) {\n\t \t\t$the_cat = get_term_by( 'name', $parent, 'category' );\n\t \t\t$the_link = get_term_link( $the_cat );\n\t\t \tself::make_crumb( $the_link, $parent );\n\t \t}\n\t endif;\n\t \n\t // The current category\n\t self::make_crumb( null, single_cat_title( null, false ) );\n\t \n\t\tendif; // Is category\n\t\t\n\t\t// Tagged\n\t\tif ( is_tag() ) :\n\t\t\n\t\t\t$tag_object = $wp_query->get_queried_object();\n\t\t\t$this_tag = get_tag( $tag_object );\n\t\t\t\n\t\t\tself::make_crumb( null, single_cat_title( null, false ) );\n\t\t\n\t\tendif; // Is tag\n\t\t\n\t\t// 404\n\t\tif ( is_404() ) :\n\t\t\tself::make_crumb( null, 'File Not Found (Error 404)' );\n\t\tendif; // 404\n\t\t\n\t\t// Search results\n\t\tif ( is_search() ) :\n\t\t\tself::make_crumb( null, 'Search Results for \"' . get_search_query() . '\"' );\n\t\tendif; // Search\n\t\t\n\t\t// Single post, except products\n/* \t\ttries to handle not only single posts, but any single post that is created by nerdpress or any other plugin */\n\n\n\t\tif ( is_single() && !in_array( get_post_type(), $skip_post_types ) ) :\n\t\t\n\t\t\t$post_type = get_post_type_object( get_post_type() );\n\n/* What post type has been created in the backend? */\n\t\t\t\n\t\t\t$post_type_config = self::variable( 'post_types' );\n\t\t\t\n\t\t\tif ( $post_type_config ) :\n/* split them all out */\t\t\t\n\t\t\t\tforeach ( $post_type_config as $type ) :\n\t\t\t\t\n\t\t\t\t\tif ( $type['type_name'] != $post_type->name ) continue;\n\t\t\t\t\t\n\t\t\t\t\tif ( $type['type_breadcrumb'] ) \n\t\t/**\n\t\t* @TODO write better documentation regarding \n\t\t*/\n/* \t\t\t\t\treplaces whatever breadcrumb is the top level parent with whatever arbitrary page you would like by page ID */\n\t\t\t\t\t\tself::make_crumb( get_permalink( $type['type_breadcrumb'] ), get_the_title( $type['type_breadcrumb'] ) );\n/* \t\t\t\t\t\tfigure out if it has an archive */\n\t\t\t\t\telseif ( $post_type->has_archive == 1 ) \n/* tries to grab post types from anywhere */\n\t\t/**\n\t\t* @TODO verify that this checks that the archive has content\n\t\t*/\n/* \t\t\t\t\tif you have a taxonomy, grab the first one, stick it in there */\n/* \t\t\t\t\tWhen createing a post type in the UI, you can define a breadcrumb */\n\n\t\t\t\t\t\tself::make_crumb( home_url( $post_type->rewrite['slug'] ), $post_type->labels->name );\n/* \t\t\t\t\tif no taxonomy, skip that part */\n\t\t\t\t\telseif ( $post_type->has_archive ) \n\t\t\t\t\t/**\n\t\t\t\t\t* @TODO verify that this checks to see if the archive exists at all\n\t\t\t\t\t*/\n\t\t\t\t\t\tself::make_crumb( home_url( $post_type->has_archive ), get_the_title( get_page_by_path( $post_type->has_archive ) ) );\n\t\t\t\t\t\t\n\t\t\t\t\telse \n\t\t\t\t\t\tself::make_crumb( home_url(), $post_type->labels->name );\n\t\t\t\tendforeach;\n\t\t\t\n\t\t\tendif;\n\t\t\t\t\t\n\t\t\t// get the taxonomy names of this object\n/* \t\t\tgrabs the first taxonmy that is found */\n\t\t\t$taxonomy_names = get_object_taxonomies( $post_type->name );\n\t\t\t\n\t\t\t// Detect any hierarchical taxonomies that might exist on this post type\n/* \t\t\tif it's harerarchicar, grab all the kids */\n\t\t\t$hierarchical = false;\n\t\t\t\n\t\t\tforeach ( $taxonomy_names as $taxonomy_name ) :\n\t\t\t\tif ( !$hierarchical ) {\n\t\t\t\t\t$hierarchical = ( is_taxonomy_hierarchical( $taxonomy_name ) ) ? true : $hierarchical;\n\t\t\t\t\t$tn = $taxonomy_name;\n\t\t\t\t}\n\t\t\tendforeach;\n\t\t\t\n\t\t\t$args = ( is_taxonomy_hierarchical( $tn ) ) ? array( 'orderby' => 'parent', 'order' => 'DESC' ) : '';\n\t\t\t\n\t\t\tif ( $terms = wp_get_post_terms( $post->ID, $tn, $args ) ) {\n\t\t\t\t$main_term = $terms[0];\n\t\t\t\t\n\t\t\t\tif ( is_taxonomy_hierarchical( $tn ) ) {\n\t\t\t\t\t$ancestors = get_ancestors( $main_term->term_id, $tn );\n\t\t\t\t\t$ancestors = array_reverse( $ancestors );\n\t\t\t\t\t\n\t\t\t\t\tforeach ( $ancestors as $ancestor ) {\n\t\t\t\t\t\t$ancestor = get_term( $ancestor, $tn );\n\t\t\t\t\t\tself::make_crumb( get_term_link( $ancestor->slug, $tn ), $ancestor->name );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tself::make_crumb( get_term_link( $main_term->slug, $tn ), $main_term->name );\n\t\t\t}\n\t\t\t\n/* \t\t\tAnd finally, on the last one, give it null */\n\t\t\tself::make_crumb( null, get_the_title() );\n\t\t\t\n\t\tendif; // Single post\n\t\t\n\t\t// Post type archive\n/* \t\texact same behavior as above, but with one less layer since it's just an archive */\n\t\tif ( is_post_type_archive() ) :\n\t\t\t\n\t\t\t$post_type = get_post_type_object( get_post_type() );\n\t\t\t\n\t\t\t$post_type_config = self::variable( 'post_types' );\n\t\t\t\n\t\t\tif ( $post_type_config ) :\n\t\t\t\t\t\n\t\t\t\tforeach ( $post_type_config as $type ) :\n\t\t\t\t\n\t\t\t\t\tif ( $type['type_name'] != $post_type->name ) continue;\n\t\t\t\t\t\n\t\t\t\t\tif ( $type['type_breadcrumb'] ) \n\t\t\t\t\t\tself::make_crumb( get_permalink( $type['type_breadcrumb'] ), get_the_title( $type['type_breadcrumb'] ) );\n\t\t\t\t\t\t\n\t\t\t\t\telseif ( $post_type->has_archive == 1 ) \n\t\t\t\t\t\tself::make_crumb( home_url( $post_type->rewrite['slug'] ), $post_type->labels->name );\n\t\t\t\t\t\t\n\t\t\t\t\telseif ( $post_type->has_archive ) \n\t\t\t\t\t\tself::make_crumb( home_url( $post_type->has_archive ), get_the_title( get_page_by_path( $post_type->has_archive ) ) );\n\t\t\t\t\t\t\n\t\t\t\t\telse \n\t\t\t\t\t\tself::make_crumb( home_url(), $post_type->labels->name );\n\t\t\t\t\t\t\n\t\t\t\tendforeach;\n\t\t\t\n\t\t\tendif;\n\t\t\n\t\tendif; // Post type archive\n\t\t\n/* \t\tTackles woocommerce, bbpress, any outlying taxonomy */\n/* gets post types, category, taxonomy */\n\t\t// Generic taxonomy\n\t\tif ( is_tax() ) :\n\t\t\n\t\t\t$tax_object = $wp_query->get_queried_object();\n\t\t\t\n\t\t\tif ( !in_array( $tax_object->taxonomy, $skip_taxonomies ) ) :\n\t\t\t\t\t\t\n\t\t\t\t$this_term = get_term( $tax_object->term_id, $tax_object->taxonomy );\n\t\t\t\t$the_tax = get_taxonomy( $tax_object->taxonomy );\n\t\t\t\t\n\t\t\t\t$post_type_config = self::variable( 'post_types' );\n\t\t\t\t$taxonomy_config = self::variable( 'taxonomies' );\n\t\t\t\t\n\t\t\t\tif ( $taxonomy_config ) :\n\t\t\t\t\n\t\t\t\t\tforeach ( $taxonomy_config as $tax ) :\n\t\t\t\t\t\n\t\t\t\t\t\tif ( $tax['tax_name'] != $this_term->taxonomy ) continue;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ( $tax['tax_breadcrumb'] ) \n\t\t\t\t\t\t\tself::make_crumb( get_permalink( $tax['tax_breadcrumb'] ), get_the_title( $tax['tax_breadcrumb'] ) );\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tif ( $tax['tax_connect'] && !$tax['tax_breadcrumb'] ) :\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tforeach ( $post_type_config as $type ) :\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif ( $type['type_name'] != $tax['tax_connect'] ) continue;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$post_type = get_post_type_object( $tax['tax_connect'] );\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif ( $post_type->has_archive == 1 ) \n\t\t\t\t\t\t\t\t\tself::make_crumb( home_url( $post_type->rewrite['slug'] ), $post_type->labels->name );\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\telseif ( $post_type->has_archive ) \n\t\t\t\t\t\t\t\t\tself::make_crumb( home_url( $post_type->has_archive ), get_the_title( get_page_by_path( $post_type->has_archive ) ) );\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tendforeach;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tendif;\n\t\t\t\t\t\t\n\t\t\t\t\t\tself::make_crumb( null, $the_tax->labels->name );\n\t\t\t\t\t\t\n\t\t\t\t\tendforeach;\n\t\t\t\t\n\t\t\t\tendif;\n\n\t\t\t\t$parent_id = $this_term->parent;\n\t\t\t\t$subcrumbs = array();\n\t\t\t\t\n\t\t\t\twhile ( $parent_id ) :\n\t\t\t\t\t$term = get_term_by( 'id', $parent_id, $tax_object->taxonomy );\n\t\t\t\t\t\n\t\t\t\t\t$subcrumbs[] = array(\n\t\t\t\t\t\t'url' => get_term_link( $term->term_id, $tax_object->taxonomy ),\n\t\t\t\t\t\t'text' => $term->name,\n\t\t\t\t\t);\n\t\t\t\t\t\n\t\t\t\t\t$parent_id = $term->parent;\n\t\t\t\tendwhile;\n\t\t\t\t\n\t\t\t\t$subcrumbs = array_reverse( $subcrumbs );\n\t\t\t\t\n\t\t\t\tforeach ( $subcrumbs as $crumb => $data ) {\n\t\t\t\t\t// Make crumbs for each ancestor\n\t\t\t\t\tself::make_crumb( $data['url'], $data['text'] );\n\t\t\t\t}\n\t\t \n\t\t // The current term\n\t\t self::make_crumb( null, single_cat_title( null, false ) );\n\t \n\t endif;\n\t\t\n\t\tendif; // Generic taxonomy\n\t\t\n\t\t// Day archive\n\t\tif ( is_day() ) :\n\t self::make_crumb( get_year_link( get_the_time( 'Y' ) ), get_the_time( 'Y' ) ); // Year\n\t self::make_crumb( get_month_link( get_the_time( 'Y' ), get_the_time( 'm' ) ), get_the_time( 'F' ) ); // Month\n\t self::make_crumb( null, get_the_time( 'd' ) ); // Day\n\t\tendif; // Day archive\n\t\t\n\t\t// Month archive\n\t\tif ( is_month() ) :\n\t\t\tself::make_crumb( get_year_link( get_the_time( 'Y' ) ), get_the_time( 'Y' ) ); // Year\n\t\t\tself::make_crumb( null, get_the_time( 'F' ) ); // Month\n\t\tendif; // Month archive\n\t\t\n\t\t// Year archive\n\t\tif ( is_year() ) :\n\t\t\tself::make_crumb( null, get_the_time( 'Y' ) ); // Year\n\t\tendif; // Year archive\n\t\t\n\t\t// bbPress wrap\n\t\t// We check for the existence of the BBpress class\n\t\tif ( isset( $bbpress_active ) && \n\t\t\t( bbp_is_topic_archive() || \n\t\t\t\tbbp_is_search() || \n\t\t\t\tbbp_is_forum_archive() || \n\t\t\t\tbbp_is_single_view() || \n\t\t\t\tbbp_is_single_forum() || \n\t\t\t\tbbp_is_single_topic() || \n\t\t\t\tbbp_is_single_reply() || \n\t\t\t\tbbp_is_topic_tag() || \n\t\t\t\tbbp_is_user_home() ) ) :\n\t\t/**\n\t\t* @TODO burn || into your head\n\t\t*/\n\t\t\t\n\t\t\tself::make_crumb( home_url( get_option( '_bbp_root_slug' ) ), 'Forums' );\n\t\t\n\t\t\t$ancestors = (array) get_post_ancestors( get_the_ID() );\n\t\t\t\n\t\t\t// Ancestors exist\n\t\t\tif ( !empty( $ancestors ) ) :\n\t\t\t\t// Loop through parents\n\t\t\t\tforeach ( (array) $ancestors as $parent_id ) :\n\t\t\t\t// Parents\n\t\t\t\t$parent = get_post( $parent_id );\n\t\t\t\t\n\t\t\t\t// Skip parent if empty or error\n\t\t\t\tif ( empty( $parent ) || is_wp_error( $parent ) ) continue;\n\t\t\t\t\n\t\t\t\t\t// Switch through post_type to ensure correct filters are applied\n\t\t\t\t\tswitch ( $parent->post_type ) {\n\t\t\t\t\t\n\t\t\t\t\t\t// Forum\n\t\t\t\t\t\tcase bbp_get_forum_post_type() :\n\t\t\t\t\t\t\tself::make_crumb( esc_url( bbp_get_forum_permalink( $parent->ID ) ), bbp_get_forum_title( $parent->ID ) );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Topic\n\t\t\t\t\t\tcase bbp_get_topic_post_type() :\n\t\t\t\t\t\t\tself::make_crumb( esc_url( bbp_get_topic_permalink( $parent->ID ) ), bbp_get_topic_title( $parent->ID ) );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Reply\n\t\t\t\t\t\tcase bbp_get_reply_post_type() :\n\t\t\t\t\t\t\tself::make_crumb( esc_url( bbp_get_reply_permalink( $parent->ID ) ), bbp_get_reply_title( $parent->ID ) );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\tendforeach;\n\t\t\tendif;\n\t\t\t\n\t\t\t// Topic archive\n\t\t\tif ( bbp_is_topic_archive() ) \n\t\t\t\tself::make_crumb( null, bbp_get_topic_archive_title() );\n\t\t\t\n\t\t\t// Search page\n\t\t\tif ( bbp_is_search() ) \n\t\t\t\tself::make_crumb( null, bbp_get_search_title() );\n\t\t\t\n\t\t\t// Forum archive\n/*\n\t\t\tif ( bbp_is_forum_archive() ) \n\t\t\t\tself::make_crumb( null, bbp_get_forum_archive_title() );\n*/\n\t\t\t\n\t\t\t// View\n\t\t\telseif ( bbp_is_single_view() ) \n\t\t\t\tself::make_crumb( null, bbp_get_view_title() );\n\t\t\t\n\t\t\tif ( bbp_is_single_forum() ) \n\t\t\t\tself::make_crumb( null, bbp_get_forum_title() );\n\t\t\t\n\t\t\tif ( bbp_is_single_topic() ) \n\t\t\t\tself::make_crumb( null, bbp_get_topic_title() );\n\t\t\t\n\t\t\tif ( bbp_is_single_reply() ) \n\t\t\t\tself::make_crumb( null, bbp_get_reply_title() );\n\t\t\t\t\n\t\t\tif ( bbp_is_topic_tag() ) {\n\t\t\t\t$topic_tag = $wp_query->get_queried_object();\n\t\t\t\tself::make_crumb( null, $topic_tag->name );\n\t\t\t}\t\t\t\t\n\t\t\t\t\n\t\t\tif ( bbp_is_user_home() ) \n\t\t\t\tself::make_crumb( null, 'Profile' );\n\t\t\t\t\n\t\tendif; // bbPress\n\t\t\n\t\t// Paged content\n/* \t\tif you are on a multiple page or not, says page and then number */\n\t\tif ( $paged ) :\n\t\t\tself::make_crumb( null, 'Page ' . $paged );\n\t\tendif; // Paged\n\t\t\n/* \t\tIf you are not on home or front_page, go get the template and echo everything out */\n\t\tif ( !is_front_page() && !is_home() ) get_template_part( 'templates/breadcrumbs' );\n\t}", "title": "" }, { "docid": "88871dddf8982fc42b89cf250c7e94a8", "score": "0.52349967", "text": "public function getBreadCrumbs() {\n return $this->arNavPath;\n }", "title": "" } ]
043c3f81c5bb2bb647dc124a0b776d5d
Iterator to show cart contents.
[ { "docid": "6e100557543ca15ce55d1b86641fa423", "score": "0.65696806", "text": "function show_all() {\r\n if (!is_array($this->item) or $this->num_items() == 0) {\r\n $this->show_empty_cart();\r\n return false;\r\n }\r\n\r\n reset($this->item);\r\n $this->show_cart_open();\r\n while(list($item, $attr) = each($this->item)) {\r\n $this->show_item($attr[\"art\"], $attr[\"num\"]);\r\n }\r\n $this->show_cart_close();\r\n }", "title": "" } ]
[ { "docid": "f7beeaadd8e5c98166eca5d0a40d6d79", "score": "0.70956004", "text": "public function getContents()\n {\n $cartCookie = $this->request->cookies->get('cart');\n $collection = [];\n\n if (!$cartCookie){\n return [];\n }\n $cart = unserialize($cartCookie);\n $products = [];\n\n foreach ($cart as $item){\n if (!isset($products[$item['id']])){\n $products[$item['id']] = $this->doctrine\n ->getRepository('AppBundle:Product')\n ->find($item['id']);\n }\n\n //get total price order\n $orderItem = new OrderItem();\n $orderItem->setOrder(null);\n $orderItem->setPrice($item['price']);\n $orderItem->setProduct($products[$item['id']]);\n $collection[] = $orderItem;\n }\n\n //render\n return new Cart($collection);\n }", "title": "" }, { "docid": "7530e8905c3f6631a67c38c7b77f6fde", "score": "0.66531557", "text": "public function showCart() {\n\t\t$generator = new Generator(view('shop.cart'), 'panier');\n\n\t\t$kept = $this->fetchCart();\n\n\t\treturn $generator->getView()->withKept($kept);\n\t}", "title": "" }, { "docid": "48cf37c1bb79e84a79a0820e6527c527", "score": "0.6456044", "text": "public function getCarts();", "title": "" }, { "docid": "318118e6b8ac86bff222cf2549be938c", "score": "0.6260669", "text": "protected function getCartContents() {\n $newestOrderNumber = $this->getOrderNumber();\n if ($newestOrderNumber !== false) {\n $query = \"SELECT * FROM orderline WHERE OrderID = $newestOrderNumber\";\n $result = $this->connect()->query($query);\n if ($result->num_rows > 0) {\n while ($row = $result->fetch_assoc()) {\n $cartContents[] = $row;\n }\n } else {\n $cartContents = [];\n }\n return $cartContents;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "5e9e1a294b7c834a4de85ecf2c506dc8", "score": "0.6213508", "text": "public function getItems(){\n\t\n\t\treturn $this->cart;\n\t\n\t}", "title": "" }, { "docid": "6711c8fdd9bfd4b30fb091f5bf044051", "score": "0.6167209", "text": "public function getCartPageItemList()\n\t{\n\t\t\n\t\t$items = Cart::content();\n\t\t$cartitems = array();\n\n\n\t\tforeach ($items as $item) {\n\t\t\t$cartitems[] = $item;\n\t\t}\n\n\t\n\n\n\n return Response::json(['success'=>true, 'cartitems' => $cartitems]);\n \n\t}", "title": "" }, { "docid": "2acea834b7837fd4cf74859af770931d", "score": "0.60931814", "text": "public function getItems() {\n $this->basket = Session::getSession('basket');\n if (!empty($this->basket)) {\n $objCatalog = new Catalog();\n foreach ($this->basket as $key => $value) {\n $this->items[$key] = $objCatalog->getProduct($key);\n }\n }\n }", "title": "" }, { "docid": "ff696e7feea56092d11e31bd563cc576", "score": "0.6090984", "text": "public function getCartItems()\n {\n return CartProvider::instance()->getCartItems();\n }", "title": "" }, { "docid": "2dcdba61315e83680d47845d7597f294", "score": "0.60413677", "text": "public function getAllCartItems()\n {\n return $this->cartFactory->create()->getQuote()->getAllItems();\n }", "title": "" }, { "docid": "15fc9cd57eb797ca7ae50e17827e0ca0", "score": "0.60182345", "text": "public function getIterator()\n {\n yield from $this->items;\n }", "title": "" }, { "docid": "648dfff6dc35784d2fb352c80b7e5918", "score": "0.6001439", "text": "public function indexCart()\n {\n \t$content = Cart::content();\n \t\n \treturn view('homeView.pages.cart',compact('content'));\n }", "title": "" }, { "docid": "b3d9e93120b94b164defaf904820bbbd", "score": "0.5987845", "text": "public function displayCart(){\n $data['items'] = $this->cart->contents();\n $this->load->view('carts/view_displaycart',$data);\n }", "title": "" }, { "docid": "bffe24b6f306d621a780dbe3e4cb0478", "score": "0.59622145", "text": "public function index()\n {\n $carts = auth()->user()->carts;\n\n return CartResource::collection($carts);\n }", "title": "" }, { "docid": "9a2d89111d75439060193fe1038290ba", "score": "0.5956823", "text": "public function index()\n {\n $documents = Cart::content();\n return view('cart.index', compact('documents'));\n }", "title": "" }, { "docid": "7eaafc1a60b06a06598e2c94ee567186", "score": "0.5911855", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $cartItems = $em->getRepository('ChisnbalBundle:CartItem')->findAll();\n\n return $this->render('cartitem/index.html.twig', array(\n 'cartItems' => $cartItems,\n ));\n }", "title": "" }, { "docid": "d2d3eb6e4a4b40d6a125435d0146f476", "score": "0.590992", "text": "public function get_contents() {\n\t\t$items = array();\n\t\tforeach($this->items as $tmp_item)\n\t\t{\n\t\t\t$item = FALSE;\n\t\t\t$item['id'] = $tmp_item;\n\t\t\t$item['qty'] = $this->itemqtys[$tmp_item];\n\t\t\t$item['price'] = $this->itemprices[$tmp_item];\n\t\t\t$item['name'] = $this->itemname[$tmp_item];\n\t\t\t$item['subtotal'] = $item['qty'] * $item['price'];\n\t\t\t$item['photo_path'] = $this->photopath[$tmp_item];\n\t\t\t$item['weight'] = $this->weights[$tmp_item];\n\t\t\t$item['url'] = $this->urls[$tmp_item];\n\t\t\t$items[] = $item;\n\t\t}\n\t\treturn $items;\n\t}", "title": "" }, { "docid": "0e7d41d9311af048593864bb48f425e4", "score": "0.5887165", "text": "public function cart() : void\n {\n $this->VIEW = false;\n $this->loadModel('Cart');\n $cartdata = $this->Cart->getCustomerCart($_SESSION['Auth']->id);\n echo json_encode($cartdata);\n \n }", "title": "" }, { "docid": "3fb14201c6b9a955a6207a3c9cae7e5a", "score": "0.5881576", "text": "public function getCartItemList()\n\t{\n\t\t\n\t\t$items = Cart::content();\n\t\t$cartitems = array();\n\n\n\t\tforeach ($items as $item) {\n\t\t\t$cartitems[] = $item;\n\t\t}\n\n\t\n\n\n\n return Response::json(['success'=>true, 'cartitems' => $cartitems]);\n \n\t}", "title": "" }, { "docid": "bd6aed47de4ba48df33a448e552b33df", "score": "0.58454543", "text": "function content()\n {\n $cart = $this->contents;\n \n // remove these so they don't create a problem when showing the cart table\n unset($cart['cart_total']);\n unset($cart['cart_amount']);\n \n if (is_array($cart) && count($cart) > 0)\n return $cart;\n \n return false;\n }", "title": "" }, { "docid": "d0d0eb4b5b11b0a3d5fedd51ebf1ba90", "score": "0.58234674", "text": "public function iterateItems()\n {\n return $this->internalData->iterateItems();\n }", "title": "" }, { "docid": "9c53fac03500b23d6bb9ce632dc2c0f6", "score": "0.58146226", "text": "public static function DesignCartInfo()\n {\n $countInCart = ShopFn::GetCountInCart();\n\n $classCart = \"false\";\n\n $productsInCart = <<<EOF\n<span>В корзине пусто</span>\n<i class=\"fa fa-shopping-basket\"></i>\nEOF;\n\n if($countInCart > 0)\n {\n $classCart = \"active\";\n\n $productsInCart = BF::GenerateList(ShopFn::GetProductsInCart(), '<div class=\"mini-product clearfix\"><img src=\"?\"/><span>?</span><button class=\"delete-from-cart delete-product-in-cart\" data-id=\"?\"><i class=\"fa fa-times\"></i></button></div>', [\"ProductImagesPreview\", \"ProductName\", \"ID_product\"]);\n\n $productsInCart = <<<EOF\n <strong>Корзина</strong>\n <hr />\n <div>\n {$productsInCart}\n </div>\n <hr />\n <a href=\"/cart/\" class=\"go-to\">Перейти в корзину</a>\nEOF;\n }\n\n $data[\"count\"] = $countInCart;\n $data[\"class\"] = $classCart;\n $data[\"html\"] = $productsInCart;\n\n return $data;\n }", "title": "" }, { "docid": "4b2b71455e5dcf79a96893e0d92492da", "score": "0.5805712", "text": "function get_cart() {\n\t\treturn self::$cart_contents;\n\t}", "title": "" }, { "docid": "bfd0374ed1059ab06c7243f5bd8d79ef", "score": "0.5801034", "text": "public function getCart()\n {\n $user = JWTAuth::parseToken()->authenticate();\n\n $cart_items = $user->cartItems;\n\n return $this->respondWithCollection($cart_items, new CartTransformer);\n }", "title": "" }, { "docid": "431f213292a45fee5337aa7862fd6dbb", "score": "0.57993597", "text": "public function index()\n {\n return [\n 'items' => \\Cart::content(), // カートの中身\n 'subtotal' => \\Cart::subtotal(), // 全体の小計\n 'tax' => \\Cart::tax(), // 全体の税\n 'total' => \\Cart::total() // 全合計\n ];\n }", "title": "" }, { "docid": "00bfbbce6828f860a86f08473f52820a", "score": "0.57818645", "text": "public function allCart(){\n $cartItem = \"\";\n if(Session::has('product')){\n $items = Session::get('product');\n $numberItem = count($items);\n if($numberItem > 0){\n $cartItem = '<div class=\"top-cart-info\">\n <a href=\"'.URL::to('/').'/cart/view\" class=\"top-cart-info-count\">'.$numberItem.' items</a></div>';\n }\n\n }\n return $cartItem;\n }", "title": "" }, { "docid": "4bb66151a961e8feb38435a7f4892fed", "score": "0.5779357", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $carts = $em->getRepository('AppBundle:Cart')->findAll();\n\n return $this->render('cart/index.html.twig', array(\n 'carts' => $carts,\n ));\n }", "title": "" }, { "docid": "ee602c6b9c1beaa27b13800c127eacbf", "score": "0.5775728", "text": "public function show()\n\t{\n\t\treturn View::make('cart.show')->with('all', Cart::all())->with('get', Cart::get(1))->with('total', Cart::total())->with('count', Cart::count())->with('count_true', Cart::count(true));\n\t}", "title": "" }, { "docid": "1a5da9c2555bbe885f50135269d63d14", "score": "0.5771082", "text": "public function cartsAction(){\n\t\tif(is_guest()){\n\t\t\t//TODO:: redirect login\n\t\t}else{\n\t\t\t$lu = Zend_Registry::get('user');\n\t\t\t$where = array('umail' => $lu['mail']);\n\n\t\t\t$cond['where'] = $where;\n\t\t\t$r = Dao_Node_Bill::getInstance()->findAll($cond);\n\t\t\tif($r['success'] && count($r['total'])){\n\t\t\t\t$this->setViewParam('list', $r['result']);\n\t\t\t}else{\n\t\t\t\t$this->setViewParam('list', array());\n\t\t\t}\n\t\t}\n\t\t\n\t\tBootstrap::$pageTitle = 'Đơn hàng của bạn';\n\t}", "title": "" }, { "docid": "029aaf229cda9a69b0a3bc83e1f78694", "score": "0.576347", "text": "function displayCartItems($user)\n{\n \n $data = $GLOBALS['db']->getAllCarts(); \n \n $Crt = \"Sorry...No Items Available!!\"; \n \n foreach($data as $row)\n{\n if($row->getCartID()==$user)\n {\n \n $Crt = \"Your Cart Items\";\n break;\n }\n} \n \n \n $dataCatalog = array(); \n \n $htString = \"<div class='row'>\n \n <div class='col-sm-10' style='margin-left:8.5%'> \n <div class='panel panel-primary class'> \n <div class='panel-heading' style='text-align:center;font-size:20px'>$Crt</div> \n </div>\n </div>\n </div>\";\n \n $totalCost = 0.00;\n \n //Display data from Cart\n \n foreach($data as $row)\n{\n if($row->getCartID()==$user)\n {\n \n $htString .= \"<div class='row'>\\n\n \n <div class='col-sm-10' style='margin-left:8.5%'>\\n \n <div class='panel panel-success'>\\n\n <div class='panel-heading' style='font-size:15px'><strong>{$row->getProductName()}</strong></div>\\n\n <div class='panel-body'>{$row->getDescription()}</div>\\n\n <div class='panel-footer'>Quantity ordered: 1 &nbsp;&nbsp;&nbsp;&nbsp; <strong>Total Cost: {$row->getPrice()}</strong>\n </div>\\n\n </div>\\n\n </div>\\n\n </div>\"; \n \n $totalCost += $row->getPrice();\n }\n }\n $htString .= \"<div class='row'> \n <div class='col-sm-10' style='margin-left:42%'> \n <form action='cart.php?page=1' method='post' style='margin-bottom:2%'>\n <input type='submit' class='btn btn-info' name='remove' value='Empty Cart' />\n\n <span style='margin-left:27%;padding:1%;font-size:20px;color:white' class='label label-warning'>Total Price: \\$$totalCost</span>\n </form> \n </div> \n</div>\";\n \n return ($htString);\n}", "title": "" }, { "docid": "a400df4f7d349b4d5f606edbca2b8871", "score": "0.57591325", "text": "protected function showCartItems(OutputInterface $output)\n {\n if (!$inventory = $this->database->fetchAll('inventory')) {\n return $output->writeln('<info>No any itens in the cart at the moment!</info>');\n }\n\n $table = new Table($output);\n\n $table->setHeaders(['', 'Sku', 'Name', 'Quantity', 'Price'])\n ->setRows($inventory)\n ->render();\n }", "title": "" }, { "docid": "1168b9985d8eda6bb10e6a33a5efea83", "score": "0.5747943", "text": "public function getIterator()\n {\n return new \\ArrayIterator($this->getCoins());\n }", "title": "" }, { "docid": "7b8741379b896d772171d2594ff0d5bf", "score": "0.57474864", "text": "public function carts(){\n if (!Session::has('cart')) {\n return view('products.carts');\n }\n $oldCart = Session::get('cart');\n $cart = new Cart($oldCart);\n $provinsies = RajaOngkir::Provinsi()->all();\n $addresses = '';\n if (Auth::check()) {\n if ($user = Auth::user()) {\n $addresses = $user->addresses()->where('origin',0)->get();\n }\n }\n return view('products.carts', ['products' => $cart->items, 'totalPrice' => $cart->totalPrice, 'totalWeight' => $cart->totalWeight, 'provinsies' => $provinsies, 'addresses' => $addresses, 'totalQty' => $cart->totalQty]);\n }", "title": "" }, { "docid": "4d5a08acb2992e9e359ae6bf5403b278", "score": "0.5742374", "text": "public function cart() {\n // Display products\n $values['read_cart'] = $this->carts_model->read();\n // Display the total price\n $values['total_price'] = $this->carts_model->total_price();\n $values['title'] = 'Mon panier';\n $values['page'] = 'cart';\n $this->load->view('partials/template', $values);\n }", "title": "" }, { "docid": "4a0a86b9542cb0a46610de90ec756b3f", "score": "0.57332194", "text": "public function cartPage() {\n $build = [];\n $cacheable_metadata = new CacheableMetadata();\n $cacheable_metadata->addCacheContexts(['user', 'session']);\n\n $carts = $this->cartProvider->getCarts();\n $carts = array_filter($carts, function ($cart) {\n /** @var \\Drupal\\commerce_order\\Entity\\OrderInterface $cart */\n return $cart->hasItems();\n });\n if (!empty($carts)) {\n $cart_views = $this->getCartViews($carts);\n foreach ($carts as $cart_id => $cart) {\n $build[$cart_id] = [\n '#prefix' => '<div class=\"cart cart-form\">',\n '#suffix' => '</div>',\n '#type' => 'view',\n '#name' => $cart_views[$cart_id],\n '#arguments' => [$cart_id],\n '#embed' => TRUE,\n ];\n $cacheable_metadata->addCacheableDependency($cart);\n }\n }\n else {\n $build['empty'] = [\n '#theme' => 'commerce_cart_empty_page',\n ];\n }\n $build['#cache'] = [\n 'contexts' => $cacheable_metadata->getCacheContexts(),\n 'tags' => $cacheable_metadata->getCacheTags(),\n 'max-age' => $cacheable_metadata->getCacheMaxAge(),\n ];\n\n return $build;\n }", "title": "" }, { "docid": "8192aa225abeefbad50e4d8ba13dd0ba", "score": "0.57245284", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('CartBundle:cart')->findAll();\n\n return $this->render('CartBundle:cart:ViewCart.html.twig', array(\n 'entities' => $entities,\n ));\n }", "title": "" }, { "docid": "c50437069b44ad50633ec1f67c4eaebf", "score": "0.5713842", "text": "public function generateCartContent()\n\t{\n\t\tif(!GetConfig('ShowThumbsInCart')) {\n\t\t\t$GLOBALS['HideThumbColumn'] = 'display: none';\n\t\t\t$GLOBALS['ProductNameSpan'] = 2;\n\t\t}\n\t\telse {\n\t\t\t$GLOBALS['HideThumbColumn'] = '';\n\t\t\t$GLOBALS['ProductNameSpan'] = 1;\n\t\t}\n\n\t\t$GLOBALS['SNIPPETS']['QuotationItems'] = \"\";\n\n\t\t$deliveryDates = array();\n\t\t$items = $this->quote->getItems();\n\t\tforeach($items as $item) {\n\t\t\t$name = $item->getName();\n\t\t\t$quantity = $item->getQuantity();\n\n\t\t\t$GLOBALS['CartItemId'] = $item->getId();\n\n\t\t\t$GLOBALS['ProductName'] = isc_html_escape($name);\n\t\t\t$GLOBALS['ProductLink'] = prodLink($name);\n\t\t\t$GLOBALS['ProductAvailability'] = $item->getAvailability();\n\t\t\t$GLOBALS['ItemId'] = $item->getProductId();\n\t\t\t$GLOBALS['VariationId'] = $item->getVariationId();\n\t\t\t$GLOBALS['ProductQuantity'] = $quantity;\n\n\t\t\tif(getConfig('ShowThumbsInCart')) {\n\t\t\t\t$GLOBALS['ProductImage'] = imageThumb($item->getThumbnail(), prodLink($name));\n\t\t\t}\n\n\t\t\t$GLOBALS['UpdateCartQtyJs'] = \"Cart.UpdateQuantity(this.options[this.selectedIndex].value);\";\n\t\t\t$GLOBALS['HideCartProductFields'] = 'display:none;';\n\t\t\t$GLOBALS['CartProductFields'] = '';\n\t\t\t$this->GetProductFieldDetails($item->getConfiguration(), $item->getId());\n\n\t\t\t$GLOBALS['EventDate'] = '';\n\t\t\t$eventDate = $item->getEventDate(true);\n\t\t\tif(!empty($eventDate)) {\n\t\t\t\t$GLOBALS['EventDate'] = '\n\t\t\t\t\t<div style=\"font-style: italic; font-size:10px; color:gray\">(' .\n\t\t\t\t\t\t$item->getEventName() . ': ' . isc_date('M jS Y', $eventDate) .\n\t\t\t\t\t')</div>';\n\t\t\t}\n\n\t\t\t$price = $item->getPrice($this->displayIncludingTax);\n\t\t\t$total = $item->getTotal($this->displayIncludingTax);\n\n\t\t\t$GLOBALS['ProductPrice'] = currencyConvertFormatPrice($price);\n\t\t\t$GLOBALS['ProductTotal'] = currencyConvertFormatPrice($total);\n\n\t\t\t// Don't allow the quantity of free items/parent restricted items to be changed\n\t\t\t$GLOBALS['HideCartItemRemove'] = '';\n\t\t\t$GLOBALS['QuotationItemQty'] = number_format($item->getQuantity());\n\n\t\t\t// Is this product a variation?\n\t\t\t$GLOBALS['ProductOptions'] = '';\n\t\t\t$options = $item->getVariationOptions();\n\t\t\tif(!empty($options)) {\n\t\t\t\t$GLOBALS['ProductOptions'] .= \"<br /><small>(\";\n\t\t\t\t$comma = '';\n\t\t\t\tforeach($options as $name => $value) {\n\t\t\t\t\tif(!trim($name) || !trim($value)) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t$GLOBALS['ProductOptions'] .= $comma.isc_html_escape($name).\": \".isc_html_escape($value);\n\t\t\t\t\t$comma = ', ';\n\t\t\t\t}\n\t\t\t\t$GLOBALS['ProductOptions'] .= \")</small>\";\n\t\t\t}\n\n\t\t\t$GLOBALS['HideExpectedReleaseDate'] = 'display: none;';\n\t\t\tif($item->isPreOrder()) {\n\t\t\t\t$GLOBALS['ProductExpectedReleaseDate'] = $item->getPreOrderMessage();\n\t\t\t\t$GLOBALS['HideExpectedReleaseDate'] = '';\n\t\t\t}\n\n\t\t\t$GLOBALS['SNIPPETS']['QuotationItems'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet(\"QuotationItem\");\n\t\t\t$GLOBALS[\"Quantity\" . $quantity] = \"\";\n\t\t\t\n\t\t\tif($date = $this->getDeliveryDateFromStatus($item)){\n\t\t\t\t$deliveryDates[] = $date;\n\t\t\t}\n\t\t}\n\n\t\tif(!empty($deliveryDates)){\n\t\t\trsort($deliveryDates);\n\t\t\t$maxdate = $deliveryDates[0];\n\t\t\t$GLOBALS['CartOrderDeliveryDateFromStatus'] = \"La fecha de entrega de este pedido es \".date('d/M/Y', $maxdate).\" basado en el producto con fecha de entrega mas lejana en su carrito\";\n\t\t}\t\t\n\t\t$defaultCurrency = GetDefaultCurrency();\n\t\t$GLOBALS['QuotationItemTotal'] = currencyConvertFormatPrice($this->quote->getSubTotal($this->displayIncludingTax));\n\t\t$GLOBALS['QuotationTotal'] = currencyConvertFormatPrice($this->quote->getGrandTotal(),$defaultCurrency['currencyid'],null,true);\n\t\t\n\n\t\t$script = \"\n\t\t\t$('.quantityInput').live('change', function() {\n\t\t\t\tCart.UpdateQuantity($(this).val());\n\t\t\t});\n\t\t\";\n\t\t$GLOBALS['ISC_CLASS_TEMPLATE']->clientScript->registerScript($script,'ready');\n\n\t}", "title": "" }, { "docid": "fee700390727a382a13ef8c18a88a72e", "score": "0.5707695", "text": "public function getCartItems()\n {\n $current_index = 0;\n foreach ($this->orm_cart_items as $item) {\n $item->setIndex($current_index);\n $current_index = $current_index + 1;\n }\n return $this->orm_cart_items;\n }", "title": "" }, { "docid": "49bf4e33cded051df57fa7321f7e3880", "score": "0.5691717", "text": "public function allFromCart($cartInstance = null);", "title": "" }, { "docid": "2334e5ab36cb3878ea2612a17561f386", "score": "0.5652972", "text": "public function index()\n {\n\n if(is_null(Auth::user()))\n {\n return redirect('login')->with('error', 'Please login to view your cart.');\n }\n // Session::flush();\n $items = Item::all();\n\n $cart_items = $items->filter(function($item, $index){\n $cart = collect(Session::get('cart'));\n return $cart->has($item->id);\n });\n\n $cart = Session::get('cart');\n // $cart_items passed by reference\n $total = 0;\n foreach ($cart_items as $item) {\n $item->quantity = $cart[$item->id];\n $item->subtotal = $item->quantity * $item->price;\n $total += $item->subtotal;\n }\n $counter = 0;\n // dd($item->total);\n return view('iamBuyer/cart', compact('cart_items', 'total', 'counter'));\n }", "title": "" }, { "docid": "668e030b867856b74ebcc2f345905fa1", "score": "0.5651244", "text": "public function items(): Generator\n {\n yield from $this->items;\n }", "title": "" }, { "docid": "a03442b70a5823431568984858c83d70", "score": "0.5636127", "text": "public function index()\n {\n if (Auth::check()) {\n $user = Auth::user();\n // Cart::restore($user->id);\n // Cart::store($user->id);\n // dd(Cart::content());\n $cartItems = Cart::content();\n }\n $categories = category::all();\n $cartItems = Cart::content();\n // foreach ($cartItems as $key => $value) {\n // dd($value->id);\n // }\n //dd($cartItems->id);\n //$sizes =size::all();\n //$sizes = product::find(5)->sizes()->get();\n return view('cart.index',compact('cartItems' , 'categories'));\n }", "title": "" }, { "docid": "8b3fda9c18f3ee303cfd8b9b32de1482", "score": "0.5635443", "text": "public function index()\n {\n $items = $this->item->paginate(10);\n $category = $this->category->all();\n $cart = Cart::getContent();\n return $this->response->view('cart.home', [\n 'items'=>$items,\n 'cartCount'=>$cart->count(),\n 'category'=>$category\n ]);\n\n //return response()->json($cart);\n }", "title": "" }, { "docid": "f779fabfaf2f97cbf1dd9beae2895cee", "score": "0.5631129", "text": "private function _display_shopping_cart()\n {\n $products_in_cart = $this->get_products();\n\n if ( count( $products_in_cart ) == 0 ) {\n include BWEC_INCLUDES_PATH . '/views/shopping-cart-empty.php';\n\n return;\n }\n\n $cart_items_markup = '';\n $checkout_value = 0;\n\n foreach ( $products_in_cart as $product )\n {\n $item_file_dir = BWEC_INCLUDES_PATH . '/views/shopping-cart-items.php';\n if ( !file_exists( $item_file_dir ) )\n return;\n\n $item_template = file_get_contents( $item_file_dir );\n $item_placeholders = $this->_get_placeholders( 'items' );\n $item_replaces = $this->_get_item_replaces( $product );\n $cart_items_markup .= str_replace( $item_placeholders, $item_replaces, $item_template );\n\n $checkout_value = $checkout_value + ( _bwec_get_product_real_price( $product->ID )*$product->cart_quantity );\n }\n\n $cart_file_dir = BWEC_INCLUDES_PATH . '/views/shopping-cart.php';\n if ( !file_exists( $cart_file_dir ) )\n return;\n\n $cart_template = file_get_contents( $cart_file_dir );\n $cart_placeholders = $this->_get_placeholders( 'cart' );\n $cart_replaces = $this->_get_cart_replaces( $cart_items_markup, $checkout_value );\n $cart_markup = str_replace( $cart_placeholders, $cart_replaces, $cart_template );\n\n return $cart_markup;\n }", "title": "" }, { "docid": "12f8d19fc2a1dfd76da1fad2e8a39e8c", "score": "0.561035", "text": "function index() {\r\n\t\t// thong tin gio hang\r\n\t\t$carts = $this->cart->contents();\r\n\t\t\r\n\t\t//tong so san pham co trong gio hang\r\n\r\n\t\t$total_items = $this->cart->total_items();\r\n\t\t// print_r($total_items);\r\n\t\t// $this->data['carts'] = $carts;\r\n\r\n\t\t// $this->data['total_items'] = $total_items;\r\n\t\t$data['total_items'] = $total_items;\r\n\t\t$data['carts'] = $carts;\r\n\t\t$data['main_content'] = 'cart_view';\r\n \t$this->load->view('includes/template', $data);\r\n\t}", "title": "" }, { "docid": "ccb2c6854fcb74c63c1761e5015905ff", "score": "0.56045777", "text": "public function showCartContents() {\n $cart = $this->getCartContents();\n if (isset($_SESSION['errors'])) {\n $errors = $_SESSION['errors']['incorrectfields'];\n }\n if (!$cart) {\n echo '<div class=\"cartContainer\">\n <p>Oh, Your Cart Is Empty!</p>\n <a href=\"members.php\"><div class=\"shopNowButton tac\"><p>Shop Now!</p></div></a>\n </div>';\n } else {\n $totalOrder = 0;\n echo '<form action=\"../members/orderComplete.php\" method=\"post\" target=\"_blank\" onsubmit=\"javascript: reload();\">';\n foreach ($cart as $items) {\n $item = $this->getProductInfo($items['ProductID']);\n $total = $items['OrderQuantity'] * $item['ProductPrice'];\n echo '<div class=\"cartItem\">';\n echo '<div class=\"tabletcontainer\">';\n echo '<div class=\"cartItemPic\">';\n echo \"<img src='../../images/products/smaller/\" . $item['ProductID'] . \"_smaller.jpg'>\";\n echo '</div>';\n echo '<div class=\"cartItemInfo\">';\n echo '<p class=\"cartHeading\">' . $item['ProductTitle'] . '</p>';\n echo '<p class=\"itemCode\"><b>Item#: </b> ' . $item['ProductID'] . '</p>';\n echo '<p class=\"itemDesc\">' . $item['ProductDescription'] . '</p>';\n echo '</div>';\n echo '</div>';\n echo '<div class=\"cartItemRight\">';\n echo '<div class=\"cartItemTop\">';\n echo '<div class=\"cartItemPrice\">';\n echo '<p class=\"itemPrice\">$' . floatval($item['ProductPrice']) . '</p>';\n echo '<p class=\"cartLittle\">Unit</p>';\n echo '</div>';\n echo '<div class=\"cartItemQty\">';\n echo '<input type=\"number\" name=\"' . $item['ProductID'] . '\"id=\"' . $item['ProductID'] . '\" value=' . $items['OrderQuantity'] . '>';\n if (isset($errors[$item['ProductID']])) {\n echo '<p class=\"errorRed\">Invalid</p>';\n }\n echo '<p class=\"cartLittle\">Quantity</p>';\n echo '</div>';\n echo '<div class=\"cartItemDelete\">';\n echo '<a href=\"../includes/cart/deleteproduct.inc.php?productID=' . $item['ProductID'] . '\">&#10006</a>';\n echo '</div>';\n echo '</div>';\n echo '<div class=\"cartItemTotalPrice\">';\n echo '<p class=\"itemPrice\">Item Total: $' . number_format($total) . '</p>';\n echo '</div>';\n echo '</div>';\n echo '</div>';\n $totalOrder = $totalOrder + $total;\n unset($_SESSION['errors']); //clear error array\n \n }\n echo '<div class=\"checkoutOptions\">';\n echo '<div class=\"checkoutTotal\">';\n echo '<input type=\"submit\" value=\"Update Cart\" formaction=\"../includes/cart/update.php\" formtarget=\"_self\">';\n echo '<p>Order Total: $' . number_format($totalOrder) . '</p>';\n echo '</div>';\n echo '<div class=\"checkoutButtons\">';\n echo '<input type=\"submit\" value=\"Delete Cart\" formaction=\"../includes/cart/deletecart.php\" formtarget=\"_self\">';\n echo '<input type=\"submit\" value=\"Keep Shopping\" formaction=\"../members/members.php\" formtarget=\"_self\">';\n echo '<input type=\"submit\" value=\"Checkout\"';\n echo '</div>';\n echo '</div>';\n echo '</form>';\n }\n }", "title": "" }, { "docid": "b95e421c6a27849f275fa6ef9c4fbe78", "score": "0.559922", "text": "function get() {\n $cart = getCopy($this->cart_m->get(['cart.email'=>$this->email], true));\n if ($cart !== NULL) {\n $cart->items = $this->cartitem_m->getItems($this->email);\n echo json_encode($cart);\n }\n }", "title": "" }, { "docid": "67ce5e879039103a7c10bb318f2249b6", "score": "0.55951023", "text": "public function getCart()\n {\n return $this->sendResponse(Auth::user()->carts()->with('item')->get(), 'User Cart Retrieved');\n }", "title": "" }, { "docid": "c16e86910cca26d27d4d4a834064ee75", "score": "0.55929685", "text": "public function getIterator();", "title": "" }, { "docid": "c16e86910cca26d27d4d4a834064ee75", "score": "0.55929685", "text": "public function getIterator();", "title": "" }, { "docid": "03334a043c86ff72ce5ad237893d1175", "score": "0.55887026", "text": "public function DisplayItems()\n\t{\tob_start();\n\t\tif ($this->cart->items)\n\t\t{\t$oos = new ProductStatus();\n\t\t\t$oos->GetByName('oos');\n\t\t\tforeach($this->cart->items as $rowid => $p)\n\t\t\t{\n\t\t\t\tif ($p['type'] == 'course')\n\t\t\t\t{\t$course = 1;\t\n\t\t\t\t}\n\t\t\t\tif ($p['type'] == 'store')\n\t\t\t\t{\t$store = 1;\t\n\t\t\t\t}\n\t\t\t\tif($p['type'] == 'sub')\n\t\t\t\t{\t$subs = 1;\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$disc_names = array('discount'=>'Voucher discount', 'sub'=>'Free with your subscription', 'rewards'=>'Your Refer-a-Friend rewards', 'bundles'=>'Discount for bundled offer');\n\t\t\t\n\t\t\techo '<form action=\"\" method=\"post\">';\n\t\t\tif ($course)\n\t\t\t{\techo '<div class=\"coursecart clearfix\"><h2>Courses / Events</h2><table class=\"cartlisting\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" ><tr><th colspan=\"2\">Course / Event</th><th>Quantity</th><th class=\"number\">Unit Price</th><th class=\"number\">Discount</th><th class=\"number\">Price</th></tr>';\n\t\t\t\t$coursesubtotal = '0';\n\t\t\t\tforeach ($this->cart->items as $rowid => $p)\n\t\t\t\t{\n\t\t\t\t\tif ($p['type'] == 'course')\n\t\t\t\t\t{\t$p['product']->course->venue = $p['product']->course->GetVenue();\n\t\t\t\t\t\techo '<tr class=\"productRow\"><td class=\"prodImage\"><div><a href=\"', $p['product']->GetLink(), '\">';\n\t\t\t\t\t\tif($img = $p['product']->HasImage('thumbnail'))\n\t\t\t\t\t\t{\techo \"<img src='\", $img, \"' alt='\", $p['product']->GetLink(), \"' />\";\t\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t{\techo \"<img src='\", SITE_URL, \"img/products/default.png' alt='\", $p['product']->GetLink(), \"' />\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\techo '</a></div></td><td class=\"prodItemName\"><h4><a href=\"', $p['product']->GetLink(), '\">', $this->InputSafeString($p['product']->GetName(false)),'</a></h4><p>', date('jS F Y', strtotime($p['product']->course->details['starttime'])), '<br />', $p['product']->course->venue->details['vcity'], '</p><p class=\"prodItemCode\">Code: ', $p['product']->ProductID(), '</p></td><td class=\"prodItemQty\">', $p['qty'], '</td><td class=\"number prodUnitPrice\">', $this->formatPrice($p['price_with_tax']), '</td><td class=\"number prodDiscount\">', ($discount_item = $this->cart->ItemDiscountSum($p['discounts'])) ? $this->formatPrice($discount_item) : '', '</td><td class=\"number prodItemPrice\"><strong>', $this->formatPrice($item_total = ($p['price_with_tax'] * $p['qty']) - $discount_item), '</strong></td></tr>';\n\t\t\t\t\t\t$coursesubtotal += $item_total;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\techo '<tr class=\"cartSubtotalRow\"><td colspan=\"5\" class=\"subtotal\">Subtotal</td><td class=\"subtotalprice number\">', $this->formatPrice($coursesubtotal), '</td></tr></table></div>';\n\t\t\t}\n\t\t\t\n\t\t\tif ($store)\n\t\t\t{\t$storesubtotal = 0;\n\t\t\t\techo '<div class=\"storecart clearfix\"><h2>Products</h2><table class=\"cartlisting\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" ><tr><th colspan=\"2\">Item</th><th>Quantity</th><th class=\"number\">Unit Price</th><th class=\"number\">Discount</th><th class=\"number\">Price</th></tr>';\n\t\t\t\tforeach ($this->cart->items as $rowid => $p)\n\t\t\t\t{\n\t\t\t\t\tif ($p['type'] == 'store')\n\t\t\t\t\t{\techo '<tr class=\"productRow\"><td class=\"prodImage\"><div><a href=\"', $p['product']->GetLink(), '\">';\n\t\t\t\t\t\tif($img = $p['product']->HasImage('thumbnail'))\n\t\t\t\t\t\t{\techo '<img src=\"', $img, '\" alt=\"', $p[\"product\"]->GetLink(), '\" />';\t\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t{\techo '<img src=\"', SITE_URL, 'img/products/default.png\" alt=\"', $p['product']->GetLink(), '\" />';\n\t\t\t\t\t\t}\n\t\t\t\t\t\techo '</a></div></td><td class=\"prodItemName\"><h4><a href=\"', $p['product']->GetLink(), '\">', $this->InputSafeString($p['product']->GetName()), '</a></h4><p class=\"prodItemCode\">Code: ', $p['product']->ProductID(), '</p></td><td class=\"prodItemQty\">', $p['qty'], '</td><td class=\"number prodUnitPrice\">', $this->formatPrice($p['price_with_tax']), '</td><td class=\"number prodDiscount\">', ($discount_item = $this->cart->ItemDiscountSum($p['discounts'])) ? $this->formatPrice($discount_item) : '', '</td><td class=\"number prodItemPrice\"><strong>', $this->formatPrice($item_total = ($p['price_with_tax'] * $p['qty']) - $discount_item), '</strong></td></tr>';\n\t\t\t\t\t\t$storesubtotal += $item_total;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\techo '<tr class=\"cartSubtotalRow\"><td colspan=\"5\" class=\"subtotal\">Subtotal</td><td class=\"subtotalprice number\">', $this->formatPrice($storesubtotal), '</td></tr></table></div>';\n\t\t\t}\n\t\t\t\n\t\t\tif ($subs)\n\t\t\t{\t$subssubtotal = 0;\n\t\t\t\techo '<div class=\"storecart clearfix\"><h2>Subscription</h2><table class=\"cartlisting\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" ><tr><th colspan=\"2\"></th><th>Quantity</th><th class=\"number\">Unit Price</th><th class=\"number\">Discount</th><th class=\"number\">Price</th></tr>';\n\t\t\t\tforeach ($this->cart->items as $rowid => $p)\n\t\t\t\t{\n\t\t\t\t\tif ($p['type'] == 'sub')\n\t\t\t\t\t{\techo '<tr class=\"productRow\"><td class=\"prodImage\"><div><a href=\"', $p['product']->GetLink(), '\">';\n\t\t\t\t\t\tif($img = $p['product']->HasImage('thumbnail'))\n\t\t\t\t\t\t{\techo '<img src=\"', $img, '\" alt=\"', $p[\"product\"]->GetLink(), '\" />';\t\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t{\techo '<img src=\"', SITE_URL, 'img/products/default.png\" alt=\"', $p['product']->GetLink(), '\" />';\n\t\t\t\t\t\t}\n\t\t\t\t\t\techo '</a></div></td><td class=\"prodItemName\"><h4><a href=\"', $p['product']->GetLink(), '\">', $this->InputSafeString($p['product']->GetName()), '</a></h4></td><td class=\"prodItemQty\">', $p['qty'], '</td><td class=\"number prodUnitPrice\">', $this->formatPrice($p['price_with_tax']), '</td><td class=\"number prodDiscount\">', ($discount_item = $this->cart->ItemDiscountSum($p['discounts'])) ? $this->formatPrice($discount_item) : '', '</td><td class=\"number prodItemPrice\"><strong>', $this->formatPrice($item_total = ($p['price_with_tax'] * $p['qty']) - $discount_item), '</strong></td></tr>';\n\t\t\t\t\t\t$subssubtotal += $item_total;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\techo '<tr class=\"cartSubtotalRow\"><td colspan=\"5\" class=\"subtotal\">Subtotal</td><td class=\"subtotalprice number\">', $this->formatPrice($subssubtotal), '</td></tr></table></div>';\n\t\t\t}\n\t\t\techo '</form>';\n\t\t}\n\t\t\n\t\treturn ob_get_clean();\n\t}", "title": "" }, { "docid": "6fab1dee5c7c2c0f60e7aa779f8ff168", "score": "0.55415964", "text": "public function getCart()\n {\n\t\t$cart = $this->helpers->getCart();\n \treturn view('cart',compact(['cart']));\n }", "title": "" }, { "docid": "f160c1fc61e3b71fe7a4f38b25ed0f8e", "score": "0.5528204", "text": "function CartList() {\n?>\n\t\n\t<?php $cart = new Cart(); ?>\n\t\n\t<?php if ($cart->TotalLines() == 0) { ?>\n\t\t<p>Your cart is currently empty.</p>\n\t<?php } else { ?>\n\n\t\t<div class=\"pull-right\">\n\t\t\t<form method=\"post\">\n\t\t\t\t<input type=\"hidden\" name=\"cart_action\" value=\"emptycart\"></input>\n\t\t\t\t<button title=\"Empty Cart\" type=\"submit\" class=\"btn btn-danger btn-mini\">Empty Cart</button>\n\t\t\t</form>\n\t\t</div>\t\t\t\n\t\t\n\t\t</p>You have <?php echo $cart->TotalLines(); ?> item(s) in your cart.</p>\n\t\t\n\t\t\n\t\t<?php echo $cart->CartLinesHtml(true, true, true); ?>\n\n\t\t<form action=\"/order-details\">\n\t\t<button type=\"submit\" class=\"btn btn-large\">Proceed With This Order</button>\n\t\t</form>\n\t\n\t<?php } ?>\n\t\n<?php\n}", "title": "" }, { "docid": "e0c8652f702ff94bbfc7d404b785239b", "score": "0.5522166", "text": "public function cartAction()\n {\n $user = $this->container->get('security.token_storage')->getToken()->getUser();\n $user->getId();\n $em2 = $this->getDoctrine()->getManager();\n $carts = $em2->getRepository('BaskelBundle:LigneCommande')->findBy(array('idUser' => $user));;\n $produit = $em2->getRepository('BaskelBundle:Produit')->findAll();\n $categories = $em2->getRepository('EventBundle:Categorie')->findAll();\n return $this->render('@Baskel/Produit/cart.html.twig', array(\n 'produit' => $produit,\n 'carts' => $carts,\n 'categories' => $categories\n\n ));\n }", "title": "" }, { "docid": "5cc5763a2c2db3102e990f3a7e1bc822", "score": "0.5514164", "text": "public function getCartContent()\n {\n return Mage::getStoreConfig(self::XML_PATH_CART_CONTENT);\n }", "title": "" }, { "docid": "d1acfd7db589f3b730126afddc9f364c", "score": "0.55120784", "text": "public function index(Request $request)\n {\n $items = Cart::content();\n\n if ($request->wantsJson()) {\n return $items;\n }\n\n return view('cart', compact('items'));\n }", "title": "" }, { "docid": "385c8071bb2574d04d08a6773ca34ba3", "score": "0.55017567", "text": "public function ShowInCart()\n {\n return $this->ShowInTable();\n }", "title": "" }, { "docid": "afdb8b0b5c2071bab7dce7d7ca20fec6", "score": "0.5496314", "text": "public static function cartGetCartItms()\n {\n // also modify Order summary display to act same as Shopping cart display.\n $dbdal = new dbdalSHOP_CART(1);\n $sql = \n \"SELECT GNS_ID, SUBTOTAL, COUNT(GNS_ID) AS QTY, MAX(GNS_SKU) AS GNS_SKU, MAX(GNS_NAME) AS GNS_NAME,\".\n \"MAX(GNS_PRICE) AS GNS_PRICE\".\n \"FROM SHOP_CART_ITM\".\n \"GROUP BY GNS_ID, SUBTOTAL\"; \n $rs = $dbdal->executeSelect($sql);\n if (isset($rs) && is_array($rs))\n {\n return $rs;\n }\n else\n return null;\n \n }", "title": "" }, { "docid": "31214c11e9663f17920730ca3bfdc86f", "score": "0.5495873", "text": "public function index(){\n\t\t$this->load->model('CartModel');\n\t\t$data = [\n\t\t\t'template' => '/cart/index',\n\t\t\t'products' => $this->cart->contents()\n\t\t];\n\t\t$this->load->view('layout/app', $data);\n\t}", "title": "" }, { "docid": "67184a67f1a1c8f5fb0b1c0e8777db9b", "score": "0.5495423", "text": "public function index()\n {\n $products = false;\n $total = 0;\n\n // Check whether the session contains a cart.\n if ($this->request->session()->has('cart')) {\n\n // If so, iterate each product and calculate\n // the total price of the cart.\n $products = $this->request->session()->get('cart');\n foreach ($products as $product) {\n $total += $product['count'] * $product['price'];\n }\n }\n\n // Pass the $products array and the $total cart value to the view at\n // /resources/views/cart/index.blade.php and render it.\n return view('cart.index', compact('products', 'total'));\n }", "title": "" }, { "docid": "8febaeb3bdd904bf7879723cb0d01a3a", "score": "0.54920197", "text": "public function index()\n {\n $cart = Cart::content();\n $total = Cart::total();\n\n return view('cart.show',compact('cart', 'total'));\n }", "title": "" }, { "docid": "2c973ecb7433d59641ac38ffcfcddd35", "score": "0.5484008", "text": "public function readAllItems()\n {\n return $this->html(\"<ul><li><a href='/items/1'>Item #1</a></li><li><a href='/items/2'>Item #2</a></li></ul>\");\n }", "title": "" }, { "docid": "32552c20e53571faaa0e9068ba9b9f34", "score": "0.5482976", "text": "public function cart()\n {\n $cart = Cart::content();\n return view('layouts\\cart\\cart1', array('cart' => $cart));\n\n }", "title": "" }, { "docid": "192f60cdc9ac58d4e1dc424414832d45", "score": "0.547872", "text": "public function getIterator()\n {\n return new ProductXIterator($this->storage);\n }", "title": "" }, { "docid": "156f7368f8b8c94c998817c55f7cfe3e", "score": "0.5470766", "text": "public function index()\n {\n //Cart::destroy();\n $this->status();\n //dd(Cart::content());\n\n return view('Shop.cart')->with('cartItems', Cart::content());\n }", "title": "" }, { "docid": "93ef51fe20071c08a87019476f406f1a", "score": "0.54678196", "text": "function show_cart(){\r\n $output = '';\r\n\t\t$no = 0;\r\n foreach ($this->cart->contents() as $items) {\r\n $no++;\r\n $output .='\r\n <tr>\r\n\t\t\t\t\t<td>'.$items['name'].'</td>\r\n\t\t\t\t\t<td>'.$items['jenis'].'</td>\r\n\t\t\t\t\t<td>'.number_format($items['price']).'</td>\r\n\t\t\t\t\t<td>'.$items['qty'].'</td> \r\n\t\t\t <td><button type=\"button\" id=\"'.$items['rowid'].'\" class=\"hapus_cart btn btn-danger btn-xs\">Batal</button></td>\r\n\r\n </tr>\r\n\t\t\t';\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn $output;\r\n\r\n\t}", "title": "" }, { "docid": "5430a0d246ac64f75bcd9f871221019b", "score": "0.5461408", "text": "public function getIterator() {\n return new \\ArrayIterator($this->deck);\n }", "title": "" }, { "docid": "604b5fde36336af38b154abb210c7466", "score": "0.5458007", "text": "function show_cart(){\r\n $output = '';\r\n $no = 0;\r\n foreach ($this->cart->contents() as $items) {\r\n\r\n $no++;\r\n $output .='\r\n <tr>\r\n \t<td align=\"center\">'.$no.\".\".'</td>\r\n <td>'.$items['name'].'</td>\r\n <td align=\"center\">'.$items['size'].'</td>\r\n <td align=\"center\">'.$items['qty'].'</td>\r\n <td align=\"center\">'.number_format($items['price'],0,',','.').'</td> \r\n <td align=\"right\">'.number_format($items['subtotal'],0,',','.').'</td>\r\n <td align=\"center\"><button type=\"button\" id=\"'.$items['rowid'].'\" class=\"hapus_cart btn btn-danger btn-md\"><i class=\"glyphicon glyphicon-trash\"></i></button></td>\r\n </tr>\r\n ';\r\n }\r\n return $output;\r\n }", "title": "" }, { "docid": "c74638e685e58c8eb2a5796f70d9a226", "score": "0.544932", "text": "public function shoppingcartGetList();", "title": "" }, { "docid": "d6d4647a11e7f6e50874997e4247ef4b", "score": "0.5440932", "text": "public function index(){\n $total = 0;\n $products = $this->findProductFromCart();\n foreach ($products as $product) {\n $total += $product['product']->price * $product['quantity'];\n }\n return view('cart.index', compact('products', 'total'));\n }", "title": "" }, { "docid": "264145aec6738ede76e8a8477ae33e01", "score": "0.5434706", "text": "public function testCartIndexPage()\n {\n $cart = app::make(\\App\\Core\\Cart\\Cart::class);\n $cart->flushCart();\n\n $product1 = factory(\\App\\Product::class)->create();\n $product2 = factory(\\App\\Product::class)->create();\n\n $cart->addItem(['id'=>$product1->id,'quantity'=> 2]);\n $cart->addItem(['id'=>$product2->id,'quantity'=>3]);\n\n\n $cart->removeItem($product1->id);\n $this->assertEquals(1,$cart->getItemsCount());\n dd($cart->getItems());\n// $this->assertEquals(1,$cart->getItemsCount());\n// $this->visit('CartTest')\n//// ->see('quantity_'.$product1->id)\n//// ->see('quantity_'.$product2->id)\n//// ->see($product1->name)\n//// ->see($product2->name)\n// ;\n }", "title": "" }, { "docid": "c21aa24b516580e577b86be186f324e1", "score": "0.5433955", "text": "public function show($cart)\n {\n }", "title": "" }, { "docid": "6282363a85eceda6d0e2e76e46e9c949", "score": "0.54317534", "text": "public function iterator();", "title": "" }, { "docid": "6282363a85eceda6d0e2e76e46e9c949", "score": "0.54317534", "text": "public function iterator();", "title": "" }, { "docid": "8368b6a00cafb25f83e439239de67e6e", "score": "0.5428882", "text": "public function index()\n {\n $content = Cart::getContent();\n\n return view('panier.index', compact('content'));\n }", "title": "" }, { "docid": "a98b98434a995025d74f1237d65b42ab", "score": "0.5425726", "text": "public function show(Cart $cart)\n {\n //\n }", "title": "" }, { "docid": "a98b98434a995025d74f1237d65b42ab", "score": "0.5425726", "text": "public function show(Cart $cart)\n {\n //\n }", "title": "" }, { "docid": "a98b98434a995025d74f1237d65b42ab", "score": "0.5425726", "text": "public function show(Cart $cart)\n {\n //\n }", "title": "" }, { "docid": "a98b98434a995025d74f1237d65b42ab", "score": "0.5425726", "text": "public function show(Cart $cart)\n {\n //\n }", "title": "" }, { "docid": "a98b98434a995025d74f1237d65b42ab", "score": "0.5425726", "text": "public function show(Cart $cart)\n {\n //\n }", "title": "" }, { "docid": "ac360f5dd049d77b784b0f31fb2315e5", "score": "0.5421891", "text": "public abstract function iterator();", "title": "" }, { "docid": "415d9fb99525b05cf313840de1fe7010", "score": "0.5404061", "text": "public function getIterator()\n {\n }", "title": "" }, { "docid": "2cb1813190ac9d3f497b7f2ce586611d", "score": "0.5396782", "text": "public function getIterator() {\n return new MyIterator($this -> items);\n }", "title": "" }, { "docid": "a698b0a9926bdf36cae96603aaa48487", "score": "0.5392535", "text": "public function getItems();", "title": "" }, { "docid": "a698b0a9926bdf36cae96603aaa48487", "score": "0.5392535", "text": "public function getItems();", "title": "" }, { "docid": "a698b0a9926bdf36cae96603aaa48487", "score": "0.5392535", "text": "public function getItems();", "title": "" }, { "docid": "a698b0a9926bdf36cae96603aaa48487", "score": "0.5392535", "text": "public function getItems();", "title": "" }, { "docid": "a698b0a9926bdf36cae96603aaa48487", "score": "0.5392535", "text": "public function getItems();", "title": "" }, { "docid": "a698b0a9926bdf36cae96603aaa48487", "score": "0.5392535", "text": "public function getItems();", "title": "" }, { "docid": "a698b0a9926bdf36cae96603aaa48487", "score": "0.5392535", "text": "public function getItems();", "title": "" }, { "docid": "a698b0a9926bdf36cae96603aaa48487", "score": "0.5392535", "text": "public function getItems();", "title": "" }, { "docid": "a698b0a9926bdf36cae96603aaa48487", "score": "0.5392535", "text": "public function getItems();", "title": "" }, { "docid": "a698b0a9926bdf36cae96603aaa48487", "score": "0.5392535", "text": "public function getItems();", "title": "" }, { "docid": "a698b0a9926bdf36cae96603aaa48487", "score": "0.5392535", "text": "public function getItems();", "title": "" }, { "docid": "a698b0a9926bdf36cae96603aaa48487", "score": "0.5392535", "text": "public function getItems();", "title": "" }, { "docid": "50a33da4dca6eb12047a8dbcbe0d5a04", "score": "0.5392341", "text": "public function getContents()\n {\n if (empty($this->contents)) {\n foreach ($this->products as $id => $count) {\n // Get the product entity.\n $product = Products::getInstance()->findEntity($id);\n $this->contents[$id] = $product->getFieldsData();\n // Inject the product metadata in the entity.\n $this->contents[$id]['count'] = $count;\n $this->contents[$id]['totalPrice'] = $product->price * $count;\n if (property_exists($product, 'weight')) {\n $this->contents[$id]['totalWeight'] = $product->weight * $count;\n }\n }\n }\n\n return $this->contents;\n }", "title": "" }, { "docid": "3225067a958f65de6af51493e0578664", "score": "0.5390467", "text": "public function index()\n {\n //$carrito= Cart::add(455, 'Sample Item', 100.99, 2, array());\n $cartContent = Cart::getContent();\n $product = Product::all();\n return view('cart/index',compact(\"cartContent\",\"product\"));\n }", "title": "" }, { "docid": "3a221db88ecf221e3b667a4a9c65ed7b", "score": "0.53876704", "text": "public function index()\n {\n $cart = new Cart();\n $carts = $cart->viewCart();\n return view('cartList',compact('carts'));\n }", "title": "" }, { "docid": "f5227792ed21c1feda1dcd346a731b9d", "score": "0.53865874", "text": "public function getContents();", "title": "" }, { "docid": "f5227792ed21c1feda1dcd346a731b9d", "score": "0.53865874", "text": "public function getContents();", "title": "" }, { "docid": "f5227792ed21c1feda1dcd346a731b9d", "score": "0.53865874", "text": "public function getContents();", "title": "" } ]
5edad5c3658ac2e132a0877f8aee58dd
Gets allowable values of the enum
[ { "docid": "32f311c852d5b8667c886b3aa20af3fb", "score": "0.0", "text": "public function getControlModeAllowableValues()\n {\n return [\n self::CONTROL_MODE_UNDEFINED,\n self::CONTROL_MODE_LOCAL,\n self::CONTROL_MODE_REMOTE,\n self::CONTROL_MODE_REMOTE_WITH_QR_CODE,\n ];\n }", "title": "" } ]
[ { "docid": "4ad8b1b931655cb297063d1b451bf8c3", "score": "0.86371356", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::UNIFORM,\n self::_DEFAULT,\n self::UNKNOWN,\n ];\n }", "title": "" }, { "docid": "b7238d1bf8024235a761833df67f1da8", "score": "0.8625803", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::BRONZE,\n self::GOLD,\n self::SILVER,\n self::UNLIMITED,\n ];\n }", "title": "" }, { "docid": "53a2d6d59b697537c5f0396e5eeeef93", "score": "0.86214095", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::_7,\n self::_30,\n self::_90,\n self::_180,\n self::_365\n ];\n }", "title": "" }, { "docid": "a880e16d883efae585c4e4fd5db2a5e9", "score": "0.86105525", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::CENTRAL_HEATING,\n self::ELECTRICITY,\n self::WATER,\n self::ATTIC,\n self::ELECTRIC_DOOR,\n ];\n }", "title": "" }, { "docid": "5839b9697e3481eea4337f8d4da7b277", "score": "0.8534008", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::BELOW_TWENTY_FIVE,\n self::TWENTY_FIVE_TO_THIRTY_FOUR,\n self::THIRTY_FIVE_TO_FORTY_FOUR,\n self::FORTY_FIVE_TO_FIFTY_FOUR,\n self::FIFTY_FIVE_TO_SIXTY_FOUR,\n self::SIXTY_FIVE_TO_SEVENTY_FOUR,\n self::SEVENTY_FIVE_AND_OLDER,\n ];\n }", "title": "" }, { "docid": "03b24a18082f32a7150f5148e8c4b3c7", "score": "0.85273725", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::FORBIDDEN,\n self::PERMITTED_NON_TARGET_ENABLE,\n self::PERMITTED_NON_TARGET_DISABLE,\n self::FIXED,\n self::UNKNOWN,\n ];\n }", "title": "" }, { "docid": "72272670a3967e17689d397b94e8792d", "score": "0.8521471", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::ETF,\n self::MUTUAL_FUND,\n self::STOCK,\n ];\n }", "title": "" }, { "docid": "6f372a565b49a1a4ab1f4895d7f859e6", "score": "0.8514957", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::SINGLE,\n self::RECURRING,\n ];\n }", "title": "" }, { "docid": "ee49c737e00de81eef3200380fbb442f", "score": "0.8509256", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::OUTGOING,\n self::INCOMING,\n self::ALL,\n ];\n }", "title": "" }, { "docid": "9b6cb0cef08dccb6a92d675620e9eb12", "score": "0.85076475", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::MISSING,\n self::IGNORED,\n self::AVAILABLE,\n ];\n }", "title": "" }, { "docid": "97335ef8eeafe439bf4425bbb625d684", "score": "0.8483532", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::_PUBLIC,\n self::_PRIVATE,\n ];\n }", "title": "" }, { "docid": "447c295eed1d726fc41364e635903bd6", "score": "0.84780556", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::_5_LOW,\n self::_10,\n self::_15,\n self::_20,\n self::_30,\n self::_50,\n self::_100,\n self::_300,\n self::_300_HIGH,\n ];\n }", "title": "" }, { "docid": "2ca97aab31265a92c1a6f776fdb6ea34", "score": "0.84744596", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::IN,\n self::OUT,\n self::BOTH,\n ];\n }", "title": "" }, { "docid": "c56b505e604a8e3fd7b6249dda0bff32", "score": "0.84655416", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::AC,\n self::PC,\n self::CU,\n self::US,\n self::NO,\n self::SY,\n self::WO,\n self::AD,\n self::AP,\n ];\n }", "title": "" }, { "docid": "08196ff22f806d32badcb7a0ccb01ff6", "score": "0.8459253", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::_1,\n self::_2,\n self::_3,\n self::_4,\n self::_5,\n self::_6,\n self::_7,\n self::N,\n ];\n }", "title": "" }, { "docid": "04526b61bb34f9c842bff2d9d30eee3e", "score": "0.84336644", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::ECOMMERCE_PRODUCT,\n self::LINK_AD,\n self::OCPA,\n ];\n }", "title": "" }, { "docid": "316c994cf3207f9e68f021ba4d0059b7", "score": "0.840554", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::PROSPECT,\n self::CLIENT,\n self::FORMER_CLIENT,\n self::PARTICULAR_PERSON,\n self::EMPLOYEE,\n self::CANDIDATE,\n self::EXTERNAL_PROVIDER,\n self::EXTERNAL_SERVICE_PROVIDER,\n self::OTHER,\n self::TEMPORARY_WORKER,\n self::AGENT,\n self::ELECTED_REPRESENTATIVE,\n self::PUBLIC_SERVICE_USER,\n self::VISITORS,\n ];\n }", "title": "" }, { "docid": "9bc9676aabecdc4f8c7278fe82a639ab", "score": "0.8393185", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::SELLER_LABEL,\nself::AMAZON_LABEL_ONLY,\nself::AMAZON_LABEL_PREFERRED, ];\n }", "title": "" }, { "docid": "667a27ab1704f577da9671c701a2c9c6", "score": "0.8386568", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::EMPTY,\n self::POWER_OFF,\n ];\n }", "title": "" }, { "docid": "dc6b094e8280daca34f6768280e0e7cc", "score": "0.83819264", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::PLACED,\n self::APPROVED,\n self::DELIVERED\n ];\n }", "title": "" }, { "docid": "f03efce8092f43152714d932989a886b", "score": "0.8377357", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::DRAFT,\n self::RESERVED,\n self::_NEW,\n self::LOCKED,\n self::COLLECTING,\n self::PENDING,\n self::CANCELLED,\n self::SHIPPED,\n self::RETURNED,\n ];\n }", "title": "" }, { "docid": "e18682a01a68e6600d1be9eaed594d3a", "score": "0.83755016", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::CONTACT_PERSON,\n self::OBJECT_ASSIGNMENT,\n self::EMPLOYEE,\n self::AGENDA_ITEM,\n self::OFFICE,\n self::COMPANY,\n ];\n }", "title": "" }, { "docid": "1c3f5e8650efb5a722e9fce5092feb0f", "score": "0.8372506", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::RESULT_SELECTION_UNDEFINED,\n self::USER_CHOICE,\n self::PRESELECTED_CHOICE,\n self::FALLBACK_FROM_USER_CHOICE,\n self::FALLBACK_FROM_PRESELECTED_CHOICE,\n self::FALLBACK_FAILED_FOR_USER_CHOICE,\n self::FALLBACK_FAILED_FOR_PRESELECTED_CHOICE,\n ];\n }", "title": "" }, { "docid": "fb05d02a25d4f72920cb50d0995fb727", "score": "0.8369012", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::DRAFT,\n self::APPROVED,\n self::EXPERIMENTAL,\n self::NOT_APPROVED,\n self::AS_IS,\n self::EXPIRED,\n self::NOT_FOR_PUBLIC_RELEASE,\n self::CONFIDENTIAL,\n self::_FINAL,\n self::SOLD,\n self::DEPARTMENTAL,\n self::FOR_COMMENT,\n self::FOR_PUBLIC_RELEASE,\n self::TOP_SECRET,\n ];\n }", "title": "" }, { "docid": "22ffcbbd73488f58a0773132f6281d8a", "score": "0.83633214", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::UNKNOWN,\n self::PENDING,\n self::DENIED,\n self::FROZEN,\n self::SUSPEND,\n self::READY,\n self::ACTIVE,\n self::STOP,\n self::PREPARE,\n self::DELETED,\n self::ACTIVE_ACCOUNT_FROZEN,\n self::ACTIVE_ACCOUNT_EMPTY,\n self::ACTIVE_ACCOUNT_LIMIT,\n self::ACTIVE_CAMPAIGN_LIMIT,\n self::ACTIVE_CAMPAIGN_SUSPEND,\n self::ACTIVE_AD_LIMIT,\n self::PART_READY,\n self::PART_ACTIVE,\n ];\n }", "title": "" }, { "docid": "53031f1ac98c92d2637b124b23fd199b", "score": "0.8360035", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::MIJIN,\n self::MIJIN_TEST,\n self::_PUBLIC,\n self::PUBLIC_TEST,\n ];\n }", "title": "" }, { "docid": "100e0897161470937834b7ccdf656db8", "score": "0.8350332", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::EMPTY,\n self::AUTO,\n self::_1,\n self::_2,\n self::_3,\n self::_4,\n self::_5,\n self::_6,\n self::_7,\n self::_8,\n self::_9,\n self::_10,\n ];\n }", "title": "" }, { "docid": "2817f14104c5878d43081faf9f12a1ab", "score": "0.83461475", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::AD_RECHARGE,\n self::JD_PRIVILEGE,\n self::JD_WIRELESS_CASH,\n self::UNION_GIFT,\n self::MP_CASH,\n self::MP_BANK,\n self::MP_GIFT,\n self::CONTRACT_GIFT_VIRTUAL,\n self::CONTRACT_ASSIGN_VIRTUAL,\n self::COMPENSATE_VIRTUAL,\n self::INTERNAL_QUOTA,\n self::TEST_VIRTUAL,\n self::TCC_GIFT,\n self::SPECIAL_GIFT,\n self::MP_GAME_DEVELOPER_WORKING_FUND,\n self::MP_GAME_DEVELOPER_GIFT,\n self::FLOW_SOURCE_AD_FUND,\n self::ANDROID_ORIENTED_GIFT,\n self::LOCATION_PROMOTION_REWARDS,\n self::GIFT_RESTRICT,\n self::UNSUPPORTED,\n ];\n }", "title": "" }, { "docid": "8cf1ef11b4bda5dc54644e47079db459", "score": "0.8344243", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::ONBEKEND,\n self::MODELWAARDE_CALCASA,\n self::MODELWAARDE_RISICO,\n self::MODELWAARDE_DESKTOP_TAXATIE,\n self::DESKTOP_TAXATIE\n ];\n }", "title": "" }, { "docid": "268d222dcf975ac962f0fe86e24dcbea", "score": "0.8342389", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::UNKNOWN_PICKUP_LOCATION_TYPE,\n self::LOCKER,\n self::STORE,\n self::POSTOFFICE,\n self::MANNED,\n ];\n }", "title": "" }, { "docid": "e8ebd8ac35bfb7839d853f1fca3f9234", "score": "0.83255506", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::VENDOR,\n self::APPLICANT,\n self::NOTARY,\n self::PROPERTY_MANAGER,\n self::FINANCIAL_ADVISOR,\n self::APPRAISER,\n self::PURCHASING_BROKER,\n self::INSPECTOR,\n self::STYLIST,\n self::PHOTOGRAPHER,\n self::POTENTIAL,\n self::PROJECT_DEVELOPER,\n self::OCCUPANT,\n self::SOMEONE_WHO_OPTED,\n self::CLIENT,\n self::OFFERING_AGENCY,\n self::TENANT_REPRESENTATION_BROKER,\n self::RENTAL_AGENT,\n self::SALES_BROKER,\n self::CONTACT_PERSON,\n ];\n }", "title": "" }, { "docid": "30b9e05f4ee7c8767ed4471d1abd7d46", "score": "0.83180106", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::UNKNOWN,\n self::COMPLETED,\n self::INCOMPLETE,\n ];\n }", "title": "" }, { "docid": "1d6da07002b84b83359097ea04a17a25", "score": "0.8317689", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::ALPHNUM6,\n self::ANY_DIG,\n self::DIG1,\n self::DIG2,\n self::DIG3,\n self::DIG4,\n self::DIG5,\n self::DIG6,\n self::DIG7,\n self::DIG8,\n self::DIG9,\n self::DIG10,\n self::DIG11,\n self::UP_TO_20_DIGIT_SEQUENCE,\n self::VERSAY_YESNO\n ];\n }", "title": "" }, { "docid": "8370990e70e6cb2c50ce3f0ac8ea60ec", "score": "0.8311869", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::1,\nself::2, ];\n }", "title": "" }, { "docid": "fa5c8f3c9c589825ca1f7357f15febce", "score": "0.83098924", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::AAM,\nself::ANTIQUES,\nself::ARTWORK,\nself::ATK,\nself::EAM,\nself::EUE,\nself::EUFAD37,\nself::EUFADE,\nself::HO,\nself::KBAET,\nself::NAM_1,\nself::NAM_2,\nself::SECOND_HAND,\nself::TAM,\nself::TRAVEL_AGENCY, ];\n }", "title": "" }, { "docid": "5218e6227990c3f8d8c50ab14adb39f6", "score": "0.83064944", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::NO_GARAGE,\n self::ATTACHED_STONE,\n self::ATTACHED_WOOD,\n self::DETACHED_STONE,\n self::DETACHED_WOOD,\n self::INDOOR,\n self::GARAGE_BOX,\n self::UNDERGROUND_PARKING,\n self::OPTION_FOR_GARAGE,\n self::CAR_PORT,\n self::PARKING_SPACE,\n self::GARAGE_WITH_CAR_PORT,\n self::GARAGE,\n self::PARKING_FEE,\n self::NO_PARKING,\n self::FREE_PARKING,\n ];\n }", "title": "" }, { "docid": "b9f61f707108c419830b729fc1c104a1", "score": "0.8302688", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::SANYA,\n self::CHANGSHA,\n self::XIAMEN,\n self::QINGDAO,\n self::LIJIANG,\n self::DALI,\n self::DALIAN,\n self::HK,\n self::TAIWAN,\n self::AOMEN,\n self::XIANGGELILA,\n self::QINGHAI,\n self::XIZANG,\n self::DAOCHENG,\n self::CHONGQING,\n self::SUZHOU,\n self::SHANGHAI,\n self::HANGZHOU,\n self::SHENZHEN,\n self::GUANGZHOU,\n self::BEIJING,\n self::XIAN,\n self::CHENGDU,\n self::BEIHAI,\n self::GUILIN,\n self::WUHAN,\n self::NANJING,\n self::HAIKOU,\n ];\n }", "title": "" }, { "docid": "3d539125bbf096b859bb7353197a9586", "score": "0.8301323", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::INVALID_DATA,\n self::UNAUTHORIZED,\n self::MISSING_RESOURCE,\n self::CONFLICT,\n self::CLIENT_ERROR,\n self::GENERAL_ERROR\n ];\n }", "title": "" }, { "docid": "6813239362ea65698b5c688696aee44f", "score": "0.8297554", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::MINUTES,\n self::HOURS,\n self::DAYS,\n self::WEEKS,\n self::MONTHS,\n self::YEARS,\n ];\n }", "title": "" }, { "docid": "54e99ad1587801e2d947d0dddd7788cd", "score": "0.82958114", "text": "public static function getAllowableEnumValues() : array\n {\n return [\n self::_101,\n self::_102,\n self::_201,\n self::_202,\n self::_203,\n self::_204,\n self::_205,\n self::_206,\n self::_301,\n self::_302,\n self::_304,\n self::_306,\n self::_307,\n self::_308,\n self::_309,\n self::_401,\n self::_402,\n self::_403,\n self::_404,\n self::_405,\n self::_406,\n self::_407,\n self::_408,\n self::_409,\n self::_411,\n self::_412,\n self::_413,\n self::_414,\n self::_415,\n self::_416,\n self::_417,\n self::_418,\n self::_419,\n ];\n }", "title": "" }, { "docid": "c732e9d66ab82bf042be643ac1dca816", "score": "0.8289771", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::UPLOAD_COUNT_LIMIT,\n self::FILE_ROWS_LIMIT,\n self::FILE_SIZE_LIMIT_COMPRESS,\n self::FILE_SIZE_LIMIT_UNCOMPRESS,\n self::UNKNOWN,\n ];\n }", "title": "" }, { "docid": "166b8b22d0a52e3bf55fc5480e679d69", "score": "0.828794", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::GEO_TARGET_TYPE_SETTING,\n self::TARGET_LIST_SETTING,\n self::DYNAMIC_ADS_FOR_SEARCH_SETTING,\n self::UNKNOWN,\n ];\n }", "title": "" }, { "docid": "5c023140d366a7c55a5da6069991ca5a", "score": "0.8286004", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::PENDING,\n self::PAID,\n ];\n }", "title": "" }, { "docid": "fdf285ded33d2a5566c7b537133afee3", "score": "0.8279127", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::DE,\nself::EN,\nself::FR,\nself::HR,\nself::HU,\nself::IT,\nself::RO,\nself::SK,\nself::US, ];\n }", "title": "" }, { "docid": "aed7d2d981aaed9d2f6c6c0d25fabd39", "score": "0.82788134", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::STARTER,\n self::MOVING_ON,\n self::EXISTING_TENANT,\n self::INVESTOR,\n self::EXPAT,\n self::PARENT,\n self::SECOND_HOUSE,\n self::FARMER,\n self::PRIVATE_INDIVIDUAL,\n self::PROJECT_DEVELOPER,\n self::TENANT,\n self::GOVERNMENT,\n self::OTHER,\n ];\n }", "title": "" }, { "docid": "31b0480c0efe7afb92055e6abd88f66f", "score": "0.8276538", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::_1920X1080,\n self::_1280X720,\n self::_1080X1920,\n self::_720X1280,\n self::_1080X1080,\n self::_720X720,\n ];\n }", "title": "" }, { "docid": "d988deaa13f2c745d0ed8e013dea7dba", "score": "0.8276444", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::PDFA1A,\n self::PDFA1B,\n self::PDFA2A,\n self::PDFA2B,\n self::PDFA2U,\n self::PDFA3A,\n self::PDFA3B,\n self::PDFA3U,\n ];\n }", "title": "" }, { "docid": "5138faae403233786b2bd0d8099f2f9f", "score": "0.8270226", "text": "public static function getAllowableEnumValues() : array\n {\n return [\n self::ENROLLED,\n self::NOT_ENROLLED,\n ];\n }", "title": "" }, { "docid": "3480a8863623aa710041ed5e0a667d4a", "score": "0.82687914", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::EXISTS,\n self::LOCAL_DELETION,\n self::SYNDICATED_DELETION,\n self::FILTER_DELETION,\n ];\n }", "title": "" }, { "docid": "5ae0911cc308cf6004dc6a73dbb48370", "score": "0.8263685", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::SINGLE_FAMILY_HOUSE,\n self::MANSION,\n self::VILLA,\n self::COUNTRY_HOUSE,\n self::BUNGALOW,\n self::RESIDENTIAL_FARM,\n self::CANAL_HOUSE,\n self::HOUSE_BOAT,\n self::MOBILE_HOME,\n self::GIPSY_CART,\n ];\n }", "title": "" }, { "docid": "3889e53bf95afdcfd15fb9afa49e35b4", "score": "0.82605666", "text": "public static function getAllowableEnumValues()\n {\n $baseVals = [\n self::PENDING_SCHEDULE,\n self::PENDING_PICK_UP,\n self::PENDING_DROP_OFF,\n self::LABEL_CANCELED,\n self::PICKED_UP,\n self::DROPPED_OFF,\n self::AT_ORIGIN_FC,\n self::AT_DESTINATION_FC,\n self::DELIVERED,\n self::REJECTED_BY_BUYER,\n self::UNDELIVERABLE,\n self::RETURNING_TO_SELLER,\n self::RETURNED_TO_SELLER,\n self::LOST,\n self::OUT_FOR_DELIVERY,\n self::DAMAGED,\n ];\n // This is necessary because Amazon does not consistently capitalize their\n // enum values, so we do case-insensitive enum value validation in ObjectSerializer\n $ucVals = array_map(function ($val) { return strtoupper($val); }, $baseVals);\n return array_merge($baseVals, $ucVals);\n }", "title": "" }, { "docid": "91788a99349d304f08b0f6666d987ed4", "score": "0.8259096", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::DESTINY_STAT_CATEGORY_GAMEPLAY,\n self::DESTINY_STAT_CATEGORY_WEAPON,\n self::DESTINY_STAT_CATEGORY_DEFENSE,\n self::DESTINY_STAT_CATEGORY_PRIMARY,\n ];\n }", "title": "" }, { "docid": "57765e3c219d531c8fb8591b04c40454", "score": "0.8252056", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::PENDING,\n self::APPROVED,\n self::REJECTED\n ];\n }", "title": "" }, { "docid": "335172d53980c29e225dbac8ea5c4aa3", "score": "0.824991", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::OPEN,\n self::CLOSED,\n self::UNKNOWN,\n ];\n }", "title": "" }, { "docid": "f1fe1b1e07fabe77f756f4554bfaf46b", "score": "0.82475555", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::RECEIVING,\n self::RECEIVED,\n self::INVALID_FILE,\n self::FAILED,\n self::UNKNOWN,\n ];\n }", "title": "" }, { "docid": "bb12e0971cd2ce10a04079d0f587f6e8", "score": "0.82462114", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::CIVIL_STATUS,\n self::PERSONAL_LIFE,\n self::PROFESSIONAL_LIFE,\n self::ECONOMIC_FINANCIAL_DATA,\n self::CONNECTION_DATA,\n self::GEO_LOCATION_DATA,\n self::INTERNET_DATA,\n self::RACIAL_DATA,\n self::POLITICAL_OPINIONS,\n self::RELIGIOUS_BELIEFS,\n self::TRADE_UNION_MEMBERSHIP,\n self::GENETIC_DATA,\n self::BIOMETRIC_DATA,\n self::HEALTH_DATA,\n self::SEXUAL_ORIENTATIONS,\n self::CRIMINAL_CONVICTIONS,\n self::CRIMINAL_DATA,\n self::OTHER,\n ];\n }", "title": "" }, { "docid": "0fd6e574fc346f8f34aabb724f125e7c", "score": "0.8243213", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::QUEUEING,\n self::RUNNING,\n self::VALIDATED_AND_RUNNING,\n self::RUNNING_BUT_WITH_ERRORS,\n self::SUCCESSFUL,\n self::PARTIAL_SUCCESS,\n self::ERROR,\n ];\n }", "title": "" }, { "docid": "c0f2307a5aba00840ff7f4a427029784", "score": "0.82363695", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::PENDING,\n self::CAPTURED,\n self::CLOSED\n ];\n }", "title": "" }, { "docid": "b07142037c28d6003b6aa8bdffc4312b", "score": "0.8230371", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::PUBLIC_PLAYBACK_POLICY,\n self::SIGNED_PLAYBACK_POLICY,\n ];\n }", "title": "" }, { "docid": "0199dd8a75bdaa9f2a441c07fe9d4a58", "score": "0.82289207", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::GA_ACCELERATORS,\n self::GA_LISTENERS,\n ];\n }", "title": "" }, { "docid": "9363421d04fa25fdab205c39b1cb2332", "score": "0.82280666", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::OPENID,\n self::EMAIL,\n self::PROFILE,\n self::CHAT_MESSAGE_WRITE\n ];\n }", "title": "" }, { "docid": "61273c093213330af6dc1d4d3e4a83c2", "score": "0.8224324", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::INFO,\n self::WARNING,\n self::ERROR\n ];\n }", "title": "" }, { "docid": "580c5826dde26a407976f1ade9d6d4cf", "score": "0.8201613", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::FULL_OWNERSHIP,\n self::LEASEHOLD,\n self::LEASEHOLD_PROPERTY_TAX,\n self::UNDER_LEASEHOLD,\n self::LEASEHOLD_ESTATE,\n self::PROPERTY_ENCUMBERED_WITH_SUPERSTRUCTURE,\n self::LEASEHOLD_SUPERSTRUCTURE,\n self::PROPERTY_ENCUMBERED_WITH_LEASEHOLD_SUPERSTRUCTURE,\n self::PERPETUAL_GROUND_RENT,\n self::PROPERTY_ENCUMBERED_WITH_PERPETUAL_GROUND_RENT,\n self::CITY_LAW,\n self::PROPERTY_ENCUMBERED_WITH_CITY_LAW,\n self::UNDER_RIGHT_OF_APPEAL,\n self::USUFRUCT,\n self::PROPERTY_ENCUMBERED_WITH_USUFRUCT,\n self::OCCUPANCY,\n self::PROPERTY_ENCUMBERED_WITH_OCCUPANCY,\n self::PROPERTY_ENCUMBERED_WITH_LIMITED_RIGHTS,\n self::LEASEHOLD_ENCUMBERED_WITH_USUFRUCT,\n self::SUPERSTRUCTURE_ENCUMBERED_WITH_USUFRUCT,\n self::LEASEHOLD_SUPERSTRUCTURE_ENCUMBERED_WITH_USUFRUCT,\n self::RIGHT_OF_APPEAL_ENCUMBERED_WITH_USUFRUCT,\n self::LEASEHOLD_ENCUMBERED_WITH_OCCUPANCY,\n self::SUPERSTRUCTURE_ENCUMBERED_WITH_OCCUPANCY,\n self::LEASEHOLD_SUPERSTRUCTURE_ENCUMBERED_WITH_OCCUPANCY,\n self::RIGHT_OF_APPEAL_ENCUMBERED_WITH_OCCUPANCY,\n self::SEE_DEED,\n self::MANDELIG,\n self::RIGHT_OF_OVERHANG,\n ];\n }", "title": "" }, { "docid": "6dc6c9627aef97296cf93c00b70f7422", "score": "0.8188737", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::WHOLE_DOCUMENT,\n self::LINE_FINDING,\n ];\n }", "title": "" }, { "docid": "8f4d990b5b80241b22ab0ff973f6c4cf", "score": "0.81862557", "text": "public static function getAllowableEnumValues() : array\n {\n return [\n self::PROCESSING,\n self::ACCEPTED,\n self::ERRORED,\n self::NOT_FOUND,\n ];\n }", "title": "" }, { "docid": "53dfa95b4734e266cfc337607dd61b67", "score": "0.81646633", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::OK,\nself::PARTIALLY_NOT_FOUND,\nself::NO_ANY_RESULT_DATA,\nself::RESULT_DATA_LOST,\nself::TASK_NOT_FOUND,\nself::NOT_READY,\nself::ERROR, ];\n }", "title": "" }, { "docid": "0b045a33713a76c22166abd4571059fc", "score": "0.8155694", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::_NEW,\nself::RECEIVED,\nself::PLANNING,\nself::PROCESSING,\nself::CANCELLED,\nself::COMPLETE,\nself::COMPLETE_PARTIALLED,\nself::UNFULFILLABLE,\nself::INVALID, ];\n }", "title": "" }, { "docid": "a4d3279196940bcd34e757f271e6085e", "score": "0.8150858", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::SINGLE_PAGE,\n self::ONE_COLUMN,\n self::TWO_COLUMN_LEFT,\n self::TWO_COLUMN_RIGHT,\n self::TWO_PAGE_LEFT,\n self::TWO_PAGE_RIGHT,\n ];\n }", "title": "" }, { "docid": "db445789347f0412f8c367786a61ccc6", "score": "0.8150617", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::STICKY_NOTE,\n self::LINK,\n self::FREE_TEXT,\n self::LINE,\n self::SQUARE,\n self::CIRCLE,\n self::RUBBER_STAMP,\n ];\n }", "title": "" }, { "docid": "ea9f498a7848e2fc7e62f52e32fcb78d", "score": "0.8149588", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::WAIT,\n self::IN_PROGRESS,\n self::COMPLETED,\n self::CANCELED,\n self::FAILED,\n self::UNKNOWN,\n ];\n }", "title": "" }, { "docid": "fb33a78ec3e03984d7884479d58f9199", "score": "0.8137775", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::UNKNOWN,\n self::PENDING_TECHNICAL_VERIFICATION,\n self::PENDING_BANK_TRANSFER_CONFIRMATION,\n self::PENDING_MID_ISSUE_RESOLUTION,\n self::PENDING_SUSPICIOUS_REVIEW,\n self::DEFAULTED_IN_COLLECTION,\n self::DEFAULTED_PERMANENTLY,\n self::DEFAULTED_COLLECTED_FROM_MERCHANT,\n self::DEFAULTED_SPLITIT_LIABLE_PAIDTO_MERCHANT,\n self::DEFAULTED_CHARGEBACK_COLLECTED_FROM_MERCHANT,\n self::TOO_MANY_REAUTHS,\n ];\n }", "title": "" }, { "docid": "e96490d6590c41f784aedb31c7543e5e", "score": "0.8124383", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::IN_TRANSIT,\n self::DELIVERED,\n self::RETURNING,\n self::RETURNED,\n self::UNDELIVERABLE,\n self::DELAYED,\n self::AVAILABLE_FOR_PICKUP,\n self::CUSTOMER_ACTION,\n self::UNKNOWN,\n self::OUT_FOR_DELIVERY,\n self::DELIVERY_ATTEMPTED,\n self::PICKUP_SUCCESSFUL,\n self::PICKUP_CANCELLED,\n self::PICKUP_ATTEMPTED,\n self::PICKUP_SCHEDULED,\n self::RETURN_REQUEST_ACCEPTED,\n self::REFUND_ISSUED,\n self::RETURN_RECEIVED_IN_FC,\n ];\n }", "title": "" }, { "docid": "cd5443a580b22221ca5cd05e1188c8ba", "score": "0.8113653", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::SPLIT_BY_NUMBER_OF_PAGES,\n self::SPLIT_BY_FILE_SIZE,\n self::SPLIT_BY_TOP_LEVEL_BOOKMARKS,\n ];\n }", "title": "" }, { "docid": "495263ca56dc70e814912188917b2935", "score": "0.8087862", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::NEW_CORP_USER,\nself::NEW_ACCOUNT_INVITE,\nself::INCOME_ENVELOPE,\nself::SENT_ENVELOPE,\nself::ARCHIVE_ENVELOPE,\nself::UNARCHIVE_ENVELOPE,\nself::ACCOUNT_MAILBOX,\nself::DIG_SIGN_ENVELOPE,\nself::ACCOUNT_DOMAIN,\nself::INTEGRATION_RULE,\nself::ENVELOPE_SCENARIO,\nself::CLOUD_SIGNATURE,\nself::ENVELOPE_APPROVAL,\nself::PASSWORD_POLICY,\nself::CALLBACK_SENT, ];\n }", "title": "" }, { "docid": "a0a9b490b5829389f59976a2c36a600e", "score": "0.80791974", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::PENDING_SCHEDULE,\n self::PENDING_PICK_UP,\n self::PENDING_DROP_OFF,\n self::LABEL_CANCELED,\n self::PICKED_UP,\n self::DROPPED_OFF,\n self::AT_ORIGIN_FC,\n self::AT_DESTINATION_FC,\n self::DELIVERED,\n self::REJECTED_BY_BUYER,\n self::UNDELIVERABLE,\n self::RETURNING_TO_SELLER,\n self::RETURNED_TO_SELLER,\n self::LOST,\n self::OUT_FOR_DELIVERY,\n self::DAMAGED,\n ];\n }", "title": "" }, { "docid": "c5214d7c778552e13bcab524b19f9298", "score": "0.80682844", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::TERMS_AND_CONDITIONS,\n self::EMAIL_CONTENT,\n self::ERROR,\n self::EMAIL_TEMPLATE,\n self::ADMINISTRATION_POTRAL,\n self::RECEIPT,\n self::INSTALLMENT_PLAN_STATUS,\n self::INSTALLMENT_STATUS,\n self::PURCHASE_METHOD,\n self::OPERATION_TYPE,\n self::CARD_BRAND,\n self::PAYMENT_DETAILS,\n self::COMMON,\n self::V_POS,\n self::PAYMENT_TRANSACTION_SHOPPER_MESSAGE,\n self::TERMS_AND_CONDITIONS_LEGAL,\n self::ECOMM,\n self::SHOPPER_SPLITIT_ACCOUNT,\n self::SMS_CONTENT,\n self::POS,\n self::FLEX_FIELDS,\n self::MESSAGING_SYSTEM,\n self::PAYMENT_FORM_V3,\n self::HOW_SPLITIT_WORKS,\n self::UPSTREAM_MESSAGING,\n self::ONBOARDING,\n self::UPDATE_CARD_FORM,\n self::TERMS_AND_CONDITIONS_V2,\n ];\n }", "title": "" }, { "docid": "65a4d9dd62b54d5ddbe501cace5879ff", "score": "0.80327034", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::MULTI_CAP_FUND,\n self::LARGE_CAP_FUND,\n self::LARGE_AND_MID_CAP_FUND,\n self::MIDCAP_FUND,\n self::SMALL_CAP_FUND,\n self::DIVIDEND_YIELD_FUND,\n self::VALUE_FUND,\n self::CONTRA_FUND,\n self::FOCUSED_FUND,\n self::SECTORAL_OR_THEMATIC,\n self::ELSS,\n self::OVERNIGHT_FUND,\n self::LIQUID_FUND,\n self::ULTRA_SHORT_DURATION_FUND,\n self::LOW_DURATION_FUND,\n self::MONEY_MARKET_FUND,\n self::SHORT_DURATION_FUND,\n self::MEDIUM_DURATION_FUND,\n self::MEDIUM_TO_LONG_DURATION_FUND,\n self::LONG_DURATION_FUND,\n self::DYNAMIC_BOND,\n self::CORPORATE_BOND_FUND,\n self::CREDIT_RISK_FUND,\n self::BANKING_AND_PSU_FUND,\n self::GILT_FUND,\n self::GILT_FUND_WITH10_YEAR_CONSTANT_DURATION,\n self::FLOATER_FUND,\n self::CONSERVATIVE_HYBRID_FUND,\n self::BALANCED_HYBRID_FUND,\n self::AGGRESSIVE_HYBRID_FUND,\n self::DYNAMIC_ASSET_ALLOCATION_OR_BALANCED_ADVANTAGE,\n self::MULTI_ASSET_ALLOCATION,\n self::ARBITRAGE_FUND,\n self::EQUITY_SAVINGS,\n self::RETIREMENT_FUND,\n self::CHILDRENS_FUND,\n self::INDEX_FUNDS_OR_ETFS,\n self::FOFS_OVERSEAS_OR_DOMESTIC\n ];\n }", "title": "" }, { "docid": "53575a1e772a02a944fa68b2130075e7", "score": "0.8032254", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::FIVE_MINUTES,\n self::TEN_MINUTES,\n ];\n }", "title": "" }, { "docid": "acc2f3a5f788f6baee37798a21f6606d", "score": "0.8028859", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::PLAYABLE_TYPE_DEFAULT,\n self::PLAYABLE_TYPE_HOMEMADE_INTERACTION,\n self::PLAYABLE_TYPE_MINIGAME_INTERACTION,\n self::PLAYABLE_TYPE_VIDEO_INTERACTION,\n self::PLAYABLE_TYPE_WEBSITE_INTERACTION,\n self::PLAYABLE_TYPE_ZIP_INTERACTION,\n self::PLAYABLE_TYPE_COMPONENT_INTERACTION,\n self::NOT_INTERACT,\n self::INLINE,\n self::TEMPLATE_GAME,\n self::TEMPLATE_VIDEO,\n self::TEMPLATE_WEB,\n self::COMPRESSED_PACKAGE,\n ];\n }", "title": "" }, { "docid": "ae13f1502f5949956d10c06c3267ec9f", "score": "0.8019597", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::APPLE_PAY,\n self::GOOGLE_PAY,\n self::CREDIT_CARD,\n self::PAYSAFE_ISSUED_CARD_ID,\n self::BLUESNAP_VAULTED_SHOPPER_TOKEN,\n self::AUTHORIZE_NET_PROFILE_TOKEN,\n ];\n }", "title": "" }, { "docid": "5621ce1bca43613072b93b600ec3266e", "score": "0.80109084", "text": "public function getStatutAllowableValues()\n {\n return [\n self::STATUT_0,\n self::STATUT_1,\n self::STATUT_MINUS_1,\n ];\n }", "title": "" }, { "docid": "aeb31b51f270fbf3cbf7dbe8edc86a25", "score": "0.8010376", "text": "public function getAllowedValues();", "title": "" }, { "docid": "466b2d153f51259b178c70f3dc3d730b", "score": "0.79926497", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::HOKKAIDO,\n self::AOMORI,\n self::IWATE,\n self::MIYAGI,\n self::AKITA,\n self::YAMAGATA,\n self::FUKUSHIMA,\n self::IBARAKI,\n self::TOCHIGI,\n self::GUNMA,\n self::SAITAMA,\n self::CHIBA,\n self::TOKYO,\n self::KANAGAWA,\n self::NIIGATA,\n self::TOYAMA,\n self::ISHIKAWA,\n self::FUKUI,\n self::YAMANASHI,\n self::NAGANO,\n self::GIFU,\n self::SHIZUOKA,\n self::AICHI,\n self::MIE,\n self::SIGA,\n self::KYOTO,\n self::OSAKA,\n self::HYOGO,\n self::NARA,\n self::WAKAYAMA,\n self::TOTTORI,\n self::SHIMANE,\n self::OKAYAMA,\n self::HIROSHIMA,\n self::YAMAGUCHI,\n self::TOKUSHIMA,\n self::KAGAWA,\n self::EHIME,\n self::KOCHI,\n self::FUKUOKA,\n self::SAGA,\n self::NAGASAKI,\n self::KUMAMOTO,\n self::OITA,\n self::MIYAZAKI,\n self::KAGOSHIMA,\n self::OKINAWA,\n self::NONE,\n self::UNKNOWN,\n ];\n }", "title": "" }, { "docid": "00a55c25477084d6b13bb99023be312e", "score": "0.79877186", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::MONTHLY,\n self::YEARLY\n ];\n }", "title": "" }, { "docid": "4be3a0c02e7b872ee1f664439f01d8f4", "score": "0.79839635", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::DETACHED_HOUSE,\n self::LINKED_HOUSE,\n self::SEMI_DETACHED_HOUSE_ONE_ROOF,\n self::ROW_HOUSE_MIDDLE,\n self::ROW_HOUSE_CORNER,\n self::ROW_HOUSE_END,\n self::SEMI_DETACHED_HOUSE,\n self::SEMI_DETACHED_LINKED_HOUSE_ONE_ROOF,\n self::OFFSET_HOUSE,\n ];\n }", "title": "" }, { "docid": "9853ec91607565c719cb3f804ee607cf", "score": "0.79768753", "text": "public static function getAllowableEnumValues() : array\n {\n return [\n self::FIVE_MINUTES,\n self::TEN_MINUTES,\n ];\n }", "title": "" }, { "docid": "9d3aec7e2e400b9d75b825063aaff83e", "score": "0.7952785", "text": "public static function getAllowableEnumValues()\n {\n $baseVals = [\n self::FED_EX_BOX_10KG,\n self::FED_EX_BOX_25KG,\n self::FED_EX_BOX_EXTRA_LARGE_1,\n self::FED_EX_BOX_EXTRA_LARGE_2,\n self::FED_EX_BOX_LARGE_1,\n self::FED_EX_BOX_LARGE_2,\n self::FED_EX_BOX_MEDIUM_1,\n self::FED_EX_BOX_MEDIUM_2,\n self::FED_EX_BOX_SMALL_1,\n self::FED_EX_BOX_SMALL_2,\n self::FED_EX_ENVELOPE,\n self::FED_EX_PADDED_PAK,\n self::FED_EX_PAK_1,\n self::FED_EX_PAK_2,\n self::FED_EX_TUBE,\n self::FED_EX_XL_PAK,\n self::UPS_BOX_10KG,\n self::UPS_BOX_25KG,\n self::UPS_EXPRESS_BOX,\n self::UPS_EXPRESS_BOX_LARGE,\n self::UPS_EXPRESS_BOX_MEDIUM,\n self::UPS_EXPRESS_BOX_SMALL,\n self::UPS_EXPRESS_ENVELOPE,\n self::UPS_EXPRESS_HARD_PAK,\n self::UPS_EXPRESS_LEGAL_ENVELOPE,\n self::UPS_EXPRESS_PAK,\n self::UPS_EXPRESS_TUBE,\n self::UPS_LABORATORY_PAK,\n self::UPS_PAD_PAK,\n self::UPS_PALLET,\n self::USPS_CARD,\n self::USPS_FLAT,\n self::USPS_FLAT_RATE_CARDBOARD_ENVELOPE,\n self::USPS_FLAT_RATE_ENVELOPE,\n self::USPS_FLAT_RATE_GIFT_CARD_ENVELOPE,\n self::USPS_FLAT_RATE_LEGAL_ENVELOPE,\n self::USPS_FLAT_RATE_PADDED_ENVELOPE,\n self::USPS_FLAT_RATE_WINDOW_ENVELOPE,\n self::USPS_LARGE_FLAT_RATE_BOARD_GAME_BOX,\n self::USPS_LARGE_FLAT_RATE_BOX,\n self::USPS_LETTER,\n self::USPS_MEDIUM_FLAT_RATE_BOX1,\n self::USPS_MEDIUM_FLAT_RATE_BOX2,\n self::USPS_REGIONAL_RATE_BOX_A1,\n self::USPS_REGIONAL_RATE_BOX_A2,\n self::USPS_REGIONAL_RATE_BOX_B1,\n self::USPS_REGIONAL_RATE_BOX_B2,\n self::USPS_REGIONAL_RATE_BOX_C,\n self::USPS_SMALL_FLAT_RATE_BOX,\n self::USPS_SMALL_FLAT_RATE_ENVELOPE,\n ];\n // This is necessary because Amazon does not consistently capitalize their\n // enum values, so we do case-insensitive enum value validation in ObjectSerializer\n $ucVals = array_map(function ($val) { return strtoupper($val); }, $baseVals);\n return array_merge($baseVals, $ucVals);\n }", "title": "" }, { "docid": "b15d1b65d16b8a16746cd133cf32f6ef", "score": "0.79178995", "text": "public static function getAllowedValues()\n {\n $class = new ReflectionClass(get_called_class());\n return $class->getConstants();\n }", "title": "" }, { "docid": "268e08900aa6b79fd1bf1ddd5429186d", "score": "0.7888296", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::CREATE,\n self::UPDATE,\n self::UPDATE_OWNER_CHANGE,\n self::UPDATE_DNSSEC,\n self::UPDATE_NAMESERVER,\n self::DELETE,\n self::TRANSIT,\n self::TRANSFER,\n self::TRANSFER_INTERN,\n self::TRANSFER_INTERN_REGISTRAR_CHANGE,\n self::TRANSFER_INTERN_REGISTRAR_CHANGE_RUNTIME_TAKEOVER,\n self::IMPORT,\n self::MIGRATE,\n self::RESTORE,\n self::RESTORE_NE,\n self::RESTORE_RENEW,\n self::RESTORE_ARGP,\n self::RENEW,\n self::AUTHINFO,\n self::AUTHINFO_2,\n self::UPDATE_STATUS,\n self::REGISTRAR_UPDATE_STATUS,\n self::UPDATE_COMMENT,\n self::AUTOUPDATE_DNS,\n self::AUTOUPDATE_DNSSEC,\n self::OWNERCHANGE,\n self::OWNERCHANGE_TRANSFER,\n self::OWNERCHANGE_TRANSFER_INTERN,\n self::OWNERCHANGE_TRANSFER_INTERN_REGISTRAR_CHANGE,\n self::PREACK,\n self::WHOIS_REGISTRY_STATUS,\n self::DOMAIN_AWAY,\n self::TRANSFER_OUT_AUTOACK,\n self::DROP,\n self::AUTHINFO_CREATE,\n self::AUTHINFO_DELETE,\n self::AUTOUPDATE_DEFERRED,\n self::DOMAIN_BUY,\n self::CONTACT_CREATE,\n ];\n }", "title": "" }, { "docid": "0dd62db098661cc6bf8543c6c587ec50", "score": "0.7884906", "text": "public function getValueAllowableValues()\n {\n return [\n self::VALUE_NOT_SPECIFIED,\n self::VALUE_AD,\n self::VALUE_AE,\n self::VALUE_AF,\n self::VALUE_AG,\n self::VALUE_AI,\n self::VALUE_AL,\n self::VALUE_AM,\n self::VALUE_AO,\n self::VALUE_AQ,\n self::VALUE_AR,\n self::VALUE__AS,\n self::VALUE_AT,\n self::VALUE_AU,\n self::VALUE_AW,\n self::VALUE_AX,\n self::VALUE_AZ,\n self::VALUE_BA,\n self::VALUE_BB,\n self::VALUE_BD,\n self::VALUE_BE,\n self::VALUE_BF,\n self::VALUE_BG,\n self::VALUE_BH,\n self::VALUE_BI,\n self::VALUE_BJ,\n self::VALUE_BL,\n self::VALUE_BM,\n self::VALUE_BN,\n self::VALUE_BO,\n self::VALUE_BQ,\n self::VALUE_BR,\n self::VALUE_BS,\n self::VALUE_BT,\n self::VALUE_BV,\n self::VALUE_BW,\n self::VALUE_BY,\n self::VALUE_BZ,\n self::VALUE_CA,\n self::VALUE_CC,\n self::VALUE_CD,\n self::VALUE_CF,\n self::VALUE_CG,\n self::VALUE_CH,\n self::VALUE_CI,\n self::VALUE_CK,\n self::VALUE_CL,\n self::VALUE_CM,\n self::VALUE_CN,\n self::VALUE_CO,\n self::VALUE_CR,\n self::VALUE_CU,\n self::VALUE_CV,\n self::VALUE_CW,\n self::VALUE_CX,\n self::VALUE_CY,\n self::VALUE_CZ,\n self::VALUE_DE,\n self::VALUE_DJ,\n self::VALUE_DK,\n self::VALUE_DM,\n self::VALUE__DO,\n self::VALUE_DZ,\n self::VALUE_EC,\n self::VALUE_EE,\n self::VALUE_EG,\n self::VALUE_EH,\n self::VALUE_ER,\n self::VALUE_ES,\n self::VALUE_ET,\n self::VALUE_FI,\n self::VALUE_FJ,\n self::VALUE_FK,\n self::VALUE_FM,\n self::VALUE_FO,\n self::VALUE_FR,\n self::VALUE_GA,\n self::VALUE_GB,\n self::VALUE_GD,\n self::VALUE_GE,\n self::VALUE_GF,\n self::VALUE_GG,\n self::VALUE_GH,\n self::VALUE_GI,\n self::VALUE_GL,\n self::VALUE_GM,\n self::VALUE_GN,\n self::VALUE_GP,\n self::VALUE_GQ,\n self::VALUE_GR,\n self::VALUE_GS,\n self::VALUE_GT,\n self::VALUE_GU,\n self::VALUE_GW,\n self::VALUE_GY,\n self::VALUE_HK,\n self::VALUE_HM,\n self::VALUE_HN,\n self::VALUE_HR,\n self::VALUE_HT,\n self::VALUE_HU,\n self::VALUE_ID,\n self::VALUE_IE,\n self::VALUE_IL,\n self::VALUE_IM,\n self::VALUE_IN,\n self::VALUE_IO,\n self::VALUE_IQ,\n self::VALUE_IR,\n self::VALUE_IS,\n self::VALUE_IT,\n self::VALUE_JE,\n self::VALUE_JM,\n self::VALUE_JO,\n self::VALUE_JP,\n self::VALUE_KE,\n self::VALUE_KG,\n self::VALUE_KH,\n self::VALUE_KI,\n self::VALUE_KM,\n self::VALUE_KN,\n self::VALUE_KP,\n self::VALUE_KR,\n self::VALUE_KW,\n self::VALUE_KY,\n self::VALUE_KZ,\n self::VALUE_LA,\n self::VALUE_LB,\n self::VALUE_LC,\n self::VALUE_LI,\n self::VALUE_LK,\n self::VALUE_LR,\n self::VALUE_LS,\n self::VALUE_LT,\n self::VALUE_LU,\n self::VALUE_LV,\n self::VALUE_LY,\n self::VALUE_MA,\n self::VALUE_MC,\n self::VALUE_MD,\n self::VALUE_ME,\n self::VALUE_MF,\n self::VALUE_MG,\n self::VALUE_MH,\n self::VALUE_MK,\n self::VALUE_ML,\n self::VALUE_MM,\n self::VALUE_MN,\n self::VALUE_MO,\n self::VALUE_MP,\n self::VALUE_MQ,\n self::VALUE_MR,\n self::VALUE_MS,\n self::VALUE_MT,\n self::VALUE_MU,\n self::VALUE_MV,\n self::VALUE_MW,\n self::VALUE_MX,\n self::VALUE_MY,\n self::VALUE_MZ,\n self::VALUE_NA,\n self::VALUE_NC,\n self::VALUE_NE,\n self::VALUE_NF,\n self::VALUE_NG,\n self::VALUE_NI,\n self::VALUE_NL,\n self::VALUE_NO,\n self::VALUE_NP,\n self::VALUE_NR,\n self::VALUE_NU,\n self::VALUE_NZ,\n self::VALUE_OM,\n self::VALUE_PA,\n self::VALUE_PE,\n self::VALUE_PF,\n self::VALUE_PG,\n self::VALUE_PH,\n self::VALUE_PK,\n self::VALUE_PL,\n self::VALUE_PM,\n self::VALUE_PN,\n self::VALUE_PR,\n self::VALUE_PS,\n self::VALUE_PT,\n self::VALUE_PW,\n self::VALUE_PY,\n self::VALUE_QA,\n self::VALUE_RE,\n self::VALUE_RO,\n self::VALUE_RS,\n self::VALUE_RU,\n self::VALUE_RW,\n self::VALUE_SA,\n self::VALUE_SB,\n self::VALUE_SC,\n self::VALUE_SD,\n self::VALUE_SE,\n self::VALUE_SG,\n self::VALUE_SH,\n self::VALUE_SI,\n self::VALUE_SJ,\n self::VALUE_SK,\n self::VALUE_SL,\n self::VALUE_SM,\n self::VALUE_SN,\n self::VALUE_SO,\n self::VALUE_SR,\n self::VALUE_SS,\n self::VALUE_ST,\n self::VALUE_SV,\n self::VALUE_SX,\n self::VALUE_SY,\n self::VALUE_SZ,\n self::VALUE_TC,\n self::VALUE_TD,\n self::VALUE_TF,\n self::VALUE_TG,\n self::VALUE_TH,\n self::VALUE_TJ,\n self::VALUE_TK,\n self::VALUE_TL,\n self::VALUE_TM,\n self::VALUE_TN,\n self::VALUE_TO,\n self::VALUE_TR,\n self::VALUE_TT,\n self::VALUE_TV,\n self::VALUE_TW,\n self::VALUE_TZ,\n self::VALUE_UA,\n self::VALUE_UG,\n self::VALUE_UM,\n self::VALUE_US,\n self::VALUE_UY,\n self::VALUE_UZ,\n self::VALUE_VA,\n self::VALUE_VC,\n self::VALUE_VE,\n self::VALUE_VG,\n self::VALUE_VI,\n self::VALUE_VN,\n self::VALUE_VU,\n self::VALUE_WF,\n self::VALUE_WS,\n self::VALUE_YE,\n self::VALUE_YT,\n self::VALUE_ZA,\n self::VALUE_ZM,\n self::VALUE_ZW,\n ];\n }", "title": "" }, { "docid": "046754dce96ad79a400f08f0ba4df423", "score": "0.7882913", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::DESTINY_TALENT_NODE_STATE_INVALID,\n self::DESTINY_TALENT_NODE_STATE_CANUPGRADE,\n self::DESTINY_TALENT_NODE_STATE_NOPOINTS,\n self::DESTINY_TALENT_NODE_STATE_NOPREREQUISITES,\n self::DESTINY_TALENT_NODE_STATE_NOSTEPS,\n self::DESTINY_TALENT_NODE_STATE_NOUNLOCK,\n self::DESTINY_TALENT_NODE_STATE_NOMATERIAL,\n self::DESTINY_TALENT_NODE_STATE_NOGRIDLEVEL,\n self::DESTINY_TALENT_NODE_STATE_SWAPPINGLOCKED,\n self::DESTINY_TALENT_NODE_STATE_MUSTSWAP,\n self::DESTINY_TALENT_NODE_STATE_COMPLETE,\n self::DESTINY_TALENT_NODE_STATE_UNKNOWN,\n self::DESTINY_TALENT_NODE_STATE_CREATIONONLY,\n self::DESTINY_TALENT_NODE_STATE_HIDDEN,\n ];\n }", "title": "" }, { "docid": "016714236f6dbbc5e26b775cf5466873", "score": "0.7876516", "text": "public function getAllowedValues()\n {\n return $this->allowed_values;\n }", "title": "" }, { "docid": "31c93ec3da4eee08c4f6efe04f9c6593", "score": "0.7855455", "text": "public function getAvailabilityAllowableValues()\n {\n return [\n self::AVAILABILITY__PUBLIC,\n self::AVAILABILITY_PERSONAL,\n self::AVAILABILITY_CORPORATION,\n self::AVAILABILITY_ALLIANCE,\n ];\n }", "title": "" }, { "docid": "307cc3a1f9f1dfa12a60190c474fc9a4", "score": "0.7852343", "text": "public function getStatusAllowableValues()\n {\n return [\n self::STATUS_Q,\n self::STATUS_S,\n self::STATUS_E,\n self::STATUS_R,\n self::STATUS_A,\n self::STATUS_D,\n self::STATUS_B,\n self::STATUS_F,\n self::STATUS_U,\n self::STATUS_J,\n self::STATUS_I,\n self::STATUS_P,\n self::STATUS_H,\n ];\n }", "title": "" }, { "docid": "ce5cdeae2dc39c424de545c0e67b1f2f", "score": "0.7823199", "text": "public function getStatusAllowableValues()\r\n {\r\n return [\r\n self::STATUS_ENABLED,\r\n self::STATUS_DISABLED,\r\n ];\r\n }", "title": "" }, { "docid": "0a3e8c041ae6b93779ffd6634cbc6cdc", "score": "0.78160495", "text": "public function getAllowedValues(): array;", "title": "" }, { "docid": "41c5bddd70eea6f92e130ab743ed2475", "score": "0.7783276", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::PERSONAL,\n self::AGRICULTURE_AND_HUNTING,\n self::FORESTRY,\n self::FISHING,\n self::AGRICULTURAL_BY_PRODUCTS,\n self::COAL_MINING,\n self::OIL_MINING,\n self::IRON_ORE_MINING,\n self::OTHER_METAL_AND_DIAMOND_MINING,\n self::OTHER_MINERAL_MINING,\n self::MANUFACTURING_OF_FOOD_DRINK_TOBACCO,\n self::MANUFACTURING_OF_TEXTILES_LEATHER_FUR_FURNITURE,\n self::MANUFACTURE_OF_WOODEN_PRODUCTS_FURNITURE,\n self::MANUFACTURE_OF_PAPER_PULP_ALLIED_PRODUCTS,\n self::MANUFACTURE_OF_CHEMICALS_MEDICAL_PETROLEUM_RUBBER_PLASTIC_PRODUCTS,\n self::MANUFACTURE_OF_POTTERY_CHINA_GLASS_STONE,\n self::MANUFACTURE_OF_IRON_STEEL_NON_FERROUS_METALS_BASIC_INDUSTRIES,\n self::MANUFACTURE_OF_METAL_PRODUCTS_ELECTRICAL_AND_SCIENTIFIC_ENGINEERING,\n self::MANUFACTURE_OF_JEWELRY_MUSICAL_INSTRUMENTS_TOYS,\n self::ELECTRICITY_GAS_AND_WATER,\n self::CONSTRUCTION,\n self::WHOLESALE_TRADE,\n self::RETAIL_TRADE,\n self::CATERING_INCL_HOTELS,\n self::TRANSPORT_STORAGE,\n self::COMMUNICATIONS,\n self::FINANCE_AND_HOLDING_COMPANIES,\n self::INSURANCE,\n self::BUSINESS_SERVICES,\n self::REAL_ESTATE_DEVELOPMENT_INVESTMENT,\n self::CENTRAL_STATE_GOVERNMENTS,\n self::COMMUNITY_SERVICES_DEFENCE_POLICE_PRISONS_ETC,\n self::SOCIAL_SERVICES_EDUCATION_HEALTH_CARE,\n self::PERSONAL_SERVICES_LEISURE_SERVICES,\n self::PERSONAL_SERVICES_DOMESTIC_LAUNDRY_REPAIRS,\n self::PERSONAL_SERVICES_EMBASSIES_INTERNATIONAL_ORGANISATIONS,\n ];\n }", "title": "" }, { "docid": "1dbd4c4bfaa9bc3057e30f25fb4702d6", "score": "0.77790576", "text": "public static function getAllowableEnumValues()\n {\n return [\n self::GET,\n self::PUT,\n self::PATCH,\n self::DELETE,\n self::POST,\n ];\n }", "title": "" }, { "docid": "6f7233c33e16529e0eb89b096a0b284f", "score": "0.7772502", "text": "public function getTypeAllowableValues()\n {\n return [\n self::TYPE_NORMAL,\n self::TYPE_CORRECTION,\n self::TYPE_NORMAL_CORRECTED,\n ];\n }", "title": "" }, { "docid": "4a695363f62a79ea4968817d5a56e6f3", "score": "0.77694416", "text": "public function getStatusAllowableValues()\n {\n return [\n self::STATUS_0,\n self::STATUS_2,\n ];\n }", "title": "" }, { "docid": "454ad85720fe5c82de04b87ed4adb27d", "score": "0.7751674", "text": "public function getStatusAllowableValues()\n {\n return [\n self::STATUS_0,\nself::STATUS_1, ];\n }", "title": "" } ]
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "3e32d2546078ec58546cbba4f9d5001a", "score": "0.0", "text": "public function update(Request $request, Gallery $gallery)\n {\n $request->validate([\n 'name' => 'required|unique:galleries,name,' . $gallery->id\n ]);\n $gallery->update($request->all() + ['slug' => $request->name]);\n return redirect()->route('backend.galleries.index')->with('success', 'Galeri berhasil diubah');\n }", "title": "" } ]
[ { "docid": "ae90a700efd6cf3cd7c51c1c4442503a", "score": "0.7661754", "text": "public function update(ResourceInterface $resource);", "title": "" }, { "docid": "d6a508508d13bb02f2a247e9bf196f78", "score": "0.7191381", "text": "function update ( $id, $resource ) {\r\n\r\n }", "title": "" }, { "docid": "8466495927f3bd478b5fd2d917f45f08", "score": "0.7101928", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.7058482", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "9a55d4f96f94897978c13d34337c1901", "score": "0.681135", "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.65258604", "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.6424797", "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.6417207", "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.62960845", "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.626154", "text": "public function updateStream($path, $resource, $config = null);", "title": "" }, { "docid": "35958bbf8b0dca0d5dcadddf00962ef1", "score": "0.6195548", "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.6177455", "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.6150961", "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.61176455", "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.6036168", "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.60158324", "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.59705585", "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.5956576", "text": "public function put(Storage $storage);", "title": "" }, { "docid": "215d42ed153b26bc9b49ae5c5951d499", "score": "0.59545153", "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.59404755", "text": "public function update(RespondentStoreRequest $request, $id)\n {}", "title": "" }, { "docid": "b96bbe109f16f366cfd72892d0d0be64", "score": "0.59065044", "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.5893692", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "99960e81f0d443f90e5e0aa954abd481", "score": "0.58884716", "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": "f78906153226222ee5bdfc9d13a06d23", "score": "0.5885248", "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": "a516665e3766b23c94ab33c5940aab8d", "score": "0.58767045", "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.58495665", "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.5798071", "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.5787495", "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.5786304", "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.5761563", "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.5754183", "text": "public function update($entity);", "title": "" }, { "docid": "eaf18f66946228a152f8b83c6b49e31e", "score": "0.5749277", "text": "public function update($id, $data) {}", "title": "" }, { "docid": "ab7c78237c36ea0911a0a7aba52fe065", "score": "0.57237625", "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.5719954", "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.5673924", "text": "public function put($data);", "title": "" }, { "docid": "dd89d251e44d4f4288498c4f3fcdbd27", "score": "0.5670424", "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.5668186", "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.5659615", "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.564327", "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.5624916", "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.5617513", "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.5611408", "text": "public function update(Request $request, Memory $memory)\n {\n \n }", "title": "" }, { "docid": "28ac32d59483ead96eb99c3920d2d977", "score": "0.5601691", "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.55993634", "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.5593248", "text": "public function update(StoreQuestion $request, Question $question)\n {}", "title": "" }, { "docid": "5583a1a1065b5e63099c0ebbfcc38083", "score": "0.5587116", "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.55840373", "text": "public function update($request, $id);", "title": "" }, { "docid": "15b871253c843a97a53c3d5984ec74b9", "score": "0.5576306", "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": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.5568501", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "d30de7511ec7de74e32f94e01d31fafe", "score": "0.55676216", "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": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.5562276", "text": "public function update($id, $data);", "title": "" }, { "docid": "8f8dacf3ca2fb2c9044973cfcebc7c92", "score": "0.55571604", "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.5548551", "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.5546104", "text": "public function update(Request $request, Restify $restify)\n {\n //\n }", "title": "" }, { "docid": "4c0ab51ecbeaff3788498a88d8e05dde", "score": "0.5541675", "text": "public function update($id) {\n \n }", "title": "" }, { "docid": "45a4f9a4a649b70b7c4d70ad32264661", "score": "0.5531541", "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": "66139d48c34ab92a5f49f5d92e5064cc", "score": "0.553154", "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": "0b10222182779f95692d101f822f75b6", "score": "0.5529632", "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.55288976", "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.55241334", "text": "public function updateFilepath(){\n if(!empty($this->originalResource)){\n $this->setFilepath($this->getOriginalResource()->getIdentifier());\n }\n }", "title": "" }, { "docid": "c2ba30e945f68db8e69ec9299a2bf860", "score": "0.5522217", "text": "public function setResource($resource){\n $this->resource = $resource;\n }", "title": "" }, { "docid": "66fbae8975fea1c3ac6a3142735e3664", "score": "0.5512871", "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.55101085", "text": "public function update($id, $input);", "title": "" }, { "docid": "70d4983ca950042ec52182066262a01f", "score": "0.55073166", "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": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.5497986", "text": "public function update($id);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.5497986", "text": "public function update($id);", "title": "" }, { "docid": "5ec7d4d96d210f32e09b80058c55a490", "score": "0.54977214", "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.5497182", "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": "012a18ea3549362ce2727f6242b46f5a", "score": "0.54971087", "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.549701", "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": "a1981e95d8e1e839e57300bff0e83269", "score": "0.5495683", "text": "abstract public function update_storage_site();", "title": "" }, { "docid": "96e3e53de207d1c0165b2f8d9b2e8bd8", "score": "0.54943216", "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.54938877", "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.5491149", "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.5489137", "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.54802996", "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.54799837", "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.54679203", "text": "public function update($request);", "title": "" }, { "docid": "9080726c97000b95123e3a3548679cb5", "score": "0.54671603", "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": "2840f4acb2ccb4170d4557d937e25de4", "score": "0.54670465", "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": "a1d61f0aa122378fb9049378295f5945", "score": "0.5460327", "text": "public function update($entity)\n {\n }", "title": "" }, { "docid": "a1d61f0aa122378fb9049378295f5945", "score": "0.5460327", "text": "public function update($entity)\n {\n }", "title": "" }, { "docid": "a1d61f0aa122378fb9049378295f5945", "score": "0.5460327", "text": "public function update($entity)\n {\n }", "title": "" }, { "docid": "536db9f9519d6601d2b49cdcde95f013", "score": "0.5460209", "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": "5f36cdc3217c7c251089de9b1597e8a0", "score": "0.54582703", "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": "19323452d4f8b1e3cc766b966234512d", "score": "0.54567385", "text": "public function update($obj) {\n }", "title": "" }, { "docid": "db3837780a308513dc99c922897e898e", "score": "0.54566914", "text": "public function update()\n {\n $this->delete();\n $this->save();\n }", "title": "" }, { "docid": "8f4a12a4a3962d1da8617ab2c1add338", "score": "0.545605", "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": "236d64bd92646776ec0d62483983f6b1", "score": "0.54454666", "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.5437407", "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": "a4ae1c30e150f5cf694572b68551bd23", "score": "0.54275477", "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": "4da53910fe95b40fc7708d69a5bc4caf", "score": "0.5427421", "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": "78c9828cfb522a8b15c9e25aecac3a44", "score": "0.542669", "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.5425335", "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": "f08541062169cb53c21e52b58cdb2dcd", "score": "0.54220396", "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.54195374", "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.54191333", "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": "83fd3d73dd82fcaecb92e078c534bdfe", "score": "0.5418037", "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.54164815", "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": "9909c434dfa1fa2de013b52dc098057a", "score": "0.541571", "text": "public function updateProduct();", "title": "" }, { "docid": "2c82b92608f8fd2fb8081571b4164837", "score": "0.5408165", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->name;\n $product->price = $request->price;\n $product->stock = $request->stock;\n $product->brand_id = $request->brand_id;\n $product->categorie_id = $request->categorie_id;\n $product->description = $request->description;\n $product->photopath_slot1 = $request->photopath_slot1;\n\n $product->save();\n return redirect('/shop/' .$id);\n \n }", "title": "" } ]
e3e34f80c3976528ea3cf5e084e7f733
Create a new AccountController instance.
[ { "docid": "b3536abc52353f7963b68df8fcbdb4a7", "score": "0.0", "text": "public function __construct(AccountService $accountService)\n {\n $this->accountService = $accountService;\n }", "title": "" } ]
[ { "docid": "53332fdc8fca23ea41915f9df633ca0f", "score": "0.6571645", "text": "protected function registerAccountController()\n {\n $this->app->bind('GrahamCampbell\\Credentials\\Controllers\\AccountController', function ($app) {\n $credentials = $app['credentials'];\n\n return new Controllers\\AccountController($credentials);\n });\n }", "title": "" }, { "docid": "cbb87b03efaebaab5c70e9bfa55ecc49", "score": "0.6534444", "text": "protected function createController()\n {\n $options = [\n 'name' => $this->getNameInput() . 'Controller',\n ];\n\n if ($this->option('resource')) {\n $options = array_merge($options, [\n '--service' => sprintf(\n 'App/%s/%sService', config('app-ext.file_path.services'), $this->getNameInput()\n ),\n '--resource' => true,\n ]);\n }\n\n $this->call('make:controller', $options);\n }", "title": "" }, { "docid": "cc1309ede5eca4d65a230aac0bfa063b", "score": "0.63273823", "text": "public function store(AccountRequest $request)\n {\n return new AccountResource(Auth::user()->accounts()->create($request->all()));\n }", "title": "" }, { "docid": "a75a3263384d109214962fa120475d1c", "score": "0.6277656", "text": "public function createController() {\n\t\treturn ControllerFactory::create(static::$customUrl[0], static::$customUrl[1]);\n\t}", "title": "" }, { "docid": "60c9a66a5131551b1c2e076844e92bc3", "score": "0.6241855", "text": "public function createController()\n {\n // Get the controller name requested.\n $controllerName = UrlParser::getInstance()->getController();\n\n // Require the proper controller.\n require CONTROLLER_PATH . $controllerName . \".controller.php\";\n\n // Create the proper class name.\n $className = ucfirst($controllerName);\n $className .= \"Controller\";\n\n // Create the controller.\n $this->controller = new $className();\n }", "title": "" }, { "docid": "518248d20f0b646057db72021744e6ea", "score": "0.6225485", "text": "protected function createController()\n {\n $controller = Str::studly(class_basename($this->option('name')));\n\n $modelName = $this->qualifyClass($this->getNameInput());\n\n $this->call('make:controller', [\n 'name' => \"{$controller}Controller\",\n 'model' => $this->option('resource') ? $modelName : null,\n //'resource' => $this->option('resource') ? true : null,\n //'force' => $this->option('force'),\n ]);\n }", "title": "" }, { "docid": "d3e9524289f37ade1f95b8d3ae9c9450", "score": "0.61742234", "text": "public function createAccount()\n {\n $result = $this->request('createAccount');\n\n return new Wallet($result);\n }", "title": "" }, { "docid": "8fc472ca59d683f1b71ce35c8d9cd840", "score": "0.6156649", "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('make:controller', [\n 'name' => \"{$controller}Controller\",\n '--model' => $this->option('resource') ? $modelName : null,\n ]);\n }", "title": "" }, { "docid": "16bd5cfce1b2032161c5bc016391841e", "score": "0.6024897", "text": "public function create()\n {\n //\n return view('account');\n }", "title": "" }, { "docid": "b33597b9f2ff3f2571048652aee6d1b4", "score": "0.6021759", "text": "public function create()\n {\n $credentials = Credential::where('status', '=', 'unused')->get();\n $accounts = Account::where('type', '=', 'bank')->get();\n //return response()->json([$credentials, $accounts]);\n return view('accounts/create')->with(compact('credentials', 'accounts'));\n }", "title": "" }, { "docid": "6120e656d95c040d8e6042d47076f728", "score": "0.59754014", "text": "public function createAccount()\n {\n return view(\"front.create-account\");\n }", "title": "" }, { "docid": "8ec03580f30e487ac71634519320878d", "score": "0.5941791", "text": "public function create_account()\n {\n //validate the request\n $this->validate($this->request, [\n 'title' => 'required|string|max:255',\n 'type_id' => 'required|int|min:1',\n 'bank_name' => 'string|max:255',\n 'account_number' => 'string|max:255',\n 'sort_code' => 'string|max:255',\n 'status' => 'int|min:0|max:1',\n 'club_id' => 'int|exists:club,club_id'\n ]);\n\n $club_id = isset($this->request['club_id']) ? $this->request['club_id'] : $this->club_id;\n\n //check if current user is allowed to make changes\n $is_allowed = gr_check_if_allowed($club_id, $this->franchise_id, $this->club_id);\n if (empty($is_allowed)) {\n return response()->json(get_denied_message(), 403);\n }\n\n $account = new Account;\n $account->franchise_id = $this->franchise_id;\n $account->club_id = $club_id;\n $account->title = $this->request['title'];\n $account->type_id = $this->request['type_id'];\n $account->bank_name = isset($this->request['bank_name']) ? $this->request['bank_name'] : NULL;\n $account->account_number = isset($this->request['account_number']) ? $this->request['account_number'] : NULL;\n $account->sort_code = isset($this->request['sort_code']) ? $this->request['sort_code'] : NULL;\n $account->created_by = $this->user_id;\n $account->updated_by = $this->user_id;\n $account->status = isset($this->request['status']) ? $this->request['status'] : 1; //active by default\n $account->save();\n\n return response()->json($account, 200);\n }", "title": "" }, { "docid": "80d05f5a25356c655a0c433f5fd4965a", "score": "0.5931519", "text": "public function create(Request $request){\n $account = new Account;\n $account->name = $request->input('name');\n $account->balance = $request->input('balance');\n\n $user = $request->user();\n\n $user->accounts()->save($account);\n\n return $account;\n }", "title": "" }, { "docid": "2aefd1f9db9421abab28170415fb3cd6", "score": "0.5911662", "text": "function create_custom_ac(){\n \n $acct = \\Stripe\\Account::create(array(\n \"country\" => \"US\",\n \"type\" => \"custom\"\n ));\n return $acct;\n }", "title": "" }, { "docid": "0d4822a90d8cc13b4ccb0c2af5916bed", "score": "0.5839146", "text": "public function create(Account $account)\n {\n $user = User::find(Auth::id());\n if ($account->user_id === $user->id) {\n return view('transaction-create', [\n 'account' => $account,\n 'userAccounts' => $user->accounts()->get()->except($account->id)\n ]);\n }\n return redirect()->route('dashboard');\n }", "title": "" }, { "docid": "353152657107c0554e4ebe7fc9a0eb74", "score": "0.5802464", "text": "public abstract function createApiController();", "title": "" }, { "docid": "3b06478ce1f5bd635a4cf5073fa6dd98", "score": "0.5787736", "text": "public function create()\n {\n $clients = Client::all();\n return view('account.create', ['clients' => $clients]);\n }", "title": "" }, { "docid": "9744af1d18541db13a62ce575fd91296", "score": "0.57750905", "text": "public function create()\n {\n return view('backend.add-account');\n }", "title": "" }, { "docid": "b7e0bb6376558b0a18326d096ca80f20", "score": "0.5768913", "text": "public function create(StoreAccountRequest $request)\n {\n return new CreateResponse('focus.accounts.create');\n }", "title": "" }, { "docid": "30b8a61be60b12397bc4d3e81b476222", "score": "0.5766016", "text": "public function instantiateController() {\n $controller = ControllerSchema::controllerNamespace($this->controller);\n return strlen($this->controller) > 0 ? (new $controller()) : new \\framework\\controllers\\Controller();\n }", "title": "" }, { "docid": "d6b33d0f53a170bf5ba022e7e6d57e92", "score": "0.57394785", "text": "public function create($bankAccountId)\n\t{\n\t\treturn $this->createResource(sprintf('/%s/%s/%s/%s', ZoopResource::VERSION, sprintf(self::PATH_ACCOUNT, $this->zoop->getMarketplaceId()), $bankAccountId, self::PATH));\n\t}", "title": "" }, { "docid": "4f59646f7ae77b33128e228b5bdc6345", "score": "0.5735122", "text": "public function create()\n {\n return view('accounts.create');\n }", "title": "" }, { "docid": "4f59646f7ae77b33128e228b5bdc6345", "score": "0.5735122", "text": "public function create()\n {\n return view('accounts.create');\n }", "title": "" }, { "docid": "4830bc3b47f39e50fa4cb16c34a2ee57", "score": "0.5733062", "text": "public function create()\n {\n\n return view('backend.account.create');\n }", "title": "" }, { "docid": "f6d51b8aaa9590469a50f9dccd1fe950", "score": "0.5729243", "text": "public function __construct(){\n $BankAccountController = $this;\n }", "title": "" }, { "docid": "dc701e2c080574c23acde802c058ca3b", "score": "0.5726782", "text": "public function actionCreate()\r\n {\r\n $model = new UserAccounts();\r\n\r\n if (Yii::$app->request->post() && $account = Yii::$app->request->post()['UserAccounts']['account']){\r\n\r\n $parse = new Parser;\r\n\r\n $info = $parse->refreshAccount($account);\r\n\r\n $model->user_id = Yii::$app->user->id;\r\n $model->account = $account;\r\n $model->avatar = $info['avatar'];\r\n $model->name = 'name';//$info['name'];\r\n $model->descr = 'descr';//$info['descr'];\r\n $model->followers = $info['followers'];\r\n $model->following = $info['following'];\r\n $model->posts = $info['posts'];\r\n $model->datatime = time();\r\n\r\n if ($model->validate()){\r\n $model->save();\r\n return $this->redirect('index');\r\n }\r\n }\r\n\r\n return $this->render('create', [\r\n 'model' => $model,\r\n ]);\r\n }", "title": "" }, { "docid": "07f1ad6ac2a41f1e2850a1f49653516a", "score": "0.5720177", "text": "function createAccount($account):Account {\n $account->__validate(true);\n return ApiRequest::post(Constants::TATUM_API_URL . \"/v3/ledger/account\", account, [], [ 'x-api-key' => getenv('TATUM_API_KEY') ])->data;\n}", "title": "" }, { "docid": "928e49e6a583c9c27d47378636c3cbdd", "score": "0.5715055", "text": "public function createController() {\n // M: We check if the clas exits;\n if (class_exists($this->controller)) {\n // M: Check if the class extends the base Controller class;\n $classParents = class_parents($this->controller);\n if (in_array(\"Controller\", $classParents)) {\n // M: Check if the method that has to be called exists;\n if (method_exists($this->controller, $this->action)) {\n // M: Return the new controller;\n return new $this->controller($this->action, $this->request);\n } else {\n // TO DO: Implement error message;\n echo \"Method \".$this->action.\" dosen't exist in the controller \".$this->controller.\".\";\n return;\n }\n } else {\n // TO DO: Implement error message;\n echo \"Class \".$this->controller.\" dosen't extend the base controller class.\";\n return;\n }\n } else {\n // TO DO: Implement error message;\n echo \"Class \".$this->controller.\" dosen't exit.\";\n return;\n }\n }", "title": "" }, { "docid": "8eaafec0a66f446b06173447e7eeb5c0", "score": "0.5707313", "text": "public function create()\n {\n return view('accounts.create'); \n }", "title": "" }, { "docid": "0af2c03b40b0034e9413179d07240efe", "score": "0.56782484", "text": "public function create(Request $request) {\n $account = new Account();\n $account->id= $request->id;\n $account->account_name = $request->aname;\n $account->description = $request->description;\n $account->type = $request->type;\n $account->currency = $request->currency;\n $account->status = $request->status;\n $account->save();\n return redirect('account');\n }", "title": "" }, { "docid": "c4e3318359ce8b46c1e5a09b0402697c", "score": "0.56715333", "text": "public function __construct(Account $account)\n {\n $this->middleware('auth');\n $this->account = $account;\n }", "title": "" }, { "docid": "d50a12fb902bb5bf81f98f79208de041", "score": "0.56688285", "text": "protected function createComponentCreateAccountForm()\n {\n return new \\AppForms\\CreateAccountForm($this, $this->context->users, FALSE);\n }", "title": "" }, { "docid": "fa8a29658ba386ae7abc5b6026246254", "score": "0.5621815", "text": "public function create()\n {\n return view('finance.accounts.create');\n }", "title": "" }, { "docid": "6319d8526ab831b8fd4a16c3f8002f4f", "score": "0.5621225", "text": "public function action_new_acct()\n\t{\n\t\t\n\t\t$this->set_password('Validate/new_acct_prcs');\n\t\t\n\t}", "title": "" }, { "docid": "07927949ddf2610ec02835541b956c7c", "score": "0.56209964", "text": "public function createCa(): BankAccountCa\n {\n return BankAccountCa::create();\n }", "title": "" }, { "docid": "4a8050aac8c307ed41aabe0ef7f7744e", "score": "0.56069726", "text": "public function create()\n {\n return view('admin/accounts/create');\n }", "title": "" }, { "docid": "f8d5941cc565a6d164f900a93460099c", "score": "0.55984503", "text": "public function create()\n\t{\n\t\treturn View::make('bankaccounts.create');\n\t}", "title": "" }, { "docid": "aeee33f50964c5addbe2edf57e7801aa", "score": "0.5582099", "text": "public function create()\n {\n return view('admin.account.create');\n \n }", "title": "" }, { "docid": "2af892d6d407d4da788b60edb7f3a10b", "score": "0.55709225", "text": "public function createAction()\n {\n $entity = new FtpAccount();\n $request = $this->getRequest();\n $form = $this->createForm(new FtpAccountType(), $entity);\n $form->bindRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getEntityManager();\n $em->persist($entity);\n $em->flush();\n\n return $this->redirect($this->generateUrl('ftpaccount_show', array('id' => $entity->getId())));\n \n }\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView()\n );\n }", "title": "" }, { "docid": "2d9832ba6844e5d138a1bf9936d29f58", "score": "0.556081", "text": "public function createBackendController(): BackendController\n {\n return new BackendController(\n $this->php,\n $this->wordpress,\n $this->wordpressConfig,\n $this->userHandler,\n $this->setupHandler\n );\n }", "title": "" }, { "docid": "545bf8b5a151eb2f3e70b30cd36d6777", "score": "0.5544797", "text": "public function store(CreateAccountRequest $request)\n {\n $input = $request->all();\n\n $account = $this->accountRepository->create($input);\n\n Flash::success('Account saved successfully.');\n\n return redirect(route('accounts.index'));\n }", "title": "" }, { "docid": "545bf8b5a151eb2f3e70b30cd36d6777", "score": "0.5544797", "text": "public function store(CreateAccountRequest $request)\n {\n $input = $request->all();\n\n $account = $this->accountRepository->create($input);\n\n Flash::success('Account saved successfully.');\n\n return redirect(route('accounts.index'));\n }", "title": "" }, { "docid": "8e1b0d07ce5a9114aa711b6e717a8eea", "score": "0.55396134", "text": "public function create() {\n global $argv;\n if( isset($argv[2]) ) {\n $name = ucwords($argv[2]);\n if( !strpos('Controller', $name) ) {\n $name = $name.'Controller';\n }\n $file = 'src/Controllers/'.$name.'.php';\n if( file_exists($file) ) {\n echo 'Controller already exist!' . PHP_EOL;\n } else {\n $controller = file_put_contents ( $file , $this->template(['className' => $name]) );\n }\n }\n\n }", "title": "" }, { "docid": "f632f7b2b49b9add43a8065933dcc598", "score": "0.5504347", "text": "public function create()\n\t{\n\t\t$user_id = Auth::user()->id;\n\n\t\treturn view('personal.account_create');\n\t}", "title": "" }, { "docid": "33f19338c50ade7d8c3dd79f61092979", "score": "0.5492959", "text": "public function getAccount()\n {\n return new Resource\\Account($this);\n }", "title": "" }, { "docid": "1c742254a58f7f767d15579414aee76b", "score": "0.5477956", "text": "protected function create(array $data)\n {\n return Account::create([\n 'account_name' => $data['account_name'],\n 'account_desc' => $data['account_desc'],\n 'user_id' => Auth::user()->getAuthIdentifier(),\n 'state' => true,\n ]);\n }", "title": "" }, { "docid": "608a4170ec747667a5c7577262e81638", "score": "0.54610276", "text": "public function ajajCreate()\n\t{\n\t\t// Check Permissions.\n\t\t$this->checkAllowed( 'accounts', 'create' );\n\t\t\n\t\t// Retrieve our passed-in values.\n\t\t$v = $this->getMyScene();\n\t\t$aName \t\t= trim ( $v->account_name );\n\t\t$aPassword \t= trim ( $v->account_password );\n\t\t$aEmail \t= trim ( $v->email );\n\t\t$aGroupId \t= (isset($v->account_group_id)) ? $v->account_group_id : $v->account_group_ids ;\n\t\t$aRegCode \t= trim ( $v->account_registration_code );\n\n\t\t// Ensure required parameters are specified.\n\t\tif ( empty ( $aName ) )\n\t\t\tthrow BrokenLeg::toss( $this, 'MISSING_ARGUMENT', \"account_name\" );\n\t\tif ( empty ( $aPassword ) )\n\t\t\tthrow BrokenLeg::toss( $this, 'MISSING_ARGUMENT', \"account_password\" );\n\t\t$this->validatePswdChangeInput( $aPassword ) ;\n\t\tif ( empty ( $aEmail ) )\n\t\t\tthrow BrokenLeg::toss( $this, 'MISSING_ARGUMENT', \"email\" );\n\n\t\t// Reference respective models required.\n\t\t$dbAuth = $this->getProp('Auth');\n\t\t$dbAuthGroups = $this->getProp('AuthGroups');\n\n\t\t// Parse default group affiliation for this new account.\n\t\t$accountGroup = null;\n\t\tif ( empty($aGroupId) ) {\n\t\t\tif ( !empty($aRegCode) )\n\t\t\t{\n\t\t\t\t//see if there is a registration code that maps to a particular group\n\t\t\t\t$dbAuthGroups = $this->getProp('AuthGroups');\n\t\t\t\t$theDefaultGroup = $dbAuthGroups->findGroupIdByRegCode($aRegCode);\n\t\t\t\tif ( $theDefaultGroup != $dbAuthGroups::UNREG_GROUP_ID )\n\t\t\t\t{ $accountGroup = $theDefaultGroup; }\n\t\t\t}\n\t\t} else {\n\t\t\t// New account will have the specified group id as its default group.\n\t\t\tif ( is_array($aGroupId) ) {\n\t\t\t\t$accountGroup = array();\n\t\t\t\tforeach ($aGroupId as $anID) {\n\t\t\t\t\t$theID = trim($anID);\n\t\t\t\t\t//if not already in group, add to group list\n\t\t\t\t\tif ( !in_array($theID, $accountGroup, true) )\n\t\t\t\t\t{ $accountGroup[] = $theID; }\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$accountGroup = trim($aGroupId);\n\t\t\t}\n\t\t}\n\n\t\t// Verify new account can be registered.\n\t\tswitch ( $dbAuth->canRegister($aName, $aEmail) ) {\n\t\t\tcase $dbAuth::REGISTRATION_NAME_TAKEN:\n\t\t\t\tthrow AccountAdminException::toss( $this,\n\t\t\t\t\t\t'UNIQUE_FIELD_ALREADY_EXISTS', $aName ) ;\n\t\t\tcase $dbAuth::REGISTRATION_EMAIL_TAKEN:\n\t\t\t\tthrow AccountAdminException::toss( $this,\n\t\t\t\t\t\t'UNIQUE_FIELD_ALREADY_EXISTS', $aEmail ) ;\n\t\t\t//case $dbAuth::REGISTRATION_SUCCESS:\n\t\t}\n\t\t// Aggregate our account data for registration.\n\t\t$newAccountData = array(\n\t\t\t\t$v->getUsernameKey() => $aName,\n\t\t\t\t'email' => $aEmail,\n\t\t\t\t$v->getPwInputKey() => $aPassword,\n\t\t\t\t'verified_ts' => 'now', //admin creating account, assume valid email.\n\t\t);\n\t\tif (isset($v->account_is_active))\n\t\t\t$newAccountData['account_is_active'] = $v->account_is_active;\n\t\t\n\t\t//AuthOrg info\n\t\t$theOrgList = (isset($v->account_org_ids)) ? $v->account_org_ids : null;\n\t\t//limit org list to only ones I belong to, unless I have permission\n\t\tif ( !$this->isAllowed('auth_orgs', 'transcend') ) {\n\t\t\t$myOrgList = $dbAuth->getOrgsForAuthCursor(\n\t\t\t\t\t$this->getDirector()->account_info->auth_id\n\t\t\t)->fetchAll();\n\t\t\tif ( !empty($myOrgList) ) {\n\t\t\t\t$theOrgList = array_values(array_intersect($theOrgList, $myOrgList));\n\t\t\t}\n\t\t}\n\t\tif ( isset($theOrgList) )\n\t\t\t$newAccountData['org_ids'] = $theOrgList;\n\t\t\n\t\t// Register account with affliated group.\n\t\ttry {\n\t\t\t$registrationResult = $dbAuth->registerAccount(\n\t\t\t\t\t$newAccountData, $accountGroup\n\t\t\t);\n\t\t}\n\t\tcatch( \\Exception $x )\n\t\t{ throw BrokenLeg::tossException( $this, $x ); }\n\t\t$theResult = $this->getAuthAccount($registrationResult['auth_id']);\n\t\t$this->setApiResults($theResult->exportData());\n\t}", "title": "" }, { "docid": "608d08d4d25d315aae155897e6cd1409", "score": "0.5459697", "text": "protected function createCtrl(): AbstractCtrl\n {\n $view = ViewFactory::createView(\n str_replace('action', '', $this->actionName),\n $this->ctrlName\n );\n $componentsRootMap = AppHelper::getInstance()->getConfig('componentsRootMap');\n if (!isset($componentsRootMap['controllers'])) {\n throw new Exception(\"The field 'componentsRootMap.controllers' must be \"\n .'presented in the main configuration file.');\n }\n $ctrlNamespace = str_replace(\n \\DIRECTORY_SEPARATOR,\n '\\\\',\n $componentsRootMap['controllers']\n );\n $ctrlFullName = $ctrlNamespace.'\\\\'.$this->ctrlName;\n if (!is_null($view)) {\n $layoutName = AppHelper::getInstance()->getConfig('defaultLayout');\n if (!is_null($layoutName)) {\n $layout = ViewFactory::createLayout($layoutName, $view);\n $ctrl = new $ctrlFullName($this->request, $layout);\n } else {\n $ctrl = new $ctrlFullName($this->request, $view);\n }\n } else {\n $ctrl = new $ctrlFullName($this->request);\n }\n return $ctrl;\n }", "title": "" }, { "docid": "b98b29d1ea449a4e7ad90be1ac03b49b", "score": "0.54556394", "text": "public function create()\n\t{\n\t\t//\n\t\treturn View::make('accountings.create');\n\t}", "title": "" }, { "docid": "dac27f1493796982bcececb21fd58c4b", "score": "0.54542935", "text": "public function create()\n {\n return view('account.add');\n }", "title": "" }, { "docid": "c3147b4b38db41707b3a5844d5ab97db", "score": "0.5442121", "text": "public function store(AccountCreateRequest $request)\n {\n try {\n\n $this->validator->with($request->all())->passesOrFail(ValidatorInterface::RULE_CREATE);\n\n $account = $this->accRepo->create($request->all());\n\n $response = [\n 'message' => 'Account created.',\n 'data' => $account->toArray(),\n ];\n\n if ($request->wantsJson()) {\n\n return response()->json($response);\n }\n\n return redirect()->route('BackEndAccount.index');\n } catch (ValidatorException $e) {\n if ($request->wantsJson()) {\n return response()->json([\n 'error' => true,\n 'message' => $e->getMessageBag()\n ]);\n }\n\n return redirect()->back()->withErrors($e->getMessageBag())->withInput();\n } catch (QueryException $qe){\n if ($request->wantsJson()) {\n return response()->json([\n 'error' => true,\n 'message' => $qe->getMessageBag()\n ]);\n }\n return redirect()->back()->withErrors($qe->getMessageBag())->withInput();\n }\n }", "title": "" }, { "docid": "cfd4ac92e94af426856830b8776d7a30", "score": "0.54347545", "text": "public function __construct( Account $account )\n {\n $this->model = $account;\n }", "title": "" }, { "docid": "ea2816efac2dbb51e42167cf42cc4559", "score": "0.54281807", "text": "public function create(Account $user)\n {\n //\n }", "title": "" }, { "docid": "d2ccb23d2fe341ca213a3623edcdff69", "score": "0.54165953", "text": "private function createController(ReflectionClass $controllerName): ControllerInterface\n {\n return $this->container->make($controllerName->getName());\n }", "title": "" }, { "docid": "743eb819ec935200a76c4918f4fb478d", "score": "0.541286", "text": "public function account(): AccountRequestBuilder {\n return new AccountRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "title": "" }, { "docid": "ac475cdaf9c5909474b05b04e2250adc", "score": "0.5396223", "text": "public function create()\n {\n return view('bookeeping.finantial-account.create');\n }", "title": "" }, { "docid": "692154298cc5c95a9247405b52bdb30f", "score": "0.5384613", "text": "public function createController()\n {\n if(class_exists($this->controller))\n {\n $parents = class_parents($this->controller);\n\n // check extend - if controller includes the action passed in\n if (in_array(\"Controller\", $parents))\n {\n if (method_exists($this->controller, $this->action))\n {\n return new $this->controller($this->action, $this->request);\n }\n else\n {\n // Method doesnt exist\n echo '<h1>404 - Metoda nie istnieje.</h1>';\n return;\n }\n } else\n {\n // Base controller doesnt exist\n echo '<h1>404 - Kontroler nie istnieje.</h1>';\n return;\n }\n } else\n {\n // Controller class doesnt exist\n echo '<h1>404 - Klasa kontrolera nie istnieje.</h1>';\n return;\n }\n }", "title": "" }, { "docid": "77b11579ebf7682fa1ab5fc049d332c5", "score": "0.53837377", "text": "public function create()\n {\n abort_if(Gate::denies('bank_create'), Response::HTTP_FORBIDDEN, '403 Forbidden');\n return view('admin.bank.create');\n }", "title": "" }, { "docid": "38fd15568174aa0d6a59867bc3f47894", "score": "0.5377845", "text": "public function getCreateAccount()\n\t{\n\n\t\tif(!Session::has('member')){\n\t\t\treturn redirect()->route('account.confirm-outside-account');\t\n\t\t}\n\t\t$departments = $this->getDepartments();\n\t\treturn View::make('components.system.account.create', compact('departments'));\n\t}", "title": "" }, { "docid": "3b3ce28ccbbdc16580dc136c1d1e0fcb", "score": "0.5372435", "text": "public function store(Request $request)\n {\n return Account::create($request->all());\n }", "title": "" }, { "docid": "2f5f275e7441d98b4c4d3136055cca21", "score": "0.5370757", "text": "public function createdAction()\n {\n $collection = new AccountCollectionModel();\n $user = (new AccountCollectionModel())->getUser();\n (new AccountModel())->createAccount($user['id']);\n echo (new View('accountCreated'))\n ->addData('collection', $collection)\n ->addData('user', $user)\n ->render();\n }", "title": "" }, { "docid": "f0b04bbdfaeb63fb12f63b9c85ad9963", "score": "0.5365217", "text": "public function create()\n {\n $selectAccounts = $this->getOptionsPreferDebitAccount();\n return view('accounts.form', ['selectAccounts' => $selectAccounts, 'action' => __('common.add') ]);\n }", "title": "" }, { "docid": "de5a8d7071dee6e641892a7e8e8414e6", "score": "0.53541183", "text": "public function store(Request $request)\n {\n $account = new Account;\n $account->accnum = $account->createAccnum();\n $account->balance = $request->account_balance;\n $account->client_id = $request->client_id;\n $account->save();\n return redirect()->route('account.index');\n }", "title": "" }, { "docid": "1db219158daed522feea2be34434a133", "score": "0.53525096", "text": "public function actionCreateAccount()\n {\n $req = $this->getRequest();\n\n // check if the email is free\n $email = trim($req->getPost(\"email\"));\n // username is name of column which holds login identifier represented by email\n if ($this->logins->getByUsername($email) !== null) {\n throw new BadRequestException(\"This email address is already taken.\");\n }\n\n $instanceId = $req->getPost(\"instanceId\");\n $instance = $this->getInstance($instanceId);\n\n $titlesBeforeName = $req->getPost(\"titlesBeforeName\") === null ? \"\" : $req->getPost(\"titlesBeforeName\");\n $titlesAfterName = $req->getPost(\"titlesAfterName\") === null ? \"\" : $req->getPost(\"titlesAfterName\");\n\n // check given passwords\n $password = $req->getPost(\"password\");\n $passwordConfirm = $req->getPost(\"passwordConfirm\");\n if ($password !== $passwordConfirm) {\n throw new WrongCredentialsException(\n \"Provided passwords do not match\",\n FrontendErrorMappings::E400_102__WRONG_CREDENTIALS_PASSWORDS_NOT_MATCH\n );\n }\n\n $user = new User(\n $email,\n $req->getPost(\"firstName\"),\n $req->getPost(\"lastName\"),\n $titlesBeforeName,\n $titlesAfterName,\n Roles::STUDENT_ROLE,\n $instance\n );\n\n Login::createLogin($user, $email, $password, $this->passwordsService);\n $this->users->persist($user);\n\n // email verification\n $this->emailVerificationHelper->process($user, true); // true = account has just been created\n\n // add new user to implicit groups\n foreach ($this->registrationConfig->getImplicitGroupsIds() as $groupId) {\n $group = $this->groups->findOrThrow($groupId);\n if (!$group->isArchived() && !$group->isOrganizational()) {\n $user->makeStudentOf($group);\n }\n }\n $this->groups->flush();\n\n // successful!\n $this->sendSuccessResponse(\n [\n \"user\" => $this->userViewFactory->getFullUser($user),\n \"accessToken\" => $this->accessManager->issueToken($user)\n ],\n IResponse::S201_CREATED\n );\n }", "title": "" }, { "docid": "0e21333f271a5bfe1a97e9b61fa62c1a", "score": "0.5342424", "text": "public function create()\n {\n $this->authorize('create', Customer::class);\n\n return view('customer.create');\n }", "title": "" }, { "docid": "0476e523f43a5bbb6b1f5a0368eb9125", "score": "0.5335362", "text": "public static function make(){\n return new AccountSubscription;\n }", "title": "" }, { "docid": "37a64034dc0fff4117d6a20e4ed53b44", "score": "0.5332432", "text": "public function store(FormCraeteAccount $request)\n {\n $request->validated();\n $password = $request->get('password');\n $salt = substr(sha1(rand()), 0, 7);\n $accounts = new Account();\n $accounts->username = $request->get('username');\n $accounts->password_hash = md5($password . $salt);\n $accounts->first_name = $request->get('first-name');\n $accounts->last_name = $request->get('last-name');\n $accounts->identity_card = $request->get('identity_card');\n $accounts->email = $request->get('email');\n $accounts->role = $request->get('role');\n $accounts->salt = $salt;\n $accounts->status = 1;\n $accounts->created_at = Carbon::now()->format('Y-m-d H:i:s');\n $accounts->updated_at = Carbon::now()->format('Y-m-d H:i:s');\n $accounts->save();\n return redirect('/admin/accounts');\n }", "title": "" }, { "docid": "c628d6fe2a3806f5b9d88ad813c05c5c", "score": "0.5330768", "text": "public function creating(InvoiceAccount $model)\n {\n\n }", "title": "" }, { "docid": "f15f0534584a2a001edafe007cd6a8b2", "score": "0.53287584", "text": "public function create() {\n $roles = Role::all();\n return view('admin.accounts.create', compact('roles'));\n }", "title": "" }, { "docid": "92843fdd38dea50d40fb97640bc73280", "score": "0.53263533", "text": "public function create()\n {\n $banks = FinancialOrganization::all();\n return view('BankAccount.create',compact('banks'));\n }", "title": "" }, { "docid": "fcd000e30c620492ba0f13728aabb743", "score": "0.53197175", "text": "public function create()\n {\n return view('admin.accounts.add');\n }", "title": "" }, { "docid": "dcb5464412806b8df89c279742746ae1", "score": "0.5318148", "text": "public function createController($content) {\n $controller = new Controller($this, $content);\n return $controller;\n }", "title": "" }, { "docid": "57bfdfd6742fca95a0cadada7366883c", "score": "0.5317146", "text": "public function store(AccountRequest $request)\n {\n $account = new Cuenta;\n\n $account->idTipo = $request->idTipo;\n $account->monto = $request->monto;\n $account->fechaCreacion = $request->fechaCreacion;\n $account->idCliente = $request->idCliente;\n $account->estado = true;\n $account->noCuenta = '2016-' . $this->accountNumber();\n\n $account->save();\n\n return redirect('/admin/cuentas')->with('message', 'Cuenta creada correctamente.');\n }", "title": "" }, { "docid": "25a18524b464472730a6cd91a801f1ed", "score": "0.5301484", "text": "public function create()\n {\n $services = Services->get()->where('active' '1');\n $types = Types->get()->where('active' '1');\n return view('accounts.new-service', conpact($services, $types));\n }", "title": "" }, { "docid": "7c60d8b62faa81caeeccfe18e5cb50b1", "score": "0.53002244", "text": "public function create()\n {\n return view('feaccount::create');\n }", "title": "" }, { "docid": "aae471e1728ce5f390bb441427a80230", "score": "0.5284405", "text": "public function CreateController() {\n\t\t// echo ucfirst($this->controller).'.php';\n\t\t// if(file_exists(ucfirst($this->controller).'.php'))\n\t\t// \n\t\trequire ucfirst($this->controller.'.php');\n\t\t\n\t\t//require(\"person.php\");\n\t\tif (class_exists($this->controller)) {\n\t\t\t$parents = class_parents($this->controller);\n\t\t\t\n\t\t\t//does the class extend the controller class?\n\t\t\tif (in_array(\"BaseController\",$parents)) {\n\t\t\t\t//does the class contain the requested method?\n\t\t\t\tif (method_exists($this->controller,$this->action)) {\n\t\t\t\t\t$controller = new $this->controller($this->action,$this->urlvalues);\n\t\t\t\t\t$action = $this->action;\n\t\t\t\t\treturn $controller->$action($this->urlvalues);\n\t\t\t\t} else {\n\t\t\t\t\t//bad method error\n\t\t\t\t\treturn new Error(\"badUrl\",$this->urlvalues);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t//bad controller error\n\t\t\t\treturn new Error(\"badUrl\",$this->urlvalues);\n\t\t\t}\n\t\t} else {\n\t\t\t//bad controller error\n\t\t\treturn new Error(\"badUrl\",$this->urlvalues);\n\t\t}\n\t}", "title": "" }, { "docid": "12c8d23e84ea7d8ba4ac43f88531b72f", "score": "0.5283128", "text": "public function create(array $account)\n {\n $data = array(\n 'username' => $account['username'],\n 'email' => $account['email'],\n 'picture' => $account['picture'] ?? base_url($this::PICTURE_CONFIG['upload_path'].$this::PICTURE),\n 'role' => 1, # set user role to user on account create\n 'name' => $account['name'] ?? '',\n 'surname' => $account['surname'] ?? '',\n 'password' => $account['password']\n );\n\n return $this->db->insert('accounts', $data);\n }", "title": "" }, { "docid": "4a446ec47899f82add6b32ea298ce595", "score": "0.5281258", "text": "public function createBackendCacheController(): CacheController\n {\n return new CacheController(\n $this->cache\n );\n }", "title": "" }, { "docid": "b91dcbe0dbdeb6c0fe7b256c3afe3598", "score": "0.52740705", "text": "public function store(CreateAccountRequest $request)\n {\n Account::create($request->validated());\n return response()->json(['msg' => 'registro creado con exito']);\n }", "title": "" }, { "docid": "45e1119661c4127e279e1b1c365a3916", "score": "0.525869", "text": "public function create()\n {\n //$num\n //$get the latest aaccoun\n // Account\n $latest = Account::latest()->first();\n if(!$latest){\n $n = date('Y').'00001';\n $n = intval($n);\n }else{\n $n = intval($latest->accountno)+1;\n }\n\n $acctno = 'OY'.$n;\n return view('clients.create',compact('acctno'));\n }", "title": "" }, { "docid": "c85643f8bdb34b68f828020f6015c12f", "score": "0.5257987", "text": "static public function create_account() {\n\t\t\n\t\tif ( !empty(form::$posts->incl_registration_email) ) :\n\t\t\t\t\n\t\t\t\t$email = form::clean(form::$posts->incl_registration_email, 'email');\n\t\t\t\t$password = form::$posts->incl_password;\n\t\t\t\t$conf_pass = form::$posts->confirm_password;\n\t\t\t\t\n\t\t\t\tif ( $password != $conf_pass ) :\n\t\t\t\t\tform::$error .= '<li>Password not confirmed successfully</li>';\n\t\t\t\tendif;\n\t\t\t\n\t\t\tif ( !form::$validation->is_valid_email($email) ) {\n\t\t\t\tform::$error .= '<li>You did not enter a valid email</li>';\n\t\t\t}\n\t\t\t\n\t\t\tif ( !form::has_error() ) :\n\t\t\t\n\t\t\t\t$privacy = form::clean(form::$posts->incl_privacy);\n\t\t\t\t$referer = form::clean(form::$posts->incl_referer);\n\t\t\t\t$account_type = form::clean(form::$posts->incl_account_type);\n\t\t\t\t\n\t\t\t\tif ( is_array($account_type) ) :\n\t\t\t\t\tif ( isset($account_type[2]) ) :\n\t\t\t\t\t\t$account_type = 'B';\n\t\t\t\t\telse :\n\t\t\t\t\t\t$account_type = $account_type[1];\n\t\t\t\t\tendif;\n\t\t\t\tendif;\n\t\t\t\t\t\n\t\t\t\t$password = md5( cPRE_SALT.$password.cPOST_SALT );\n\t\t\t\t\n\t\t\t\t$sql = \"SELECT id FROM accounts WHERE email = '$email'\";\n\t\t\t\t$sql = db::query($sql);\n\t\t\t\t\n\t\t\t\tif ($db->num_rows() == 0) :\n\t\t\t\t\t$random_salt = hash( \"sha256\", rand() . mktime() . rand() );\n\t\t\t\t\t$activation_key = hash( \"sha256\", rand() . mktime() . rand() . rand() );\n\t\t\t\t\t\n\t\t\t\t\t$sql = \"INSERT INTO accounts (`email`, `password`, `referer`, `account_type`, `random_salt`, `activation_key`)\"\n\t\t\t\t\t\t. \" VALUES\"\n\t\t\t\t\t\t. \" ('$email', '$password', '$referer', '$account_type', '$random_salt', '$activation_key' )\";\n\t\t\t\t\t\t\n\t\t\t\t\tif (!db::query($sql)) :\n\t\t\t\t\t\tdb::error();\n\t\t\t\t\t\tform::$error .= _STRING_REGISTRATION_ERROR__DATABASE_ . ' ' . db::$error;\n\t\t\t\t\t\t\n\t\t\t\t\telse :\n\t\t\t\t\n\t\t\t\t\t\t$sql = db::query(\"SELECT * FROM accounts WHERE id = LAST_INSERT_ID()\");\n\t\t\t\t\t\t$row = db::fetch_object($sql);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ( !$row ) :\n\t\t\t\t\t\t\tform::$error .= '<li>' . _STRING_REGISTRATION_ERROR__GENERIC_ . '</li>';\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\telse :\n\t\t\t\t\t\t\tapp::$email->verify_account($row);\n\t\t\t\t\t\t\tself::$account_created = true;\n\t\t\t\t\t\t\t//header('Location: ' . url::root() );\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tendif;\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn true;\n\t\t\t\t\tendif;\n\t\t\t\t\n\t\t\t\telse :\n\t\t\t\t\n\t\t\t\t\tform::$error .= '<li>' . _STRING_REGISTRATION_ERROR__ACCOUNT_EXISTS_ . '</li>';\n\t\t\t\t\n\t\t\t\tendif;\n\t\t\t\n\t\t\telse :\n\t\t\t\tform::$error .= '<li>' . _STRING_REGISTRATION_ERROR__ACCOUNT_EXISTS_ . '</li>';\n\t\t\t\t\n\t\t\tendif;\n\t\t\n\t\tendif;\n\t\t\n\t\treturn false;\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "f808e51f3eb738162f2937fcba633ce8", "score": "0.5243824", "text": "public function create()\n {\n return view('admin/form/form-account');\n }", "title": "" }, { "docid": "a3fd777e9b3caed61bf0e98423f4ab19", "score": "0.52436167", "text": "public static function make($name = '')\n {\n return new TransactionController($name);\n }", "title": "" }, { "docid": "970b0ef687f79ef88fb8ea82fb617942", "score": "0.5231124", "text": "public function account(): Account\n {\n if (!is_object($this->accountInstance)) {\n $this->accountInstance = new Account($this->httpClient);\n }\n\n return $this->accountInstance;\n }", "title": "" }, { "docid": "165ab09fe56f5a63c0e4d470ae88c2f4", "score": "0.5224066", "text": "protected function getControllerByName($className) {\n return new $className();\n }", "title": "" }, { "docid": "a67bbf52f522df17ef207ed21afd9a8a", "score": "0.5220641", "text": "public function create()\n\t{\n\t\tDashboard::setTitle( 'New Circle' );\n\n\t\t$accounts = [];\n\n\t\tAccount::all()->each( function ( $account ) use ( &$accounts ) {\n\t\t\t$accounts[ $account->id ] = $account->username;\n\t\t} );\n\n\t\treturn view( 'organization.create', [ 'accounts' => $accounts ] );\n\t}", "title": "" }, { "docid": "5b676e370d89c7d5be2444a22cb28f97", "score": "0.52203435", "text": "public function create()\n {\n return view('omnomcom.accounts.edit', ['account' => null]);\n }", "title": "" }, { "docid": "07f938ddc152f22f95bc4543f6897c07", "score": "0.52187485", "text": "public function createAccount($request)\n {\n $runtime = new RuntimeOptions([]);\n\n return $this->createAccountWithOptions($request, $runtime);\n }", "title": "" }, { "docid": "6257c76fdf33873072f386ea61505f0e", "score": "0.52187014", "text": "private function createController()\r\n\t{\r\n\t\t// save the old Controller in the components folder of the main application naming it _old_Controller.php\r\n\t\t$path = Yii::app()->basePath . '/components/_old_Controller.php';\r\n\t\t$content = file_get_contents(Yii::app()->basePath . '/components/Controller.php');\r\n\t\tif(@file_put_contents($path,$content)===false) {\r\n\t\t\tthrow new CHttpException (500, Yii::t('userGroupsModule.install', 'Unable to write the file {path}.', array('path'=>$path)));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t// write the new UserIdentity file in the components folder of the main application\r\n\t\t$path = Yii::app()->basePath . '/components/Controller.php';\r\n\t\t$content = file_get_contents(Yii::app()->basePath . '/modules/userGroups/templates/template_Controller.php');\r\n\t\tif(@file_put_contents($path,$content)===false) {\r\n\t\t\tthrow new CHttpException (500, Yii::t('userGroupsModule.install', 'Unable to write the file {path}.', array('path'=>$path)));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f0b3b451f67afcf5bbddd92c3775038b", "score": "0.52121985", "text": "public function store(CreateAccountTypeRequest $request)\n {\n $input = $request->all();\n\n $accountType = $this->accountTypeRepository->create($input);\n\n Flash::success('Account Type saved successfully.');\n\n return redirect(route('accountTypes.index'));\n }", "title": "" }, { "docid": "9d42184dcf03a2d0d9c40850a184e8a3", "score": "0.5211562", "text": "public function __construct(Account $account)\n {\n $this->account = $account;\n }", "title": "" }, { "docid": "9d42184dcf03a2d0d9c40850a184e8a3", "score": "0.5211562", "text": "public function __construct(Account $account)\n {\n $this->account = $account;\n }", "title": "" }, { "docid": "6d8067bb35e89c28a193ed4ff670f8b4", "score": "0.5205116", "text": "public function getTabController()\n {\n return new TabController();\n }", "title": "" }, { "docid": "1639a38f25dbf3a245b49dfb6890d698", "score": "0.5203935", "text": "public function new($id)\n {\n $typeAccount = TipoCuenta::lists('descripcion', 'id');\n return view('admin.accounts.create', compact('typeAccount'))->with('id', $id);\n }", "title": "" }, { "docid": "5fc898f343422e7268047659f75ecfca", "score": "0.5200854", "text": "public function create()\n {\n return view('account_types.create');\n }", "title": "" }, { "docid": "cf3bdbba82ee453ca48f67fca7f16e83", "score": "0.51993275", "text": "public function __construct(protected Account $account)\n {\n }", "title": "" }, { "docid": "b6bfb5de5dcda2396ea05202dda1277f", "score": "0.51971525", "text": "public function createController() {\n //check our requested controller's class file exists and require it if so\n if (file_exists(\"controllers/\" . $this->route->getControllerName() . \".php\")) {\n require(\"controllers/\" . $this->route->getControllerName() . \".php\");\n $controllerClass = ucfirst(strtolower($this->route->getControllerName())) . \"Controller\";\n if (class_exists($controllerClass)) {\n $parents = class_parents($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($controllerClass,$this->route->getActionName()))\n {\n return new $controllerClass($this->route,$this->urlValues);\n }\n }\n }\n }\n\n require(\"controllers/error.php\");\n $this->route->setControllerName(\"error\");\n $this->route->setActionName(\"badurl\");\n\n return new ErrorController($this->route,$this->urlValues);\n }", "title": "" }, { "docid": "533d91eb9a695f196ddff08dc80f54b9", "score": "0.5188287", "text": "public function newControllerInstance($className)\n {\n $oldInstance = get_instance();\n\n if (version_compare(APP_VER, '2.6', '<')) {\n require_once APPPATH.'controllers/ee.php';\n } else {\n require_once APPPATH.'core/EE_Controller.php';\n }\n\n $instantiator = new Instantiator();\n\n $newInstance = $instantiator->instantiate($className);\n\n // copy existing controller props over to new instance\n $controllerProperties = get_object_vars($oldInstance);\n\n foreach ($controllerProperties as $key => $value) {\n $newInstance->$key = $value;\n }\n\n // replace the global instance\n $reflectedClass = new ReflectionClass('CI_Controller');\n $reflectedProperty = $reflectedClass->getProperty('instance');\n $reflectedProperty->setAccessible(true);\n $reflectedProperty->setValue($newInstance);\n\n // boot the new instance, if necessaory\n if ($newInstance instanceof BootableInterface) {\n $newInstance->boot($this);\n }\n\n return $newInstance;\n }", "title": "" }, { "docid": "715a72d8f9d7be2d87a69aaeb0fb9235", "score": "0.51762563", "text": "public function createBackendSetupController(): SetupController\n {\n return new SetupController(\n $this->php,\n $this->wordpress,\n $this->wordpressConfig,\n $this->database,\n $this->setupHandler\n );\n }", "title": "" }, { "docid": "381056dd7d8c30da0d3fb59624ee6251", "score": "0.5164849", "text": "public function __construct(){\n $this->accountModel = $this->model('AccountModel');\n }", "title": "" }, { "docid": "504b338166e0396bb7fa595c4ddb9286", "score": "0.5163392", "text": "protected function createController()\n {\n $name = $this->getPascalCaseName();\n $file = __DIR__.'/resource/stubs/api/controller.stub';\n $dirPath = app_path('Http/Controllers');\n $path = $dirPath.'/'.$name.'sController.php';\n\n if ($this->fileExists($path, 'Controller')) {\n return false;\n }\n\n $content = file_get_contents($file);\n $content = str_replace('{{namespace}}', $this->controllerPath, $content);\n $content = str_replace('{{manager}}', $name.'sManager', $content);\n $content = str_replace('{{name}}', $name.'s', $content);\n $content = str_replace('{{lowSinName}}', strtolower($name), $content);\n $content = str_replace('{{lowUnderscoreName}}', strtolower($this->argument('name')), $content);\n\n if (!$this->fileCreated($path, $content, 'controller')) {\n return false;\n }\n\n $this->info('Controller: '.$name.'sController created');\n\n // Adding routes the controller will use\n $resource = 'Route::resource(\\''.$this->getRouteName().'s\\', \\''.$name.'sController\\', [';\n $resource .= \"\\n\\t\\t\\t\".'\\'except\\' => [\\'create\\', \\'edit\\']';\n $resource .= \"\\n\\t\\t\".']);';\n\n $routePath = base_path('routes/api.php');\n $content = file_get_contents($routePath);\n $delimiter = '// END OF RESOURCE API - DO NOT REMOVE/MODIFY THIS COMMENT';\n\n $endOfPos = strpos($content, $delimiter);\n $pre = substr($content, 0, $endOfPos);\n $post = substr($content, $endOfPos, strlen($content));\n\n file_put_contents($routePath, $pre.$resource.\"\\n\\n\\t\\t\".$post);\n\n $this->info('Added route resource in `routes/api.php`');\n\n return true;\n }", "title": "" } ]
0b5ae635d99763cf5bf5c04dd3b0dda9
/Purpose : Logging out existing session. /Inputs: None. /Returns : None. /Created By: Jaiswar Vipin Kumar R.
[ { "docid": "c061bcd5768d6c9ca3d66d22e165c8b6", "score": "0.0", "text": "public function lougout(){\n\t\t/* Creating logger object */\n\t\t$objLogger\t= new Logger();\n\t\t/* removed existing all cookies */\n\t\t$objLogger->doDistryLoginCookie();\n\t\t/* removed existing system cookie */\n\t\t$objLogger->doDestroySystemCookie();\n\t\t/* Removed used variable */\n\t\tunset($objLogger);\n\t\t/* Redirect to login screen */\n\t\tredirect(SITE_URL.'login');\n\t}", "title": "" } ]
[ { "docid": "4903eef93695d6c5eb30cb2b788fc7ee", "score": "0.81757385", "text": "function logOut(){\n $this->startNewSession();\n }", "title": "" }, { "docid": "8800e2a6dbc43278ccb95a5a8587c0c7", "score": "0.76823276", "text": "public function logOut()\n {\n $session = new Session($this->config);\n $session->delete('user_id');\n $session->end();\n }", "title": "" }, { "docid": "a2808aedca4ab3b9ef7db4d3ca20a9e4", "score": "0.7595741", "text": "public function logout()\n\t{\n\t\t$this->create_session();\n\t}", "title": "" }, { "docid": "83e541a651ed9c361ece1aa105b18fd0", "score": "0.75540364", "text": "public static function logOut() {\n session_destroy();\n }", "title": "" }, { "docid": "945a4673ff650c30dd6c46aa0aa7cf15", "score": "0.7544102", "text": "public function logout(){\n $this->session->isLogged=false;;\n $this->session->clientID = null;\n }", "title": "" }, { "docid": "0d18777819d1767deeb08b126d480d2a", "score": "0.7447345", "text": "public function logout() {\n\t\t//Clear session id\n\t\t$this->loggedIn = false;\n\t}", "title": "" }, { "docid": "2e30109a38ffa722292652e5b3498b6d", "score": "0.7426731", "text": "function logout() {\n\t\tif (XenForo_Visitor::getInstance ()->get ( 'is_admin' )) {\n\t\t\t$adminSession = new XenForo_Session ( array (\n\t\t\t\t\t'admin' => true \n\t\t\t) );\n\t\t\t$adminSession->start ();\n\t\t\tif ($adminSession->get ( 'user_id' ) == XenForo_Visitor::getUserId ()) {\n\t\t\t\t$adminSession->delete ();\n\t\t\t}\n\t\t}\n\t\t\n\t\tXenForo_Model::create ( 'XenForo_Model_Session' )->processLastActivityUpdateForLogOut ( XenForo_Visitor::getUserId () );\n\t\t\n\t\tXenForo_Application::get ( 'session' )->delete ();\n\t\tXenForo_Helper_Cookie::deleteAllCookies ( array (\n\t\t\t\t'session' \n\t\t), array (\n\t\t\t\t'user' => array (\n\t\t\t\t\t\t'httpOnly' => false \n\t\t\t\t) \n\t\t) );\n\t\t\n\t\tXenForo_Visitor::setup ( 0 );\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "389fbc3e40c4e8144f3415883eebca3f", "score": "0.73989725", "text": "function LogOut(){\n\t\t$data=array(\"session-token\" => $_SESSION[$this->GetLoginSessionTokenVar()]);\n\t\t$curl_results = $this->api->CallAPI('DELETE',$this->logouturl,$data);\n\t\t$results=json_decode($curl_results) ;// convert json to object\n\t\tif( $this->api->response_code===$this->sucess_logout_response_code ){\n\t\t\n\t\t\tsession_start();\n \n\t\t\t$sessionvar = $this->GetLoginSessionVar();\n\t\t\t$sessiontoken = $this->GetLoginSessionTokenVar();\n\t\t\t$_SESSION[$sessionvar]=NULL;\n\t\t\t$_SESSION[$sessiontoken]=NULL;\n\t\t\n\t\t\tunset($_SESSION[$sessionvar]);\n\t\t\tunset($_SESSION[$sessiontoken]);\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n }", "title": "" }, { "docid": "7fdeb9ce4240ba56e09ab9c0c96af764", "score": "0.7386942", "text": "static function logout(){\n\t\tuser::startSession();\n\t\t$_SESSION['user_id'] = null;\n\t\t$_SESSION['user_name'] = null;\n\t\tsession_destroy();\n\t}", "title": "" }, { "docid": "bbdc20e7adfa58d575041749387a7675", "score": "0.7386622", "text": "public function Logout()\n\t\t{\n\t\t\tsession_unset(); \n\n\t\t\t// destroy the session\n\t\t\tsession_destroy(); \n\t\t}", "title": "" }, { "docid": "265683061207679c3a57b914bdbdddc0", "score": "0.73808575", "text": "public function logOut(){\n $this->fireEvent(\"logout\",\"before\");\n\n $this->__isLoggedIn = false;\n $this->__isAttempted = false;\n $this->__cookieExpire = $this->__cookieExpire_default;\n $this->__expireAfter = $this->__expireAfter_default;\n $this->__attempDate = false;\n $this->__user = false;\n $this->__selectQuery = array();\n if($this->__cookieRemove){\n Session::remove($this->getSessionName());\n Cookie::remove($this->getCookieName());\n Cookie::save();\n }\n \n $this->fireEvent(\"logout\",\"after\");\n return $this;\n }", "title": "" }, { "docid": "bb210eacc37024c48d7902eba6dcbbde", "score": "0.7347124", "text": "public function logOut(){\n\t\tsession_start();\n\t\t$_SESSION=array();\n\t\tif(isset($_COOKIE[session_name()])){\n\t\t\tsetcookie(session_name,'',time()-4200);\n\t\t}\n\t\tsession_destroy();\n\t\theader('Location:index.php');\n\n\t}", "title": "" }, { "docid": "7252a6716efc7b7f4359baccab83cf0a", "score": "0.73455554", "text": "public static function logout() {\n\t\t\\OC::$server->getUserSession()->logout();\n\t}", "title": "" }, { "docid": "5ce53d9d91af533a113d76b365471106", "score": "0.7338447", "text": "public function logOut() {\n $this->session->sess_destroy();\n redirect('/', 'refresh');\n }", "title": "" }, { "docid": "45da2d7aeb8f2d45a489f4276a73cec1", "score": "0.7330355", "text": "public function logout(){\n\t\t $this->setInactiveInDb();\n\t\t $session = SessionTool::getSession();\n\t\t $session->destroy();\n\t\t $this->loadSessionData(\"logout\");\n\t\t $this->data = \"/index.php\";\n\t}", "title": "" }, { "docid": "21c19ebe1dc2e9c5af3606f3bc57cfbb", "score": "0.7326674", "text": "public function logOut(){\n\t\t\tif (isset($_SESSION[\"id\"])) {\n\t\t\t\tunset($_SESSION[\"id\"]);\n\t\t\t\t$this->redirect_to(\"../index.php\");\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "946e17ed0eb22364e335e7f03d6f6143", "score": "0.7296897", "text": "public function logout(){\n\n\t\t$this->session_manager->finish();\n\t\n\t}", "title": "" }, { "docid": "92554bc0f25c50a3fc0f8c5dc764c9e6", "score": "0.72809005", "text": "private function logOut()\n {\n $this->session()->clear('loggedInAs');\n }", "title": "" }, { "docid": "a084a1f534100197b144c453a7b22e45", "score": "0.7269091", "text": "public function logout();", "title": "" }, { "docid": "a084a1f534100197b144c453a7b22e45", "score": "0.7269091", "text": "public function logout();", "title": "" }, { "docid": "a084a1f534100197b144c453a7b22e45", "score": "0.7269091", "text": "public function logout();", "title": "" }, { "docid": "a084a1f534100197b144c453a7b22e45", "score": "0.7269091", "text": "public function logout();", "title": "" }, { "docid": "a084a1f534100197b144c453a7b22e45", "score": "0.7269091", "text": "public function logout();", "title": "" }, { "docid": "a084a1f534100197b144c453a7b22e45", "score": "0.7269091", "text": "public function logout();", "title": "" }, { "docid": "6d3d1a6e613cafc8d8ecf040c0e1d006", "score": "0.7258944", "text": "public function Logout() : void;", "title": "" }, { "docid": "f2709db5a1683ce1eb80f8bfe030df60", "score": "0.7251372", "text": "public function logout() {\r\n session_destroy();\r\n session_start();\r\n }", "title": "" }, { "docid": "96ddec85cc58a14a4817b2f86b57aeb5", "score": "0.72447485", "text": "public function logout()\n {\n return $this->execute('delete', 'session');\n }", "title": "" }, { "docid": "43ab4a2f380831f64b77956a90a54e6e", "score": "0.7243054", "text": "public function logout( );", "title": "" }, { "docid": "97eca63adb9d5a45302c0a8dd4c78467", "score": "0.7241929", "text": "static function Logout()\n\t{\n\t\t_DELSESSION('steam_userId');\n\t\t_DELSESSION('twitter_token');\n\t\t_DELSESSION('google_token');\n\t}", "title": "" }, { "docid": "fac129533e9c65a190148fa12aa26491", "score": "0.7226394", "text": "function LogOut(){\n $xml = '<cart>';\n $xml = $xml.'<user_email>'.$_SESSION['email'].'</user_email>';\n $xml = $xml.'</cart>';\n \n $this->database->DbFreeTempCart($xml);\n \n // remove all session variables\n session_unset();\n \n // destroy the session \n session_destroy(); \n }", "title": "" }, { "docid": "b2cba9f603acbe3278828d46974c326a", "score": "0.72191334", "text": "public function logout() {\n\t\t$this->user->session_kill();\n\t}", "title": "" }, { "docid": "bc92bd2a5354807729ace6bf1f827fd6", "score": "0.7216843", "text": "protected function logOut ()\r\n\t{\r\n\t\tself::removeAllSecureCookies();\r\n\t}", "title": "" }, { "docid": "994b8294399a7596e87404af69176ea7", "score": "0.7207551", "text": "public function logOut() {\n if ($this->isLoggedIn()) {\n if (isset($this->sessionId)) {\n $this->userModel->deleteSession($this->sessionId);\n unset($this->sessionId);\n }\n if (isset($this->session[$this->sessionPrefix . 'session'])) {\n unset($this->session[$this->sessionPrefix . 'session']);\n unset($this->session[$this->sessionPrefix . 'renew_at']);\n }\n if (isset($this->request->cookies[$this->cookiePrefix . 'session'])) {\n unset($this->request->cookies[$this->cookiePrefix . 'session']);\n unset($this->request->cookies[$this->cookiePrefix . 'renew_at']);\n }\n foreach ($this->authenticationMethods as $method) {\n $method->deauthenticate($this->user, $this->userModel);\n }\n unset($this->user);\n }\n }", "title": "" }, { "docid": "7a3f9d1526bdd2fcc1a3293d3b55c6ca", "score": "0.71965307", "text": "public function Logout()\n\t{\n\t\tif (isset($_SESSION[\"Identity\"])) {\n\t\t\tunset($_SESSION[\"Identity\"]);\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "d86d8d6008537f7794572d9aab089020", "score": "0.7172768", "text": "public function log_out(){\n\t\t//$_SESSION['user'] = null;\n\t\t//$_SESSION['partners'] = null;\n\t\t//$_SESSION['sections_student'] = null;\n\t\t//$_SESSION['sections_ta'] = null;\n\t\t//$_SESSION['sections_owner'] = null;\n\t\t//$_SESSION['sections_is_study_participant'] = null;\n\t\t//$_SESSION['permissions'] = null;\n\n\t\tunset($_SESSION['user']);\n\t\tunset($_SESSION['partners']);\n\t\tunset($_SESSION['sections_student']);\n\t\tunset($_SESSION['sections_ta']);\n\t\tunset($_SESSION['sections_owner']);\n\t\tunset($_SESSION['sections_is_study_participant']);\n\t\tunset($_SESSION['permissions']);\n\n\t\tadd_alert('Logged out!', Alert_Type::SUCCESS);\n\t\tredirect_to_index();\n\t}", "title": "" }, { "docid": "4537130cfc042b1c2438965a60cd77fa", "score": "0.7170435", "text": "public function logOut()\n\t\t{\n\t\t\tunset(\n\t\t\t\t\t$_SESSION['email'],\n\t\t\t\t\t$_SESSION['name'],\n\t\t\t\t\t$_SESSION['id']\n\t\t\t);\n\t\t\t$this->load->view('users/login-view');\n\t\t}", "title": "" }, { "docid": "43f0e4d13c9a6afe91009fb1d252d70f", "score": "0.7167029", "text": "public function logoff()\n {\n return $this->ci->session->sess_destroy();\n }", "title": "" }, { "docid": "7e3ff237b5dd10bd75aad6f04c9098c6", "score": "0.71344197", "text": "public function logout()\n {\n // Kill the session variables and give an error message\n $_SESSION['Kusername'] = \"\";\n $_SESSION['Kpasswd'] = \"\";\n $_SESSION['Kulevel'] = \"\";\n $_SESSION['Kcampus'] = \"\";\n session_destroy();\n }", "title": "" }, { "docid": "2e42672a3a3846ac1021386623a9660e", "score": "0.71034294", "text": "public function Logout()\n {\n $sessione = Session::getInstance();\n if ($sessione->isLoggedAdmin()) {\n $sessione->logout(); //cancello i dati di sessione\n }\n //redirect a home\n header('Location: /Never_home');\n }", "title": "" }, { "docid": "29ec114729f4d6f04c9597641754c1f8", "score": "0.7096927", "text": "public function logout() {\n S::logout();\n S::clear();\n return \"\";\n }", "title": "" }, { "docid": "e259f1f19708747ca8c26f1641272f4e", "score": "0.7091035", "text": "public function logOut()\n{\n\t$this->session->sess_destroy();\n\tredirect('Home','refresh');\n}", "title": "" }, { "docid": "2529a56929ece4f31d41af1323726534", "score": "0.7075591", "text": "function logout() {\n $this->POROTO->Session->endSession();\n header(\"Location: /\", TRUE, 302);\n }", "title": "" }, { "docid": "d4b68d42846c6b6d274ecf3985f58e4d", "score": "0.7073169", "text": "public function logout(){\r\n\t\t$sname = session_name();\r\n\t\t$_SESSION = array();\r\n\t\tsession_destroy();\r\n\t}", "title": "" }, { "docid": "dfd8d700261522cbf6416d5b4e4eb131", "score": "0.7058382", "text": "public function logout(){\n\t\t$this->session->sess_destroy();\n\t}", "title": "" }, { "docid": "9c8dd1ea637f353ec9b11c5e2498dadd", "score": "0.7057044", "text": "public function Logout(){\n\t\t$this->clearData();\n\t}", "title": "" }, { "docid": "469400a61bfe41286825e9f1c1d907c8", "score": "0.70538265", "text": "public static function logout()\n {\n //initie les variables de la SESSION à vide\n $_SESSION = [];\n \n // efface le cookie de session.\n // Note : cela détruira la session et pas seulement les données de session !\n if (ini_get(\"session.use_cookies\")) {\n $params = session_get_cookie_params();\n\n setcookie(\n session_name(),\n '',\n time() - 42000,\n $params[\"path\"],\n $params[\"domain\"],\n $params[\"secure\"],\n $params[\"httponly\"]\n );\n }\n // pour détruire toute les données de la session au logout; MAIS code up necessaire\n session_destroy();\n\n }", "title": "" }, { "docid": "b3fd277db77779c9daa5fb72f9921c66", "score": "0.7047475", "text": "public function logout()\r\n\t{\r\n\t\t// Logout just deletes the current session.\r\n\t\tSession::delete($this->_sessionName);\r\n\t}", "title": "" }, { "docid": "86f217e57c3427b39153a917ad5256e2", "score": "0.7041988", "text": "public function Logout()\n\t{\n\t $this->session->unset_userdata('some_name');\n\t $this->session->unset_userdata('USER_COMP_CODE');\n\t $this->session->unset_userdata('USER_ID');\n\t $this->session->unset_userdata('USER_PERS_CODE');\n\t $this->session->unset_userdata('USER_PW_CHANGE_YN');\n\t unset($this->session->userdata);\n\t redirect(base_url().\"Apps\",'refresh');\n\t}", "title": "" }, { "docid": "1e537b223f59f106c782c16b25cacd60", "score": "0.7039502", "text": "public function logOut() { //TODO (I know this function is against MVC but had no time to fix this more than what I've already done so far)\n // Check if you really are logged in\n if (isset($_SESSION[self::$uniqueID]) OR // TODO don't use session here \n $this->cookieStorage->isCookieSet(self::$uniqueID)) {\n unset($_SESSION[self::$uniqueID]);\n\n if ($this->cookieStorage->isCookieSet(self::$uniqueID)) { // TODO CHANGE THIS TO VIEW!!!\n // Destroy all cookies\n $this->cookieStorage->destroy(self::$uniqueID);\n $this->cookieStorage->destroy(self::$username);\n $this->cookieStorage->destroy(self::$password);\n\n // Remove the cookie file\n $this->fileStorage->removeFile($this->cookieStorage->getCookieValue(self::$uniqueID)); \n }\n\n // Set alert message\n $this->misc->setAlert(\"Du har nu loggat ut.\");\n\n return true;\n }\n }", "title": "" }, { "docid": "70d05cef6d0340dded15d87d3a5da950", "score": "0.703735", "text": "public function logout(){\n $loginUpdateLogout = new LoginUpdateLogout();\n $logoutInput = new LoginUpdateLogoutInput();\n $logoutInput->ID = $this->getLoginId();\n //var_dump($this->getLoginId());\n unset ($_SESSION[TOKEN]);\n unset ($_SESSION[LOGGED_PERSON]);\n unset ($_SESSION[LOGGED_USER]);\n unset ($_SESSION[IDUNIT]);\n unset ($_SESSION[ROLE]);\n }", "title": "" }, { "docid": "ebb0c7468493c1bb4a510fdfffa80088", "score": "0.70301527", "text": "public static function logout()\n {\n\n self::$user = array();\n self::$user['logged_in'] = false;\n\n // set the session user\n self::user(self::$user);\n\n }", "title": "" }, { "docid": "0f4430c8ce7b58bd66307f515d2c4b37", "score": "0.7027328", "text": "public function logout()\n\t{\n\t}", "title": "" }, { "docid": "66d23f24f45607e75612e1dde1e3afdb", "score": "0.70256495", "text": "public\n function logout(){\n session_unset();\n session_destroy();\n }", "title": "" }, { "docid": "e5c7b219244a81a1783ddddde15a0938", "score": "0.7020918", "text": "public function logout() {\n Log::debug(\"logout()\");\n session(['authenticatedUser' => '']);\n }", "title": "" }, { "docid": "ab71007a5a05087e83807941c7afd751", "score": "0.70193887", "text": "public function Logout()\n {\n $this->deleteRememberMeCookie();\n\n $_SESSION = array();\n session_destroy();\n\n $this->loginstatus = false;\n\t\theader('location:index.php');\n }", "title": "" }, { "docid": "706743f897f00bc74c308259eb040fc6", "score": "0.70174146", "text": "static public function logOut()\n {\n if (!self::isLoggedIn()) {\n return true;\n }\n // get the current userid before logging out\n $userId = xarSession::getVar('id');\n \n // Reset user session information\n $res = xarSession::setUserInfo(xarSession::$anonId, false);\n if (!isset($res)) {\n return; // throw back\n }\n \n xarSession::delVar('authenticationModule');\n \n // User logged out successfully, trigger the proper event with the old userid\n //xarEvents::trigger('UserLogout',$userId);\n xarEvents::notify('UserLogout',$userId);\n \n xarSession::delVar('privilegeset');\n return true;\n }", "title": "" }, { "docid": "45235486ac6b15a234250fa6e223acce", "score": "0.7009801", "text": "public function logout(){\n $this->JACKED->Sessions->write(\"auth.admin\", array(\n 'loggedIn' => false,\n 'user' => NULL, \n 'userid' => NULL,\n 'sessionID' => NULL\n ));\n return true;\n }", "title": "" }, { "docid": "fa595e89df0b6d95f32f3f929f9eccbe", "score": "0.7008872", "text": "public function logOff(){\r\n $_SESSION['cLogin'] = \"\";\r\n }", "title": "" }, { "docid": "a29bd92f5a3832da171462780036d1dd", "score": "0.7008599", "text": "public function Logout(){\n\t\t$this->session->unset_userdata('logged_in');\n\t\t//destroy the session\n\t\t$this->session->sess_destroy();\n\t\t//load the login page\n\t\t$this->index();\n\t}", "title": "" }, { "docid": "23f5bb716961d15224c4688e68309995", "score": "0.70078844", "text": "public function logout() {\n\t\tsession_unset(); \n\n\t\t// destroy the session \n\t\tsession_destroy(); \n\t\theader( \"Location: \".vendor_app_util::url(array('ctl'=>'login')));\n\t}", "title": "" }, { "docid": "e10c260e9d2a63705583ff6da99a2b49", "score": "0.7006438", "text": "public function logout()\r\n {\r\n $this->m_bLogoutSuccess = $this->m_logicLogin->logout();\r\n }", "title": "" }, { "docid": "2a3d556e7c93a1e395e0cbe07902a5be", "score": "0.69991946", "text": "public function logout()\n\t{\n\n\t}", "title": "" }, { "docid": "7e6fdd02ddc895f7905bcc014ee1325b", "score": "0.69947416", "text": "function logout() {\n\t\t\t$ide = new IDE;\n\t\t\t$_SESSION['logged'] = '';\n\t\t\t$_SESSION['account_id'];\n\t\t\t$_SESSION['name'] = '';\n\t\t\t$_SESSION['admin'] = 0;\n\t\t\t$ide->redirect('login/1');\n\t\t}", "title": "" }, { "docid": "138dccd29032217f310fbc9982385494", "score": "0.69931203", "text": "public function signOut() {\n \n session_unset();\n \n \\Http::redirect('index.php?controller=user&task=login');\n \n }", "title": "" }, { "docid": "e1b52a33984becaa833b68bd78ba6053", "score": "0.6984906", "text": "public static function logout()\n {\n $http = eZHTTPTool::instance();\n\n $http->removeSessionVariable( self::CMIS_USER );\n $http->removeSessionVariable( self::CMIS_PASSWORD );\n }", "title": "" }, { "docid": "0498fc1271df9d4a4226f90a8d5690bd", "score": "0.6971331", "text": "public function logout()\n {\n session_destroy();\n }", "title": "" }, { "docid": "46f9e225cb76c0b2f0e90639aa2c5079", "score": "0.6967844", "text": "static function logout(){\n if( count(self::get_session()) == 1 ){\n $_SESSION['session_user'] = array();\n return self::logged_in();\n }\n }", "title": "" }, { "docid": "7f49e4668f893276bcd8938537676fa2", "score": "0.69659555", "text": "public static function doLogout(){\r\n //Delete OP ID & Session ID Cookie. Destroy PHP Session\r\n setcookie(\"TSAOP\", \"\", time()-3600);\r\n session_destroy();\r\n }", "title": "" }, { "docid": "202bc25082e67677d31a558ff756f442", "score": "0.69649434", "text": "public static function logout(){ \r\n LogController::post(['request'=>'Logout','description'=>'Logout from ip:'.$_SERVER['REMOTE_ADDR'],$_SERVER[\"REMOTE_ADDR\"]]);\r\n unset($_SESSION['username']);\r\n header('Location:/');\r\n exit;\r\n }", "title": "" }, { "docid": "b8ba25214201e4f8b6997c8c1a8f3181", "score": "0.69630104", "text": "public function logout() {\n $this->db->update(\"Accounts\", Array(\"last_session_id\" => \"\"), \"last_session_id='\" . session_id() . \"'\");\n }", "title": "" }, { "docid": "855b65503250a508cfa62c807f1e9374", "score": "0.6957033", "text": "public function logout()\n {\n $ret = $this->request('POST', 'logout');\n $this->logger->debug('logout ret', $ret);\n }", "title": "" }, { "docid": "29eb4a7bf17f58bf2269252398f93db1", "score": "0.69566816", "text": "public function logout()\n {\n session_destroy();\n $_SESSION['userSession'] = false;\n }", "title": "" }, { "docid": "5a3d65094f2bf3c205dee123b7fc06da", "score": "0.69539404", "text": "function logout(){\r\n\r\n $this->destroysession();\r\n $this->log->errorlogin();\r\n\r\n}", "title": "" }, { "docid": "224e000b6309f8d560104e51d5453031", "score": "0.6949877", "text": "public function logout() {\n session_destroy();\n }", "title": "" }, { "docid": "f9053c3d8e2269ce26caa38b5aaa22aa", "score": "0.6947748", "text": "public function logOut()\n { \n session_destroy();\n header('Location:/user/login');\n }", "title": "" }, { "docid": "ea538336711628cdf5a7aded93f3c351", "score": "0.6942053", "text": "public function actionlogout() {\n // Guests are not allowed\n if (Yii::app()->user->isGuest) {\n $this->redirect(Yii::app()->homeUrl);\n }\n $session_id = session_id();\n\n Yii::app()->user->logout(true);\n Yii::app()->user->setFlash('success', Yii::t('global', 'You are now logged out.'));\n $this->redirect(Yii::app()->homeUrl);\n }", "title": "" }, { "docid": "f1a70a3034b488dbe3e9b29d2eb8ef17", "score": "0.6937956", "text": "function log_out() {\n\t\t// (i.e. logging out)\n\n\t\t// 1. Find the session\n\t\t\n\t\tsession_start();\n\t\t\n\t\t// 2. Unset all the session variables\n\t\t$_SESSION = array();\n\t\t\n\t\t// 3. Destroy the session cookie\n\t\tif(isset($_COOKIE[user_id()])) {\n\t\t\tsetcookie(user_id(), '', time()-42000, '/');\n\t\t}\n\t\t\n\t\t// 4. Destroy the session\n\t\tsession_destroy();\n\t\t\n\t\tredirect_to(\"/logout\");\n\n }", "title": "" }, { "docid": "42678eb7b65e87b347f8de619d0b24f2", "score": "0.6933792", "text": "public function log_out(){\n\t\t\tif($this->logged_in())\n\t\t\t\tUsers::log_out();\n\t\t}", "title": "" }, { "docid": "0e2a24d119bc86775e305ac847c3197a", "score": "0.69323874", "text": "public function logoutAction() {\n $_SESSION['Incite'] = array();\n setup_session();\n die();\n }", "title": "" }, { "docid": "0c13d85f07d67dc09c87695ef215a16a", "score": "0.6931316", "text": "public function logout()\n {\n $this->setSessionID('');\n $this->setSessionSec('');\n return true;\n }", "title": "" }, { "docid": "3d5d07d855083a2cc8dfdf174f7a0019", "score": "0.69310606", "text": "function logout()\r\n {\r\n }", "title": "" }, { "docid": "25981065126c10d5d1cff2b93aca73aa", "score": "0.69306064", "text": "public static function logout() {\n\t\tZend_Auth::getInstance()->clearIdentity();\n\t\t// Let session end when browser is closed\n\t\tZend_Session::forgetMe();\n\t}", "title": "" }, { "docid": "a2fbf15eacf869b4cb348988cf625c7d", "score": "0.69291437", "text": "public function logout() {\n\t\tunset($_SESSION[\"login_id\"]);\n\t}", "title": "" }, { "docid": "8edd034173ef848169db07e6abd75b92", "score": "0.6927259", "text": "function logout()\n {\n //foreach ($_SESSION as $session)\n //{\n // return $this->errorObject->logError('Logout ('.date(\"m-d-Y\").'): ', $session);\n //}\n //session_unset();\n foreach ($_SESSION as $session)\n {\n \tunset($session);\n }\n\n session_destroy();\n //header(\"location:index.php?user=&page=login\");\n header(\"location:/managedNOC/index.php?user=\");\n return(1);\n }", "title": "" }, { "docid": "7d0c26291b55ae83db268b205502de13", "score": "0.6924151", "text": "private function _logoff()\r\n\t{\r\n\t\t$this->_oxFunction('logoff', array($this->_session_id));\r\n\t\tunset($this->_session_id);\r\n\t}", "title": "" }, { "docid": "fee8a6ceae8d1c6ef94540f923675cd2", "score": "0.6920215", "text": "private function doLogout() {\n $this->objSession->logout();\n }", "title": "" }, { "docid": "0d963fc7206e773d6effe479af9a5299", "score": "0.69177645", "text": "function userLogOut(){\n\tsession_destroy();\n}", "title": "" }, { "docid": "ca052a5a1bc255ee8a3fa210c1a6afb0", "score": "0.6908101", "text": "function Logout()\n\t{\n\t\t$_SESSION = array();\n\n\t\t// If it's desired to kill the session, also delete the session cookie.\n\t\t// Note: This will destroy the session, and not just the session data!\n\t\tif (ini_get(\"session.use_cookies\")) {\n\t\t\t$params = session_get_cookie_params();\n\t\t\tsetcookie(session_name(), '', time() - 42000,\n\t\t\t\t$params[\"path\"], $params[\"domain\"],\n\t\t\t\t$params[\"secure\"], $params[\"httponly\"]\n\t\t\t);\n\t\t}\n\n\t\t// Finally, destroy the session.\n\t\tsession_destroy();\n\t\t\n\t\theader(\"location: index.php\"); // Redirecting To Home Page\n\t}", "title": "" }, { "docid": "2fd7ae616c72e6ebced081c006197805", "score": "0.6900647", "text": "public function logout() {\n\t\t//assume the client code already started the session\n\t\t//destroy the cookie\n\t\tsetcookie(session_name(),'', time() - 42000);\n\t\t//unset session values\n\t\t$_SESSION = [];\n\t\t// Destroy session\n\t\tsession_destroy();\n\t\t//redirect\n\t\theader('Location: index.php');\n\t}", "title": "" }, { "docid": "1ae59035fa4cebed351e3e55d0b64852", "score": "0.6895826", "text": "public function Logout(){\n\t\tif(isset($this->session->userdata['logged_in']) && !empty($this->session->userdata['logged_in'])){\n \t\t\t$this->session->unset_userdata('logged_in');\n \t\t\t$this->session->unset_userdata('outlets');\n \t\t\t$this->session->sess_destroy();\n \t\t}\n\t\tredirect(base_url().'BusinessAdmin/Login','refresh');\n\t}", "title": "" }, { "docid": "7ff8bcec27e3002c11f68466fb4fe1d4", "score": "0.68956584", "text": "public function logout() {\r\n $app = Core\\Edge::app();\r\n\t\t$app->session->destroy();\r\n $userClass = Core\\Edge::app()->getConfig('userClass');\r\n $app->user($userClass::getUserByUsername(\"guest\"));\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "c7c3d9218e593ecaafd0665b2d6df382", "score": "0.6894875", "text": "function logout(){\n session_destroy();\n }", "title": "" }, { "docid": "9887dad265d3931a963b805629d59f88", "score": "0.6893921", "text": "protected function logout() {\n\n if(session_status() == PHP_SESSION_ACTIVE) {\n\n $sql = 'DELETE FROM `user_sessions` WHERE (`session_id` = ?)';\n $param = array(session_id());\n $this->insert($sql, $param);\n }\n }", "title": "" }, { "docid": "9186da8e2e6cc36bf08f54d2a991e4ea", "score": "0.68930465", "text": "function LogoutUser()\n{\n session_start();\n session_unset();\n session_destroy();\n}", "title": "" }, { "docid": "a57a943743ba055fcf3525403ed32bc3", "score": "0.68897754", "text": "private function logout() {\n $this->loginModel->logOut();\n $this->credentialsHandler->clearCredentials();\n $this->loginView->setLogoutMessage();\n }", "title": "" }, { "docid": "2dc744d0a165e9d4dd05ab711af4f28a", "score": "0.6879434", "text": "public function logoff();", "title": "" }, { "docid": "f71082548884fe6b6c65cbae80668400", "score": "0.68791795", "text": "public static function logout()\n\t\t{\t\n\t\t\t$_SESSION = array(); //reset dell'array _SESSION\t\n\t\t\tif(session_id()\t!= \"\" || isset($_COOKIE[session_name()]))\n\t\t\t{\t\n\t\t\t\tsetcookie(session_name(),\t '' ,\ttime()\t-\t2592000,\t '/' );\t\n\t\t\t}\t\n\t\t\tsession_destroy();\t\n\t\t}", "title": "" }, { "docid": "fbe692dcc20382aa39f9eac183ed395c", "score": "0.6875133", "text": "public function logout()\n\t{\n\t\t$this->session->sess_destroy();\n\t}", "title": "" }, { "docid": "560b5ef6d0893b12fd50ad654ce53eaa", "score": "0.68715566", "text": "public static function logOut()\n {\n if (Session::loginStatus()) {\n session_destroy();\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "fd71c270680fe212bcc600ed36ac46c5", "score": "0.6868906", "text": "public function logOut() {\n $this->session->unset_userdata('user');\n redirect();\n }", "title": "" }, { "docid": "418b4a4dc9287c5da281adf822b86ce2", "score": "0.68686473", "text": "public function logout() {\n session_destroy();\n session_start();\n $this->authenticated = false;\n }", "title": "" } ]
1b39e02288f33f806d95ffad0bcd4534
Seed the application's database.
[ { "docid": "9818a83ee43e1dd8c03c4549acbc81b7", "score": "0.0", "text": "public function run()\n {\n Category::factory(10)->create()->each(function (Category $category) {\n $products = Product::factory(30)->make();\n\n $category->products()->saveMany($products)->each(function (Product $product){\n $procons = Procon::factory(5)->make();\n $product->procons()->saveMany($procons);\n });\n\n });\n\n Order::factory(12)->create()->each(function (Order $order) {\n $orderLines = Product::all()->random(rand(1,5))->map(function (Product $product) {\n $orderLine = new OrderLine();\n $orderLine->product_id = $product->id;\n $orderLine->price = $product->price;\n $orderLine->name = $product->name;\n $orderLine->quantity = rand(1, 4);\n\n return $orderLine;\n });\n\n $order->orderlines()->saveMany($orderLines);\n\n });\n }", "title": "" } ]
[ { "docid": "a6579d8cd98a7a688483202fa45add65", "score": "0.78815496", "text": "protected function dbSeed()\n {\n $this->call('db:seed', [\n '--database' => $this->connection['name'],\n '--class' => $this->seeder,\n '--force' => $force = $this->input->getOption('force')\n ]);\n }", "title": "" }, { "docid": "dab1960cc510dc1d8d27ce37dd4fd7d3", "score": "0.75653374", "text": "public function setUpDatabase() {\n\n\t\t/**\n\t\t * We will be doing a little database testing in this model.\n\t\t * So we want to refresh our test database by rolling back and re-running all migrations... and seeding the database\n\t\t */\n\t\tArtisan::call('migrate');\n\t\tArtisan::call('db:seed');\n\t}", "title": "" }, { "docid": "6696433850c196935e78ab097bbe841b", "score": "0.74069774", "text": "protected function seedDatabase() : void\n {\n $this->loadMigrationsFrom(realpath(__DIR__ . '/..') . '/support/migrations');\n\n $this->user = DB::table('users')->insertGetId([\n 'name' => 'John Doe',\n 'email' => '[email protected]',\n 'password' => bcrypt('password'),\n ]);\n }", "title": "" }, { "docid": "45044d2844957837216250302ad9baf5", "score": "0.7379382", "text": "public function runDatabaseSeeds()\n {\n $this->artisan('db:seed');\n }", "title": "" }, { "docid": "a9e4ba634d62832911e3aaa59bdcda22", "score": "0.7362903", "text": "public function run()\n {\n if (App::environment() === 'production') {\n exit('Do not seed in production environment');\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // disable foreign key constraints\n DB::table('screenings')->truncate();\n Screening::create([\n 'id' => 1,\n 'patientId' => 1,\n 'volunteerId' => 2, \n 'eventId' => 2\n ]);\n DB::statement('SET FOREIGN_KEY_CHECKS = 1'); // enable foreign key constraints\n }", "title": "" }, { "docid": "f3d217d48d6398149d04388ef73b7b2a", "score": "0.6980551", "text": "public function run()\n {\n if (app()->environment() == 'local') {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n $this->call(RolesSeeder::class);\n $this->call(UsersSeeder::class);\n $this->call(PostsSeeder::class);\n $this->call(PostsMediaSeeder::class);\n $this->call(CategoriesSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }\n if (app()->environment() == 'production') {\n $this->call(RolesProductionSeeder::class);\n $this->call(UsersProductionSeeder::class);\n $this->call(PostsProductionSeeder::class);\n $this->call(CategoriesProductionSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }\n }", "title": "" }, { "docid": "0236befb6bc05649838407d25a556845", "score": "0.6942393", "text": "public function run()\n {\n $path = base_path().'/database/seeds/sql/seed_config_data.sql';\n $sql = file_get_contents($path);\n echo \"Seed file {$path}\\n\";\n DB::unprepared($sql);\n }", "title": "" }, { "docid": "083b0800a55216ff599d6093ed0d8de8", "score": "0.69414836", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n\n foreach ($this->tables as $table) {\n DB::table($table)->truncate();\n }\n\n User::create([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n ]);\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n\n foreach ($this->seeds as $seed) {\n $this->call($seed);\n }\n\n\n }", "title": "" }, { "docid": "2bfba5dc2d1c3f62eb529c4f407a8fcd", "score": "0.69213355", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker\\Factory::create();\n\n DB::table('articles')->insert([\n 'name' => $faker->title,\n 'description' => $faker->text,\n 'created_at' => new \\DateTime(),\n 'updated_at' => new \\DateTime(),\n ]);\n }", "title": "" }, { "docid": "37b508453fa951f440354e529ecdd1d6", "score": "0.69067806", "text": "public function run()\n {\n DB::statement(\"TRUNCATE TABLE users CASCADE\");\n\n App\\User::create([\n 'name' => 'tester',\n 'email' => '[email protected]',\n 'password' => bcrypt('secret'),\n 'remember_token' => str_random(10),\n ]);\n factory(App\\User::class, 1)->create();\n }", "title": "" }, { "docid": "fea911eb83c4942003ae2b42dc41ded3", "score": "0.69049037", "text": "public static function Seed() {\n\t\tself::SeedClassTable();\n\t\tself::SeedExpansionTable();\n\t\tself::SeedRaidTierTable();\n\t}", "title": "" }, { "docid": "120274b83b13efad13e4d0a22631a7e2", "score": "0.68873894", "text": "public function run()\n {\n\n $this->seedersPath = database_path('seeds').'/';\n $this->seed('MessagesTableSeeder');\n\n $this->seed('WishesTableSeeder');\n $this->seed('PresentsTableSeeder');\n\n $this->seed('InstitutionsTableSeeder');\n $this->seed('LocationsTableSeeder');\n $this->seed('OpeningHoursTableSeeder');\n\n $this->seed('FaqsTableSeeder');\n\n //$this->seed('PermissionRoleTableSeeder');\n }", "title": "" }, { "docid": "14bcfcdf178e55585d48d15b958ccfc6", "score": "0.6879878", "text": "public function run()\n {\n $data = json_decode(file_get_contents(database_path('seeds/data/voyager.json')), true);\n foreach ($data as $table => $tableData) {\n $this->command->info(\"Seeding ${table}.\");\n \\Illuminate\\Support\\Facades\\DB::table($table)->delete();\n \\Illuminate\\Support\\Facades\\DB::table($table)->insert($tableData);\n }\n\n// $this->seed('DataTypesTableSeeder');\n// $this->seed('DataRowsTableSeeder');\n $this->seed('MenusTableSeeder');\n// $this->seed('MenuItemsTableSeeder');\n $this->seed('RolesTableSeeder');\n $this->seed('PermissionsTableSeeder');\n $this->seed('PermissionRoleTableSeeder');\n $this->seed('SettingsTableSeeder');\n }", "title": "" }, { "docid": "fb7d5bba21289ca1ca2041a5e18bd077", "score": "0.68723965", "text": "public function run()\n {\n// factory(Category::class, 20)->create();\n// factory(Post::class, 50)->create();\n// factory(Tag::class, 10)->create();\n\n $this->call(UserTableSeed::class);\n $this->call(PostTableSeed::class);\n }", "title": "" }, { "docid": "301b33b51c3fe8c9f12d995d55ae7e7d", "score": "0.6870337", "text": "public function run()\n {\n User::create([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'role' => 'admin',\n 'password' => bcrypt('admin'),\n ]);\n User::create([\n 'name' => 'user',\n 'email' => '[email protected]',\n 'password' => bcrypt('user'),\n ]);\n $this->call(CategoriesTableSeeder::class);\n $this->call(GuidesTableSeeder::class);\n $this->call(PlacesTableSeeder::class);\n $this->call(ServicesTableSeeder::class);\n }", "title": "" }, { "docid": "362169b9dac7e15233f3d10273d5aae4", "score": "0.68644124", "text": "public function run()\n {\n factory(Blog::class, 10)->create();\n factory(Task::class, 82)->create();\n factory(Product::class, 5)->create();\n\n User::insert([\n 'email' => '[email protected]',\n 'name' => 'Administrator',\n 'password' => bcrypt('secret'),\n ]);\n }", "title": "" }, { "docid": "4edb26e07c12dc08b3c7f1b2fd081124", "score": "0.6850782", "text": "public function initDatabase()\n {\n $this->call('migrate');\n\n $userModel = config('idiom.database.rd_cyjl');\n\n /*if ($userModel::count() == 0) {\n $this->call('db:seed', ['--class' => \\Encore\\Admin\\Auth\\Database\\AdminTablesSeeder::class]);\n }*/\n }", "title": "" }, { "docid": "d78e5bb67e86b0ecb15619a9c942c861", "score": "0.68364024", "text": "public function run(): void\n {\n $this->seedUsers();\n }", "title": "" }, { "docid": "74adb703f4d2ee8eeea828c6234b41f3", "score": "0.68241554", "text": "public function run()\n {\n Eloquent::unguard();\n\n $this->seed('Categories');\n\n // Illustration\n $this->seed('Supports');\n $this->seed('Illustrations');\n\n // Photography\n $this->seed('Photosets');\n $this->seed('Collections');\n $this->seed('Photos');\n\n $this->seed('Articles');\n $this->seed('Repositories');\n $this->seed('Services');\n $this->seed('Stories');\n $this->seed('Tableaux');\n $this->seed('Tracks');\n }", "title": "" }, { "docid": "a693c773daeb9ed2c3a5dca3b56c8e7d", "score": "0.6823892", "text": "public function run() {\n Eloquent::unguard();\n\n if (App::environment() === 'development' || App::environment() === 'local') {\n// echo \"\\nSeeding Development Seeders\\n\";\n// echo \"\\n=================================\\n\\n\";\n $this->developmentSeeder();\n } else if (App::environment() === 'testing') {\n// echo \"\\nSeeding Test Seeders\\n\";\n// echo \"\\n=================================\\n\\n\";\n $this->testingSeeder();\n } else {\n echo \"Unsupported environment: \" . App::environment();\n }\n }", "title": "" }, { "docid": "e83792167cb4bc20cda2cb3330b32591", "score": "0.68120635", "text": "public function run()\n {\n try {\n\n DB::beginTransaction();\n $this->_createTableData();\n DB::commit();\n\n } catch (\\Exception $e) {\n\n DB::rollBack();\n \\Log::info('[tag dbSeed Exception]: ' . $e);\n\n }\n }", "title": "" }, { "docid": "aa68c1b89bf41808ef76558d8ee8965c", "score": "0.6801601", "text": "public function initDatabase()\n {\n $this->call('migrate', ['--path' => './vendor/oyhdd/hyperf-admin/database/migrations/']);\n $userModel = config('admin.database.user_model');\n\n if ($userModel::count() == 0) {\n $this->call('db:seed', ['--path' => './vendor/oyhdd/hyperf-admin/database/seeders/']);\n }\n }", "title": "" }, { "docid": "5ffeb70487bb6419b4f60d930d4e7b00", "score": "0.67973745", "text": "public function run()\n {\n\n UserAddress::truncate();\n $faker = Factory::create();\n $this->seedCountries($faker);\n $this->seedCities($faker);\n $this->seedRoles($faker);\n $this->seedDepartments($faker);\n $this->seedUsers($faker);\n $this->seedUserAddress($faker);\n }", "title": "" }, { "docid": "ff42adb6774e0bbeff44a5168ad219fd", "score": "0.67916125", "text": "public function run()\n {\n $this->call([\n PermissionsTableSeeder::class,\n ]);\n\n \\App\\Models\\User::factory(10)->create();\n\n \\App\\Models\\Blog::factory(100)->create();\n }", "title": "" }, { "docid": "102a7ac2c5bf3d7bd06597a234035ae0", "score": "0.6788331", "text": "public function run()\n {\n \\App\\User::create(['name'=>\"asd\", 'email'=>\"[email protected]\", 'password'=>Hash::make(\"123456\")]);\n \n $directorio = \"database/seeds/json_seeds/\";\n $archivos = scandir($directorio);\n \n for($i = 2; $i < sizeof($archivos); $i++)\n {\n $nombre = explode(\".\", $archivos[$i])[1];\n \n $fullPath = \"App\\Models\\\\\" . $nombre;\n echo \"Seeding \". $i.\") \".$fullPath .\"...\\n\";\n $instance = (new $fullPath());\n \n $table = $instance->table;\n \n $json = File::get(\"database/seeds/json_seeds/\" . $archivos[$i]);\n \n DB::table($table)->delete();\n \n $data = json_decode($json, true);\n \n foreach ($data as $obj)\n {\n $instance::create($obj);\n }\n \n }\n \n \n }", "title": "" }, { "docid": "7ceb6ef657f7e8ce52446910ee9cfafa", "score": "0.6783699", "text": "protected function setUp()\n {\n $this->databaseSeed();\n parent::setUp();\n }", "title": "" }, { "docid": "3b24c0b9af61dd018720b9e612654ae7", "score": "0.67733926", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n try {\n DB::table('tbl_admin')->insert([\n 'admin_name' => 'admin',\n 'admin_email' => '[email protected]',\n 'admin_phone' => '0934065565',\n 'admin_password' => Hash::make('12345678')\n ]);\n }catch (\\Exception $exception){\n Log::error(\"[Seed Admin]\". $exception->getMessage());\n }\n }", "title": "" }, { "docid": "e5f27059aa9059441233f208fea616a8", "score": "0.67733175", "text": "public function run()\n {\n Model::unguard();\n\n $this->call('CategoriesTableSeeder');\n $this->call('RolesTableSeeder');\n $this->call('UsersTableSeeder');\n\n \\App\\Models\\User::findOrNew(1)->roles()->attach(1);\n \\App\\Models\\User::findOrNew(1)->roles()->attach(4);\n \\App\\Models\\User::findOrNew(2)->roles()->attach(2);\n \\App\\Models\\User::findOrNew(2)->roles()->attach(4);\n \\App\\Models\\User::findOrNew(3)->roles()->attach(4);\n \\App\\Models\\User::findOrNew(4)->roles()->attach(5);\n \\App\\Models\\User::findOrNew(5)->roles()->attach(6);\n\n $this->call('PostsTableSeeder');\n $this->call('ProfilesTableSeeder');\n\n Model::reguard();\n }", "title": "" }, { "docid": "51aaced69f566ada8bc5ae9132f2fad2", "score": "0.6763334", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n DB::statement(\"SET foreign_key_checks=0\");\n // Offerer::truncate();\n // ContractType::truncate();\n // User::truncate();\n // Agency::truncate();\n // Subsector::truncate();\n // Source::truncate();\n // Sector::truncate();\n // Role::truncate();\n // OrganizationUnit::truncate();\n // Organization::truncate();\n // Official::truncate();\n DB::statement(\"SET foreign_key_checks=1\");\n \n // $this->call(BannerSeeder::class);\n // $this->call(AgencySeeder::class);\n\n // User::create([\n // 'name' => 'Administrator',\n // 'username' => 'admin',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('testing'),\n // 'type' => 'admin',\n // ]);\n\n // $agency = Agency::create([\n // 'name' => 'PUTR',\n // 'full_name' => 'Dinas Pekerjaan Umum dan Penataan Ruang',\n // ]);\n\n // User::create([\n // 'name' => 'PUTR',\n // 'username' => 'putr',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('testing'),\n // 'agency_id' => $agency->id,\n // 'type' => 'agency',\n // ]);\n\n $this->call(ProjectStatusSeeder::class);\n\n // $org = Organization::create([\n // 'name' => 'General Directorate of Roads (DGC)',\n // 'legal_name' => 'General Directorate of Roads (DGC)',\n // 'description' => 'The Directorate-General for Traffic (Spanish: Dirección General de Tráfico, DGT) is the government department that is responsible for the Spanish road transport network.',\n // 'address' => 'C. Josefa Valcarcel, 28 - 28071 Madrid - España',\n // 'phone' => '22-32-72-00 ext:1501',\n // 'postal_code' => '421423',\n // 'main' => 0,\n // 'open_uri' => '',\n // 'website' => 'www.dgt.es',\n // ]);\n\n // $unit = OrganizationUnit::create([\n // 'unit_name' => 'UNIDAD DE APOYO TECNICO Y SEGURIDAD VIAL. (UATSV)',\n // 'entity_id' => $org->id,\n // ]);\n\n // $official = Official::create([\n // 'entity_unit_id' => $unit->id,\n // 'name' => 'Rene Echeverria',\n // 'position' => 'Credit Coordinator',\n // 'email' => '[email protected]',\n // 'phone' => '33092329',\n // ]);\n\n // $role = Role::create([\n // 'role_name' => 'Coordinator',\n // ]);\n\n // $sector = Sector::create([\n // 'sector_name' => 'Infrastructure Sector',\n // ]);\n\n // $subsector = Subsector::create([\n // 'sector_id' => $sector->id,\n // 'subsector_name' => 'Road subsector',\n // ]);\n\n // $source = Source::create([\n // 'source_name' => 'World Bank',\n // 'acronym' => 'WB',\n // ]);\n\n // $contractType = ContractType::create([\n // 'type_name' => 'Building',\n // ]);\n\n // $offerer = Offerer::create([\n // 'offerer_name' => 'Astaldi',\n // 'legal_name' => 'Astaldi S.p.A',\n // 'description' => 'We are an international construction group with a leading position in Italy and among the top 100 International Contractors.',\n // 'phone' => '+39 06 41766 1',\n // 'address' => 'Bureau Administratif et Financier. Lottissement 19/20 Aissat - Idir Cheraga - W Alger',\n // 'website' => 'https://www.astaldi.com/',\n // ]);\n }", "title": "" }, { "docid": "6134ad8a390f257a1f71b5e885e49643", "score": "0.6763222", "text": "public function run()\n {\n $this->databasePath = database_path();\n \n foreach ($this->seeds as $seed) {\n $this->call($seed);\n }\n }", "title": "" }, { "docid": "90a5fc026ca8895407886d63a96bf124", "score": "0.6763141", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n if(config('database.default') !== 'sqlite') {\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n }\n\n App\\User::truncate();\n $this->call(UsersTableSeeder::class);\n\n App\\Product::truncate();\n $this->call(ProductsTableSeeder::class);\n \n App\\Question::truncate();\n $this->call(QuestionsTableSeeder::class);\n\n App\\Answer::truncate();\n $this->call(AnswersTableSeeder::class);\n\n App\\Order::truncate();\n $this->call(OrdersTableSeeder::class);\n \n App\\Challenge::truncate();\n $this->call(ChallengesTableSeeder::class);\n\n App\\Category::truncate();\n $this->call(CategoriesTableSeeder::class);\n\n App\\StretchPost::truncate();\n $this->call(StretchPostsTableSeeder::class);\n\n if(config('database.default') !== 'sqlite') {\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n }\n }", "title": "" }, { "docid": "c99d3e4f4f24ab86317c2f8ce33ab7d4", "score": "0.6760986", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // disable foreign key constraints\n\n Church::truncate();\n\n ChurchesTableSeeder::create([\n \t'name'=>'CE Ikosi',\n \t'email'=>'[email protected]',\n \t'zone' => 'Zone 1',\n \t'country' => 'Nigeria',\n \t'user_id'=>1 \t\n \t]);\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 1'); // enable foreign key constraints\n }", "title": "" }, { "docid": "b8154b296420a129dd21cd1aedbcd1dc", "score": "0.6759361", "text": "public function run()\n\t{\n\t\tEloquent::unguard();\n\t\t$this->cleanUp();\n\n\t\t//call the seeders\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\t\t$this->call('UsersTableSeeder');\n\t\t$this->call('ClientTableSeeder');\n\t\t$this->call('ComponentTableSeeder');\n\t\t$this->call('ApplicationTableSeeder');\n\t\t$this->call('NewsCategoryTableSeeder');\n\t\t$this->call('NewsTableSeeder');\n\t\t$this->call('QuestionTableSeeder');\n\t\t$this->call('AnswerTableSeeder');\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 1');\n\t}", "title": "" }, { "docid": "29f7084da1d9396f7e2f863c0b517138", "score": "0.67521507", "text": "public function run()\n {\n \n // There are no foreign relationships but set it here anyways\n //DB::statement('SET_FOREIGN_KEY_CHECKS = 0');\n Appointment::truncate();\n Model::unguard();\n\n // $this->call('UserTableSeeder');\n\n $this->call('AppointmentsSeed');\n\n Model::reguard();\n }", "title": "" }, { "docid": "4da1f5e41284048bb915dc98a445301e", "score": "0.6745601", "text": "public function run()\n {\n factory(App\\Models\\EcomSetting::class,1)->create();\n $this->call(CurrenciesTableSeeder::class);\n $this->call(CountriesTableSeeder::class);\n $this->call(UserSeeder::class);\n factory(App\\Models\\ProductTags::class,10)->create();\n factory(App\\Models\\User\\UserProfile::class,7)->create();\n $this->call(ProductCategoryTableSeeder::class);\n $this->call(ProductSeeder::class);\n $this->call(BrandSeeder::class);\n $this->call(SiteSettingTableSeeder::class);\n }", "title": "" }, { "docid": "97e14a1bb26c9eae811d374370108b66", "score": "0.6745542", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n Category::truncate();\n Product::truncate();\n factory(App\\Category::class,5)->create();\n factory(App\\Product::class,50)->create();\n // $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "7b7f1ccca915745c7583e92fd3ad0c7d", "score": "0.67390454", "text": "public function run()\n {\n $this->seedOauthClientAccess();\n $this->seedPrimaryPages();\n $this->seedDevPosition();\n $this->seedDevPositionAccesses(1);\n $this->seedDevAccount();\n $this->seedDummyDataForTesting();\n\n // $this->call(UsersTableSeeder::class);\n\n //MODULE SEEDINGS\n $this->seedDefaultBenefitTypes();\n $this->seedDefaultPaymentModes();\n $this->seedDefaultPreExisting();\n $this->seedDefaultPaymentMethod();\n $this->seedDefaultProcedureTypes();\n $this->seedDefaultProcedures();\n\n // $this->seedDefaultTesting();\n }", "title": "" }, { "docid": "2db117b1d28054b0f08a58115645189d", "score": "0.67352927", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n // ?for seeding categories\n // Category::factory(5)->create();\n //? for seeding posts \n Post::factory(3)->create([\n 'category_id' => 5\n ]);\n }", "title": "" }, { "docid": "9fc640f0bf1a15bdf77b75141feed935", "score": "0.67321366", "text": "protected function initDB()\n {\n $this->create();\n }", "title": "" }, { "docid": "6fd37af4061bceb7c3ed860b1db5b07b", "score": "0.67320895", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 1)->create([\n 'role' => 'admin'\n ]);\n factory(App\\Question::class, 1)->create(['user_id' => 1])->each(function ($question) {\n $question->hashtags()->save(factory(App\\Hashtag::class)->make());\n });\n factory(App\\Comment::class, 1)->create([\n 'question_id' => 1\n ]);\n }", "title": "" }, { "docid": "ef09913bf304f611b2cd7933a621ea17", "score": "0.6728993", "text": "public static function initDatabase()\n {\n static::_deleteDatabase();\n static::_createConnection();\n static::_createTestSchema();\n static::_createMigrations();\n static::_applyMigrations();\n }", "title": "" }, { "docid": "4e46b7bb96a9b107e192d86757a18608", "score": "0.67250586", "text": "public function run()\n {\n $this->cleanDatabase();\n $this->call('TableSeeders');\n }", "title": "" }, { "docid": "0966d7399ec08c4b1b1fb494706dc8ef", "score": "0.67244196", "text": "public function run()\n {\n echo \" \\n ******* Starting database seeder ******* \\n\";\n\n // Order is important for data seeding\n $this->call(LocalesTableSeeder::class);\n $this->call(ModulesTableSeeder::class);\n $this->call(ModulePlansTableSeeder::class);\n $this->call(ModuleSchemasTableSeeder::class);\n $this->call(ForumModuleTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(LinkTypesTableSeeder::class);\n $this->call(MenuGroupsTableSeeder::class);\n $this->call(PermissionRouteNameTableSeeder::class);\n // $this->call(MenusTableSeeder::class);\n $this->call(ParameterGroupsTableSeeder::class);\n $this->call(ParametersTableSeeder::class);\n $this->call(AddProcedureToModulesTableSeeder::class);\n $this->call(AddOutilGestionModuleToModulesTableSeeder::class);\n // $this->call(LocationsTableSeeder::class);\n $this->call(CountriesTableSeeder::class);\n $this->call(CountryTranslationsTableSeeder::class);\n /*\n * Keep This Commented we may use them instead of LocationsTableSeeder\n *\n $this->call(GovernoratesTableSeeder::class);\n $this->call(GovernorateTranslationsTableSeeder::class);\n $this->call(CitiesTableSeeder::class);\n $this->call(CityTranslationsTableSeeder::class);\n $this->call(ZonesTableSeeder::class);\n $this->call(ZoneTranslationsTableSeeder::class);*/\n\n $this->customApp();\n\n $this->fakeData();\n }", "title": "" }, { "docid": "a012c0f9a42a21c3e5fbde8fea222e4c", "score": "0.67168677", "text": "public function run()\n {\n Model::unguard();\n \n $this->call(EventsSeeder::class);\n $this->call(TeamMembersSeeder::class);\n $this->call(AdvisersSeeder::class);\n $this->call(AlumniSeeder::class);\n $this->call(PartnershipTypesSeeder::class);\n $this->call(PartnersSeeder::class);\n $this->call(SpeakersSeeder::class);\n \n DB::table('users')->insert([\n 'username' => 'marius',\n 'password' => '$2y$10$MddeaPC5ZX3X9spzXxH7l.8vPTF/OvYj9Ny.ocH6nJyNXyifHrsli',\n ]);\n \n }", "title": "" }, { "docid": "17846289edb803267c3282ae086c93ad", "score": "0.67124754", "text": "public function setUp()\n {\n parent::setUp();\n\n Artisan::call('migrate:refresh');\n $this->seed('DatabaseSeeder');\n $this->seed('TestDataSeeder');\n }", "title": "" }, { "docid": "374019bbfb3e48567fff7d176012834a", "score": "0.67076474", "text": "public function run()\n {\n Model::unguard();\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n foreach ($this->toTruncate as $table) {\n DB::table($table)->truncate();\n }\n\n /**\n * Disables mailable sent when running factory seeder\n */\n User::flushEventListeners();\n Agent::flushEventListeners();\n Customer::flushEventListeners();\n Product::flushEventListeners();\n Category::flushEventListeners();\n Service::flushEventListeners();\n Role::flushEventListeners();\n Image::flushEventListeners();\n Profile::flushEventListeners();\n Permission::flushEventListeners();\n\n DB::table('category_product')->truncate();\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 1');\n\n $this->call(UsersTableSeeder::class);\n $this->call(AgentsTableSeeder::class);\n $this->call(CustomersTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n $this->call(ProductsTableSeeder::class);\n $this->call(ServicesTableSeeder::class);\n $this->call(ImagesTableSeeder::class);\n $this->call(TransactionsTableSeeder::class);\n // $this->call(oAuthClientTestSeeder::class);\n\n Model::reguard();\n }", "title": "" }, { "docid": "d63026d2b25efb367dabd31b5eafc1fd", "score": "0.6704071", "text": "public function setUp()\n {\n parent::setUp();\n\n $db = new DB;\n\n $db->addConnection([\n 'driver' => 'sqlite',\n 'database' => ':memory:',\n ]);\n\n $db->bootEloquent();\n $db->setAsGlobal();\n\n $this->createSchema();\n }", "title": "" }, { "docid": "2fca9bf0725abd081819588688399860", "score": "0.67005527", "text": "public function run()\n {\n $this->call(VideogameSeeder::class);\n $this->call(CategorySeeder::class);\n User::factory(15)->create();\n DB::table('users')->insert([\n 'name' => 'Santiago',\n 'email' => '[email protected]',\n 'password' => bcrypt('12345678'),\n 'address' => 'C/ Ultra',\n 'rol' => 'admin'\n ]);\n //Ratin::factory(50)->create();\n Purchase::factory(20)->create();\n //UserList::factory(1)->create();\n }", "title": "" }, { "docid": "0bdb09d40fb0c72e3ef7686ba61c3b81", "score": "0.6700342", "text": "public function run()\n {\n factory(App\\User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'crudd',\n 'password' => bcrypt('password'),\n ]);\n factory(App\\User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'user',\n 'password' => bcrypt('password'),\n ]);\n $this->call(ItemsTableSeeder::class);\n }", "title": "" }, { "docid": "654191b89a3f7b4f8f809dd4ca1e2f6d", "score": "0.6693512", "text": "public function run()\n {\n /**\n * Create default user for admin, lecturer and student\n */\n User::create([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'password' => Hash::make('admin'),\n 'role' => 'admin'\n ]);\n\n User::create([\n 'name' => 'Sample Lecturer',\n 'email' => '[email protected]',\n 'password' => Hash::make('lecturer'),\n 'role' => 'admin'\n ]);\n\n User::create([\n 'name' => 'Student',\n 'email' => '[email protected]',\n 'password' => Hash::make('student'),\n 'role' => 'student'\n ]);\n\n /**\n * Create random 300 users with faker and role/password equal \"student\"\n */\n factory(App\\User::class, 300)->create();\n\n // run with php artisan migrate --seed\n }", "title": "" }, { "docid": "e92b39c751271622081fe6a63248f0d3", "score": "0.66905063", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \n Seo::create([\n 'url' => '/',\n 'title' => 'title default',\n 'keywords' => 'keywords default',\n 'description' => 'description default',\n ]);\n\n User::create([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'password' => Hash::make('1234567'),\n ]);\n }", "title": "" }, { "docid": "0c728885bc3d30b956fa5a886f5bcba5", "score": "0.668813", "text": "public function run()\n\t{\n $this->seedTable('SettingsTableSeeder', 'Settings');\n\t}", "title": "" }, { "docid": "ddb1dc34d7b02a5b9d32f30538ce4b56", "score": "0.66876155", "text": "public function run()\n {\n $faker = Faker::create('en_US');\n\n DB::table('users')->insert([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'password' => str_random(8),\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n 'country_id' => rand(1,5),\n ]);\n }", "title": "" }, { "docid": "cc8f552ee0f8a62a0eda90cfd753de04", "score": "0.66818", "text": "public function run()\n {\n $faker = Faker\\Factory::create();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n if (env(\"APP_ENV\") == 'local') {\n Comment::factory()->create([\n 'article_id' => $faker->randomElement(\\App\\Models\\Article::all()->pluck('id')->toArray()),\n 'user_id' => $faker->randomElement(\\App\\Models\\User::all()->pluck('id')->toArray()),\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "2a758621a40aa1558dc0c94fead121d7", "score": "0.6678881", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n User::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n for ($i = 0; $i < 50; $i++) {\n User::create([\n 'facebook_key' => $faker->sha256,\n 'google_key' => $faker->sha256,\n 'first_name' => $faker->firstNameMale,\n 'last_name' => $faker->lastName,\n 'e-mail' => $faker->email,\n 'password' => $faker->password,\n 'uber_key' => $faker->sha256,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "9d2abe13b05f99177e4f0e0cdd336b85", "score": "0.6676733", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(Category::class, 10)->create();\n factory(Blog::class, 10)->create();\n }", "title": "" }, { "docid": "ca097935df869180d5d829ac5e81a331", "score": "0.6675996", "text": "public function run()\n {\n Eloquent::unguard();\n\n \t// disable foreign key check for this connection before running seeders\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n\t\t$this->call(UserTableSeeder::class);\n\t\t$this->call(RocketComponentTypesTableSeeder::class);\n\t\t$this->call(RocketComponentModelsTableSeeder::class);\n\t\t$this->call(AchievementsTableSeeder::class);\n\t\t// $this->call(QuestFulfillmentConditionTypesTableSeeder::class);\n\t\t// $this->call(QuestRewardTypesTableSeeder::class);\n\t\t// $this->call(QuestTableSeeder::class);\n\t\t// $this->call(QuestFulfillmentConditionsTableSeeder::class);\n\t\t// $this->call(QuestRewardsTableSeeder::class);\n\n // enable foreign key check\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "f1b3d1bb695e24855d16b3d3ba5bd483", "score": "0.6675029", "text": "public function run()\n {\n if (App::environment() === 'local') {\n $this->call(UsersSeeder::class);\n $this->call(ArticlesSeeder::class);\n $this->call(ParagraphsSeeder::class);\n }\n }", "title": "" }, { "docid": "8898665ff62b548d625911ca4f3fe163", "score": "0.66747075", "text": "public function run()\n\t{\n\t\tModel::unguard();\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n $this->call('UserPermissionTableSeeder');\n $this->call('UserTypeTableSeeder');\n $this->call('PermissionTableSeeder');\n $this->call('UserTableSeeder');\n $this->call('BookCategoryTableSeeder');\n $this->call('BooksTableSeeder');\n $this->call('BookingsTableSeeder');\n DB::statement('SET FOREIGN_KEY_CHECKS = 1');\n\t}", "title": "" }, { "docid": "53c940414f34c1ba7631bce234956f59", "score": "0.6670751", "text": "protected function populateDB(AcceptanceTester $I)\n {\n// $I->runShellCommand('cd /var/www');\n exec('php artisan db:seed --class=DatabaseSeeder');\n exec('php artisan db:seed --class=SearchControllerSeeder');\n }", "title": "" }, { "docid": "ce01afb7c6c8a391fd960fc6f24aebf4", "score": "0.6670056", "text": "public function run()\n {\n Model::unguard();\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // disable foreign key constraints\n $this->call(UserTableSeeder::class);\n $this->call(ConfiguracionTableSeeder::class);\n $this->call(EncomiendaTableSeeder::class);\n $this->call(BancosTableSeeder::class);\n //$this->call(EstadoTableSeeder::class);\n //$this->call(CiudadTableSeeder::class);\n $this->call(InventarioTableSeeder::class);\n //$this->call(Gcm_UsersTableSeeder::class);\n $this->call(TipopagoTableSeeder::class);\n $this->call(OrdenesTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 1'); // enable foreign key constraints\n Model::reguard();\n }", "title": "" }, { "docid": "2de5bf69cdcdfebfdd1e298a8f5e2abd", "score": "0.6669688", "text": "public function setUp(): void\n {\n parent::setUp();\n\n Artisan::call('db:seed');\n\n $this->applicationRoles();\n }", "title": "" }, { "docid": "2f8f479f6acb65f7b99c925910432e46", "score": "0.66674274", "text": "public function run()\n {\n /*$faker = \\Faker\\Factory::create();\n $data = [];*/\n\n DB::table('test')->truncate();\n\n /*for($i = 0; $i < 100; $i++){\n array_push($data, [\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'age' => rand(18, 55),\n 'country_code' => $faker->stateAbbr\n ]);\n }\n\n DB::table('test')->insert($data);*/\n\n factory('App\\Test', 100)->create();\n }", "title": "" }, { "docid": "9534cf45fc57c06ef40fd6f7d2dda3df", "score": "0.6662946", "text": "public function run()\n {\n $timestamp = date('Y-m-d H:i:s');\n $faker = Faker::create();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n DB::table('systems')->truncate();\n\n $system = [\n [\n 'name' => 'Main System',\n 'description' => $faker->realText(100),\n 'system_configuration_id' => 1,\n 'created_at' => $timestamp,\n 'updated_at' => $timestamp\n ]\n\n ];\n\n\n DB::table('systems')->insert($system);\n DB::statement('SET FOREIGN_KEY_CHECKS=1;'); \n }", "title": "" }, { "docid": "810101460249fbcdd3ea47bef82d4ec0", "score": "0.6662618", "text": "public function run()\n {\n Eloquent::unguard();\n\n // $this->call('UserTableSeeder');\n $this->call('SoalsTableSeeder');\n $this->call('LembarsTableSeeder');\n $this->call('SoalhaslembarsTableSeeder');\n $this->call('UserjawablembarsTableSeeder');\n $this->call('UjiansTableSeeder');\n $this->call('SoalujiansTableSeeder');\n $this->call('SentryGroupSeeder');\n $this->call('SentryUserSeeder');\n $this->call('SentryUserGroupSeeder');\n }", "title": "" }, { "docid": "368508f66336ac53d1be3d6743e70422", "score": "0.66582006", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //Desactivamos la revision de las llaves foraneas.\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n //trunco las tablas para poder meter datos nuevos\n articulos::truncate();\n clientes::truncate();\n impuestos::truncate();\n imp_art::truncate();\n empresa::truncate();\n\n $cantidadArticulos = 20;\n $cantidadClientes = 20;\n $cantidadImpuestos = 4;\n $cantidadImp_Arts = 10;\n $cantidadEmpresas = 10;\n\n factory(articulos::class, $cantidadArticulos)->create();\n factory(clientes::class, $cantidadClientes)->create();\n factory(impuestos::class, $cantidadImpuestos)->create();\n factory(imp_art::class, $cantidadImp_Arts)->create();\n factory(empresa::class, $cantidadEmpresas)->create();\n\n }", "title": "" }, { "docid": "cb235e0df81fac0eee88422c46e724db", "score": "0.66578877", "text": "public function run()\n\t{\n\t\tif (App::environment() === 'production')\n\t\t{\n\t\t\texit('Can not run seeds on production environment');\n\t\t}\n\n\t\tEloquent::unguard();\n\n\t\t$tables = [\n\t\t\t'organisms'\n\t\t];\n\n\t\tforeach ($tables as $table)\n\t\t{\n\t\t\tDB::table($table)->truncate();\n\t\t}\n\n\t\t$this->call('TaxaTableSeeder');\n\t\t$this->call('OrganismsTableSeeder');\n\t}", "title": "" }, { "docid": "d8aa9d1a66e018ca7c4a33e3c222390c", "score": "0.665313", "text": "public function run()\n {\n $this->labFacultiesSeeder();\n $this->labStudentSeeder();\n $this->labTagsTableSeeder();\n $this->labPositionsTableSeeder();\n $this->labSkillsTableSeeder();\n }", "title": "" }, { "docid": "1721df60a2d144cd5897b5252ac26666", "score": "0.6652204", "text": "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t$this->call('UsersTableSeeder');\n\t\t$this->call('LanguagesTableSeeder');\n\t\t$this->call('NewsCategoryTableSeeder');\n\t\t$this->call('CategoriesTableSeeder');\n\t\t$this->call('CountriesSeeder');\n\t\t// $this->call('FaqsTableSeeder');\n\t\t$this->call('InquiriesTableSeeder');\n\t\t$this->call('GeneralSettingsTableSeeder');\n\t\t$this->call('SiteVariablesTableSeeder');\n\t\t$this->call('GameSettingsTableSeeder');\n\t\t$this->call('MessagesTableSeeder');\n\t\t// $this->call('GamesTableSeeder');\n\t}", "title": "" }, { "docid": "ed9861786e67c02caead1abfda01c665", "score": "0.66522026", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n $this->call(SettingDatabaseSeeder::class);\n $this->call(RoleDataBaseSeeder::class);\n $this->call(AdminDataBaseSeeder::class);\n// $this->call(ProductDatabaseSeeder::class);\n\n\n }", "title": "" }, { "docid": "c8d45356aa6a26dbc0f8f55b3b96b143", "score": "0.66514635", "text": "public function run()\n {\n // prevent db error from key constraint when refresh seeder\n DB::statement('SET foreign_key_checks=0');\n DB::table('albums')->truncate();\n DB::statement('SET foreign_key_checks=1');\n\n $albums = [\n ['artist_id' => 1, 'name' => 'One Palitchoke', 'year_release' => 2005],\n ['artist_id' => 2, 'name' => 'Offering Love', 'year_release' => 2007],\n ['artist_id' => 3, 'name' => 'Ice Sarunyu', 'year_release' => 2006],\n ];\n\n foreach ( $albums as $album ) {\n DB::table('albums')->insert($album);\n }\n }", "title": "" }, { "docid": "938b026d9c7ef3a4f0c4289e59c11e88", "score": "0.66423637", "text": "public function run()\n {\n Model::unguard();\n\n DB::table('users')->delete();\n DB::table('projects')->delete();\n DB::table('grades')->delete();\n\n $this->call(UserTableSeeder::class);\n\n factory(User::class, 5)->create();\n factory(Project::class, 10)->create();\n factory(Grade::class, 20)->create();\n\n Model::reguard();\n }", "title": "" }, { "docid": "23649baf129485457643ee98bd31a9f1", "score": "0.6642244", "text": "public function run()\n {\n $tables = ['users', 'business_config'];\n\n $this->truncateTables($tables);\n $this->call(UserSeeder::class);\n $this->call(BusinessConfigSeeder::class);\n // \\App\\Models\\User::factory(10)->create();\n }", "title": "" }, { "docid": "7a118c3cf4531424f74877eed3a6c51b", "score": "0.6641114", "text": "public function run()\n {\n Eloquent::unguard();\n\n // $this->call(UserTableSeeder::class);\n // $this->call(PermissionTableSeeder::class);\n // $this->call('DeportesSeeder');\n // $this->call('NacionalidadesSeeder');\n //$this->call('ComunidadesSeeder');\n //$this->call('DietasSeeder');\n // $this->call('DiteticasSeeder');\n //$this->call('EstudiosSeeder');\n //$this->call('LaboralesSeeder');\n //$this->call('PoblacionesSeeder');\n //$this->call('SexosSeeder');\n //$this->call('dantropometricosSeeder');\n $this->call('SujetosSeeder');\n }", "title": "" }, { "docid": "8abe52ffb3ddef53086570a78976b82d", "score": "0.66381425", "text": "public function run()\n {\n $this->truncateTables([\n 'users', 'permissions', 'permission_role', 'roles', 'role_user', 'agentes',\n 'costo_transporte', 'producto', 'produccion', 'costos', 'inventario'\n ]);\n\n $this->call(RolesTableSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n $this->call(AgentesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(CostosTransporteTableSeeder::class);\n $this->call(ProductoTableSeeder::class);\n $this->call(InventariosSeeder::class);\n }", "title": "" }, { "docid": "62b31b1e734b303ae53c50862d6f35bb", "score": "0.6636086", "text": "public function run()\n {\n\t\t//Do the production seeding\n\t\t$this->call(RolesAndPermissionsSeeder::class);\n $this->call(UserSeeder::class);\t\t\n\t\t$this->call(StatusSeeder::class);\n\t\t$this->call(RatingSeeder::class);\n\t\t$this->call(LanguageSeeder::class);\n\t\t$this->call(ConfigurationSeeder::class);\n }", "title": "" }, { "docid": "6133aad1a6fda48e329108c9e9b287bf", "score": "0.6635598", "text": "public function run() {\n Model::unguard();\n\n /*$this->call(TipoTableSeeder::class);\n $this->call(CiudadTableSeeder::class);\n $this->call(CargoTableSeeder::class);\n $this->call(ResolucionTableSeeder::class);\n $this->call(SucursalTableSeeder::class);\n $this->call(ZonaTableSeeder::class);\n $this->call(SectorTableSeeder::class);\n $this->call(UserTableSeeder::class);\n $this->call(EstadoTableSeeder::class);*/\n factory(\\App\\User::class, 50)->create();\n Model::reguard();\n }", "title": "" }, { "docid": "edb6c4e5c696e79c6cb87775bdf73c85", "score": "0.66350716", "text": "public function run()\n {\n factory(App\\Models\\User::class, 200)->create();\n $this->call(GenresTableSeeder::class);\n $this->call(BandsTableSeeder::class);\n factory(App\\Models\\Post::class, 1000)->create();\n $this->call(TagsTableSeeder::class);\n $this->call(PostTagTableSeeder::class);\n factory(App\\Models\\Comment::class, 5000)->create();\n $this->call(AdminSeeder::class);\n }", "title": "" }, { "docid": "dbb7060bbc311a18cd207473bbe8e7f1", "score": "0.66334057", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(\\App\\User::class,1)->create([\n 'name' => 'teste',\n 'email' => '[email protected]',\n 'password' => bcrypt('12345')\n ]);\n factory(\\App\\Models\\SecaoTecnica::class,1)->create([\n 'sigla' => 'teste',\n 'descricao' => 'teste descrição'\n ]);\n }", "title": "" }, { "docid": "a3f8c14d8aa0a2964fafe3ceab06d6ac", "score": "0.6623559", "text": "public function run()\n {\n\tEloquent::unguard();\n\n $this->call('administradorTableSeeder');\n\t$this->call('ClienteTableSeeder');\n\t$this->call('UsuarioTableSeeder');\n\t$this->call('PortafolioTableSeeder');\n\t$this->call('ProyectoTableSeeder');\n\t$this->call('ServicioTableSeeder');\n\t$this->call('ReservaTableSeeder');\n\t$this->call('SolicitudSeeder');\n }", "title": "" }, { "docid": "ce9645a02a3f81cec15fa81e9edae5c8", "score": "0.6620519", "text": "protected function refreshTestDatabase()\n {\n if (! RefreshDatabaseState::$migrated) {\n $this->artisan('migrate:fresh');\n $this->seed();\n $this->setupPassportOAuth2();\n\n $this->app[Kernel::class]->setArtisan(null);\n\n RefreshDatabaseState::$migrated = true;\n }\n\n $this->beginDatabaseTransaction();\n }", "title": "" }, { "docid": "25f91658e97ffb9f6f0a4f543792c7ca", "score": "0.6620456", "text": "public function run()\n {\n Eloquent::unguard();\n\n $this->seedDefaultLocation();\n\n $this->seedCategories();\n\n $this->seedMenuOptions();\n\n $this->seedMenuItems();\n\n $this->seedCoupons();\n }", "title": "" }, { "docid": "3edc38439cbb935c66d5ac8e72454b15", "score": "0.6616348", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n $this->call(StaffTypesTableSeeder::class);\n $this->call(ReferenceTypesTableSeeder::class);\n\n $this->call(PermissionsSecondGroupTableSeeder::class);\n $this->call(PurchaseTermsTableSeeder::class);\n\n $this->call(CategoriesTableSeeder::class);\n\n $this->call(SalesTaxesPermissionsSeeder::class);\n\n // Faker.\n //factory(\\App\\Models\\Vendor::class, 2)->create();\n //factory(\\App\\Models\\Employee::class, 2)->create();\n }", "title": "" }, { "docid": "c4d9046e236237ae619fcf950b2969a8", "score": "0.6611208", "text": "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t// $this->call('UserTableSeeder');\n\t\t$this->call('SentryGroupSeeder');\n\t\t$this->call('SentryUserSeeder');\n\t\t$this->call('SentryUserGroupSeeder');\n\t\t$this->call('GuestlistsTableSeeder');\n\t\t$this->call('CitiesTableSeeder');\n\t\t$this->call('SkillsTableSeeder');\n\t\t$this->call('LocationsTableSeeder');\n\t\t$this->call('OpportunitiesTableSeeder');\n\t\t$this->call('ProfilesTableSeeder');\n\t\t$this->call('Community_eventsTableSeeder');\n\t}", "title": "" }, { "docid": "445df09b1d8809fffe60ee2f0cb24f9e", "score": "0.66101587", "text": "public function run()\n {\n if (App::environment() === 'local') //development\n {\n $faker = Faker\\Factory::create();\n for ($i = 0; $i < 5; $i++) {\n DB::table('companies')->insert([\n 'short_name' => $faker->company,\n 'official_name' => 'ТОО '.$faker->company,\n ]);\n }\n $this->call(OfficeSeeder::class);\n }\n\n\n }", "title": "" }, { "docid": "f39366738433d2fa304237e452ffba59", "score": "0.6601983", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n seed_identifier_types();\n\n create_admin_user();\n\n initialize_permissions();\n\n first_user_as_manager();\n\n factory(User::class,50)->create();\n $this->call(LocationsTableSeeder::class);\n }", "title": "" }, { "docid": "b760c05861b836970b6512f530638768", "score": "0.6599796", "text": "public function run()\n {\n factory(User::class, 1)->create();\n User::create([\n 'email' => \"[email protected]\",\n 'name' => \"Korkut Sarıçayır\",\n 'password' => Hash::make(\"12345\")\n ]);\n // $this->call(UserSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n $this->call(QuestionsTableSeeder::class);\n }", "title": "" }, { "docid": "b0393b835dea7af7cb39a2775bbd235c", "score": "0.6599313", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n $this->call(SocialMediaTableSeeder::class);\n $this->call(ProductTableSeeder::class);\n $this->call(FaqTableSeeder::class);\n $this->call(PageTableSeeder::class);\n $this->call(VideoTableSeeder::class);\n $this->call(AddressCategoryTableSeeder::class);\n $this->call(AddressTableSeeder::class);\n $this->call(EmailTableSeeder::class);\n $this->call(TelephoneTableSeeder::class);\n $this->call(BusinessInfoTableSeeder::class);\n\n //Testes\n if(env('APP_ENV') == 'local') {\n $this->call(ClientsTestTableSeeder::class);\n $this->call(SalesTestTableSeeder::class);\n $this->call(PostTestTableSeeder::class);\n $this->call(DepoimentTestTableSeeder::class);\n $this->call(AddressTestTableSeeder::class);\n $this->call(TelephoneTestTableSeeder::class);\n $this->call(ComissionTestTableSeeder::class);\n $this->call(InvoiceTestTableSeeder::class);\n }\n }", "title": "" }, { "docid": "232280f5b66a069fae8a2b568db508e7", "score": "0.65989035", "text": "public function run()\n {\n factory(App\\Models\\User::class, 15)->create();\n factory(App\\Models\\Movie::class, 30)->create();\n factory(App\\Models\\Address::class, 30)->create();\n factory(App\\Models\\Contact::class, 30)->create();\n $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "d6b874deb919f9f1bbe5a7f4208f3bf1", "score": "0.65986806", "text": "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t// $this->call('UserTableSeeder');\n\t\t$this->call('ColorTableSeeder');\n\t\t$this->call('BrandTableSeeder');\n\t\t$this->call('GenreTableSeeder');\n\t\t$this->call('AttributeTableSeeder');\n\t\t$this->call('SizeTableSeeder');\n\t\t$this->call('UsertypeTableSeeder');\n\t\t$this->call('DepartmentTableSeeder');\n\t\t$this->call('ProvinceTableSeeder');\n\t\t$this->call('DistrictTableSeeder');\n\t\t$this->call('ProductTableSeeder');\n\t\t$this->call('ProductattributeTableSeeder');\n\t\t$this->call('ProductstockTableSeeder');\n\t\t$this->call('UserTableSeeder');\n\t}", "title": "" }, { "docid": "064da3a1fd5b172768671dc5b6f1169d", "score": "0.659838", "text": "public function run()\n {\n\n\n\n Storage::deleteDirectory('eventos');\n\n Storage::makeDirectory('eventos');\n\n $this->call(RoleSeeder::class);\n\n $this->call(UserSeeder::class);\n \n Categoria::factory(4)->create();\n \n $this->call(EventoSeeder::class);\n\n $this->call(AporteSeeder::class);\n\n $this->call(ObjetoSeeder::class);\n\n }", "title": "" }, { "docid": "178ca371f969c5a6c9f79e7068093f67", "score": "0.65981734", "text": "public function run() {\n App\\User::create([\n 'name'=>'Secret User',\n 'email'=>'[email protected]',\n 'password'=>bcrypt('secret')\n ]);\n\n // Add additional seeding below\n }", "title": "" }, { "docid": "22576d435a47e89700c7a06ad724aa74", "score": "0.6597602", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n\n DB::table('users')->truncate();\n\n $faker = \\Faker\\Factory::create();\n $date = \\Carbon\\Carbon::now();\n\n\n DB::table('users')->insert([\n [\n 'name' => 'Don Joe',\n 'email' => '[email protected]',\n 'password' => bcrypt('12345'),\n 'created_at' => $date,\n 'updated_at' => $date\n ],\n [\n 'name' => 'Abebe',\n 'email' => '[email protected]',\n 'password' => bcrypt('12345'),\n 'created_at' => $date,\n 'updated_at' => $date\n ],\n [\n 'name' => 'Kebede',\n 'email' => '[email protected]',\n 'password' => bcrypt('12345'),\n 'created_at' => $date,\n 'updated_at' => $date\n ],\n\n ]);\n }", "title": "" }, { "docid": "18a6fbd98e59a9215f01575f2f8b37cf", "score": "0.65947986", "text": "public function run()\n\t{\n\t\tModel::unguard();\n\n\t\t$this->call('UsersTableSeeder');\n\t\t$this->call('LeaguesTableSeeder');\n\t\t$this->call('SeasonsTableSeeder');\n\t\t$this->call('TeamsTableSeeder');\n\n\t\tif (env('APP_ENV') == 'development') {\n\t\t\t$this->call('DevSeeder');\n\t\t}\n\n\t}", "title": "" }, { "docid": "f06133192b123dabdf8bc82d649d977b", "score": "0.6594522", "text": "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t$this->call('ModuleTableSeeder');\n\t\t$this->call('ProfileTableSeeder');\n\t\t$this->call('PaymentoptionTableSeeder');\n\t\t$this->call('MedicalinsuranceTableSeeder');\n\t\t$this->call('MedicalinsuranceplanTableSeeder');\n\t\t$this->call('MeasurementunitTableSeeder');\n\t\t$this->call('CategoryTableSeeder');\n\t\t$this->call('ProviderTableSeeder');\n\t\t$this->call('ItemTableSeeder');\n\t\t$this->call('ClientTableSeeder');\n\t\t$this->call('DoctorTableSeeder');\t\t\n\t\t$this->call('UserTableSeeder');\n\t\t$this->call('PermissionTableSeeder');\n\t\t\n\t}", "title": "" }, { "docid": "e4b68debc10ebf9c9ba7ccc13ad96554", "score": "0.6592225", "text": "public function run()\n {\n Schema::disableForeignKeyConstraints();\n Student::truncate();\n Schema::enableForeignKeyConstraints();\n\n // $faker = Faker\\Factory::create();\n\n // for ($i=0; $i < 100; $i++) { \n // $st = new Student([\n // \"first_name\" => $faker->firstName(),\n // \"last_name\" => $faker->lastName(),\n // \"email\" => $faker->unique()->safeEmail()\n // ]);\n // $st->save();\n // }\n\n factory(Student::class, 25)->create();\n }", "title": "" }, { "docid": "1d8fff7ad3fbb9f72b72a95f1eb0162d", "score": "0.65911674", "text": "public function run()\n {\n DB::transaction(function () {\n $this->call(RolesTableSeeder::class);\n $this->call(SettingsTableSeeder::class);\n\n // Only run the seeders registered here when we are in production,\n // otherwise keep it clean or it would somehow intefer with the\n // tests scenario preparation since data is stored in database.\n if (! App::environment('testing')) {\n $this->call(UsersTableSeeder::class);\n }\n });\n }", "title": "" }, { "docid": "d551c1c439a8fe92711ff8e73c21586d", "score": "0.6591141", "text": "public function run()\n {\n DB::table('users')->delete();\n\n factory(App\\User::class)->create(['email' => '[email protected]', 'role_id' => 2]);\n factory(App\\User::class)->create(['email' => '[email protected]']);\n }", "title": "" }, { "docid": "51cd4049630f0aa9b58756272a62d852", "score": "0.65902466", "text": "public function run()\n {\n //disable foreign key check for this connection before running seeders\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n DB::table('setting_categories')->truncate();\n DB::table('settings')->truncate();\n DB::table('roles')->truncate();\n DB::table('genders')->truncate();\n DB::table('withdrawal_statuses')->truncate();\n DB::table('countries')->truncate();\n DB::table('cities')->truncate();\n DB::table('states')->truncate();\n DB::table('currencies')->truncate();\n DB::table('users')->truncate();\n DB::table('user_profiles')->truncate();\n DB::table('attachments')->truncate();\n DB::table('languages')->truncate();\n // DB::table('pages')->truncate();\n DB::table('providers')->truncate();\n DB::table('email_templates')->truncate();\n DB::table('ips')->truncate();\n // DB::table('item_user_statuses')->truncate();\n // DB::table('transaction_types')->truncate();\n\n $this->call('SettingCategoryTableSeeder');\n $this->call('WithdrawalStatusesTableSeeder');\n $this->call('RolesTableSeeder');\n //$this->call('GendersTableSeeder');\n $this->call('CountriesTableSeeder');\n $this->call('CurrenciesTableSeeder');\n $this->call('IpsTableSeeder');\n $this->call('ProvidersTableSeeder');\n $this->call('UsersTableSeeder');\n $this->call('EmailTemplatesTableSeeder');\n $this->call('LanguagesTableSeeder');\n // $this->call('ItemUserStatusesTableSeeder');\n //$this->call('TransactionTypesTableSeeder');\n }", "title": "" }, { "docid": "16fb6c05eee064dedc0584934405046d", "score": "0.65891373", "text": "public function run()\n {\n $this->call(__NAMESPACE__ . '\\\\OptionsTableSeeder');\n $this->call(__NAMESPACE__ . '\\\\RolesTableSeeder');\n $this->call(__NAMESPACE__ . '\\\\PermissionsTableSeeder');\n $this->call(__NAMESPACE__ . '\\\\UsersTableSeeder');\n $this->call(__NAMESPACE__ . '\\\\CategoriesTableSeeder');\n }", "title": "" }, { "docid": "3656836be96d5f4b03830e70a7940586", "score": "0.6587", "text": "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t$this->call('UsersTableSeeder');\n\t\t$this->call('SkillsTableSeeder');\n\t\t$this->call('SkillUserTableSeeder');\n\t\t$this->call('CategoriesTableSeeder');\n\t\t$this->call('AgenciesTableSeeder');\n\t\t$this->call('AgencyAdminTableSeeder');\n\t\t$this->call('LocationsTableSeeder');\n\t\t$this->call('ActivitiesTableSeeder');\n\t\t// $this->call('ActivityUserTableSeeder');\n\t\t$this->call('ReviewsTableSeeder');\n\t\t// $this->call('TagsTableSeeder');\n\t\t// $this->call('ActivityTagTableSeeder');\n\t}", "title": "" } ]
8f38a8a50ce120cdf0fddce0c558abc4
Formats a string containing the fullyqualified path to represent a feed_item resource.
[ { "docid": "1fa8e6428bb58cdd72e916dbbe42f477", "score": "0.4968137", "text": "public static function feedItemName(string $customerId, string $feedId, string $feedItemId): string\n {\n return self::getPathTemplate('feedItem')->render([\n 'customer_id' => $customerId,\n 'feed_id' => $feedId,\n 'feed_item_id' => $feedItemId,\n ]);\n }", "title": "" } ]
[ { "docid": "f5fde5fe9506c9fee7e27d872b6a30c3", "score": "0.55174613", "text": "public function slash_item($item)\r\n {\r\n if (!array_key_exists($item, $this->config) || $this->config[$item] === NULL) {\r\n return NULL;\r\n } elseif (trim($this->config[$item]) === '') {\r\n return '';\r\n }\r\n\r\n return rtrim($this->config[$item], '/') . '/';\r\n }", "title": "" }, { "docid": "d8bbfe24a8c8b20c5224a82165c82151", "score": "0.5259443", "text": "public function format(Item $item): string\n {\n $message = $this->interpolate(\n $item->getMessage(),\n $item->getContext()\n );\n\n return JsonHelper::encode(\n [\n \"type\" => $item->getName(),\n \"message\" => $message,\n \"timestamp\" => $this->getFormattedDate(),\n ]\n );\n }", "title": "" }, { "docid": "067b2439e01de23bca373788146c4fab", "score": "0.52455366", "text": "protected function formatPath($namespace, $version, $resource)\n {\n return $namespace.'V'.$version.'\\\\'.$resource;\n }", "title": "" }, { "docid": "3db8b872ec4450c32bda7e542ba38b27", "score": "0.5172057", "text": "protected function getAbsoluteResourcePath(ResourceInterface $item) {\n\t\treturn $this->getAbsolutePath($item->getIdentifier());\n\t}", "title": "" }, { "docid": "5eebe78af5de290ad5227957cb5f366d", "score": "0.5115436", "text": "protected function getItem(object $item) : string\n\t{\n\t\treturn '<a href=\"' . App::e($item->url ?? $this->app->uri->getEmpty()) . '\">' . App::e($item->title) . '</a>' . \"\\n\";\n\t}", "title": "" }, { "docid": "53483e3a4556a0f9f9e90260bc84226a", "score": "0.511089", "text": "public function getItemUrl($item)\n {\n return Router::url($item['url']);\n }", "title": "" }, { "docid": "8d2a8b345e12f1f05261a3db32f6be75", "score": "0.5104407", "text": "function slash_item(string $item): ?string\n {\n $config = config(App::class);\n $configItem = $config->{$item};\n\n if (!isset($configItem) || empty(trim($configItem))) {\n return $configItem;\n }\n\n return rtrim($configItem, '/') . '/';\n }", "title": "" }, { "docid": "64bf0f170da5598a7ae95f3441e8fa7c", "score": "0.50337654", "text": "protected function renderItem($item)\n {\n if (isset($item['url'])) {\n $template = ArrayHelper::getValue($item, 'template', $this->linkTemplate);\n\n return strtr($template, [\n '{url}' => Html::encode(Url::to($item['url'])),\n '{label}' => $item['label'],\n '{image}' => $item['image'],\n ]);\n } else {\n $template = ArrayHelper::getValue($item, 'template', $this->labelTemplate);\n\n return strtr($template, [\n '{label}' => $item['label'],\n '{image}' => $item['image'],\n ]);\n }\n }", "title": "" }, { "docid": "790a849feda1cf451250b271ca670da7", "score": "0.50169575", "text": "private static function formatPath(string $path, string $basepath): string\n {\n if ('' === $path) {\n return in_array($basepath, ['', '/'], true) ? $basepath : './';\n }\n\n if (false === ($colon_pos = strpos($path, ':'))) {\n return $path;\n }\n\n $slash_pos = strpos($path, '/');\n if (false === $slash_pos || $colon_pos < $slash_pos) {\n return \"./$path\";\n }\n\n return $path;\n }", "title": "" }, { "docid": "13dffe582cfab3a385a6c7e4bcc697e8", "score": "0.49927408", "text": "public static function getResourceURI()\n {\n return 'LineItems';\n }", "title": "" }, { "docid": "975cfe658f9527d1d1cfa0dcb0b5afee", "score": "0.49891153", "text": "function dir_form_path($aPath, $aTitle)\r\n{\r\n\t$params['string'] = $aTitle;\r\n\t$title = convert_str($params['string']);\r\n\r\n\treturn $aPath.'/'.$title;\r\n}", "title": "" }, { "docid": "81b7e7696ed923ec00b63964266ce1b0", "score": "0.495858", "text": "function get_rel_item($dir,$item) {\n if($dir!=\"\") return $dir.\"/\".$item;\n else return $item;\n }", "title": "" }, { "docid": "b0fce4355ff6305a35682faac3f47a87", "score": "0.49257836", "text": "public function itemToString(stdClass $item)\n\t{\n\t\tif($this->_isAdminPage(Zend_Controller_Front::getInstance()->getRequest())) {\n\t\t\t$item->href = WEB_CSS.ltrim($item->href, '/');\n\t\t}\n\n\t\treturn parent::itemToString($item);\n\t}", "title": "" }, { "docid": "a3e322a55792b1441ec5dfc429d14f6c", "score": "0.49081045", "text": "function getPingURL(PingtraxItems $item)\n {\n \t$uri = $this->getVar('uri');\n \t$uri = str_replace(urlencode($item->getVar('item-title')), '%title', $uri);\n \t$uri = str_replace(urlencode($item->getVar('item-decription')), '%description', $uri);\n \t$uri = str_replace(urlencode($item->getVar('item-protocol').$item->getVar('item-domain').$item->getVar('item-referer-uri')), '%url', $uri);\n \t$uri = str_replace(urlencode($item->getVar('feed-protocol').$item->getVar('feed-domain').$item->getVar('feed-referer-uri')), '%feed', $uri);\n \treturn $uri;\n }", "title": "" }, { "docid": "efb27a2e7579783b30626d9bf34e3b0d", "score": "0.48862258", "text": "public static function tidy_path($path = ''){\n\t\t$path = preg_replace('/\\/+/', '/', $path);\n\t\t// ensure it starts with a slash\n\t\t$path = Str::start($path, '/');\n\t\t// ensure id does not end in a slash\n\t\t$path = rtrim($path, '/');\n\t\treturn $path;\n\t}", "title": "" }, { "docid": "6fa6f27a2525fb9e81fd58fafe4a96a0", "score": "0.48854458", "text": "private function getPrefixItemUrl():string\n {\n if (!isset($this->config['urls']['item'])) {\n throw new InvalidArgsException('\"item\" key is missing in config file.');\n }\n return $this->config['urls']['item'];\n }", "title": "" }, { "docid": "c3e9b63a0c24826599605fb16ae97893", "score": "0.48619488", "text": "public function getPath($item)\n\t{\n hwdMediaShareFiles::getLocalStoragePath();\n $folders = hwdMediaShareFiles::getFolders($this->item->key);\n $filename = hwdMediaShareFiles::getFilename($this->item->key,$item->file_type);\n $ext = hwdMediaShareFiles::getExtension($this->item,$item->file_type);\n $path = hwdMediaShareFiles::getPath($folders, $filename, $ext);\n return str_replace(JPATH_SITE, '', $path);\n\t}", "title": "" }, { "docid": "2f857b0c485f98036e410ee09745d47f", "score": "0.48442328", "text": "function feed_format_feed_item_field($formatter, $feed_item, $feed_item_field, $variables = array()) {\r\n $variables['#feed_item'] = $feed_item;\r\n $variables['#feed_item_field'] = $feed_item_field;\r\n \r\n return feed_formatter_invoke($formatter, 'format_feed_item_field', $variables);\r\n}", "title": "" }, { "docid": "e37bf312d3a986138513f4f6f99ed41c", "score": "0.48061538", "text": "public static function extensionFeedItemName(string $customerId, string $feedItemId): string\n {\n return self::getPathTemplate('extensionFeedItem')->render([\n 'customer_id' => $customerId,\n 'feed_item_id' => $feedItemId,\n ]);\n }", "title": "" }, { "docid": "977701c3e7752aec57d59809603f2e46", "score": "0.47993988", "text": "function shoestrap_prep_uri( $path ) {\n $path = str_replace( '\\\\', '/', $path );\n return rtrim( $path, '/' ) . '/';\n}", "title": "" }, { "docid": "64222014c5d2b6ea7836d9e309189957", "score": "0.4787202", "text": "protected function getItemXml($item)\n {\n return '\n <url>\n <loc>' . utf8_encode(url('comments', array('id' => $item['news_id']), true)) . '</loc>\n <news:news>\n <news:publication>\n <news:name>' . $this->title . '</news:name>\n <news:language>' . $this->language . '</news:language>\n </news:publication>\n <news:publication_date>' . date(\"c\", $item['news_date']) . '</news:publication_date>\n <news:title>' . utf8_encode(killhtml($item['news_title'])) . '</news:title>\n <news:keywords>Entertainment, Video Games</news:keywords>\n </news:news>\n </url>';\n }", "title": "" }, { "docid": "4b6cff4269d982de5d0b5cc710eca50e", "score": "0.47853255", "text": "private static function formatPath($path)\n {\n if (!preg_match('/\\.php$/', $path)) {\n $path .= '.php';\n }\n $path = preg_replace('/\\/{2,}/', '/', $path);\n return $path;\n }", "title": "" }, { "docid": "c4621ae9c025233cf5c73f2f6a626d8c", "score": "0.4775309", "text": "public function RelativeLink()\n {\n return sprintf('item-%s-%d', strtolower($this->owner->ClassName), $this->owner->ID);\n }", "title": "" }, { "docid": "1b4fd9daa5967c5697d5dd6fc82e80c2", "score": "0.47577137", "text": "protected function formatUri(string $uri) : string\n {\n if (strpos('/', $uri[0]) !== 0) {\n $uri = '/' . $uri;\n }\n\n return strlen($uri) > 1 ? rtrim($uri, '/ \\t\\n\\r\\0\\x0B') : $uri;\n }", "title": "" }, { "docid": "7fe1077be6b7a539f1f672183d47012b", "score": "0.47505984", "text": "public function get_file_url() {\n\n\t\t$podcast = Podcast::get_instance();\n\n\t\t$episode = $this->episode();\n\t\t$episode_asset = EpisodeAsset::find_by_id( $this->episode_asset_id );\n\t\t$file_type = FileType::find_by_id( $episode_asset->file_type_id );\n\n\t\tif ( ! $episode_asset || ! $file_type )\n\t\t\treturn '';\n\n\t\t$template = $podcast->get_url_template();\n\t\t$template = apply_filters( 'podlove_file_url_template', $template );\n\t\t$template = str_replace( '%media_file_base_url%', trailingslashit( $podcast->media_file_base_uri ), $template );\n\t\t$template = str_replace( '%episode_slug%', \\Podlove\\slugify( $episode->slug ), $template );\n\t\t$template = str_replace( '%suffix%', $episode_asset->suffix, $template );\n\t\t$template = str_replace( '%format_extension%', $file_type->extension, $template );\n\n\t\treturn $template;\n\t}", "title": "" }, { "docid": "da7ec1a3d96059fa14f2a1857f1ed40a", "score": "0.4744899", "text": "private function pathMarkup($path) {\n\t\t\t// encoded backslashes\n\t\t\t$pattern = '/\\//';\n\t\t\t$replacement = '\\\\\\/';\n\t\t\t$path = preg_replace($pattern, $replacement, $path);\n\n\t\t\t// converts markup format and creates names Regex match\n\t\t\t$pattern = '/\\<([a-zA-Z0-9]*)\\:\\((.*)\\)\\>/';\n\t\t\t$replacement = \"(?P<$1>$2)\";\n\t\t\t$path = preg_replace($pattern, $replacement, $path);\n\n\t\t\t$path = includeTrailingCharacter($path,'\\/');\n\n\t\t\t// should return a valid Regex named pattern from the markup structure\n\t\t\treturn $path;\n\t\t}", "title": "" }, { "docid": "6240632738c0c45c6e2d86ddaf44ffb8", "score": "0.4735952", "text": "public function getPathAsString()\n\t\t{\n\t\t\treturn '/'.implode('/', $this->getPath());\n\t\t}", "title": "" }, { "docid": "39f98d507585c2ac8a62052cd02bbfb3", "score": "0.4703545", "text": "public function formatLine( DatabaseThreadItem $item, MessageLocalizer $context ): string {\n\t\t$contents = [];\n\n\t\t$contents[] = $this->makeLink( $item );\n\n\t\tif ( !$item->getRevision()->isCurrent() ) {\n\t\t\t$contents[] = $context->msg( 'discussiontools-findcomment-results-notcurrent' )->escaped();\n\t\t}\n\n\t\tif ( is_string( $item->getTranscludedFrom() ) ) {\n\t\t\t$contents[] = $context->msg( 'discussiontools-findcomment-results-transcluded' )->escaped();\n\t\t}\n\n\t\treturn implode( $context->msg( 'word-separator' )->escaped(), $contents );\n\t}", "title": "" }, { "docid": "08a37e8496756f86a0cae8749d8d9014", "score": "0.47011343", "text": "public function fix_item (&$item)\n\t{\n\t\t$item->url = preg_replace (\"/(?<!:)\\/\\//\", \"/\", $item->url);\n\n\t\t// set description to content.\n\t\t$item->description = $item->content;\n\t}", "title": "" }, { "docid": "339b6d39dd63842a55fc8783aba800cd", "score": "0.46885887", "text": "public function getPath()\n {\n // we use trim() instead of empty() on string elements\n // to allow for string-zero values.\n return $this->_config['path']\n . (empty($this->path) ? '' : $this->_pathEncode($this->path))\n . (trim($this->format) === '' ? '' : '.' . urlencode($this->format));\n }", "title": "" }, { "docid": "a659f887fd56950b8703a72a7c7cde61", "score": "0.46860555", "text": "public function buildFormattedItem(XMLElement $element, $items, $title, $mode) {\n\t\t\tforeach ($items as $item) {\n\t\t\t\t$path_items = $this->driver->getBreadcrumbParents($this, $item->entry);\n\t\t\t\t$path = array();\n\n\t\t\t\tforeach ($path_items as $path_item) {\n\t\t\t\t\t$path[] = $path_item->handle;\n\t\t\t\t}\n\n\t\t\t\t$path = array_reverse($path);\n\n\t\t\t\t$child = new XMLElement('item');\n\t\t\t\t$child->setAttribute('id', $item->entry);\n\t\t\t\t$child->setAttribute('path', implode('/', $path));\n\t\t\t\t$child->setAttribute('handle', $item->handle);\n\t\t\t\t$child->setAttribute('value', $item->value);\n\n\t\t\t\tif ($mode == 'tree') {\n\t\t\t\t\t$items = $this->driver->getBreadcrumbChildren(\n\t\t\t\t\t\t$this, $item->entry\n\t\t\t\t\t);\n\n\t\t\t\t\t$this->buildFormattedItem($child, $items, $title, $mode);\n\t\t\t\t}\n\n\t\t\t\t$element->appendChild($child);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "f282f1a99cf5c3ec95e4a49209a313ad", "score": "0.4683687", "text": "public function getPathAttribute()\n {\n return \"/forum/{$this->channel->slug}/{$this->slug}\";\n }", "title": "" }, { "docid": "51a209faefacc38f0f906dd9ba846db1", "score": "0.46770588", "text": "function getDisplayPath( $pPath ) {\n\t\t$ret = \"\";\n\t\tif( !empty( $pPath ) && is_array( $pPath ) ) {\n\t\t\t$ret .= \" &raquo; \";\n\t\t\tforeach( $pPath as $node ) {\n\t\t\t\t$ret .= ( @BitBase::verifyId( $node['parent_id'] ) ? ' &raquo; ' : '' ).'<a title=\"'.htmlspecialchars( $node['title'] ).'\" href=\"'.TreasuryGallery::getDisplayUrlFromHash( $node ).'\">'.htmlspecialchars( $node['title'] ).'</a>';\n\t\t\t}\n\t\t}\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "0f553d93cae75b4316ac32dfa18e0349", "score": "0.46722147", "text": "protected function format($uri)\n\t{\n\t\treturn (($uri = trim($uri, '/')) !== '') ? $uri : '/';\n\t}", "title": "" }, { "docid": "174a9efa591e1b41f8d298b5c51e3a37", "score": "0.46716166", "text": "private static function FORMAT_FILENAME(){\n\t\t$time\t= Time::INIT();\n\t\t\n\t\t// Zeitstempel setzen\n\t\t$s\t= '##DATETIME##';\n\t\t$r\t= $time->getDatum('JJJJMMTT_hh-mm-ss');\t\t\n\t\tView::$FILENAME = str_replace($s, $r, View::$FILENAME);\n\t\t\n\t\t// Datum setzen\n\t\t$s\t= '##DATE##';\n\t\t$r\t= $time->getDatum('JJJJMMTT');\t\n\t\tView::$FILENAME = str_replace($s, $r, View::$FILENAME);\n\t}", "title": "" }, { "docid": "589cd50b42554184cde9ecabbdaa5e5b", "score": "0.46705312", "text": "protected function _setFormatFromPath()\n {\n $this->format = null;\n $val = end($this->path);\n if ($val) {\n // find the last dot in the value\n $pos = strrpos($val, '.');\n if ($pos !== false) {\n $key = key($this->path);\n $this->format = substr($val, $pos + 1);\n $this->path[$key] = substr($val, 0, $pos);\n }\n }\n }", "title": "" }, { "docid": "6cbb60cd02fb7397ed557b6711722a96", "score": "0.4669161", "text": "public function path()\n {\n return \"/@{$this->creator->username}/collections/{$this->slug}\";\n }", "title": "" }, { "docid": "db5e0d5e175dad78cf7ce8a41fe9292f", "score": "0.4658791", "text": "function format_namespace(string $path): string\n {\n $namespace = str_replace(base_path(), '', $path);\n $namespace = preg_replace('/\\//', '\\\\', $namespace);\n $namespace = str_replace('.php', '', $namespace);\n $namespace = 'A' . substr($namespace, 2);\n \n return $namespace;\n }", "title": "" }, { "docid": "23c881c223f390c7537df98083e75289", "score": "0.4655845", "text": "public function getFormatPath()\n {\n return $this->format_path;\n }", "title": "" }, { "docid": "1a3e7dc3c647c1de6f09ef6ecef1100e", "score": "0.46372852", "text": "#[SymfonySerializer\\Ignore]\n public function getFullPath(): string\n {\n $parents = $this->getParents();\n $path = [];\n\n foreach ($parents as $parent) {\n if ($parent instanceof FolderInterface) {\n $path[] = $parent->getFolderName();\n }\n }\n\n $path[] = $this->getFolderName();\n\n return implode('/', $path);\n }", "title": "" }, { "docid": "7f68726c4b1d5c31c0b523de3634914b", "score": "0.46254155", "text": "public static function toURLPath($path){\n return str_replace([\".\\\\\",\"\\\\\",\"./\"],[\"\",\"/\",\"\"],$path);\n }", "title": "" }, { "docid": "781cabf3317dab0f929e86024645162b", "score": "0.46253437", "text": "private function getItemUrl(Docman_Item $docmanItem) {\n $baseUrl = get_server_url().'/plugins/docman/?group_id='.$docmanItem->getGroupId();\n $itemUrl = $baseUrl.'&action=show&id='.$docmanItem->getId();\n return $itemUrl;\n }", "title": "" }, { "docid": "c18ca44913fe3bf2625f8e644f72bb4b", "score": "0.46240968", "text": "public function getWrapperStringFor($path);", "title": "" }, { "docid": "97e3f55e5ab9d5a99b960bf63ce3ec93", "score": "0.45959064", "text": "function LinkDescarga($item)\n {\n return url('/descargar/'.$item->id.'/'.$item->nombre);\n }", "title": "" }, { "docid": "14bb24c6f7cc9cf8d05d0953a0cd575d", "score": "0.45906872", "text": "protected function getSubitem(object $item) : string\n\t{\n\t\t$title = App::e($item->title);\n\t\t$url = App::e($item->url ?? $this->app->uri->getEmpty());\n\n\t\treturn '<a href=\"' . $url . '\">' . $title . '</a>' . \"\\n\";\n\t}", "title": "" }, { "docid": "37a53db6ec665bf670558cef609e8398", "score": "0.45904735", "text": "private function __relativePath($path) {\n\t\treturn 'todo';\n\t}", "title": "" }, { "docid": "bb9ccb6469d990da862de5d9bab892d5", "score": "0.45879263", "text": "public function getLink() {\n return D3_GAME_GUIDE_ITEM_BASE_URL.strtolower( \n str_replace(' ', '-', \n str_replace('\\'', '', \n $this->getName() ) ) )\n .'-'.$this->getId();\n }", "title": "" }, { "docid": "872af7cf10416129c3f60103ec06a382", "score": "0.45825535", "text": "function unify_path(string $path): string\n {\n return preg_replace('/\\\\\\\\/', '/', $path);\n }", "title": "" }, { "docid": "555d0d993fdfad0838f85e4490fbd05f", "score": "0.4582415", "text": "public function getUriPath();", "title": "" }, { "docid": "35da629a15aeb3d4215e26e542634329", "score": "0.45802912", "text": "public function getResourcePathFor(string $path): string;", "title": "" }, { "docid": "cde3ea2065bffbfa505b8a06190c853c", "score": "0.45680737", "text": "static function getClass($item){\n\t\treturn \"\\\\resources\\\\layout\\\\{$item}\\\\item\";\n\t\t\n\t}", "title": "" }, { "docid": "2a3827b827a9357212251381fb0e62d2", "score": "0.456407", "text": "public function getPathAttribute(): string\n {\n if (! $this->series_id) {\n return route('post', ['post' => $this], false);\n }\n\n return \"/{$this->topic->slug}/{$this->series->slug}/{$this->slug}\";\n }", "title": "" }, { "docid": "c28dfbea9587b81d54b17abc7759026f", "score": "0.45506567", "text": "protected function generateUrlForAction(ActionDefinitionInterface $action, $path)\n {\n $tokens = $action->getTokens();\n $components = array_map(function(Parameter $value) {\n return sprintf('{%s}', $value->getName());\n }, $tokens);\n\n if ($action->shouldAppendId() === true) {\n $components[] = $action->getId();\n }\n\n array_unshift($components, $path);\n array_unshift($components, $this->urlGenerator->getMountPath());\n\n $u = join('/', $components);\n $u = preg_replace('/\\/{2,}/', '/', $u);\n\n return $u;\n }", "title": "" }, { "docid": "1098cba9fa6fef1f2c8e6499b9f9f765", "score": "0.45420685", "text": "public function getEditUrlFor($item)\n {\n return [\n 'path' => 'KunstmaanFormBundle_formsubmissions_list_edit',\n 'params' => ['nodeTranslationId' => $this->nodeTranslation->getId(), 'submissionId' => $item->getId()],\n ];\n }", "title": "" }, { "docid": "b1c7e6c0089d4e690523e157daab09d8", "score": "0.45417508", "text": "public function format($item): string {\n if (!($item instanceof DeleteStatement)) {\n throw new InvalidArgumentException(\"Can only format DeleteStatements\");\n }\n $this->prime($item);\n $sources = $this->getPrimedSources($item->getFromSources());\n $whereClause = $item->getWhereClause();\n \n $from_string = count($sources) ? \"FROM\\t\" . $this->formatDeleteFromList($sources) : '';\n $where_string = $whereClause ? \"WHERE\\t\" . $this->formatComponent($whereClause) : '';\n $delete_stmt_string = \"DELETE\\t \\n{$from_string}\\n{$where_string}\";\n \n return trim($delete_stmt_string);\n }", "title": "" }, { "docid": "3873c3a5f0d16416adf711b3f7fc1c8e", "score": "0.4535492", "text": "public function format($formatName, $parent, $attribute, $index = null)\n {\n\n $path = $this->path($formatName, $parent, $attribute, $index,true);\n\n return $path;\n\n }", "title": "" }, { "docid": "1db7f43585482782ab24197d7cc56a6b", "score": "0.45333412", "text": "private function processPath(string $path): string\n {\n // remove repeated slashes\n return preg_replace('~/+~', DS, $path);\n }", "title": "" }, { "docid": "8bff667f39346b0f3684480ec61136b7", "score": "0.4527632", "text": "public function tagUri()\n {\n $url = parse_url(route('tricks.show', $this->resource->slug));\n\n $output = 'tag:';\n $output .= $url['host'] . ',';\n $output .= $this->resource->created_at->format('Y-m-d') . ':';\n $output .= $url['path'];\n\n return $output;\n }", "title": "" }, { "docid": "2ae1dbdc1c3d513fe8ec26f2459db73f", "score": "0.4522461", "text": "final function path_int(): string {\r\n\t\treturn sprintf('%s/%s', $this->parent->path_int(), $this->id());\r\n\t}", "title": "" }, { "docid": "8ae20595763f349a9eed21887593c203", "score": "0.45100355", "text": "public function __toString() \n {\n return $this->path;\n }", "title": "" }, { "docid": "6c0ca4a649f34d21ac24b9525d7ada44", "score": "0.45045263", "text": "public function format($file)\r\n {\r\n $file = $this->getPathname($file);\r\n $dirsep = Akt_Filesystem_Path::getDirectorySeparator($file);\r\n $file = strtr($file, '/\\\\', str_repeat($dirsep, 2));\r\n \r\n if ($this->_relatives) \r\n {\r\n foreach ($this->_relatives as $relative) \r\n {\r\n $relatives = array();\r\n if ($relative === true) {\r\n if (!is_string($this->_cwd)) {\r\n continue;\r\n }\r\n $relatives[] = $this->_cwd;\r\n }\r\n elseif (is_string($relative)) {\r\n $relatives[] = $relative;\r\n if (!Akt_Filesystem_Path::isAbsolute($relative, 'any') && is_string($this->_cwd)) {\r\n $relatives[] = rtrim($this->_cwd, '/\\\\') . \"/\" . ltrim($relative, '/\\\\');\r\n } \r\n }\r\n else {\r\n continue;\r\n }\r\n \r\n foreach ($relatives as $relative) {\r\n $relative = rtrim(strtr($relative, '/\\\\', str_repeat($dirsep, 2)), '/\\\\');\r\n if (strpos($file, $relative) === 0) {\r\n $file = ltrim(substr($file, strlen($relative)), '/\\\\');\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n \r\n return $file;\r\n }", "title": "" }, { "docid": "388300219b59b41ce360d534d0705ffc", "score": "0.45027974", "text": "public function prefixWithNamespace( $item ) {\n return $this->_kitchen_settings['namespace'] . $item;\n }", "title": "" }, { "docid": "8db3e19fa638baebc762b759c6be8454", "score": "0.44950622", "text": "public function buildFullPath();", "title": "" }, { "docid": "f013429e2df5e210e7f2826c15628a43", "score": "0.44798997", "text": "protected function filterPath($path) : string\n {\n if (!(is_string($path) || (is_object($path) && method_exists($path, '__toString')))) { \n throw new UriInvalidArgumentException('Path must be a string');\n }\n $path = empty($path) ? '/' : $path;\n\n return preg_replace_callback(\n '/(?:[^a-zA-Z0-9_\\-\\.~ . !\\$&\\'\\(\\)\\*\\+,;=%:@\\/]++|%(?![A-Fa-f0-9]{2}))/',\n function ($match) {\n return rawurlencode($match[0]);\n },\n $path\n );\n }", "title": "" }, { "docid": "549598aa542bcea974b2a2a4cf2b0ce1", "score": "0.4479761", "text": "function getLink($item) {\n\tglobal $_index, $_path;\n\n\t// We are in home\n\tif (empty($_path)) {\n\t\treturn $_index . '/' . $item;\n\t} else {\n\t\treturn $item;\n\t}\n}", "title": "" }, { "docid": "a958f33320492d1a766a38269e7cf2bb", "score": "0.4478855", "text": "protected static function getFullUrl($path) {\n return Url::fromUri('base:/' . drupal_get_path('module', 'file_link_test') . $path, ['absolute' => TRUE])->toString();\n }", "title": "" }, { "docid": "239332175f9a4a574070f657282a541a", "score": "0.44714463", "text": "public function __toString()\n {\n return $this->encodedPath;\n }", "title": "" }, { "docid": "f4fa3102f7ffe24e6d651522c0954c69", "score": "0.44698647", "text": "public function resource($path)\n {\n\n $base = \\substr($path, 0, 1) == '/';\n $path = \\ltrim($path, '/');\n $resourceHash = 'pamon'; //No Map\n\n if($base)\n {\n if(self::$_baseMap === null)\n {\n $this->_loadBaseMap();\n }\n if(isset(self::$_baseMap[$path]))\n {\n $resourceHash = $this->generateResourceHash(self::$_baseMap[$path]);\n }\n }\n else\n {\n if($this->_entityMap === null)\n {\n $this->_loadEntityMap();\n }\n\n if(isset($this->_entityMap[$path]))\n {\n $resourceHash = $this->generateResourceHash($this->_entityMap[$path]);\n }\n }\n\n return \\implode('/', array($this->preHash($base), $resourceHash, $path));\n }", "title": "" }, { "docid": "97865279bf46366b548f093da90256af", "score": "0.4461975", "text": "protected function id($path) {\n\t\t\t$path = $this->real($path);\n\t\t\t$path = substr($path, strlen($this->base));\n\t\t\t$path = str_replace(DIRECTORY_SEPARATOR, '/', $path);\n\t\t\t$path = trim($path, '/');\n\t\t\treturn strlen($path) ? $path : '/';\n\t\t}", "title": "" }, { "docid": "1097933495eb65f629df964315853999", "score": "0.4456351", "text": "protected function _path($path) {\t\r\n\t\treturn $this->rootName . $this->_normpath(substr($path, strlen($this->root)));\t\t\r\n\t}", "title": "" }, { "docid": "6f5577bfc31fe08223204daa6bdb107c", "score": "0.4455879", "text": "private function fp($fullpath) {\r\n\t\treturn str_replace(\"\\\\\", '/', $fullpath);\r\n\t}", "title": "" }, { "docid": "72b18928fa257c40d00f30016bea6c47", "score": "0.44542208", "text": "public function get_full_path() {\n $text = \"\";\n $path = $this->get_full_path_array();\n foreach($path as $obj) {\n if($text != \"\") {\n $text .= \" / \";\n }\n $text .= $obj->get_label();\n \n }\n return $text;\n }", "title": "" }, { "docid": "a82ae8e8a76860fbfe109302524e6351", "score": "0.4446935", "text": "public function setPath($path) {\n if(empty($this->format)) {\n preg_match('#\\.(?<format>[[:alnum:]]+)$#', $path, $matches);\n\n if(array_key_exists('format', $matches)) {\n $this->format = $matches['format'];\n\n $path = substr($path, 0, strlen($path) - strlen($matches[0]));\n }\n }\n\n return parent::setPath($path);\n }", "title": "" }, { "docid": "1c4ac10364bb7f236204dfb9d7d5ec49", "score": "0.44217464", "text": "public function formatItem( $item ) {\n\t\tif ( $item instanceof Issue === false ) {\n\t\t\t$item = new Issue( $item['number'], $item['html_url'], $item['body'], $item['labels'] );\n\t\t}\n\n\t\treturn $item;\n\t}", "title": "" }, { "docid": "85a271daf54eeaa388e1c9090b2c01b0", "score": "0.44170764", "text": "public function getPathAsString($separator = ' > ')\n {\n $children = array();\n $obj = $this;\n\n do {\n \t$children[] = $obj->renderLabel();\n } while ($obj = $obj->getParent());\n\n return implode($separator, array_reverse($children));\n }", "title": "" }, { "docid": "afc5af8918c4630f42ab587e71288a22", "score": "0.4410856", "text": "public function current_feed_url() {\r\n $url = 'http';\r\n if ($_SERVER[\"HTTPS\"] == \"on\") {$url .= \"s\";}\r\n $url .= \"://\";\r\n if ($_SERVER[\"SERVER_PORT\"] != \"80\") {\r\n $url .= $_SERVER[\"SERVER_NAME\"].\":\".$_SERVER[\"SERVER_PORT\"].$_SERVER[\"REQUEST_URI\"];\r\n } else {\r\n $url .= $_SERVER[\"SERVER_NAME\"].$_SERVER[\"REQUEST_URI\"];\r\n }\r\n\r\n if ( substr ( $url, -1 ) != '/' ) $url .= '/';\r\n\r\n $url .= \"feed\";\r\n return $url;\r\n }", "title": "" }, { "docid": "52a4cfbca94a620893876a0092de29b2", "score": "0.44095898", "text": "function cmain_item($item)\n\t{\n\t\t$item = luri_split($item);\n\t\t$view = $item[0];\n\t\tif (isset($item[1]))$data[\"item\"] = $item[1];\n\t\telse $data[\"item\"] = \"\";\n\t\tfor ($i = 2; $i < count($item); $i++)\n\t\t{\n\t\t\t$data[\"item\"] .= \"/\" . $item[$i];\n\t\t}\n\t\tlloader_load_view($view, $data);\n\t}", "title": "" }, { "docid": "f1e973dc45cbb0aca419b6d5f0ce44d4", "score": "0.4405633", "text": "function calc_item_path($id){\r\n\r\n\treturn intval($id/100).\"/\".intval($id%100).\"/\";\r\n\r\n}", "title": "" }, { "docid": "9a4ef9ee017ce3516aafc3a6a1cdb8b1", "score": "0.44026428", "text": "function format_link($source,$format=false)\n\t {\n\t if($format)\n\t {\n\t $source = str_replace(' ','%20',$source);\n\t }\n\t else\n\t {\n\t if(strrpos($source,'?')===true)\n\t {\n\t $source = substr($source,0,strrpos($source,'?'));\n\t }\n\t $source = str_replace(' ','',$source);\n\t }\n\t return $source;\n\t }", "title": "" }, { "docid": "21be583fe478f574685e6d6e83113d1a", "score": "0.43995532", "text": "public static function shortpath($path)\n {\n return $path;\n // $path = str_replace(GWF_PATH, '', $path);\n // return trim($path, ' /');\n }", "title": "" }, { "docid": "b70fc5f591e62dc0082f2490def37d68", "score": "0.4398074", "text": "public static function feedItemSetLinkName(string $customerId, string $feedId, string $feedItemSetId, string $feedItemId): string\n {\n return self::getPathTemplate('feedItemSetLink')->render([\n 'customer_id' => $customerId,\n 'feed_id' => $feedId,\n 'feed_item_set_id' => $feedItemSetId,\n 'feed_item_id' => $feedItemId,\n ]);\n }", "title": "" }, { "docid": "c0b327e10ecbec3caa04c041829f87d7", "score": "0.4393745", "text": "public function testFilename()\n {\n\t\t$endpoint = Model::Named('Endpoint')->objectForId( 5 );\n\t\t$this->assertTrue( $endpoint != false, \"Failed to find endpoint (5)\" );\n\n \tfor( $idx = 0; $idx < 100; $idx++ ) {\n \t\t$name = test_RandomWords();\n\t\t\t$issue = test_RandomNumber();\n\t\t\t$year = test_RandomNumber( 1990, 2016 );\n\n\t\t\t$values = array(\n\t\t\t\tRss::title => $name . \" \" . str_pad($issue, 3, \"0\", STR_PAD_LEFT) . \" (\" . $year . \")\",\n\t\t\t\tRss::desc => \"Test item \" . $name,\n\t\t\t\tRss::pub_date => time(),\n\t\t\t\tRss::guid => uuid(),\n\t\t\t\tRss::enclosure_url => \"http://url/to/file\",\n\t\t\t\tRss::enclosure_length => 10000,\n\t\t\t\tRss::enclosure_mime => null,\n\t\t\t\tRss::enclosure_hash => '34e4eacc9168cf97e0625699e9b5cb65',\n\t\t\t\tRss::enclosure_password => false,\n\t\t\t\t\"endpoint\" => $endpoint\n\t\t\t);\n\t\t\tlist($rssDBO, $errors) = $this->model->createObject($values);\n\t\t\t$this->assertNull( $errors, \"Failed to create new record\" );\n\t\t\t$this->assertTrue( $rssDBO != false, \"Failed to create new record\" );\n \t}\n }", "title": "" }, { "docid": "d38dd224522f26f4fd7087a542f7325f", "score": "0.43885025", "text": "public abstract function format($items);", "title": "" }, { "docid": "cc7c86189f77695f51f92714ad77c1f5", "score": "0.43828574", "text": "public function path() {\n return str_replace(':parent_path', $this->parent->path(), self::$path) . '/' . $this->id();\n }", "title": "" }, { "docid": "3cb68d57c9ed2c3d83a1fbaec184aa51", "score": "0.43818852", "text": "public static function feedName(string $customerId, string $feedId): string\n {\n return self::getPathTemplate('feed')->render([\n 'customer_id' => $customerId,\n 'feed_id' => $feedId,\n ]);\n }", "title": "" }, { "docid": "1316201a97ecc85221f63cf9077e842a", "score": "0.4381591", "text": "function get_feed_url ( $url, $feed_url ) {\r\n $url = str_replace(\r\n array(\r\n '%enc_feed%', '%feed%'\r\n ),\r\n array(\r\n urlencode($feed_url),\r\n esc_url($feed_url),\r\n ),\r\n $url );\r\n return $url;\r\n }", "title": "" }, { "docid": "2da07674b8a1671c31e19858884e9b02", "score": "0.43743816", "text": "public function buildUrl($path);", "title": "" }, { "docid": "0f3330e924ab64c979d21f5a69692231", "score": "0.43723264", "text": "public function rssLink()\n {\n return '/' . $this->slug;\n }", "title": "" }, { "docid": "dae3b6bf24ef03ae6d9edca698842aaf", "score": "0.4369197", "text": "public static function makePath()\n\t{\n\t\t$parts = func_get_args();\n\t\tforeach ($parts as $i => $part) {\n\t\t\t$parts[$i] = trim(str_replace('\\\\', '/', $part), '/');\n\t\t}\n\t\treturn '/' . implode('/', array_filter($parts));\n\t}", "title": "" }, { "docid": "27b5b33159559c2cca11cec7675dd12a", "score": "0.43691716", "text": "public function path($path = null)\n {\n return $this->getSlug() . '://' . ($path ? $path : $path);\n }", "title": "" }, { "docid": "03a02766d501b2c68c8f239277f62148", "score": "0.43622655", "text": "public function url($path)\n {\n $pathTrl = \"/\".$this->prefix.$path;\n return $pathTrl;\n }", "title": "" }, { "docid": "c1071a87b6b932ac85890c7fca6ebe4e", "score": "0.43618533", "text": "function flyer_path($flyer)\n{\n\treturn $flyer->zip . '/' . str_replace(' ', '-', $flyer->street);\n}", "title": "" }, { "docid": "be8a4933a202c1540a1c7baa3910bea4", "score": "0.43607357", "text": "private function format_text($item) {\n $children_toggle = '';\n\n // If we have children elements add the < to show taggle possibility\n if (!empty($item['children'])) {\n $children_toggle = '<i class=\"fa pull-right fa-angle-left\"></i>';\n }\n\n // If there is an icon, use the given one\n if (isset($item['icon'])) {\n return '<i class=\"fa fa-' . $item['icon'] . '\"></i><span>' . $item['text'] . '</span>' . $children_toggle;\n }\n\n // Otherwise use basic >> icon\n return '<i class=\"fa fa-circle-o\"></i><span>' . $item['text'] . '</span>' . $children_toggle;\n }", "title": "" }, { "docid": "aac64337ada1ad3adb6b303c668ab3b6", "score": "0.43594837", "text": "public function path($path = '')\n\t{\n\t\treturn $this->get_path() . $path;\n\t}", "title": "" }, { "docid": "fdb8f398d269d6f7715804b3d15a36f2", "score": "0.43575326", "text": "public function formatUrl($request)\n {\n if (!empty($request)) {\n $parts = parse_url($request);\n\n if (isset($parts['path'])) {\n $request = $parts['path'];\n }\n }\n\n return urldecode(trim($request, '/'));\n }", "title": "" }, { "docid": "8ffdd7944d24be1412a8e9cf4ad5245c", "score": "0.4353274", "text": "private function standardize($path)\n\t{\n\t\t$content_root = array_get($this->config, 'content_root');\n\n\t\t$path = Path::trimSlashes(Path::assemble($content_root, $path));\n\n\t\t// If an already standardized path is passed in, the content root will double up.\n\t\t// Address that.\n\t\t$path = str_replace($content_root . '/' . $content_root, $content_root, $path);\n\n\t\treturn $path;\n\t}", "title": "" }, { "docid": "71dcf6b1717f0ac555daee59c7032974", "score": "0.43522334", "text": "function get_feed_from_url() {\n\t\t$url = get_current_url_fragments();\n\t\t$feed = array_pop($url);\n\t\t$type = array_pop($url);\n\t\tif ($type != 'user' && $type != 'project') {\n\t\t\tmessage_die(GENERAL_ERROR, \"Unknown feed type: $type\", 'URL error');\n\t\t}\n\t\treturn \"wikimedia/dev/feeds/$type/$feed.xml\";\n\t}", "title": "" }, { "docid": "a89cdd3d8b7ff02ad38beed3edb97ffa", "score": "0.43481734", "text": "public function itemToInlineCssString(\\stdClass $item)\n {\n $attributes = (array) $item;\n $inlineStyles = '<style';\n\n foreach ($this->itemKeys as $itemKey) {\n if ($itemKey != 'href' && $itemKey != 'rel' && isset($attributes[$itemKey])) {\n if (is_array($attributes[$itemKey])) {\n foreach ($attributes[$itemKey] as $key => $value) {\n $inlineStyles .= sprintf(' %s=\"%s\"', $key, ($this->autoEscape) ? $this->escape($value) : $value);\n }\n } else {\n $inlineStyles .= sprintf(\n ' %s=\"%s\"',\n $itemKey,\n ($this->autoEscape) ? $this->escape($attributes[$itemKey]) : $attributes[$itemKey]\n );\n }\n }\n }\n\n $inlineStyles .= \">\" . file_get_contents($this->minifyDocRootPath . ltrim($item->href, '/')) . \"</style>\";\n\n return $inlineStyles;\n }", "title": "" }, { "docid": "94f0c077579d228bcc5e2ea6f5c77dcc", "score": "0.4344891", "text": "public static function resource(string $path = '') : string\n {\n return Container::getInstance()->resourcePath($path);\n }", "title": "" }, { "docid": "bec39c75bafa848dec9c1ae465990cec", "score": "0.43426394", "text": "private function patchUri(): string\n {\n $patternedUri = preg_replace_callback(\n '~/({(?P<param>\\w+)(?P<required>\\??)})~',\n fn($matches) => '/?(' . ($this->patterns[$matches['param']] ?? '\\w+') . ')' . $matches['required'],\n $this->uri\n );\n\n return rtrim($patternedUri, '/');\n }", "title": "" } ]
8ef242df6ad03ea33f54ee76ecc344c0
Bootstrap any application services.
[ { "docid": "8b4828aa23ca958f92e472ae87b911bd", "score": "0.0", "text": "public function boot()\n {\n //\n Paginator::useBootstrap();\n if($this->app->environment('production')) {\n \\URL::forceScheme('https');\n \\Schema::defaultStringLength(191);\n }\n\n \\Validator::extendImplicit('current_password', function ($attribute, $value, $parameters, $validator){\n return Hash::check($value, \\Auth::user()->contrasena);\n });\n }", "title": "" } ]
[ { "docid": "9098c3ffcb9b4fd79e758b0fc71402ea", "score": "0.75022244", "text": "public function boot()\n {\n if ($this->isBooted()) {\n return;\n }\n\n array_walk($this->serviceProviders, function($provider)\n {\n $this->bootProvider($provider);\n });\n\n $this->bootApplication();\n }", "title": "" }, { "docid": "0079ef1190049cbf53fcb5ffa0e1faaf", "score": "0.7181719", "text": "public function boot(): void\n {\n if ($this->app->runningInConsole()) {\n $this->bootPublishes();\n }\n\n $this->bootResources();\n $this->bootRoutes();\n }", "title": "" }, { "docid": "dc19ad88bd82cea36c57ac742d7751da", "score": "0.71772933", "text": "function boot()\n {\n Magice::boot($this->container->get('magice.service.container'));\n }", "title": "" }, { "docid": "b4c2efcf63849ce2f8f6015bb135cb37", "score": "0.71722686", "text": "public function boot() {\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "34141846540a9ecc58ea5c3e77ccccec", "score": "0.7154778", "text": "public function boot()\n {\n $this->app->singleton(BestHotelsClient::class, function (){\n return new BestHotelsClient([\n 'base_uri' => 'https://newsapi.org/v2/top-headlines',\n 'headers' => [\n 'Authorization' => 'bc9d632ca1da4806b50971820949c86b'\n ]\n ]);;\n });\n $this->app->singleton(TopHotelsClient::class, function (){\n return new TopHotelsClient([\n 'base_uri' => 'https://newsapi.org/v2/top-headlines',\n 'headers' => [\n 'Authorization' => 'bc9d632ca1da4806b50971820949c86b'\n ]\n ]);;\n });\n $this->app->singleton(BestHotelsRepository::class, function (){\n return new BestHotelsRepository();\n });\n\n\n $this->app->singleton(HotelService::class, function (){\n return new HotelService(\\request());\n });\n }", "title": "" }, { "docid": "c60a2389e803f0b7110c42057dcbde71", "score": "0.71499485", "text": "public function boot(): void\n {\n $this->app->singleton(ServDocker::class, function (): ServDocker {\n return new ServDocker(DockerComposer::make());\n });\n\n $this->app->singleton(DriverEngine::class, function (): DriverEngine {\n return DriverEngine::make(config('drivers'));\n });\n\n $this->app->singleton(ProjectSupervisor::class, function ($app): ProjectSupervisor {\n return new ProjectSupervisor($app->make(ServDocker::class), $app->make(DriverEngine::class));\n });\n\n $this->app->singleton(NginxComposer::class, function (): NginxComposer {\n return NginxComposer::make();\n });\n\n Config::set(\n 'database.connections.sqlite.database',\n ServDocker::make()->updateDataDirectoryPath() . 'database.sqlite'\n );\n\n $this->app->bind(Cli::class, function (): Cli {\n return tap(new Cli(), static function (Cli $cli): void {\n $cli->setTimeout(config('servd.process_timeout'));\n });\n });\n }", "title": "" }, { "docid": "1cc7f9e2aea95d6e6814e29f7fb71447", "score": "0.71338695", "text": "public function boot()\n {\n //new services container \n $this->buildContainer();\n //Amp based http webserver with event loop\n $server = new HttpServer($this->container);\n //build all registred functionnalities \n $this->buildFunctionnalities();\n\n $server->run(function() {\n foreach($this->functionnalities as $functionnality)\n {\n $functionnality->run();\n }\n });\n }", "title": "" }, { "docid": "cc6b3527797869f9bb0e208deefbc555", "score": "0.7082232", "text": "public function bootstrap()\n {\n if (! $this->app->hasBeenBootstrapped()) {\n $this->app->bootstrapWith($this->bootstrappers());\n }\n }", "title": "" }, { "docid": "7227077bd1b7638de0f5d8c72581ac14", "score": "0.7068568", "text": "public function boot()\n {\n $this->injectDependencies();\n }", "title": "" }, { "docid": "304ea5522f388ace615a41b9291f9c76", "score": "0.70486957", "text": "public function boot() {\n $this->registerPolicies();\n\n Gate::define('isSuperAdmin', function ($user) {\n return $user->role == 'superadmin';\n });\n\n Gate::define('isAdmin', function ($user) {\n return in_array($user->role, ['superadmin', 'admin']);\n });\n\n Gate::define('isAuthor', function ($user) {\n return in_array($user->role, ['superadmin', 'admin', 'author']);\n });\n\n Gate::define('isSubscriber', function ($user) {\n return in_array($user->role, ['superadmin', 'admin', 'author', 'subscriber']);\n });\n\n app()->singleton(AccountService::class, function ($app) {\n return new AccountService();\n });\n\n app()->singleton(CartService::class, function ($app) {\n return new CartService();\n });\n }", "title": "" }, { "docid": "794fbff2d8b10a8078a426f2318eb165", "score": "0.7043028", "text": "public function boot()\n {\n // Boot components\n $this->registerRepositories();\n $this->registerAPIs();\n \n // Run one time setup\n app('API')->modules->scan();\n app('API')->info->setAppVersion(MX_VERSION);\n \n if (env('APP_ENV') == 'local') {\n app('API')->translations->load();\n }\n \n // Register mconsole singleton\n $this->app->singleton('mconsole', function ($app) {\n return $this;\n });\n \n // Register service providers\n foreach ($this->register['providers'] as $class) {\n $this->app->register($class);\n }\n\n foreach ($this->routes as $route) {\n require $route;\n }\n\n $this->loadTranslationsFrom(storage_path('app/lang'), 'mconsole');\n \n foreach ($this->views as $view) {\n $this->loadViewsFrom($view, 'mconsole');\n }\n \n // Custom configurations\n foreach ($this->config as $config) {\n if (!file_exists(config_path(basename($config)))) {\n $this->publishes([\n $config => config_path(basename($config)),\n ], 'mconsole');\n } else {\n $this->mergeConfigFrom(\n $config, pathinfo($config, PATHINFO_FILENAME)\n );\n }\n }\n \n // Copy database migrations\n $migrations = [];\n $dir = __DIR__ . '/../../../migrations/';\n collect(scandir(__DIR__ . '/../../../migrations'))->each(function ($file) use (&$dir, &$migrations) {\n if (strpos($file, '.php') !== false) {\n $migrations[$dir . $file] = base_path('database/migrations/' . $file);\n }\n });\n $this->publishes($migrations, 'migrations');\n }", "title": "" }, { "docid": "1a694cd0e91558068e0aba0dce4a205f", "score": "0.70193726", "text": "public function boot()\n {\n $http = (env('IS_HTTPS',false)) ? 'https' : 'http';\n \\URL::forceScheme($http);\n\n if(env('IS_HTTPS',false)){\n \\URL::forceRootUrl(env('APP_URL','https://beta4.vaymuon.vn/'));\n if (str_contains(env('APP_URL','https://beta4.vaymuon.vn/'), 'https://')) {\n \\URL::forceScheme('https');\n }\n }\n\n $this->app->bind(Client::class, function ($app) {\n return ClientBuilder::create()\n ->setHosts(config('elasticquent.config.hosts'))\n ->build();\n });\n }", "title": "" }, { "docid": "a9512eb2e4d84e49060e04c86b7cafe0", "score": "0.7001669", "text": "public function boot(): void\n {\n if ($this->app->runningInConsole()) {\n $this->commands([\n // workers\n InstallDependencies::class,\n ESLint::class,\n Phpcs::class,\n Phpcbf::class,\n Phpstan::class,\n InstallHooks::class,\n UninstallHooks::class,\n SemanticCommitMessages::class,\n\n // hooks\n CommitMsg::class,\n PreCommit::class,\n PrePush::class,\n PrepareCommitMsg::class,\n PostCheckout::class,\n ]);\n\n $this->publishes([\n __DIR__ . '/Config/hooks.php' => config_path('hooks.php'),\n ]);\n\n $this->mergeConfigFrom(\n __DIR__ . '/Config/hooks.php',\n 'hooks'\n );\n }\n }", "title": "" }, { "docid": "e8d4dc4f441ed91b6f6afaeda930b306", "score": "0.69813305", "text": "public function boot()\n {\n if (strpos(php_sapi_name(), 'cli') !== false) {\n $this->commands([\n ConsulConfig::class,\n ]);\n }\n }", "title": "" }, { "docid": "a06043798f8c1b5e86f586df9b3ae9b9", "score": "0.6974947", "text": "public function boot()\n {\n $this->dispatch(new SetCoreConnection());\n $this->dispatch(new ConfigureCommandBus());\n $this->dispatch(new ConfigureTranslator());\n $this->dispatch(new LoadStreamsConfiguration());\n\n $this->dispatch(new InitializeApplication());\n $this->dispatch(new AutoloadEntryModels());\n $this->dispatch(new AddAssetNamespaces());\n $this->dispatch(new AddImageNamespaces());\n $this->dispatch(new AddViewNamespaces());\n $this->dispatch(new AddTwigExtensions());\n\n $this->app->booted(\n function () {\n $this->dispatch(new RegisterAddons());\n }\n );\n }", "title": "" }, { "docid": "8ff3a37d8ea964a02d920c45f63bba1e", "score": "0.6955807", "text": "public function boot()\n {\n $this->setupConfig($this->app);\n }", "title": "" }, { "docid": "8ff3a37d8ea964a02d920c45f63bba1e", "score": "0.6955807", "text": "public function boot()\n {\n $this->setupConfig($this->app);\n }", "title": "" }, { "docid": "8ff3a37d8ea964a02d920c45f63bba1e", "score": "0.6955807", "text": "public function boot()\n {\n $this->setupConfig($this->app);\n }", "title": "" }, { "docid": "8ff3a37d8ea964a02d920c45f63bba1e", "score": "0.6955807", "text": "public function boot()\n {\n $this->setupConfig($this->app);\n }", "title": "" }, { "docid": "743be0a52252567c077228b7ca3e18cb", "score": "0.69231814", "text": "public function boot()\n {\n $this->app->bind(EmailMessageServiceInterface::class, EmailMessageService::class);\n $this->app->bind(EmailLogServiceInterface::class, EmailLogService::class);\n $this->app->bind(MailSenderInterface::class, MailSenderService::class);\n }", "title": "" }, { "docid": "07d776b270f733a20975bc7e0109226a", "score": "0.6910173", "text": "public function boot()\n {\n $this->app->bind('App\\Services\\HousesService', fn($app) => new HousesService());\n //\n }", "title": "" }, { "docid": "5a40a3c22220f4738d9a1bb92a2223f1", "score": "0.6906894", "text": "public function boot()\n {\n $this->app->singleton(Swapi::class, function () {\n return new Swapi(\n Http::baseUrl(config('services.swapi.endpoint'))->withHeaders([\n 'accept' => 'application/json',\n ])\n ->withOptions(['verify' => false])\n );\n });\n }", "title": "" }, { "docid": "bec39440642f99cd66c4e07bbbad6c9b", "score": "0.6904096", "text": "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->registerMigrations();\n $this->registerCommands();\n\n $this->publishesConfigurations();\n $this->publishesMigrations();\n }\n }", "title": "" }, { "docid": "a1a790854ef714b246fd43a71750dc69", "score": "0.6894019", "text": "public function boot()\n {\n DateFactory::useClass(Date::class);\n\n $this->app->extend(Generator::class, function (Generator $generator) {\n ProviderCollectionHelper::addAllProvidersTo($generator);\n return $generator;\n });\n }", "title": "" }, { "docid": "7546fad0177c58bd34e8e595a9a93ab8", "score": "0.6883518", "text": "public function boot(): void\n {\n $this->loadViewsFrom(__DIR__.'/../resources/views', 'booty');\n\n $this->loadViewComponentsAs('booty', [\n Components\\Group::class,\n Components\\Label::class,\n Components\\Input::class,\n Components\\Error::class,\n Components\\Set::class,\n ]);\n\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "2e0f39e306c7cd55c175be57dc8ac8f1", "score": "0.6880746", "text": "public function boot()\n {\n // Load in error handling\n if (class_exists(\\Whoops\\Run::class, true)) {\n $whoops = new \\Whoops\\Run();\n if (getenv('ENVIRONMENT') !== 'live') {\n $whoops->pushHandler(new \\Whoops\\Handler\\PrettyPageHandler);\n }\n $whoops->register();\n }\n\n // Load in .env\n try {\n // Load in additional version stuff\n $env = new Dotenv(__DIR__ . '/../', '.version');\n $env->load();\n\n // Load in the .env\n $env = new Dotenv(__DIR__ . '/../');\n $env->load();\n $env->required([\n 'MAILCHIMP_LIST_ID',\n 'MAILCHIMP_API_KEY',\n 'URI',\n 'DEBUG'\n ]);\n } catch (\\Exception $e) {\n }\n }", "title": "" }, { "docid": "22fbeca42a7e8a2b5d8ea900a4d29b23", "score": "0.68743956", "text": "public function boot()\n {\n $this->app->configure('facadeapi');\n\n $path = realpath(__DIR__.'/../../../config/config.php');\n $this->mergeConfigFrom($path, 'facadeapi');\n }", "title": "" }, { "docid": "deb4364ce4bfc991e6b662de852d080a", "score": "0.68636346", "text": "public function boot()\n {\n // $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'm3assy');\n // $this->loadViewsFrom(__DIR__.'/../resources/views', 'm3assy');\n // $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n // $this->loadRoutesFrom(__DIR__.'/routes.php');\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "1012d8fb01e2582afd4110432ca46125", "score": "0.6860669", "text": "public function boot()\n {\n $this->setupConfig();\n $this->setupAssets();\n $this->registerConsoleCommand();\n }", "title": "" }, { "docid": "5cdaa54a7956a6c73d1a179194267a21", "score": "0.68490857", "text": "public function boot()\n {\n3 $this->loadViewsFrom(__DIR__.'/../assets/resources/views', 'pagereview');\n\n $this->app['router']->namespace('Archive\\\\Service\\\\Controllers')\n ->middleware(['web'])\n ->group(function () {\n $this->loadRoutesFrom(__DIR__ . '/../routes/web.php');\n });\n\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "f31675289fc02a2b538e8d39d526135e", "score": "0.684782", "text": "public function boot()\n {\n if (method_exists($this->app, 'middleware')) {\n $this->app->middleware([\n Middlewares\\CorsMiddleware::class,\n Middlewares\\ValidationMiddleware::class,\n Middlewares\\AuthMiddleware::class\n ]);\n } else {\n $kernel = $this->app->make('Illuminate\\Contracts\\Http\\Kernel');\n $kernel->pushMiddleware('\\Megaads\\Apify\\Middlewares\\CorsMiddleware');\n $kernel->pushMiddleware('\\Megaads\\Apify\\Middlewares\\ValidationMiddleware');\n $kernel->pushMiddleware('\\Megaads\\Apify\\Middlewares\\AuthMiddleware');\n }\n if (method_exists($this->app, 'routeMiddleware')) {\n $this->app->routeMiddleware([\n 'basic' => Middlewares\\BasicAuthMiddleware::class\n ]);\n }\n if (method_exists($this->app, 'configure')) {\n $this->app->configure('apify');\n }\n\n include __DIR__ . '/routes.php';\n }", "title": "" }, { "docid": "b32825cda763a3e657ecc1cd2b5411f5", "score": "0.6847564", "text": "public function boot()\n {\n // $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'yangze');\n // $this->loadViewsFrom(__DIR__.'/../resources/views', 'yangze');\n // $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n // $this->loadRoutesFrom(__DIR__.'/routes.php');\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "1bd2b4b48ea9aaede1979b9fdb5dd977", "score": "0.68470085", "text": "public function boot()\n {\n $this->app->bind('Infinity', function () {\n $driver = config('infinity-laravel.driver', 'api');\n if (is_null($driver) || $driver === 'log') {\n return new NullService($driver === 'log');\n }\n\n return new InfinityService;\n });\n }", "title": "" }, { "docid": "0ae266b1bb2fa54f262d585bbb6cabc5", "score": "0.68431157", "text": "public function boot()\n {\n if ( $this->app->runningInConsole() ) {\n $this->registerPublishing();\n }\n\n $this->loadViewsFrom(__DIR__.'/../resources/views', 'nova-master');\n $this->loadMigrationsFrom(__DIR__ . '/../database/migrations');\n\n $this->app->booted(function () {\n $this->routes();\n });\n\n Nova::serving(function (ServingNova $event) {\n $this->registerPolicies();\n Nova::tools($this->registerTools());\n\n });\n }", "title": "" }, { "docid": "322771e2d29a5ea188bf72646c06af47", "score": "0.68380374", "text": "public function boot()\n\t{\n\t\t// $this->package moved to register because the service provider needs access to its own package config\n\t}", "title": "" }, { "docid": "e152ae7c278a54959247419d1f4d4746", "score": "0.68377596", "text": "public function boot()\n {\n // Bind SIRUP Service\n $this->app->bind(SirupServiceInterface::class, SirupService::class);\n }", "title": "" }, { "docid": "a7b0d699c223867d4f55c24fb83791d4", "score": "0.6836298", "text": "public function boot()\n {\n $this->app->singleton(Telegram::class, function($app) {\n return new Telegram(config('telegram'));\n });\n\n $this->app->singleton(AuraNLP::class, function($app) {\n return new AuraNLP(config('auranlp'));\n });\n }", "title": "" }, { "docid": "14e0d5f3372b89452b9d9a4085f053f6", "score": "0.68336385", "text": "protected function boot()\n {\n $this->loadConfigurationAndPaths();\n // Set paths and URLs to site root and sitecake resources\n $this->buildPaths();\n // Set default timezone\n date_default_timezone_set(self::getConfig('timezone'));\n // Set encoding\n mb_internal_encoding(self::getConfig('encoding'));\n // Update filesystem service provider adapter config property\n $this->app['filesystem.adapter.config'] = self::$paths['SITE_ROOT'];\n // Ensures sitecake working directory basic structure\n $this->ensureDirStructure();\n // Update cache directory path for cache service provider\n $this->app['local_cache.dir'] = $this->getCachePath();\n // Update log file location for monolog service provider (logger)\n $this->app['monolog.logfile'] = $this->app['filesystem']->fullPath($this->getLogsPath() . '/sitecake.log');\n // Update default session save path for session service provider\n $this->app['session.default_save_path'] = $this->app['filesystem']->fullPath($this->getTmpPath());\n // Expose public API\n $this->initialize();\n // Load plugins and initialize them\n $this->setPluginPath(self::$paths['SITECAKE_DIR']);\n $this->loadPlugins();\n }", "title": "" }, { "docid": "e657feeaa86e493957de8ba58746cfd7", "score": "0.68326825", "text": "public function boot()\n { \n $this->loadViewsFrom(__DIR__.'/resources/views', 'http-site'); \n // $this->loadTranslationsFrom(__DIR__.'/resources/lang', 'http-site'); \n // $this->loadMigrationsFrom(__DIR__.'/database/migrations'); \n $this->mergeConfigFrom(__DIR__.'/config.php', 'http-site'); \n $this->map(); \n $this->app->booted(function() {\n return $this->moduleConfiguration();\n });\n }", "title": "" }, { "docid": "57b2884ad6aaf235f779a63444a14090", "score": "0.6830492", "text": "public function boot()\n {\n //dd(__METHOD__);\n if ($this->app->runningInConsole()) {\n $this->commands($this->commands);\n }\n }", "title": "" }, { "docid": "8ab17e5971da2f4bc387177555037d35", "score": "0.6830255", "text": "public function boot()\n {\n // todo\n }", "title": "" }, { "docid": "2e8eb3015792bcdfec90e8393a015d07", "score": "0.6826161", "text": "public function boot(): void\n {\n $this->mergeConfigFrom(\n dirname(__DIR__) . '/configs/faker-images.php',\n 'faker-images'\n );\n\n $this->app->extend(FakerGenerator::class, function ($service) {\n $service->addProvider(new Providers\\FakerFace($service));\n $service->addProvider(new Providers\\FakerPicture($service));\n return $service;\n });\n }", "title": "" }, { "docid": "7260447e7bfd21d7906aa16149622bc7", "score": "0.6824355", "text": "public function bootstrap()\n {\n // Force reload bootstrappers needed to run\n // multiple cache commands in the same process or file!\n if ($this->app->hasBeenBootstrapped()) {\n $this->app->make(LaravelLoadEnvironmentVariables::class)->bootstrap($this->app);\n $this->app->make(LaravelLoadConfiguration::class)->bootstrap($this->app);\n }\n\n parent::bootstrap();\n }", "title": "" }, { "docid": "7a9523b425a532daa575fea1e7ab115f", "score": "0.68174505", "text": "public function boot()\n {\n $this->registerPublishedPaths();\n\n $this->commands([\n CleanupTemporaryFileUploads::class,\n FormMakeCommand::class,\n FormRequestMakeCommand::class,\n PublishFormStylesheetsCommand::class,\n ShowSpladeVersions::class,\n SpladeInstallCommand::class,\n SsrTestCommand::class,\n TableMakeCommand::class,\n ]);\n\n $this->loadJsonTranslationsFrom(__DIR__ . '/../resources/lang');\n $this->loadJsonTranslationsFrom(lang_path('vendor/splade'));\n\n if (!Lang::has('pagination.previous')) {\n Lang::addLines(['pagination.previous' => '&laquo; Previous'], Lang::getLocale());\n }\n\n if (!Lang::has('pagination.next')) {\n Lang::addLines(['pagination.next' => 'Next &raquo;'], Lang::getLocale());\n }\n\n $this->loadViewsFrom(__DIR__ . '/../resources/views', 'splade');\n\n $this->registerBindingsInContainer();\n\n static::registerTransitionAnimations(\n $this->app->make(TransitionRepository::class)\n );\n\n $this->registerBladeComponentsAndDirectives();\n $this->registerDuskMacros();\n $this->registerViewMacros();\n $this->registerResponseMacro();\n $this->registerRequestMacros();\n $this->registerRouteForEventRedirect();\n $this->registerMacroForBridgeComponent();\n $this->registerMacroForPasswordConfirmation();\n $this->registerMacroForFileUploads();\n $this->registerMacroForTableRoutes();\n }", "title": "" }, { "docid": "9bec81efd067939b5cc0d35a80c78fda", "score": "0.6816332", "text": "public function boot(): void\n {\n $this->loadViewsFrom(self::VIEWS_DIRECTORY, self::NAMESPACE);\n $this->loadMigrationsFrom(self::MIGRATIONS_DIRECTORY);\n\n $this->bootAuthGuard();\n\n if ($this->app->runningInConsole()) {\n $this\n ->publishConfig()\n ->publishViews();\n }\n }", "title": "" }, { "docid": "fc2f1f749d6204d92fc68eff5a632c1a", "score": "0.67952585", "text": "public function boot()\r\n {\r\n $this->loadRoutesFrom(realpath(__DIR__ . '/routes/web.php'));\r\n \r\n // Load published views to cover possible changes to the application\r\n $this->loadViewsFrom($this->getPublishedViewsDirectory(), 'auth');\r\n \r\n // Load the stock views that come with the package, in case a view has not been published\r\n $this->loadViewsFrom($this->getViewsDirectory(), 'auth');\r\n \r\n $this->publishFiles();\r\n \r\n // Bind the Contracts to the Repositories\r\n $this->app->bind(\\Rafni\\Auth\\Repositories\\Users\\UsersContract::class, \\Rafni\\Auth\\Repositories\\Users\\UsersService::class);\r\n \r\n $this->loadMigrationsFrom($this->getMigrationsDirectory());\r\n }", "title": "" }, { "docid": "463a2d5fa489d41eb1cec800f240cc48", "score": "0.6794535", "text": "public function boot()\n {\n // 路由文件\n $this->loadRoutes();\n\n // 后台模板目录\n $this->loadViewsFrom(\n $this->getBasePath() . '/resources/views',\n 'admin'\n );\n // 后台语言包目录\n $this->loadTranslationsFrom(\n $this->getBasePath() . '/resources/lang',\n 'admin'\n );\n\n if ($this->app->runningInConsole()) {\n $this->loadMigrationsFrom($this->getBasePath() . '/database/migrations');\n }\n }", "title": "" }, { "docid": "e004efd5d61449a3db37f013afb20865", "score": "0.6790899", "text": "public function boot()\n\t{\n\t\t$this->package('dcweb/dcms');\n\t\tinclude __DIR__.'/../../routes.php';\n\t\tinclude __DIR__.'/../../filters.php';\n\n\t\t// Add package database configurations to the default set of configurations\n $this->app['config']['database.connections'] = array_merge(\n $this->app['config']['database.connections']\n ,\\Config::get('dcms::database.connections')\n );\n\t\t\n\t\t// Use package auth\n//\t\t$this->app['config']['auth'] = \\Config::get('dcms::auth');\n\t\t//array_replace_recursive\n\t\t$this->app['config']['auth'] = array_replace_recursive($this->app[\"config\"][\"auth\"],\\Config::get('dcms::auth'));\n\t}", "title": "" }, { "docid": "2584215e7dedc32f0783854d760bd639", "score": "0.67894804", "text": "public function booting()\n {\n $this->app->bindSingleton('components', function($app) {\n $file = $app->appPath('Services/FormBuilder/DefaultElements.php');\n return new Components($app->load($file));\n }, 'Components');\n\n $this->app->bind('formBuilder', function($app) {\n return new FormBuilder($app);\n }, 'FormBuilder');\n }", "title": "" }, { "docid": "e207d105348b21a2a8366c01f9fdfaa7", "score": "0.678947", "text": "public function boot()\n {\n // 批量注册 Facades\n foreach (Finder::create()->files()->name('*.php')->in(app_path('Facades')) as $k => $v) {\n $baseName = basename($v->getPath());\n $fileName = rtrim($v->getFilename(), '.php');\n $this->app->singleton(\"{$baseName}\\\\{$fileName}\", \"App\\\\Repository\\\\$baseName\\\\$fileName\");\n }\n Resource::withoutWrapping();\n }", "title": "" }, { "docid": "5b76eff31ed5f3c42a7601499e62e6b1", "score": "0.67892206", "text": "public function boot()\n {\n // $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'carropublic');\n // $this->loadViewsFrom(__DIR__.'/../resources/views', 'carropublic');\n // $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n // $this->loadRoutesFrom(__DIR__.'/routes.php');\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "4510881b04ecc4034f5039533876e874", "score": "0.67889905", "text": "public function boot()\n {\n $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n\n// $this->loadRoutesFrom(__DIR__ . '/Routes/web.php');\n\n $this->bootSivProvider();\n\n // $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'oauth');\n // $this->loadViewsFrom(__DIR__.'/../resources/views', 'oauth');\n\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__.'/../config/oauth.php' => config_path('oauth.php'),\n ], 'config');\n\n // Publishing the views.\n /*$this->publishes([\n __DIR__.'/../resources/views' => resource_path('views/vendor/oauth'),\n ], 'views');*/\n\n // Publishing assets.\n /*$this->publishes([\n __DIR__.'/../resources/assets' => public_path('vendor/oauth'),\n ], 'assets');*/\n\n // Publishing the translation files.\n /*$this->publishes([\n __DIR__.'/../resources/lang' => resource_path('lang/vendor/oauth'),\n ], 'lang');*/\n\n // Registering package commands.\n // $this->commands([]);\n }\n }", "title": "" }, { "docid": "9d4b216ced25355cb6549e22dd0553c7", "score": "0.6785073", "text": "public function boot()\n {\n /*\n * Optional methods to load your package assets\n */\n\n\n if ($this->app->runningInConsole()) {\n $this->commands([\n MakeScafold::class,\n MakeController::class,\n MakeModel::class,\n MakeDocs::class,\n MakeResponseDocumentation::class,\n MakeRoute::class,\n ]);\n $this->publishes([\n __DIR__ . '/../config/config.php' => config_path('resource-boilerplate.php'),\n ], 'config');\n }\n }", "title": "" }, { "docid": "f4f2d44e2341a2ea03f41b0a80e14ff8", "score": "0.67793477", "text": "public function boot()\n {\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n\n $kernel = $this->app->make(Kernel::class);\n\n if ($kernel->hasMiddleware(HandlePreflight::class)) {\n $kernel->prependMiddleware(HandleCorsResponse::class);\n }\n }", "title": "" }, { "docid": "1ef0cd0d63ddeaf5bcc7d682fa7beb07", "score": "0.677724", "text": "public function boot()\n {\n $app = $this->getContainer()->get(ApplicationInterface::class);\n $this->registerRoutes($app);\n $this->registerTemplate();\n }", "title": "" }, { "docid": "8cd7e612a8faacf661fcadfae4afe257", "score": "0.67739916", "text": "public function boot()\n {\n // alias middleware\n $this->app['router']->aliasMiddleware('auth_admin', 'Khludev\\KuLaraPanel\\Middleware\\AuthAdmin');\n $this->app['router']->aliasMiddleware('guest_admin', 'Khludev\\KuLaraPanel\\Middleware\\GuestAdmin');\n $this->app['router']->aliasMiddleware('intend_url', 'Khludev\\KuLaraPanel\\Middleware\\IntendUrl');\n $this->app['router']->aliasMiddleware('not_admin_role', 'Khludev\\KuLaraPanel\\Middleware\\NotAdminRole');\n $this->app['router']->aliasMiddleware('not_system_doc', 'Khludev\\KuLaraPanel\\Middleware\\NotSystemDoc');\n $this->app['router']->aliasMiddleware('api_logger', 'Khludev\\KuLaraPanel\\Middleware\\ApiLogger');\n $this->app['router']->aliasMiddleware('https_protocol', 'Khludev\\KuLaraPanel\\Middleware\\HttpsProtocol');\n\n $this->mergeConfigFrom(__DIR__.'/../config/simplecontrolpanel.php', 'kulara');\n $this->loadViewsFrom(__DIR__ . '/../resources/views', 'kulara');\n $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n $this->loadRoutesFrom(__DIR__.'/routes.php');\n $this->gatePermissions();\n $this->validatorExtensions();\n $this->configSettings();\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "6cb0c4e0b66939b2d425cf5f58a55bbc", "score": "0.6772633", "text": "public function boot()\n {\n $this->loadViewsFrom(__DIR__.'/../resources/views/livewire', 'resources-components');\n\n Livewire::component('provider-select', ProviderSelect::class);\n Livewire::component('resources-list', ResourcesList::class);\n\n Livewire::component('anton-lw-component', AntonLwComponent::class);\n Livewire::component('geonames-lw-component', GeonamesLwComponent::class);\n Livewire::component('gnd-lw-component', GndLwComponent::class);\n Livewire::component('idiotikon-lw-component', IdiotikonLwComponent::class);\n Livewire::component('metagrid-lw-component', MetagridLwComponent::class);\n Livewire::component('ortsnamen-lw-component', OrtsnamenLwComponent::class);\n Livewire::component('wikidata-lw-component', WikidataLwComponent::class);\n Livewire::component('wikipedia-lw-component', WikipediaLwComponent::class);\n Livewire::component('manual-input-lw-component', ManualInputLwComponent::class);\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "3e672e4020eed103df85359a0f91b0c7", "score": "0.67670965", "text": "public function boot()\n {\n if (!$this->booted) {\n foreach ($this->providers as $provider) {\n $provider->boot($this->container);\n }\n $this->booted = true;\n }\n }", "title": "" }, { "docid": "2064196dcdfe22def38c178d3813897d", "score": "0.67657983", "text": "public function boot()\n {\n $this->bootMiddleware();\n $this->bootRoutes();\n $this->bootPublishes();\n $this->bootCommands();\n $this->loadMigrations();\n }", "title": "" }, { "docid": "d30f7f288ed3ba9942c975db07860321", "score": "0.67610055", "text": "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->commands(\n [\n SingletonCacheCommand::class,\n SingletonClearCommand::class,\n ]\n );\n }\n }", "title": "" }, { "docid": "1292465a66fe5e765fe2d0f5c7d62096", "score": "0.6754497", "text": "public function boot()\n { \n $this->app->booted(function($app) { \n foreach(armin_plugins() as $plugin) { \n if($plugin instanceof Bootable) { \n $plugin->boot(); \n }\n } \n });\n }", "title": "" }, { "docid": "a909f9e81cf4fa4d14672123a49a8a55", "score": "0.6751015", "text": "public function boot()\n {\n // ...\n }", "title": "" }, { "docid": "a909f9e81cf4fa4d14672123a49a8a55", "score": "0.6751015", "text": "public function boot()\n {\n // ...\n }", "title": "" }, { "docid": "e08ef3cb30bc5cbfbba0155b81b6f1bc", "score": "0.67501056", "text": "public function boot()\n {\n\t\t$faker = $this->app->make(Generator::class);\n\t\tProviderCollectionHelper::addAllProvidersTo($faker);\n }", "title": "" }, { "docid": "4300bf0677688899aefc1096ecc7d710", "score": "0.6744458", "text": "public function boot()\n {\n $this->loadResources();\n new Model();\n\n $this->app->singleton('Model', function($app) {\n return new ModelsService();\n });\n\n // Register the commands if the applicaton is run via CLI\n if ($this->app->runningInConsole()) {\n $this->commands([\n InstallDashboard::class\n ]);\n }\n }", "title": "" }, { "docid": "449735a6ba91a2f3d24fbc8025018005", "score": "0.67403686", "text": "public function boot()\n {\n $this->loadFactories();\n $this->loadTranslations();\n $this->loadViews();\n\n if ($this->app->runningInConsole()) {\n $this->loadMigrations();\n\n $this->registerCommands();\n\n $this->publishEnv();\n $this->publishHtAccess();\n $this->publishConfig();\n $this->publishAssets();\n // $this->publishDocs();\n $this->publishMigrations();\n $this->publishTranslations();\n $this->publishViews();\n }\n }", "title": "" }, { "docid": "c61d59963b9d2f63a91974ac49f8417b", "score": "0.6739699", "text": "public function boot()\n {\n if (! config('app.installed')) {\n return;\n }\n\n $this->setupSupportedLocales();\n $this->registerSetting();\n $this->setupAppLocale();\n $this->hideDefaultLocaleInURL();\n $this->setupAppTimezone();\n $this->setupMailConfig();\n $this->registerMiddleware();\n $this->registerInBackendState();\n $this->blacklistAdminRoutesOnFrontend();\n $this->registerModelFactories();\n $this->registerModuleResourceNamespaces();\n }", "title": "" }, { "docid": "5a0fb0506f25914b70297a3e5b65e8ec", "score": "0.6738409", "text": "public function boot() {\n $this->app->register(QueueServiceProvider::class);\n\n /* Register Azure Storage Service Provider */\n $this->app->register(StorageServiceProvider::class);\n\n }", "title": "" }, { "docid": "27392e01ba974133391f873d83971319", "score": "0.6734934", "text": "public function boot()\n {\n\n $this->warmResources();\n\n $this->checkForSocialProviders();\n $this->setPasswordPolicies();\n $this->setAccountCreationPolicy();\n\n $this->loadViewsFrom(__DIR__.'/../views', 'stormpath');\n $this->loadRoutes();\n\n\n\n\n }", "title": "" }, { "docid": "d3d0d482a4c8ecb77d9b03cdb0cd760b", "score": "0.67317593", "text": "public function boot()\n {\n if ($this->app->runningInConsole()) {\n return;\n }\n // ensure that this variables are required\n \\Dotenv::required(\n [\n 'DB_HOST',\n 'DB_DATABASE',\n 'DB_USERNAME',\n 'DB_PASSWORD',\n ]\n );\n }", "title": "" }, { "docid": "44b6d399481468a53330e1bf9a7c91d4", "score": "0.67271423", "text": "public function boot()\n {\n app()->booted(function () {\n $this->booted();\n });\n }", "title": "" }, { "docid": "44b6d399481468a53330e1bf9a7c91d4", "score": "0.67271423", "text": "public function boot()\n {\n app()->booted(function () {\n $this->booted();\n });\n }", "title": "" }, { "docid": "44b6d399481468a53330e1bf9a7c91d4", "score": "0.67271423", "text": "public function boot()\n {\n app()->booted(function () {\n $this->booted();\n });\n }", "title": "" }, { "docid": "2a8b9fc90040608a6388a003cfd535f8", "score": "0.67248774", "text": "public function boot()\r\n {\r\n $this->package('teepluss/api');\r\n\r\n // Auto create app alias with boot method.\r\n $loader = AliasLoader::getInstance()->alias('API', 'Teepluss\\Api\\Facades\\API');\r\n }", "title": "" }, { "docid": "9f9d7a611ccdcdad3a50f98d937eb597", "score": "0.6721234", "text": "public function boot()\n {\n $this->setIsInConsole($this->app->runningInConsole())\n ->setNamespace('core/dashboard')\n ->loadAndPublishConfigurations(['permissions'])\n ->loadRoutes()\n ->loadAndPublishViews()\n ->loadAndPublishTranslations()\n ->publishAssetsFolder()\n ->publishPublicFolder()\n ->loadMigrations();\n }", "title": "" }, { "docid": "c54b61384b3442cf9337497fe49e2f1b", "score": "0.66921777", "text": "public function boot()\n {\n $this->app->register(HookServiceProvider::class);\n $this->app->register(EventServiceProvider::class);\n }", "title": "" }, { "docid": "c7212b0ea698139a888f0471cc51adc3", "score": "0.6690939", "text": "public function boot() {\n }", "title": "" }, { "docid": "7bb5d15f18eb5d84e00c5920a22a1269", "score": "0.6689163", "text": "public function boot()\n {\n $this->authorization();\n $this->repositories();\n $this->authRoutes();\n\n Restify::mountingRepositories();\n }", "title": "" }, { "docid": "2ee67c6475ceac53c0b9433ab7eb3713", "score": "0.6687551", "text": "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->commands([\n SetupDashboard::class\n ]);\n }\n\n }", "title": "" }, { "docid": "9c2bbe581abe8f31c82d23faedca2486", "score": "0.66825044", "text": "public function boot()\n {\n // 注册观察者\n Article::observe(ArticleObserver::class);\n\n // 替换 Elasticsearch 引擎\n resolve(EngineManager::class)->extend('elasticsearch', function($app) {\n return new EsEngine(ElasticBuilder::create()\n ->setHosts(config('scout.elasticsearch.hosts'))\n ->build(),\n config('scout.elasticsearch.index')\n );\n });\n }", "title": "" }, { "docid": "6a18d2095afe486a16efbb26a6a267b8", "score": "0.6682327", "text": "public function boot(): void\n {\n $this->loadTranslations();\n $this->loadViews();\n\n if ($this->app->runningInConsole()) {\n $this->publishConfig();\n $this->publishTranslations();\n $this->publishViews();\n\n Shop::$runsMigrations\n ? $this->loadMigrations()\n : $this->publishMigrations();\n }\n }", "title": "" }, { "docid": "45d0e2724c564185210b0d6c51cb89ab", "score": "0.6680268", "text": "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->publishCommands();\n $this->publishConfiguration();\n }\n }", "title": "" }, { "docid": "7b7ba1784cb4a43d8eb4dffc797c47ae", "score": "0.6673589", "text": "public function boot()\n {\n if(!file_exists($path_to_views=config('admin.paths.views'))){\n $path_to_views=__DIR__.'/../views';\n }\n $this->loadViewsFrom($path_to_views, config('admin.views.name'));\n\n /* =================\n * LOAD ROUTE FROM\n * ================== */\n if (!file_exists(config('admin.paths.routes'))) {\n $path_routes = __DIR__ . '/../routes.php';\n }\n $this->loadRoutesFrom($path_routes);\n\n\n // Chạy publish console\n if ($this->app->runningInConsole()) {\n $this->loadPublishes();\n }\n\n \n /* =================\n * LOAD COMMAND\n * ================== */\n $this->commands([\n \\Mung9thang12\\Admin\\Console\\MakeController::class,\n ]);\n }", "title": "" }, { "docid": "605911944be1f19e942d496d27550729", "score": "0.6672465", "text": "public function boot(Application $app)\n {\n\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" } ]
b96319e572c7b6084efc7ebf02e884ee
Identifies the element (or elements) that describes the object.
[ { "docid": "abd2c7005b447094494d64c7ad07647b", "score": "0.0", "text": "final public function ariaDescribedBy(?string $value): static\n {\n $new = clone $this;\n $new->buttonAttributes['aria-describedby'] = $value;\n return $new;\n }", "title": "" } ]
[ { "docid": "cf13e0567257b731e996524912177c3d", "score": "0.5947991", "text": "public function getElementIntention();", "title": "" }, { "docid": "ec533844162ca3e79c610577776660c3", "score": "0.5876912", "text": "public function getElement();", "title": "" }, { "docid": "19045ec7928cdf4bcd1a264b6c19a602", "score": "0.5694593", "text": "public function getDescriptionElement() {\n $element = (object)$this->METADATATREE['4_1'];\n $element->node = '4_1';\n return $element;\n }", "title": "" }, { "docid": "f87ee05153662638d9f1ed7f2d3ff0e3", "score": "0.56614155", "text": "public function getElement() {}", "title": "" }, { "docid": "c6f661530fc18ea446abb7b42f0d0f06", "score": "0.5513746", "text": "public function getElement() { return $this->_element; }", "title": "" }, { "docid": "f34108040a6bed5b6825b686e3c57aee", "score": "0.55025303", "text": "public function getElementType();", "title": "" }, { "docid": "0e07aff8368ca9a6866c70068537d960", "score": "0.5478618", "text": "public function getTitleElement() {\n $element = (object)$this->METADATATREE['1_1'];\n $element->node = '1_1';\n return $element;\n }", "title": "" }, { "docid": "51a2f92186aa2f84a8df1e98a62f6493", "score": "0.54565406", "text": "public function get_element($name){\n return $this->$name;\n }", "title": "" }, { "docid": "f8db84475ba68e27d3afd24191743cf9", "score": "0.54235405", "text": "function getElementInfo($ID) { return $this->getNodeInfo($ID); }", "title": "" }, { "docid": "a2bfb489bd1298e8bd77df12b5026cd8", "score": "0.53705144", "text": "function isElement() {\n return $this->xpath('.') == [$this];\n }", "title": "" }, { "docid": "1b20887e9198f98f04ff377c9848d5d2", "score": "0.5353832", "text": "public function getDescribes(): ObjectInterface;", "title": "" }, { "docid": "5137287ce120ddb6ba5074a5a8fd4403", "score": "0.5339172", "text": "public function getElement(){\r\n\t\t\treturn $this->_element;\r\n\t\t}", "title": "" }, { "docid": "5c6bc1dc5495f303fe4900673216a7ca", "score": "0.53170437", "text": "public function getElement(){\n\n return $this->element();\n \n }", "title": "" }, { "docid": "9519483dcd95bd399c39ae47812a1b9e", "score": "0.5288057", "text": "function get_element_type($element) {\n if ($element['object'] == 'filler') {\n return 'filler';\n }\n\n if (get_class($element['object']) == 'grade_category') {\n if ($element['object']->depth == 2) {\n return 'topcat';\n } else {\n return 'subcat';\n }\n }\n\n return 'item';\n }", "title": "" }, { "docid": "b9310c4d0a355cf5df73262094e1a750", "score": "0.5275942", "text": "public function getIdElement()\n {\n return $this->idElement;\n }", "title": "" }, { "docid": "87edfe7f8262a7d6e9ba9b7998c3927e", "score": "0.5270277", "text": "function getObjectIdentifier();", "title": "" }, { "docid": "fc4f6dbab47d84b9ca1c3bf43430cd6f", "score": "0.5250707", "text": "public function getElement()\n {\n return $this->_element;\n }", "title": "" }, { "docid": "fc4f6dbab47d84b9ca1c3bf43430cd6f", "score": "0.5250707", "text": "public function getElement()\n {\n return $this->_element;\n }", "title": "" }, { "docid": "cfcb925e57a1b358ccd520d831d4390b", "score": "0.52446145", "text": "public function getElement()\n {\n return $this->element;\n }", "title": "" }, { "docid": "4c8db51d9d4375c2762ddad6f9b9f742", "score": "0.52267504", "text": "public function getElementId();", "title": "" }, { "docid": "eb27c0789c656dcc22c8ba531f839ce6", "score": "0.52036476", "text": "public function element()\n {\n\n $r = $this->_getRuleNode('element');\n $_save = $this->currentNode;\n $this->currentNode = $r;\n\n\n if (LookaheadLexer::NAME === $this->LA(1) && LookaheadLexer::EQUALS === $this->LA(2)) {\n $this->match(LookaheadLexer::NAME);\n $this->match(LookaheadLexer::EQUALS);\n $this->match(LookaheadLexer::NAME);\n }\n elseif (LookaheadLexer::NAME === $this->LA(1)) {\n $this->match(LookaheadLexer::NAME);\n }\n elseif (LookaheadLexer::LBRACK === $this->LA(1)) {\n $this->elementsList();\n }\n else {\n $this->error(\"Expecting name or list, found \" . $this->input->getTokenName($this->LT(1)->type));\n }\n\n\n $this->currentNode = $_save;\n }", "title": "" }, { "docid": "833c0b980759a4a5a6f3980ea1b9a899", "score": "0.5203492", "text": "public function identify();", "title": "" }, { "docid": "833c0b980759a4a5a6f3980ea1b9a899", "score": "0.5203492", "text": "public function identify();", "title": "" }, { "docid": "7da36bb4fa334375a4b69b5000319278", "score": "0.5184221", "text": "public function getElement() {\n return $this->element;\n }", "title": "" }, { "docid": "a2cce15a50c7179a31686e49799196d1", "score": "0.51690745", "text": "public function getIdentifier($object);", "title": "" }, { "docid": "a5497cca22d429b3fda123401f6b579f", "score": "0.5166608", "text": "abstract public function getElementProvider();", "title": "" }, { "docid": "6dbd3b042e4ae8465a00bfb4881d8905", "score": "0.5141217", "text": "public function getElement()\n {\n echo \"<label for='\" . $this->getFor() .\"' class='\" . $this->getClass() . \"'>\" . $this->getText() . \"</label>\";\n }", "title": "" }, { "docid": "7ea19cd93d057a7b5c3cba810ee60481", "score": "0.5133405", "text": "function &object_label($object,&$labels)\r\n{\r\n foreach ($labels as &$label)\r\n {\r\n if (labeled_object_id($label) == object_id($object))\r\n {\r\n return $label;\r\n }\r\n }\r\n return null;\r\n}", "title": "" }, { "docid": "04f6ba9cc4e7f555f9b8959f648472d3", "score": "0.5102419", "text": "public function getLocationElement() {\n $element = (object)$this->METADATATREE['11_1'];\n $element->node = '11_1';\n return $element;\n }", "title": "" }, { "docid": "d977b82ef5fe5e15a45be90457ebe0ea", "score": "0.5086416", "text": "public function get_id_element()\n {\n return $this->m_id_element;\n }", "title": "" }, { "docid": "40e03726baadab03fe9eac3ff203578c", "score": "0.5070909", "text": "public function getElementId()\n {\n return $this->getElement()->getElementId();\n }", "title": "" }, { "docid": "be66deaf3f39362be2595eb43d0fe025", "score": "0.50445575", "text": "protected function getElementEntityProcessor() {}", "title": "" }, { "docid": "be66deaf3f39362be2595eb43d0fe025", "score": "0.50445575", "text": "protected function getElementEntityProcessor() {}", "title": "" }, { "docid": "880e05b5e8b2d665f11ec14e56a7b30f", "score": "0.50396216", "text": "public function getPivot(object $element): mixed;", "title": "" }, { "docid": "43f982f745a32a6147d17fdc58100a8a", "score": "0.50365204", "text": "public function getObjectDescription() { return $this->obj; }", "title": "" }, { "docid": "f0d621c780f463ba35f8def2e620a892", "score": "0.50335175", "text": "public function visit($element);", "title": "" }, { "docid": "c17015b8802d8fb87d0aabd3aa7a025f", "score": "0.50256777", "text": "public function &getElement(): array {\n return $this->variables['element'];\n }", "title": "" }, { "docid": "483ebe5c7a5ad0b12868b6f80699887d", "score": "0.5021554", "text": "public function isElements() {}", "title": "" }, { "docid": "4076ff58931c22126c5f3c50a9f062e1", "score": "0.50213385", "text": "function display_element($data) {\n\t\treturn $this->display_field($data, 'content_elements');\n\t}", "title": "" }, { "docid": "4c19df78ba3dd53cd432f5a0677bb6ce", "score": "0.50125587", "text": "function ElementMeta(& $global_elements)\n\t{\t\t$bag = array(\n\t\t'context'\t\t\t\t=>array(),\n\t\t//This is the \"value\" simple-type member.\n\t\t//It had be used to name a C++ base class.\n\t\t//flattenInheritanceModel is converting it.\n\t\t'content_type'\t\t\t=>'',\t\t\t\n\t\t//This/content_type/mixed are mutually exclusive\n\t\t'content_model'\t\t\t=>array(),\n\t\t//This/content_type/content_model are mutually exclusive\n\t\t'mixed'\t\t\t\t\t=>false,\n\t\t//no longer uses country code\n\t\t'documentation'\t\t\t=>'', //array()\n\t\t'element_name'\t\t\t=>'',\n\t\t'attributes'\t\t\t=>array(),\t\t\n\t\t//array of <xs:element> attributes (and also isPlural)\n\t\t//Note: the pre-2016 generator calls this 'element_attrs',\n\t\t//-and in it, 'elements' is identical to that array's keys,\n\t\t//-so instead they're merged here.\n\t\t'elements'\t\t\t\t=>array(),\t\t\t\t\n\t\t'element_documentation'\t=>array(),\n\t\t//this was 'ref_elements', but #include is its purpose\n\t\t'#include'\t\t\t\t=>array(),\n\t\t//'classes' replaces 'inline_elements'\n\t\t//Degenerate name/type classes are discarded.\n\t\t'classes'\t\t\t\t=>array(), //'inline_elements'\t\t\n\t\t//NOTE: COLLADA 1.4.1 alone uses abstract/substitution\n\t\t'abstract'\t\t\t\t=>false,\n\t\t'transcludes'\t\t\t=>array(), //'groupElements'\n\t\t'substitutionGroup'\t\t=>'',\t\t\t\t\n\t\t//'hasChoice'\t\t\t\t=>false, //UNUSED\n\t\t//NEW: Replacing 'complex_type',\n\t\t//'isExtension' & 'isRestriction',\n\t\t//where complex_type meant not a simple-type wrapper.\t\t\n\t\t'requiresClass'\t\t\t=>false,\n\t\t'base_type'\t\t\t\t=>'', //extension/restriction/?\n\t\t//NOTE: 1.5.0 has <author_email>\n\t\t//NULL doesn't show up in debugger\n\t\t//This is a TypeMeta used for <xs:simpleContent> with a\n\t\t//local definition. The COLLADA schema have not of this.\n\t\t//'simple_type'\t\t\t=>NULL,\n\t\t'parent_meta'\t\t\t=>NULL,\t\t\n\t\t//NEW: see isGroup, etc. below. Replacing 'isGroup' and so on.\n\t\t'flags'\t\t\t\t\t=>0,\t\t\n\t\t);\n\n\t\t$this->bag =& $bag;\n\t\t$this->bag['global_elements'] =& $global_elements;\n\t}", "title": "" }, { "docid": "34365e06bcecfeb343dda4a6ccfc98d0", "score": "0.5007574", "text": "public function getElementGroup();", "title": "" }, { "docid": "636f77422ddfc530e0d9d542090c6902", "score": "0.49973938", "text": "public function getElementId()\n {\n return $this->elementId;\n }", "title": "" }, { "docid": "eb1862ce83c2b231435f93cee53b923e", "score": "0.49793562", "text": "public function getResourceId()\n {\n return 'Elements';\n }", "title": "" }, { "docid": "9abaa7545837885efef6b9b3212919df", "score": "0.49764237", "text": "function visit(IObject $obj);", "title": "" }, { "docid": "841e2de5b522b7f7978943bd93a9934a", "score": "0.49701065", "text": "private function getElemente()\n\t{\n\t\tforeach($this->xml->Element as $element)\n\t\t{\n\t\t\t$this->elemente[(string)$element->name]\t= array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"name\"\t\t=> (string) $element->name,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"next1\"\t\t=> (string) $element->next1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"next2\"\t\t=> (string) $element->next2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"color\"\t\t=> (string) $element->color\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "6cd520e494fa64d29201ddf8619c7aaf", "score": "0.49535206", "text": "protected function setElement() {}", "title": "" }, { "docid": "53b1724f8a208187b2ce79a208528616", "score": "0.4945594", "text": "function inVisit(IObject $obj);", "title": "" }, { "docid": "c3eb5ccb1ea1805d6fbbcad0dd58b481", "score": "0.49396425", "text": "public function get_element($name)\n {\n return $this->$name;\n }", "title": "" }, { "docid": "f77b43ae3b1ab2b923a9fd43fe5a94c5", "score": "0.4939601", "text": "function isElements() {\n return $this[0] != $this && $this->attributes() !== null;\n }", "title": "" }, { "docid": "1284f44d32a45532666b7f9d5f5d7ee1", "score": "0.49394688", "text": "function Element($nsId) {\n global $NodesA, $NumNodes, $NodeX, $XidsMI, $NamesMI;\n static $sElId=0; # re skipping elements and preserving full build element Ids\n ++$sElId;\n $node = $NodesA[$NodeX];\n $depth = $node['depth'];\n $set = \"Id=$sElId,NsId='$nsId'\";\n $name = $xidS = $SubstGroupN = $tuple = 0; # $tuple is set to '$nsId.$name' for the tuple case for passing to ComplexType()\n foreach ($node['attributes'] as $a => $v) {\n switch ($a) {\n case 'id': $xidS = $v; continue 2; # SetIdDef($xidS=$v, $set); continue 2; # IdId\n case 'name': $name = $v; continue 2;\n case 'type':\n $a = 'TypeN';\n switch ($v) {\n case 'gen:genericArcType': $v = 171; break; # djh?? allocate a constant\n case 'gen:linkTypeWithOpenAttrs': $v = 172; break; # djh?? allocate a constant\n case 'nonnum:domainItemType': $v = 173; break; # djh?? allocate a constant\n case 'num:percentItemType': $v = 174; break; # djh?? allocate a constant\n case 'nonnum:textBlockItemType': $v = 175; break; # djh?? allocate a constant\n case 'num:areaItemType': $v = 176; break; # djh?? allocate a constant\n case 'num:perShareItemType': $v = 177; break; # djh?? allocate a constant\n case 'xbrli:pureItemType': $v = 178; break; # djh?? allocate a constant\n # djh?? Check all of the ones below\n case 'xbrli:monetaryItemType': $v = TET_Money; break;\n case 'string':\n case 'xbrli:stringItemType': $v = TET_String; break;\n #case 'xbrli:booleanItemType': $v = TET_Boolean;break;\n case 'xbrli:dateItemType': $v = TET_Date; break;\n case 'decimal':\n case 'xbrli:decimalItemType': $v = TET_Decimal; break;\n #case 'xbrli:integerItemType': $v = TET_Integer; break;\n case 'xbrli:nonZeroDecimal': $v = TET_NonZeroDecimal; break;\n case 'xbrli:sharesItemType': $v = TET_Share; break;\n #case 'anyURI':\n #case 'xbrli:anyURIItemType': $v = TET_Uri; break;\n #case 'uk-types:domainItemType': $v = TET_Domain; break;\n #case 'uk-types:entityAccountsTypeItemType': $v = TET_EntityAccounts; break;\n #case 'uk-types:entityFormItemType': $v = TET_EntityForm; break;\n #case 'uk-types:fixedItemType': $v = TET_Fixed; break;\n #case 'uk-types:percentItemType': $v = TET_Percent; break;\n #case 'uk-types:perShareItemType': $v = TET_PerShare; break;\n #case 'uk-types:reportPeriodItemType':$v = TET_ReportPeriod;break;\n case 'anyType': $v = TET_Any; break;\n case 'QName': $v = TET_QName; break;\n case 'xl:arcType': $v = TET_Arc; break;\n case 'xl:documentationType':$v = TET_Doc; break;\n case 'xl:extendedType': $v = TET_Extended; break;\n case 'xl:locatorType': $v = TET_Locator; break;\n case 'xl:resourceType': $v = TET_Resource; break;\n case 'anySimpleType':\n case 'xl:simpleType': $v = TET_Simple; break;\n case 'xl:titleType': $v = TET_Title; break;\n # UK-IFRS\n #case 'uk-ifrs:investmentPropertyMeasurementItemType': $v = TET_investmentPropertyMeasurement; break;\n default: DieNow(\"unknown element type $v\");\n }\n break;\n case 'substitutionGroup':\n $a = 'SubstGroupN';\n switch ($v) {\n case 'xbrli:item' : $v = TSG_Item; break;\n case 'xbrli:tuple' : $v = TSG_Tuple; $tuple=\"$nsId.$name\"; break;\n case 'xbrldt:dimensionItem': $v = TSG_Dimension;break;\n case 'xbrldt:hypercubeItem': $v = TSG_Hypercube;break;\n case 'link:part' : $v = TSG_LinkPart; break;\n case 'xl:arc' : $v = TSG_Arc; break;\n case 'xl:documentation' : $v = TSG_Doc; break;\n case 'xl:extended' : $v = TSG_Extended; break;\n case 'xl:locator' : $v = TSG_Locator; break;\n case 'xl:resource' : $v = TSG_Resource; break;\n case 'xl:simple' : $v = TSG_Simple; break;\n default: DieNow(\"unknown element substitutionGroup $v\");\n }\n $SubstGroupN = $v;\n break;\n case 'xbrli:periodType':\n $a = 'PeriodN';\n switch ($v) {\n case 'instant': $v = TPT_Instant; break;\n case 'duration': $v = TPT_Duration; break;\n default: DieNow(\"unknown element periodType $v\");\n }\n break;\n case 'xbrli:balance':\n $a = 'SignN';\n switch ($v) {\n case 'debit': $v = TS_Dr; break;\n case 'credit': $v = TS_Cr; break;\n default: DieNow(\"unknown element balance $v\");\n }\n break;\n case 'abstract':\n case 'nillable':\n if ($v === 'false') continue 2; # default so skip it\n if ($v !== 'true') DieNow(\"$a=|$v| in $name when true or false expected\");\n $v=1;\n break;\n case 'info:creationID':\n # IFRS versioning attribute www.eurofiling.info/.../HPhilippXBRLVersioningForIFRSTaxonomy.ppt\n # Skipped as at 28.06.13\n continue 2;\n default:\n DieNow(\"unknown attribute $a\");\n }\n $set .= \",$a='$v'\";\n }\n while (($NodeX+1) < $NumNodes && $NodesA[$NodeX+1]['depth'] > $depth) {\n switch ($NodesA[++$NodeX]['tag']) {\n case 'annotation': break; # / - skip as spec says not required to show doc other than via labels\n case 'documentation': break; # |\n case 'complexType': ComplexType($tuple); break; # $set .= (',ComplexTypeId=' . ComplexType()); break;\n case 'simpleType': SimpleType(); break; # $set .= (',SimpleTypeId=' . SimpleType()); break;\n default: DieNow(\"unknown element tag {$NodesA[$NodeX]['tag']}\");\n }\n }\n\n if (!$SubstGroupN || $SubstGroupN>=TSG_LinkPart) return; # 10.10.12 Taken out of build as not needed\n /*const TSG_LinkPart = 5; # link:part 56 /- Removed from DB build 10.10.12\n const TSG_Arc = 6; # xl:arc 6 |\n const TSG_Doc = 7; # xl:documentation 1 |\n const TSG_Extended = 8; # xl:extended 6 |\n const TSG_Locator = 9; # xl:locator 1 |\n const TSG_Resource =10; # xl:resource 3 |\n const TSG_Simple =11; # xl:simple 4 | */\n\n # $NamesMI [NsId.name => ElId]\n if (!$name) DieNow('no name for element');\n $nsname = \"$nsId.$name\";\n if (isset($NamesMI[$nsname])) DieNow(\"Duplicate NsId.name $nsname\");\n $NamesMI[$nsname] = $sElId;\n if ($xidS) $XidsMI[$xidS] = $sElId;\n $set .= \",name='$name'\";\n if (InsertFromSchema('Elements', $set) != $sElId) DieNow(\"Elements insert didn't give expected Id of $sElId\");\n}", "title": "" }, { "docid": "b032e7fd5ee22f3dda627ae32e33901f", "score": "0.49238685", "text": "public function __toString()\n\t{\n\t\treturn 'element (class: ' . get_class($this) . '; xpath: ' . $this->getXpath() . ')';\n\t}", "title": "" }, { "docid": "7e50545f67cfec4bda54bb17cffc07e0", "score": "0.49231726", "text": "public function getElementNumber(){\n\t\treturn $this->_elementNumber;\n\t}", "title": "" }, { "docid": "9493c0da026810fba19aba194abad604", "score": "0.49205685", "text": "protected function parseObjectDescription() {\r\n\t\t$objTag = $this->getElementsByName($this->xml->documentElement, 'object');\r\n\t\tif (count($objTag)==0) {\r\n\t\t\t// No object\r\n\t\t\treturn new Object('Form', null);\r\n\t\t}\r\n\t\t$objxml = simplexml_import_dom(reset($objTag));\r\n\t\tif (!isset($objxml->id) || !isset($objxml->id['name']))\r\n\t\t\tthrow new ParseException('ID not given for object description');\r\n\t\tif (!isset($objxml['name']) || $objxml['name']=='')\r\n\t\t\tthrow new ParseException('Name not given for object description');\r\n\t\t$obj = new Object((string)$objxml['name'], (string)$objxml->id['name']);\r\n\r\n\t\tforeach ($objxml->property as $prop) {\r\n\t\t\t// Parse property\r\n\t\t\tif (!isset($prop['name']))\r\n\t\t\t\tthrow new ParseException('Missing property name');\r\n\r\n\t\t\t$read = isset($prop['read']) ? (string)$prop['read'] : false;\r\n\t\t\t$write = isset($prop['write']) ? (string)$prop['write'] : false;\r\n\r\n\t\t\t$p = new Property((string)$prop['name'], $read, $write);\r\n\r\n\t\t\tif (isset($prop->caption))\r\n\t\t\t\t$p->setCaption((string)$prop->caption);\r\n\t\t\tif (isset($prop['required'])) {\r\n\t\t\t\tif ((string)$prop['required'])\r\n\t\t\t\t\t$p->makeRequired();\r\n\t\t\t\telse\r\n\t\t\t\t\t$p->makeOptional();\r\n\t\t\t}\r\n\r\n\t\t\t// It's not that pretty to use InputTag functions here, but it does clean up the parser itself\r\n\t\t\tforeach ($prop->value as $val)\r\n\t\t\t\t$p->addValue(InputTag::parseInputValue(dom_import_simplexml($val), $this));\r\n\t\t\tif (isset($prop->customvalues)) {\r\n\t\t\t\tif (!isset($prop->customvalues['options']))\r\n\t\t\t\t\tthrow new ParseException('Incomplete customvalues declaration: missing attribute \\'options\\'');\r\n\t\t\t\t$p->setCustomValues($prop->customvalues['options'], $prop->customvalues['single'], $prop->customvalues['check']);\r\n\t\t\t\t$this->addID((string)$prop->customvalues['single']);\r\n\t\t\t}\r\n\t\t\tforeach ($prop->check as $chk)\r\n\t\t\t\t$p->addCheck(InputTag::parseCheck(dom_import_simplexml($chk), $this));\r\n\r\n\t\t\t$obj->addProperty($p);\r\n\t\t}\r\n\t\treturn $obj;\r\n\t}", "title": "" }, { "docid": "cbfb2e9254e80e2ec7f02de2780d65ed", "score": "0.4909075", "text": "function getName() \n {\n return $this->elementName;\n }", "title": "" }, { "docid": "2cba3d19ca970b00e2ddca66fa07a5ce", "score": "0.4904968", "text": "public function element($element) {\n\t\tif($this->elementExists($element)) {\n\t\t\treturn $this->elements[$element];\n\t\t}\n\t}", "title": "" }, { "docid": "5c80650bbb7f6e8063ec160efb22e96d", "score": "0.48966125", "text": "public function getSizeElement() {\n $element = (object)$this->METADATATREE['9_2'];\n $element->node = '9_2';\n return $element;\n }", "title": "" }, { "docid": "8ad122d7642dca7bc23ef8ab25331231", "score": "0.4895017", "text": "public function getElementDescription() {\n\t\treturn $this->table . ' Record';\n\t}", "title": "" }, { "docid": "d7ec3b7f7c82fb4abbba7ff52f682f2a", "score": "0.48877403", "text": "public function setElement() {}", "title": "" }, { "docid": "79c828c74a6644469b9d7db09d8eb754", "score": "0.48873165", "text": "static function followingNode ($object) {\n $metaContextKey = 'followingNode:' . spl_object_hash($object);\n if (isset(op\\metaContext(IIData::class)[$metaContextKey]) && op\\metaContext(IIData::class)[$metaContextKey])\n return op\\metaContext(IIData::class)[$metaContextKey];\n return null;\n }", "title": "" }, { "docid": "0a77cbed14bab662c3dc45799ae66364", "score": "0.48840976", "text": "function locate_element($eid) {\n foreach ($this->levels as $row) {\n foreach ($row as $element) {\n if ($element['type'] == 'filler') {\n continue;\n }\n if ($element['eid'] == $eid) {\n return $element;\n }\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "071d7ee108b0922263a21bcd92b0edd6", "score": "0.48817068", "text": "function provide_api_element($element, $elements) {\n\n if (isset($element['#type']) && $element['#type'] == 'category_container') {\n if (isset($element['#admin_category']) && $element['#admin_category'] == 1) {\n return FALSE;\n }\n }\n\n $_element = [\n 'type' => $element['#type'],\n 'title' => $element['#title'],\n 'webform_key' => $element['#webform_key'],\n 'webform_parent_key' => $element['#webform_parent_key'],\n 'webform_depth' => $element['#webform_depth'],\n ];\n\n // Add indicator to element\n $indicator = IpIndicatorModel::get($element['#webform'], $element['#webform_key']);\n\n if ($indicator !== FALSE) {\n $_element['webform_indicator'] = $indicator;\n $indicator = explode(\".\", $indicator);\n\n if (is_array($indicator) && isset($indicator[1])) {\n $_element['element_indicator'] = $indicator[1];\n }\n }\n\n if (isset($element['#required'])) {\n $_element['required'] = $element['#required'];\n }\n\n if (isset($element['#description'])) {\n $_element['description'] = $element['#description'];\n }\n\n $_element['basic_category'] = isset($element['#basic_category']) ? ($element['#basic_category'] ? TRUE : FALSE) : FALSE;\n\n if (isset($element['#help_title'])) {\n $_element['help_title'] = $element['#help_title'];\n }\n\n if (isset($element['#help'])) {\n $_element['help'] = $element['#help'];\n }\n\n if (isset($element['#help_display'])) {\n $_element['help_display'] = $element['#help_display'];\n }\n\n if (isset($element['#more_title'])) {\n $_element['more_title'] = $element['#more_title'];\n }\n\n if (isset($element['#more'])) {\n $_element['more'] = $element['#more'];\n }\n\n if (isset($element['#mode'])) {\n $_element['mode'] = $element['#mode'];\n }\n\n if (isset($element['#hide_empty'])) {\n $_element['hide_empty'] = $element['#hide_empty'];\n }\n\n if (isset($element['#webform_children'])) {\n $_element['webform_children'] = [];\n foreach ($element['#webform_children'] as $webform_children) {\n $_element['webform_children'][] = $webform_children;\n }\n }\n\n if (isset($element['#options'])) {\n $_element['options'] = [];\n\n foreach ($element['#options'] as $option_key => $option_value) {\n $_element['options'][] = [\n 'key' => $option_key,\n 'value' => $option_value,\n ];\n }\n }\n\n if (isset($element['#markup'])) {\n $_element['markup'] = $element['#markup'];\n }\n\n return $_element;\n }", "title": "" }, { "docid": "60b94aed554ea96089b0b0b618443e01", "score": "0.4879981", "text": "public function isElement()\n {\n return $this->type === Token::ELEMENT;\n }", "title": "" }, { "docid": "1b37ffec2ab4dcb304138a817365aa91", "score": "0.48757157", "text": "public function getUnusedElement() {\n\t\t$class = $this->getClass();\n\t\t$object = new $class();\n\t\t$namespace = $this->getIdentifier();\n\t\tif ($this->isMultipleMode()) {\n\t\t\t$namespace .= '.' . $this->counter;\n\t\t}\n\t\t$inlineElement = $this->propertySchema['inline']['element'];\n\t\t$containerSection = $this->createElement($namespace, $inlineElement . 'Item');\n\t\t$containerSection->setPropertySchema($this->propertySchema);\n\t\t$section = $this->formBuilder->createElementsForSection(count($this->renderables), $containerSection, $namespace, $object);\n\t\treturn $containerSection;\n\t}", "title": "" }, { "docid": "8b906cc189908c145e24c31f2c32599b", "score": "0.48750705", "text": "public function Getelement($element_id,$type) {\n\t\t\n\t\tif($type == 'basic'){\n\t\t\t\t$model_element_master = TblAcaElementMaster::find()->where(['master_id' => $element_id])->one();\n\t\t\t\t$result = $model_element_master->element_label;\n\t\t}\n\t\telse if($type == 'payroll'){\n\t\t\t$model_payroll_element_master = TblAcaPayrollElementMaster::find()->where(['element_id' => $element_id])->one();\n\t\t\t\t$result = $model_payroll_element_master->element_name;\n\t\t}\n\t\telse if($type == 'medical'){\n\t\t\t$model_medical_element_master = TblAcaMedicalElementMaster::find()->where(['element_id' => $element_id])->one();\n\t\t\t\t$result = $model_medical_element_master->element_name;\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "dc605776d3110d0bd5866e30f89e0b6a", "score": "0.4864281", "text": "public function findElementById($id);", "title": "" }, { "docid": "c1960e9efe71b5dc199051148571e903", "score": "0.4859682", "text": "public function getHasObjectAttribute();", "title": "" }, { "docid": "573b09e64ee61f44530e2733995565d1", "score": "0.4850613", "text": "public function getElementInstanceById($id);", "title": "" }, { "docid": "652a6769b431ea81cabfbf8c736e2b0d", "score": "0.48483032", "text": "public function getIdentifierValues($object)\n {\n\n }", "title": "" }, { "docid": "b0b87a684fd9e5703687350913e8ef07", "score": "0.48444486", "text": "function startObject($name, $object){\n\t echo \"<$name\";\n\t if($this->currentarrayindex > -1 && $this->stack[$this->currentarrayindex] == $name && $name != \"station\") {\n\t echo \" id=\\\"\".$this->arrayindices[$this->currentarrayindex].\"\\\"\";\n\t }\n\t //fallback for attributes and name tag\n\t $hash = get_object_vars($object);\n\t $named = \"\";\n\t foreach($hash as $elementkey => $elementval){\n\t if(in_array($elementkey, $this->ATTRIBUTES)){\n\t\t echo \" $elementkey=\\\"$elementval\\\"\";\n\t }else if($elementkey == \"name\"){\n\t\t $named = $elementval;\n\t }\n\t }\n\t echo \">\";\n\t if($named != \"\"){\n\t echo $named;\n\t }\n\t \n }", "title": "" }, { "docid": "d7cbe85c5f8fa7584c096d0dfd57b7f0", "score": "0.48429763", "text": "public function hasElement($instanceOrName);", "title": "" }, { "docid": "7f70425433e7b52e20666ae10be09760", "score": "0.48275065", "text": "public static function objectDisplayHelper($oid) {\n $x=XDataSource::objectFactoryHelper8('SPECS='.$oid);\n if(!empty($x) && Kernel::objectExists($oid)) return $x->display(array('oid'=>$oid));\n else return NULL;\n }", "title": "" }, { "docid": "a6b247c0471ab21bee52559141579c04", "score": "0.48249623", "text": "public function getStructure();", "title": "" }, { "docid": "a6b247c0471ab21bee52559141579c04", "score": "0.48249623", "text": "public function getStructure();", "title": "" }, { "docid": "19308f59ae21f6fada6d9e2a4f628e5c", "score": "0.48216066", "text": "public function key()\n {\n return $this->elements->key();\n }", "title": "" }, { "docid": "2b79a1a6abf0bb26a7332894adfaed76", "score": "0.48058596", "text": "public function getElementIdentifier()\n {\n return md5($this->reader->readInnerXml());\n }", "title": "" }, { "docid": "4c9ce389830a1c4eed22e7b306d37aa8", "score": "0.47994432", "text": "public function getElStat()\n\t{\n\t\treturn $this->elStat;\n\t}", "title": "" }, { "docid": "4c9ce389830a1c4eed22e7b306d37aa8", "score": "0.47994432", "text": "public function getElStat()\n\t{\n\t\treturn $this->elStat;\n\t}", "title": "" }, { "docid": "db37d83a7c1523d8f73f111738b52b19", "score": "0.47860372", "text": "public function extractOne($object, string $attribute);", "title": "" }, { "docid": "463d2baca634b32513d3de9a78b747e4", "score": "0.47836533", "text": "public function getElement(ProductInterface $product);", "title": "" }, { "docid": "c8844101a32057e7adcef76d2d4bb55e", "score": "0.47743165", "text": "public function getEleve()\n {\n return $this->eleve;\n }", "title": "" }, { "docid": "f9b385e447261a791135a864871f29db", "score": "0.47737262", "text": "static function contextNode ($object) {\n $metaContextKey = 'contextNode:' . spl_object_hash($object);\n if (isset(op\\metaContext(IIData::class)[$metaContextKey]) && op\\metaContext(IIData::class)[$metaContextKey])\n return op\\metaContext(IIData::class)[$metaContextKey];\n return null;\n }", "title": "" }, { "docid": "c7124abc935321db6c2266e892aa37b2", "score": "0.477219", "text": "public function test__GetElements()\n\t{\n\t\t$this->assertThat(\n\t\t\t\t$this->object->elements,\n\t\t\t\t$this->isInstanceOf('JOpenstreetmapElements')\n\t\t);\n\t}", "title": "" }, { "docid": "7a0f7e0d6701c56c3f59dd2712e46f1a", "score": "0.47719595", "text": "public function getStructure() {}", "title": "" }, { "docid": "7a0f7e0d6701c56c3f59dd2712e46f1a", "score": "0.47719595", "text": "public function getStructure() {}", "title": "" }, { "docid": "dcc5d24961d202c8f6223ebcd9a3cf4e", "score": "0.47715905", "text": "function get_xml_object ( $inst, $what ) {\r\n $farce = \"_$what\" ;\r\n $arr = array () ;\r\n \r\n\r\n if ( is_object ( $inst ) ) {\r\n\r\n $obj = $inst->$farce ;\r\n\r\n\r\n\r\n // These objects are all xs_Properties, so have a '__get_array() method\r\n $arr = $obj->__get_array() ;\r\n\r\n }\r\n\r\n // create XML from these arrays\r\n $ret = '' ;\r\n foreach ( $arr as $idx => $value )\r\n $ret .= \"<item name='$idx'>$value</item>\" ;\r\n return $ret ;\r\n }", "title": "" }, { "docid": "be0b798c2c7af2f49e350b3be572e2ff", "score": "0.47685847", "text": "private function checkElementDocPart()\n {\n $isCellTextrun = in_array($this->container, array('cell', 'textrun'));\n $docPart = $isCellTextrun ? $this->getDocPart() : $this->container;\n $docPartId = $isCellTextrun ? $this->getDocPartId() : $this->sectionId;\n $inHeaderFooter = ($docPart == 'header' || $docPart == 'footer');\n\n return $inHeaderFooter ? $docPart . $docPartId : $docPart;\n }", "title": "" }, { "docid": "47f57d9f852c26922038eae5b7d29f38", "score": "0.4765551", "text": "protected function &add_object(\\System\\Form\\Element $element)\n\t\t{\n\t\t\t$obj = &$this->objects[];\n\t\t\t$obj = $element;\n\t\t\treturn $obj;\n\t\t}", "title": "" }, { "docid": "8c5aeaa7b79d23d3f2b6e8ca24c077d3", "score": "0.47618374", "text": "public function is_element( $element_id )\n\t{\n\t\treturn array_key_exists( $element_id, $this->elements );\n\t}", "title": "" }, { "docid": "054a224cfe8f2a11e06e7b95ce2c5628", "score": "0.4759701", "text": "public function elements()\n {\n return [\n// '@element' => '#selector',\n ];\n }", "title": "" }, { "docid": "0ea151486148628ea5abccee27eba5d0", "score": "0.47595304", "text": "function getItemPosition()\n {\n if (is_object($this->parent)) {\n $pchildren =& $this->parent->children;\n for ($i = 0; $i < count($pchildren); $i++) {\n if ($pchildren[$i]->name == $this->name &&\n $pchildren[$i]->type == $this->type) {\n $obj[] =& $pchildren[$i];\n }\n }\n for ($i = 0; $i < count($obj); $i++) {\n if ($obj[$i]->_id == $this->_id) {\n return $i;\n }\n }\n }\n return;\n }", "title": "" }, { "docid": "4d0d7b7ba3aa84e58dbc389d567085a6", "score": "0.47547472", "text": "public function getElement() : self\n {\n return $this;\n }", "title": "" }, { "docid": "6a0caafa927a8805e3a295db73528e95", "score": "0.47339863", "text": "function ddbasic_preprocess_ting_object(&$vars) {\n if (isset($vars['elements']['#view_mode']) && $vars['elements']['#view_mode'] == 'full') {\n switch ($vars['elements']['#entity_type']) {\n case 'ting_object':\n $content = $vars['content'];\n $vars['content'] = array();\n\n if (isset($content['group_ting_object_left_column']) && $content['group_ting_object_left_column']) {\n $vars['content']['ting-object'] = array(\n '#prefix' => '<div class=\"ting-object-wrapper\">',\n '#suffix' => '</div>',\n 'content' => array(\n '#prefix' => '<div class=\"ting-object-inner-wrapper\">',\n '#suffix' => '</div>',\n 'left_column' => $content['group_ting_object_left_column'],\n 'right_column' => $content['group_ting_object_right_column'],\n ),\n );\n\n unset($content['group_ting_object_left_column']);\n unset($content['group_ting_object_right_column']);\n }\n\n if (isset($content['group_material_details']) && $content['group_material_details']) {\n $vars['content']['material-details'] = array(\n '#prefix' => '<div class=\"ting-object-wrapper\">',\n '#suffix' => '</div>',\n 'content' => array(\n '#prefix' => '<div class=\"ting-object-inner-wrapper\">',\n '#suffix' => '</div>',\n 'details' => $content['group_material_details'],\n ),\n );\n unset($content['group_material_details']);\n }\n\n if (isset($content['group_holdings_available']) && $content['group_holdings_available']) {\n $vars['content']['holdings-available'] = array(\n '#prefix' => '<div class=\"ting-object-wrapper\">',\n '#suffix' => '</div>',\n 'content' => array(\n '#prefix' => '<div class=\"ting-object-inner-wrapper\">',\n '#suffix' => '</div>',\n 'details' => $content['group_holdings_available'],\n ),\n );\n unset($content['group_holdings_available']);\n }\n\n if (isset($content['group_periodical_issues']) && $content['group_periodical_issues']) {\n $vars['content']['periodical-issues'] = array(\n '#prefix' => '<div class=\"ting-object-wrapper\">',\n '#suffix' => '</div>',\n 'content' => array(\n '#prefix' => '<div class=\"ting-object-inner-wrapper\">',\n '#suffix' => '</div>',\n 'details' => $content['group_periodical_issues'],\n ),\n );\n unset($content['group_periodical_issues']);\n }\n\n if (isset($content['group_on_this_site']) && $content['group_on_this_site']) {\n $vars['content']['on_this_site'] = array(\n '#prefix' => '<div class=\"ting-object-wrapper\">',\n '#suffix' => '</div>',\n 'content' => array(\n '#prefix' => '<div id=\"ting_reference\" class=\"ting-object-inner-wrapper\">',\n '#suffix' => '</div>',\n 'details' => $content['group_on_this_site'],\n ),\n );\n unset($content['group_on_this_site']);\n }\n\n if (isset($content['ting_relations']) && $content['ting_relations']) {\n $vars['content']['ting-relations'] = array(\n 'content' => array(\n 'details' => $content['ting_relations'],\n ),\n );\n unset($content['ting_relations']);\n }\n\n // Move the reset over if any have been defined in the UI.\n if (!empty($content)) {\n $vars['content'] += $content;\n }\n break;\n\n case 'ting_collection':\n // Assumes that field only has one value.\n foreach ($vars['content']['ting_entities'][0] as &$type) {\n $type['#prefix'] = '<div class=\"ting-collection-wrapper\"><div class=\"ting-collection-inner-wrapper\">' . $type['#prefix'];\n $type['#suffix'] = '</div></div>';\n }\n break;\n }\n }\n}", "title": "" }, { "docid": "087bd1925e2157648d877c1629c0ad42", "score": "0.4724554", "text": "function element_property($key) {\n return $key[0] == '#';\n}", "title": "" }, { "docid": "83d7a6bb69678770dc16556db3f18600", "score": "0.47228238", "text": "function _show_element($controller) {\n if(($element_name = $controller->get_param('element_name')) ||\n ($element_name = $controller->get_param())){\n\n $view = $controller->get_view();\n if($element = $controller->get_element($element_name)){\n $view->set('name', $element['name']);\n $view->set('element_kind', $element['element_kind']);\n\n //Create table with parameters needed for constructor\n //TODO do not create html here, leave it to the view\n if(count($element['constructor_params']) > 0){\n $constructor_table_body = '<tr><th>Attribute Name</th><th>Type</th><th>Value</th></tr>';\n $form_enabled = true;\n foreach($element['constructor_params'] as $p){\n $field = array();\n if(isset($element['attributes'][$p])){\n $field = $element['attributes'][$p];\n $value = isset($field['value']) ? $att['value'] : ''; \n $input_field = \"<input type='text' name='constructor_values[]' value='$value'/>\";\n }else{\n $field = $element['associations'][$p];\n //Parameter for an association must be an index (\"ID\") for an existing instance\n $instances = $controller->get_objects($field['type']); \n if(!empty($instances) && count($instances) > 0){\n $input_field = \"<select name='constructor_values[]'>\";\n for($i=0; $i < count($instances); $i++){\n $input_field .= \"<option value='{$i}'>Object ID {$i}</option>\";\n }\n $input_field .= '</select>';\n\n }else {\n $input_field = \"<input type='text' disabled='disabled'/>\";\n $form_enabled = false;\n }\n }\n $constructor_table_body .= \"<tr><td>{$field['name']}</td>\".\n \"<td>{$field['type']}</td>\".\n \"<td>{$input_field}</td></tr>\";\n }\n $view->set('constructor_table_enabled', $form_enabled);\n }else {\n $constructor_table_body = \"<span class='subtle'> This Class has an empty constructor,\"\n .' press the button below to create an instance </span>';\n $view->set('constructor_table_enabled', true);\n }\n $view->set('constructor_table_body', $constructor_table_body);\n\n //Create table with instantiated objects of this class\n $objects = $controller->get_objects($element_name);\n if(!empty($objects) && count($objects) > 0){\n $objects_table = '<tr><th>Object ID</th><th>String Representation</th></tr>';\n for($i=0; $i < count($objects); $i++){\n $objects_table .= '<tr><td>'.$i.'</td><td>'.serialize($objects[$i]).'</td></tr>';\n }\n } else{\n $objects_table = \"<span class='subtle'> There are no created instances for this Class </span>\";\n }\n $view->set('objects_table', $objects_table);\n $element_names = $controller->get_element_names();\n $messages = $controller->get_messages_clear();\n $view->show($element_names, $messages);\n\n } else{\n $controller->set_message('Error showing Element: '.$element_name.' does not exist', true);\n Uigu2_Controller::redirect('index'); \n }\n } else{\n $controller->set_message('Error showing Element: the Element name was not provided', true);\n Uigu2_Controller::redirect('index'); \n }\n}", "title": "" }, { "docid": "49f9eab74d018762a27036e8bde6e42a", "score": "0.47204438", "text": "abstract public function getObjectID();", "title": "" }, { "docid": "c144115adf267c2728d46d73a6ef0700", "score": "0.4706453", "text": "public function hasObjId(){\r\n return $this->_has(1);\r\n }", "title": "" }, { "docid": "ccf4696311db1cb4edd10e45ed1ee38c", "score": "0.4701008", "text": "function is_identifier_object($data)\n {\n return array_key_exists('type', $data) || (array_key_exists('data', $data) && array_key_exists('type', $data['data']));\n }", "title": "" }, { "docid": "e6d12812aec5ea7caa77c36d0304946e", "score": "0.46782568", "text": "protected function getElementTitle() {\n return (!empty($this->element['#title'])) ? $this->element['#title'] : $this->key;\n }", "title": "" }, { "docid": "80e0f340aee05ea619f4943cca94841c", "score": "0.46717188", "text": "protected function getElementValueFromDataView()\n\t{\n\t\t\tif(array_key_exists($this->id, self::$dataView->fields))\n\t\t\t{\n\t\t\t\tdie('id '.$this->id.' is present');\t\t\t\t\n\t\t\t}\n\t}", "title": "" }, { "docid": "d1118505a6e2bbc2c9c31e50833252bb", "score": "0.46652612", "text": "public function get(){\n return $this->elements[$this->headerPointer];\n }", "title": "" }, { "docid": "de8ff510c162f824133c8ad21090a51e", "score": "0.46582952", "text": "public function getViewElement();", "title": "" } ]
c23d4249efe6e7bf0352f7ef667c2ee7
Set mycred query logs
[ { "docid": "c9c1178c61cd00a220915676132adec9", "score": "0.50110257", "text": "private static function myCREDLogResults($args) {\n\t\t$myCREDQueryLog = new myCRED_Query_Log($args);\n\n\t\t$results = $myCREDQueryLog->results;\n\t\tif (empty($results)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn $results;\n\t}", "title": "" } ]
[ { "docid": "665ae74d630fc10c7e59748ee7084543", "score": "0.6601427", "text": "public function enableQueryLog()\n {\n $this->loggingQueries = true;\n }", "title": "" }, { "docid": "0d4a5b03206daeb82beb482443f66ce2", "score": "0.64884716", "text": "function QueryLog( $query ) {\n \n $args = array(\n 'name' => 'Query_Log',\n 'path' => TEMPLATEPATH . '/logs/query.log',\n 'level' => 200, // info\n );\n\n // check instance\n if (is_null($this->log)) {\n $this->log = new Logger( $args );\n }\n\n // log all \"select\" query run by fontend\n if ( !is_admin() && preg_match( '/^\\s*(select) /i', $query ) ) {\n\n $this->log->info( $query );\n }\n }", "title": "" }, { "docid": "f202622cf606a7e04506f8a3b781f729", "score": "0.62823653", "text": "public static function enableQueryLog(){\n //Method inherited from \\Illuminate\\Database\\Connection\n \\Illuminate\\Database\\MySqlConnection::enableQueryLog();\n }", "title": "" }, { "docid": "62405fa2d4b962b403583a8a88d5df2f", "score": "0.6177831", "text": "public function enableQueryLog()\n {\n // enable debug log\n if ($this->debug) {\n DB::connection()->enableQueryLog();\n }\n }", "title": "" }, { "docid": "d3b92189c2d79568cff0e87e70ea1af0", "score": "0.6087682", "text": "public function logAccess()\n {\n $this->db->executeUpdate(\n \"update nb_site_user \"\n . \"set nb_site_user_last_login_datetime=now() \"\n . \"where nb_site_id=%site_id\\$d \"\n . \"and nb_role_id=%role_id\\$d \"\n . \"and nb_user_id=%user_id\\$d\",\n array(\n 'site_id' => $this->getValue('nb_site_id'),\n 'role_id' => $this->getValue('nb_role_id'),\n 'user_id' => $this->getValue('nb_user_id')\n )\n );\n }", "title": "" }, { "docid": "113efe2be824b5e51605a8632bd3d023", "score": "0.5975868", "text": "public function setLog()\n {\n \\PagSeguro\\Configuration\\Configure::setLog(\n $this->_scopeConfig->getValue('payment/pagseguro/log'),\n $this->_scopeConfig->getValue('payment/pagseguro/log_file')\n );\n }", "title": "" }, { "docid": "249eb5c2fb9dc78ec8b61ca89d95165e", "score": "0.594235", "text": "protected function setupLogger() {\n\t\tif (Configure::read('debug') > 1) {\n\t\t\t$self = $this;\n\t\t\t$this->configuration->setLoggerCallable(function(array $log) use ($self) {\n\t\t\t\t$self->appendQueryLog($log);\n\t\t\t});\n\t\t}\n\t}", "title": "" }, { "docid": "f50d781b7e9671a579a58fc1329dabb4", "score": "0.59281164", "text": "private function logQuery($sql) {\n if (!LOG_QUERIES) return;\n\n array_push($this->query_log, $sql);\n }", "title": "" }, { "docid": "c1b7dd0ae26e69d28f21bea1de3cc4ce", "score": "0.5919623", "text": "public function log($memberQuery)\n {\n }", "title": "" }, { "docid": "e44a86f76d0d6aba2b6040b2127054a4", "score": "0.58488166", "text": "public function logToSQL() {\n\n }", "title": "" }, { "docid": "989e1b96dd80507c94f47b0e90d7a275", "score": "0.5769269", "text": "private function log($query)\n {\n if ( !$this->config['logging']['enabled'] ) {\n return $this;\n }\n\n $this->insert($this->config['logging']['table'], [\n 'query' => $query,\n 'results' => count($this->results['items']),\n 'client_ip' => $_SERVER['REMOTE_ADDR'],\n 'client_agent' => $_SERVER['HTTP_USER_AGENT'],\n 'page' => $_SERVER['REQUEST_URI'],\n 'agency_id' => ( is_numeric($this->config['agency']) ) ? (int)$this->config['agency'] : (int)$this->config['agency'][0]\n ]);\n\n return $this;\n }", "title": "" }, { "docid": "5510f193a99511ec9418b56a795ac9c1", "score": "0.5758775", "text": "public static function getQueryLog(){}", "title": "" }, { "docid": "52dfdecf130bc96b40e7b201a17a94b9", "score": "0.5735333", "text": "public static function flushQueryLog(){}", "title": "" }, { "docid": "d704b2c7dbaf00b12f0ebf57e3e2555f", "score": "0.56920105", "text": "function query_log($QObj) {\n global $QUERY_HISTORY;\n $QUERY_HISTORY[] = $QObj;\n}", "title": "" }, { "docid": "6b278f23dd55d622d7725a54ca65a50b", "score": "0.56685746", "text": "function Log( $Qry ) {\n \n \n// ##### 16 - LOG Control\n if ( $this->MakeLog ) {\n $desc = fopen( \"log/plus_sql.log\", \"a\" );\n $user = $Global['username'];\n $time = date(\"[d.m.Y H:i]\");\n fputs( $desc, $time.\" ($user) > \". $Qry . \"\\n\" );\n fclose( $desc );\n }\n\t\t\n\t\t\n/* OLD\t\t\n // true = NO LOG\n $skip = false;\n \n \n if ( ! $skip ) {\n $desc = fopen( \"log/plus_sql.log\", \"a\" );\n fputs( $desc, $Qry . \"\\n\" );\n fclose( $desc );\n }\n*/\n// ##### 16\n\n\n\t}", "title": "" }, { "docid": "86072e7923b07defe283d8e45c8826fd", "score": "0.56680727", "text": "public static function setLog(){\n self::$noLog = false;\n }", "title": "" }, { "docid": "f9fec213b0727e7c265ec9d33d1cd59f", "score": "0.56676006", "text": "public function appendLog() {\n if (!$this->auth['drole']) {\n \\Yii::$app->getSession()->destroy();\n \\Yii::$app->user->logout(true);\n return;\n }\n $this->updateAuthRecords();\n /* @var ActiveRecord $logModel */\n //echo 'use appendLog() ' . print_r($this->formatLogAttributes(), true); exit;\n //if ($this->user->getPrimaryKey()) {\n\n //}\n }", "title": "" }, { "docid": "003a8cc00aefc6c2d7d44a4fd9233805", "score": "0.56319916", "text": "public function flushQueryLog()\n {\n $this->queryLog = [];\n }", "title": "" }, { "docid": "5a7e1114ee503c8a8a301eba651781c7", "score": "0.5531831", "text": "public function disableQueryLog()\n {\n $this->loggingQueries = false;\n }", "title": "" }, { "docid": "2a8794aa7d4e3360749741992734d5ac", "score": "0.5505388", "text": "public function setLogQueries(bool $logQueries): self\n {\n $this->options['logQueries'] = $logQueries;\n return $this;\n }", "title": "" }, { "docid": "2a8794aa7d4e3360749741992734d5ac", "score": "0.5505388", "text": "public function setLogQueries(bool $logQueries): self\n {\n $this->options['logQueries'] = $logQueries;\n return $this;\n }", "title": "" }, { "docid": "481ecad5d1b735eb9fa0d6fe64ac60c3", "score": "0.5486373", "text": "public abstract function enableDatabaseLogging();", "title": "" }, { "docid": "799e2a568f07976ac2949e5e24f07b8e", "score": "0.5456836", "text": "private function includeConsoleAndDBLogger()\n {\n /**\n * To include logging during testing : 'testing' == config('app.env')\n */\n if(('local' === config('app.env') && true === config('app.debug')) || ('testing' === config('app.env') && true === config('app.debug')))\n {\n /**\n * Logs Every DB queries\n */\n DB::listen(function($query)\n {\n Log::debug(Request::url());\n Log::debug('Query: ');\n Log::debug($query->sql);\n Log::debug('Bindings: ');\n Log::debug($query->bindings);\n });\n\n /**\n * Logs the running command line script\n */\n if(! empty($consoleCommand = Request::server('argv', null)))\n {\n Log::debug('Console Command: '.implode(' ', $consoleCommand));\n Log::debug(\"Client ID: \".implode(',',Request::ips()).(! empty(get_current_user()) ? ' '.get_current_user() : '').\"\\n\" );\n }\n }\n }", "title": "" }, { "docid": "00fa162f83e912d1c4bbe0e7f45f9a0d", "score": "0.5445952", "text": "function SetLog(wxLog &$logger){}", "title": "" }, { "docid": "353a038dd2a721c5da298884395ea1f8", "score": "0.54329515", "text": "function setLogSet(mofilmUserLogSet $inSet) {\n\t\t$this->_LogSet = $inSet;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "1d3cb8856263a6b3e60dca2a2a7670ad", "score": "0.5429934", "text": "#[@arg]\n public function setDebug() {\n $this->client->setTrace(create(new LogCategory('trace'))->withAppender(new StreamAppender($this->err->getStream())));\n }", "title": "" }, { "docid": "a436edf1295e78ab457cebd1c5d7f9f2", "score": "0.5422404", "text": "function logEvent()\r\n{\r\n\tglobal $post, $record, $field, $sql;\r\n\t\r\n\t$query = \"SELECT username FROM redcap_user_rights WHERE api_token = '\" . prep($post['token']) . \"'\";\r\n\tdefined(\"USERID\") or define(\"USERID\", db_result(db_query($query), 0));\r\n\tlog_event($sql,\"redcap_edocs_metadata\",\"MANAGE\",$record,$field,\"Download file (API)\");\r\n}", "title": "" }, { "docid": "283a209174103322055366db2443ca3b", "score": "0.54206157", "text": "function prepare_log($username)\n\t{\n\t\t$this->ct_request = $username;\n\t}", "title": "" }, { "docid": "3d329e23e90e6fdb489cf760b84f9a6e", "score": "0.54113686", "text": "public static function flushQueryLog(){\n //Method inherited from \\Illuminate\\Database\\Connection\n \\Illuminate\\Database\\MySqlConnection::flushQueryLog();\n }", "title": "" }, { "docid": "6737c3c7212760691a87732036fac715", "score": "0.53845674", "text": "protected function _log()\n {\n $log = Solar::dependency(\n 'Starburst_Log_Adapter_Var',\n $this->_config['log']\n );\n $this->_debug['solar_log']['data'] = $log->getLog();\n }", "title": "" }, { "docid": "ebcbee771d3c56a1125c0d163e52f478", "score": "0.5383492", "text": "public static function disableQueryLog(){\n //Method inherited from \\Illuminate\\Database\\Connection\n \\Illuminate\\Database\\MySqlConnection::disableQueryLog();\n }", "title": "" }, { "docid": "9075ac2de559e8f6472a7f138bccc890", "score": "0.5382009", "text": "public function addLog () {\n }", "title": "" }, { "docid": "a4e2f6816d1e92cfc06d5f403a982e58", "score": "0.5379218", "text": "public function logQuery($message) {\n array_push($this->logs,\n $message);\n if ($this->logger !== null and $this->debugMode) {\n $this->logger->info($message);\n }\n }", "title": "" }, { "docid": "7ea76cecc701ea3ce3dea92fa0ef74e0", "score": "0.53671443", "text": "public function setLog($log){\n\t $this->log=$log;\n\t}", "title": "" }, { "docid": "b297ca157c3205ffce69d4deba5525ed", "score": "0.5364233", "text": "function logCrack() {\n\t\t@mysqli_query($this->db,\"INSERT INTO login_log (ip, date) VALUES ('\".$this->ip.\"', \".time().\")\");\n\t}", "title": "" }, { "docid": "dd045d56cd195e19962a8613d1d6a1f9", "score": "0.53610563", "text": "function enableLogging()\n\t{\n\t\t$this->myLogging=true;\n\t}", "title": "" }, { "docid": "1e3e450a8c942ab6411f1a6a6bab528e", "score": "0.53516144", "text": "public function log()\n {\n global $wp_query;\n\n if (!$wp_query->is_search() || max(1, get_query_var('paged')) > 1) {\n return;\n }\n\n global $wpdb;\n\n $query = get_search_query();\n $hits = $wp_query->found_posts;\n $siteId = null;\n $loggedIn = is_user_logged_in();\n\n\n if (isset($_COOKIE['search_log']) && is_array(unserialize(stripslashes($_COOKIE['search_log']))) && in_array($query, unserialize(stripslashes($_COOKIE['search_log'])))) {\n return;\n }\n\n if (is_multisite() && function_exists('get_current_blog_id')) {\n $siteId = get_current_blog_id();\n }\n\n $insertedId = $wpdb->insert(\n \\SearchStatistics\\App::$dbTable,\n array(\n 'query' => $query,\n 'results' => $hits,\n 'site_id' => $siteId,\n 'logged_in' => $loggedIn\n ),\n array(\n '%s',\n '%d',\n '%d',\n '%d'\n )\n );\n\n $cookie = array();\n\n if (isset($_COOKIE['search_log']) && is_array($_COOKIE['search_log'])) {\n $cookie = $_COOKIE['search_log'];\n }\n\n $cookie[] = $query;\n\n setcookie('search_log', serialize($cookie), time() + (86400 * 1), \"/\");\n }", "title": "" }, { "docid": "bfee24074d26fb3705d7bfcae3648dde", "score": "0.53445715", "text": "function setLog($log) {\n $this->log = $log;\n }", "title": "" }, { "docid": "a7f1a017bf761c628bf5e44e8f9f174f", "score": "0.53342557", "text": "function setLog($log) {\n $this->log = $log;\n }", "title": "" }, { "docid": "a7f1a017bf761c628bf5e44e8f9f174f", "score": "0.53342557", "text": "function setLog($log) {\n $this->log = $log;\n }", "title": "" }, { "docid": "1a6de8c46bc2e2783d8188a082d59ce3", "score": "0.53185254", "text": "public function logRequest() {}", "title": "" }, { "docid": "e39f800c2be8637da6f923e97c456d66", "score": "0.52869964", "text": "function logLastLoggin() {\n $update_cols = ['timestamp_last_logged_in', 'ip_last_logged_in', 'last_session_id'];\n $update_vals = ['now()', $_SERVER['REMOTE_ADDR'], session_id()];\n $this->newQuery()->where('id', '=', $_SESSION['sts_userid'])->update($update_cols, $update_vals);\n }", "title": "" }, { "docid": "66fa7b754ae5bbe1522941702387157a", "score": "0.5279354", "text": "protected function initLogs()\n {\n $this->logs = array();\n }", "title": "" }, { "docid": "d37250425ea236306462e68a3e5df297", "score": "0.5276549", "text": "public function wirteLog() {\n echo \"redis写入日志\";\n }", "title": "" }, { "docid": "2ac19018cf87641de17b768ed7a4d300", "score": "0.5233504", "text": "public function testLog()\n {\n $query = new LoggedQuery();\n $query->setContext([\n 'query' => 'SELECT * FROM posts',\n 'took' => 10,\n 'numRows' => 5,\n ]);\n\n $this->assertCount(0, $this->logger->queries());\n\n $this->logger->log(LogLevel::DEBUG, (string)$query, ['query' => $query]);\n $this->assertCount(1, $this->logger->queries());\n $this->assertSame(10.0, $this->logger->totalTime());\n\n $this->logger->log(LogLevel::DEBUG, (string)$query, ['query' => $query]);\n $this->assertCount(2, $this->logger->queries());\n $this->assertSame(20.0, $this->logger->totalTime());\n }", "title": "" }, { "docid": "8f88ca8cf8e153c6cba045759de3cdf7", "score": "0.5212918", "text": "public function logRequest()\n {\n }", "title": "" }, { "docid": "410c3a94e1fc900258d6f42cfbc1dbfc", "score": "0.5211005", "text": "public function logAction() {\n\t\t$out_uid = $this->getInput('out_uid');\n\t\t$appid = $this->getInput('appid');\n\t\t//查询用户的银币日志\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tif($out_uid) $param['out_uid'] = $out_uid;\n\t\tif($appid) $param['appid'] = $appid;\n\t\t\n\t\tlist($total, $logs) = User_Service_CoinLog::getList($page, $perpage, $param);\n\t\t\n\t\t$this->assign('logs', $logs);\n\t\t$this->assign('param', $param);\n\t\t$url = $this->actions['logUrl'] .'/?'. http_build_query($param) . '&';\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $url));\n\t}", "title": "" }, { "docid": "b7c512b8114385763ae21ff5f47ed67f", "score": "0.52062404", "text": "protected static function _beginLogQuery()\r\n\t{\r\n\t\tif (empty(self::$_debug))\r\n\t\t\treturn;\r\n\r\n\t\tself::$_queryStartTime = microtime(true);\r\n\t}", "title": "" }, { "docid": "79ae11183b8ed78e9d2b6ad511cd7553", "score": "0.52054393", "text": "public function log() {\n }", "title": "" }, { "docid": "1a7db7941b4e878c733f1742913b26ec", "score": "0.519465", "text": "protected function logLogin()\n {\n //Update last_login\n $time = time();\n $this->_data['accessToken'] = $this->hash->generateToken();\n $sql = \"UPDATE _table_ SET lastLogin=:stamp, isSigned=:isSigned, accessToken=:accessToken WHERE id=:id\";\n if ($this->table->runQuery($sql,\n array('stamp' => $time,\n 'isSigned' => true,\n 'accessToken' => $this->accessToken,\n 'id' => $this->id))) {\n $this->log->report('Last Login updated');\n }\n\n $this->logOperation(\"login\");\n }", "title": "" }, { "docid": "305aa872f060faad77662ec5226800ef", "score": "0.5192257", "text": "function runLoginLog($username){\n\t$clientip=get_client_ip();\n\t$useragent=get_agent_details();\n\tinsertLoginLog($username,$clientip,$useragent);\n}", "title": "" }, { "docid": "2d3dc29002aabcea081b85de46bb7164", "score": "0.51806515", "text": "public function setLoggers();", "title": "" }, { "docid": "917566e83d83b334ef76cfdca2d78513", "score": "0.51717496", "text": "public function __construct()\n {\n parent::__construct();\n DB::enableQueryLog();\n }", "title": "" }, { "docid": "91c73e4697633562fcd4485b7683c887", "score": "0.51372916", "text": "public static function log(MySQLQuery $mySQLQuery): void\n {\n array_push(self::$_queries, $mySQLQuery);\n self::_trackStats($mySQLQuery);\n self::_benchmark($mySQLQuery);\n }", "title": "" }, { "docid": "d180b801051025dadcb95622e63717c2", "score": "0.5124246", "text": "public static function getQueryLog(){\n //Method inherited from \\Illuminate\\Database\\Connection\n return \\Illuminate\\Database\\MySqlConnection::getQueryLog();\n }", "title": "" }, { "docid": "59722e1758e892ca5ba007c74e64d2ce", "score": "0.51225024", "text": "public static function queryLog(): array;", "title": "" }, { "docid": "c011698c0652852103bab4a4b73569a9", "score": "0.5106749", "text": "function KeepLog($strQuery)\n\t{\n\t\t//Create Log With Query \n\t\t$website=new website; $db=$website->connect(); $website=null; \n\t\t$errSql = str_replace(\"'\",\"#Q#\",$strQuery);\t\t\n\t\t$logSql = \"insert into v_error_log (ErrorSql) values ('\".$errSql.\"')\";\n\t\t$stmt=$db->prepare($logSql);\n\t\t$data = $stmt->execute();\t\n\t}", "title": "" }, { "docid": "f6e178baf2b404b0196adec08f997bfd", "score": "0.5087741", "text": "protected function manageLog(){\n //Bring back logs needed\n $actionsToLog = Log::getActionsToLog();\n $actionInProcess = Yii::app()->controller->id.'/'.Yii::app()->controller->action->id;\n\n //Start logs if necessary\n if(isset($actionsToLog[$actionInProcess])) {\n\n //To let several actions log in the same time\n if(!$actionsToLog[$actionInProcess]['waitForResult']){\n Log::save(Log::setLogBeforeAction($actionInProcess));\n }else if(isset(Yii::app()->session[\"logsInProcess\"]) && is_array(Yii::app()->session[\"logsInProcess\"])){\n Yii::app()->session[\"logsInProcess\"] = array_merge(\n Yii::app()->session[\"logsInProcess\"],\n array($actionInProcess => Log::setLogBeforeAction($actionInProcess))\n );\n } else{\n Yii::app()->session[\"logsInProcess\"] = array($actionInProcess => Log::setLogBeforeAction($actionInProcess));\n }\n }\n }", "title": "" }, { "docid": "78c4006cef9702caaad151be9c1bb6d5", "score": "0.50837207", "text": "public function logging()\n {\n return $this->loggingQueries;\n }", "title": "" }, { "docid": "ed82299f9d54d477b23b593fddcd7fdf", "score": "0.50545746", "text": "public function setUpScenarioLogging() {\n\t\t$this->oldLogLevel = LoggingHelper::getLogLevel();\n\t\t$this->oldLogBackend = LoggingHelper::getLogBackend();\n\t\t$this->oldLogTimezone = LoggingHelper::getLogTimezone();\n\t}", "title": "" }, { "docid": "c2b515d28d58668eec343975ecb6adf2", "score": "0.5048383", "text": "private function initLog()\n {\n // open the log handler\n $this->_logger = new Logger('db', [\n new StreamHandler(realpath($this->_logPath . \"/db.log\"), $this->_logLevel)\n ]);\n\n // check to see if we are operating in a CLI and if the user wants log data output to the terminal\n if (PHP_SAPI == 'cli' && defined('PHP_DB_CLI_LOG') && PHP_DB_CLI_LOG) {\n $stream = new StreamHandler(STDOUT, $this->_logLevel);\n $stream->setFormatter(new LineFormatter(\"%datetime% %level_name% %message%\" . PHP_EOL, \"H:i:s.u\"));\n $this->_logger->pushHandler($stream);\n }\n }", "title": "" }, { "docid": "95c0143bb737ffdfa2591742242d2ca9", "score": "0.504391", "text": "public function run()\n {\n DB::disableQueryLog();\n\t parent::run();\n }", "title": "" }, { "docid": "90aec5865e2a63662dcade3a3ddf0c5e", "score": "0.5041408", "text": "private function log () {\n\n // validate request is POST\n if ($this->get_request_method() != \"POST\") $this->response('', 406);\n \n $this->processRequest(); \n $this->logRequestDB(); \n }", "title": "" }, { "docid": "53e9cb33254c14d9646b30ccb7296123", "score": "0.5033859", "text": "private function logQuery(Curl $curl)\n {\n $storageName = microtime(true) . '.xml';\n Storage::put('dumps-responses/'.$storageName, $curl->getRawResponse());\n $log = new Log;\n $log->method = 'GET';\n $log->url = $curl->getUrl();\n $log->http_code = $curl->getHttpStatusCode();\n $log->response_storage_name = $storageName;\n $log->save();\n }", "title": "" }, { "docid": "df46e29a4058d176da6820384904f23a", "score": "0.5029358", "text": "public function run()\n {\n DB::disableQueryLog();\n\n parent::run();\n }", "title": "" }, { "docid": "d0ba8dafca0d91526ed3c4a228c35200", "score": "0.5028804", "text": "public function aLog(){\n \tif(empty($this->__aCUserLog)){\n \t\t$this->__aCUserLog = CUserLog::aAllLog(\"table_id='{$this->sTableUuid}' AND table_func={$this->sFunc} AND table_action={$this->sAction}\");\n \t}\n \treturn $this->__aCUserLog;\n }", "title": "" }, { "docid": "29eda73638400bfd831db95894d4c9f9", "score": "0.5022404", "text": "public function LogAll() {\n parent::LogAll();\n Logger::SetLogLevel(ReportUtils::$LOG_NAME, Logger::$INFO);\n }", "title": "" }, { "docid": "087601ceef08464262662bb5ba2175bd", "score": "0.50223356", "text": "public static function logQuery($query, $bindings, $time = null){}", "title": "" }, { "docid": "6dc0f844657891475788e60454171881", "score": "0.5022016", "text": "public function logQuery(array $query)\n {\n $this->queries[] = $query;\n $this->processed = false;\n\n if (null !== $this->logger) {\n $this->logger->info($this->prefix.static::bsonEncode($query));\n }\n }", "title": "" }, { "docid": "d9ed8c26c8c4b1f2fa577a69fc2726cc", "score": "0.49813956", "text": "public static function start_logging() {\n\t\tadd_action( 'doing_it_wrong_run', array( __CLASS__, 'doing_it_wrong_run' ), 10, 3 );\n\t\tadd_filter( 'doing_it_wrong_trigger_error', '__return_false' );\n\t}", "title": "" }, { "docid": "746d2c6d7e1025888605b5e0cbcbc7f4", "score": "0.4976541", "text": "protected function assignCookieParams() {\n\t\tif( !strlen($_COOKIE[\"paramsLogger\"]) && !$this->userID )\n\t\t\trunner_setcookie(\"paramsLogger\", generatePassword(24), time() + 5 * 365 * 86400, \"\", \"\", false, false);\n\t\t\n\t\t$this->cookie = $_COOKIE[\"paramsLogger\"];\n\t}", "title": "" }, { "docid": "52c38173b31c7887420f2078dfc15ad7", "score": "0.49748972", "text": "public function logQuery($query, $time = null) {\n if (isset($this->events)) {\n $this->events->fire('osm.query', [$query, $time]);\n }\n\n parent::logQuery($query, $time);\n }", "title": "" }, { "docid": "fcaa6b64b6b18c9713672f46ff40c356", "score": "0.49619085", "text": "public function getQueryLog()\n {\n return $this->queryLog;\n }", "title": "" }, { "docid": "e932f1b596501927b6c27846fce4a30c", "score": "0.49573228", "text": "function logger($req, $res) {\n //log_write_session_check($request->mw_data->user_level);\n}", "title": "" }, { "docid": "27ba4e8b4915893e8c4bcfb55fa66b02", "score": "0.49534947", "text": "function userLog($username, $flag){\r\n $agent = $_SERVER ['HTTP_USER_AGENT'];\r\n $ip = $_SERVER ['REMOTE_ADDR'];\r\n if (getenv ( 'HTTP_X_FORWARDED_FOR' ))\r\n $ip2 = getenv ( 'HTTP_X_FORWARDED_FOR' );\r\n else\r\n $ip2 = getenv ( 'REMOTE_ADDR' );\r\n\t\t$rurl=selfURL();\r\n\t\t$rurl=basename($rurl,\"\");\r\n\r\n $query = mysql_query(\"INSERT INTO res_userlog (emp_id, local_ip, global_ip, success, browser, url) values ( '$username' , '$ip2' ,'$ip' , '$flag', '$agent', '$rurl')\") ;\r\n //$process_query($query);\r\n }", "title": "" }, { "docid": "1e943d2c1a52683cbe043ed7f1ff1216", "score": "0.49476072", "text": "public static function setLogger($logger){}", "title": "" }, { "docid": "a6422b6bf00c981e480e903569e64376", "score": "0.49416214", "text": "protected function logging($type,$title,$request,$response,$additional,$result)\n { \n \t$log_data = array(\n\t\t\t'type' => $type,\n\t\t\t'title' => $title,\n\t\t\t'request' => $request,\n \t\t'response' => $response,\n \t\t'additional' => $additional,\n\t\t\t'result' => $result,\n \t\t'date_created' => date('Y-m-d H:i:s')\n\t\t);\t\t\n \t\n \t$this->addData($log_data);\t\t\n\t $this->save(); \n }", "title": "" }, { "docid": "a8605bb3622e547d0bfaa566f1318456", "score": "0.4939481", "text": "protected function setAccessLog($public='') {\n $this->session_id = $this->session->userdata('session_id');\n \n\t\t// Set user agents and platform\n\t\t$user_agents['user_agent']\t= $this->agent->agent;\n\t\t$user_agents['platform']\t= $this->agent->platform;\n\t\t$user_agents['browser']\t\t= $this->agent->browser;\n $ip_address = $this->input->ip_address();\n \n\t\tif ($public) {\n\t\t\t// Set ServerLog data\n\t\t\t$object = array(\n\t\t\t\t'session_id'\t=> $this->session_id,\n\t\t\t\t'url'\t\t\t=> base_url(uri_string()),\n\t\t\t\t//'user_id'\t\t=> @$object['user_id'],\t\n\t\t\t\t'user_id'\t\t=> '',\t\t\t\t\t\n\t\t\t\t//'status_code'\t=> @$status_code[@http_response_code()],\t\n\t\t\t\t'status_code'\t=> '',\t\n\t\t\t\t//'bytes_served'\t=> @$object['bytes_served'],\t\n\t\t\t\t'bytes_served'\t=> '',\t\n\t\t\t\t'total_time'\t=> $this->benchmark->marker['total_execution_time_start'],\t\n\t\t\t\t'ip_address'\t=> $ip_address,\t\n\t\t\t\t'geolocation'\t=> '',\n\t\t\t\t//'http_code'\t\t=> @http_response_code(),\t\n\t\t\t\t'http_code'\t\t=> '',\t\n\t\t\t\t'referrer'\t\t=> ($this->agent->is_referral()) ? $this->agent->referrer() : '',\t\t\t\n\t\t\t\t'user_agent'\t=> json_encode($user_agents),\n\t\t\t\t'is_mobile'\t\t=> $this->agent->is_mobile,\n\t\t\t\t'status'\t\t=> 1,\n\t\t\t\t'added'\t\t\t=> time()\n\t\t\t); \n\t\t}\n \n\t\t// Set value for ServerLogs\n\t\t$this->ServerLogs->setServerLog($object);\n\t}", "title": "" }, { "docid": "4c81930cde1f68842781a94dbca553bb", "score": "0.4936829", "text": "public function setCredentials() {\n $config = \\Drupal::config('gathercontent.settings');\n $this->setEmail($config->get('gathercontent_username') ?: '');\n $this->setApiKey($config->get('gathercontent_api_key') ?: '');\n }", "title": "" }, { "docid": "5724d65948289a633b9b2636bb92ee4a", "score": "0.49104896", "text": "function q_log_exec($user, $query){\n $q = mysql_escape_string($query);\n //$res = mysql_query($query) or die(\"No puede procesar la consulta: \" . mysql_error());\n $res = mysql_query($query) or die(\"No puede procesar la consulta\" .$query);\n// $log = mysql_query(\"INSERT INTO db_logs VALUES (NULL, NULL, '$user','$q')\") or die(\"No almacenado en log \". mysql_error());\n $log = mysql_query(\"INSERT INTO db_logs VALUES (NULL, NULL, '$user','$q')\");\n return $res;\n}", "title": "" }, { "docid": "1eef094715924bc863da447a3756bdd9", "score": "0.4908774", "text": "public function getLogsByQuestId($quest_id) {\n\t\t$sql = \"SELECT * FROM logs WHERE quest_id = ?\";\n\t\t$data = array($quest_id);\n\t\t$statement = $this->makeStatement($sql, $data);\n\t\treturn $statement;\n\t}", "title": "" }, { "docid": "6b9896df1316cfea2c2ec4d909bab27a", "score": "0.49082235", "text": "public function SCA_Logger()\n {\n\n }", "title": "" }, { "docid": "9e1e802f9985a473be6c4338d6bfbd39", "score": "0.4906234", "text": "public function setQueries($query)\n {\n $this->_query = $query;\n }", "title": "" }, { "docid": "44bc26b107dcc426b3d4dd5d15ec100b", "score": "0.49048918", "text": "function set_log($id)\n {\n $data=$this->get_property_details($id)->result();\n $this->db->insert('property_details_log', $data[0]);\n }", "title": "" }, { "docid": "81658b6ce14a956447b8537c10089b82", "score": "0.4899116", "text": "public function enableAutoLog()\n\t{\n $this->setOption('auto_log', true);\n\t}", "title": "" }, { "docid": "759e5d34146dd4d18f7f7d1e863c1cdb", "score": "0.48987576", "text": "public function __construct($logger) {$this->logger = $logger;}", "title": "" }, { "docid": "0517edc76545eaa711f3a08e818de16f", "score": "0.48823172", "text": "public function getLogs( $clear = false );", "title": "" }, { "docid": "47d8e381bebf7f52406f53ad55e3f56c", "score": "0.4871165", "text": "public function logLastLogin()\n {\n $this->last_login = $this->freshTimestamp();\n $this->save();\n }", "title": "" }, { "docid": "ce2bb6576b1846b58fa4d8f8a5714cd8", "score": "0.48660415", "text": "function setLoginInfo($my_login, $my_pwd, $my_tz) {\r\n\t\t$this->login = $my_login;\r\n\t\t$this->pwd = $my_pwd;\r\n\t\t$this->timezone = strval($my_tz*-60);\r\n\t\tDebugger::say(\"LoginInfo set.\");\r\n\t\t// Added return_status; by Neerav; 16 July 2005\r\n\t\t$a = array(\r\n\t\t\t\"action\" \t\t=> \"set login info\",\r\n\t\t\t\"status\" \t\t=> \"success\",\r\n\t\t\t\"message\" \t\t=> \"libgmailer: LoginInfo set.\",\r\n\t\t);\r\n\t\tarray_unshift($this->return_status, $a);\r\n\t}", "title": "" }, { "docid": "ed1dfc41267931b2b8c508eccb911b63", "score": "0.48656797", "text": "protected function _flushLogs()\n {\n $this->_debug = [];\n }", "title": "" }, { "docid": "3a3217ad93ddf138d1d323812285f0d2", "score": "0.48617738", "text": "public function setAuthenticated()\n {\n $this->last_auth = new Expression('NOW()');\n $this->save();\n }", "title": "" }, { "docid": "f67c2bffb84e5cc6adcff9f3ef0b3710", "score": "0.48612875", "text": "function asignar_consulta($log,$pass){\n\t\t$this->login = $log;\n\t\t$this->password = $pass;\n\t}", "title": "" }, { "docid": "38afb53026b2dbba293fa900b5dfa7c7", "score": "0.4859829", "text": "static public function sql_log( $action = 'attach_filter' ) {\n global $wpdb;\n\n if( !in_array( $action, array( 'enable', 'disable', 'print_log' ) ) ) {\n $wpdb->ud_queries[ ] = array( $action, $wpdb->timer_stop(), $wpdb->get_caller() );\n\n return $action;\n }\n\n if( $action == 'enable' ) {\n add_filter( 'query', array( __CLASS__, 'sql_log' ), 75 );\n }\n\n if( $action == 'disable' ) {\n remove_filter( 'query', array( __CLASS__, 'sql_log' ), 75 );\n }\n\n if( $action == 'print_log' ) {\n $result = array();\n foreach( (array) $wpdb->ud_queries as $query ) {\n $result[ ] = $query[ 0 ] ? $query[ 0 ] . ' (' . $query[ 1 ] . ')' : $query[ 2 ];\n }\n\n return $result;\n }\n\n }", "title": "" }, { "docid": "34fce038e5f092c28617fcddc5905ecb", "score": "0.48566937", "text": "function addLog($profileid,$campaignName,$str='',$action,$db_js_111)\n{\n\t$log_query = \"INSERT into js_crm.DIALER_UPDATE_LOG (PROFILEID,CAMPAIGN,UPDATE_STRING,TIME,ACTION) VALUES ('$profileid','$campaignName','$str',now(),'$action')\";\n mysql_query($log_query,$db_js_111) or die($log_query.mysql_error($db_js_111));\n}", "title": "" }, { "docid": "0451bc3d3abbf19139c0a22d71ce032b", "score": "0.48556772", "text": "function pudlLog($callback, $db, $result=NULL) {\r\n\tglobal $af;\r\n\r\n\t$path = $af instanceof \\altaform ? $af->path() : '';\r\n\r\n\t@file_put_contents(\r\n\t\t$path . '_log/' . @date('Y-m-d') . '-query',\r\n\t\t$db->query() . \"\\n\",\r\n\t\tFILE_APPEND\r\n\t);\r\n}", "title": "" }, { "docid": "c30e0e1a3b3ec9921e579e3f376c9eec", "score": "0.48453405", "text": "function set_admlogintime($uid = FALSE)\n {\n return $this->set_logintime($uid);\n }", "title": "" }, { "docid": "1d2f8a8adfacfb59c2c64f35f04511d0", "score": "0.48434147", "text": "public function write_entries() {\n // we do nothing here to prevent duplicate log entries\n }", "title": "" }, { "docid": "dddcc77e6ba5d40e734ea281f607009d", "score": "0.4840931", "text": "public function log_hit() {\n\t\t$args = array($this->parent()->wp_id, $this->id, $this->parent_ut_id);\n\n\t\t$sql = \"\n\t\t\tINSERT DELAYED INTO hits\n\t\t\t\t(wp_id, hit_date, hit_time, hit_usertab, hit_ut_parent)\n\t\t\tVALUES\n\t\t\t\t(?, NOW(), NOW(), ?, ?)\n\t\t\";\n\n\t\tPSU::db('portal')->Execute( $sql, $args );\n\t}", "title": "" }, { "docid": "33ed399ffe455d98a86309719213ef57", "score": "0.48322082", "text": "public function LogDefaults() {\n parent::LogDefaults();\n Logger::SetLogLevel(ReportUtils::$LOG_NAME, Logger::$ERROR);\n }", "title": "" }, { "docid": "0f4526e08225eb73d637d33596fbe766", "score": "0.48266014", "text": "function login_log( $user_login, $user ) {\n \n $directory = plugin_dir_path( __FILE__ );\n\n $roles = implode(\",\", $user->roles);\n\n $date = date('m/d/Y h:i:s a', time());\n\n $text = \"In, \" . $user_login . \", \" . $roles . \", \" . $_SERVER['REMOTE_ADDR'] . \", \" . $date;\n\n $log = file_put_contents($directory.'login_log.txt', $text.PHP_EOL , FILE_APPEND | LOCK_EX);\n\n}", "title": "" } ]
ee88e9d91169994c56d9873272ccf25d
Add theme support for featured image, menus, etc
[ { "docid": "9ebebb19bc01cc350305f0c1c2a08788", "score": "0.71727216", "text": "function stash_theme_setup(){\n\tif ( function_exists( 'add_theme_support' ) ) {\n\t\t\t$hgr_defaults = array(\n\t\t\t\t'default-image' => '',\n\t\t\t\t'random-default' => false,\n\t\t\t\t'width' => 2560,\n\t\t\t\t'height' => 1440,\n\t\t\t\t'flex-height' => true,\n\t\t\t\t'flex-width' => true,\n\t\t\t\t'default-text-color' => '#fff',\n\t\t\t\t'header-text' => false,\n\t\t\t\t'uploads' => true,\n\t\t\t\t'wp-head-callback' => '',\n\t\t\t\t'admin-head-callback' => '',\n\t\t\t\t'admin-preview-callback' => '',\n\t\t\t);\n\t\tadd_theme_support( 'custom-header', $hgr_defaults );\n\n\t\tadd_theme_support( 'post-formats', array( 'quote', 'audio', 'video' ) );\n\n\t\t$args = array(\n\t\t\t'default-color' => '',\n\t\t\t'default-image' => '',\n\t\t\t'wp-head-callback' => '_custom_background_cb',\n\t\t\t'admin-head-callback' => '',\n\t\t\t'admin-preview-callback' => ''\n\t\t);\n\n\t\tadd_theme_support( \"custom-background\", $args );\n\n\t\t// Add theme support for featured image\n\t\tadd_theme_support( 'post-thumbnails', array( 'post','hgr_portfolio','hgr_testimonials' ) );\n\n\t\t// Add theme support for feed links\n\t\tadd_theme_support( 'automatic-feed-links' );\n\n\t\tadd_theme_support( 'title-tag' );\n\n\t\t// Add theme support for woocommerce\n\t\tadd_theme_support( 'woocommerce' );\n\t\tadd_theme_support( 'wc-product-gallery-zoom' );\n\t\tadd_theme_support( 'wc-product-gallery-lightbox' );\n\t\tadd_theme_support( 'wc-product-gallery-slider' );\n\t\tadd_action( 'wp_enqueue_scripts', 'wcqi_enqueue_polyfill' );\n\t\t\tfunction wcqi_enqueue_polyfill() {\n \t\t\t wp_enqueue_script( 'wcqi-number-polyfill' );\n\t\t}\n\n\t\t// Add theme support for menus\n\t\tif ( function_exists( 'register_nav_menus' ) ) {\n\t\t\tregister_nav_menus(\n\t\t\t\tarray(\n\t\t\t\t 'header-menu'\t=> esc_html__( 'Main Menu (Also used for Right Menu)', 'stash' ),\n\t\t\t\t 'left-menu'\t=> esc_html__( 'Top Left Menu', 'stash' ),\n\t\t\t\t //'right-menu'\t=> esc_html__( 'Top Right Menu', 'stash' ),\n\t\t\t\t 'sidebar-menu'\t=> esc_html__( 'SideBar Menu', 'stash' ),\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\n\t }\n\n\n\t function stash_widgets_init() {\n\t\tif ( function_exists('register_sidebar') ) {\n\t\t\tregister_sidebar(array(\t'name'\t\t\t=>\tesc_html__( 'Blog', 'stash'),\n\t\t\t\t\t\t\t\t\t'id'\t\t\t=>\t'blog-widgets',\n\t\t\t\t\t\t\t\t\t'description'\t=>\tesc_html__( 'Widgets in this area will be shown into the blog sidebar.', 'stash'),\n\t\t\t\t\t\t\t\t\t'before_widget' =>\t'<div class=\"col-md-12 blog_widget\">',\n\t\t\t\t\t\t\t\t\t'after_widget'\t=>\t'</div>',\n\t\t\t\t\t\t\t\t\t'before_title'\t=>\t'<h4>',\n\t\t\t\t\t\t\t\t\t'after_title'\t=>\t'</h4>',\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\tregister_sidebar(array(\t'name'\t\t\t=>\tesc_html__( 'Pages Sidebar', 'stash'),\n\t\t\t\t\t\t\t\t\t'id'\t\t\t=>\t'page-widgets',\n\t\t\t\t\t\t\t\t\t'description'\t=>\tesc_html__( 'Widgets in this area will be shown into the pages left or right sidebar.', 'stash'),\n\t\t\t\t\t\t\t\t\t'before_widget' =>\t'<div class=\"col-md-12 page_widget\">',\n\t\t\t\t\t\t\t\t\t'after_widget'\t=>\t'</div>',\n\t\t\t\t\t\t\t\t\t'before_title'\t=>\t'<h4>',\n\t\t\t\t\t\t\t\t\t'after_title'\t=>\t'</h4>',\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\tregister_sidebar(array(\t'name'\t\t\t=>\tesc_html__( 'Shop Sidebar', 'stash'),\n\t\t\t\t\t\t\t\t\t'id'\t\t\t=>\t'shop-widgets',\n\t\t\t\t\t\t\t\t\t'description'\t=>\tesc_html__( 'Widgets in this area will be shown into the shop left or right sidebar.', 'stash'),\n\t\t\t\t\t\t\t\t\t'before_widget' =>\t'<div class=\"col-md-12 shop_widget\">',\n\t\t\t\t\t\t\t\t\t'after_widget'\t=>\t'</div>',\n\t\t\t\t\t\t\t\t\t'before_title'\t=>\t'<h4>',\n\t\t\t\t\t\t\t\t\t'after_title'\t=>\t'</h4>',\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t}\n\t }\n\t add_action( 'widgets_init', 'stash_widgets_init' );\n\n\n\t$hgr_options = get_option( 'redux_options' );\n\tif( $hgr_options && !is_array($hgr_options) ){\n\t\tdelete_option('redux_options');\n\t}\n }", "title": "" } ]
[ { "docid": "131f24640aa0b76dcfa488b37de2de13", "score": "0.8384588", "text": "function get_site_features() {\n add_theme_support('post-thumbnails');\n}", "title": "" }, { "docid": "043798603ff5830d80af09d9f14bd413", "score": "0.8161634", "text": "function theme_features_support() {\n add_theme_support('post-thumbnails');\n set_post_thumbnail_size( 200, 150, true );\n\tadd_theme_support('title-tag');\n add_theme_support('menus');\n register_nav_menus(\n array(\n 'main_nav' => 'Main Menu',\n )\n );\n}", "title": "" }, { "docid": "bb3a86f272502e25c5c7f33d04e4014a", "score": "0.8022228", "text": "function followandrew_theme_support(){\n add_theme_support('title-tag');\n add_theme_support('custom-logo');\n add_theme_support('post-thumbnails');\n}", "title": "" }, { "docid": "2faecc445c5e8ebd126552ea385266da", "score": "0.8018693", "text": "function site_setup() {\r\n add_theme_support('post-thumbnails');\r\n}", "title": "" }, { "docid": "20584f182bd34b920612195659e693c2", "score": "0.8007902", "text": "function followandrew_theme_support(){\n\tadd_theme_support('title-tag');\n\tadd_theme_support('custom-logo');\n\tadd_theme_support('post-thumbnails');\n}", "title": "" }, { "docid": "8be7e59d47eb0b551623f436371bcaa8", "score": "0.79896116", "text": "function tds_theme_support(){\n // Add dynamic support theme\n add_theme_support('title-tag');\n add_theme_support('custom-logo');\n add_theme_support('post-thumbnails');\n}", "title": "" }, { "docid": "2fa0525138437a97c8d1cf4e96ef22d8", "score": "0.7989173", "text": "public function addSupport()\n {\n \\add_theme_support('post-thumbnails');\n }", "title": "" }, { "docid": "533f39a8ec12847ffa916da39dc2c8ad", "score": "0.7939255", "text": "function tutsplus_theme_support() {\n\tadd_theme_support( 'post-thumbnails' ); \n}", "title": "" }, { "docid": "251fb4fef5c36017c21858ad6d6f3d00", "score": "0.79065675", "text": "public function theme_support(): void {\n\t\t// Support title tag in the head.\n\t\tadd_theme_support( 'title-tag' );\n\n\t\t// Support thumbnails for all CPTs.\n\t\tadd_theme_support( 'post-thumbnails' );\n\t}", "title": "" }, { "docid": "5a455f5ef1bfa1bf759b8403bc36c3ce", "score": "0.7870267", "text": "function setup() {\n\n add_theme_support( 'post-thumbnails' );\n\n /**\n * Theme nav menus\n */\n register_nav_menus( array(\n 'main_menu' => __( 'Main Menu', 'bookhype' ),\n ) );\n\n /**\n * Switch default core markup to output valid HTML5.\n */\n add_theme_support( 'html5', array(\n 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption'\n ) );\n\n /**\n * Setup the WordPress core custom background feature.\n */\n add_theme_support( 'custom-background', array(\n 'default-color' => 'ffffff',\n ) );\n\n /**\n * Add theme support for title tag\n */\n add_theme_support( 'title-tag' );\n\n}", "title": "" }, { "docid": "cc03808d5571a343045f935f547043a2", "score": "0.7862338", "text": "function blogsimple_theme_support() {\n\t\n\t//Chamar a tag title\n\tadd_theme_support('title-tag');\n\n\t//Adicionar os formatos de posts\n\tadd_theme_support('post-formats', array('aside', 'image'));\n\n\t//Adicionar logo no tema\n\tadd_theme_support('custom-logo');\n}", "title": "" }, { "docid": "098e8a0e0cf32f0d0fbf9b5e92b672da", "score": "0.7853335", "text": "function setup() {\r\n\r\n // Enable support for Post Thumbnails, and declare two sizes.\r\n add_theme_support( 'post-thumbnails' );\r\n\r\n // This theme uses wp_nav_menu() in two locations.\r\n register_nav_menus( array(\r\n 'primary' => __( 'Top primary menu', 'twentyfourteen' ),\r\n 'secondary' => __( 'Secondary menu in left sidebar', 'twentyfourteen' ),\r\n ) );\r\n\r\n /*\r\n * Switch default core markup for search form, comment form, and comments\r\n * to output valid HTML5.\r\n */\r\n add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption' ) );\r\n\r\n /*\r\n * Enable support for Post Formats.\r\n * See http://codex.wordpress.org/Post_Formats\r\n */\r\n add_theme_support( 'post-formats', array(\r\n 'image', 'gallery', 'video', 'audio', 'quote',\r\n ) );\r\n\r\n add_theme_support( 'custom-header' );\r\n\r\n // This theme uses its own gallery styles.\r\n add_filter( 'use_default_gallery_style', '__return_false' );\r\n}", "title": "" }, { "docid": "6557131501ddef8dcd1e1ead92123252", "score": "0.78169", "text": "function family_features(){\n add_theme_support( 'title-tag' );\n add_theme_support( 'post-thumbnails' );\n}", "title": "" }, { "docid": "3e3e3266c15eed077a942b94f9360304", "score": "0.77159715", "text": "function mojojojo_theme_support() {\n add_theme_support( 'title-tag' );\n add_theme_support( 'custom-logo' );\n add_theme_support( 'post-thumbnails' );\n}", "title": "" }, { "docid": "aca032373b17bbdedb5f2d981a71f1fc", "score": "0.7687648", "text": "function setup_wordpress()\n{\n\tshow_admin_bar(false);\n\tadd_theme_support('post-thumbnails');\n\t//add_theme_support( 'woocommerce' );\n\tadd_theme_support('title-tag');\n\t//add_theme_support( 'search-form' );\n\tadd_image_size('slider', 1920, 1080, array('center', 'center'));\n}", "title": "" }, { "docid": "09b8b9913daea40a66b3a6df1e933495", "score": "0.76359427", "text": "static function after_setup_theme() {\n add_theme_support( 'post-thumbnails' );\n }", "title": "" }, { "docid": "e380987a461d58cbed1637accbe26358", "score": "0.7635442", "text": "function firedog_theme_support() {\n\n\t// wp thumbnails (sizes handled in functions.php)\n\tadd_theme_support( 'post-thumbnails' );\n\n\t// default thumb size\n\tset_post_thumbnail_size(125, 125, true);\n\n\t// rss thingy\n\tadd_theme_support('automatic-feed-links');\n\n\t// wp menus\n\tadd_theme_support( 'menus' );\n\n\t// registering wp3+ menus\n\tregister_nav_menus(\n\t\tarray(\n\t\t\t'primary-nav' => __( 'Primary Navigation', 'firedog' ), // main nav in header\n\t\t\t'footer-links' => __( 'Footer Links', 'firedog' ) // secondary nav in footer\n\t\t)\n\t);\n}", "title": "" }, { "docid": "3ff63693d7f639721f3cdcbac2df1045", "score": "0.7631604", "text": "function dpt_add_theme_support() {\r\n if ( function_exists( 'add_theme_support' ) ) { \r\n add_theme_support( 'post-thumbnails' ); \r\n }\r\n}", "title": "" }, { "docid": "8ed1ac4f257e5ac0dce7047b434b2600", "score": "0.7614066", "text": "function domus_theme_support()\n{\n add_theme_support('title-tag');\n add_theme_support('custom-logo');\n add_theme_support('post-thumbnails');\n add_theme_support( 'custom-header' );\n add_theme_support('html5', array('comment-list', 'comment-form') );\n}", "title": "" }, { "docid": "9854f0c1276e07801007c02ce97d23f4", "score": "0.7603261", "text": "function inline_theme_support() {\n\n\tadd_theme_support( 'automatic-feed-links' );\n\tadd_theme_support( 'menus' );\n\tadd_theme_support( 'post-thumbnails' );\n\t\n\tglobal $wp_version;\n\tif ( version_compare( $wp_version, '3.4', '>=' ) ) \n\t\tadd_theme_support( 'custom-background' ); \n\telse\n\t\tadd_custom_background();\n\t\t\n\tadd_editor_style();\n\tadd_image_size( 'post-thumb', 120, 120, TRUE );\n\tadd_image_size( 'post-full', 590, 120, TRUE );\n\tadd_image_size( 'post-full-template-mid', 490, 120, TRUE );\n\tadd_image_size( 'post-full-template-side', 470, 120, TRUE );\n\tadd_image_size( 'post-full-width', 910, 120, TRUE );\n\n}", "title": "" }, { "docid": "24bd0eb4fce344e4e4442e2a96194c7e", "score": "0.7574723", "text": "function bm_admin_setup()\n {\n add_theme_support('post-thumbnails');\n\n }", "title": "" }, { "docid": "b01fb648d9b67929bb1efedb424c3280", "score": "0.7541847", "text": "function jbst4_theme_support() {\n\n\t// Add WP Thumbnail Support\n\tadd_theme_support( 'post-thumbnails' );\n\t\n\t// Default thumbnail size\n\tset_post_thumbnail_size(125, 125, true);\n\n\t// Add RSS Support\n\tadd_theme_support( 'automatic-feed-links' );\n\t\n\t// Add Support for WP Controlled Title Tag\n\tadd_theme_support( 'title-tag' );\n\t\n\t// Add HTML5 Support\n\tadd_theme_support( 'html5', \n\t array( \n\t \t'comment-list', \n\t \t'comment-form', \n\t \t'search-form', \n\t ) \n\t);\n\t\n\t// Adding post format support\n\t/* add_theme_support( 'post-formats',\n\t\tarray(\n\t\t\t'aside', // title less blurb\n\t\t\t'gallery', // gallery of images\n\t\t\t'link', // quick link to other site\n\t\t\t'image', // an image\n\t\t\t'quote', // a quick quote\n\t\t\t'status', // a Facebook like status update\n\t\t\t'video', // video\n\t\t\t'audio', // audio\n\t\t\t'chat' // chat transcript\n\t\t)\n\t); */\t\n\t\n}", "title": "" }, { "docid": "253cd1fb5492d7b75aeee2f0b3772cce", "score": "0.75412047", "text": "function theme_wp_setup()\r\r\n{\r\r\n add_theme_support('automatic-feed-links');\r\r\n add_theme_support('html5', array(\r\r\n 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption'\r\r\n ));\r\r\n // pengganti tag <title></title>\r\r\n add_theme_support('title-tag');\r\r\n\r\r\n // mengaktifkan post thumbnail\r\r\n add_theme_support('post-thumbnails');\r\r\n\r\r\n /* Register Menu */\r\t\r\t/*register_nav_menus( array(\r\t\t'primary' => __( 'Primary Menu', 'Himakon Theme' ),\r\t) ); */\r\r\n}", "title": "" }, { "docid": "fdddaca013bc7401a4d40184b7f98b86", "score": "0.75337595", "text": "function theme_setup(){\n add_theme_support( \"menus\" );\n // attiva la feature image nei post e nella pagine\n add_theme_support('post-thumbnails');\n\nadd_image_size('officina_blog',419,600,true);\n /*\n * attiva la posizione dei menu nell'overlay\n */\n register_nav_menus( array(\n 'primary' => __('primary', 'officina' ),\n 'col-1' => __( 'colonna uno', 'officina' ),\n 'col-2' => __('colonna due', 'officina' ),\n 'col-3' => __('colonna tre', 'officina' ),\n 'col-4' => __('colonna quattro', 'officina' ),\n 'social' => __('social', 'officina' ),\n\n ) );\n\n }", "title": "" }, { "docid": "a64ef4daf30b43060048b4c263306eec", "score": "0.75321084", "text": "function brondbytrust_theme_support() {\n add_theme_support('post-thumbnails');\n\n // default thumb size\n set_post_thumbnail_size(125, 125, true);\n\n // adding post format support\n add_theme_support( 'post-formats',\n array(\n 'aside', // title less blurb\n 'gallery', // gallery of images\n 'link', // quick link to other site\n 'image', // an image\n 'quote', // a quick quote\n 'status', // a Facebook like status update\n 'video', // video\n 'audio', // audio\n 'chat' // chat transcript\n )\n );\n \n add_theme_support('automatic-feed-links');\n add_theme_support( 'menus' );\n\n register_nav_menus(\n array(\n 'main-menu' => __( 'The Main Menu', 'brondbytrusttheme' ), // main nav in header\n 'footer-links' => __( 'Footer Links', 'brondbytrusttheme' ) // secondary nav in footer\n )\n );\n}", "title": "" }, { "docid": "b0ce5c2952cadca78915fc3469e91007", "score": "0.7520278", "text": "function Vege_Setup_Theme(){\n\n // Title Tag\n add_theme_support('title-tag');\n\n // Post Thumbnails\n if (function_exists('add_theme_support')) {\n add_theme_support('post-thumbnails');\n add_image_size('thumbnail', 150,150);\n add_image_size('medium', 300,300);\n add_image_size('medium_large', 768);\n add_image_size('large', 1024, 1024);\n add_image_size('full', 1920, 1080);\n }\n\n // Require Navwalker\n require_once get_template_directory(). '/template-parts/header/content-navbarwalker.php';\n\n // Custom Logos\n $defaults = array(\n 'width' => 200,\n 'height' => 50,\n 'flex-height' => true,\n );\n add_theme_support( 'custom-logo', $defaults );\n\n}", "title": "" }, { "docid": "0f7f0359caa467169ecb8b60819fa512", "score": "0.75198036", "text": "function demo_setup() {\r\n\t add_theme_support( 'automatic-feed-links' );\r\n\t add_theme_support( 'title-tag' );\r\n\t add_theme_support( 'post-thumbnails' );\r\n\t register_nav_menus( array(\r\n\t\t\t'primary-menu' => 'Primary',\r\n\t\t) );\r\n\t\tadd_theme_support( 'html5', array(\r\n\t\t\t'search-form',\r\n\t\t\t'comment-form',\r\n\t\t\t'comment-list',\r\n\t\t\t'gallery',\r\n\t\t\t'caption',\r\n\t\t) );\r\n\t\tadd_theme_support('post-formats', array(\r\n 'aside',\r\n 'image',\r\n 'video',\r\n 'quote',\r\n 'link',\r\n 'gallery',\r\n 'status',\r\n 'audio',\r\n 'chat',\r\n ));\r\n\t\tadd_theme_support( 'custom-logo', array(\r\n\t\t\t'height' => 250,\r\n\t\t\t'width' => 250,\r\n\t\t\t'flex-width' => true,\r\n\t\t\t'flex-height' => true,\r\n\t\t) );\r\n\t }", "title": "" }, { "docid": "7073ba2724870f22b4eaae5c9ac99cf3", "score": "0.7490138", "text": "function site_setup(){\n\n//registering the nav menus\n register_nav_menus(array(\n 'primary' => ('Primary Menu'),\n 'secondary' =>('Secondary Menu'),\n ));\n\n //Add fearured image\n add_theme_support('post-thumbnails');\n add_image_size('pf-large', 1200, 675 );\n add_image_size('pf-regular',820,461 );\n add_image_size('pf-medium',560,315 );\n add_image_size('pf-small', 160,90 );\n add_image_size('pf-porfolio-portrait', 612,580);\n add_theme_support('html5',array('comment-list','comment-form','search-form','gallery'));\n\n //Add Custom Title \n add_theme_support('title-tag');\n\n //woocommerce\n add_theme_support('woocommerce');\n}", "title": "" }, { "docid": "581681769ac021b823e65edbb0b744e2", "score": "0.7482764", "text": "function ccpriv_theme_support()\n{\n add_theme_support('title-tag');\n add_theme_support('custom-logo');\n}", "title": "" }, { "docid": "ff523ef300ae2f0155436b760e685a68", "score": "0.7467712", "text": "function learningWordPress_setup(){\n add_theme_support('post-thumbnails');\n add_theme_support('post-formats', array('gallery','link','aside'));\n add_image_size('small-image',180,120,true);\n add_image_size('banner-image',920,200,true);\n //Support site menus\n register_nav_menus( array(\n\t\t'primary_menu' => 'Primary Navigation Menu',\n\t\t'footer_menu' => 'My Custom Footer Menu',\n\t) );\n}", "title": "" }, { "docid": "3abe15bf79de008196c85364da7caa50", "score": "0.74635583", "text": "private function add_theme_support() {\n if ( is_array( $this->post_type_params[ 'supports' ] ) ) {\n if ( in_array( 'thumbnail', $this->post_type_params[ 'supports' ] ) ) {\n Theme_Supports::instance()->register_support_param( 'post-thumbnails', $this->post_type );\n }\n }\n }", "title": "" }, { "docid": "1e6c3c1380d96bbcd4533dc5809d93ae", "score": "0.743816", "text": "public function setup_theme(){\n // Adds ability to edit in customizer\n add_theme_support( 'title-tag' ); \n\n // add ability to add custom logo\n // Adds ability to edit in customizer\n add_theme_support( 'custom-logo', array(\n 'header-text' => array( 'site-title', 'site-description' ),\n 'height' => 100,\n 'width' => 400,\n 'flex-height' => true,\n 'flex-width' => true,\n 'unlink-homepage-logo' => true,\n ) );\n\n // allows us to customize the background\n add_theme_support( 'custom-background', $defaults = [\n 'default-image' => '',\n 'default-preset' => 'default', // 'default', 'fill', 'fit', 'repeat', 'custom'\n 'default-position-x' => 'left', // 'left', 'center', 'right'\n 'default-position-y' => 'top', // 'top', 'center', 'bottom'\n 'default-size' => 'auto', // 'auto', 'contain', 'cover'\n 'default-repeat' => 'repeat', // 'repeat-x', 'repeat-y', 'repeat', 'no-repeat'\n 'default-attachment' => 'scroll', // 'scroll', 'fixed'\n 'default-color' => 'ffffff',\n 'wp-head-callback' => '_custom_background_cb',\n 'admin-head-callback' => '',\n 'admin-preview-callback' => '',\n \n ] );\n\n // add thumbnail for posts\n add_theme_support( 'post-thumbnails' );\n\n // add refresh for only those parts that were changed\n add_theme_support( 'customize-selective-refresh-widgets' );\n\n add_theme_support( 'automatic-feed-links' );\n\n // add html5 theme support\n add_theme_support( \n 'html5', \n [\n 'comment-list', \n 'comment-form', \n 'search-form', \n 'gallery', \n 'caption', \n 'style', \n 'script' \n\n ] \n );\n\n add_editor_style();\n\n // due to gutenberg. WP will not automatically add styling to front end \n // because it may cause conflicts. This adds those styles for front-end \n add_theme_support( 'wp-block-styles' );\n\n // support for gutenberg alignment adding wide width ad full width for blocks\n add_theme_support( 'align-wide' );\n\n // setting content width of the site\n\n global $content_width;\n if(!isset($content_width)){\n\n $content_width = 1240; //sets the maximum allowable width for anything on front end.\n\n }\n\n }", "title": "" }, { "docid": "115a756597e81f4549d12bc343cb8b04", "score": "0.74312663", "text": "public function registerThemeSupport() {\n add_theme_support('menus');\n add_theme_support('widgets');\n add_theme_support('post-thumbnails');\n }", "title": "" }, { "docid": "3158f1835f197b4c41d09591f1c5aed8", "score": "0.74175847", "text": "function bones_theme_support() {\n\tadd_theme_support( 'post-thumbnails' ); // wp thumbnails (sizes handled in functions.php)\n\tset_post_thumbnail_size(256, 256, true); // default thumb size\n\n\t// wp custom background (thx to @bransonwerner for update)\n\tadd_theme_support( 'custom-background',\n\t\tarray(\n\t\t\t'default-image' => '', // background image default\n\t\t\t'default-color' => '', // background color default (dont add the #)\n\t\t\t'wp-head-callback' => '_custom_background_cb',\n\t\t\t'admin-head-callback' => '',\n\t\t\t'admin-preview-callback' => ''\n\t\t)\n\t);\n\tadd_theme_support('automatic-feed-links'); // rss thingy\n\t// to add header image support go here: http://themble.com/support/adding-header-background-image-support/\n\tadd_theme_support( 'menus' ); // wp menus\n\n\t// registering wp3+ menus\n\tregister_nav_menus(\n\t\tarray(\n\t\t\t'main-nav' => 'The Main Menu', // main nav in header\n\t\t\t'footer-links' => 'Footer Links',\n\t\t)\n\t);\n\tadd_theme_support( 'html5', array('comment-list','search-form','comment-form') ); // Enable support for HTML5 markup.\n}", "title": "" }, { "docid": "074289ede6f283beee9240030ff73fec", "score": "0.7391422", "text": "function featured_image(){\t\n\t\t\n\t\tif( $this->settings['featured_image'] )\n\t\t\tadd_filter('pl_support_featured_image', array(&$this, 'add_featured_image'));\n\n\t}", "title": "" }, { "docid": "5b107056641e45a73b5cff1c23a957c2", "score": "0.7385597", "text": "function portfolio_features(){\n add_theme_support('post-thumbnails');\n add_theme_support ('title-tag'); \n register_nav_menus( array(\n 'primary' => 'Primary Menu', \n 'footer' => 'Footer Menu',\n ));\n}", "title": "" }, { "docid": "31df253dfdd2d12aecef2d56044c9099", "score": "0.73852634", "text": "function c2b_theme_setup() {\n\t$child_dir = trailingslashit( get_stylesheet_directory() );\n\n\t// Add support for the Wordpress custom-Logo \n\t// see https://codex.wordpress.org/Theme_Logo\n\tadd_theme_support( 'custom-logo', array(\n\t\t'height' => 78,\n\t\t'width' => 150,\n\t\t'flex-width' => true,\n\t) );\n\t\n\t// add featured images to rss feed\n\tadd_filter('the_excerpt_rss', 'c2b_featuredtoRSS');\n\tadd_filter('the_content_feed', 'c2b_featuredtoRSS');\n\t\n}", "title": "" }, { "docid": "46936e6a2f13f425b143dbe12bbea0c5", "score": "0.7372862", "text": "function wordpress_setup() {\n\n\tadd_theme_support('title-tag');\n\n\tadd_theme_support('post-thumbnails');\n\n\tregister_nav_menus([\n\t\t'primary' => 'Главное меню'\n\t]);\n\n\tadd_theme_support('html5', [\n\t\t'search-form',\n\t\t'comment-form',\n\t\t'comment-list',\n\t\t'gallery',\n\t\t'caption',\n\t]);\n\n\tadd_image_size('square-320', 320, 320, ['center', 'center']);\n}", "title": "" }, { "docid": "3ac9dd5aa3eccab26d7bba3aa75aab11", "score": "0.7344839", "text": "function theme_support() {\n\n\t\t\tif( function_exists( 'add_theme_support' ) ) {\n\n\t\t\t\t// Add theme support for Automatic Feed Links\n\t\t\t\tadd_theme_support( 'automatic-feed-links' );\n\n\t\t\t\t// Add theme support for Featured Images\n\t\t\t\tadd_theme_support( 'post-thumbnails' );\n\n\t\t\t\t// Add theme support for custom CSS in the TinyMCE visual editor\n\t\t\t\tadd_editor_style( '/assets/css/editor-style.css' );\n\n\t\t\t\t// Add HTML5 support\n\t\t\t\tadd_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption' ) );\n\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "36bc1228b093561a2f09e1a7bc8e114a", "score": "0.73395854", "text": "function woothemes_setup () {\r\n\t\tadd_editor_style();\r\n\r\n\t\t// This theme uses post thumbnails\r\n\t\tadd_theme_support( 'post-thumbnails' );\r\n\r\n\t\t// Add default posts and comments RSS feed links to head\r\n\t\tadd_theme_support( 'automatic-feed-links' );\r\n\t}", "title": "" }, { "docid": "36d66f10cd164a21f2f5b10679d04159", "score": "0.7323454", "text": "function onehealth_theme_support() {\n\n\t// add excerpt box to page edit screen\n\t\tadd_post_type_support( 'post', 'excerpt' );\n\n\t// add WP Thumbnail Support\n\t\tadd_theme_support( 'post-thumbnails' );\n\n\t// default thumbnail size\n\t\tset_post_thumbnail_size(125, 125, true);\n\n\t// add RSS Support\n\t\tadd_theme_support('automatic-feed-links');\n\n\t// add Support for WP Menus\n\t\tadd_theme_support( 'menus' );\n\t\t\n\t// add Support for WP Controlled Title Tag\n\t\tadd_theme_support( 'title-tag' );\n\t\t\n\t// add HTML5 Support\n\t\tadd_theme_support( 'html5', \n\t\t\t\n\t\t\tarray( \n\t\t\t\n\t\t\t\t'comment-list', \n\t\t\t\t'comment-form', \n\t\t\t\t'search-form', \n\t\t\t\n\t\t\t)\n\n\t\t);\n\t\t\n\t\tadd_theme_support( 'post-formats',\n\t\t\t\n\t\t\tarray(\n\t\t\t\t'aside', // title less blurb\n\t\t\t\t'gallery', // gallery of images\n\t\t\t\t'link', // quick link to other site\n\t\t\t\t'image', // an image\n\t\t\t\t'quote', // a quick quote\n\t\t\t\t'status', // a Facebook like status update\n\t\t\t\t'video', // video\n\t\t\t\t'audio', // audio\n\t\t\t\t'chat' // chat transcript\n\t\t\t)\n\n\t\t); \n\t\t\n\t\t$GLOBALS['content_width'] = apply_filters( 'onehealth_theme_support', 1200 );\t\n\t\t\n\t}", "title": "" }, { "docid": "745b7e270a9e11ad88067b9e62dbcbb1", "score": "0.7303065", "text": "function alpha_setup() {\n\n /* Featured Slider */\n add_image_size( 'featured', 480, 330, true);\n\n /* Featured Posts at the Top */\n add_image_size( 'featured-posts', 75, 75, true);\n\n /* Featured Category */\n add_image_size( 'featured-cat', 300, 200, true );\n add_image_size( 'featured-cat-small', 100, 75, true );\n\n /* Video Widget */\n add_image_size( 'video-widget', 300, 170, true );\n\n /* Default Thumbnail */\n add_image_size( 'loop', option::get('thumb_width'), option::get('thumb_height'), true );\n\n /*\n * Switch default core markup for search form, comment form, and comments\n * to output valid HTML5.\n */\n add_theme_support( 'html5', array(\n 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption'\n ) );\n\n /*\n * Let WordPress manage the document title.\n * By adding theme support, we declare that this theme does not use a\n * hard-coded <title> tag in the document head, and expect WordPress to\n * provide it for us.\n */\n add_theme_support( 'title-tag' );\n\n // Register nav menus\n register_nav_menus( array(\n 'secondary' => __( 'Top Menu', 'wpzoom' ),\n 'primary' => __( 'Main Menu', 'wpzoom' )\n ) );\n}", "title": "" }, { "docid": "b8d18a68523506cc257320fa958bc646", "score": "0.72997737", "text": "function launch_theme_support() {\n\n\t// wp thumbnails (sizes handled in functions.php)\n\tadd_theme_support( 'post-thumbnails' );\n\n\t// default thumb size\n\tset_post_thumbnail_size(125, 125, true);\n\n\t// rss thingy\n\tadd_theme_support('automatic-feed-links');\n\n\t// adding post format support\n\tadd_theme_support( 'post-formats',\n\t\tarray(\n\t\t\t'aside', // title less blurb\n\t\t\t'gallery', // gallery of images\n\t\t\t'link', // quick link to other site\n\t\t\t'image', // an image\n\t\t\t'quote', // a quick quote\n\t\t\t'status', // a Facebook like status update\n\t\t\t'video', // video\n\t\t\t'audio', // audio\n\t\t\t'chat' // chat transcript\n\t\t)\n\t);\n\n\t// wp menus\n\tadd_theme_support( 'menus' );\n\n\t// registering wp3+ menus\n\tregister_nav_menus(\n\t\tarray(\n\t\t\t'main-nav' => __( 'The Main Menu', 'launchtheme' ), // main nav in header\n\t\t\t'side-nav' => __( 'The Side Menu', 'launchtheme' ), // side nav\n\t\t\t'footer-links-1' => __( 'Footer Links', 'launchtheme' ),\n\t\t)\n\t);\n}", "title": "" }, { "docid": "8ee86c886074989e90dc4175ef097d82", "score": "0.7296164", "text": "function custom_theme_setup() {\n\t\tadd_theme_support( 'html5', array(\n\t\t\t'search-form', 'comment-form', 'comment-list', 'gallery', 'caption'\n\t\t) );\n\t}", "title": "" }, { "docid": "26172c934274e82eef95e85b2c85e5e0", "score": "0.7275111", "text": "function customThemeSupport() {\n global $wp_version;\n add_theme_support( 'menus' );\n add_theme_support( 'post-thumbnails' );\n // let wordpress manage the title\n add_theme_support( 'title-tag' );\n //add_theme_support( 'custom-background', $args );\n //add_theme_support( 'custom-header', $args );\n // Automatic feed links compatibility\n if( version_compare( $wp_version, '3.0', '>=' ) ) {\n add_theme_support( 'automatic-feed-links' );\n } else {\n automatic_feed_links();\n }\n}", "title": "" }, { "docid": "7c5b759f4d14473a8b3eba87fc02fc3b", "score": "0.7273677", "text": "function hbd_theme_supports(){\n\t\tadd_theme_support( 'automatic-feed-links' );\n\t\t//generates the title tag\n\t\tadd_theme_support( 'title-tag' );\n\t\t// support for the post thumbnails for posts and pages\n\t\tadd_theme_support( 'post-thumbnails' );\n\t\t// menu for theme\n\t\tadd_theme_support('menus');\n\n\t\tadd_theme_support( 'custom-logo' );\n\n\t\t//registering the menus for the theme\n\t\tregister_nav_menus( array(\n\t\t\t'primary' \t\t\t=> __( 'Primary Menu' ),\n\t\t\t'footer-links' \t\t=> __( 'Footer Links' ),\n\t\t\t) );\n\n\t\t/*=======================================\n\t\t= thumbnail sizes =\n\t\t=======================================*/\n\t\tadd_image_size( 'investor-slides', 266, 97, true );\n\t\tadd_image_size( 'our-culture', 425, 330, true );\n\t\tadd_image_size( 'current-class', 310, 315, true );\n\t\t/* add_image_size( 'about-what-is-artisthub', 58, 57, true );\n\t\tadd_image_size( 'learn-more-legendary-events', 140, 112, true );*/\n\n\t\t// Switch default core markup for search form, comment form, and comments to output valid HTML5.\n\t\tadd_theme_support( 'html5', array(\n\t\t\t'search-form', 'comment-form', 'comment-list', 'gallery', 'caption'\n\t\t) );\n\n\t\t/* Global option for codestar */\n\t\tglobal $hbd_options;\n\t\t// get all values from theme options\n\t\t$hbd_options \t= cs_get_all_option();\n\t\t/* End of Global option */\n\n\t}", "title": "" }, { "docid": "5df178bc7169c9b0126ad5fba3275bee", "score": "0.72657615", "text": "function codexin_theme_support() {\n load_theme_textdomain( 'traveliria', get_template_directory() . '/languages');\n\n // Add default posts and comments RSS feed links to head.\n add_theme_support( 'automatic-feed-links' );\n\n /*\n * Let WordPress manage the document title.\n */\n add_theme_support( 'title-tag' );\n\n /*\n * Enable support for Post Thumbnails on posts and pages.lity/featured-images-post-thumbnails.\n */\n add_theme_support( 'post-thumbnails' );\n set_post_thumbnail_size( 1024, 700);\n\n \n\n /*\n * Enable support for post-formats\n */\n add_theme_support( 'post-formats', array(\n // 'aside',\n 'gallery',\n 'link',\n // 'image',\n 'quote',\n // 'status',\n 'video',\n 'audio',\n // 'chat' \n ) );\n\n \n /*\n * Switch default core markup.\n */\n add_theme_support(\n 'html5',\n array(\n 'search-form',\n 'comment-form',\n 'comment-list',\n 'gallery',\n 'caption',\n )\n );\n\n /**\n * Add support for core custom logo.\n */ \n add_theme_support( 'custom-header' );\n\n \n /**\n * Add support for core custom logo.\n */\n add_theme_support(\n 'custom-logo',\n array(\n 'height' => 225,\n 'width' => 190,\n 'flex-width' => false,\n 'flex-height' => false,\n )\n );\n /**\n\t\t * Adding custom background support to the theme\n\t\t */\t\n\t\tadd_theme_support( 'custom-background' );\n\n\n // Add image sizes\n if( function_exists( 'add_image_size' ) ) {\n add_image_size('codexin-fr-rect-one', 600, 375, true);\n add_image_size('codexin-fr-rect-two', 800, 354, true);\n add_image_size('codexin-fr-rect-three', 1170, 400, true);\n add_image_size('codexin-fr-rect-four', 800, 450, true);\n }\n\n // Add theme support for selective refresh for widgets.\n add_theme_support( 'customize-selective-refresh-widgets' );\n\n // Add support for Block Styles (Gutenberg). \n add_theme_support( 'wp-block-styles' );\n\n // Add support for full and wide align images (Gutenberg).\n add_theme_support( 'align-wide' );\n \n \n // Enqueue editor styles(Gutenberg).\n add_editor_style( 'style-editor.css' );\n\n // Add custom editor font sizes(Gutenberg).\n add_theme_support(\n 'editor-font-sizes',\n array(\n array(\n 'name' => __('Small', 'traveliria'),\n 'shortName' => __('S', 'traveliria'),\n 'size' => 19.5,\n 'slug' => 'small',\n ),\n array(\n 'name' => __('Normal', 'traveliria'),\n 'shortName' => __('M', 'traveliria'),\n 'size' => 22,\n 'slug' => 'normal',\n ),\n array(\n 'name' => __('Large', 'traveliria'),\n 'shortName' => __('L', 'traveliria'),\n 'size' => 36.5,\n 'slug' => 'large',\n ),\n array(\n 'name' => __('Huge', 'traveliria'),\n 'shortName' => __('XL', 'traveliria'),\n 'size' => 49.5,\n 'slug' => 'huge',\n ),\n )\n );\n\n // Editor color palette(Gutenberg).\n add_theme_support(\n 'editor-color-palette',\n array(\n array(\n 'name' => __('Primary', 'traveliria'),\n 'slug' => 'primary',\n 'color' => '#333'\n ),\n array(\n 'name' => __('Secondary', 'traveliria'),\n 'slug' => 'secondary',\n 'color' => '#000'\n ),\n array(\n 'name' => __('Dark Gray', 'traveliria'),\n 'slug' => 'dark-gray',\n 'color' => '#111',\n ),\n array(\n 'name' => __('Light Gray', 'traveliria'),\n 'slug' => 'light-gray',\n 'color' => '#767676',\n ),\n array(\n 'name' => __('White', 'traveliria'),\n 'slug' => 'white',\n 'color' => '#FFF',\n ),\n )\n );\n\n // Add support for responsive embedded content(Gutenberg).\n add_theme_support('responsive-embeds');\n }", "title": "" }, { "docid": "388dbb91db2cdf3dd94da53f8d28396a", "score": "0.7236728", "text": "function theme_setup() {\n\n\tadd_theme_support( 'automatic-feed-links' );\n\n\tadd_theme_support( 'title-tag' );\n\n\tadd_theme_support( 'post-thumbnails' );\n\n\tadd_theme_support( 'html5' );\n\n\tadd_theme_support( 'custom-logo' );\n\n\tregister_nav_menus( array(\n\t\t'primary' => esc_html__( 'Primary Menu', 'rendered' ),\n\t) );\n\n}", "title": "" }, { "docid": "73d110bb27ba09a2be053a6f90002a1f", "score": "0.7235623", "text": "function carly_ann_features() {\n\tadd_theme_support('title-tag');\n \tregister_nav_menu('header-menu',__( 'Header Menu' ));\n\tadd_theme_support('post-thumbnails');\n}", "title": "" }, { "docid": "9edc8d4a94c6cf6b272207c7dd881a96", "score": "0.72293776", "text": "public function add_theme_support() {\r\n\t\t\tadd_theme_support( 'lifterlms' );\r\n\t\t\tadd_theme_support( 'lifterlms-quizzes' );\r\n\t\t\tadd_theme_support( 'lifterlms-sidebars' );\r\n\t\t}", "title": "" }, { "docid": "a2f72061ad5ade5cc74b1a968f5a51a8", "score": "0.7225021", "text": "function theme_setup() {\n\t\tadd_theme_support( 'automatic-feed-links' );\n\n\t\t// This theme uses wp_nav_menu() in one location.\n\t\t$countries_front_pages = impulsa_get_front_pages();\n\t\t$menus = array(\n\t\t\t'main-nav' => '[Global] Main Menu',\n\t\t\t'footer-main-nav' => '[Global] Main Footer Menu',\n\t\t\t'footer-nav' => '[Global] Footer Menu',\n\t\t\t'alt-nav' => '[Global] Alt Menu',\n\t\t);\n\n\t\tforeach($countries_front_pages as $country_code => $page_id) {\n\t\t\tif(strpos($country_code, \"global_\") === false) {\n\t\t\t\t$menus = array_merge($menus, impulsa_get_country_nav_config($country_code));\n\t\t\t}\n\t\t}\n\t\tregister_nav_menus($menus);\n\n\t\t/*\n\t\t * Switch default core markup for search form, comment form, and comments\n\t\t * to output valid HTML5.\n\t\t */\n\t\tadd_theme_support( 'html5', array(\n\t\t\t'search-form',\n\t\t\t'comment-form',\n\t\t\t'comment-list',\n\t\t\t'gallery',\n\t\t\t'caption',\n\t\t) );\n\n\t\t/*\n\t\t * Adding Thumbnail basic support\n\t\t */\n\t\tadd_theme_support( 'post-thumbnails' );\n\n\t\t/**\n\t\t * Thumb sizes used in the theme.\n\t\t *\n\t\t * @var array\n\t\t */\n\t\tstatic $thumb_sizes = array(\n\t\t\t//'500x300' => array( 500, 300, true ),\n\t\t);\n\t\tforeach ( $thumb_sizes as $name => $size ) {\n\t\t\tadd_image_size( $name, $size[0], $size[1], $size[2] );\n\t\t}\n\n\t\t/*\n\t\t * Adding support for Widget edit icons in customizer\n\t\t */\n\t\t// add_theme_support( 'customize-selective-refresh-widgets' );\n\n\t\t/*\n\t\t * Enable support for Post Formats.\n\t\t * See http://codex.wordpress.org/Post_Formats\n\t\t*/\n\t\tadd_theme_support( 'post-formats', array(\n\t\t\t'aside',\n\t\t\t'link',\n\t\t));\n\n\t\tfunction rename_post_formats($translation, $text, $context, $domain) {\n\t\t\t$names = array(\n\t\t\t\t'Aside' => 'PDF',\n\t\t\t);\n\t\t\tif ($context == 'Post format') {\n\t\t\t\t$translation = str_replace(array_keys($names), array_values($names), $text);\n\t\t\t}\n\t\t\treturn $translation;\n\t\t}\n\t\tadd_filter('gettext_with_context', 'rename_post_formats', 10, 4);\n\n\t\t// Add excerpt in pages\n\t\tadd_post_type_support( 'page', 'excerpt' );\n\n\t\t// remove wp version\n\t\tremove_action( 'wp_head', 'wp_generator' );\n\n\n\t}", "title": "" }, { "docid": "89476357ff84469b83ae2d0087cb2d2b", "score": "0.721559", "text": "function theme_setup() {\n // Add default posts and comments RSS feed links to head.\n add_theme_support('automatic-feed-links');\n\n /*\n * Let WordPress manage the document title.\n * By adding theme support, we declare that this theme does not use a\n * hard-coded <title> tag in the document head, and expect WordPress to\n * provide it for us.\n */\n add_theme_support('title-tag');\n\n /*\n * Enable support for custom logo.\n */\n add_theme_support('custom-logo', array(\n 'height' => 240,\n 'width' => 240,\n 'flex-height' => true,\n ));\n\n /*\n * Enable support for Post Thumbnails on posts and pages.\n *\n * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails\n */\n add_theme_support('post-thumbnails');\n set_post_thumbnail_size(1200, 9999);\n\n /*\n * Switch default core markup for search form, comment form, and comments\n * to output valid HTML5.\n */\n add_theme_support('html5', array(\n 'search-form',\n 'comment-form',\n 'comment-list',\n 'gallery',\n 'caption',\n ));\n\n /*\n * Enable support for Post Formats.\n *\n * See: https://codex.wordpress.org/Post_Formats\n */\n add_theme_support('post-formats', array(\n 'aside',\n 'image',\n 'video',\n 'quote',\n 'link',\n 'gallery',\n 'status',\n 'audio',\n 'chat',\n ));\n\n // Indicate widget sidebars can use selective refresh in the Customizer.\n add_theme_support('customize-selective-refresh-widgets');\n }", "title": "" }, { "docid": "16f31f52f4bee667afe3c988857d1d6f", "score": "0.71750677", "text": "function mtheme_setup() {\n\t//Add Background Support\n\tadd_theme_support( 'custom-background' );\n\n\t// Adds RSS feed links to <head> for posts and comments.\n\tadd_theme_support( 'automatic-feed-links' );\n\t// Let WordPress manage the document title.\n\tadd_theme_support( 'title-tag' );\n\t// Register Menu\n\tregister_nav_menu( 'main_menu', 'Main Menu' );\n\tregister_nav_menu( 'mobile_menu', 'Mobile Menu' );\n\tif ( of_get_option('mtheme_woo_zoom') ) {\n\t\tadd_theme_support( 'wc-product-gallery-zoom' );\n\t}\n\tadd_theme_support( 'wc-product-gallery-slider' );\n\t/*-------------------------------------------------------------------------*/\n\t/* Internationalize for easy localizing */\n\t/*-------------------------------------------------------------------------*/\n\tload_theme_textdomain( 'mthemelocal', get_template_directory() . '/languages' );\n\t$locale = get_locale();\n\t$locale_file = get_template_directory() . \"/languages/$locale.php\";\n\tif ( is_readable( $locale_file ) ) {\n\t\trequire_once( $locale_file );\n\t}\n\n\t/*-------------------------------------------------------------------------*/\n\t/* Enable shortcodes to Text Widgets */\n\t/*-------------------------------------------------------------------------*/\n\tadd_filter('widget_text', 'do_shortcode');\n\t/*\n\t * This theme styles the visual editor to resemble the theme style and column width.\n\t */\n\tadd_editor_style( array( 'css/editor-style.css' ) );\n\t/*-------------------------------------------------------------------------*/\n\t/* Add Post Thumbnails */\n\t/*-------------------------------------------------------------------------*/\n\tadd_theme_support( 'post-thumbnails' );\n\t// This theme supports Post Formats.\n\tadd_theme_support( 'post-formats', array( 'aside', 'gallery', 'link', 'image', 'quote', 'video', 'audio') );\n\t\n\tset_post_thumbnail_size( 150, 150, true ); // Default thumbnail size\n\tadd_image_size('gridblock-square-big', 750, 750, true ); // Square\n\tadd_image_size('gridblock-tiny', 160, 160,true); // Sidebar Thumbnails\n\tadd_image_size('gridblock-events', 480, 296,true); // Events\n\tadd_image_size('gridblock-large', 600, 428,true); // Portfolio\n\tadd_image_size('gridblock-large-portrait', 600,750,true); // Portrait\n\tadd_image_size('gridblock-full', MTHEME_FULLPAGE_WIDTH, '',true); // Fullwidth\n\tadd_image_size('gridblock-full-medium', 800, '', true ); // Medium\n\n\tadd_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list' ) );\n\n\tif ( of_get_option('rightclick_disable') ) {\n\t\tadd_action( 'mtheme_contextmenu_msg', 'mtheme_contextmenu_msg_enable');\n\t}\n}", "title": "" }, { "docid": "413bd1f6ca76a0fdabd6e07bccf0862f", "score": "0.7169927", "text": "function flo_init_theme_support() {\n\tif (function_exists('flotheme_get_images_sizes')) {\n\t\tforeach (flotheme_get_images_sizes() as $post_type => $sizes) {\n\t\t\tforeach ($sizes as $config) {\n\t\t\t\tflo_add_image_size($post_type, $config);\n\t\t\t}\n\t\t}\n\t}\n}", "title": "" }, { "docid": "e19ab71bd27eb16ad2e61e350e831eae", "score": "0.7161327", "text": "function flo_after_setup_theme() {\n\tadd_editor_style();\n\n\t// add post thumbnails support\n\tadd_theme_support('post-thumbnails');\n\t\n\t// Set the theme's text domain using the unique identifier from above \n\tload_theme_textdomain('flotheme', THEME_PATH . '/lang');\t\n\t\n\t// add needed post formats to theme\n\tif (function_exists('flotheme_get_post_formats')) {\n\t\tadd_theme_support('post-formats', flotheme_get_post_formats());\n\t}\n}", "title": "" }, { "docid": "b558272b27e23b855bbaa21155a30618", "score": "0.7155716", "text": "function service_finder_theme_setup() {\n\tglobal $wpdb, $service_finder_Tables, $service_finder_ThemeParams, $current_template;\n\n\t$service_finder_ThemeParams = array(\n\t\t'themeImgUrl' => get_template_directory_uri().'/inc/images',\n\t\t'homeUrl' => home_url('/'),\n\t\t'role' => array(\n\t\t\t\t\t\t'provider' => esc_html('Provider'),\n\t\t\t\t\t\t'customer' => esc_html('Customer'),\n\t\t\t\t\t),\n\t);\n\t\n\t$current_template = basename(get_page_template());\n\t\n\tadd_theme_support( 'custom-header' );\n\t\n\tadd_theme_support( 'custom-background' );\n\t\n\tadd_theme_support( 'automatic-feed-links' );\n\n\tadd_theme_support( 'title-tag' );\n\t\n\tadd_theme_support( 'post-formats', array('aside','image','video','quote','link','gallery','status','audio','chat') );\n\n\tadd_theme_support( 'post-thumbnails' );\n\n\tadd_theme_support( 'menus' );\n\t\n\tadd_editor_style( array( 'inc/css/custom-editor-style.css' ) );\n\t\n\t//Size for single blog page and standard blog page\n\tadd_image_size( 'service_finder-blog-thumbimage', 850, 400, true ); \n\t\n\t//Size for single blog page, 2 coloum blog page\n\tadd_image_size( 'service_finder-blog-2-coloum', 600, 450, true ); \n\t\n\t//Size for single blog page, 3 coloum blog page\n\tadd_image_size( 'service_finder-blog-3-coloum', 600, 450, true ); \n\t\n\t//Size for single blog page, left sidebar blog page\n\tadd_image_size( 'service_finder-blog-left-sidebar', 600, 450, true ); \n\t\n\t//Size for single blog page, right sidebar blog page\n\tadd_image_size( 'service_finder-blog-right-sidebar', 600, 450, true ); \n\t\n\t//Size for single blog page, no sidebar blog page\n\tadd_image_size( 'service_finder-blog-no-sidebar', 600, 450, true ); \n\t\n\t//Size for latest blog on home page\n\tadd_image_size( 'service_finder-blog-home-page', 554, 261, true ); \n\t\n\tupdate_option( 'default_comment_status', 'open' );\n\t\n\tregister_nav_menus( array(\n\t\t'primary' => esc_html__('Primary Menu', 'service-finder' ),\n\t) );\n\t\n\t// Add multilanguage support\n\t\n\tload_theme_textdomain( 'service-finder', get_template_directory() . '/languages' );\n\t\n\t/*Start Integrating Redux Framework*/\n\tif ( !class_exists( 'ReduxFramework' ) && class_exists( 'ReduxFrameworkPlugin' ) && file_exists( WP_PLUGIN_DIR . '/redux-framework/ReduxCore/framework.php' ) ) {\n\t\trequire_once( WP_PLUGIN_DIR . '/redux-framework/ReduxCore/framework.php' );\n\t}\n\t\n\tif ( !isset( $redux_demo ) && class_exists( 'ReduxFrameworkPlugin' ) && file_exists( get_template_directory() . '/lib/options.php' ) ) {\n\t\tload_theme_textdomain( 'service-finder', WP_PLUGIN_DIR . '/redux-framework/ReduxCore/languages' );\n\t\trequire_once( get_template_directory() . '/lib/options.php' );\n\t}\n\t/*End Integrating Redux Framework*/\t\n\n\t\n\t// Check if the menu exists\n\t$menu_exists_first = wp_get_nav_menu_object( 'Primary Menu' );\n\n\t// If it doesn't exist, let's create it.\n\tif( !$menu_exists_first){\n\t\t$menu_id = wp_create_nav_menu('Primary Menu');\n\t\n\t\t// Set up default menu items\n\t\twp_update_nav_menu_item($menu_id, 0, array(\n\t\t\t'menu-item-title' => esc_html__('Home','service-finder'),\n\t\t\t'menu-item-classes' => 'home',\n\t\t\t'menu-item-url' => home_url( '/' ), \n\t\t\t'menu-item-status' => 'publish'));\n\t\n\t\twp_update_nav_menu_item($menu_id, 0, array(\n\t\t\t'menu-item-title' => esc_html__('Sample Page','service-finder'),\n\t\t\t'menu-item-url' => home_url( '/sample-page/' ), \n\t\t\t'menu-item-status' => 'publish'));\n\t\t\t\n\t}\n\t\n\tif (!isset($content_width)) { $content_width = 1170; }\n\t\n\t/*Enable woocommerce support*/\n\tadd_theme_support( 'woocommerce' );\n\t\n}", "title": "" }, { "docid": "53528e848d9168ad81e67ad774e59088", "score": "0.71540636", "text": "function sp_after_setup(){\n\tadd_theme_support('post-thumbnails');\n\n\t// Habilita nosso tema a ter controle sobre a tag <title>\n\tadd_theme_support('title-tag');\n\n\t// Habilitar suporte a menus no tema (nas versões atuais do wordpress, essa função já é carregada ao usarmos o register_nav_menu)\n\n\t//add_theme_support('menus');\n\n\t// Registrar o menu com uma localização específica\n\tregister_nav_menu('primary', __('Primary Menu', 'primeirotema'));\n\n\t//register_nav_menu('footer', 'Menu Rodapé', 'primeirotema');\n\n\t// Para visualizarmos os menus registrados, acessamos o painel administrativo, \n\t// navegando até Aparência/menus\n\n\t// Habilita nosso tema a receber logos personalizadas\n\tadd_theme_support('custom_logo');\n}", "title": "" }, { "docid": "c0ae5adc8ce8f5147ea273d333bd798f", "score": "0.7143238", "text": "function axiom_core_theme_setup() {\n\t\tadd_theme_support( 'automatic-feed-links' );\n\t\t\n\t\t// Enable support for Post Thumbnails\n\t\tadd_theme_support( 'post-thumbnails' );\n\t\t\n\t\t// Custom header setup\n\t\tadd_theme_support( 'custom-header', array('header-text'=>false));\n\t\t\n\t\t// Custom backgrounds setup\n\t\tadd_theme_support( 'custom-background');\n\t\t\n\t\t// Supported posts formats\n\t\tadd_theme_support( 'post-formats', array('gallery', 'video', 'audio', 'link', 'quote', 'image', 'status', 'aside', 'chat') ); \n \n \t\t// Autogenerate title tag\n\t\tadd_theme_support('title-tag');\n \t\t\n\t\t// Add user menu\n\t\tadd_theme_support('nav-menus');\n\t\t\n\t\t// WooCommerce Support\n\t\tadd_theme_support( 'woocommerce' );\n\t\t\n\t\t// Editor custom stylesheet - for user\n\t\tadd_editor_style(axiom_get_file_url('css/editor-style.css'));\n\t\t\n\t\t// Make theme available for translation\n\t\t// Translations can be filed in the /languages/ directory\n\t\tload_theme_textdomain( 'axiom', axiom_get_folder_dir('languages') );\n\n\n\t\t/* Front and Admin actions and filters:\n\t\t------------------------------------------------------------------------ */\n\n\t\tif ( !is_admin() ) {\n\t\t\t\n\t\t\t/* Front actions and filters:\n\t\t\t------------------------------------------------------------------------ */\n\n\t\t\t// Get theme calendar (instead standard WP calendar) to support Events\n\t\t\tadd_filter( 'get_calendar',\t\t\t\t\t\t'axiom_get_calendar' );\n\t\n\t\t\t// Filters wp_title to print a neat <title> tag based on what is being viewed\n\t\t\tif (floatval(get_bloginfo('version')) < \"4.1\") {\n\t\t\t\tadd_filter('wp_title',\t\t\t\t\t\t'axiom_wp_title', 10, 2);\n\t\t\t}\n\n\t\t\t// Add main menu classes\n\t\t\t//add_filter('wp_nav_menu_objects', \t\t\t'axiom_add_mainmenu_classes', 10, 2);\n\t\n\t\t\t// Prepare logo text\n\t\t\tadd_filter('axiom_filter_prepare_logo_text',\t'axiom_prepare_logo_text', 10, 1);\n\t\n\t\t\t// Add class \"widget_number_#' for each widget\n\t\t\tadd_filter('dynamic_sidebar_params', \t\t\t'axiom_add_widget_number', 10, 1);\n\n\t\t\t// Frontend editor: Save post data\n\t\t\tadd_action('wp_ajax_frontend_editor_save',\t\t'axiom_callback_frontend_editor_save');\n\t\t\tadd_action('wp_ajax_nopriv_frontend_editor_save', 'axiom_callback_frontend_editor_save');\n\n\t\t\t// Frontend editor: Delete post\n\t\t\tadd_action('wp_ajax_frontend_editor_delete', \t'axiom_callback_frontend_editor_delete');\n\t\t\tadd_action('wp_ajax_nopriv_frontend_editor_delete', 'axiom_callback_frontend_editor_delete');\n\t\n\t\t\t// Enqueue scripts and styles\n\t\t\tadd_action('wp_enqueue_scripts', \t\t\t\t'axiom_core_frontend_scripts');\n\t\t\tadd_action('wp_footer',\t\t \t\t\t\t\t'axiom_core_frontend_scripts_inline');\n\t\t\tadd_action('axiom_action_add_scripts_inline','axiom_core_add_scripts_inline');\n\n\t\t\t// Prepare theme core global variables\n\t\t\tadd_action('axiom_action_prepare_globals',\t'axiom_core_prepare_globals');\n\n\t\t}\n\n\t\t// Register theme specific nav menus\n\t\taxiom_register_theme_menus();\n\n\t\t// Register theme specific sidebars\n\t\taxiom_register_theme_sidebars();\n\t}", "title": "" }, { "docid": "b062da1461ae54e4a58fef9d9b3f8426", "score": "0.71417254", "text": "function custom_theme_setup(){\n\tadd_theme_support( 'post-thumbnails' );\n\t//enable automatic feed links\n\tadd_theme_support( 'automatic-feed-links' );\n\t\n\t//set up image resize option\n\t//update_option(\"medium_size_w\", 320);\n\t//update_option(\"medium_size_h\", 320);\n\t//add_image_size( 'medium', 0, 320, true ); //(cropped)\n\t\n\t//make sure to create folder languages folder in wp-content folder for placing PO/MO files\n\tload_theme_textdomain( SITE_TEXT_DOMAIN, ABSPATH.'/wp-content/languages' ); //load textdomain to locate po/mo\n\t\n\t//register menu location\n\tregister_nav_menus( array(\n\t\t'main-menu' => 'Main Menu',\n\t\t'footer-menu' => 'Footer Menu',\n\t\t'mobile-menu' => 'Mobile Menu',\n\t\t'global-menu' => 'Global Menu'\n\t) );\n\t\n\tif ( is_singular() ) wp_enqueue_script( \"comment-reply\" );\n\t\n\t//add custom header theme support\n\tadd_theme_support( 'custom-header' );\n\t\n\t//add custom background theme support\n\tadd_theme_support( 'custom-background' );\n\t\n\t//add title tag theme support\n\tadd_theme_support( \"title-tag\" );\n\t\n\t//add editor style to theme\n\tadd_editor_style();\n\t\n\t//content width?\n\tif ( ! isset( $content_width ) ) $content_width = 992;\n}", "title": "" }, { "docid": "ea0397ffca1949b11531c55dd6a103ee", "score": "0.7125713", "text": "function bitad_theme_support()\n{\n\t/**\n\t * Let WordPress manage the document title.\n\t * By adding theme support, we declare that this theme does not use a\n\t * hard-coded <title> tag in the document head, and expect WordPress to\n\t * provide it for us.\n\t */\n\tadd_theme_support('title-tag');\n\n\t/**\n\t * Switch default core markup for search form, comment form, and comments\n\t * to output valid HTML5.\n\t */\n\tadd_theme_support(\n\t\t'html5',\n\t\tarray(\n\t\t\t'search-form',\n\t\t\t'comment-form',\n\t\t\t'comment-list',\n\t\t\t'gallery',\n\t\t\t'caption',\n\t\t\t'script',\n\t\t\t'style',\n\t\t)\n\t);\n\n\t/** \n\t * Add theme support for selective refresh for widgets.\n\t * Available blue pen (edit on page) when in Customize Mode.\n\t */\n\tadd_theme_support('customize-selective-refresh-widgets');\n\n\t// Add support for responsive embeds.\n\tadd_theme_support('responsive-embeds');\n\n\t/**\n\t * Adds starter content to highlight the theme on fresh sites.\n\t * This is done conditionally to avoid loading the starter content on every\n\t * page load, as it is a one-off operation only needed once in the customizer.\n\t */\n\tif (is_customize_preview()) {\n\t\trequire get_template_directory() . '/include/starter-content.php';\n\t\tadd_theme_support('starter-content', bitad_get_starter_content());\n\t}\n\n\t/**\n\t * Add support for core custom logo.\n\t * @link https://codex.wordpress.org/Theme_Logo\n\t */\n\tadd_theme_support(\n\t\t'custom-logo',\n\t\tarray(\n\t\t\t'height' => 43,\n\t\t\t'width' => 109,\n\t\t\t'flex-width' => false,\n\t\t\t'flex-height' => false,\n\t\t)\n\t);\n}", "title": "" }, { "docid": "733bec0bfb8b31ed0e7713bb0c61504c", "score": "0.7097459", "text": "function kor622017_setup() {\r\n\t/*\r\n\t * Let WordPress manage the document title.\r\n\t * By adding theme support, we declare that this theme does not use a\r\n\t * hard-coded <title> tag in the document head, and expect WordPress to\r\n\t * provide it for us.\r\n\t */\r\n\tadd_theme_support( 'title-tag' );\r\n\t/*\r\n\t * Enable support for Post Thumbnails on posts and pages.\r\n\t *\r\n\t * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/\r\n\t */\r\n\tadd_theme_support( 'post-thumbnails' );\r\n\t// This theme uses wp_nav_menu() in ... location.\r\n\tregister_nav_menus( array(\r\n\t\t'header-menu' => 'Меню в шапке',\r\n\t\t'sidebar-menu' => 'Меню в боковой колонке'\r\n\t) );\r\n\t// Set up the WordPress core custom background feature.\r\n\tadd_theme_support( 'custom-background', apply_filters( 'kor622017_custom_background_args', array(\r\n\t\t'default-color' => 'ffffff',\r\n\t\t'default-image' => '',\r\n\t) ) );\r\n}", "title": "" }, { "docid": "b5fa7a02cf0418f60f62087b648299b2", "score": "0.7077907", "text": "function theme_setup() {\n\t\t//load_theme_textdomain( 'theme', get_template_directory() . '/lang' );\n\n\t\t//Define content width\n\t\tif(!isset($content_width)) $content_width = 940;\n\n\t\t//Style the visual editor with editor-style.css to match the theme style.\n\t\tadd_editor_style(get_template_directory_uri() . '/_static/styles/admin/editor-style.css');\n\n\t\t//Add post thumbnails\n\t\tadd_theme_support( 'post-thumbnails' );\n\n\t\t//Add default posts and comments RSS feed links to head\n\t\tadd_theme_support( 'automatic-feed-links' );\n\n\t\t$locale = get_locale();\n\t\t$locale_file = get_template_directory() . \"/lang/$locale.php\";\n\n\t\tif ( is_readable( $locale_file ) )\n\t\t\trequire_once( $locale_file );\n\n\t\t//Define custom thumbnails\n\t\tset_post_thumbnail_size( 151, 110, true );\n\t\tadd_image_size( 'thumb-gallery', 312, 250, true );\n\t}", "title": "" }, { "docid": "68331822e13548894e75a4143b6eda56", "score": "0.70730853", "text": "function custom_theme_setup () {\n\t/** Nav Menus - Add anymore here as needed */\n\tregister_nav_menus( array(\n\t\t'main-menu' => 'Primary',\n\t\t'footer' => 'Footer',\n\t) );\n\n\tadd_theme_support( 'title-tag' );\n\tadd_theme_support( 'post-thumbnails' );\n\tadd_theme_support( 'html5', array(\n\t\t'search-form',\n\t\t'comment-form',\n\t\t'comment-list',\n\t\t'gallery',\n\t\t'caption',\n\t) );\n}", "title": "" }, { "docid": "24985a3c7a89db1e0e0c17cf176c6eb9", "score": "0.7066535", "text": "function theme_setup() {\n load_theme_textdomain( 'bm', get_template_directory() . '/languages' );\n\n // Add RSS feed links to <head> for posts and comments.\n add_theme_support( 'automatic-feed-links' );\n\n /*\n * Let WordPress manage the document title.\n * By adding theme support, we declare that this theme does not use a\n * hard-coded <title> tag in the document head, and expect WordPress to\n * provide it for us.\n */\n add_theme_support( 'title-tag' );\n\n /*\n * Enable support for Post Thumbnails on posts and pages.\n *\n * See: https://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails\n */\n add_theme_support( 'post-thumbnails' );\n set_post_thumbnail_size( 825, 510, true );\n add_image_size( 'featured-post', 550, 365 );\n add_image_size( 'post-main-image', 1080, 700 );\n add_image_size( 'logo', 9999999999, 42 );\n add_image_size( 'hero', 1880, 999999999 );\n add_image_size( 'square_sm', 600, 600 );\n add_image_size( 'square', 960, 960 );\n add_image_size( 'square_lg', 1240, 1240 );\n add_image_size( 'article', 1240, 99999 );\n add_image_size( 'dashboard-thumb', 250, 250, true ); // Hard Crop Mode\n\n // This theme uses wp_nav_menu() in two locations.\n register_nav_menus( array(\n 'primary-nav' => __( 'Primary Navigation', 'bm' ),\n 'top-links' => __( 'Top Bar Links', 'bm' ), \n 'footer-links-one' => __( 'Footer Links One', 'bm'),\n 'footer-links-two' => __( 'Footer Links Two', 'bm'),\n 'footer-links-three' => __( 'Footer Links Three', 'bm'),\n ) );\n\n /*\n * Switch default core markup for search form, comment form, and comments\n * to output valid HTML5.\n */\n add_theme_support( 'html5', array(\n 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption'\n ) );\n\n /*\n * Enable support for Post Formats.\n *\n * See: https://codex.wordpress.org/Post_Formats\n */\n add_theme_support( 'post-formats', array(\n 'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat'\n ) );\n\n}", "title": "" }, { "docid": "f240635b8e0c28303f4a8995f9ffcbe3", "score": "0.7059059", "text": "function greenometry_theme_supports() {\n\t\n\tregister_nav_menus( array( \n\t\t'main-menu'\t=> __('Main'), \n\t\t'social' \t=> __('Social') \n\t\t) \n\t);\n\n\tadd_theme_support( 'html5', array(\n\t\t'comment-form',\n\t\t'search-form',\n\t\t'comment-list',\n\t\t'gallery',\n\t\t'caption'\n\t\t) \n\t);\n\n\tadd_theme_support( 'post-thumbnails' );\n\n\tadd_theme_support( 'title-tag' );\n\n\tadd_theme_support( 'custom-logo', array(\n\t\t'height'\t\t=> 100,\t\t//TODO add height\n\t\t'width'\t\t\t=> 400,\t\t//TODO add width\n\t\t'flex-width'\t=> true \t//TODO add flex options\n\t\t) \n\t);\n}", "title": "" }, { "docid": "22a7cb9cb051af1ed0c12a13458d3aaf", "score": "0.7058981", "text": "function docwhat_theme_setup() {\n add_theme_support( 'post-thumbnails' );\n set_post_thumbnail_size(250, 250);\n}", "title": "" }, { "docid": "64255b5af55f50e613d5fe4e8904125a", "score": "0.705569", "text": "function wpdocs_theme_setup() {\n add_image_size( 'thumbnail-featured', 1160, 320, true );\n }", "title": "" }, { "docid": "57b12df9f8d3eb3728592444f7910214", "score": "0.7053434", "text": "function university_features()\r\n{\r\n /*register_nav_menu('headerMenuLocation', 'Header Menu Location');\r\n register_nav_menu('footerLocationOne', 'Footer Location One');\r\n register_nav_menu('footerLocationTwo', 'Footer Location Two');*/\r\n add_theme_support('title-tag');\r\n add_theme_support('post-thumbnails'); //enable thumbnails -not everywhere\r\n add_image_size('professorLandscape', 400, 260, true);\r\n add_image_size('professorPortrait', 480, 650, true);\r\n add_image_size('pageBanner', 1500, 350, true);\r\n}", "title": "" }, { "docid": "d5e89e892dfef9ad92cd8292ace4bfb6", "score": "0.7034507", "text": "function govfresh_setup() {\n\n /*\n * Make theme available for translation.\n * Translations can be filed in the /languages/ directory.\n * If you're building a theme based on GovFresh, use a find and replace\n * to change 'govfresh' to the name of your theme in all the template files\n */\n load_theme_textdomain( 'govfreshwp', get_template_directory() . '/languages' );\n\n // Add default posts and comments RSS feed links to head.\n add_theme_support( 'automatic-feed-links' );\n\n /*\n * Enable support for Post Thumbnails on posts and pages.\n *\n * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails\n */\n add_theme_support( 'post-thumbnails' );\n add_image_size( 'thumb', 100, 100, true );\n\n // This theme uses wp_nav_menu() in two locations.\n register_nav_menus( array(\n \t\t'primary' => __( 'Primary navigation', 'govfreshwp' ),\n 'quick-links' => __( 'Quick Links', 'govfreshwp' ),\n ) );\n\n // Enable support for Post Formats.\n //add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) );\n}", "title": "" }, { "docid": "1ab8fee1d4d9c9a7edf8f45fcbb7b37c", "score": "0.7027564", "text": "function qsmt_setup()\n {\n// add_theme_support( 'custom-logo', array(\n// 'height' => 50,\n// 'width' => 50,\n// 'flex-height' => true,\n// ) );\n\n\n add_theme_support('post-thumbnails');\n set_post_thumbnail_size(1200, 9999);\n\n // This theme uses wp_nav_menu() in two locations.\n register_nav_menus(array(\n 'primary' => __('Primary Menu', 'qsmt'),\n ));\n\n /* Customizer additions. */\n require get_template_directory() . '/inc/customizer.php';\n\n\n }", "title": "" }, { "docid": "afde2c267c3b9ae7e496710cd1d22748", "score": "0.70272285", "text": "function mts_after_setup_theme() {\n if ( ! defined( 'MTS_THEME_WHITE_LABEL' ) ) {\n define( 'MTS_THEME_WHITE_LABEL', false );\n }\n\n add_theme_support( 'title-tag' );\n add_theme_support( 'automatic-feed-links' );\n \n load_theme_textdomain( 'best', get_template_directory().'/lang' );\n\n add_theme_support( 'post-thumbnails' );\n\n add_image_size( 'best-featured', 390, 250, true ); //featured\n add_image_size( 'best-featuredfull', 804, 350, true ); //featured full width\n add_image_size( 'best-widgetfull', 300, 215, true ); //sidebar full width\n add_image_size( 'best-widgetthumb', 115, 115, true ); //ajax search\n\n add_action( 'init', 'best_wp_review_thumb_size', 11 );\n function best_wp_review_thumb_size() {\n add_image_size( 'wp_review_large', 300, 215, true ); \n add_image_size( 'wp_review_small', 115, 115, true );\n }\n\n register_nav_menus( array(\n 'secondary-menu' => __('Navigation', 'best'),\n 'mobile' => __( 'Mobile', 'best' )\n ) );\n\n if ( mts_is_wc_active() ) {\n add_theme_support( 'woocommerce' );\n }\n}", "title": "" }, { "docid": "d8a7116b62c7e15d85e911f9a81bdb26", "score": "0.7016378", "text": "public static function theme_support() {\n\t\t\tadd_theme_support( 'lifterlms-sidebars' );\n\t\t}", "title": "" }, { "docid": "a90702731d768d9088334bda83873411", "score": "0.7014748", "text": "function di_business_woo_features_support() {\n\tif( get_theme_mod( 'support_gallery_zoom', '1' ) == 1 ) {\n\t\tadd_theme_support( 'wc-product-gallery-zoom' );\n\t}\n\n\tif( get_theme_mod( 'support_gallery_lightbox', '1' ) == 1 ) {\n\t\tadd_theme_support( 'wc-product-gallery-lightbox' );\n\t}\n\n\tif( get_theme_mod( 'support_gallery_slider', '1' ) == 1 ) {\n\t\tadd_theme_support( 'wc-product-gallery-slider' );\n\t}\n}", "title": "" }, { "docid": "6e46e8f47db057f329acda966b4ba195", "score": "0.70139647", "text": "function theme_setup() {\n\t// Let WordPress manage the document title.\n\tadd_theme_support( 'title-tag' );\n\n\t// Register our desired menu sections\n\tregister_nav_menus( array(\n\t\t'main_menu' => 'Main Menu',\n\t\t'secondary_menu' => 'Secondary Main Menu',\n\t\t'sticky_side_menu_home' => 'Sticky Side Menu - HOME',\n\t\t'sticky_side_menu_dra' => 'Sticky Side Menu - WHY DRA',\n\t\t'sticky_side_menu_about' => 'Sticky Side Menu - ABOUT',\n\t\t'sticky_side_menu_site_selection' => 'Sticky Side Menu - SITE SELECTION',\n\t\t'sticky_side_menu_industries' => 'Sticky Side Menu - INDUSTRIES',\n\t\t'footer_menu_1' => 'Footer Menu 1',\n\t\t'footer_menu_2' => 'Footer Menu 2',\n\t\t'footer_social' => 'Footer Social'\n\t));\n\n\t// Add custom image resizes\n\tadd_image_size('aero-news-excerpt', 1000, 322, true); // roughly retina (620x200)\n\n\t// Switch default core markup to use HTML5\n\tadd_theme_support( 'html5', array(\n\t\t'search-form'\n\t));\n}", "title": "" }, { "docid": "ab03b4b16d61ac0f121e80b03eae7477", "score": "0.7008978", "text": "function theme_setup() {\n\t// add_theme_support( 'automatic-feed-links' );\n\t// add_theme_support( 'title-tag' );\n\t// add_theme_support( 'post-thumbnails' );\n\t// add_theme_support(\n\t// \t'html5', array(\n\t// \t\t'search-form',\n\t// \t\t'gallery'\n\t// \t)\n\t// );\n\n\t// // This theme uses wp_nav_menu() in three locations.\n\t// register_nav_menus(\n\t// \tarray(\n\t// \t\t'primary' => esc_html__( 'Primary Menu', 'chewbacca' ),\n\t// \t)\n\t// );\n}", "title": "" }, { "docid": "008f85e12df2f14f63e18a7d7a0d176a", "score": "0.7002926", "text": "public static function theme_setup() \n\t{\n\t\t// Register nav menus\n\t\tregister_nav_menus(\n\t\t\tarray(\n\t\t\t\t\"main_menu\" => esc_html__( \"Main\" )\n\t\t\t)\n\t\t);\n\n\t\t// Enable support for site logo\n\t\tadd_theme_support(\n\t\t\t\"custom-logo\",\n\t\t\tapply_filters(\n\t\t\t\t\"custom_logo_args\",\n\t\t\t\tarray(\n\t\t\t\t\t// \"height\" => 90,\n\t\t\t\t\t// \"width\" => 209,\n\t\t\t\t\t\"flex-height\" => true,\n\t\t\t\t\t\"flex-width\" => true,\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\n\t\tadd_filter('nav_menu_css_class', function($classes, $item, $args) {\n\t\t\tif(isset($args->li_class)) {\n\t\t\t\t$classes[] = $args->li_class;\n\t\t\t}\n\t\t\treturn $classes;\n\t\t}, 1, 3);\n\n\t\t// Enable support for Post Formats.\n\t\tadd_theme_support( 'post-formats', array( 'video', 'gallery', 'audio', 'quote', 'link' ) );\n\n // Let WordPress handle Title Tag in all pages\n add_theme_support( \"title-tag\");\n\n\t\t// Enable support for Post Thumbnails on posts and pages.\n\t\tadd_theme_support( 'post-thumbnails' );\n\t\t\n\t\t// Enable support for excerpt text on posts and pages.\n add_post_type_support( 'page', 'excerpt' );\n\n\t\t// Switch default core markup to output valid HTML5.\n\t\tadd_theme_support(\n\t\t\t'html5',\n\t\t\tarray(\n\t\t\t\t'comment-form',\n\t\t\t\t'comment-list',\n\t\t\t\t'gallery',\n\t\t\t\t'caption',\n\t\t\t\t'widgets',\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "55f3bb76078b429557b13bc77a2e865c", "score": "0.7001588", "text": "function genesis_sample_theme_support() {\n\n\t$theme_supports = genesis_get_config( 'theme-supports' );\n\n\tforeach ( $theme_supports as $feature => $args ) {\n\t\tadd_theme_support( $feature, $args );\n\t}\n\n}", "title": "" }, { "docid": "238e4e325023d5f6dc0c311814c31fdf", "score": "0.69948524", "text": "function boolean_setup() {\n\n register_nav_menus(array(\n 'header' => 'header'\n ));\n\n// aggiungo le immagini thumbnails nel back office\n add_theme_support('post-thumbnails');\n }", "title": "" }, { "docid": "97dd311102c22e185fe71f0fa1c3ccbb", "score": "0.6993179", "text": "function makechild_theme_support() {\n\n\t// Add WP Thumbnail Support\n\tadd_theme_support( 'post-thumbnails' );\n\tset_post_thumbnail_size( 825, 510, true );\n add_image_size( 'hero', 1800, 450, true ); // hard crop mode\n add_image_size( 'special-grid-image', 480, 640, true ); // hard crop mode\n add_image_size( 'square-image', 760, 760, true ); // hard crop mode\n add_image_size( 'page-image', 1024, 768, true ); // hard crop mode\n add_image_size( 'third-page-image', 760, 480, true ); // hard crop mode\n add_image_size( 'tiny-thumb', 80, 80, true ); // hard crop mode\n\t\n\t// Default thumbnail size\n\tset_post_thumbnail_size(125, 125, true);\n\n\tadd_filter( 'image_size_names_choose', 'my_custom_sizes' );\n function my_custom_sizes( $sizes ) {\n return array_merge( $sizes, array(\n 'hero' => ( 'Hero' ),\n 'special-grid-image' => ( 'Specal Grid Image' ),\n 'square-image' => ( 'Square Image' ),\n 'page-image' => ( 'Page Image' ),\n 'third-page-image' => ( 'Third Page Image' ),\n 'tiny-thumb' => ( 'Tiny Thumb' ),\n // 'page-featured-image' => ( 'Page Featured Image' ),\n\n ) );\n\t}\n\n\t// Add RSS Support\n\tadd_theme_support( 'automatic-feed-links' );\n\t\n\t// Add Support for WP Controlled Title Tag\n\tadd_theme_support( 'title-tag' );\n\t\n\t// Add HTML5 Support\n\tadd_theme_support( 'html5', \n\t array( \n\t \t'comment-list', \n\t \t'comment-form', \n\t \t'search-form', \n\t ) \n\t);\n\t\n\t// Adding post format support\n\t/* add_theme_support( 'post-formats',\n\t\tarray(\n\t\t\t'aside', // title less blurb\n\t\t\t'gallery', // gallery of images\n\t\t\t'link', // quick link to other site\n\t\t\t'image', // an image\n\t\t\t'quote', // a quick quote\n\t\t\t'status', // a Facebook like status update\n\t\t\t'video', // video\n\t\t\t'audio', // audio\n\t\t\t'chat' // chat transcript\n\t\t)\n\t); */\t\n\t\n\n// acf options page\n// \tif( function_exists('acf_add_options_page') ) {\n\t\n// \t\tacf_add_options_page();\n\t\t\n// \t\tacf_add_options_sub_page('General');\n// \t\tacf_add_options_sub_page('Sidebar');\n// \t\tacf_add_options_sub_page('Footer');\n\t\n// }\n\n\n\n}", "title": "" }, { "docid": "6787be0690f8276c5fc235ee3cbe961a", "score": "0.6990797", "text": "function gigx_setup() {\n # excerpt for pages\n add_post_type_support( 'page', 'excerpt' );\n \n \t// This theme styles the visual editor with editor-style.css to match the theme style.\n \tadd_editor_style();\n \n \t// This theme uses post thumbnails\n \tadd_theme_support( 'post-thumbnails' );\n \t\n \t// add specific post thumbnail size\n \tadd_image_size( 'gigx-nav-thumbnail', 100, 100, true );\n \n # wp3 menus\n \t// This theme uses wp_nav_menu()\n \tadd_theme_support( 'nav-menus' );\n register_nav_menu('above-header', 'Navigation Menu above header');\n register_nav_menu('below-header', 'Navigation Menu below header');\n register_nav_menu('above-posts', 'Navigation Menu above posts');\n function header_menu() {\n # if no menu is selected in the backend, output nothing\n \t//echo '<div class=\"header-menu\"><ul><li><a href=\"'.get_bloginfo('url').'\">Home</a></li>';\n \t//wp_list_categories('title_li=&depth=1&number=5');\n \t//echo '</ul></div>';\n }\n \n \t// Add default posts and comments RSS feed links to head\n \tadd_theme_support( 'automatic-feed-links' );\n \n \t// This theme allows users to set a custom background\n \tadd_custom_background();\n \n \t// Your changeable header business starts here\n \tdefine( 'HEADER_TEXTCOLOR', '' );\n \t// No CSS, just IMG call. The %s is a placeholder for the theme template directory URI.\n \tdefine( 'HEADER_IMAGE', apply_filters( 'gigx_header_image', '%s/images/headers/default.png' ) );\n \n \t// The height and width of your custom header. You can hook into the theme's own filters to change these values.\n \t// Add a filter to gigx_header_image_width and gigx_header_image_height to change these values.\n \tdefine( 'HEADER_IMAGE_WIDTH', apply_filters( 'gigx_header_image_width', 1000 ) );\n \tdefine( 'HEADER_IMAGE_HEIGHT', apply_filters( 'gigx_header_image_height', 120 ) );\n \n \t// We'll be using post thumbnails for custom header images on posts and pages.\n \t// We want them to be 940 pixels wide by 120 pixels tall (larger images will be auto-cropped to fit).\n \tset_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true );\n \n \t// Don't support text inside the header image.\n \tdefine( 'NO_HEADER_TEXT', true );\n \n \t// Add a way for the custom header to be styled in the admin panel that controls\n \t// custom headers. See gigx_admin_header_style(), below.\n \tadd_custom_image_header( '', 'gigx_admin_header_style' );\n \n \t// ... and thus ends the changeable header business.\n \n \t// Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI.\n /*\n \tregister_default_headers( array (\n \t\t'sunset' => array (\n \t\t\t'url' => '%s/images/headers/sunset.jpg',\n \t\t\t'thumbnail_url' => '%s/images/headers/sunset-thumbnail.jpg',\n \t\t\t'description' => __( 'Sunset', 'gigx' )\n \t\t)\n \t) );\n */\t\n }", "title": "" }, { "docid": "32794653859693d882b834972e4fd04d", "score": "0.6987781", "text": "function university_features(){\n\tadd_theme_support('title-tag');\n}", "title": "" }, { "docid": "744315b825c893332bc202a2e1b63c9a", "score": "0.6975717", "text": "function theme_setup_function() {\n\t\tload_theme_textdomain( 'scope' );\n\n\t\t// Let WordPress manage the document title.\n\t\tadd_theme_support( 'title-tag' );\n\n\t\t// Enable support for Post Thumbnails on posts and pages.\n\t\tadd_theme_support( 'post-thumbnails' );\n\n\t\t// Set post thumbnail sizes\n\t\tset_post_thumbnail_size( 150, 150, true );\n\n\t\t// Add custom thumbnail sizes\n\t\tadd_image_size( 'admin', 50, 50 );\n\t\tadd_image_size( 'full', 9999, 9999 );\n\t\tadd_image_size( 'thumb_315', 315, 335, true );\n\t\tadd_image_size( 'thumb_370', 370, 340, true );\n\t\tadd_image_size( 'thumb_740', 740, 680, true );\n\t\tadd_image_size( 'thumb_630', 630, 670, true );\n\t\tadd_image_size( 'thumb_400', 400, 9999 );\n\t\tadd_image_size( 'thumb_600', 600, 9999 );\n\t\tadd_image_size( 'thumb_660', 660, 9999 );\n\t\tadd_image_size( 'thumb_760', 760, 740, true );\n\t\tadd_image_size( 'thumb_1520', 1520, 1480, true );\n\t\tadd_image_size( 'thumb_800', 800, 9999 );\n\t\tadd_image_size( 'thumb_960', 960, 9999 );\n\t\tadd_image_size( 'thumb_1000', 1000, 9999 );\n\t\tadd_image_size( 'thumb_1200', 1200, 9999 );\n\t\tadd_image_size( 'thumb_1280', 1280, 9999 );\n\t\tadd_image_size( 'thumb_1600', 1600, 9999 );\n\t\tadd_image_size( 'thumb_1920', 1920, 9999 );\n\t\tadd_image_size( 'thumb_2560', 2560, 9999 );\n\n\t\t// Register wp_nav_menu() menus\n\t\tregister_nav_menus(\n\t\t\tarray(\n\t\t\t\t'main' => __( 'Main Navigation', 'scope' ),\n\t\t\t\t'footer' => __( 'Footer Menu', 'scope' ),\n\t\t\t)\n\t\t);\n\n\t\t// Fallback function for menus\n\t\tfunction fallbackmenu(){ ?> <div id=\"menu\">\n\t<ul>\n\t\t<li> <?php _e( 'Go to Admin > Appearance > Menus to create your menu.', 'scope' ); ?></li>\n\t</ul>\n</div>\n\t\t\t<?php\n\t\t}\n\n\t\t// Adding HTML5 support\n\t\tadd_theme_support(\n\t\t\t'html5',\n\t\t\tarray(\n\t\t\t\t'search-form',\n\t\t\t\t'comment-form',\n\t\t\t\t'comment-list',\n\t\t\t\t'gallery',\n\t\t\t\t'caption',\n\t\t\t)\n\t\t);\n\n\t\t// Add theme support for selective refresh for widgets.\n\t\tadd_theme_support( 'customize-selective-refresh-widgets' );\n\n\t\t// Align support for Gutenberg\n\t\tadd_theme_support( 'align-wide' );\n\n\t\t// Set JPEG quality to 100%\n\t\tadd_filter(\n\t\t\t'jpeg_quality',\n\t\t\tfunction() {\n\t\t\t\treturn 100;\n\t\t\t}\n\t\t);\n\n\t}", "title": "" }, { "docid": "1eb05195854968b65dc8b7a97866aeb1", "score": "0.69712377", "text": "public function theme_supports() {\n add_theme_support( 'menus' );\n }", "title": "" }, { "docid": "f54ad68a5e0597bf9c5a479d30c1d828", "score": "0.6968551", "text": "function crt_remove_featured_images() {\n\tremove_theme_support( 'post-thumbnails' );\n\n\t// Re-enable support for just portfolio items\n\tadd_theme_support( 'post-thumbnails', array( 'portfolio' ) );\n\n}", "title": "" }, { "docid": "4fdbdb4e9bcaf90e89dcf28bfab07ba1", "score": "0.6964817", "text": "public function theme_supports()\n {\n add_theme_support('automatic-feed-links');\n\n /*\n * Let WordPress manage the document title.\n * By adding theme support, we declare that this theme does not use a\n * hard-coded <title> tag in the document head, and expect WordPress to\n * provide it for us.\n */\n add_theme_support('title-tag');\n\n /*\n * Enable support for Post Thumbnails on posts and pages.\n *\n * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/\n */\n add_theme_support('post-thumbnails');\n\n /*\n * Switch default core markup for search form, comment form, and comments\n * to output valid HTML5.\n */\n add_theme_support(\n 'html5', array(\n 'comment-form',\n 'comment-list',\n 'gallery',\n 'caption',\n )\n );\n\n /*\n * Enable support for Post Formats.\n *\n * See: https://codex.wordpress.org/Post_Formats\n */\n add_theme_support(\n 'post-formats', array(\n 'aside',\n 'image',\n 'video',\n 'quote',\n 'link',\n 'gallery',\n 'audio',\n )\n );\n\n add_theme_support('menus');\n register_nav_menus([\n 'header_menu' => 'Меню в шапке',\n 'footer_menu' => 'Меню в подвале',\n ]);\n\n add_theme_support('widgets');\n register_sidebar([\n 'name' => 'Сайдбар в футере',\n 'id' => 'sidebar_footer',\n 'before_widget' => '<div class=\"col-xl-3 col-lg-2 col-md-6 col-12\"><div class=\"inside\">',\n 'after_widget' => '</div></div>',\n 'before_title' => '<h4 class=\"title\">',\n 'after_title' => '</h4>',\n ]);\n }", "title": "" }, { "docid": "f20350bf19d98f68672f0c08cee78386", "score": "0.6964679", "text": "function theme_setups() {\r\n // load_theme_themestandard( TEXT_DOMAIN, get_template_directory() . '/languages' );\r\n\r\n // Add default posts and comments RSS feed links to head.\r\n add_theme_support( 'automatic-feed-links' );\r\n\r\n /*\r\n * Let WordPress manage the document title.\r\n * By adding theme support, we declare that this theme does not use a\r\n * hard-coded <title> tag in the document head, and expect WordPress to\r\n * provide it for us.\r\n */\r\n add_theme_support( 'title-tag' );\r\n\r\n /*\r\n * Enable support for Post Thumbnails on posts and pages.\r\n *\r\n * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/\r\n */\r\n add_theme_support( 'post-thumbnails' );\r\n // set_post_thumbnail_size( 1568, 9999 );\r\n\r\n // This theme uses wp_nav_menu() in two locations.\r\n register_nav_menus(\r\n array(\r\n 'primary' => __( 'Primary', 'themestandard' ),\r\n 'footer' => __( 'Footer Menu', 'themestandard' ),\r\n 'social' => __( 'Social Links Menu', 'themestandard' ),\r\n )\r\n );\r\n\r\n /*\r\n * Switch default core markup for search form, comment form, and comments\r\n * to output valid HTML5.\r\n */\r\n add_theme_support(\r\n 'html5',\r\n array(\r\n 'search-form',\r\n 'comment-form',\r\n 'comment-list',\r\n 'gallery',\r\n 'caption',\r\n )\r\n );\r\n\r\n /*\r\n * Enable support for Post Formats.\r\n *\r\n * See: https://codex.wordpress.org/Post_Formats\r\n */\r\n add_theme_support( 'post-formats', array(\r\n 'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat'\r\n ) );\r\n\r\n /**\r\n * Set content-width.\r\n * https://codex.wordpress.org/Content_Width\r\n */\r\n global $content_width;\r\n if ( ! isset( $content_width ) ) {\r\n $content_width = 600;\r\n }\r\n\r\n /**\r\n * Customize - Site Identity - Logo\r\n * Add support for core custom logo.\r\n *\r\n * @link https://codex.wordpress.org/Theme_Logo\r\n */\r\n add_theme_support(\r\n 'custom-logo',\r\n array(\r\n 'height' => 190,\r\n 'width' => 190,\r\n 'flex-width' => true,\r\n 'flex-height' => true,\r\n 'header-text' => array( 'site-title', 'site-description' ),\r\n 'unlink-homepage-logo' => true,\r\n )\r\n );\r\n\r\n /**\r\n * Customize - Header Image\r\n */\r\n $args = array(\r\n // 'default-image' => get_template_directory_uri() . '/images/default-image.jpg',\r\n 'default-image' => 'https://dummyimage.com/1140x250/f9f9f9/cccccc.jpg',\r\n 'default-text-color' => '212529',\r\n 'width' => 1140,\r\n 'height' => 250,\r\n 'flex-width' => true,\r\n 'flex-height' => true,\r\n );\r\n add_theme_support( 'custom-header', $args );\r\n\r\n $header_images = array(\r\n 'demo1' => array(\r\n 'url' => 'https://dummyimage.com/1140x250/f9f9f9/cccccc.jpg',\r\n 'thumbnail_url' => 'https://dummyimage.com/1140x250/f9f9f9/cccccc.jpg',\r\n 'description' => 'demo1',\r\n ),\r\n 'demo2' => array(\r\n 'url' => 'https://dummyimage.com/1140x250/f9f9f9/cccccc.jpg',\r\n 'thumbnail_url' => 'https://dummyimage.com/1140x250/f9f9f9/cccccc.jpg',\r\n 'description' => 'demo2',\r\n ),\r\n );\r\n register_default_headers( $header_images );\r\n\r\n /**\r\n * Customize - Background Image\r\n */\r\n $args = array(\r\n 'default-color' => 'ffffff',\r\n // 'default-image' => 'https://dummyimage.com/1000x250/f9f9f9/cccccc.jpg',\r\n );\r\n add_theme_support( 'custom-background', $args );\r\n\r\n /**\r\n * Theme Support - Default block styles\r\n * Add support for Block Styles. (wp-block-library-theme-css)\r\n * https://developer.wordpress.org/block-editor/developers/themes/theme-support/\r\n */\r\n // add_theme_support( 'wp-block-styles' );\r\n\r\n /**\r\n * Theme Support - Wide Alignment\r\n * Add support for full and wide align images.\r\n * https://developer.wordpress.org/block-editor/developers/themes/theme-support/\r\n */\r\n add_theme_support( 'align-wide' );\r\n\r\n /**\r\n * Theme Support - Block Color Palettes\r\n * Editor color palette.\r\n * https://developer.wordpress.org/block-editor/developers/themes/theme-support/\r\n */\r\n add_theme_support(\r\n 'editor-color-palette',\r\n array(\r\n array(\r\n 'name' => __( 'Primary', 'themestandard' ),\r\n 'slug' => 'primary',\r\n 'color' => get_theme_mod( 'primary_color_hue', 199 ),\r\n ),\r\n array(\r\n 'name' => __( 'Secondary', 'themestandard' ),\r\n 'slug' => 'secondary',\r\n 'color' => get_theme_mod( 'primary_color_hue', 199 ),\r\n ),\r\n array(\r\n 'name' => __( 'Dark Gray', 'themestandard' ),\r\n 'slug' => 'dark-gray',\r\n 'color' => '#111',\r\n ),\r\n array(\r\n 'name' => __( 'Light Gray', 'themestandard' ),\r\n 'slug' => 'light-gray',\r\n 'color' => '#767676',\r\n ),\r\n array(\r\n 'name' => __( 'White', 'themestandard' ),\r\n 'slug' => 'white',\r\n 'color' => '#FFF',\r\n ),\r\n )\r\n );\r\n\r\n /**\r\n * Theme Support - Block Gradient Presets\r\n * https://developer.wordpress.org/block-editor/developers/themes/theme-support/\r\n */\r\n add_theme_support(\r\n 'editor-gradient-presets',\r\n array(\r\n array(\r\n 'name' => __( 'Vivid cyan blue to vivid purple', 'themestandard' ),\r\n 'gradient' => 'linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)',\r\n 'slug' => 'vivid-cyan-blue-to-vivid-purple'\r\n ),\r\n array(\r\n 'name' => __( 'Vivid green cyan to vivid cyan blue', 'themestandard' ),\r\n 'gradient' => 'linear-gradient(135deg,rgba(0,208,132,1) 0%,rgba(6,147,227,1) 100%)',\r\n 'slug' => 'vivid-green-cyan-to-vivid-cyan-blue',\r\n ),\r\n array(\r\n 'name' => __( 'Light green cyan to vivid green cyan', 'themestandard' ),\r\n 'gradient' => 'linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)',\r\n 'slug' => 'light-green-cyan-to-vivid-green-cyan',\r\n ),\r\n array(\r\n 'name' => __( 'Luminous vivid amber to luminous vivid orange', 'themestandard' ),\r\n 'gradient' => 'linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)',\r\n 'slug' => 'luminous-vivid-amber-to-luminous-vivid-orange',\r\n ),\r\n array(\r\n 'name' => __( 'Luminous vivid orange to vivid red', 'themestandard' ),\r\n 'gradient' => 'linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)',\r\n 'slug' => 'luminous-vivid-orange-to-vivid-red',\r\n ),\r\n )\r\n );\r\n\r\n /**\r\n * Theme Support - Block Font Sizes\r\n * Add custom editor font sizes.\r\n * https://developer.wordpress.org/block-editor/developers/themes/theme-support/\r\n */\r\n add_theme_support(\r\n 'editor-font-sizes',\r\n array(\r\n array(\r\n 'name' => __( 'Small', 'themestandard' ),\r\n 'shortName' => __( 'S', 'themestandard' ),\r\n 'size' => 12,\r\n 'slug' => 'small',\r\n ),\r\n array(\r\n 'name' => __( 'Normal', 'themestandard' ),\r\n 'shortName' => __( 'M', 'themestandard' ),\r\n 'size' => 16,\r\n 'slug' => 'normal',\r\n ),\r\n array(\r\n 'name' => __( 'Large', 'themestandard' ),\r\n 'shortName' => __( 'L', 'themestandard' ),\r\n 'size' => 36,\r\n 'slug' => 'large',\r\n ),\r\n array(\r\n 'name' => __( 'Huge', 'themestandard' ),\r\n 'shortName' => __( 'XL', 'themestandard' ),\r\n 'size' => 50,\r\n 'slug' => 'huge',\r\n ),\r\n )\r\n );\r\n\r\n /**\r\n * Theme Support - Supporting custom line heights\r\n * https://developer.wordpress.org/block-editor/developers/themes/theme-support/\r\n */\r\n add_theme_support( 'custom-line-height' );\r\n\r\n /**\r\n * Theme Support - Editor styles\r\n * Add support for editor styles.\r\n * https://developer.wordpress.org/block-editor/developers/themes/theme-support/\r\n */\r\n add_theme_support( 'editor-styles' );\r\n\r\n // Theme Support - Editor styles - Dark backgrounds\r\n add_theme_support( 'dark-editor-style' );\r\n\r\n /**\r\n * Theme Support - Enqueuing the editor style\r\n * Enqueue editor styles.\r\n * https://developer.wordpress.org/block-editor/developers/themes/theme-support/\r\n */\r\n add_editor_style( 'style-editor.css' );\r\n\r\n /**\r\n * Theme Support - Responsive embedded content\r\n * Add support for responsive embedded content.\r\n * https://developer.wordpress.org/block-editor/developers/themes/theme-support/\r\n */\r\n add_theme_support( 'responsive-embeds' );\r\n\r\n /**\r\n * Theme Support - Spacing control\r\n * https://developer.wordpress.org/block-editor/developers/themes/theme-support/\r\n */\r\n add_theme_support('custom-spacing');\r\n\r\n /**\r\n * Add theme support for selective refresh for widgets.\r\n * https://developer.wordpress.org/reference/classes/wp_customize_widgets/get_selective_refreshable_widgets/\r\n */\r\n add_theme_support( 'customize-selective-refresh-widgets' );\r\n\r\n}", "title": "" }, { "docid": "202996b2ee1543d74cbe915f04fa6adc", "score": "0.696036", "text": "function theme_setup() {\n\t/*\n\t * Let WordPress manage the document title.\n\t * By adding theme support, we declare that this theme does not use a\n\t * hard-coded <title> tag in the document head, and expect WordPress to\n\t * provide it for us.\n\t */\n\tadd_theme_support( 'title-tag' );\n\n\t/*\n\t * Enable support for Post Thumbnails on posts and pages.\n\t *\n\t * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/\n\t */\n\tadd_theme_support( 'post-thumbnails' );\n\n\t// This theme uses wp_nav_menu() in one location.\n\tregister_nav_menus( array(\n\t\t'menu-1' => esc_html__( 'Primary', 'theme' ),\n\t) );\n\n\t/*\n\t * Switch default core markup for search form, comment form, and comments\n\t * to output valid HTML5.\n\t */\n\tadd_theme_support( 'html5', array(\n\t\t'search-form',\n\t\t'comment-form',\n\t\t'comment-list',\n\t\t'gallery',\n\t\t'caption',\n\t) );\n\n\t// Add theme support for selective refresh for widgets.\n\tadd_theme_support( 'customize-selective-refresh-widgets' );\n}", "title": "" }, { "docid": "2d3e3255b78314c7465d3e94b5a27af7", "score": "0.6960149", "text": "function ocm_theme_support() {\n\n // Add default posts and comments RSS feed links to head.\n add_theme_support( 'automatic-feed-links' );\n // remove logged in header bar\n add_filter( 'show_admin_bar', '__return_false' );\n // Custom background color.\n add_theme_support(\n 'custom-background',\n array(\n 'default-color' => 'f5efe0',\n )\n );\n\n // Set content-width.\n global $content_width;\n if ( ! isset( $content_width ) ) {\n $content_width = 580;\n }\n\n add_theme_support( 'post-thumbnails' );\n\n // Set post thumbnail size.\n set_post_thumbnail_size( 1200, 9999 );\n\n // Add custom image size used in Cover Template.\n add_image_size( 'ocm-fullscreen', 1980, 9999 );\n\n // Custom logo.\n $logo_width = 120;\n $logo_height = 90;\n\n add_theme_support(\n 'custom-logo',\n array(\n 'height' => $logo_height,\n 'width' => $logo_width,\n 'flex-height' => true,\n 'flex-width' => true,\n )\n );\n\n /*\n * Switch default core markup for search form, comment form, and comments\n * to output valid HTML5.\n */\n add_theme_support(\n 'html5',\n array(\n 'search-form',\n 'comment-form',\n 'comment-list',\n 'gallery',\n 'caption',\n 'script',\n 'style',\n )\n );\n}", "title": "" }, { "docid": "548e1383fad10b38d68943220577a595", "score": "0.69570005", "text": "function uncomp_setup(){\n\tadd_theme_support( 'title-tag' );\n \n /*\n\t * Enable support for Post Thumbnails on posts and pages.\n\t *\n\t * See: https://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails\n\t */\n\tadd_theme_support( 'post-thumbnails' );\n\tset_post_thumbnail_size( 825, 510, true );\n /*\n * Make theme available for translation.\n * Translations can be filed at WordPress.org. See: https://translate.wordpress.org/projects/wp-themes/twentyfifteen\n * If you're building a theme based on uncomplicated, use a find and replace\n * to change 'uncomplicated' to the name of your theme in all the template files\n */\n load_theme_textdomain( 'uncomplicated' );\n // Add default posts and comments RSS feed links to head.\n add_theme_support( 'automatic-feed-links' ); \n \n \n // This theme uses wp_nav_menu() in two locations.\n register_nav_menus( array(\n 'logged-in' => __(\"Logged-In Menu\", \"uncomp-login\"),\n 'logged-out' => __(\"Logged-Out Menu\", \"uncomp-logout\"),\n \n ));\n \n\tadd_theme_support( 'post-formats', array(\n\t\t'aside',\n\t\t'image',\n\t\t'video',\n\t\t'quote',\n\t\t'link',\n\t\t'gallery',\n\t\t'audio',\n\t\n\t) );\n\t\n\t// Indicate widget sidebars can use selective refresh in the Customizer.\n\tadd_theme_support( 'customize-selective-refresh-widgets' );\n\t\n}", "title": "" }, { "docid": "f18c286ae728b355c45b1ba00154277b", "score": "0.6952555", "text": "function grace_church_core_theme_setup() {\n\t\tadd_theme_support( 'automatic-feed-links' );\n\t\t\n\t\t// Enable support for Post Thumbnails\n\t\tadd_theme_support( 'post-thumbnails' );\n\t\t\n\t\t// Custom header setup\n\t\tadd_theme_support( 'custom-header', array('header-text'=>false));\n\t\t\n\t\t// Custom backgrounds setup\n\t\tadd_theme_support( 'custom-background');\n\t\t\n\t\t// Supported posts formats\n\t\tadd_theme_support( 'post-formats', array('gallery', 'video', 'audio', 'link', 'quote', 'image', 'status', 'aside', 'chat') ); \n \n \t\t// Autogenerate title tag\n\t\tadd_theme_support('title-tag');\n \t\t\n\t\t// Add user menu\n\t\tadd_theme_support('nav-menus');\n\t\t\n\t\t// WooCommerce Support\n\t\tadd_theme_support( 'woocommerce' );\n\t\t\n\t\t// Editor custom stylesheet - for user\n\t\tadd_editor_style(grace_church_get_file_url('css/editor-style.css'));\n\t\t\n\t\t// Make theme available for translation\n\t\t// Translations can be filed in the /languages/ directory\n\t\tload_theme_textdomain( 'grace-church', grace_church_get_folder_dir('languages') );\n\n\n\t\t/* Front and Admin actions and filters:\n\t\t------------------------------------------------------------------------ */\n\n\t\tif ( !is_admin() ) {\n\t\t\t\n\t\t\t/* Front actions and filters:\n\t\t\t------------------------------------------------------------------------ */\n\n\t\t\t// Get theme calendar (instead standard WP calendar) to support Events\n\t\t\tadd_filter( 'get_calendar',\t\t\t\t\t\t'grace_church_get_calendar' );\n\t\n\t\t\t// Filters wp_title to print a neat <title> tag based on what is being viewed\n\t\t\tif (floatval(get_bloginfo('version')) < \"4.1\") {\n\t\t\t\tadd_filter('wp_title',\t\t\t\t\t\t'grace_church_wp_title', 10, 2);\n\t\t\t}\n\n\t\t\t// Add main menu classes\n\t\t\t//add_filter('wp_nav_menu_objects', \t\t\t'grace_church_add_mainmenu_classes', 10, 2);\n\t\n\t\t\t// Prepare logo text\n\t\t\tadd_filter('grace_church_filter_prepare_logo_text',\t'grace_church_prepare_logo_text', 10, 1);\n\t\n\t\t\t// Add class \"widget_number_#' for each widget\n\t\t\tadd_filter('dynamic_sidebar_params', \t\t\t'grace_church_add_widget_number', 10, 1);\n\n\t\t\t// Frontend editor: Save post data\n\t\t\tadd_action('wp_ajax_frontend_editor_save',\t\t'grace_church_callback_frontend_editor_save');\n\t\t\tadd_action('wp_ajax_nopriv_frontend_editor_save', 'grace_church_callback_frontend_editor_save');\n\n\t\t\t// Frontend editor: Delete post\n\t\t\tadd_action('wp_ajax_frontend_editor_delete', \t'grace_church_callback_frontend_editor_delete');\n\t\t\tadd_action('wp_ajax_nopriv_frontend_editor_delete', 'grace_church_callback_frontend_editor_delete');\n\t\n\t\t\t// Enqueue scripts and styles\n\t\t\tadd_action('wp_enqueue_scripts', \t\t\t\t'grace_church_core_frontend_scripts');\n\t\t\tadd_action('wp_footer',\t\t \t\t\t\t\t'grace_church_core_frontend_scripts_inline');\n\t\t\tadd_action('grace_church_action_add_scripts_inline','grace_church_core_add_scripts_inline');\n\n\t\t\t// Prepare theme core global variables\n\t\t\tadd_action('grace_church_action_prepare_globals',\t'grace_church_core_prepare_globals');\n\n\t\t}\n\n\t\t// Register theme specific nav menus\n\t\tgrace_church_register_theme_menus();\n\n\t\t// Register theme specific sidebars\n\t\tgrace_church_register_theme_sidebars();\n\t}", "title": "" }, { "docid": "909c40ce1aa4700b75efb165cf8d0843", "score": "0.69503665", "text": "function theme_setup() {\n\tadd_theme_support( 'automatic-feed-links' );\n\tadd_theme_support( 'title-tag' );\n\tadd_theme_support( 'post-thumbnails' );\n\tadd_theme_support(\n\t\t'html5',\n\t\tarray(\n\t\t\t'search-form',\n\t\t\t'gallery',\n\t\t)\n\t);\n\n\t// This theme uses wp_nav_menu() in three locations.\n\tregister_nav_menus(\n\t\tarray(\n\t\t\t'primary' => esc_html__( 'Primary Menu', 'tenup' ),\n\t\t)\n\t);\n}", "title": "" }, { "docid": "18df7664966e25f7e8c327b89c2a1a94", "score": "0.6946057", "text": "function edgars_portfolio_setup() {\n\t\tadd_theme_support('title-tag');\n\n\t\t// Register nav menus\n\t\tregister_nav_menus(array(\n\t\t\t'primary-menu' => 'Primary Menu' \n\t\t));\n\n\t\t// Switch default core markup for search form, comment form, and comments to output valid HTML5\n\t\tadd_theme_support('html5', array(\n\t\t\t'search-form',\n\t\t\t'comment-form',\n\t\t\t'comment-list',\n\t\t\t'gallery',\n\t\t\t'caption',\n\t\t));\n\t}", "title": "" }, { "docid": "6922d4d93f6c8aef9e41c1086376e9b1", "score": "0.6939253", "text": "function samu_support() {\n\n\t\t// Add default posts and comments RSS feed links to head.\n\t\tadd_theme_support( 'automatic-feed-links' );\n\n\t\t// Add support for featured images.\n\t\tadd_theme_support( 'post-thumbnails' );\n\n\t\t// Add support for alignwide and alignfull classes in the block editor.\n\t\tadd_theme_support( 'align-wide' );\n\n\t\t// Add support for Block Styles.\n\t\tadd_theme_support( 'wp-block-styles' );\n\n\t\t// Add support for responsive embedded content.\n\t\tadd_theme_support( 'responsive-embeds' );\n\n\t\t// Add support for editor styles.\n\t\tadd_theme_support( 'editor-styles' );\n\n\t\t// Enqueue editor styles.\n\t\tadd_editor_style( 'style.css' );\n\n\t\t// Add support for custom units.\n\t\tadd_theme_support( 'custom-units' );\n\t}", "title": "" }, { "docid": "455ac391aa23f5a7fb9a23829622412f", "score": "0.69380337", "text": "function ghostwind_setup()\r\n {\r\n /**\r\n * Make theme available for translation.\r\n * Translations can be placed in the /languages/ directory.\r\n */\r\n load_theme_textdomain('ghostwind', get_template_directory() . '/languages');\r\n\r\n // Add default posts and comments RSS feed links to head.\r\n add_theme_support('automatic-feed-links');\r\n\r\n /*\r\n\t\t * Let WordPress manage the document title.\r\n\t\t * By adding theme support, we declare that this theme does not use a\r\n\t\t * hard-coded <title> tag in the document head, and expect WordPress to\r\n\t\t * provide it for us.\r\n\t\t */\r\n add_theme_support('title-tag');\r\n\r\n /*\r\n\t\t * Enable support for Post Thumbnails on posts and pages.\r\n\t\t *\r\n\t\t * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/\r\n\t\t */\r\n add_theme_support('post-thumbnails');\r\n // set_post_thumbnail_size( 1568, 9999 );\r\n\r\n /**\r\n * Enable support for the following post formats:\r\n * aside, gallery, quote, image, and video\r\n */\r\n add_theme_support('post-formats', array('aside', 'gallery', 'quote', 'image', 'video'));\r\n\r\n\r\n function register_my_menu()\r\n {\r\n register_nav_menu('header-menu', __('Header Menu'));\r\n }\r\n add_action('init', 'register_my_menu');\r\n\r\n\r\n function add_additional_class_on_li($classes, $item, $args)\r\n {\r\n if (isset($args->add_li_class)) {\r\n $classes[] = $args->add_li_class;\r\n }\r\n return $classes;\r\n }\r\n add_filter('nav_menu_css_class', 'add_additional_class_on_li', 1, 3);\r\n }", "title": "" }, { "docid": "3df145bba39cca477b50755ef4bd2605", "score": "0.692861", "text": "function dl_theme_setup() {\n\n\tadd_theme_support( 'title-tag' );\n\tadd_theme_support( 'post-thumbnails' );\n\tadd_theme_support( 'customize-selective-refresh-widgets' );\n\tadd_theme_support( 'automatic-feed-links' );\n\tadd_theme_support( 'customize-selective-refresh-widgets' );\n\t\n\t/* Gutenberg Support */\n\tadd_theme_support( 'wp-block-styles' );\n\tadd_theme_support( 'align-wide' );\n\tadd_theme_support( 'responsive-embeds' );\n\tadd_theme_support( 'editor-styles' );\n\tadd_theme_support( 'dark-editor-style' );\n\t// add_theme_support('disable-custom-font-sizes');\n\t// add_theme_support( 'disable-custom-colors' );\n\n\t/* Woocommerce */\n\tadd_theme_support( 'woocommerce' );\n\tadd_theme_support( 'wc-product-gallery-zoom' );\n\tadd_theme_support( 'wc-product-gallery-lightbox' );\n\tadd_theme_support( 'wc-product-gallery-slider' );\n\n\tadd_theme_support( \n\t\t'html5',\n\t\tarray(\n\t\t\t'search-form',\n\t\t\t'comment-form',\n\t\t\t'comment-list',\n\t\t\t'gallery',\n\t\t\t'caption',\n\t\t)\n\t);\n\n\tadd_theme_support(\n\t\t'custom-logo',\n\t\tarray(\n\t\t\t'size'\t=> 'custom_logo'\n\t\t)\n\t);\n\n\tadd_theme_support( 'editor-color-palette', array(\n\t\tarray(\n\t\t\t'name' => 'Desafio Green',\n\t\t\t'slug' => 'dl-green',\n\t\t\t'color' => '#61B94C',\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'White',\n\t\t\t'slug' => 'white',\n\t\t\t'color' => '#fff',\n\t\t)\n\t) );\n\n\tregister_nav_menus(\n\t\tarray(\n\t\t\t'header-menu'\t=> __( 'Header Menu' ),\n\t\t\t'footer-menu'\t=> __( 'Footer Menu' ),\n\t\t)\n\t);\n\n}", "title": "" }, { "docid": "cef5d62a68aa2374833396f0de361026", "score": "0.6928534", "text": "public function add_supports() {\n\t\t// Add default posts and comments RSS feed links to head.\n\t\tadd_theme_support( 'automatic-feed-links' );\n\n\t\t/**\n\t\t * Let WordPress manage the document title.\n\t\t * By adding theme support, we declare that this theme does not use a\n\t\t * hard-coded <title> tag in the document head, and expect WordPress to\n\t\t * provide it for us.\n\t\t */\n\t\tadd_theme_support( 'title-tag' );\n\n\t\t/**\n\t\t * Enable support for Post Thumbnails on posts and pages.\n\t\t *\n\t\t * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/\n\t\t */\n\t\tadd_theme_support( 'post-thumbnails' );\n\n\t\t/**\n\t\t * Switch default core markup for search form, comment form, and comments\n\t\t * to output valid HTML5.\n\t\t */\n\t\tadd_theme_support(\n\t\t\t'html5', [\n\t\t\t\t'search-form',\n\t\t\t\t'comment-form',\n\t\t\t\t'comment-list',\n\t\t\t\t'gallery',\n\t\t\t\t'caption',\n\t\t\t]\n\t\t);\n\n\t\t// add post format support.\n\t\t// add_theme_support( 'post-formats', array( 'video' ) );\n\n\t\t// register menu locations.\n\t\tregister_nav_menus(\n\t\t\t[\n\t\t\t\t'landing_page__bottom' => esc_html__( 'Landing page: bottom', 'asvz' ),\n\t\t\t\t'loggedin_page__top' => esc_html__( 'Logged-in page: top', 'asvz' ),\n\t\t\t\t'loggedin_page__side' => esc_html__( 'Logged-in page: side', 'asvz' ),\n\t\t\t]\n\t\t);\n\n\t\tadd_theme_support(\n\t\t\t'custom-logo', [\n\t\t\t\t'flex-height' => true,\n\t\t\t\t'flex-width' => true,\n\t\t\t]\n\t\t);\n\t}", "title": "" }, { "docid": "7e448808288d581af29f683fbc25b9a8", "score": "0.6927472", "text": "function red_starter_setup() {\n\t// Add default posts and comments RSS feed links to head.\n\tadd_theme_support( 'automatic-feed-links' );\n\n\t// Let WordPress manage the document title.\n\tadd_theme_support( 'title-tag' );\n\n\t// Enable support for Post Thumbnails on posts and pages.\n\tadd_theme_support( 'post-thumbnails' );\n\n\t// This theme uses wp_nav_menu() in one location.\n\tregister_nav_menus( array(\n\t\t'primary' => esc_html( 'Primary Menu' ),\n\t) );\n\n\t// Switch search form, comment form, and comments to output valid HTML5.\n\tadd_theme_support( 'html5', array(\n\t\t'search-form',\n\t\t'comment-form',\n\t\t'comment-list',\n\t\t'gallery',\n\t\t'caption',\n\t) );\n\n}", "title": "" }, { "docid": "cc4db0859bbb65e021f6e428d3851487", "score": "0.6915587", "text": "function dpm_supports() \n{\n add_theme_support('title-tag');\n add_theme_support('post-thumbnails');\n add_theme_support('menus');\n register_nav_menu('header', 'en tête du menu');\n register_nav_menu('header-mobile', 'en tête du menu mobile');\n}", "title": "" }, { "docid": "c89f66fa4963feca1d451c1e6e65b48d", "score": "0.69082886", "text": "function academica_features(){\n add_theme_support('title-tag');\n}", "title": "" }, { "docid": "9f8b1c86392246480461ee2d0dc41717", "score": "0.68972987", "text": "function dev_setup(){\n\t\tadd_theme_support( 'automatic-feed-links' );\n\n\t\t/*\n\t\t * Let WordPress manage the document title.\n\t\t * By adding theme support, we declare that this theme does not use a\n\t\t * hard-coded <title> tag in the document head, and expect WordPress to\n\t\t * provide it for us.\n\t\t */\n\t\tadd_theme_support( 'title-tag' );\n\n\t\t/*\n\t\t * Enable support for Post Thumbnails on posts and pages.\n\t\t *\n\t\t * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/\n\t\t */\n\t\tadd_theme_support( 'post-thumbnails' );\n /*\n\t\t * Switch default core markup for search form, comment form, and comments\n\t\t * to output valid HTML5.\n\t\t */\n\t\tadd_theme_support( 'html5', array(\n\t\t\t'search-form',\n\t\t\t'comment-form',\n\t\t\t'comment-list',\n\t\t\t'gallery',\n\t\t\t'caption',\n\t\t) );\n\n\t\t// Set up the WordPress core custom background feature.\n\t\tadd_theme_support( 'custom-background', apply_filters( 'dev_custom_background_args', array(\n\t\t\t'default-color' => 'ffffff',\n\t\t\t'default-image' => '',\n\t\t) ) );\n\n\t\t// Add theme support for selective refresh for widgets.\n\t\tadd_theme_support( 'customize-selective-refresh-widgets' );\n\n\t\t/**\n\t\t * Add support for core custom logo.\n\t\t *\n\t\t * @link https://codex.wordpress.org/Theme_Logo\n\t\t */\n\t\tadd_theme_support( 'custom-logo', array(\n\t\t\t'height' => 250,\n\t\t\t'width' => 250,\n\t\t\t'flex-width' => true,\n\t\t\t'flex-height' => true,\n\t\t) );\n}", "title": "" } ]
8748ee145b7f2bbb8e4804c8e96ef24a
Run th e database seeds.
[ { "docid": "4c9d60823941369a5f02a0fc5ccc8814", "score": "0.0", "text": "public function run()\n {\n //\n }", "title": "" } ]
[ { "docid": "ba65b3c7cc53b98482bb8d2eb587669a", "score": "0.84684783", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \n \t$faker = Faker::create();\n \tforeach (range(1,10) as $index) {\n\t DB::table('eleves')->insert([\n\t 'nom' => $faker->lastName,\n\t 'prenom' => $faker->firstName,\n\t ]);\n }\n }", "title": "" }, { "docid": "327ad6d10fc827fc15db08f34bf40802", "score": "0.8316001", "text": "public function run()\n {\t\n\n \t$faker = Faker::create();\n // $this->call(UsersTableSeeder::class);\n\n $users_array = array(\n array(\n \"name\"=>\"superman\",\n \"email\"=>\"[email protected]\",\n \"password\"=>bcrypt(123456),\n )\n );\n\n\n foreach ($users_array as $key => $value) {\n User::firstOrCreate($value); \n }\n\n\n \t $sql = file_get_contents(database_path() . '/seeds/data.sql');\n \n DB::statement($sql);\n // $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "0b48ccb8cc2a57295aa335aada3f0cf0", "score": "0.8255925", "text": "public function run()\n {\n //Setting 的数据\n $this->seed('SettingsTableAboutSeeder');\n $this->seed('SettingsTableContactSeeder');\n $this->seed('SettingsTableFooterSeeder');\n $this->seed('SettingsTableGallerySeeder');\n $this->seed('SettingsTableHomeSeeder');\n $this->seed('SettingsTableNewsSeeder');\n $this->seed('SettingsTableProductSeeder');\n\n //其它 TAb 的数据\n $this->seed('AboutsTableSeeder');\n $this->seed('EventsTableSeeder');\n $this->seed('PicturesTableSeeder');\n $this->seed('ProductsTableSeeder');\n\n\n }", "title": "" }, { "docid": "ed06bba7db97c68b7bbf791adcce6fb9", "score": "0.8210739", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n /*$this->call(UsersTableSeeder::class);\n $this->call(PostsTableSeeder::class);\n $this->call(CommentsTableSeeder::class);*/\n\n DB::table('roles')->insert([\n 'id' => 1,\n 'name' => 'member',\n 'codename' => 'member',\n ]);\n\n DB::table('roles')->insert([\n 'id' => 2,\n 'name' => 'super_admin',\n 'codename' => 'super-admin',\n ]);\n\n DB::table('users')->insert([\n 'id' => 1,\n 'first_name' => 'Andrej',\n 'last_name' => 'Májik',\n 'nickname' => '7aduso7',\n 'role_id' => 2,\n 'email' => '[email protected]',\n 'password' => bcrypt('password'),\n ]);\n\n\n }", "title": "" }, { "docid": "d0abb0e0136f467ad7b87e6f5532ed0a", "score": "0.82086843", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::truncate();\n Immeuble::truncate();\n Role::truncate();\n \n $roles = ['Administrateur', 'Locataire', 'Bailleur'];\n for($i = 0; $i < count($roles); $i++) {\n DB::table('roles')->insert(['title' => $roles[$i]]);\n }\n factory(User::class, 6)->create(); \n factory(Immeuble::class, 20)->create();\n \n }", "title": "" }, { "docid": "e6e08786bed1670f53276916427ca96e", "score": "0.8185912", "text": "public function run()\n {\n $this->seed('AdminUserSeeder');\n $this->seed('CategoryTableSeeder');\n $this->seed('ArticleTableSeeder');\n }", "title": "" }, { "docid": "2428fb876c2fc675eb1495ece8a8bd50", "score": "0.8184649", "text": "public function run()\n {\n $this->call(usersTableSeeder::class);\n $this->call(createblogTableSeeder::class);\n ##users\n \n #User::create(['id' => 'admin_1',\n # 'role_id' => '2',\n # 'username' => 'admin1',\n # 'name' => 'admin1',\n # 'email' => '[email protected]',\n # 'password' => Hash::make('admin1')]);\n\n ##roles\n DB::table('roles')->delete();\n roleModel::create(['id' => 1, 'namaRole' => 'Pengguna']);\n roleModel::create(['id' => 2, 'namaRole' => 'Admin']);\n }", "title": "" }, { "docid": "f25f71c7a43bee032cfed052359682c1", "score": "0.818291", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PromptsTableSeeder::class);\n $this->call(ShowcasesTableSeeder::class);\n $this->call(ProfilesTableSeeder::class);\n $this->call(PostsTableSeeder::class);\n $this->call(FaqTableSeeder::class);\n if(App::environment('local')) {\n \tfactory(App\\User::class, 10)->create()->each(function ($user) {\n \t\t$user->posts()->save(factory(App\\Post::class)->make());\n \t});\t\n }\n $this->call(LikeablesTableSeeder::class);\n }", "title": "" }, { "docid": "dd7631cd2494611195a3c26ed5862662", "score": "0.8159462", "text": "public function run()\n {\n //disable foreign key check for this connection before running seeders\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n DB::table('role_user')->truncate();\n DB::table('users')->truncate();\n\n DB::table('users')->insert([\n 'nom' => 'الأول',\n 'prnom' => 'المشرف',\n 'name' => 'المشرف الأول',\n 'email' => '[email protected]',\n 'password' => bcrypt('ccxccb01'),\n 'active' => true,\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s')\n ]);\n\n DB::table('role_user')->insert([\n 'role_id' => 1,\n 'user_id' => 1,\n 'gouvernorat_id' => 0,\n 'secteur_id' => 0,\n 'created_at' => date('Y-m-d H:i:s')\n ]);\n\n // supposed to only apply to a single connection and reset it's self\n // but I like to explicitly undo what I've done for clarity\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "5bd1395272590f5abd039a77cd4c8921", "score": "0.8159227", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n assoliments::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 10; $i++) {\n \tassoliments::create([\n \t\t'idassoliments' => $faker->shuffle(array(1,2,3,4,5,6,7,8,9,10)),\n \t\t'assonom' => $faker->sentence($nbWords = 2),\n \t\t'assodescripcio' => $faker->text($maxNbChars = 150),\n \t\t'assoimatge' => $faker->imageUrl($width = 150, $height = 150),\n \t]);\n }\n }", "title": "" }, { "docid": "456fada1e8ab29cede973a761f6008d5", "score": "0.81519955", "text": "public function run()\n {\n # CRIA AUTOMATICAMENTE O PRIMEIRO USUARIO\n $this->call(CampusesTableSeeder::class);\n $this->call(PessoasTableSeeder::class);\n $this->call(PessoaFisicasTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(UserCampusVinculosTableSeeder::class);\n\n #php artisan db:seed\n }", "title": "" }, { "docid": "232ba6c621c9e9ca9f29ef5a2273d60f", "score": "0.81444347", "text": "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n $this->call(VisitesTableSeeder::class);\n $this->call(cartesTableSeeder::class);\n $this->call(enginsTableSeeder::class);\n }", "title": "" }, { "docid": "12978674a7c9d780a59228ac9e86faa1", "score": "0.813306", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('botao')->insert([\n 'id' => 1,\n 'botao' => 0\n ]);\n\n DB::table('botoes')->insert([\n 'id' => 1,\n 'botao' => 0\n ]);\n \n }", "title": "" }, { "docid": "fe5dcdd5cdae833d922c9e43e1b7f4eb", "score": "0.8123939", "text": "public function run()\n {\n Model::unguard();\n\n // $this->call(UserTableSeeder::class);\n $counts = array(10);\n foreach($counts as $count){\n DB::table('articles')->insert([\n 'title' => str_random(10),\n 'author' => str_random(10),\n 'description' => 'The groundscraper thrush Psophocichla litsitsirupa is a passerine bird of southern and eastern Africa',\n ]);\n }\n foreach($counts as $count){\n DB::table('articles')->insert([\n 'title' => str_random(10),\n 'author' => str_random(10).'@gmail.com',\n 'description' => 'There are four subspecies: P. l. litsitsirupa is the most southerly form, occurring from Namibia, Botswana',\n ]);\n }\n\n Model::reguard();\n }", "title": "" }, { "docid": "f24e31d54b4c4285643976a5bccede2c", "score": "0.8118838", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Cliente::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 Cliente::create([\n 'name' => $faker->sentence,\n //'lastname' => $faker->paragraph,\n 'lastname' => $faker->sentence,\n 'edad' => $i*2,\n ]);\n }\n }", "title": "" }, { "docid": "f840a029b11357e19c47335a59ffe477", "score": "0.8110668", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // factory(App\\User::class, 3)->create()->each(function ($user) {\n // $user->questions()->saveMany(\n // factory(App\\Question::class, rand(1, 5))->make()\n // )->each(function ($q) use ($user){\n // $q->answers()->saveMany(factory(App\\Answer::class, rand(1, 5))->make());\n // $q->favorites()->attach($user);\n \n // $votes = [-1, 1];\n // $user->voteQuestion($q, $votes[rand(0,1)]);\n // });\n // });\n\n $this->call([\n UsersQuestionsAnswersTableSeeder::class,\n FavoritesTableSeeder::class,\n VotablesTableSeeder::class,\n UserMetasTableSeeder::class,\n ]); \n\n }", "title": "" }, { "docid": "88fb82438d8bf5610edee0afd6fdd00e", "score": "0.81100756", "text": "public function run()\n {\n \\App\\Models\\User::factory(100)->create();\n \\App\\Models\\Sneaker::factory(100)->create();\n \\App\\Models\\Rating::factory(100)->create();\n\t\t\\App\\Models\\Note::factory(100)->create();\n // factory(App\\Models\\User::class, 100)->create();\n $this->call(UsersTableSeeder::class);\n $this->call(SneakersTableSeeder::class);\n $this->call(RatingsTableSeeder::class);\n\t\t$this->call(NoteSeeder::class);\n }", "title": "" }, { "docid": "c867271d7ef309cbe7b651c4d47b875f", "score": "0.8103044", "text": "public function run()\n {\n $this->call(UserSeeder::class);\n $this->call(TimeSeeder::class);\n SettingSpare::create([\n 'iqomah' => 600,\n 'iqomah_alert' => 12,\n 'upcoming' => 600,\n ]);\n DB::table('cities')->insert([\n 'id' => 1,\n 'name' => 'bogor'\n ]);\n SettingBackground::create([\n 'image_path' => ''\n ]);\n // $this->call(SettingSpareSeeder::class);\n // $this->call(CitySeeder::class);\n }", "title": "" }, { "docid": "9a3b6fc50177b1d65da3fd2a5559159e", "score": "0.8101385", "text": "public function run()\n {\n $this->call(PermissaoSeeder::class);\n $this->call(PapelSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(DisciplinaTableSeeder::class);\n $this->call(CargoTableSeeder::class);\n $this->call(UFTableSeeder::class);\n factory(\\App\\Aluno::class, 50)->create(); \n //$this->call(ProfessorTableSeeder::class);\n //$this->call(DisciplinaNivelTableSeeder::class);\n \n }", "title": "" }, { "docid": "e323fd6a797d2085f22da34431cad16e", "score": "0.80952656", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'Carlos Diaz',\n 'email' => '[email protected]',\n 'password' => bcrypt('contraseña'),\n 'birth-date' => '1995-06-09',\n 'genre' => 'Masculino',\n 'avatar' => 'M',\n ]);\n\n DB::table('users')->insert([\n 'name' => 'Charles',\n 'email' => '[email protected]',\n 'password' => bcrypt('contraseña'),\n 'birth-date' => '1995-06-09',\n 'genre' => 'Masculino',\n 'avatar' => 'M',\n ]);\n\n $this->call(MoviesSeeder::class);\n $this->call(RatesSeeder::class);\n }", "title": "" }, { "docid": "b3caed0065086513ff62c24dcbd40d3f", "score": "0.80894023", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('books')->insert([\n ['title'=>'Lord of the rings',\n 'description' => 'L\\'histoire d\\'un mec fou de bijoux'],\n\n ['title' =>'Les malheurs de Sophie',\n 'description' =>'Trop triste'],\n\n ['title' =>'L\\'histoire de France pour les nuls',\n 'description' =>'Historique'],\n\n ['title' =>'La vie en rose',\n 'description' =>'Romantique'],\n\n ['title' =>'Surf in the USA',\n 'description' =>'Sports']\n ]);\n }", "title": "" }, { "docid": "c3ac4b331034a5d21d72602e48832c46", "score": "0.8088921", "text": "public function run()\n {\n \\App\\Models\\Article::factory(30)->create();\n\t//\t $this->call(UserSeed::class);\n \n }", "title": "" }, { "docid": "31a6bd8b5be917bc362b7aa1ba7aa0b6", "score": "0.80855477", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(EventSeed::class);\n $this->call(MeetingSeed::class);\n $this->call(PostSeed::class);\n $this->call(RoomSeed::class);\n\n\n //factory('App\\Item',10)->create();\n }", "title": "" }, { "docid": "9943f45f7eab24d29d58fe629fd0cca2", "score": "0.80830985", "text": "public function run()\n {\n $this->call(UserSeeder::class);\n // factory(App\\User::class, 10)->create();\n // DB::table('users')->insert(\n // [\n // 'name' => 'Hafidh Pradipta Arrasyid',\n // 'username' => 'hafidhuser',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('rahasia'),\n // ]\n // );\n\n $this->call(TravelPackageSeeder::class);\n $this->call(GallerySeeder::class);\n\n }", "title": "" }, { "docid": "6417b3aedb8761cb6b51dbbd8a2bdc73", "score": "0.80828184", "text": "public function run()\n {\n User::factory()->create([\n 'name'=>'adam',\n 'email' =>'[email protected]',\n 'password' => bcrypt('secret'),\n ]);\n User::factory(19)->create();\n \n $this->call(CategorySeeder::class);\n $this->call(StatusSeeder::class);\n $this->call(IdeaSeeder::class);\n\n //generate unique votes, ensure idea_id and user_id are uqique foreach row\n $this->call(VoteSeeder::class);\n $this->call(CommentSeeder::class);\n }", "title": "" }, { "docid": "98eb11f8fdb689c1e0e23eb90b4d7c27", "score": "0.80755514", "text": "public function run()\n {\n DatabaseSeeder::truncateTable('books');\n DatabaseSeeder::truncateTable('dvds');\n\n factory(\\App\\Book::class, 200)->create()->each(function (\\App\\Book $book, $i) {\n // 書籍名に連番を付与\n $book->update(['title' => $book->title . ($i + 1)]);\n });\n\n factory(\\App\\Dvd::class, 200)->create()->each(function (\\App\\Dvd $dvd, $i) {\n // 書籍名に連番を付与\n $dvd->update(['title' => $dvd->title . ($i + 1)]);\n });\n }", "title": "" }, { "docid": "496ace9c9fa5c47c6c759422ee4f8d80", "score": "0.8072438", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(PaisCollectionSeeder::class);\n $this->call(CiudadCollectionSeeder::class);\n $this->call(UserCollectionSeeder::class);\n $this->call(Tipo_proveedorCollectionSeeder::class);\n $this->call(ProveedorCollectionSeeder::class);\n //$this->call(ClienteCollectionSeeder::class);\n $this->call(Categoria_Articulo_CollectionSeeder::class);\n $this->call(ArticuloCollectionSeeder::class);\n $this->call(CompraCollectionSeeder::class);\n\n }", "title": "" }, { "docid": "9cf0e9f6bc39a30c051b6e56183c5039", "score": "0.80711263", "text": "public function run()\n {\n // $this->call('UsersTableSeeder');\n Model::unguard();\n // Register the user seeder\n $this->call(factory(App\\User::class, 10)->create());\n\n\n $faker = Faker::create();\n foreach (range(1, 20) as $increment) {\n DB::table('ads')->insert([\n 'name' => $faker->word,\n 'brand' => $faker->words($nb = 8, $asText = true),\n 'price' => $faker->randomFloat($nbMaxDecimals = 2, $min = 1, $max = 1000),\n 'description' => $faker->text($maxNbChars = 300),\n 'tag' => $faker->words($nb = 3, $asText = true),\n 'create_at' => $faker->dateTimeInInterval($startDate = 'now', $interval = '- 30 days', $timezone = null),\n 'end_at' => $faker->dateTimeInInterval($startDate = 'now', $interval = '+ 30 days', $timezone = null),\n 'id_user' => random_int(1, 10)\n ]);\n }\n\n Model::reguard();\n }", "title": "" }, { "docid": "14f98c65d6f13c1c8d55da40dccee47b", "score": "0.80651426", "text": "public function run()\n {\n Model::unguard();\n\n // $this->call(UserTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n DB::table('codes')->truncate();\n $faker = Faker::create();\n foreach (range(1,20) as $index) {\n DB::table('codes')->insert([\n 'code' => $faker->ean13,\n 'status' => 'active'\n ]);\n }\n\n Model::reguard();\n }", "title": "" }, { "docid": "70d952d3106498689508b570a6821a39", "score": "0.80646485", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // factory(Address::class, 1000)->create();\n // factory(User::class, 500)->create();\n // factory(Product::class, 1500)->create();\n // factory(Image::class, 3500)->create();\n // factory(Review::class, 3500)->create();\n // factory(Role::class, 100)->create();\n\n }", "title": "" }, { "docid": "ae0d9b694aaa94029e66f229291efbc4", "score": "0.80625945", "text": "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n //$this->call(FipulpBlogTableSeeder::class);\n $this->call(FipulpGalleryTableSeeder::class);\n $this->call(AsriAboutTableSeeder::class);\n $this->call(AsriPageTableSeeder::class);\n $this->call(AsriPostsTableSeeder::class);\n $this->call(GalleryTableSeeder::class);\n $this->call(AchievementTableSeeder::class);\n $this->call(HasilRisetTableSeeder::class);\n $this->call(JournalTableSeeder::class);\n //$this->call(BiodegumPostsTableSeeder::class);\n $this->call(BiodegumPortfolioTableSeeder::class);\n $this->call(BiodegumPageSettingTableSeeder::class);\n $this->call(FipulpPageSettingsTableSeeder::class);\n }", "title": "" }, { "docid": "3c3316705bf652139e08b3bb71e8007c", "score": "0.8059493", "text": "public function run()\n {\n $addresses = array_column(Address::all()->toArray(), 'id');\n $locations = array_column(Location::all()->toArray(), 'id');\n $users = array_column(User::all()->toArray(), 'id');\n $faker = Faker\\Factory::create('vi_VN');\n\n for ($i = 0; $i < Config::get('seeding.estates'); $i++) {\n Estate::create([\n 'fk_location' => $faker->randomElement($locations),\n 'fk_address' => $faker->randomElement($addresses),\n 'fk_user' => $faker->randomElement($users)\n ]);\n }\n }", "title": "" }, { "docid": "8e53cf6d3e2e82965ae4bc5b61667dff", "score": "0.80580425", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Sprint::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 Sprint::create([\n 'nama_sprint' => $faker->sentence,\n 'desc_sprint' => $faker->paragraph,\n 'tgl_mulai' => $faker->date,\n 'tgl_selesai' => $faker->date\n ]);\n }\n }", "title": "" }, { "docid": "b4fdaf69edad731105dafe5e936fb3ea", "score": "0.80549496", "text": "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t/*$this->call('CampusesTableSeeder');\n\t\t$this->call('SchoolsCollegesTableSeeder');\n\t\t$this->call('DepartmentsTableSeeder');\n\t\t$this->call('PositionsTableSeeder');\n\t\t$this->call('RanksTableSeeder');\n\t\t$this->call('EmployeesTableSeeder');*/\n\t\t$this->call('UsersTableSeeder');\n\t\t/*$this->call('RolesTableSeeder');\n\t\t$this->call('PermissionsTableSeeder');\n\t\t$this->call('SkillsCompetenciesTableSeeder');*/\n\n\t\t$this->command->info('Database seeding complete!');\n\t}", "title": "" }, { "docid": "5680937e4481e576753ff7a866316c7d", "score": "0.8049975", "text": "public function run()\n {\n\n echo \"\\n> Category seeder\";\n factory( App\\Model\\Category::class, 15 )->create();\n \n for ($a = 0; $a<50; $a++) {\n $this->call('productSeeder');\n }\n \n echo \"\\n> ProductCategroy seeder\";\n factory( App\\Model\\ProductCategory::class, 50 )->create();\n\n $this->call('postSeeder');\n\n echo \"\\n> People seeder\";\n $this->call('personSeeder');\n //factory( App\\Model\\Person::class, 1 )->create();\n }", "title": "" }, { "docid": "840bde2dac192718863163e990f44cc3", "score": "0.80469656", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n// factory(App\\User::class, 100)->create();\n $this->call(ProductTypeTableSeeder::class);\n $this->call(ProductsTableSeeder::class);\n $this->call(CommentProductSeeder::class);\n $this->call(PivotProductProductTypeSeeder::class);\n $this->call(CustomersTableSeeder::class);\n $this->call(OrderTableSeeder::class);\n $this->call(OrderDetailTableSeeder::class);\n $this->call(PostCategoriesTableSeeder::class);\n $this->call(PostsTableSeeder::class);\n $this->call(CommentPostTableSeeder::class);\n $this->call(PivotPostCategoriesTableSeeder::class);\n $this->call(RoleTableSeeder::class);\n $this->call(UserRoleTableSeeder::class);\n $this->call(PermissionSeeder::class);\n $this->call(RolePermissionSeeder::class);\n $this->call(MediasTabelSeeder::class);\n }", "title": "" }, { "docid": "94162fce75a3c66760a9d81926201292", "score": "0.80469394", "text": "public function run()\n {\n\n\n $this->userSeeder();\n $this->adminSeeder();\n }", "title": "" }, { "docid": "faa3afa88fbbee66e29311b054a3f9f6", "score": "0.8046629", "text": "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n // factory(Address::class, 1000 )->create();\n // factory(User::class, 500 )->create();\n // factory(Product::class, 1500)->create();\n // factory(Image::class, 3500)->create();\n // factory(Review::class, 3500)->create();\n // factory(Category::class, 50)->create();\n // factory(Tag::class, 150)->create();\n // factory(Ticket::class, 150)->create();\n }", "title": "" }, { "docid": "2ebb9c918706847805ccc03091dcda8f", "score": "0.8044579", "text": "public function run()\n {\n //per richiamare questo Seeder\n //php artisan db:seed\n $this->call([\n CategoriesTableSeeder::class,\n EventsTableSeeder::class,\n PagesTableSeeder::class,\n PostsTableSeeder::class,\n StreetsTableSeeder::class,\n LocationsTableSeeder::class,\n ]);\n }", "title": "" }, { "docid": "fe6cd27ea4e4a283acb2859efda5f0d0", "score": "0.80444455", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::factory()->count(10)->create();\n Producto::factory()->count(50)->create();\n Resenia::factory()->count(200)->create();\n }", "title": "" }, { "docid": "649c9479b09f6dffea611c12237f5fd0", "score": "0.8042879", "text": "public function run()\n {\n Eloquent::unguard();\n\n //Desactivar llaves foraneas para seeders\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n $this->call('UsersTableSeeder');\n $this->call('BlogTableSeeder');\n $this->call('EspecialidadTableSeeder');\n $this->call('Hora_disponibleTableSeeder');\n $this->call('Hora_medicaTableSeeder');\n $this->call('PrevisionTableSeeder');\n $this->call('EstadosTableSeeder');\n $this->call('Tipo_UsuarioTableSeeder');\n $this->call('Estado_AtencionTableSeeder');\n\n // Activar Nuevamente llaves foraneas\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "accbe4742bddb25bd34a06736ae2cd48", "score": "0.8039731", "text": "public function run()\n {\n DB::table('users')->truncate();\n DB::table('users')->insert([\n [\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'password' => bcrypt(123456),\n 'role' => 2\n ]\n ]);\n factory(App\\User::class, 50)->create();\n\n $this->call(ExamSessionsTableSeeder::class);\n $this->call(ExamsTableSeeder::class);\n $this->call(ModulesTableSeeder::class);\n $this->call(ModuleUserTableSeeder::class);\n $this->call(RoomsTableSeeder::class);\n $this->call(TestRoomsTableSeeder::class);\n $this->call(TestRoomUserTableSeeder::class);\n $this->call(TestSitesTableSeeder::class);\n $this->call(UniversitiesTableSeeder::class);\n }", "title": "" }, { "docid": "2f537af95837ba7cabbc493890138538", "score": "0.80394", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n\n $this->call(MesesTableSeeder::class);\n $this->call(UnidadMedidaTableSeeder::class);\n \n $this->call(AlmacenTableSeeder::class);\n }", "title": "" }, { "docid": "94776d030c8658514938faaba980f43e", "score": "0.80393016", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\Models\\Classification::class,5)->create();\n factory(App\\Models\\Category::class,10)->create();\n factory(App\\Models\\Type::class,20)->create();\n factory(App\\Models\\Product::class,50)->create();\n factory(App\\Models\\Stock::class,50)->create();\n }", "title": "" }, { "docid": "77540e15c90b72ef03c674bc9b828058", "score": "0.8036492", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::create([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'password' => '$2y$10$pX4i3tsBCC03RTSlVxeRFufu4AjtGfpQwM7LxuddLnzrMwv0w2yT2'\n ]);\n\n Article::create([\n 'title' => 'Biguanides'\n ]);\n\n Drug::create([\n 'article_id' => 1,\n 'name' => 'Metformine',\n 'childA_category' => 1,\n 'childB_category' => 2,\n 'childC_category' => 3\n ]);\n\n Drug::create([\n 'article_id' => 1,\n 'name' => 'Metamorfine',\n 'childA_category' => 2,\n 'childB_category' => 3,\n 'childC_category' => 4\n ]);\n }", "title": "" }, { "docid": "5c4294b6400859da12c84a8ad2431748", "score": "0.8035678", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(ModalidadPermisoSeeder::class);\n $this->call(PermisoSeeder::class);\n $this->call(TestSeeder::class);\n $this->call(PreguntaSeeder::class);\n $this->call(OpcionesSeeder::class);\n \n }", "title": "" }, { "docid": "cbb3cb5e5144c388dc82ae632ba93ff2", "score": "0.8034782", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker::create();\n Admin::create([\n 'name'=>'Admin',\n 'email'=>'[email protected]',\n 'password'=>bcrypt('12345678@kalemat'),\n ]);\n\n foreach (range(1,10) as $index) {\n Category::create([\n 'name_ar'=>$faker->word,\n 'name_en'=>$faker->word,\n 'color'=>'#' . substr(str_shuffle('ABCDEF0123456789'), 0, 6),\n 'icon'=>'https://image.flaticon.com/icons/svg/1530/1530861.svg',\n 'show'=>1,\n 'admin_id'=>1,\n ]);\n }\n\n foreach (range(1,50) as $index) {\n Quote::create([\n 'quote_ar'=>$faker->sentence,\n 'quote_en'=>$faker->sentence,\n 'author_ar'=>$faker->name,\n 'author_en'=>$faker->name,\n 'tags'=>'love,romance,heart',\n 'category_id'=>rand(1,10),\n 'admin_id'=>1,\n 'show'=>1,\n ]);\n }\n }", "title": "" }, { "docid": "a66f2aba02b03254e678400dd7ff616f", "score": "0.8034616", "text": "public function run()\n {\n $faker = Faker\\Factory::create();\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n \\App\\Education::truncate();\n /*\n $educations = [];\n foreach (range(1, 6) as $number) {\n \t$educations[] = [\n \t\t'name' => 'Educação '. $number,\n \t];\n }\n */\n \\App\\Education::insert(['name' => 'Escolaridade indefinida']);\n\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 1'); \n }", "title": "" }, { "docid": "134bd49026ae4bc890e294192b0faad1", "score": "0.8031368", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n \t// address\n\n \t$data = array([\n \t\t'unit' => '13',\n \t\t'street_no' => '18',\n \t\t'street' => 'Mascar Streeet',\n \t\t'suburb' => 'Upper Mount Gravatt',\n \t\t'state' => 'QLD',\n \t\t'country' => 'Australia',\n \t\t'postal_code' => '4122'\n \t]);\n\n \tDB::table('addresses')->insert($data);\n\n \t// House\n\n \t$data = array([\n\t\t\t'name' => 'Boutique Apartment',\n\t\t\t'rate' => 484,\n\t\t\t'max_guests' => 6,\n\t\t\t'max_parking' => 2,\n\t\t\t'bathrooms' => 2,\n\t\t\t'area' => 130,\n\t\t\t'desc' => 'good apartment near garden city',\n\t\t\t'type' => 'apartment',\n\t\t\t'addr_id' => 1,\n \t]);\n\n \tDB::table('houses')->insert($data);\n\n \t//\n\n\n\n }", "title": "" }, { "docid": "c2f2677d704cf5b7d86f793f39a16739", "score": "0.80263484", "text": "public function run()\n {\n \\App\\Models\\User::factory(11)->create();\n \n \\App\\Models\\Curso::factory(8)->create();\n \\App\\Models\\Participante::factory(5)->create();\n $this->call([\n CursoSeeder::class,\n InscripcionSeeder::class\n ]);\n }", "title": "" }, { "docid": "d808934701ece479c4081911e534327d", "score": "0.80242187", "text": "public function run()\n {\n $this->call(DatabaseSeeder::class);\n\n factory(Campus::class, 5)->create();\n factory(Building::class, 20)->create();\n factory(Room::class, 100)->create();\n factory(Department::class, 10)->create();\n factory(Course::class, 50)->create();\n\n /**\n * Pivots\n */\n //$this->call(DevelopmentAccountCourseSeeder::class);\n //$this->call(DevelopmentAccountDepartmentSeeder::class);\n //$this->call(DevelopmentAccountDutySeeder::class);\n //$this->call(DevelopmentAccountRoomSeeder::class);\n }", "title": "" }, { "docid": "5633540a132be6450a40009c1b0c3075", "score": "0.802292", "text": "public function run()\n {\n $this->call(CategorySeeder::class);\n $this->call(PenerimaSeeder::class);\n $this->call(DonaturSeeder::class);\n $this->call(PengurusSeeder::class);\n $this->call(UserSeeder::class);\n $this->call(DonasiSeeder::class);\n\n // hanya cadangan\n //php artisan db:seed --class=CategorySeeder\n //php artisan db:seed --class=PenerimaSeeder\n //php artisan db:seed --class=DonaturSeeder\n //php artisan db:seed --class=PengurusSeeder\n //php artisan db:seed --class=UserSeeder\n //php artisan db:seed --class=DonasiSeeder\n }", "title": "" }, { "docid": "850e00ba4723ff5117bb8bdabff21e05", "score": "0.8021613", "text": "public function run()\n {\n $this->trucateTables([\n 'countries',\n 'provinces',\n 'categories',\n 'subcategories',\n 'products',\n 'tipos_movimientos',\n 'customers',\n 'payments_types',\n 'movimientos'\n \n ]);\n \n $this->call(CountriesTableSeeder::class);\n $this->call(ProvinceTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n $this->call(SubcategoriesTableSeeder::class);\n $this->call(ProductsSeeder::class);\n $this->call(TiposMovimientosSeeder::class);\n $this->call(CustomerTableSeed::class);\n $this->call(PaymentsTypesSeeder::class); \n $this->call(MovimientosTableSeed::class);\n\n DB::table('banners')\n ->insert([\n ['title_banner_1' => 1]] \n );\n\n DB::table('settings')\n ->insert([['id' => 'dolar', 'value' => 30]]);\n\n DB::table('model_roles')\n ->insert([['role_id' => 1, 'model_id' => 1, 'model_type' => 'App\\User']]);\n\n }", "title": "" }, { "docid": "dbb4e060ddd1be8de9156e6df0210417", "score": "0.8016465", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \n factory(User::class)->times(10)->create();\n factory(\\App\\Post::class,15)->create();\n factory(\\App\\Comment::class,10)->create();\n \n // factory(\\App\\User::class)->times(1)->create(['admin'=>true])\n // ->each(function(\\App\\User $user){\n // factory(\\App\\Post::class,2)->create(['author_id'=>$user->id])\n // ->each(function(\\App\\Post $p){\n // factory(\\App\\Comment::class)->times(2)->create(['post_id' => $p->id]);\n // });\n // });\n }", "title": "" }, { "docid": "332656431ac9f8e8ef182399d4938468", "score": "0.8013393", "text": "public function run()\n {\n //factory(\\App\\User::class,100)->create();\n //factory(\\App\\Item::class,500)->create();\n /*factory(App\\Purchase::class, 5000)->create()->each(function ($u) {\n $u->purchaseItems()->save(factory(App\\PurchaseItems::class)->make());\n });*/\n\n factory(App\\Sale::class, 20000)->create()->each(function ($u) {\n $u->saleItems()->save(factory(App\\SaleItems::class)->make());\n });\n\n // $this->call(UsersTableSeeder::class);$u->posts()->save(factory(App\\Post::class)->make());\n }", "title": "" }, { "docid": "b6a9a50637de3dbdb26e5fe066c26a3a", "score": "0.8012997", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n /* RÔMULO*/\n factory(App\\Entities\\Article::class,100)->create();\n factory(App\\Entities\\Participation::class,100)->create();\n factory(App\\Entities\\UserEvent::class,100)->create();\n }", "title": "" }, { "docid": "d737f56d2f3326f4a594788cae8a158e", "score": "0.8010438", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(EstadoSeeder::class);\n $this->call(DocumentoSeeder::class);\n $this->call(EtapaSeeder::class);\n $this->call(PolizaSeeder::class);\n $this->call(CanalSeeder::class);\n $this->call(ContactoSeeder::class);\n $this->call(AccionSeeder::class);\n }", "title": "" }, { "docid": "4d74cd95aef825e10a3ff415122663c5", "score": "0.8007604", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\Post::class,20)->create();\n factory(App\\Centre::class,4)->create();\n factory(App\\Report::class,20)->create();\n factory(App\\News::class,20)->create();\n factory(App\\Partner::class,10)->create();\n factory(App\\Network::class,10)->create();\n factory(App\\Television::class,10)->create();\n factory(App\\Expert::class,10)->create();\n }", "title": "" }, { "docid": "6968c58830c387f3e6602a53fecd258c", "score": "0.80052686", "text": "public function run()\n {\n // User::factory(10)->create();\n // $this->call([\n // StudentsTableSeeder::class,\n // SubjectsTableSeeder::class,\n // ]);\n Post::factory(10)->create();\n Comment::factory(10)->create();\n Category::factory(10)->create();\n Category_Post::factory(10)->create();\n Student::factory(10)->create();\n }", "title": "" }, { "docid": "be8a3b2da83d1d7033d80e7da1566a2d", "score": "0.80049783", "text": "public function run()\n {\n // 1ここに指定すれば、「php artisan db:seed」でデータ投入できる。(クラス指定なしに)\n $this->call(UserTypesTableSeeder::class);\n $this->call(AdminsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(HolidaysTableSeeder::class);\n $this->call(ProjectStatusesTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n $this->call(CompaniesTableSeeder::class);\n $this->call(ProjectsTableSeeder::class);\n $this->call(WorkSchedulesTableSeeder::class);\n $this->call(ProjectWorksTableSeeder::class);\n $this->call(WeeklyReportsTableSeeder::class);\n $this->call(WorkScheduleMonthsTableSeeder::class);\n }", "title": "" }, { "docid": "7ddf97bbbb05a2f9d3c8ed20008805b3", "score": "0.8004369", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n $tags = factory(GJames\\Tag::class, 10)->create();\n\n $categories = factory(GJames\\Category::class, 5)->create()->each(function ($c) use ($tags) {\n $post_count = rand(0, 10);\n for($i = 0; $i < $post_count; $i++) {\n $c->posts()->save(factory(GJames\\Post::class)->make())->tags()->attach($tags->random(rand(1,5)));\n }\n \n });\n }", "title": "" }, { "docid": "e81d5d8e30244da0bf21fea71070cc76", "score": "0.80011916", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // factory(App\\Blog::class, 15)->create();\n factory(App\\User::class, 15)->create()->each(function ($user) {\n factory(App\\Blog::class, random_int(2, 5))->create(['user_id' => $user])->each(function ($blog) {\n factory(App\\Comment::class, random_int(1, 3))->create(['blog_id' => $blog]);\n });\n });\n }", "title": "" }, { "docid": "ad2d846dafb710e760b426da329b9175", "score": "0.7999632", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(Course::class, 10)->create()->each(function($course){\n $course->videos()->saveMany(factory(Video::class, 10)->make());\n });\n }", "title": "" }, { "docid": "89c3ba9f65db1752c26d2966992e5eac", "score": "0.799546", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker::create();\n for($i = 0;$i<10;$i++){\n DB::table('students')->insert([\n 'firstname' =>$faker->firstName(),\n 'lastname' =>$faker->lastName(),\n 'age' =>$faker->numberBetween(15,20),\n ]);\n }\n \n }", "title": "" }, { "docid": "67d20fc4c8e32364000cecf21eb610cc", "score": "0.79954135", "text": "public function run()\n {\n $this->call(ProgramaSeeder::class);\n $this->call(GrupoSeeder::class);\n\n Usuario::factory(30)->create();\n Agrupamiento::factory(30)->create();\n Notificacion::factory(10)->create();\n }", "title": "" }, { "docid": "b8bbeb0dcc60169072736f6bbc0e5a6a", "score": "0.7991494", "text": "public function run()\n {\n /**\n * metodo para vaciar las bd\n */\n $this->truncateTables([\n 'areas',\n 'nucleos',\n 'idiomas',\n 'users'\n ]);\n $this->call(AreaSeeder::class);\n $this->call(NucleoSeeder::class);\n $this->call(IdiomaSeeder::class);\n $this->call(EntidadSeeder::class);\n $this->call(UserSeeder::class);\n }", "title": "" }, { "docid": "fe5bc56a99653d8ba33e2d2fa2af692d", "score": "0.7989838", "text": "public function run()\n {\n $this->call([\n UserSeeder::class,\n PostSeeder::class,\n ImageSeeder::class,\n ]);\n /* factory(App\\User::class, 50)->create()->each(function ($u) {\n factory(App\\Post::class, 20)->create(['user_id' => $u->id]);\n });*/\n }", "title": "" }, { "docid": "31d97af050b411c0bbc06f7607de7643", "score": "0.79884654", "text": "public function run()\n {\n // We want to delete the users table if it exists before running the seed\n DB::table('users')->delete();\n\n $users = array(\n ['name' => 'Leonardo Souza', 'email' => '[email protected]', 'password' => Hash::make('test')],\n ['name' => 'User1 Test', 'email' => '[email protected]', 'password' => Hash::make('test')],\n ['name' => 'User2 Test', 'email' => '[email protected]', 'password' => Hash::make('test')],\n ['name' => 'User3 Test', 'email' => '[email protected]', 'password' => Hash::make('test')],\n );\n \n // Loop through each user above and create the record for them in the database\n foreach ($users as $user)\n {\n User::create($user);\n }\n }", "title": "" }, { "docid": "90862d339f6c8e5145bab4de37b64055", "score": "0.7987015", "text": "public function run()\n {\n Model::unguard();\n\n\n // $this->call(AlbumTableSeeder::class);\n $this->call(ConfigTableSeeder::class);\n $this->call(PrincipalTableSeeder::class);\n $this->call(UserTableSeeder::class);\n\n /* factory('App\\Entities\\Principal')->create(\n [ 'id'=>1,\n 'titulo' => 'Inicio',\n 'conteudo' => 'Página em Construção'\n ]\n );\n factory('App\\Entities\\Principal')->create(\n [ 'id'=>2,\n 'titulo' => 'Localização',\n 'conteudo' => 'Página em Construção'\n ]\n );\n factory('App\\Entities\\Principal')->create(\n [\n 'id'=>3,\n 'titulo' => 'A Empresa',\n 'conteudo' => 'Página em Construção'\n ]\n );*/\n\n\n\n Model::reguard();\n }", "title": "" }, { "docid": "5a391f30673c26e7ac849bf19965728f", "score": "0.79829764", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker\\Factory::create();\n\n for($i = 0; $i < 10; $i++) {\n $name = $faker->name;\n App\\FilmModel::create([\n 'name' => $name,\n 'slug' => str_slug($name, '-'),\n 'description' => $faker->realText(rand(10,20)),\n 'release_date' => $faker->dateTimeBetween($startDate = '-30 years', $endDate = 'now', $timezone = null),\n 'rating' => $faker->numberBetween($min = 0, $max = 5),\n 'ticket_price' => $faker->randomNumber(2),\n 'country' => 'NG',\n 'genre' => 'action'\n ]);\n }\n }", "title": "" }, { "docid": "76308a4dc0d74373e427d7baeff18c5c", "score": "0.7980738", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // DB::truncate();\n\n factory(Post::class, 20)->create();\n //factory(App\\models\\EventTranslation::class, 10)->create();\n // factory(App\\models\\BusinessTypeTranslation::class, 10)->create();\n\n }", "title": "" }, { "docid": "bc572dd08445f74b7d32762491ae99fe", "score": "0.7980286", "text": "public function run()\n {\n // Crea el usuario por defecto del CRS\n $this->call(AdminUserSeeder::class);\n\n // Crea los idiomas por defecto del CRS\n $this->call(LanguagesSeeder::class);\n\n // Genera 4 tipos de asientos en la BD\n // factory(Globobalear\\Products\\Models\\SeatType::class, 4)->create();\n\n // Genera 3 tipos de tickets en la BD\n // factory(Globobalear\\Products\\Models\\TicketType::class, 3)->create();\n\n // Genera 3 shows de prueba en la BD\n // factory(Globobalear\\Products\\Models\\Product::class, 3)->create()->each(function($show) {\n // $show->passes()->saveMany(factory(Globobalear\\Products\\Models\\Pass::class, 10)->make());\n // });\n }", "title": "" }, { "docid": "0c2824b42174afbb2a90caaaad16c51b", "score": "0.79780877", "text": "public function run()\n {\n $this->call(UserSeeder::class);\n\n //seeding using factory\n factory(Vendor::class,25)->create();\n factory(Purchase::class,250)->create();\n }", "title": "" }, { "docid": "65a0c21736478657f8b5a14425fd952e", "score": "0.7972704", "text": "public function run()\n {\n Model::unguard();\n\n // $this->call('UserTableSeeder');\n\n Model::reguard();\n\n\t\t$this->call('AgresioncategoriasTableSeeder');\n\t\t$this->call('AgresionsTableSeeder');\n\t\t$this->call('DepartamentosTableSeeder');\n\t\t$this->call('GenerosTableSeeder');\n\t\t$this->call('MesTableSeeder');\n\t\t$this->call('MunicipiosTableSeeder');\n\t\t$this->call('TipoagresionsTableSeeder');\n\t\t$this->call('TipoagresorsTableSeeder');\n\t\t$this->call('TiposistemasTableSeeder');\n\t\t$this->call('TiposujetoagredidosTableSeeder');\n\t\t$this->call('AlertasTableSeeder');\n\t\t$this->call('AgredidosTableSeeder');\n\t\t$this->call('AgresorsTableSeeder');\n\t}", "title": "" }, { "docid": "2b75548cfb9b6c9de5c361fdd8d1795d", "score": "0.79636174", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n /*$this->call([\n UsersTableSeeder::class,\n DoctypesTableSeeder::class,\n GenresTableSeeder::class,\n DocumentsTableSeeder::class,\n RatingsTableSeeder::class,\n ]);*/\n\n $this->call(BookAppSeeder::class);\n }", "title": "" }, { "docid": "1c1dbe604dafefa8ea6b37de3208b6e8", "score": "0.7961934", "text": "public function run(){\n\n //sis\n $this->call(LevelTableSeeder::class); \n\n //admin\n $this->call(UserTableSeeder::class); \n\n //sis table\n $this->call(VisibilityTableSeeder::class);\n $this->call(LayoutTableSeeder::class);\n\n //Data Sample\n $this->call(CategoryTableSeeder::class);\n\n //factory\n factory(App\\Model\\Article::class, 50)->create();\n }", "title": "" }, { "docid": "527e2d9cc2cd2bb101b0b75e733c9870", "score": "0.7961052", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n\n if ($this->command->confirm(\"Do you want to refresh the database ?\", true)) {\n $this->command->call(\"migrate:refresh\");\n $this->command->info(\"Database was refreshed !\");\n $this->call([\n UsersSeeder::class,\n PostsSeeder::class,\n CommentsSeeder::class,\n TagTableSeeder::class,\n PostTagTableSeeder::class,\n ]);\n }\n\n // create 10 users\n // $users = factory(App\\User::class,10)->create();\n\n // // create posts\n // $posts = factory(App\\Post::class,100)->make()->each(function($post) use ($users){\n // $post->user_id = $users->random()->id;\n // $post->save();\n // });\n\n // factory(App\\Comment::class,800)->make()->each(function($comment) use ($posts){\n // $comment->post_id = $posts->random()->id;\n // $comment->save();\n // });\n\n }", "title": "" }, { "docid": "0b8bdd7089a2fc86bd1c5f24cb676591", "score": "0.79597753", "text": "public function run()\n {\n Rol::factory(3)->create();\n Categoria::factory(10)->create();\n User::factory(100)->create();\n Producto::factory(1000)->create();\n Producto_imagene::factory(100)->create();\n $this->call(Calculadora_aereaSeeder::class);\n\n }", "title": "" }, { "docid": "618f418406462b7f96f97ca7906a3055", "score": "0.7957967", "text": "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t\n\t\t/*$this->call('OffenceRegistryTableSeeder');\n\t\t\n\t\t$this->call('DriverTableSeeder');\n\t\t$this->call('StationTableSeeder');\n\t\t$this->call('PersonTableSeeder');\n\t\t$this->call('PoliceTableSeeder');\n $this->call('UsersTableSeeder');\n\t\t$this->call('VehicleTableSeeder');\n\t\t\n//\t\t$this->call('OffenceTableSeeder');\n\t\t//$this->call('OffenceEventTableSeeder');\n\n\t\t$this->call('AppTableSeeder');*/\n\n\t\t$this->call('AppTableSeeder');\n\t\t$this->call('VehicleOwnershipSeeder');\n\t\t$this->call('VehicleOwnershipSeeder');\n\t\t$this->call('LicenceClassesSeeder');\n\t}", "title": "" }, { "docid": "59b3c9f8de86e63ee5e01a2dc5d9b6d5", "score": "0.7957762", "text": "public function run()\n {\n // to run the seeder v\n // php artisan db:seed --class=ProductTableSeeder\n\n // Deleting existing data in the table\n Product::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n for ($i = 0; $i < 50; $i++) {\n Product::create([\n 'name' => $faker->name(),\n 'price' => $faker->randomDigit(),\n 'imagePath' => $faker->imageUrl(),\n 'description' => $faker->text(),\n 'category' => \"categoryName\"\n ]);\n }\n }", "title": "" }, { "docid": "d8c83bf3fa6a42755cb27b1259896705", "score": "0.79560804", "text": "public function run()\n {\n //CATEGORIES ACTIVITIES PLACES EVENTS\n $this->call(ActivityCategoriesTableSeeder::class);\n $this->call(EventCategoriesTableSeeder::class);\n $this->call(PlaceCategoriesTableSeeder::class);\n\n\n $this->call(PermissionsTableSeeder::class);\n //$this->call(PeopleTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n\n //PROVINCE -CANTON -PARISH\n $this->call(ProvinceTableSeeder::class);\n $this->call(CantonTableSeeder::class);\n $this->call(ParishTableSeeder::class);\n\n }", "title": "" }, { "docid": "23a041cffd73d96a297ddf4f9e98443f", "score": "0.79540545", "text": "public function run()\n {\n// $this->call(JoueurTableSeeder::class); // CREATE DEMO USERS FOR TEST PURPOSES\n $this->call(LettreTableSeeder::class); // CREATE ALL LETTERS REQUIRED FOR EACH NEW GAME\n $this->call(ReserveTableSeeder::class); // CREATE RESERVE FOR ALL GAME STOCK\n// $this->call(GameTableSeeder::class); // CREATE DEMO GAMES\n }", "title": "" }, { "docid": "849ba6f3058d24c5439465434ee5893b", "score": "0.79536223", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\Product::factory(10)->create();\n \\App\\Models\\Destination::factory(10)->create();\n \\App\\Models\\Album::factory(5)->create();\n // \\App\\Models\\Photo::factory()->create();\n $this->call(AdminSeeder::class);\n $this->call(RoleSeeder::class);\n $this->call(PermissionSeeder::class);\n $this->call(RolePermissionSeeder::class);\n $this->call(UserRoleSeeder::class);\n $this->call(AboutSeeder::class);\n $this->call(AddressSeeder::class);\n\n }", "title": "" }, { "docid": "5b28d0e27f54215280ff2de149c78eab", "score": "0.7953141", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n $this->call(PacientesTableSeeder::class);\n $this->call(OdontologosTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n $this->call(MediodepagosTableSeeder::class);\n $this->call(TratamientosTableSeeder::class);\n $this->call(ProductosTableSeeder::class);\n }", "title": "" }, { "docid": "e08f286302e90c11ccf645cb5aebcf13", "score": "0.7953", "text": "public function run()\n {\n DatabaseSeeder::truncateTable('users');\n DatabaseSeeder::truncateTable('records');\n DatabaseSeeder::truncateTable('statuses');\n DatabaseSeeder::truncateTable('title_user');\n DatabaseSeeder::truncateTable('avatar_user');\n DatabaseSeeder::truncateTable('friends');\n DatabaseSeeder::truncateTable('friends_request');\n \n for($i=1;$i<11;$i++){\n $user = new User();\n $user->name = 'name' . $i;\n $user->email = \"mail\" . $i;\n $user->password = \"pass\" . $i;\n $user->save();\n }\n \n for($i=1;$i<4;$i++){\n $user = User::find($i);\n $user->requests()->save(User::find($i+1));\n }\n $user = User::find(2);\n $user->accept(1);\n\n }", "title": "" }, { "docid": "b94332c3587e1d098d2437b9f04c1769", "score": "0.795239", "text": "public function run()\n {\n $this->call(AEMTypesSeeder::class);\n $this->call(SectorSeeder::class);\n $this->call(LadaSeeder::class);\n $this->call(CountrySeeder::class);\n $this->call(EnterprisesStatusSeeder::class);\n $this->call(EnterpriseTypesSeeder::class);\n $this->call(InitialDataSeeder::class);\n factory(App\\User::class, 10)->create();\n factory(App\\Commercial::class, 10)->create();\n // $this->call(UserTableSeeder::class);\n }", "title": "" }, { "docid": "f9c7964129c30e1a1eaa4d7bb36dabc7", "score": "0.7952274", "text": "public function run()\n {\n $this->call([\n PermissionSeed::class,\n RoleSeed::class,\n UserSeed::class,\n HeaderSeed::class,\n SearchSeeder::class,\n MenuSeed::class,\n CategorySeeder::class,\n SubCategorySeeder::class,\n HomeCatSeeder::class,\n BoimelaCatSeeder::class,\n BookAuthorSeeder::class,\n BookPublisherSeeder::class,\n BookSeeder::class,\n ReviewSeeder::class,\n FooterFirstSeeder::class,\n FooterSecondSeeder::class,\n FooterThirdSeeder::class,\n FooterFourthSeeder::class,\n ]);\n }", "title": "" }, { "docid": "ff555f36fcaa26b0447d6a67d0b37ed6", "score": "0.79521805", "text": "public function run()\n /**\n * Calls the different seed tables to the database\n */\n {\n $this->call(InventoryTableSeeder::class);\n $this->call(MealsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "a914d5a4891389f21097297db637568a", "score": "0.7947959", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call([\n ProductsTableSeeder::class,\n DrinksTableSeeder::class,\n BbqTableSeeder::class,\n AddonsTableSeeder::class,\n AddonOptionsTableSeeder::class,\n UsersTableSeeder::class,\n ActionsTableSeeder::class,\n PricesTableSeeder::class,\n ]); \n }", "title": "" }, { "docid": "7101ebf7813dad7a772ad63e3b5aaa8c", "score": "0.79475886", "text": "public function run()\n {\n \t$this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n\n factory(App\\Exam::class, 15)->create();\n for ($j=1; $j < 16; $j++) { \n for ($i=1; $i < 11; $i++) { \n $pregunta = new App\\Pregunta();\n $pregunta->enunciado = \"Pregunta #\".$i;\n $pregunta->respuestaA = \"respuestaA #\".$i;\n $pregunta->respuestaB = \"respuestaB #\".$i;\n $pregunta->respuestaC = \"respuestaC #\".$i;\n $pregunta->respuestaD = \"respuestaD #\".$i;\n $pregunta->esCorrecto = \"respuestaA #\".$i;\n $pregunta->exam_id = $j;\n $pregunta->save();\n }\n }\n\n factory(App\\SaveExam::class,60)->create();\n factory(App\\SaveGame::class,100)->create();\n }", "title": "" }, { "docid": "4e4b061f51a6511c2e855cbc035e2f0a", "score": "0.7947315", "text": "public function run()\n {\n Model::unguard();\n\n // $this->call(UserTableSeeder::class);\n \n \n //$this->call(ClienteSeeder::class);\n //$this->call(MarcaSeeder::class);\n //$this->call(MotorSeeder::class);\n //$this->call(TipoPagoSeeder::class);\n //$this->call(TipoVehiculoSeeder::class);\n //$this->call(TransmisionSeeder::class);\n //$this->call(ModeloSeeder::class);\n //$this->call(VehiculoSeeder::class);\n //$this->call(StockVehiculoSeeder::class);\n //$this->call(OrdenCompraSeeder::class);\n //$this->call(VentaVehiculoSeeder::class);\n $this->call(CuotaSeeder::class);\n \n \n Model::reguard();\n \n }", "title": "" }, { "docid": "cfa6c767bcc2cda34ee4f4f371246de0", "score": "0.7946981", "text": "public function run()\n {\n\n // Seed du premier image comme slide\n Slide::create([\n 'image' => '/default-slide.jpg'\n ]);\n\n // Seed du directeur des programs\n Team::create([\n 'lastname' => 'Balde',\n 'firstname' => 'Mrs',\n 'job' => 'Director of Program',\n 'image' => '/default.jpg'\n ]);\n\n // Seed du mot de bienvenue\n Word::create([\n 'content' => 'Ceci est un texte obtenu a partir du seed des donnes',\n 'team_id' => 1,\n ]);\n\n // Seed des infos concernant BBC ( address, BP, phone)\n Info::create([\n 'phone' => \"+221 33 869 25 00\",\n 'address' => \"Dakar Mermoz\",\n 'email' => \"[email protected]\",\n 'bp' => \"21784\"\n ]);\n\n // Seed du compte d'administrateur\n Admin::create([\n 'name' => \"Philia Schiemen\",\n 'email' => \"[email protected]\",\n 'email_verified_at' => now(),\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password\n 'remember_token' => Str::random(10),\n ]);\n\n $this->call(ModalSeeder::class);\n $this->call(SlugSeeder::class);\n\n }", "title": "" }, { "docid": "ef22ac9ac273db88c1137f51b15585ca", "score": "0.79462725", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(categoriesSeeder::class);\n }", "title": "" }, { "docid": "a5e13e774cf97619844d41cf6c0e57ef", "score": "0.7946054", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(RoleTableSeeder::class);\n \t \t$this->call(UserTableSeeder::class);\n $this->call(VocabularyTableSeeder::class);\n $this->call(AddressTableSeeder::class);\n $this->call(CategorychiTableSeeder::class);\n $this->call(SidebarTableSeeder::class);\n $this->call(VocabularyTableSeeder::class);\n $this->call(AddressTableSeeder::class);\n\n }", "title": "" }, { "docid": "22387e81603dc11579f07ccb67f492de", "score": "0.7945318", "text": "public function run()\n {\n //disable foreign key check for this connection before running seeders\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n //delete plaintes table records\n DB::table('plaintes')->truncate();\n //insert some dummy records\n DB::table('plaintes')->insert(array(\n array('nom_plainte'=>trans('plainte.plainte_1'), 'created_at' => date('Y-m-d H:i:s')),\n array('nom_plainte'=>trans('plainte.plainte_2'), 'created_at' => date('Y-m-d H:i:s')),\n array('nom_plainte'=>trans('plainte.plainte_3'), 'created_at' => date('Y-m-d H:i:s')),\n array('nom_plainte'=>trans('plainte.plainte_4'), 'created_at' => date('Y-m-d H:i:s')),\n array('nom_plainte'=>trans('plainte.plainte_5'), 'created_at' => date('Y-m-d H:i:s')),\n array('nom_plainte'=>trans('plainte.plainte_6'), 'created_at' => date('Y-m-d H:i:s')),\n array('nom_plainte'=>trans('plainte.plainte_7'), 'created_at' => date('Y-m-d H:i:s')),\n\n ));\n\n // supposed to only apply to a single connection and reset it's self\n // but I like to explicitly undo what I've done for clarity\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "3309a4ba43d798fa03cc854392c0b6fa", "score": "0.79422385", "text": "public function run()\n {\n $this->call(FinalStatusesTableSeeder::class);\n $this->call(DeadLineScheduleTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n // factory(App\\User::class, 35)->create();\n // factory(App\\RoleUser::class, 70)->create();\n $this->call(PositionsTableSeeder::class);\n // factory(App\\Lecturer::class, 15)->create();\n $this->call(TopicsTableSeeder::class);\n // factory(App\\LecturerTopic::class, 15)->create();\n // factory(App\\FinalStudent::class, 15)->create();\n // factory(App\\RecomendationTitle::class, 25)->create();\n // factory(App\\RecomendationTopic::class, 30)->create();\n }", "title": "" }, { "docid": "e3596d30a1184558e4319e64c365db64", "score": "0.7941492", "text": "public function run()\n {\n Schema::disableForeignKeyConstraints();\n \n \t$this->call([\n\t\t\tMenusTableSeeder::class,\n MenuItemsTableSeeder::class,\n CategoriesTableSeeder::class,\n PostsTableSeeder::class,\n PagesTableSeeder::class,\n\t ]);\n Schema::enableForeignKeyConstraints();\n }", "title": "" }, { "docid": "e955ebcd9771411350e52634656bd891", "score": "0.794046", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(UrgenciaTableSeeder::class);\n $this->call(DepartamentosTableSeeder::class);\n $this->call(EstadoProjetosTableSeeder::class);\n $this->call(EstadoIntervencoesTableSeeder::class);\n $this->call(TipoPicagensTableSeeder::class);\n $this->call(TipoNotificacoesTableSeeder::class);\n $this->call(JustificacoesTableSeeder::class);\n $this->call(NivelAcessoTableSeeder::class);\n $this->call(LicenciamentoSeeder::class);\n\n\n \n \n }", "title": "" }, { "docid": "a05c81806ac733a0277512cdef826fef", "score": "0.7940385", "text": "public function run() {\n if (App::environment() === 'production') {\n exit('We are in production mode. Cannot seed database. Can be overriden using --env attribute');\n }\n\n $this->truncateTables(); \n\n // Model::unguard() does temporarily disable the mass assignment\n // protection of the model, so you can seed all model properties.\n // A mass-assignment vulnerability occurs when a user passes an unexpected\n // HTTP parameter through a request, and that parameter changes a column\n // in your database you did not expect. For example, a malicious user\n // might send an is_admin parameter through an HTTP request, which is\n // then mapped onto your model's create method, allowing the user to\n // escalate themselves to an administrator.\n Model::unguard();\n\n $this->call(RolesTableSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(NotesTableSeeder::class);\n\n Model::reguard();\n }", "title": "" }, { "docid": "881f40b84483a8a2cdc7654d5dc236fa", "score": "0.7939351", "text": "public function run()\n {\n $this->call([\n // Home\n NavlinkSeeder::class,\n HeadtiltleSeeder::class,\n SecondtitleSeeder::class,\n SocialiconesSeeder::class,\n // About + all titles\n SectiontiltleSeeder::class,\n AboutdescriptionSeeder::class,\n AboutimgSeeder::class,\n AboutliSeeder::class,\n // Skills\n SkillSeeder::class,\n // Portfolio\n PortfolioliSeeder::class,\n PortfolioimgSeeder::class,\n ContacticoneSeeder::class,\n // Contact\n ContactformSeeder::class,\n \n\n\n ]);\n \n }", "title": "" }, { "docid": "1fe6240204d1c7e554cd11adf4e9c84e", "score": "0.79370344", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n User::truncate();\n Product::truncate();\n\n $usersQuantity = 100;\n $productsQuantity = 100;\n\n factory(User::class, $usersQuantity)->create();\n factory(Product::class, $productsQuantity)->create();\n }", "title": "" } ]
fa09e14d8c69affc7253e46906d01db1
Find food method, given a path
[ { "docid": "d349e7849cefe8f71edf156a65f1ece6", "score": "0.5480369", "text": "private function findFood($path)\n {\n $yumyum = Finder::create()\n ->in($path)\n ->name('*.txt')\n ->depth(0)\n ->filter(function (SplFileInfo $file) {\n return $file->isReadable();\n })\n ->sortByName()\n ;\n\n $food = array();\n foreach ($yumyum as $yum) {\n $food[] = basename($yum->getRelativePathname(), '.txt');\n }\n\n return $food;\n }", "title": "" } ]
[ { "docid": "96db3dbb3a958dd5602489bcbc0c8104", "score": "0.57746243", "text": "protected function _findNext($method, $path)\n {\n while ($this->_lastChildIndex < count($this->_children)) {\n $child = $this->_children[$this->_lastChildIndex];\n $matchesMethod = count(array_intersect([ '*', $method ], $child->methods)) != 0;\n $matchesPath = Path::glob_match($child->_getFullPath(), $path, $child->_strict);\n if ($matchesMethod && $matchesPath) {\n ++$this->_lastChildIndex;\n return $child;\n }\n ++$this->_lastChildIndex;\n }\n if ($this->_parent != null) {\n return $this->_parent->_findNext($method, $path);\n }\n ++$this->_lastChildIndex;\n return null;\n }", "title": "" }, { "docid": "e807a2b10c52411d98305f5bb9e8625c", "score": "0.5717061", "text": "public function lookupPath($path);", "title": "" }, { "docid": "6d2e81435e8346e0e1d6c599a32a6aac", "score": "0.56933564", "text": "private function findMatchRoute($method, $path)\r\n\t{\r\n\t\tforeach ($this->routes as $key => $route) {\r\n\t\t\t\r\n\t\t\tif($route->match($method, $path)){\r\n\t\t\t\treturn $route;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "d1af7ceb1c346c38819b126f2c93448e", "score": "0.5573043", "text": "protected function find_route($path) {\r\n\t\tif ($path === '') {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t$best_matching_route = null;\r\n\t\t$best_weight = IRoute::WEIGHT_NO_MATCH;\r\n\r\n\t\tforeach ($this->controllers as $controller) {\r\n\t\t\t$routes = $controller->get_routes();\r\n\t\t\tforeach ($routes as $route) {\r\n\t\t\t\t$weight = $route->weight_against_path($path);\r\n\t\t\t\t//print $route->identify() . ': ' . $weight . '..' . $best_weight . '<br />';\r\n\t\t\t\tif ($weight < $best_weight) {\r\n\t\t\t\t\t$best_matching_route = $route;\r\n\t\t\t\t\t$best_weight = $weight;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn $best_matching_route;\r\n\t}", "title": "" }, { "docid": "a16afe1f504849891ccbeed36a3559f1", "score": "0.54752994", "text": "public function search(string $path)\n {\n //TODO\n }", "title": "" }, { "docid": "71d9d01f5bb243782de69aede7a680c5", "score": "0.5475187", "text": "public function guess($path);", "title": "" }, { "docid": "2cc6fce07aa8ecb87e4d5f334a459bbb", "score": "0.5446486", "text": "public function matchPath($path);", "title": "" }, { "docid": "33fb0bc74396bc7c93eaef95cf44d4d7", "score": "0.54286385", "text": "public function getPathMatcher();", "title": "" }, { "docid": "f4a00bd4e6465c26fedd1083b963c71d", "score": "0.5403975", "text": "public abstract function getAction($path);", "title": "" }, { "docid": "c6571c99152fac6f2bd93d3b2151de1d", "score": "0.53926504", "text": "public function testFindPath()\n {\n $nodes = $this->table->find('path', ['for' => 9]);\n $this->assertEquals([1, 6, 9], $nodes->extract('id')->toArray());\n\n $nodes = $this->table->find('path', ['for' => 10]);\n $this->assertEquals([1, 6, 10], $nodes->extract('id')->toArray());\n\n $nodes = $this->table->find('path', ['for' => 5]);\n $this->assertEquals([1, 2, 5], $nodes->extract('id')->toArray());\n\n $nodes = $this->table->find('path', ['for' => 1]);\n $this->assertEquals([1], $nodes->extract('id')->toArray());\n\n // find path with scope\n $table = TableRegistry::get('MenuLinkTrees');\n $table->addBehavior('Tree', ['scope' => ['menu' => 'main-menu']]);\n $nodes = $table->find('path', ['for' => 5]);\n $this->assertEquals([1, 3, 4, 5], $nodes->extract('id')->toArray());\n }", "title": "" }, { "docid": "3ce72591ad9f656273088c534c33d338", "score": "0.53303754", "text": "protected abstract function path();", "title": "" }, { "docid": "336f391aa1b482772ed5ce263d34866e", "score": "0.53013295", "text": "public function search($uriPath,$method)\n { \n // Get the route table from the registry; then, get the table records from the retrieved route table\n \n $routeTable = $this->registry;\n $records = $routeTable->getRouteRecords();\n \n // Find the default route, if any, and save it before attempting to search for any other routes. In case the URI path in question is not found, the default route shall be fallen back onto. To do this, walk through the table records in search for the default route\n \n $foundDefaultRoute = false;\n foreach ($records as $name=>$route) {\n if (strtolower($name) == strtolower(DEFAULT_ROUTE_NAME)) {\n $foundDefaultRoute = true;\n $defaultRoute = $route;\n break;\n }\n }\n \n // In the following code paragraph: for the given URI, find the route to which the URI is mapped.\n \n $args = array();\n $foundOptionalRoute = false;\n foreach ($records as $name=>$route) {\n if ( $this->match( $uriPath, $route->getPath(), $route->getCaseSensitivity() ) ) {\n if (strtolower($route->getMethod()) == strtolower($method)) {\n $foundOptionalRoute = true; // yes, found it!\n $optionalRoute = $route;\n $args = $this->getArgs($uriPath, $route->getPath());\n break;\n }\n }\n }\n \n // Return found route. However, if no route was found, then return default route. And if there is no default route, return null.\n \n if ($foundOptionalRoute) {\n $controller = new \\Underwear\\Core\\Controller();\n $controller->setName( $optionalRoute->getController() );\n $controller->setAction( $optionalRoute->getAction() );\n $controller->setArgs( $args );\n }\n else {\n if ($foundDefaultRoute) {\n $controller = new \\Underwear\\Core\\Controller();\n $controller->setName( $defaultRoute->getController() );\n $controller->setAction( $defaultRoute->getAction() );\n $controller->setArgs( array() );\n }\n else {\n $controller = null;\n }\n }\n \n return $controller;\n \n }", "title": "" }, { "docid": "d99ece84d63c23b6eeb3a249fbe1c431", "score": "0.52705085", "text": "public static function find( $path ) \n\t{\n\t\t// the there is always a Controller suffix\n\t\t$path .= 'Controller';\n\t\t\n\t\t// get the class\n\t\t$class = str_replace( array( '/', '::' ), array( '_', '\\\\' ), $path );\n\t\t\n\t\t// return the class name\n\t\treturn $class;\n\t}", "title": "" }, { "docid": "61864d00ea6657de1acf07cf2a2586db", "score": "0.5223663", "text": "function select_search_method($method, $title, $category, $tag){\n switch($method){\n\n case 'title-category-tag' : $result = retrieve_by_all($title, $category, $tag); break;\n\n case 'title-category' : $result = retrieve_by_title_category($title, $category); break;\n\n case 'title-tag' : $result = retrieve_by_title_tag($title, $tag); break;\n\n case 'category-tag' : $result = retrieve_by_category_tag($category, $tag); break;\n\n case 'title' : $result = retrieve_by_title($title); break;\n\n case 'category' : $result = retrieve_by_category($category); break;\n\n case 'tag' : $result = retrieve_by_tag($tag); break;\n\n default : break;\n }\n\n return $result;\n}", "title": "" }, { "docid": "a9d88a72ce022059e97d76b13478f0de", "score": "0.5172239", "text": "public static function getAction($path = NULL, $method = NULL)\r\n\t{\r\n\t\t//assign the request path and method\r\n\t\t//This means that an empty getAction() request\r\n\t\t//attempts to get the current path and current method\r\n\t\tif(!$path) $path = \\Request::path();\r\n\t\tif(!$method) $method = \\Request::method();\r\n\r\n\t\t//Replace numbers with an *\r\n\t\t//this allows for wildcard names\r\n\t\t//Just put '*' wherever a number would be when registering the name\r\n\t\t//Ex: (\" home/user/edit/* \")\r\n\t\t//Also extracts the value it's replacing to store in the log\r\n\t\tpreg_match('/[0-9]+/', $path, $extract);\r\n\t\t$extract = intval(implode('', $extract));\r\n\t\t$path = preg_replace('/[0-9]+/', '*', $path);\r\n\r\n\t\t//This looks for word-based wildcards. You can\r\n\t\t//register something like, \" home/noun/* \"\r\n\t\t//and this chunk of code will look at the path and if it finds\r\n\t\t//something like \" home/noun/action \" it will replace ACTION with *\r\n\t\t//thus matching it and returning a name.\r\n\t\t$components = explode('/', $path);\r\n\t\t$wildcard = $components[count($components)-1];\r\n\t\t$components[count($components)-1] = '*';\r\n\t\t$alternative = implode('/', $components);\r\n\t\t\r\n\t\t//Attempt to find a match within the registered names\r\n\t\t$results = self::findMatch($path, $method);\r\n\t\t$results->extracted = (empty($extract)) ? null : array('GET' => $extract);\r\n\t\t\r\n\t\t//If the find fails to find something, it's going to attempt to \r\n\t\t//replace the wildcard, and search again. Doing it in this order stops\r\n\t\t//certain issues, like \" home/noun/action/something \" would be replaced\r\n\t\t//with \" home/noun/*/something \" in the alternative, and wouldn't be found\r\n\t\t//as a match, so it needs to search for the unmodified name first.\r\n\t\t//This also means you could register \" home/noun/specific \" AND \" home/noun/* \"\r\n\t\t//and it would try to match the first, and fallback to the second if nothing was found.\r\n\t\t$alt_results = new Action();\r\n\t\tif(!$results->match)\r\n\t\t{\r\n\t\t\t$alt_results = self::findMatch($alternative, $method);\r\n\t\t\t$alt_results->wildcard = $wildcard;\r\n\t\t\t$alt_results->extracted = (empty($extract)) ? null : array('GET' => $extract);\r\n\t\t}\r\n\r\n\t\t//Sends back the wildcard match if it was matched, otherwise send back the original,\r\n\t\t//which will contain some default values if no match was found.\r\n\t\treturn (isset($alt_results->match) && $alt_results->match) ? $alt_results : $results;\r\n\t}", "title": "" }, { "docid": "6f02ff01ac636694dda0890f5afeb05a", "score": "0.5167702", "text": "public function target($verb, $path) {\n $match= $verb.$path;\n foreach ($this->patterns as $pattern => $delegate) {\n if (preg_match($pattern, $match, $matches)) return [$delegate, $matches];\n }\n return null;\n }", "title": "" }, { "docid": "1f91e69df9ac7faa3b25ac613f56e9b9", "score": "0.5151133", "text": "public function findMethod(string $name): array|null;", "title": "" }, { "docid": "0e7e82864e46eb6ff9316b265744cda6", "score": "0.5146437", "text": "abstract function getPath();", "title": "" }, { "docid": "0e7e82864e46eb6ff9316b265744cda6", "score": "0.5146437", "text": "abstract function getPath();", "title": "" }, { "docid": "c9868bf9e0901a2ab2ec9fd22b6c68e3", "score": "0.514208", "text": "private function _getGuessAction(){\n\t\t$s = $this->getPath();\n\t\treturn $this->polishAction($s);\n\t}", "title": "" }, { "docid": "7791bf10a1a280ed52958843e0789cd0", "score": "0.5119424", "text": "public function execute($method, $path, $request) {\n $matchedParams = [];\n\n if (\n $this->path !== '*' &&\n !preg_match($this->pathRegex, $path, $matchedParams)\n ) {\n return null;\n }\n\n $params = [];\n\n for ($i = 1; $i < count($matchedParams); $i++) {\n if ($this->params[$i - 1]['type'] === 'i') {\n $params[$this->params[$i - 1]['name']] = intval(\n $matchedParams[$i]\n );\n } elseif ($this->params[$i - 1]['type'] === 'n') {\n $params[$this->params[$i - 1]['name']] = doubleval(\n $matchedParams[$i]\n );\n } else {\n $params[$this->params[$i - 1]['name']] = $matchedParams[$i];\n }\n }\n\n $request['route'] = $this;\n $request['params'] = $params;\n\n $targets = $this->getTargets();\n\n $next = null;\n\n if (count($targets) > 1) {\n $lastTarget = 0;\n\n $next = function ($data) use ($targets, &$lastTarget, &$next) {\n $_next = null;\n\n $lastTarget++;\n\n if (count($targets) - $lastTarget > 1) {\n $_next = $next;\n }\n\n return $targets[$lastTarget]($data, $_next);\n };\n }\n\n return $targets[0]($request, $next);\n }", "title": "" }, { "docid": "1a40aed23b4c3a04301ba4079aee0708", "score": "0.51028174", "text": "abstract protected function _path($path);", "title": "" }, { "docid": "8b02975fe398775ec759065b4b4adaf2", "score": "0.5080564", "text": "protected static function resolve_star($path, $type)\n\t{\n\t\t$that = static::current();\n \n\t\tif (is_dir($f = $that->base_dir . $type . '/' . substr($path, 0, -1)))\n\t\t{\n\t\t\t$fs = \\File::read_dir($f);\n\n\t\t\tif ( ! empty($fs))\n\t\t\t{\n\t\t\t\tcall_user_func(array('static', $type), static::key_collapse($fs));\n\t\t\t}\n }\n\t}", "title": "" }, { "docid": "9a3cb73eb92e46be236ff4c1a0b002b3", "score": "0.5075864", "text": "abstract function getMethod();", "title": "" }, { "docid": "49161c0aa8a3622e1162135b30d9d56f", "score": "0.50588095", "text": "public abstract function isMatch($path);", "title": "" }, { "docid": "f180bd63c2e5e63d17b6d7556a455abd", "score": "0.50302315", "text": "function getPath();", "title": "" }, { "docid": "4a21944d4cd88069e37b6c89434b5675", "score": "0.50286585", "text": "private function GetCostPath($path=[])\n {\n $res = 0;\n for ($i=0; $i < count($path)-1; $i++)\n {\n $res = $res + $this->GetCostByNames($path[$i],$path[$i+1]);\n };\n return $res;\n }", "title": "" }, { "docid": "05f56d8489d7c57fbc9b149114673e14", "score": "0.5028601", "text": "public function locate(RemoteMethod $remoteMethod, array $args = array());", "title": "" }, { "docid": "fdcc4464e9e00cd40b464ca41fd7ab07", "score": "0.5024546", "text": "private function getFinder()\n {\n return new Davzie\\ProductCatalog\\RouteFinder( $this->products , $this->categories , $this->collections );\n }", "title": "" }, { "docid": "a75f34784ae77723d672c9bfb7930933", "score": "0.5014395", "text": "public function findOneByPath($path)\n {\n // load and return the category with the passed path\n $this->categoryByPathStmt->execute(array(MemberNames::PATH => $path));\n return $this->categoryByPathStmt->fetch(\\PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "646ac3db6a7a6d4d4c3ecd243b856fd7", "score": "0.5012057", "text": "public function handle($path = null)\n {\n if (is_null($path)) {\n return $this->hasMethod;\n }\n if (!$this->hasMethod) {\n return false;\n }\n\n return $this->getFromMethod($path);\n }", "title": "" }, { "docid": "17a1f595e6a5780a42fd511fd9d64a79", "score": "0.49732053", "text": "public function setMethod($path)\n {\n $methods = [\n 'item' => 'taobao.tbk.item.get',\n 'item.recommend' => 'taobao.tbk.item.recommend.get',\n 'item.info' => 'taobao.tbk.item.info.get',\n 'item.coupon' => 'taobao.tbk.item.coupon.get',\n 'item.click' => 'taobao.tbk.item.click.extract',\n 'item.convert' => 'taobao.tbk.item.convert',\n 'item.share.convert' => 'taobao.tbk.item.share.convert',\n 'atb.items' => 'taobao.atb.items.detail.get',\n 'shop' => 'taobao.tbk.shop.get',\n 'shop.recommend' => 'taobao.tbk.shop.recommend.get',\n 'shop.convert' => 'taobao.tbk.shop.convert',\n 'shop.share.convert' => 'taobao.tbk.shop.share.convert',\n 'uatm.event' => 'taobao.tbk.uatm.event.get',\n 'uatm.event.item' => 'taobao.tbk.uatm.event.item.get',\n 'uatm.favorites.item' => 'taobao.tbk.uatm.favorites.item.get',\n 'uatm.favorites' => 'taobao.tbk.uatm.favorites.get',\n 'ju' => 'taobao.tbk.ju.tqg.get',\n 'spread' => 'taobao.tbk.spread.get',\n 'itemid.coupon' => 'taobao.tbk.itemid.coupon.get',\n 'data.report' => 'taobao.tbk.data.report',\n 'order' => 'taobao.tbk.order.get',\n 'cooperate.tgg' => 'taobao.tbk.cooperate.tqg.get',\n 'rebate.order' => 'taobao.tbk.rebate.order.get',\n 'rebate.auth' => 'taobao.tbk.rebate.auth.get',\n 'travel.item' => 'taobao.tbk.travel.item.get',\n\n 'dg' => 'taobao.tbk.dg.item.coupon.get',\n 'coupon' => 'taobao.tbk.coupon.get',\n 'tpwd.create' => 'taobao.tbk.tpwd.create',\n 'content' => 'taobao.tbk.content.get',\n\n 'wireless.share.tpwd' => 'taobao.wireless.share.tpwd.create'\n\n ];\n\n if (! array_key_exists($path, $methods)) {\n throw new \\Exception(\"The ${path} of methods is not found.\");\n }\n\n $this->method = $methods[$path];\n }", "title": "" }, { "docid": "1ee83b91dba6fad890ffdeaf109e99e5", "score": "0.49720907", "text": "public function find(string $path)\n \t{\n \t\tif (!$regex = RegexHelper::GetCache('template-find-path')) {\n \t\t\t$regex = new RegexHelper('/\\/?(\\w+)(?:\\[(?:(\\d+)|(?<quote>[\\'\"])((?:(?!\\k<quote>)[^\\\\\\\\\\\\\\\\]|\\\\\\\\.)+)\\k<quote>)\\])?/', 'template-find-path');\n \t\t}\n\n \t\t// Check the path is valid\n \t\tif ($regex->combination($path)) {\n \t\t\t$result = [$this];\n \t\t\t$pathClips = $regex->extract($path);\n\n \t\t\t// Find the entity by every path deeply\n \t\t\tforeach ($pathClips as $clip) {\n \t\t\t\t$blockName = $clip[1];\n \t\t\t\t$entityFound = [];\n\n \t\t\t\t// Search the entity in the entity list\n \t\t\t\tforeach ($result as $entity) {\n \t\t\t\t\tif ($entities = $entity->getEntities($blockName)) {\n \t\t\t\t\t\tif (\\count($clip) > 2 && $filter = isset($clip[4]) ? $clip[4] : $clip[2]) {\n \t\t\t\t\t\t\t// Convert the non-escaped wildcard\n \t\t\t\t\t\t\tif (!$regex = RegexHelper::GetCache('template-wildcard')) {\n \t\t\t\t\t\t\t\t$regex = new RegexHelper('/(?<!\\\\\\\\)(?:\\\\\\\\\\\\\\\\)*\\\\*/', 'template-wildcard');\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t$filter = '/^' . $regex->replace('.*?', $filter) . '$/';\n\n \t\t\t\t\t\t\t// If the id is given, filter the matched entity list\n \t\t\t\t\t\t\tforeach ($entities as $id => $entity) {\n \t\t\t\t\t\t\t\tif (preg_match($filter, $id)) {\n \t\t\t\t\t\t\t\t\t$entityFound[] = $entity;\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t// Merge all matched entity list to current entity list\n \t\t\t\t\t\t\t$entityFound = array_merge($entityFound, $entities);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n\n \t\t\t\tif (!\\count($entityFound)) {\n \t\t\t\t\treturn [];\n \t\t\t\t}\n\n \t\t\t\t$result = $entityFound;\n \t\t\t}\n\n \t\t\treturn $result;\n \t\t}\n\n \t\treturn [];\n \t}", "title": "" }, { "docid": "93284de596ed369de9e63ba26531ffa6", "score": "0.49698645", "text": "public function find($path) {\n return $this->getTree()->find($path);\n }", "title": "" }, { "docid": "d000f0504a3106a3451990e5bde2a14f", "score": "0.4967604", "text": "public function weight_against_path($path) {\r\n \t \t//print 'WEIGHT: ' . $this->path . ' against ' . $path . ':';\r\n\r\n\t\t$ret = self::WEIGHT_NO_MATCH;\t\t\r\n\t\tif (GyroString::starts_with($path, $this->path)) {\r\n\t\t\t$tmp = new PathStack($path);\r\n\t\t\tif ($tmp->adjust($this->path)) {\r\n\t\t\t\t$ret = $tmp->count_front();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//print $ret .'<br />';\r\n\t\treturn $ret;\r\n \t}", "title": "" }, { "docid": "f56f50905d5075e55b2486a0db251679", "score": "0.49604174", "text": "function run()\n{\n if (!isset($_GET['route']))\n $route = '';\n else\n $route = $_GET['route'];\n\n if (!isset($GLOBALS['routes'][$GLOBALS['method']])) {\n return error404();\n }\n\n $routes = $GLOBALS['routes'][$GLOBALS['method']];\n\n $foundRoute = ['length' => 0];\n foreach ($routes as $searchRoute => $callback) {\n if (strpos($route, $searchRoute) === 0) {\n preg_match(\"&^{$searchRoute}(.+)?$&\", $route, $matches);\n if (strlen($searchRoute) > $foundRoute['length']) {\n $arguments = isset($matches[1]) ? explode('/', $matches[1]) : [];\n $foundRoute = [\n 'arguments' => $arguments,\n 'callback' => $callback,\n 'length' => strlen($searchRoute),\n 'path' => $searchRoute,\n ];\n }\n }\n }\n\n if ($foundRoute['length'] > 0) {\n return $foundRoute['callback']($foundRoute['arguments'], $foundRoute);\n } else {\n return error404();\n }\n}", "title": "" }, { "docid": "a013094ea22b54fdd132f58513095c7c", "score": "0.49579924", "text": "public function find(callable $find);", "title": "" }, { "docid": "4d1d1c326a965f2549920827fe92cf1e", "score": "0.49533874", "text": "function getPathParser();", "title": "" }, { "docid": "0ccc6f6fd77d2f60bfe3ea7f12e5b8e3", "score": "0.495263", "text": "function drupal_lookup_path($action, $path = '', $path_language = NULL) {\n global $language_url;\n\n static $cache, $denyAdmin;\n\n if (null === $cache) {\n $cache = array('whitelist' => variable_get('path_alias_whitelist'));\n if (null === $cache['whitelist']) {\n $cache['whitelist'] = drupal_path_alias_whitelist_rebuild();\n }\n $denyAdmin = (bool)variable_get('path_alias_admin_blacklist', true);\n }\n\n // If no language is explicitly specified we default to the current URL\n // language. If we used a language different from the one conveyed by the\n // requested URL, we might end up being unable to check if there is a path\n // alias matching the URL path.\n if (!$path_language = $path_language ? $path_language : $language_url->language) {\n $path_language = LANGUAGE_NONE;\n }\n\n if (!empty($path) && isset($cache[$path_language][$action][$path])) {\n return $cache[$path_language][$action][$path];\n }\n\n $ret = null;\n $hashLookup = redis_path_backend_get();\n\n switch ($action) {\n\n case 'wipe':\n $cache = array();\n $cache['whitelist'] = drupal_path_alias_whitelist_rebuild();\n break;\n\n case 'alias':\n if (empty($path)) {\n return false;\n }\n // Check the path whitelist, if the top_level part before the first /\n // is not in the list, then there is no need to do anything further,\n // it is not in the database.\n if (!isset($cache['whitelist'][strtok($path, '/')])) {\n return false;\n }\n // Deny admin paths.\n if ($denyAdmin && path_is_admin($path)) {\n return false;\n }\n\n $ret = $hashLookup->lookupAlias($path, $path_language);\n if (null === $ret) {\n // Original Drupal algorithm.\n // This will also update the $path_language variable so Redis will store\n // the right language (keeps track of LANGUAGE_NONE or specific language\n // so that default fallback behavior is the same that core).\n if ($path_language == LANGUAGE_NONE) {\n list ($ret, $path_language) = db_query(\"SELECT alias, language FROM {url_alias} WHERE source = :source AND language = :language ORDER BY pid DESC LIMIT 1\", array(\n ':source' => $path,\n ':language' => $path_language,\n ))->fetch(PDO::FETCH_NUM);\n } else if ($path_language > LANGUAGE_NONE) {\n list ($ret, $path_language) = db_query(\"SELECT alias, language FROM {url_alias} WHERE source = :source AND language IN (:language) ORDER BY language DESC, pid DESC LIMIT 1\", array(\n ':source' => $path,\n ':language' => array($path_language, LANGUAGE_NONE),\n ))->fetch(PDO::FETCH_NUM);\n } else {\n list ($ret, $path_language) = db_query(\"SELECT alias, language FROM {url_alias} WHERE source = :source AND language IN (:language) ORDER BY language ASC, pid DESC LIMIT 1\", array(\n ':source' => $path,\n ':language' => array($path_language, LANGUAGE_NONE),\n ))->fetch(PDO::FETCH_NUM);\n }\n // Getting here with a value means we need to cache it\n if (empty($ret)) {\n $ret = false;\n }\n $hashLookup->saveAlias($path, $ret, $path_language);\n }\n $cache[$path_language]['alias'][$path] = $ret;\n $cache[$path_language]['source'][$ret] = $path;\n break;\n\n case 'source':\n if (empty($path)) {\n return false;\n }\n // Even thought given entry is an alias, if it conflicts with an\n // existing admin path just deny any lookup.\n if ($denyAdmin && path_is_admin($path)) {\n return false;\n }\n\n $ret = $hashLookup->lookupSource($path, $path_language);\n if (null === $ret) {\n // Original Drupal algorithm.\n // This will also update the $path_language variable so Redis will store\n // the right language (keeps track of LANGUAGE_NONE or specific language\n // so that default fallback behavior is the same that core).\n if ($path_language == LANGUAGE_NONE) {\n list ($ret, $path_language) = db_query(\"SELECT source, language FROM {url_alias} WHERE alias = :alias AND language = :language ORDER BY pid DESC LIMIT 1\", array(\n ':alias' => $path,\n ':language' => LANGUAGE_NONE,\n ))->fetch(PDO::FETCH_NUM);\n } else if ($path_language > LANGUAGE_NONE) {\n list ($ret, $path_language) = db_query(\"SELECT source, language FROM {url_alias} WHERE alias = :alias AND language IN (:language) ORDER BY language DESC, pid DESC LIMIT 1\", array(\n ':alias' => $path,\n ':language' => array($path_language, LANGUAGE_NONE),\n ))->fetch(PDO::FETCH_NUM);\n } else {\n list ($ret, $path_language) = db_query(\"SELECT source, language FROM {url_alias} WHERE alias = :alias AND language IN (:language) ORDER BY language ASC, pid DESC LIMIT 1\", array(\n ':alias' => $path,\n ':language' => array($path_language, LANGUAGE_NONE),\n ))->fetch(PDO::FETCH_NUM);\n }\n // Getting here with a value means we need to cache it\n if (empty($ret)) {\n $ret = false;\n }\n $hashLookup->saveAlias($ret, $path, $path_language);\n }\n $cache[$path_language]['alias'][$ret] = $path;\n $cache[$path_language]['source'][$path] = $ret;\n break;\n }\n\n return $ret;\n}", "title": "" }, { "docid": "a19036d2656b0f21f5562bf87e4f178f", "score": "0.4943124", "text": "public function find(string $requestUri, string $method): MatchInterface;", "title": "" }, { "docid": "a23018b8f3efd84576898fedba5e0a0e", "score": "0.4942821", "text": "public function search()\n {\n if(count($this->dirs)==0 && $this->SEARCH_EVERWHERE_IF_NO_DIRS)\n $this->dirs[]= '.';\n\n foreach($this->dirs as $dir)\n self::findall(array($this,$this->_method), yii::getPathOfAlias($dir));\n }", "title": "" }, { "docid": "64658b5fbda4d1bd5c4852404c722833", "score": "0.49357328", "text": "public function getVerbPath($name);", "title": "" }, { "docid": "7e8dae15d9a90110847f61fb2d544f38", "score": "0.4927054", "text": "public function callFinder($method, array $params)\n {\n return $this->find($method, $params);\n }", "title": "" }, { "docid": "59065a755e3014efae216a66ba148e5d", "score": "0.49076116", "text": "abstract public function getPath();", "title": "" }, { "docid": "b3f3a05d8a4300093f6b8bb692e9c06a", "score": "0.49038985", "text": "static public function find($path, $file)\n\t{\n\t\t// Get the path to the file\n\t\t$fullname = $path . '/' . $file.'.php';\n\t\t// Is the path based on a stream?\n\t\tif (strpos($path, '://') === false)\n\t\t{\n\t\t\t// Not a stream, so do a realpath() to avoid directory\n\t\t\t// traversal attempts on the local file system.\n\n\t\t\t// Needed for substr() later\n\t\t\t$path = realpath($path);\n\t\t\t$fullname = realpath($fullname);\n\t\t}\n\n\t\t/*\n\t\t * The substr() check added to make sure that the realpath()\n\t\t * results in a directory registered so that\n\t\t * non-registered directories are not accessible via directory\n\t\t * traversal attempts.\n\t\t */\n\t\tif (file_exists($fullname) && substr($fullname, 0, strlen($path)) == $path)\n\t\t{\n\t\t\treturn $fullname;\n\t\t}\n\n\t\t// Could not find the file in the set of paths\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d882f947aeb2cec55783348ebc481338", "score": "0.48812756", "text": "protected function findPath($path) {\n // Transform \"Unix path\" to XPath\n $xpath = '/docman'.preg_replace('/\\/([^\\/]+)/', '/item[properties/title=\"$1\"]', $path);\n $nodeList = $this->doc->xpath($xpath);\n\n if ($nodeList === false || count($nodeList) == 0) {\n $this->exitError(\"Can't find the element \\\"$path\\\" ($xpath)\".PHP_EOL);\n } else {\n if (count($nodeList) == 1) {\n return $nodeList[0];\n } else {\n $this->exitError(\"$path ($xpath) found more than one target element\".PHP_EOL);\n }\n }\n }", "title": "" }, { "docid": "a79c05b8041296312d75ae05016e6f8c", "score": "0.4879125", "text": "public function handle($path, $method = null)\n {\n try {\n $match = false;\n foreach ($this->routes as $route) {\n if ($route->match($path, $method)) {\n $this->lastRoute = $route->getRule();\n $match = true;\n $results = $route->handle($this->app);\n }\n }\n\n if ($match) {\n return $results;\n }\n\n $this->handleInternal(\"404\");\n } catch (ForbiddenException $e) {\n $this->handleInternal(\"403\");\n } catch (NotFoundException $e) {\n $this->handleInternal(\"404\");\n } catch (InternalErrorException $e) {\n $this->handleInternal(\"500\");\n }\n }", "title": "" }, { "docid": "bf8c8e36dad5892a5785ea07b813fb02", "score": "0.48782012", "text": "public function verbPathExists($verbPath);", "title": "" }, { "docid": "ecb09a7c186579351d0e50efb4890ec1", "score": "0.4876751", "text": "function getMethod();", "title": "" }, { "docid": "7c1593640c439b36ff15f6182f03ea55", "score": "0.48675993", "text": "private function find_controller($path, $mode){\n /** @var string $root Where the files will be searched for by default */\n $root = $this->get_root($mode);\n /** @var boolean|string $file Once found, full path and filename */\n $file = false;\n /** @var string $tmp Will contain the different states of the path along searching for the file */\n $tmp = $path ? $path : '.';\n /** @var array $args Each element of the URL outside the file path */\n $args = [];\n /** @var boolean|string $plugin Name of the controller's plugin if it's inside one */\n $plugin = false;\n /** @var string $real_path The application path */\n $real_path = null;\n // We go through the path, removing a bit each time until we find the corresponding file\n while (strlen($tmp) > 0){\n // We might already know it!\n if ($this->is_known($tmp, $mode)){\n return $this->get_known($tmp, $mode);\n }\n\n // navigation (we are in dom and dom is default or we are not in dom, i.e. public)\n if ( (($mode === 'dom') && (BBN_DEFAULT_MODE === 'dom')) || ($mode !== 'dom') ){\n // Checking first if the specific route exists (through $routes['alias'])\n if ( $this->has_route($tmp) ){\n $real_path = $this->get_route($tmp);\n if ( is_file($root.$real_path.'.php') ){\n $file = $root.$real_path.'.php';\n }\n }\n // Then looks for a corresponding file in the regular MVC\n else if (file_exists($root.$tmp.'.php')){\n $real_path = $tmp;\n $file = $root.$tmp.'.php';\n }\n // Then looks for a home.php file in the corresponding directory\n else if ( is_dir($root.$tmp) && is_file($root.$tmp.'/home.php') ){\n $real_path = $tmp.'/home';\n $file = $root.$tmp.'/home.php';\n }\n // If an alternative root exists (plugin), we look into it for the same\n else if ( $this->alt_root && (strpos($tmp, $this->alt_root) === 0) ){\n $name = substr($tmp, strlen($this->alt_root)+1);\n // Corresponding file\n if ( file_exists($this->get_alt_root($mode).$name.'.php') ){\n $plugin = $this->alt_root;\n $real_path = $tmp;\n $file = $this->get_alt_root($mode).$name.'.php';\n $root = $this->get_alt_root($mode);\n }\n // home.php in corresponding dir\n else if ( is_dir($this->get_alt_root($mode).$name) && is_file($this->get_alt_root($mode).$name.'/home.php') ){\n $plugin = $this->alt_root;\n $real_path = $tmp.'/home';\n $file = $this->get_alt_root($mode).$name.'/home.php';\n $root = $this->get_alt_root($mode);\n }\n }\n // if $tmp is a plugin root index setting $this->alt_root and rerouting to reprocess the path\n else if ( isset($this->routes['root'][$tmp]) ){\n $this->set_alt_root($tmp);\n return $this->route($path, $mode);\n }\n }\n // Full DOM requested\n if ( !$file && ($mode === 'dom') ){\n // Root index file (if $tmp is at the root level)\n if ( $tmp === '.' ){\n // If file exists\n if ( file_exists($root.'index.php') ){\n $real_path = 'index';\n $file = $root.'index.php';\n }\n // Otherwise $file will remain undefined\n else{\n /** @todo throw an alert as there is no default index */\n die('Impossible to find a route');\n break;\n }\n }\n // There is an index file in a subfolder\n else if ( file_exists($root.$tmp.'/index.php') ){\n $real_path = $tmp.'/index';\n $file = $root.$tmp.'/index.php';\n }\n // An alternative root exists, we look into it\n else if ( $this->alt_root &&\n file_exists($this->get_alt_root($mode).$tmp.'/index.php')\n ){\n $plugin = $this->alt_root;\n $real_path = $tmp. '/index';\n $file = $this->get_alt_root($mode).$tmp.'/index.php';\n $root = $this->get_alt_root($mode);\n }\n // if $tmp is a plugin root index setting $this->alt_root and rerouting to reprocess the path\n else if ( isset($this->routes['root'][$tmp]) ){\n $this->set_alt_root($tmp);\n return $this->route(substr($path, strlen($tmp)+1), $mode);\n }\n }\n if ( $file ){\n break;\n }\n array_unshift($args, basename($tmp));\n $tmp = strpos($tmp, '/') === false ? '' : substr($tmp, 0, strrpos($tmp, '/'));\n if ( empty($tmp) && ($mode === 'dom') ){\n $tmp = '.';\n }\n else if ( $tmp === '.' ){\n $tmp = '';\n }\n }\n // Not found, sending the default controllers\n if ( !$file ){\n $real_path = '404';\n $file = $root.'404.php';\n }\n if ( $file ){\n return $this->set_known([\n 'file' => $file,\n 'path' => $real_path,\n 'root' => dirname($root, 2).'/',\n 'request' => $path,\n 'mode' => $mode,\n 'plugin' => $plugin,\n 'args' => $args\n ]);\n }\n // Aaaargh!\n die(bbn\\x::hdump(\"No default file defined for mode $mode $tmp\", self::$def, $this->has_route(self::$def)));\n }", "title": "" }, { "docid": "751dd2e9bffadb5a89426b4164b3d509", "score": "0.48565024", "text": "public function find($input);", "title": "" }, { "docid": "269dd8a39a606e3af7fedcef7998939c", "score": "0.48365688", "text": "public function findPathRoute()\n {\n $request = Request::create($_SERVER['REQUEST_URI'], $_SERVER['REQUEST_METHOD'], $_REQUEST, $_COOKIE, [], $_SERVER);\n\n $context = new RequestContext();\n $context->fromRequest($request);\n $matcher = new UrlMatcher($this->getRouteCollection()->findByType(PathRoute::class), $context);\n\n try {\n $parameters = $matcher->match($request->getPathInfo());\n\n if (!apply_filters('offbeatwp/route/match/url', true, $matcher)) {\n throw new Exception('Route not match (override)');\n }\n\n $route = $this->getRouteCollection()->get($parameters['_route']);\n $route->addDefaults($parameters);\n \n return $route;\n } catch (\\Exception $e) {\n return false;\n }\n }", "title": "" }, { "docid": "ca7e5aefb5223de46b1f5d2cb7d15d48", "score": "0.4816179", "text": "public function findByPath($path) {\n\t\tforeach($this->objects as $object) {\n\t\t\tif ($object->getPath() === $path) {\n\t\t\t\treturn $object;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "547304e9ec7544ed1d0905bf61cf9ead", "score": "0.47976184", "text": "public abstract function getPath();", "title": "" }, { "docid": "c923b2dc6d932db1b7d7bfddb9f562e3", "score": "0.47969067", "text": "public function path();", "title": "" }, { "docid": "c923b2dc6d932db1b7d7bfddb9f562e3", "score": "0.47969067", "text": "public function path();", "title": "" }, { "docid": "7b5f1095d494c9cd8e82674113e2fad5", "score": "0.477911", "text": "public function get($controller, $method, $path) {\n if (file_exists($path)) {\n require_once($path);\n if (is_subclass_of($controller, 'Controller')) {\n $baseController = new Controller();\n $controller = new $controller();\n }\n $method = strtok($method, '?');\n if (method_exists($controller, $method)) {\n $parameters = new ReflectionMethod($controller, $method);\n $segments = count($this->segments) - 2;\n if ($segments < 0) {\n $segments = 0;\n }\n call_user_func_array(array($controller, $method), array_splice($this->segments, 2));\n }\n else {\n echo '\\'', $method, '\\' method not found';\n }\n }\n else {\n echo '\\'', $controller, '\\' controller not found';\n }\n }", "title": "" }, { "docid": "15c0de2fe94cb1ee6a6079af5cd8fdf7", "score": "0.4776522", "text": "public function explore($path)\n\t{\n\t\t$path = substr($path, 1);\n\t\t// parse path into movements\n\t\t$path = str_replace(\n\t\t\t array('RRW', 'RW', 'LW', 'W')\n\t\t\t,array(self::TURN_AROUND, self::TURN_RIGHT , self::TURN_LEFT , self::WALK)\n\t\t\t,$path\n\t\t);\n\t\t// make all movements\n\t\tfor ($i = 0, $l = strlen($path); $i < $l; $i++) {\n\t\t\t$this->performMove((int)$path[$i]);\n\t\t}\n\t\t// turn around and re-enter\n\t\t$this->direction = ($this->direction + 2) % 4;\n\t\t$this->walk();\n\t}", "title": "" }, { "docid": "e991810fe8d00409896e99ab2ba248d9", "score": "0.47740415", "text": "function pathStart(){}", "title": "" }, { "docid": "8a8e46f85ed245bd99b7509e6eecfbb6", "score": "0.4748", "text": "public function getPathInfo($class_name){}", "title": "" }, { "docid": "dc4c63755be904a52b5e05e8d4b5d9bd", "score": "0.47443193", "text": "function findFile($class);", "title": "" }, { "docid": "5b8d035df07b9324807b54b181a148f3", "score": "0.4743187", "text": "public function __call($method, $params)\n {\n if (method_exists($this->path_builder, $method)) {\n return $this->path_builder->{$method}(...$params);\n }\n }", "title": "" }, { "docid": "635274487a31a9b7301c1de6b15b5322", "score": "0.47234476", "text": "public function path($path = null);", "title": "" }, { "docid": "50f60ca578bcaee0b3ebc93da7403e80", "score": "0.4708788", "text": "public static function find_method( $key )\n {\n $all_methods_params = OmnivaLt_Core::get_configs('method_params');\n\n foreach ( $all_methods_params as $method_name => $method_params ) {\n if ( $key == $method_name || $key == $method_params['key'] ) {\n return $all_methods_params[$method_name];\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "59c7c654086f2b9c05176b6628803f02", "score": "0.47065866", "text": "function find($parameter){}", "title": "" }, { "docid": "8d418a8e43c34092792735959b9852f8", "score": "0.47049412", "text": "function getMethod(): string;", "title": "" }, { "docid": "887a48b9cb707b89fabec54d48809aa0", "score": "0.4703858", "text": "function & getElementByPath( $path ) {\n\t\t$false\t\t\t\t=\tfalse;\n\t\t$parts\t\t\t\t=\texplode( '/', trim($path, '/') );\n\n\t\t$tmp\t\t\t\t=\t$this;\n\t\tforeach ( $parts as $node ) {\n\t\t\t$found\t\t\t=\tfalse;\n\t\t\tforeach ( $tmp->children() as $child ) {\n\t\t\t\tif ( $child->name() == $node ) {\n\t\t\t\t\t$tmp\t=\t$child;\n\t\t\t\t\t$found\t=\ttrue;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( ! $found ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif ( $found ) {\n\t\t\treturn $tmp;\n\t\t} else {\n\t\t\treturn $false;\n\t\t}\n\t}", "title": "" }, { "docid": "138be0675feddf67e1374d90511d92a1", "score": "0.47011825", "text": "public static function getAction($path){\r\n\t\t$route = false;\r\n\t\tglobal $_routingData;\r\n\t\tif (is_array($path)){\r\n\t\t\tif (!empty($_routingData['routes'])){\r\n\t\t\t\tif (in_array($path[0], $_routingData['routes'])){\r\n\t\t\t\t\t$route = $path[0];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tarray_shift($path);\r\n\t\t\tarray_shift($path);\r\n\t\t\t$actionName = empty($path[0]) ? $_routingData['defaultAction'] : $path[0];\r\n\t\t}else{\r\n\t\t\tif (!empty($_routingData['routes'])){\r\n\t\t\t\tforeach ($_routingData['routes'] as $eachRoute){\r\n\t\t\t\t\t$path = str_replace($eachRoute.'_','', $path);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn $path;\r\n\t\t}\r\n\t\treturn ($route) ? $route.\"_\".$actionName : $actionName;\r\n\t}", "title": "" }, { "docid": "8bdce8e1689d1f7266e698b88304e5f6", "score": "0.46919304", "text": "protected function getFromMethod($path)\n {\n return $this->adapter->getUrl($path);\n }", "title": "" }, { "docid": "b4be5d12b43989b361df708a714e8d50", "score": "0.46836552", "text": "public function getPath(){}", "title": "" }, { "docid": "b4be5d12b43989b361df708a714e8d50", "score": "0.46835983", "text": "public function getPath(){}", "title": "" }, { "docid": "b4be5d12b43989b361df708a714e8d50", "score": "0.46805212", "text": "public function getPath(){}", "title": "" }, { "docid": "9b21bc7bb6c1d3bb443e25eb73c2520a", "score": "0.46793512", "text": "public function get_path();", "title": "" }, { "docid": "c5e0d0558f7a672b3ed71d24cfebb7dc", "score": "0.46786183", "text": "abstract protected function getPathPostfix();", "title": "" }, { "docid": "a17b85d0e1c2e2be00cabdb4d0a46091", "score": "0.4676154", "text": "protected function __callStatic($method, $args) {\n if(preg_match('/^findBy(.+)$/', $method, $matches)) {\n return this::find(array('key' => $matches[1],\n 'value' => $args[0]));\n }\n }", "title": "" }, { "docid": "ccd89d5349dbd8622ba03cb4c7a3e9f4", "score": "0.4674218", "text": "public function getMethod();", "title": "" }, { "docid": "ccd89d5349dbd8622ba03cb4c7a3e9f4", "score": "0.4674218", "text": "public function getMethod();", "title": "" }, { "docid": "ccd89d5349dbd8622ba03cb4c7a3e9f4", "score": "0.4674218", "text": "public function getMethod();", "title": "" }, { "docid": "ccd89d5349dbd8622ba03cb4c7a3e9f4", "score": "0.4674218", "text": "public function getMethod();", "title": "" }, { "docid": "ccd89d5349dbd8622ba03cb4c7a3e9f4", "score": "0.4674218", "text": "public function getMethod();", "title": "" }, { "docid": "ccd89d5349dbd8622ba03cb4c7a3e9f4", "score": "0.4674218", "text": "public function getMethod();", "title": "" }, { "docid": "ccd89d5349dbd8622ba03cb4c7a3e9f4", "score": "0.4674218", "text": "public function getMethod();", "title": "" }, { "docid": "ccd89d5349dbd8622ba03cb4c7a3e9f4", "score": "0.4674218", "text": "public function getMethod();", "title": "" }, { "docid": "ccd89d5349dbd8622ba03cb4c7a3e9f4", "score": "0.4674218", "text": "public function getMethod();", "title": "" }, { "docid": "ccd89d5349dbd8622ba03cb4c7a3e9f4", "score": "0.4674218", "text": "public function getMethod();", "title": "" }, { "docid": "ccd89d5349dbd8622ba03cb4c7a3e9f4", "score": "0.4674218", "text": "public function getMethod();", "title": "" }, { "docid": "7744a301b262b31cc71763ec388bdee6", "score": "0.46692383", "text": "public function fetchFood()\n {\n $url = $this->getOfficialUrl();\n try {\n $domPage = $this->getDomDocument($url);\n } catch (Exception $e) {\n return false;\n }\n\n // get relevant data from DOM document\n $xpath = new DOMXPath($domPage);\n $query = \"//table[@class='menu']//tr[position()>1]\";\n $entries = $xpath->query($query, $domPage);\n $food = array();\n $sides = array();\n $action = 'dishes';\n // sometimes the category is not repeated in consecutive lines\n $prevLeftCell = '';\n foreach ($entries as $entry) {\n $leftCell = trim($xpath->query(\"td[1]\", $entry)->item(0)->nodeValue);\n $rightCell = $xpath->query(\"td[@class='beschreibung']/span[1]\", $entry)->item(0)->nodeValue;\n\n if (empty($leftCell)) {\n $leftCell = $prevLeftCell;\n }\n $prevLeftCell = $leftCell;\n\n if (preg_match('/^(Beilagen|Aktion|Bio)$/', $leftCell)) {\n $action = 'sides';\n } elseif (preg_match('/^Self-Service$/', $leftCell)) {\n $action = 'selfservice';\n } elseif (preg_match('/^Dessert$/', $leftCell)) {\n $action = 'dessert';\n } else {\n $action = 'dishes';\n }\n $prevAction = $action;\n\n if ($action == 'sides') {\n // Side dishes\n $sideDish = trim(\n preg_replace(\"/\\s+/\", ' ',\n str_replace(\"\\n\", ' ', $rightCell)\n )\n );\n $sides[] = $sideDish;\n } elseif ($action == 'dishes') {\n // Dishes\n // category name as given in the source document\n $categoryOrigName = trim(\n preg_replace(\"/\\s+/\", ' ',\n str_replace(\"\\n\", ' ', $leftCell)\n )\n );\n\n // category\n if (strpos($categoryOrigName, 'Tagesgericht') === 0) {\n $category = self::CATEGORY_NORMAL;\n } elseif (strpos($categoryOrigName, 'Biogericht') === 0) {\n $category = self::CATEGORY_ORGANIC;\n } elseif (strpos($categoryOrigName, 'Aktionsessen') === 0) {\n $category = self::CATEGORY_SPECIAL;\n } else {\n $category = self::CATEGORY_OTHER;\n }\n\n // number\n $categoryNumber = null;\n if ($category == self::CATEGORY_NORMAL ||\n $category == self::CATEGORY_ORGANIC ||\n $category == self::CATEGORY_SPECIAL) {\n $categoryNumber = preg_replace('/^\\w+(?:gericht|essen)\\s+(\\d).*$/sm', '\\1', $categoryOrigName);\n }\n\n // food name\n $foodName = trim(\n preg_replace(\"/\\s+/\", ' ',\n str_replace(\"\\n\", ' ', $rightCell)\n )\n );\n $food[] = array(\n 'category' => $category,\n 'categoryOrigName' => $categoryOrigName,\n 'categoryNumber' => $categoryNumber,\n 'name' => $foodName\n );\n } elseif ($action == 'selfservice') {\n // Self-Service\n // food name\n $foodName = trim(\n preg_replace(\"/\\s+/\", ' ',\n str_replace(\"\\n\", ' ', $rightCell)\n )\n );\n $food[] = array(\n 'category' => self::CATEGORY_SELFSERVICE,\n 'categoryNumber' => null,\n 'name' => $foodName\n );\n } elseif ($action == 'dessert') {\n // Dessert\n // food name\n $foodName = trim(\n preg_replace(\"/\\s+/\", ' ',\n str_replace(\"\\n\", ' ', $rightCell)\n )\n );\n $food[] = array(\n 'category' => self::CATEGORY_DESSERT,\n 'categoryNumber' => null,\n 'name' => $foodName\n );\n }\n }\n\n $this->sides = $sides;\n $this->food = $food;\n\n return (count($this->food) != 0);\n }", "title": "" }, { "docid": "780ce88dedc4a6ee1596d11e157993a3", "score": "0.46458727", "text": "function whicha($pr)\n{\n$path = exa(\"which $pr\");\nif(!empty($path)) { return $path; } else { return $pr; }\n}", "title": "" }, { "docid": "d67818869f90cef6099f76138a640142", "score": "0.4640898", "text": "public function getVerbPaths();", "title": "" }, { "docid": "2d4025e764f5e3ea8a940a9dcc82d4cf", "score": "0.4620447", "text": "public function get($path);", "title": "" }, { "docid": "2d4025e764f5e3ea8a940a9dcc82d4cf", "score": "0.4620447", "text": "public function get($path);", "title": "" }, { "docid": "2d4025e764f5e3ea8a940a9dcc82d4cf", "score": "0.4620447", "text": "public function get($path);", "title": "" }, { "docid": "2d4025e764f5e3ea8a940a9dcc82d4cf", "score": "0.4620447", "text": "public function get($path);", "title": "" }, { "docid": "2d4025e764f5e3ea8a940a9dcc82d4cf", "score": "0.4620447", "text": "public function get($path);", "title": "" }, { "docid": "2d4025e764f5e3ea8a940a9dcc82d4cf", "score": "0.4620447", "text": "public function get($path);", "title": "" }, { "docid": "a757b9fc9ce342d4b83e60fb95f65ebb", "score": "0.46117243", "text": "abstract protected function get_path( $item_id, $is_mobile = false );", "title": "" }, { "docid": "2356e13437a273fcf0b5746cb143f999", "score": "0.4598677", "text": "abstract protected function find();", "title": "" }, { "docid": "a3e0f245ef9fa7baf78e4d4c4b0493ca", "score": "0.45870513", "text": "private function searchThroughRoutes(string $value, String $type, string $method = null)\n {\n\n if ($method !== null) {\n foreach ($this->routes[$method] as $key => $route) {\n if (array_key_exists($type, $route) && $route[$type] === $value) {\n return $route['url'];\n }\n }\n } else {\n foreach ($this->routes as $key => $rest) {\n foreach ($rest as $innerKey => $innerRoute) {\n if (array_key_exists($type, $innerRoute) && $innerRoute[$type] === $value) {\n return $innerRoute['url'];\n }\n }\n }\n }\n }", "title": "" }, { "docid": "59117a8690ff7cad60bbe4b22d4fb531", "score": "0.45728418", "text": "public function provider_path()\n\t{\n\t\t$array = [\n\t\t\t'foobar' => ['definition' => 'lost'],\n\t\t\t'kohana' => 'awesome',\n\t\t\t'users' => [\n\t\t\t\t1 => ['name' => 'matt'],\n\t\t\t\t2 => ['name' => 'john', 'interests' => ['hocky' => ['length' => 2], 'football' => []]],\n\t\t\t\t3 => 'frank', // Issue #3194\n\t\t\t],\n\t\t\t'object' => new ArrayObject(['iterator' => TRUE]), // Iterable object should work exactly the same\n\t\t];\n\n\t\treturn [\n\t\t\t// Tests returns normal values\n\t\t\t[$array['foobar'], $array, 'foobar'],\n\t\t\t[$array['kohana'], $array, 'kohana'],\n\t\t\t[$array['foobar']['definition'], $array, 'foobar.definition'],\n\t\t\t// Custom delimiters\n\t\t\t[$array['foobar']['definition'], $array, 'foobar/definition', NULL, '/'],\n\t\t\t// We should be able to use NULL as a default, returned if the key DNX\n\t\t\t[NULL, $array, 'foobar.alternatives', NULL],\n\t\t\t[NULL, $array, 'kohana.alternatives', NULL],\n\t\t\t// Try using a string as a default\n\t\t\t['nothing', $array, 'kohana.alternatives', 'nothing'],\n\t\t\t// Make sure you can use arrays as defaults\n\t\t\t[['far', 'wide'], $array, 'cheese.origins', ['far', 'wide']],\n\t\t\t// Ensures path() casts ints to actual integers for keys\n\t\t\t[$array['users'][1]['name'], $array, 'users.1.name'],\n\t\t\t// Test that a wildcard returns the entire array at that \"level\"\n\t\t\t[$array['users'], $array, 'users.*'],\n\t\t\t// Now we check that keys after a wilcard will be processed\n\t\t\t[[0 => [0 => 2]], $array, 'users.*.interests.*.length'],\n\t\t\t// See what happens when it can't dig any deeper from a wildcard\n\t\t\t[NULL, $array, 'users.*.fans'],\n\t\t\t// Starting wildcards, issue #3269\n\t\t\t[['matt', 'john'], $array['users'], '*.name'],\n\t\t\t// Path as array, issue #3260\n\t\t\t[$array['users'][2]['name'], $array, ['users', 2, 'name']],\n\t\t\t[$array['object']['iterator'], $array, 'object.iterator'],\n\t\t];\n\t}", "title": "" }, { "docid": "281f742d74226ac841e84e7ec8b2769e", "score": "0.45664573", "text": "function find($name, $path)\n {\n $result = $this->readFile();\n $result = collect($result);\n $result = $result->filter(function ($package) use ($name, $path) {\n return Str::lower($package['package']) == Str::lower($name) &&\n Str::lower($path) == Str::lower($package['fullPath']);\n })->first();\n if (!$result)\n return null;\n $this->fill($result);\n return $this;\n }", "title": "" } ]
b190782997c3e852e8f2a503d5dfd0e0
ambil data kegiatan dengan slug
[ { "docid": "0dd2652da6519a53d9c0c79b59f43292", "score": "0.0", "text": "public function getBySlug($slug)\n {\n return $this->db->get_where($this->_table, [\"slug\" => $slug])->row();\n }", "title": "" } ]
[ { "docid": "c914c1c6c067c45d01d684703545a6ee", "score": "0.7252754", "text": "public function slug();", "title": "" }, { "docid": "c4085810322ab991cf3e59981a7f6a06", "score": "0.6737671", "text": "public function getSlug();", "title": "" }, { "docid": "c4085810322ab991cf3e59981a7f6a06", "score": "0.6737671", "text": "public function getSlug();", "title": "" }, { "docid": "2ce77b6344e0ac1c018e3abb9fb5917c", "score": "0.67264205", "text": "protected function generate_slug(){\n\t\t$this->slug = \\StringUtils::toAscii($this->title); \t\n\t}", "title": "" }, { "docid": "c77e3cbf8f943330c8377addc1a6c0f7", "score": "0.6699281", "text": "function setSlug($title){\n //dd($title);\n $string= str_slug($title , \"-\");\n $separator = '-';\n $string = trim($title);\n // Lower case everything\n // using mb_strtolower() function is important for non-Latin UTF-8 string | more info: https://www.php.net/manual/en/function.mb-strtolower.php\n // $string = mb_strtolower($string, \"UTF-8\");;\n\n // Make alphanumeric (removes all other characters)\n // this makes the string safe especially when used as a part of a URL\n // this keeps latin characters and arabic charactrs as well\n $string = preg_replace(\"/[^a-z0-9_\\s\\-ءاأإآؤئبتثجحخدذرزسشصضطظعغفقكلمنهويةى]#u/\", \"\", $string);\n\n // Remove multiple dashes or whitespaces\n $string = preg_replace(\"/[\\s-]+/\", \" \", $string);\n\n $string = str_replace(\"،\", \"\", $string);\n $string = str_replace(\",\", \"\", $string);\n $string = str_replace('/', \"\", $string);\n $string = str_replace('(', \"\", $string);\n $string = str_replace(')', \"\", $string);\n $string = str_replace(\"\\\\\", \"\", $string);\n\n\n // Convert whitespaces and underscore to the given separator\n $string = preg_replace(\"/[\\s_]/\", $separator, $string);\n\n return $string;\n}", "title": "" }, { "docid": "e6bfcd3f3fd0ba2c610f742848744af5", "score": "0.66406363", "text": "public function getSlug() : string;", "title": "" }, { "docid": "c679ee554176a7e00d9ee5582b64b178", "score": "0.66245955", "text": "function unSlug($title) {\n\t$normalizedTitle = '';\n\tswitch ($title) {\n\t\tcase 'mekhanicheskoe_en':\n\t\t\t$normalizedTitle = 'Механическое_en';\n\t\t\tbreak;\n\t\tcase 'teplovoe_en':\n\t\t\t$normalizedTitle = 'Тепловое_en';\n\t\t\tbreak;\n\t\tcase 'kholodilnoe_en':\n\t\t\t$normalizedTitle = 'Холодильное_en';\n\t\t\tbreak;\n\t\tcase 'moechnoe_en':\n\t\t\t$normalizedTitle = 'Моечное_en';\n\t\t\tbreak;\n\t\tcase 'mekhanicheskoe_ru':\n\t\t\t$normalizedTitle = 'Механическое_ru';\n\t\t\tbreak;\n\t\tcase 'teplovoe_ru':\n\t\t\t$normalizedTitle = 'Тепловое_ru';\n\t\t\tbreak;\n\t\tcase 'kholodilnoe_ru':\n\t\t\t$normalizedTitle = 'Холодильное_ru';\n\t\t\tbreak;\n\t\tcase 'moechnoe_ru':\n\t\t\t$normalizedTitle = 'Моечное_ru';\n\t\t\tbreak;\n\t\tcase 'mekhanicheskoe-en':\n\t\t\t$normalizedTitle = 'Механическое_en';\n\t\t\tbreak;\n\t\tcase 'teplovoe-en':\n\t\t\t$normalizedTitle = 'Тепловое_en';\n\t\t\tbreak;\n\t\tcase 'kholodilnoe-en':\n\t\t\t$normalizedTitle = 'Холодильное_en';\n\t\t\tbreak;\n\t\tcase 'moechnoe-en':\n\t\t\t$normalizedTitle = 'Моечное_en';\n\t\t\tbreak;\n\t\tcase 'mekhanicheskoe-ru':\n\t\t\t$normalizedTitle = 'Механическое_ru';\n\t\t\tbreak;\n\t\tcase 'teplovoe-ru':\n\t\t\t$normalizedTitle = 'Тепловое_ru';\n\t\t\tbreak;\n\t\tcase 'kholodilnoe-ru':\n\t\t\t$normalizedTitle = 'Холодильное_ru';\n\t\t\tbreak;\n\t\tcase 'moechnoe-ru':\n\t\t\t$normalizedTitle = 'Моечное_ru';\n\t\t\tbreak;\n\t}\n\treturn $normalizedTitle;\n}", "title": "" }, { "docid": "27eabeaa85b58af438cd9461e81276e1", "score": "0.66204035", "text": "function unique_slug()\n {\n $text = $this->input->post('text');\n $table = $this->input->post('table');\n $field = $this->input->post('field');\n \n $unique_slug = $this->Db_model->unique_slug($text, $table, $field);\n \n $this->output->set_content_type('application/json')->set_output($unique_slug);\n }", "title": "" }, { "docid": "944896c3ab97a4606cae9e3dec70a049", "score": "0.6577291", "text": "abstract public static function getSlug(): String;", "title": "" }, { "docid": "401842ebe12314fbfb543a698428c2bd", "score": "0.65418047", "text": "public function initializeSlug(){\n \n if(empty($this->slug)){\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->prenom.' '.$this->nom);\n }\n }", "title": "" }, { "docid": "68f08f94c6ee06ac91b08ecefef6e4ca", "score": "0.64189637", "text": "public function setSlugAtValue()\n {\n $this->slug = RpsStms::slugify($this->getTitulo());\n }", "title": "" }, { "docid": "4d9773535c1a01069635f39b47045c28", "score": "0.63962126", "text": "public function initializeSlug(){\n if(empty($this->slug)){\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->nom);\n }\n }", "title": "" }, { "docid": "1b7a7acf9e18fb7233ca6e93da322f5e", "score": "0.63147545", "text": "public function getSlug(): string { return $this->slug; }", "title": "" }, { "docid": "511afc5ecd64be34385b68f294a281d5", "score": "0.6293916", "text": "function slug_script() {\n\n $this->db->select('reg_id,username,fullname');\n $res = $this->db->get('freelancer_hire_reg')->result();\n foreach ($res as $k => $v) {\n $data = array('freelancer_hire_slug' => $this->setcategory_slug($v->username . \" \" . fullname, 'freelancer_hire_slug', 'freelancer_hire_reg'));\n $this->db->where('reg_id', $v->reg_id);\n $this->db->update('freelancer_hire_reg', $data);\n }\n echo \"yes\";\n }", "title": "" }, { "docid": "886550a55b6d4f73926afc4728d948d4", "score": "0.62802774", "text": "public function get_slug() : string {\n return $this->slug;\n }", "title": "" }, { "docid": "570bd224bb6c595c463584b797596ab0", "score": "0.62436116", "text": "public function initializeSlug() {\n if(empty($this->slug)) {\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->titreArticle);\n }\n }", "title": "" }, { "docid": "849b59c7847afe4023b039bf2272b522", "score": "0.6183495", "text": "function slug($title){ return preg_replace(\"/[^a-zA-Z0-9]+/\", \"-\", strtolower($title)); }", "title": "" }, { "docid": "f105c1f1327db8eb5f7bbcd99e490cef", "score": "0.61615384", "text": "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'titulo'\n ]\n ];\n }", "title": "" }, { "docid": "b5fb2d56330d773960d1b6bbc7b68361", "score": "0.6149265", "text": "public function slug() {\n\t\treturn '';\n\t}", "title": "" }, { "docid": "e17fb526ac7de7ad227d2ed575bd81cb", "score": "0.61227506", "text": "function createSlug($raw){\n // replace non letter or digits by -\n $raw = preg_replace('~[^\\pL\\d]+~u', '-', $raw);\n\n // transliterate\n $raw = iconv('utf-8', 'us-ascii//TRANSLIT', $raw);\n\n // remove unwanted characters\n $raw = preg_replace('~[^-\\w]+~', '', $raw);\n\n // trim\n $raw = trim($raw, '-');\n\n // remove duplicate -\n $raw = preg_replace('~-+~', '-', $raw);\n\n // lowercase\n $slug = strtolower($raw);\n\n if (empty($slug)) {\n return 'n-a';\n }\n\n return $slug;\n\n }", "title": "" }, { "docid": "f448e590634aec471a9f5f0b18cd161a", "score": "0.6108928", "text": "public function getSlug(): string|null;", "title": "" }, { "docid": "6dc26e2431f3bcdeaa34fcace313ce7c", "score": "0.6106208", "text": "function prepare_link($title, $slug) {\n $link = normalize($title);\n //multiples whitespaces -> single whitespace\n $link = preg_replace(\"/[^a-zA-Z0-9-\\s]+/i\", \"\", $link);\n $link = trim($link);\n $link = strtolower($link);\n //multiples whitespaces -> single minus sign\n $link = preg_replace(\"/\\s\\s+/i\", \" \", $link);\n $link = preg_replace(\"/--+/i\", \"-\", $link);\n $link = preg_replace(\"/\\s/i\", \"-\", $link);\n $link = '/' . $slug . '/' . $link;\n\n return $link;\n }", "title": "" }, { "docid": "1cab2dea75c7a997d790a00b9a6b5a58", "score": "0.61034334", "text": "public function getSlug()\r\n {\r\n return Jarboe::urlify(strip_tags($this->title));\r\n }", "title": "" }, { "docid": "9a48eb8bbbd97e4df0d309d09c314f28", "score": "0.61019146", "text": "public function sluggable(){\r\n return [\r\n 'slug' => [\r\n 'source' => 'title'\r\n ]\r\n ];\r\n }", "title": "" }, { "docid": "9df947b6f82e242a167629008f9eabf2", "score": "0.6101415", "text": "public function getSlugAttribute()\n {\n return ($this->id == Position::TRAINING) ? 'dirt' : Str::slug($this->title);\n }", "title": "" }, { "docid": "804c95999b2e4084802813e09a5cf58a", "score": "0.6085546", "text": "public function setSlugAttribute()\n {\n $this->attributes['slug'] =Str::slug($this->name, '-').'.aspx';\n }", "title": "" }, { "docid": "804c95999b2e4084802813e09a5cf58a", "score": "0.6085546", "text": "public function setSlugAttribute()\n {\n $this->attributes['slug'] =Str::slug($this->name, '-').'.aspx';\n }", "title": "" }, { "docid": "9239a07927d12011cc48c073eb75e780", "score": "0.6070479", "text": "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'pro_art_codigo'\n ]\n ];\n }", "title": "" }, { "docid": "d4df5e33609f8d16fce352f2f3f14d61", "score": "0.6060141", "text": "public function initializeSlug(){\n if(empty($this->slug)){\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->title);\n }\n }", "title": "" }, { "docid": "d45d221908d7425f1b6353414af66367", "score": "0.60568404", "text": "function myplugin_update_slug( $data, $postarr ) {\n if($data['post_type'] == 'news') {\n if ( in_array( $data['post_status'], array( 'draft', 'pending', 'auto-draft' ) ) ) {\n $title = $data['post_title'];\n $data['post_name'] = sanitize_title( md5($title) );\n }\n }\n return $data;\n}", "title": "" }, { "docid": "231d05a6c215200f69fe7a8f7feaab46", "score": "0.6053506", "text": "public function setSlugAttribute()\n {\n return $this->attributes['slug'] = str_slug($this->attributes['title'],'-') ;\n }", "title": "" }, { "docid": "a43b8f6a747699255122ccae014f22f4", "score": "0.6053339", "text": "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'intitule'\n ]\n ];\n }", "title": "" }, { "docid": "96fbc3e8001437cd644b18fe6bb36fbf", "score": "0.6051575", "text": "public function initializeSlug(){\n if(empty($this->slug)){\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->name);\n }\n }", "title": "" }, { "docid": "2cc9296ec7a0d783ec443add89a7ac54", "score": "0.60436064", "text": "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'uni_medida'\n ]\n ];\n }", "title": "" }, { "docid": "5fcd0d549bb5cf94087f9964f22f5b75", "score": "0.60401994", "text": "public function getSlug(): string\n {\n return $this->slug;\n }", "title": "" }, { "docid": "8ad00c626465b2b14000de8268ceceb6", "score": "0.60270786", "text": "public function sluggable(): array\n {\n return [\n 'slug' => [\n 'source' => 'headline'\n ]\n ]; \n }", "title": "" }, { "docid": "294ff75e28149962d4cb150c202a3249", "score": "0.6014561", "text": "function the_slug( $id=null ){\n echo apply_filters( 'the_slug', get_the_slug($id) );\n }", "title": "" }, { "docid": "56f7124daec06a15f6186ae85685296c", "score": "0.6011626", "text": "public function slug()\n {\n return $this->attributes['slug'];\n }", "title": "" }, { "docid": "8454a2bba4b58e3c4e620d410c37b435", "score": "0.60104114", "text": "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title',\n 'method' => sameStringIfChinese()\n ]\n ];\n }", "title": "" }, { "docid": "25ebc34affeef4cb0e8cd8833f7c5a4c", "score": "0.59934324", "text": "protected function getSlug(){\n $this->Name = UrlUtils::getSlug($this->FriendlyName);\n return $this->Name;\n }", "title": "" }, { "docid": "8ae2f35fdd290cd525c814d8fc97c7a4", "score": "0.5991947", "text": "public function getSlug()\n {\n return $this->slug;\n }", "title": "" }, { "docid": "13f6fe88ae7770b82804ef6a58f82b7b", "score": "0.59901845", "text": "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'nom'\n ]\n ];\n }", "title": "" }, { "docid": "8397d0a3accea18ff809f7cd1eef33ac", "score": "0.59888935", "text": "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "title": "" }, { "docid": "befe0dbf3bdb0a6d0616a27d2aa9973c", "score": "0.59862983", "text": "public function getSlugForURL($array)\n {\n if (!empty($array)){\n $slugUrl = $dataAssos['slug'];\n return $slugUrl;\n }else{\n $slugUrl = '';\n return $slugUrl;\n }\n }", "title": "" }, { "docid": "af154ae702113e1ab649709181d02f87", "score": "0.5971913", "text": "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' =>! is_null($this->slug)? 'slug':'title',\n 'onUpdate'=> true,\n 'unique' => true,\n ]\n ];\n }", "title": "" }, { "docid": "139befb8518bfaefcac3464c9d5cb15e", "score": "0.5963834", "text": "function sm_generate_title_and_slug( $data ) {\n\n if( 'post' == $data['post_type'] && empty( $data['post_title'] ) ) {\n\t\t\n\t\t// Quick way to strip media (could do something like use media type to inform title)\n\t\t$title = wp_trim_excerpt( $data['post_content'] ); \n\t\t\n\t\t// Limit generated excerpt to 10 words instead of 55 by wp_trim_excerpt (could go with character length)\n\t\t$title = wp_trim_words( $title, 10, '' ); \n\n\t\t// Set the title and slug\n $data['post_title'] = $title;\n $data['post_name'] = sanitize_title( $title );\n\n }\n\n return $data;\n\n}", "title": "" }, { "docid": "33cbce339cda8896d5047f5fe815fe64", "score": "0.59568197", "text": "public function createSlug()\n\t{\n\t}", "title": "" }, { "docid": "6c393f01af0fdfc1442ffd6d1d19d48e", "score": "0.59562516", "text": "public function get_slug(){\n\t\treturn $this->term_obj->slug;\n\t}", "title": "" }, { "docid": "6a00dad81293edb6e46a08c48200816b", "score": "0.5950612", "text": "function MB_slug_emporters($POST){\n wp_nonce_field(basename(__FILE__), 'metabox_slug_emporters_nonce');\n $slug_emporter = get_post_meta($POST->ID, 'slug_emporter', true);\n\n ?>\n <p>\n <label for=\"slug_emporter\">Slug</label>\n <input type=\"text\" id=\"slug_emporter\" name=\"slug_emporter\" value=\"<?php echo $slug_emporter; ?>\">\n <p class=\"info\">\n Attention pas de majuscule, ni accent, ni d'espace, etc.\n Les trait d'union son autorisé.\n <strong>Tout doit être en un mot</strong><br />\n <span style=\"line-height: 2;\">ex : pekin-paris <strong>OU</strong> pekinparis</span>\n </p>\n </p>\n\n <?php\n\n}", "title": "" }, { "docid": "07a4b3bd6ed32a61f6dc308caf0563ea", "score": "0.59480816", "text": "public function getSlugize() {\n $text = Doctrine_Inflector::unaccent($this->get('title'));\n\n if (function_exists('mb_strtolower')) {\n $text = mb_strtolower($text);\n } else {\n $text = strtolower($text);\n }\n\n // Remove all none word characters\n $text = preg_replace('/\\W/', ' ', $text);\n\n // More stripping. Get rid of all non-alphanumeric.\n $text = strtolower(preg_replace('/[^A-Z^a-z^0-9^\\/]+/', '', $text));\n\n return trim($text, '-');\n }", "title": "" }, { "docid": "8a675c486f933663f6db6c38d06c08a6", "score": "0.59446806", "text": "public function slug(): string\n\t{\n\t\treturn $this->story['full_slug'];\n\t}", "title": "" }, { "docid": "768f6e4c23dec82c0fd291f4706b2c6d", "score": "0.5934643", "text": "function slugify($text,$tablename,$fieldname)\r\n{\r\n // replace non letter or digits by -\r\n $text = preg_replace('~[^\\pL\\d]+~u', '-', $text);\r\n // transliterate\r\n $text = iconv('utf-8', 'us-ascii//TRANSLIT', $text);\r\n // remove unwanted characters\r\n $text = preg_replace('~[^-\\w]+~', '', $text);\r\n // trim\r\n $text = trim($text, '-');\r\n // remove duplicate -\r\n $text = preg_replace('~-+~', '-', $text);\r\n // lowercase\r\n $text = strtolower($text);\r\n if (empty($text)) {\r\n return 'n-a';\r\n }\r\n $i = 1; \r\n $baseSlug = $text;\r\n while(slug_exist($text,$tablename,$fieldname))\r\n {\r\n\t\t$text = $baseSlug . \"-\" . $i++; \r\n }\r\n return $text;\r\n}", "title": "" }, { "docid": "17672fad1b9b9b3e5c98434a3e51bd7c", "score": "0.5928369", "text": "function reverseSlug($title) {\n\t$title = substr($title, 0, -3);\n\tswitch ($title) {\n\t\tcase 'mekhanicheskoe':\n\t\t\t$normalizedTitle = 'Механическое';\n\t\t\tbreak;\n\t\tcase 'teplovoe':\n\t\t\t$normalizedTitle = 'Тепловое';\n\t\t\tbreak;\n\t\tcase 'moechnoe':\n\t\t\t$normalizedTitle = 'Моечное';\n\t\t\tbreak;\n\t\tcase 'kholodilnoe':\n\t\t\t$normalizedTitle = 'Холодильное';\n\t\t\tbreak;\n\t}\n\n\treturn $normalizedTitle;\n}", "title": "" }, { "docid": "896bdca41e445380fbd01f2fe72538f7", "score": "0.59173435", "text": "private function makeSlug() {\r\n \r\n if (!empty($this->slug)) {\r\n return;\r\n }\r\n \r\n $proposal = ContentUtility::generateUrlSlug($this->name, 20);\r\n \r\n $query = \"SELECT COUNT(id) FROM glossary WHERE slug = ?\"; \r\n $num = $this->db->fetchOne($query, $proposal); \r\n \r\n if ($num) {\r\n $proposal .= $num; \r\n }\r\n \r\n $this->slug = $proposal; \r\n \r\n if (filter_var($this->id, FILTER_VALIDATE_INT)) {\r\n $this->commit(); \r\n }\r\n \r\n return;\r\n \r\n }", "title": "" }, { "docid": "fb7d1029fea21bb2b2b21579e5679e6f", "score": "0.5909996", "text": "protected function set_slug( $a )\t\t\t\t\r\n\t\t{ \r\n\t\t\treturn $this->slug = trim( stripslashes( $a ) ); \r\n\t\t}", "title": "" }, { "docid": "a84f76e99c2eaf886c1398fbc2e13a1b", "score": "0.59093827", "text": "protected function updateSlug()\n {\n $slug = Str::slug($this->title);\n\n // if already taken\n if (static::find($this->composeShroomId($this->cluster, $slug)))\n {\n $index = 2;\n\n while (static::find($this->composeShroomId($this->cluster, $slug . \"-\" . $index)))\n {\n $index++;\n }\n\n $this->slug = $slug . \"-\" . $index;\n return;\n }\n\n $this->slug = $slug;\n }", "title": "" }, { "docid": "e7bafe18ba8174c07f7a56e6585f660c", "score": "0.58935446", "text": "public function rawat_jalan()\n\t{\t\n\t\t$user = Auth::user();\n\t\t$group = DB::table('groups')->where('id',$user->group_id)->first();\n\t\t$slug = $group->slug;\n\t\t$single = false;\n\t\t//echo $slug;\n\t\tif (strpos($slug,'poli_') !== false) {\n\t\t\t$single = true;\n $id = str_replace(\"poli_\", \"\", $slug);\n $poli = db::table('tbpoli')->where('NamaPoli' ,'LIKE' ,'%'.$id.'%')->first();\n }\n else{\n \t$poli = Poli::all();\n }\n\t\treturn View::make('report.rawat_jalan', array('poli' => $poli,'single' => $single));\n\t}", "title": "" }, { "docid": "7a8a7b34f48bea080c3187609047c7b0", "score": "0.5893303", "text": "public function updatedTitle($value){\n $this->slug = Str::slug($value);\n }", "title": "" }, { "docid": "9c17747ef862f888901319361a6f414e", "score": "0.58807725", "text": "public function slugMirror()\n {\n return 'title';\n }", "title": "" }, { "docid": "9c17747ef862f888901319361a6f414e", "score": "0.58807725", "text": "public function slugMirror()\n {\n return 'title';\n }", "title": "" }, { "docid": "2e5a5aae0a776eb7b434d4803a2cf145", "score": "0.5876214", "text": "public function get_slug()\n\t{\n\t\treturn $this->slug;\n\t}", "title": "" }, { "docid": "11ed9dc23e3cfd172e0e7c2a0979259d", "score": "0.58719575", "text": "public function generateSlug() {\n\t\t$value = $this->generateRawSlug();\n\t\t$value = Tx_CzSimpleCal_Utility_Inflector::urlize($value);\n\t\t\n\t\t$eventIndexRepository = t3lib_div::makeInstance('Tx_Extbase_Object_ObjectManager')->\n\t\t\tget('Tx_CzSimpleCal_Domain_Repository_EventIndexRepository')\n\t\t;\n\t\t$slug = $eventIndexRepository->makeSlugUnique($value, $this->uid);\n\t\t$this->setSlug($slug);\n\t}", "title": "" }, { "docid": "5694f7fd9f82f312384a47189e53f4a5", "score": "0.58711445", "text": "public function slug()\n {\n return Str::studlyToSlug($this->id);\n }", "title": "" }, { "docid": "6308c8698146d96c86277431e599bc46", "score": "0.58681583", "text": "public function initializeSlug(){\n if(empty($this->slug)){\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->username);\n }\n }", "title": "" }, { "docid": "1acf060adaf6e764c8dfdbbc22ce8e17", "score": "0.5866957", "text": "public function initializeSlug()\n {\n if (empty($this->slug)) {\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->firstName .' '. $this->lastName);\n }\n }", "title": "" }, { "docid": "86872b1421c284b52a0f8f467a9fb624", "score": "0.58580154", "text": "public function generateSlug()\n {\n $this->slug = Str::slug($this->name, '-');\n }", "title": "" }, { "docid": "af5a47e619e9c11a08da9945ca62c51d", "score": "0.58447176", "text": "function STR_TO_WORD_FOR_URL($slug)\n\t{\n\t\treturn ucwords(str_replace(\"-\",\" \",$slug));\n\t}", "title": "" }, { "docid": "ff61ab1886bb2207eb0d4c8a2007d2b0", "score": "0.5834106", "text": "function slug_gen($url) {\n\t$url = replace_accents($url);\n\t$url = strtolower(trim($url));\n \n\t//replace accent characters, depends your language is needed\n\t//$url=replace_accents($url);\n \n\t// decode html maybe needed if there's html I normally don't use this\n\t//$url = html_entity_decode($url,ENT_QUOTES,'UTF8');\n \n\t// adding - for spaces and union characters\n\t$find = array(' ', '&', '\\r\\n', '\\n', '+',',');\n\t$url = str_replace ($find, '-', $url);\n \n\t//delete and replace rest of special chars\n\t$find = array('/[^a-z0-9\\-]/', '/[\\-]+/', '/<[^>]*>/');\n\t$repl = array('', '-', '');\n\t$url = preg_replace ($find, $repl, $url);\n \n\t//return the friendly url\n\treturn $url;\n}", "title": "" }, { "docid": "403f38614f04b9647e52ace44fd72404", "score": "0.5833145", "text": "public function sluggable()\n {\n //we add a slug url to the name\n return [\n 'slug' => [\n 'source' => 'name'\n ]\n ];\n }", "title": "" }, { "docid": "adf5af857079f220266d6552b6aec15a", "score": "0.58310497", "text": "public function getSlug($cadena, $separador = '_') {\r\n \t$slug = iconv('UTF-8', 'ASCII//TRANSLIT', $cadena);\r\n \t$slug = preg_replace(\"/[^a-zA-Z0-9\\/_|+ -]/\", '', $slug);\r\n \t$slug = strtolower(trim($slug, $separador));\r\n \t$slug = preg_replace(\"/[\\/_|+ -]+/\", $separador, $slug);\r\n \treturn $slug;\r\n }", "title": "" }, { "docid": "5d8cdce43ed70ae96ec466b9b3a6e6e7", "score": "0.58276933", "text": "public function __construct($platja_slug)\n {\n $this->platja_slug=$platja_slug;\n }", "title": "" }, { "docid": "2f2a016f770407c47e51682dd28af670", "score": "0.5822554", "text": "public function index($slug)\n {\n \n }", "title": "" }, { "docid": "2629124f03c575e79b340fa811450388", "score": "0.58188456", "text": "public function __toString()\n {\n return $this->slug;\n }", "title": "" }, { "docid": "2622888daaaa376afe7c7212f6daa214", "score": "0.5814848", "text": "function slug_to_title($in){\n\t\t$out = str_replace(\"-\",\" \",$in);\n\t\t$out = preg_replace(\"/\\bmens\\b/i\", \"men's\", $out);\n\t $out = preg_replace(\"/\\bwomens\\b/i\", \"women's\", $out);\n\t $out = preg_replace(\"/\\bchildrens\\b/i\", \"children's\", $out);\n\t $out = str_ireplace(\"ymca\", \"YMCA\", $out); // or other commonly capitalized words on the site\n\t $out = ucwords(trim($out));\n\t return $out;\n\t}", "title": "" }, { "docid": "5b58f65f039536e93c2f20b921f55afd", "score": "0.5810813", "text": "function slug($text){ \n\t$slug = preg_replace(\"/[^a-zA-Z0-9\\/_|+ -]/\", '', $text);\n\t$slug = strtolower(trim($slug, '-'));\n\t$slug = preg_replace(\"/[\\/_|+ -]+/\", '-', $slug);\n\treturn $slug;\n}", "title": "" }, { "docid": "a8cc3c147ee6faf1fd59317bbc35a89e", "score": "0.5809395", "text": "public function sluggable() : array\n {\n return [\n 'slug' => [\n 'source' => 'fahrzeug'\n ]\n ];\n }", "title": "" }, { "docid": "8b0b2e450a0e5cb2d3faa906a6a1f788", "score": "0.57978874", "text": "public function show($slug)\n {\n \n }", "title": "" }, { "docid": "a24a6e0d64b5ccc240391730dca4154a", "score": "0.5787601", "text": "public function uniqueSlug(): string\n {\n return \"{$this->id}-{$this->name}\";\n }", "title": "" }, { "docid": "97fa03e303bac7b7a881dc570bb427ea", "score": "0.578197", "text": "public function createSlug($slug){\n $next = 1;\n while(Carnival::where('carnival_slug', '=', $slug)->first()) { \n $pos = strrpos($slug, \"_\");\n $digit = substr($slug, -1);\n $digit = intval($digit);\n if($digit == 0){\n $i = 1;\n $slug = $slug.'-'.$i;\n \n }else{\n $slug = substr($slug, 0, -2);\n $slug = $slug.'-'.$next;\n $next++;\n } \n }\n return $slug;\n }", "title": "" }, { "docid": "60e02338ce96b76279e3f6081ae4a628", "score": "0.57739735", "text": "public function getSlugAttribute(): string\n {\n return str_slug($this->label);\n }", "title": "" }, { "docid": "cc9b18fa9f32cbafcbf6ce4dbc4adbb5", "score": "0.57732445", "text": "public function sluggable()\n {\n return [\n 'slug'=>[\n 'source'=>'name'\n ]\n ];\n }", "title": "" }, { "docid": "5e43962f3788bf91a39f2faa651d64f3", "score": "0.5768817", "text": "public function slugDataProvider()\n {\n return array(\n array('hello', 'hello'),\n array('string with space', 'string-with-space'),\n array('&strïng with-som€%stãngé//çhàrctèr$§', '-str-ng-with-som-st-ng-h-rct-r-'),\n );\n }", "title": "" }, { "docid": "8edb592ddaddbd7d2f14be2e73455204", "score": "0.57627964", "text": "function get_slug() {\r\n\treturn get_page_slug(false);\r\n}", "title": "" }, { "docid": "717f85bf48a77aa3b5e351855d9c2ee9", "score": "0.5759492", "text": "function getFullSlug($locale=''){\n\t\t/** @var JSP trick */\n $locale = ($locale)?:app()->getLocale();\n return preg_replace('/\\{category\\??\\}/', $this->{'slug:'.$locale}, trans('routes.category', array(), $locale));\n }", "title": "" }, { "docid": "b01270ac9492c1f7134884491ba2c151", "score": "0.57550687", "text": "public function getSlug()\n {\n return $this->slug;\n }", "title": "" }, { "docid": "b01270ac9492c1f7134884491ba2c151", "score": "0.57550687", "text": "public function getSlug()\n {\n return $this->slug;\n }", "title": "" }, { "docid": "b01270ac9492c1f7134884491ba2c151", "score": "0.57550687", "text": "public function getSlug()\n {\n return $this->slug;\n }", "title": "" }, { "docid": "b01270ac9492c1f7134884491ba2c151", "score": "0.57550687", "text": "public function getSlug()\n {\n return $this->slug;\n }", "title": "" }, { "docid": "b01270ac9492c1f7134884491ba2c151", "score": "0.57550687", "text": "public function getSlug()\n {\n return $this->slug;\n }", "title": "" }, { "docid": "b01270ac9492c1f7134884491ba2c151", "score": "0.57550687", "text": "public function getSlug()\n {\n return $this->slug;\n }", "title": "" }, { "docid": "b01270ac9492c1f7134884491ba2c151", "score": "0.57550687", "text": "public function getSlug()\n {\n return $this->slug;\n }", "title": "" }, { "docid": "b01270ac9492c1f7134884491ba2c151", "score": "0.57550687", "text": "public function getSlug()\n {\n return $this->slug;\n }", "title": "" }, { "docid": "b01270ac9492c1f7134884491ba2c151", "score": "0.57550687", "text": "public function getSlug()\n {\n return $this->slug;\n }", "title": "" }, { "docid": "b01270ac9492c1f7134884491ba2c151", "score": "0.57550687", "text": "public function getSlug()\n {\n return $this->slug;\n }", "title": "" }, { "docid": "680c11647c08caa3c718d1aa18d57837", "score": "0.57545114", "text": "public function getSlug(){\n\t\tif(!isset($this->slug)){\n\t\t\t$this->slug\t= $this->convertToSlug($this->name);\n\t\t}\n\n\t\treturn $this->slug;\n\t}", "title": "" }, { "docid": "bc65c85a160bfa16c5b2be186835e97f", "score": "0.5744132", "text": "function makeSlug($slug, $title)\n{\n if (empty($slug)) {\n $slug = str_slug($title, '-');\n }\n return $slug;\n}", "title": "" }, { "docid": "ea2029d30a92a1d288c3a9f34adee629", "score": "0.57252806", "text": "function createSlug($slug){\n\t$lettersNumbersSpacesHypens = '/[^\\-\\s\\pN\\pL]+/u';\n\t$spacesDuplicateHypens = '/[\\-\\s]+/';\n\n\t$slug = preg_replace($lettersNumbersSpacesHypens, '', mb_strtolower($slug, 'UTF-8'));\n\t$slug = preg_replace($spacesDuplicateHypens, '-', $slug);\n\t$slug = trim($slug, '-');\n\n\treturn $slug;\n\n}", "title": "" }, { "docid": "0010b5a26aa64d63e4c6ad4ec313293f", "score": "0.57156825", "text": "public function slugColumn()\n {\n return 'slug';\n }", "title": "" }, { "docid": "0010b5a26aa64d63e4c6ad4ec313293f", "score": "0.57156825", "text": "public function slugColumn()\n {\n return 'slug';\n }", "title": "" }, { "docid": "011aa9fea5b2ed5ddd7dba6a197ca555", "score": "0.5713533", "text": "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'name'\n ]\n ];\n }", "title": "" }, { "docid": "2afe7e4688191803217d59be63b17b37", "score": "0.5710443", "text": "public function post_check_slug()\n {\n $slug = Input::get('title');\n if(!isset($slug) or empty($slug))\n {\n return '';\n }\n $slug_check = Groups\\Model\\Group::where('slug', '=', $slug)->get(array('slug'));\n if( isset($slug_check) and ! empty($slug_check))\n {\n return 'slug::error::'.Str::slug($slug);\n }\n else\n {\n return Str::slug($slug);\n }\n }", "title": "" } ]
631c9b01b293de71b7d3183c23902aa3
Operation eventFrameFindEventFrameAttributesWithHttpInfo Retrieves a list of event frame attributes matching the specified filters from the specified event frame.
[ { "docid": "0016b7130921128f8d993c1c646c383b", "score": "0.7111", "text": "public function eventFrameFindEventFrameAttributesWithHttpInfo($web_id, $attribute_category = null, $attribute_description_filter = null, $attribute_name_filter = null, $attribute_type = null, $end_time = null, $event_frame_category = null, $event_frame_description_filter = null, $event_frame_name_filter = null, $event_frame_template = null, $max_count = null, $referenced_element_name_filter = null, $search_full_hierarchy = null, $search_mode = null, $selected_fields = null, $sort_field = null, $sort_order = null, $start_index = null, $start_time = null)\r\n {\r\n // verify the required parameter 'web_id' is set\r\n if ($web_id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $web_id when calling eventFrameFindEventFrameAttributes');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes/{webId}/eventframeattributes\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);\r\n\r\n // query params\r\n if ($attribute_category !== null) {\r\n $queryParams['attributeCategory'] = $this->apiClient->getSerializer()->toQueryValue($attribute_category);\r\n }\r\n // query params\r\n if ($attribute_description_filter !== null) {\r\n $queryParams['attributeDescriptionFilter'] = $this->apiClient->getSerializer()->toQueryValue($attribute_description_filter);\r\n }\r\n // query params\r\n if ($attribute_name_filter !== null) {\r\n $queryParams['attributeNameFilter'] = $this->apiClient->getSerializer()->toQueryValue($attribute_name_filter);\r\n }\r\n // query params\r\n if ($attribute_type !== null) {\r\n $queryParams['attributeType'] = $this->apiClient->getSerializer()->toQueryValue($attribute_type);\r\n }\r\n // query params\r\n if ($end_time !== null) {\r\n $queryParams['endTime'] = $this->apiClient->getSerializer()->toQueryValue($end_time);\r\n }\r\n // query params\r\n if ($event_frame_category !== null) {\r\n $queryParams['eventFrameCategory'] = $this->apiClient->getSerializer()->toQueryValue($event_frame_category);\r\n }\r\n // query params\r\n if ($event_frame_description_filter !== null) {\r\n $queryParams['eventFrameDescriptionFilter'] = $this->apiClient->getSerializer()->toQueryValue($event_frame_description_filter);\r\n }\r\n // query params\r\n if ($event_frame_name_filter !== null) {\r\n $queryParams['eventFrameNameFilter'] = $this->apiClient->getSerializer()->toQueryValue($event_frame_name_filter);\r\n }\r\n // query params\r\n if ($event_frame_template !== null) {\r\n $queryParams['eventFrameTemplate'] = $this->apiClient->getSerializer()->toQueryValue($event_frame_template);\r\n }\r\n // query params\r\n if ($max_count !== null) {\r\n $queryParams['maxCount'] = $this->apiClient->getSerializer()->toQueryValue($max_count);\r\n }\r\n // query params\r\n if ($referenced_element_name_filter !== null) {\r\n $queryParams['referencedElementNameFilter'] = $this->apiClient->getSerializer()->toQueryValue($referenced_element_name_filter);\r\n }\r\n // query params\r\n if ($search_full_hierarchy !== null) {\r\n $queryParams['searchFullHierarchy'] = $this->apiClient->getSerializer()->toQueryValue($search_full_hierarchy);\r\n }\r\n // query params\r\n if ($search_mode !== null) {\r\n $queryParams['searchMode'] = $this->apiClient->getSerializer()->toQueryValue($search_mode);\r\n }\r\n // query params\r\n if ($selected_fields !== null) {\r\n $queryParams['selectedFields'] = $this->apiClient->getSerializer()->toQueryValue($selected_fields);\r\n }\r\n // query params\r\n if ($sort_field !== null) {\r\n $queryParams['sortField'] = $this->apiClient->getSerializer()->toQueryValue($sort_field);\r\n }\r\n // query params\r\n if ($sort_order !== null) {\r\n $queryParams['sortOrder'] = $this->apiClient->getSerializer()->toQueryValue($sort_order);\r\n }\r\n // query params\r\n if ($start_index !== null) {\r\n $queryParams['startIndex'] = $this->apiClient->getSerializer()->toQueryValue($start_index);\r\n }\r\n // query params\r\n if ($start_time !== null) {\r\n $queryParams['startTime'] = $this->apiClient->getSerializer()->toQueryValue($start_time);\r\n }\r\n // path params\r\n if ($web_id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"webId\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($web_id),\r\n $resourcePath\r\n );\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n \r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'GET',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n '\\PIWebAPI\\Client\\Model\\ItemsAttribute',\r\n '/eventframes/{webId}/eventframeattributes'\r\n );\r\n\r\n return [$this->apiClient->getSerializer()->deserialize($response, '\\PIWebAPI\\Client\\Model\\ItemsAttribute', $httpHeader), $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n case 200:\r\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\PIWebAPI\\Client\\Model\\ItemsAttribute', $e->getResponseHeaders());\r\n $e->setResponseObject($data);\r\n break;\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" } ]
[ { "docid": "e39ed90cfe76707a5f1eb83489370ec2", "score": "0.6703809", "text": "public function eventFrameFindEventFrameAttributes($web_id, $attribute_category = null, $attribute_description_filter = null, $attribute_name_filter = null, $attribute_type = null, $end_time = null, $event_frame_category = null, $event_frame_description_filter = null, $event_frame_name_filter = null, $event_frame_template = null, $max_count = null, $referenced_element_name_filter = null, $search_full_hierarchy = null, $search_mode = null, $selected_fields = null, $sort_field = null, $sort_order = null, $start_index = null, $start_time = null)\r\n {\r\n list($response) = $this->eventFrameFindEventFrameAttributesWithHttpInfo($web_id, $attribute_category, $attribute_description_filter, $attribute_name_filter, $attribute_type, $end_time, $event_frame_category, $event_frame_description_filter, $event_frame_name_filter, $event_frame_template, $max_count, $referenced_element_name_filter, $search_full_hierarchy, $search_mode, $selected_fields, $sort_field, $sort_order, $start_index, $start_time);\r\n return $response;\r\n }", "title": "" }, { "docid": "7de814984b8eb8c1ddf6ecd4dc758a5c", "score": "0.6241433", "text": "public function eventFrameCreateSearchByAttributeWithHttpInfo()\r\n {\r\n // parse inputs\r\n $resourcePath = \"/eventframes/searchbyattribute\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json', 'text/json']);\r\n\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n \r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'POST',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n null,\r\n '/eventframes/searchbyattribute'\r\n );\r\n\r\n return [null, $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n case 400:\r\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\PIWebAPI\\Client\\Model\\Errors', $e->getResponseHeaders());\r\n $e->setResponseObject($data);\r\n break;\r\n case 413:\r\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\PIWebAPI\\Client\\Model\\Errors', $e->getResponseHeaders());\r\n $e->setResponseObject($data);\r\n break;\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "9f3ab89f5ebb7ffb0ffab398f282320f", "score": "0.59097344", "text": "public function eventFrameGetAttributesWithHttpInfo($web_id, $category_name = null, $max_count = null, $name_filter = null, $search_full_hierarchy = null, $selected_fields = null, $show_excluded = null, $show_hidden = null, $sort_field = null, $sort_order = null, $start_index = null, $template_name = null, $value_type = null)\r\n {\r\n // verify the required parameter 'web_id' is set\r\n if ($web_id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $web_id when calling eventFrameGetAttributes');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes/{webId}/attributes\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);\r\n\r\n // query params\r\n if ($category_name !== null) {\r\n $queryParams['categoryName'] = $this->apiClient->getSerializer()->toQueryValue($category_name);\r\n }\r\n // query params\r\n if ($max_count !== null) {\r\n $queryParams['maxCount'] = $this->apiClient->getSerializer()->toQueryValue($max_count);\r\n }\r\n // query params\r\n if ($name_filter !== null) {\r\n $queryParams['nameFilter'] = $this->apiClient->getSerializer()->toQueryValue($name_filter);\r\n }\r\n // query params\r\n if ($search_full_hierarchy !== null) {\r\n $queryParams['searchFullHierarchy'] = $this->apiClient->getSerializer()->toQueryValue($search_full_hierarchy);\r\n }\r\n // query params\r\n if ($selected_fields !== null) {\r\n $queryParams['selectedFields'] = $this->apiClient->getSerializer()->toQueryValue($selected_fields);\r\n }\r\n // query params\r\n if ($show_excluded !== null) {\r\n $queryParams['showExcluded'] = $this->apiClient->getSerializer()->toQueryValue($show_excluded);\r\n }\r\n // query params\r\n if ($show_hidden !== null) {\r\n $queryParams['showHidden'] = $this->apiClient->getSerializer()->toQueryValue($show_hidden);\r\n }\r\n // query params\r\n if ($sort_field !== null) {\r\n $queryParams['sortField'] = $this->apiClient->getSerializer()->toQueryValue($sort_field);\r\n }\r\n // query params\r\n if ($sort_order !== null) {\r\n $queryParams['sortOrder'] = $this->apiClient->getSerializer()->toQueryValue($sort_order);\r\n }\r\n // query params\r\n if ($start_index !== null) {\r\n $queryParams['startIndex'] = $this->apiClient->getSerializer()->toQueryValue($start_index);\r\n }\r\n // query params\r\n if ($template_name !== null) {\r\n $queryParams['templateName'] = $this->apiClient->getSerializer()->toQueryValue($template_name);\r\n }\r\n // query params\r\n if ($value_type !== null) {\r\n $queryParams['valueType'] = $this->apiClient->getSerializer()->toQueryValue($value_type);\r\n }\r\n // path params\r\n if ($web_id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"webId\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($web_id),\r\n $resourcePath\r\n );\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n \r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'GET',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n '\\PIWebAPI\\Client\\Model\\ItemsAttribute',\r\n '/eventframes/{webId}/attributes'\r\n );\r\n\r\n return [$this->apiClient->getSerializer()->deserialize($response, '\\PIWebAPI\\Client\\Model\\ItemsAttribute', $httpHeader), $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n case 200:\r\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\PIWebAPI\\Client\\Model\\ItemsAttribute', $e->getResponseHeaders());\r\n $e->setResponseObject($data);\r\n break;\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "1875c2e039dff502c1c89021986b1995", "score": "0.51981956", "text": "public function eventFrameGetWithHttpInfo($web_id, $selected_fields = null)\r\n {\r\n // verify the required parameter 'web_id' is set\r\n if ($web_id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $web_id when calling eventFrameGet');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes/{webId}\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);\r\n\r\n // query params\r\n if ($selected_fields !== null) {\r\n $queryParams['selectedFields'] = $this->apiClient->getSerializer()->toQueryValue($selected_fields);\r\n }\r\n // path params\r\n if ($web_id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"webId\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($web_id),\r\n $resourcePath\r\n );\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n \r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'GET',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n '\\PIWebAPI\\Client\\Model\\EventFrame',\r\n '/eventframes/{webId}'\r\n );\r\n\r\n return [$this->apiClient->getSerializer()->deserialize($response, '\\PIWebAPI\\Client\\Model\\EventFrame', $httpHeader), $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n case 200:\r\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\PIWebAPI\\Client\\Model\\EventFrame', $e->getResponseHeaders());\r\n $e->setResponseObject($data);\r\n break;\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "c5b77b03971833073d66e5f519eeab9c", "score": "0.51449764", "text": "public function eventFrameCreateEventFrameWithHttpInfo($web_id, $event_frame)\r\n {\r\n // verify the required parameter 'web_id' is set\r\n if ($web_id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $web_id when calling eventFrameCreateEventFrame');\r\n }\r\n // verify the required parameter 'event_frame' is set\r\n if ($event_frame === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $event_frame when calling eventFrameCreateEventFrame');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes/{webId}/eventframes\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json', 'text/json']);\r\n\r\n // path params\r\n if ($web_id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"webId\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($web_id),\r\n $resourcePath\r\n );\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n // body params\r\n $_tempBody = null;\r\n if (isset($event_frame)) {\r\n $_tempBody = $event_frame;\r\n }\r\n\r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'POST',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n null,\r\n '/eventframes/{webId}/eventframes'\r\n );\r\n\r\n return [null, $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "91284871e951c280ab65dc0df9a432bb", "score": "0.51226574", "text": "public function eventFrameGetAttributes($web_id, $category_name = null, $max_count = null, $name_filter = null, $search_full_hierarchy = null, $selected_fields = null, $show_excluded = null, $show_hidden = null, $sort_field = null, $sort_order = null, $start_index = null, $template_name = null, $value_type = null)\r\n {\r\n list($response) = $this->eventFrameGetAttributesWithHttpInfo($web_id, $category_name, $max_count, $name_filter, $search_full_hierarchy, $selected_fields, $show_excluded, $show_hidden, $sort_field, $sort_order, $start_index, $template_name, $value_type);\r\n return $response;\r\n }", "title": "" }, { "docid": "972c6f89d6858b69e488c9d3e32aa2c2", "score": "0.50049645", "text": "public function eventFrameUpdateWithHttpInfo($web_id, $event_frame)\r\n {\r\n // verify the required parameter 'web_id' is set\r\n if ($web_id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $web_id when calling eventFrameUpdate');\r\n }\r\n // verify the required parameter 'event_frame' is set\r\n if ($event_frame === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $event_frame when calling eventFrameUpdate');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes/{webId}\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json', 'text/json']);\r\n\r\n // path params\r\n if ($web_id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"webId\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($web_id),\r\n $resourcePath\r\n );\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n // body params\r\n $_tempBody = null;\r\n if (isset($event_frame)) {\r\n $_tempBody = $event_frame;\r\n }\r\n\r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'PATCH',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n null,\r\n '/eventframes/{webId}'\r\n );\r\n\r\n return [null, $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "3e50f8e2e1d8eb811d5bea11815f725b", "score": "0.4896712", "text": "public function eventFrameCaptureValuesWithHttpInfo($web_id)\r\n {\r\n // verify the required parameter 'web_id' is set\r\n if ($web_id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $web_id when calling eventFrameCaptureValues');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes/{webId}/attributes/capture\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json', 'text/json']);\r\n\r\n // path params\r\n if ($web_id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"webId\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($web_id),\r\n $resourcePath\r\n );\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n \r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'POST',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n null,\r\n '/eventframes/{webId}/attributes/capture'\r\n );\r\n\r\n return [null, $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "86d2ff62e7da85340b40ae319f0c17a2", "score": "0.48340833", "text": "public function eventFrameGetEventFramesWithHttpInfo($web_id, $can_be_acknowledged = null, $category_name = null, $end_time = null, $is_acknowledged = null, $max_count = null, $name_filter = null, $referenced_element_name_filter = null, $referenced_element_template_name = null, $search_full_hierarchy = null, $search_mode = null, $selected_fields = null, $severity = null, $sort_field = null, $sort_order = null, $start_index = null, $start_time = null, $template_name = null)\r\n {\r\n // verify the required parameter 'web_id' is set\r\n if ($web_id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $web_id when calling eventFrameGetEventFrames');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes/{webId}/eventframes\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);\r\n\r\n // query params\r\n if ($can_be_acknowledged !== null) {\r\n $queryParams['canBeAcknowledged'] = $this->apiClient->getSerializer()->toQueryValue($can_be_acknowledged);\r\n }\r\n // query params\r\n if ($category_name !== null) {\r\n $queryParams['categoryName'] = $this->apiClient->getSerializer()->toQueryValue($category_name);\r\n }\r\n // query params\r\n if ($end_time !== null) {\r\n $queryParams['endTime'] = $this->apiClient->getSerializer()->toQueryValue($end_time);\r\n }\r\n // query params\r\n if ($is_acknowledged !== null) {\r\n $queryParams['isAcknowledged'] = $this->apiClient->getSerializer()->toQueryValue($is_acknowledged);\r\n }\r\n // query params\r\n if ($max_count !== null) {\r\n $queryParams['maxCount'] = $this->apiClient->getSerializer()->toQueryValue($max_count);\r\n }\r\n // query params\r\n if ($name_filter !== null) {\r\n $queryParams['nameFilter'] = $this->apiClient->getSerializer()->toQueryValue($name_filter);\r\n }\r\n // query params\r\n if ($referenced_element_name_filter !== null) {\r\n $queryParams['referencedElementNameFilter'] = $this->apiClient->getSerializer()->toQueryValue($referenced_element_name_filter);\r\n }\r\n // query params\r\n if ($referenced_element_template_name !== null) {\r\n $queryParams['referencedElementTemplateName'] = $this->apiClient->getSerializer()->toQueryValue($referenced_element_template_name);\r\n }\r\n // query params\r\n if ($search_full_hierarchy !== null) {\r\n $queryParams['searchFullHierarchy'] = $this->apiClient->getSerializer()->toQueryValue($search_full_hierarchy);\r\n }\r\n // query params\r\n if ($search_mode !== null) {\r\n $queryParams['searchMode'] = $this->apiClient->getSerializer()->toQueryValue($search_mode);\r\n }\r\n // query params\r\n if ($selected_fields !== null) {\r\n $queryParams['selectedFields'] = $this->apiClient->getSerializer()->toQueryValue($selected_fields);\r\n }\r\n // query params\r\n if (is_array($severity)) {\r\n $severity = $this->apiClient->getSerializer()->serializeCollection($severity, 'multi', true);\r\n }\r\n if ($severity !== null) {\r\n $queryParams['severity'] = $this->apiClient->getSerializer()->toQueryValue($severity);\r\n }\r\n // query params\r\n if ($sort_field !== null) {\r\n $queryParams['sortField'] = $this->apiClient->getSerializer()->toQueryValue($sort_field);\r\n }\r\n // query params\r\n if ($sort_order !== null) {\r\n $queryParams['sortOrder'] = $this->apiClient->getSerializer()->toQueryValue($sort_order);\r\n }\r\n // query params\r\n if ($start_index !== null) {\r\n $queryParams['startIndex'] = $this->apiClient->getSerializer()->toQueryValue($start_index);\r\n }\r\n // query params\r\n if ($start_time !== null) {\r\n $queryParams['startTime'] = $this->apiClient->getSerializer()->toQueryValue($start_time);\r\n }\r\n // query params\r\n if ($template_name !== null) {\r\n $queryParams['templateName'] = $this->apiClient->getSerializer()->toQueryValue($template_name);\r\n }\r\n // path params\r\n if ($web_id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"webId\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($web_id),\r\n $resourcePath\r\n );\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n \r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'GET',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n '\\PIWebAPI\\Client\\Model\\ItemsEventFrame',\r\n '/eventframes/{webId}/eventframes'\r\n );\r\n\r\n return [$this->apiClient->getSerializer()->deserialize($response, '\\PIWebAPI\\Client\\Model\\ItemsEventFrame', $httpHeader), $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n case 200:\r\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\PIWebAPI\\Client\\Model\\ItemsEventFrame', $e->getResponseHeaders());\r\n $e->setResponseObject($data);\r\n break;\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "fde041b944763dc31c4d0c792a377582", "score": "0.47093225", "text": "public function eventFrameCreateAttributeWithHttpInfo($web_id, $attribute)\r\n {\r\n // verify the required parameter 'web_id' is set\r\n if ($web_id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $web_id when calling eventFrameCreateAttribute');\r\n }\r\n // verify the required parameter 'attribute' is set\r\n if ($attribute === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $attribute when calling eventFrameCreateAttribute');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes/{webId}/attributes\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json', 'text/json']);\r\n\r\n // path params\r\n if ($web_id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"webId\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($web_id),\r\n $resourcePath\r\n );\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n // body params\r\n $_tempBody = null;\r\n if (isset($attribute)) {\r\n $_tempBody = $attribute;\r\n }\r\n\r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'POST',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n null,\r\n '/eventframes/{webId}/attributes'\r\n );\r\n\r\n return [null, $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "f7db17606c9b7219a81b6c642f4fe16b", "score": "0.4695563", "text": "public function eventFrameGetByPathWithHttpInfo($path, $selected_fields = null)\r\n {\r\n // verify the required parameter 'path' is set\r\n if ($path === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $path when calling eventFrameGetByPath');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);\r\n\r\n // query params\r\n if ($path !== null) {\r\n $queryParams['path'] = $this->apiClient->getSerializer()->toQueryValue($path);\r\n }\r\n // query params\r\n if ($selected_fields !== null) {\r\n $queryParams['selectedFields'] = $this->apiClient->getSerializer()->toQueryValue($selected_fields);\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n \r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'GET',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n '\\PIWebAPI\\Client\\Model\\EventFrame',\r\n '/eventframes'\r\n );\r\n\r\n return [$this->apiClient->getSerializer()->deserialize($response, '\\PIWebAPI\\Client\\Model\\EventFrame', $httpHeader), $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n case 200:\r\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\PIWebAPI\\Client\\Model\\EventFrame', $e->getResponseHeaders());\r\n $e->setResponseObject($data);\r\n break;\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "cb7f75076510d77d37b16f0af642a723", "score": "0.45752138", "text": "public function eventFrameExecuteSearchByAttributeWithHttpInfo($search_id, $can_be_acknowledged = null, $end_time = null, $is_acknowledged = null, $max_count = null, $name_filter = null, $referenced_element_name_filter = null, $search_full_hierarchy = null, $search_mode = null, $selected_fields = null, $severity = null, $sort_field = null, $sort_order = null, $start_index = null, $start_time = null)\r\n {\r\n // verify the required parameter 'search_id' is set\r\n if ($search_id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $search_id when calling eventFrameExecuteSearchByAttribute');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes/searchbyattribute/{searchId}\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);\r\n\r\n // query params\r\n if ($can_be_acknowledged !== null) {\r\n $queryParams['canBeAcknowledged'] = $this->apiClient->getSerializer()->toQueryValue($can_be_acknowledged);\r\n }\r\n // query params\r\n if ($end_time !== null) {\r\n $queryParams['endTime'] = $this->apiClient->getSerializer()->toQueryValue($end_time);\r\n }\r\n // query params\r\n if ($is_acknowledged !== null) {\r\n $queryParams['isAcknowledged'] = $this->apiClient->getSerializer()->toQueryValue($is_acknowledged);\r\n }\r\n // query params\r\n if ($max_count !== null) {\r\n $queryParams['maxCount'] = $this->apiClient->getSerializer()->toQueryValue($max_count);\r\n }\r\n // query params\r\n if ($name_filter !== null) {\r\n $queryParams['nameFilter'] = $this->apiClient->getSerializer()->toQueryValue($name_filter);\r\n }\r\n // query params\r\n if ($referenced_element_name_filter !== null) {\r\n $queryParams['referencedElementNameFilter'] = $this->apiClient->getSerializer()->toQueryValue($referenced_element_name_filter);\r\n }\r\n // query params\r\n if ($search_full_hierarchy !== null) {\r\n $queryParams['searchFullHierarchy'] = $this->apiClient->getSerializer()->toQueryValue($search_full_hierarchy);\r\n }\r\n // query params\r\n if ($search_mode !== null) {\r\n $queryParams['searchMode'] = $this->apiClient->getSerializer()->toQueryValue($search_mode);\r\n }\r\n // query params\r\n if ($selected_fields !== null) {\r\n $queryParams['selectedFields'] = $this->apiClient->getSerializer()->toQueryValue($selected_fields);\r\n }\r\n // query params\r\n if (is_array($severity)) {\r\n $severity = $this->apiClient->getSerializer()->serializeCollection($severity, 'multi', true);\r\n }\r\n if ($severity !== null) {\r\n $queryParams['severity'] = $this->apiClient->getSerializer()->toQueryValue($severity);\r\n }\r\n // query params\r\n if ($sort_field !== null) {\r\n $queryParams['sortField'] = $this->apiClient->getSerializer()->toQueryValue($sort_field);\r\n }\r\n // query params\r\n if ($sort_order !== null) {\r\n $queryParams['sortOrder'] = $this->apiClient->getSerializer()->toQueryValue($sort_order);\r\n }\r\n // query params\r\n if ($start_index !== null) {\r\n $queryParams['startIndex'] = $this->apiClient->getSerializer()->toQueryValue($start_index);\r\n }\r\n // query params\r\n if ($start_time !== null) {\r\n $queryParams['startTime'] = $this->apiClient->getSerializer()->toQueryValue($start_time);\r\n }\r\n // path params\r\n if ($search_id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"searchId\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($search_id),\r\n $resourcePath\r\n );\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n \r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'GET',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n null,\r\n '/eventframes/searchbyattribute/{searchId}'\r\n );\r\n\r\n return [null, $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n case 400:\r\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\PIWebAPI\\Client\\Model\\Errors', $e->getResponseHeaders());\r\n $e->setResponseObject($data);\r\n break;\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "c30886ec9645af5101b3857d91a7d418", "score": "0.45659545", "text": "public function eventFrameGetSecurityEntriesWithHttpInfo($web_id, $name_filter = null, $selected_fields = null)\r\n {\r\n // verify the required parameter 'web_id' is set\r\n if ($web_id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $web_id when calling eventFrameGetSecurityEntries');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes/{webId}/securityentries\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);\r\n\r\n // query params\r\n if ($name_filter !== null) {\r\n $queryParams['nameFilter'] = $this->apiClient->getSerializer()->toQueryValue($name_filter);\r\n }\r\n // query params\r\n if ($selected_fields !== null) {\r\n $queryParams['selectedFields'] = $this->apiClient->getSerializer()->toQueryValue($selected_fields);\r\n }\r\n // path params\r\n if ($web_id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"webId\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($web_id),\r\n $resourcePath\r\n );\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n \r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'GET',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n '\\PIWebAPI\\Client\\Model\\ItemsSecurityEntry',\r\n '/eventframes/{webId}/securityentries'\r\n );\r\n\r\n return [$this->apiClient->getSerializer()->deserialize($response, '\\PIWebAPI\\Client\\Model\\ItemsSecurityEntry', $httpHeader), $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n case 200:\r\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\PIWebAPI\\Client\\Model\\ItemsSecurityEntry', $e->getResponseHeaders());\r\n $e->setResponseObject($data);\r\n break;\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "25e32aade7f0789e4e12b86515962de8", "score": "0.45531884", "text": "public function eventFrameGetAnnotationsWithHttpInfo($web_id, $selected_fields = null)\r\n {\r\n // verify the required parameter 'web_id' is set\r\n if ($web_id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $web_id when calling eventFrameGetAnnotations');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes/{webId}/annotations\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);\r\n\r\n // query params\r\n if ($selected_fields !== null) {\r\n $queryParams['selectedFields'] = $this->apiClient->getSerializer()->toQueryValue($selected_fields);\r\n }\r\n // path params\r\n if ($web_id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"webId\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($web_id),\r\n $resourcePath\r\n );\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n \r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'GET',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n '\\PIWebAPI\\Client\\Model\\ItemsAnnotation',\r\n '/eventframes/{webId}/annotations'\r\n );\r\n\r\n return [$this->apiClient->getSerializer()->deserialize($response, '\\PIWebAPI\\Client\\Model\\ItemsAnnotation', $httpHeader), $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n case 200:\r\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\PIWebAPI\\Client\\Model\\ItemsAnnotation', $e->getResponseHeaders());\r\n $e->setResponseObject($data);\r\n break;\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "425ce28d4ad7a54b493046e9b412462e", "score": "0.44385722", "text": "public function eventFrameGet($web_id, $selected_fields = null)\r\n {\r\n list($response) = $this->eventFrameGetWithHttpInfo($web_id, $selected_fields);\r\n return $response;\r\n }", "title": "" }, { "docid": "35682f1146cd96569cf25ebcca94a59c", "score": "0.44149286", "text": "public function eventFrameCreateSearchByAttribute()\r\n {\r\n list($response) = $this->eventFrameCreateSearchByAttributeWithHttpInfo();\r\n return $response;\r\n }", "title": "" }, { "docid": "80a29b69ad0d0764a8a2c8dcbfd4a16c", "score": "0.42621377", "text": "public function getFrameOwner(ContextInterface $ctx, GetFrameOwnerRequest $request): GetFrameOwnerResponse;", "title": "" }, { "docid": "cecd40b26e2924785a29863f261171af", "score": "0.42599213", "text": "public function eventFrameGetEventFrames($web_id, $can_be_acknowledged = null, $category_name = null, $end_time = null, $is_acknowledged = null, $max_count = null, $name_filter = null, $referenced_element_name_filter = null, $referenced_element_template_name = null, $search_full_hierarchy = null, $search_mode = null, $selected_fields = null, $severity = null, $sort_field = null, $sort_order = null, $start_index = null, $start_time = null, $template_name = null)\r\n {\r\n list($response) = $this->eventFrameGetEventFramesWithHttpInfo($web_id, $can_be_acknowledged, $category_name, $end_time, $is_acknowledged, $max_count, $name_filter, $referenced_element_name_filter, $referenced_element_template_name, $search_full_hierarchy, $search_mode, $selected_fields, $severity, $sort_field, $sort_order, $start_index, $start_time, $template_name);\r\n return $response;\r\n }", "title": "" }, { "docid": "b10d1c735f28c290bbc1a3831ab1d6aa", "score": "0.4170075", "text": "public function eventFrameGetAnnotationByIdWithHttpInfo($id, $web_id, $selected_fields = null)\r\n {\r\n // verify the required parameter 'id' is set\r\n if ($id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $id when calling eventFrameGetAnnotationById');\r\n }\r\n // verify the required parameter 'web_id' is set\r\n if ($web_id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $web_id when calling eventFrameGetAnnotationById');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes/{webId}/annotations/{id}\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);\r\n\r\n // query params\r\n if ($selected_fields !== null) {\r\n $queryParams['selectedFields'] = $this->apiClient->getSerializer()->toQueryValue($selected_fields);\r\n }\r\n // path params\r\n if ($id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"id\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($id),\r\n $resourcePath\r\n );\r\n }\r\n // path params\r\n if ($web_id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"webId\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($web_id),\r\n $resourcePath\r\n );\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n \r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'GET',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n '\\PIWebAPI\\Client\\Model\\Annotation',\r\n '/eventframes/{webId}/annotations/{id}'\r\n );\r\n\r\n return [$this->apiClient->getSerializer()->deserialize($response, '\\PIWebAPI\\Client\\Model\\Annotation', $httpHeader), $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n case 200:\r\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\PIWebAPI\\Client\\Model\\Annotation', $e->getResponseHeaders());\r\n $e->setResponseObject($data);\r\n break;\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "0facf6882ce862eec51c59d680e3fc81", "score": "0.416859", "text": "public function eventFrameGetByPath($path, $selected_fields = null)\r\n {\r\n list($response) = $this->eventFrameGetByPathWithHttpInfo($path, $selected_fields);\r\n return $response;\r\n }", "title": "" }, { "docid": "ea9e955ca49c31df6e7ae08045d0de23", "score": "0.4137206", "text": "public function auditEventsQueryWithHttpInfo($offset = null, $limit = null, $sort = null, $filter = null)\n {\n $request = $this->auditEventsQueryRequest($offset, $limit, $sort, $filter);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? (string) $e->getResponse()->getBody() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n switch($statusCode) {\n case 200:\n if ('\\OpenAPI\\Client\\Model\\MsaQueryResponse' === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = (string) $responseBody;\n }\n\n return [\n ObjectSerializer::deserialize($content, '\\OpenAPI\\Client\\Model\\MsaQueryResponse', []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n case 400:\n if ('\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly' === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = (string) $responseBody;\n }\n\n return [\n ObjectSerializer::deserialize($content, '\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly', []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n case 403:\n if ('\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly' === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = (string) $responseBody;\n }\n\n return [\n ObjectSerializer::deserialize($content, '\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly', []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n case 429:\n if ('\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly' === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = (string) $responseBody;\n }\n\n return [\n ObjectSerializer::deserialize($content, '\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly', []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n case 500:\n if ('\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly' === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = (string) $responseBody;\n }\n\n return [\n ObjectSerializer::deserialize($content, '\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly', []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n default:\n if ('\\OpenAPI\\Client\\Model\\MsaQueryResponse' === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = (string) $responseBody;\n }\n\n return [\n ObjectSerializer::deserialize($content, '\\OpenAPI\\Client\\Model\\MsaQueryResponse', []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n }\n\n $returnType = '\\OpenAPI\\Client\\Model\\MsaQueryResponse';\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = (string) $responseBody;\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\OpenAPI\\Client\\Model\\MsaQueryResponse',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 400:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 403:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 429:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 500:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n default:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\OpenAPI\\Client\\Model\\MsaQueryResponse',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "title": "" }, { "docid": "8537b927a870c788219fd5017a5628b6", "score": "0.41063327", "text": "private static function extractFrameDetails($frame1, $frame2, $stackIndex)\n {\n $retval = [\n 'class' => null,\n 'function' => null,\n 'type' => null,\n 'file' => null,\n 'line' => null,\n 'stackIndex' => $stackIndex,\n ];\n\n $frame1Details = [\n 'class' => null,\n 'function' => null,\n 'type' => null,\n ];\n\n $frame2Details = [\n 'file' => null,\n 'line' => null,\n ];\n\n // we only want entries from the $frame array that we intend to return\n $parts1 = array_intersect_key($frame1, $frame1Details);\n $parts2 = array_intersect_key($frame2, $frame2Details);\n $retval = array_merge($retval, $parts1, $parts2);\n\n // all done\n return $retval;\n }", "title": "" }, { "docid": "8bdd5f81d90b27152c9384d7d9331af8", "score": "0.40619063", "text": "public function eventFrameGetMultipleWithHttpInfo($as_parallel = null, $include_mode = null, $path = null, $selected_fields = null, $web_id = null)\r\n {\r\n // parse inputs\r\n $resourcePath = \"/eventframes/multiple\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);\r\n\r\n // query params\r\n if ($as_parallel !== null) {\r\n $queryParams['asParallel'] = $this->apiClient->getSerializer()->toQueryValue($as_parallel);\r\n }\r\n // query params\r\n if ($include_mode !== null) {\r\n $queryParams['includeMode'] = $this->apiClient->getSerializer()->toQueryValue($include_mode);\r\n }\r\n // query params\r\n if (is_array($path)) {\r\n $path = $this->apiClient->getSerializer()->serializeCollection($path, 'multi', true);\r\n }\r\n if ($path !== null) {\r\n $queryParams['path'] = $this->apiClient->getSerializer()->toQueryValue($path);\r\n }\r\n // query params\r\n if ($selected_fields !== null) {\r\n $queryParams['selectedFields'] = $this->apiClient->getSerializer()->toQueryValue($selected_fields);\r\n }\r\n // query params\r\n if (is_array($web_id)) {\r\n $web_id = $this->apiClient->getSerializer()->serializeCollection($web_id, 'multi', true);\r\n }\r\n if ($web_id !== null) {\r\n $queryParams['webId'] = $this->apiClient->getSerializer()->toQueryValue($web_id);\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n \r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'GET',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n '\\PIWebAPI\\Client\\Model\\ItemsItemEventFrame',\r\n '/eventframes/multiple'\r\n );\r\n\r\n return [$this->apiClient->getSerializer()->deserialize($response, '\\PIWebAPI\\Client\\Model\\ItemsItemEventFrame', $httpHeader), $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n case 200:\r\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\PIWebAPI\\Client\\Model\\ItemsItemEventFrame', $e->getResponseHeaders());\r\n $e->setResponseObject($data);\r\n break;\r\n case 207:\r\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\PIWebAPI\\Client\\Model\\ItemsItemEventFrame', $e->getResponseHeaders());\r\n $e->setResponseObject($data);\r\n break;\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "a8da4f6e17f14087a8a7fad949f5368d", "score": "0.40388808", "text": "public function eventFrameGetSecurityEntryByNameWithHttpInfo($name, $web_id, $selected_fields = null)\r\n {\r\n // verify the required parameter 'name' is set\r\n if ($name === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $name when calling eventFrameGetSecurityEntryByName');\r\n }\r\n // verify the required parameter 'web_id' is set\r\n if ($web_id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $web_id when calling eventFrameGetSecurityEntryByName');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes/{webId}/securityentries/{name}\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);\r\n\r\n // query params\r\n if ($selected_fields !== null) {\r\n $queryParams['selectedFields'] = $this->apiClient->getSerializer()->toQueryValue($selected_fields);\r\n }\r\n // path params\r\n if ($name !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"name\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($name),\r\n $resourcePath\r\n );\r\n }\r\n // path params\r\n if ($web_id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"webId\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($web_id),\r\n $resourcePath\r\n );\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n \r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'GET',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n '\\PIWebAPI\\Client\\Model\\SecurityEntry',\r\n '/eventframes/{webId}/securityentries/{name}'\r\n );\r\n\r\n return [$this->apiClient->getSerializer()->deserialize($response, '\\PIWebAPI\\Client\\Model\\SecurityEntry', $httpHeader), $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n case 200:\r\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\PIWebAPI\\Client\\Model\\SecurityEntry', $e->getResponseHeaders());\r\n $e->setResponseObject($data);\r\n break;\r\n case 404:\r\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\PIWebAPI\\Client\\Model\\Errors', $e->getResponseHeaders());\r\n $e->setResponseObject($data);\r\n break;\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "73f1c17f5bca4a6050180a33a48796e4", "score": "0.40234125", "text": "public function eventFrameGetAnnotations($web_id, $selected_fields = null)\r\n {\r\n list($response) = $this->eventFrameGetAnnotationsWithHttpInfo($web_id, $selected_fields);\r\n return $response;\r\n }", "title": "" }, { "docid": "896315128963dcc0fd529cea23f92ccd", "score": "0.40189332", "text": "public function eventFrameDeleteWithHttpInfo($web_id)\r\n {\r\n // verify the required parameter 'web_id' is set\r\n if ($web_id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $web_id when calling eventFrameDelete');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes/{webId}\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);\r\n\r\n // path params\r\n if ($web_id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"webId\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($web_id),\r\n $resourcePath\r\n );\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n \r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'DELETE',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n null,\r\n '/eventframes/{webId}'\r\n );\r\n\r\n return [null, $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "154dd9719277249133a2735b3fc239f3", "score": "0.39704198", "text": "protected function getFilteredAttributes()\n\t{\n\t\treturn array_intersect_key($this->attributes, array_flip($this->iframeAttributes));\n\t}", "title": "" }, { "docid": "a16c66b7966d27d42200be915d752016", "score": "0.39614114", "text": "public function eventFrameCreateConfigWithHttpInfo($web_id, $include_child_elements = null)\r\n {\r\n // verify the required parameter 'web_id' is set\r\n if ($web_id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $web_id when calling eventFrameCreateConfig');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes/{webId}/config\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json', 'text/json']);\r\n\r\n // query params\r\n if ($include_child_elements !== null) {\r\n $queryParams['includeChildElements'] = $this->apiClient->getSerializer()->toQueryValue($include_child_elements);\r\n }\r\n // path params\r\n if ($web_id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"webId\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($web_id),\r\n $resourcePath\r\n );\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n \r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'POST',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n null,\r\n '/eventframes/{webId}/config'\r\n );\r\n\r\n return [null, $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "a61d2ab23b24481b9a79348ae0e7f01e", "score": "0.38855603", "text": "protected function getExceptionFrames()\n {\n $frames = $this->getInspector()->getFrames($this->getRun()->getFrameFilters());\n\n if ($this->getApplicationPaths()) {\n foreach ($frames as $frame) {\n foreach ($this->getApplicationPaths() as $path) {\n if (strpos($frame->getFile(), $path) === 0) {\n $frame->setApplication(true);\n break;\n }\n }\n }\n }\n\n return $frames;\n }", "title": "" }, { "docid": "b8d98755a281bdd4c3739b8d33373131", "score": "0.38428682", "text": "public function eventFrameGetSecurityWithHttpInfo($web_id, $user_identity, $force_refresh = null, $selected_fields = null)\r\n {\r\n // verify the required parameter 'web_id' is set\r\n if ($web_id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $web_id when calling eventFrameGetSecurity');\r\n }\r\n // verify the required parameter 'user_identity' is set\r\n if ($user_identity === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $user_identity when calling eventFrameGetSecurity');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes/{webId}/security\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);\r\n\r\n // query params\r\n if (is_array($user_identity)) {\r\n $user_identity = $this->apiClient->getSerializer()->serializeCollection($user_identity, 'multi', true);\r\n }\r\n if ($user_identity !== null) {\r\n $queryParams['userIdentity'] = $this->apiClient->getSerializer()->toQueryValue($user_identity);\r\n }\r\n // query params\r\n if ($force_refresh !== null) {\r\n $queryParams['forceRefresh'] = $this->apiClient->getSerializer()->toQueryValue($force_refresh);\r\n }\r\n // query params\r\n if ($selected_fields !== null) {\r\n $queryParams['selectedFields'] = $this->apiClient->getSerializer()->toQueryValue($selected_fields);\r\n }\r\n // path params\r\n if ($web_id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"webId\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($web_id),\r\n $resourcePath\r\n );\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n \r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'GET',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n '\\PIWebAPI\\Client\\Model\\ItemsSecurityRights',\r\n '/eventframes/{webId}/security'\r\n );\r\n\r\n return [$this->apiClient->getSerializer()->deserialize($response, '\\PIWebAPI\\Client\\Model\\ItemsSecurityRights', $httpHeader), $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n case 200:\r\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\PIWebAPI\\Client\\Model\\ItemsSecurityRights', $e->getResponseHeaders());\r\n $e->setResponseObject($data);\r\n break;\r\n case 400:\r\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\PIWebAPI\\Client\\Model\\Errors', $e->getResponseHeaders());\r\n $e->setResponseObject($data);\r\n break;\r\n case 401:\r\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\PIWebAPI\\Client\\Model\\Errors', $e->getResponseHeaders());\r\n $e->setResponseObject($data);\r\n break;\r\n case 409:\r\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\PIWebAPI\\Client\\Model\\Errors', $e->getResponseHeaders());\r\n $e->setResponseObject($data);\r\n break;\r\n case 502:\r\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\PIWebAPI\\Client\\Model\\Errors', $e->getResponseHeaders());\r\n $e->setResponseObject($data);\r\n break;\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "68465f76e5ac0a449eb6d4ee8276454b", "score": "0.38269448", "text": "public function auditEventsReadWithHttpInfo($ids = null)\n {\n $request = $this->auditEventsReadRequest($ids);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? (string) $e->getResponse()->getBody() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n switch($statusCode) {\n case 200:\n if ('\\OpenAPI\\Client\\Model\\ApiAuditEventDetailsResponseV1' === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = (string) $responseBody;\n }\n\n return [\n ObjectSerializer::deserialize($content, '\\OpenAPI\\Client\\Model\\ApiAuditEventDetailsResponseV1', []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n case 400:\n if ('\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly' === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = (string) $responseBody;\n }\n\n return [\n ObjectSerializer::deserialize($content, '\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly', []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n case 403:\n if ('\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly' === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = (string) $responseBody;\n }\n\n return [\n ObjectSerializer::deserialize($content, '\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly', []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n case 429:\n if ('\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly' === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = (string) $responseBody;\n }\n\n return [\n ObjectSerializer::deserialize($content, '\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly', []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n case 500:\n if ('\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly' === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = (string) $responseBody;\n }\n\n return [\n ObjectSerializer::deserialize($content, '\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly', []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n default:\n if ('\\OpenAPI\\Client\\Model\\ApiAuditEventDetailsResponseV1' === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = (string) $responseBody;\n }\n\n return [\n ObjectSerializer::deserialize($content, '\\OpenAPI\\Client\\Model\\ApiAuditEventDetailsResponseV1', []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n }\n\n $returnType = '\\OpenAPI\\Client\\Model\\ApiAuditEventDetailsResponseV1';\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = (string) $responseBody;\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\OpenAPI\\Client\\Model\\ApiAuditEventDetailsResponseV1',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 400:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 403:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 429:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 500:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\OpenAPI\\Client\\Model\\MsaReplyMetaOnly',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n default:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\OpenAPI\\Client\\Model\\ApiAuditEventDetailsResponseV1',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "title": "" }, { "docid": "0fc6a962d5fbaa056aff4ba14d9b218f", "score": "0.3804048", "text": "private function getFrame(string $file, int $line, array $stacktraceFrame)\n {\n if (preg_match('/^(.*)\\((\\d+)\\) : (?:eval\\(\\)\\'d code|runtime-created function)$/', $file, $matches)) {\n $file = $matches[1];\n $line = (int) $matches[2];\n }\n\n if (isset($stacktraceFrame['class'])) {\n $functionName = sprintf('%s::%s', $stacktraceFrame['class'], $stacktraceFrame['function']);\n } elseif (isset($stacktraceFrame['function'])) {\n $functionName = $stacktraceFrame['function'];\n } else {\n $functionName = null;\n }\n\n return [\n 'function' => $functionName,\n 'file' => $file,\n 'line' => $line\n ];\n }", "title": "" }, { "docid": "83f4b274f535ca6aba473b5408bd45e2", "score": "0.37630168", "text": "public function input($frame)\n {\n $data = json_decode($frame->data, true);\n\n return [\n 'event' => $data['event'] ?? null,\n 'data' => $data['data'] ?? null\n ];\n }", "title": "" }, { "docid": "4249f3eb7738b9ea21595628fef3791d", "score": "0.37551147", "text": "public function getEAttributes();", "title": "" }, { "docid": "df1233c41e428591989c730fade9aea9", "score": "0.3753273", "text": "public function getAttributes(ContextInterface $ctx, GetAttributesRequest $request): GetAttributesResponse;", "title": "" }, { "docid": "94cdf36842c87a6a138237942fd8008b", "score": "0.37416458", "text": "public function eventFrameGetReferencedElementsWithHttpInfo($web_id, $selected_fields = null)\r\n {\r\n // verify the required parameter 'web_id' is set\r\n if ($web_id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $web_id when calling eventFrameGetReferencedElements');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes/{webId}/referencedelements\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);\r\n\r\n // query params\r\n if ($selected_fields !== null) {\r\n $queryParams['selectedFields'] = $this->apiClient->getSerializer()->toQueryValue($selected_fields);\r\n }\r\n // path params\r\n if ($web_id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"webId\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($web_id),\r\n $resourcePath\r\n );\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n \r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'GET',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n '\\PIWebAPI\\Client\\Model\\ItemsElement',\r\n '/eventframes/{webId}/referencedelements'\r\n );\r\n\r\n return [$this->apiClient->getSerializer()->deserialize($response, '\\PIWebAPI\\Client\\Model\\ItemsElement', $httpHeader), $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n case 200:\r\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\PIWebAPI\\Client\\Model\\ItemsElement', $e->getResponseHeaders());\r\n $e->setResponseObject($data);\r\n break;\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "d8994832932c56005de1073af3df4909", "score": "0.3711616", "text": "public function getContentmanagementDocumentAuditsWithHttpInfo($documentId, $pageSize = '25', $pageNumber = '1', $transactionFilter = null, $level = 'USER', $sortBy = null, $sortOrder = 'ascending')\n {\n $returnType = '\\PureCloudPlatform\\Client\\V2\\Model\\DocumentAuditEntityListing';\n $request = $this->getContentmanagementDocumentAuditsRequest($documentId, $pageSize, $pageNumber, $transactionFilter, $level, $sortBy, $sortOrder);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PureCloudPlatform\\Client\\V2\\Model\\DocumentAuditEntityListing',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 400:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PureCloudPlatform\\Client\\V2\\Model\\ErrorBody',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 401:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PureCloudPlatform\\Client\\V2\\Model\\ErrorBody',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 403:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PureCloudPlatform\\Client\\V2\\Model\\ErrorBody',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 404:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PureCloudPlatform\\Client\\V2\\Model\\ErrorBody',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 413:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PureCloudPlatform\\Client\\V2\\Model\\ErrorBody',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 415:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PureCloudPlatform\\Client\\V2\\Model\\ErrorBody',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 429:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PureCloudPlatform\\Client\\V2\\Model\\ErrorBody',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 500:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PureCloudPlatform\\Client\\V2\\Model\\ErrorBody',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 503:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PureCloudPlatform\\Client\\V2\\Model\\ErrorBody',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 504:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PureCloudPlatform\\Client\\V2\\Model\\ErrorBody',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "title": "" }, { "docid": "f983c6cfbb379817b952cb3a46364c75", "score": "0.37107307", "text": "public function fileContainerFindWithHttpInfo($filter = null)\n {\n \n \n // parse inputs\n $resourcePath = \"/fileContainers\";\n $httpBody = '';\n $queryParams = array();\n $headerParams = array();\n $formParams = array();\n $_header_accept = ApiClient::selectHeaderAccept(array('application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript'));\n if (!is_null($_header_accept)) {\n $headerParams['Accept'] = $_header_accept;\n }\n $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json','application/x-www-form-urlencoded','application/xml','text/xml'));\n \n // query params\n \n if ($filter !== null) {\n $queryParams['filter'] = $this->apiClient->getSerializer()->toQueryValue($filter);\n }\n \n \n // default format to json\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\n\n \n \n \n // for model (json/xml)\n if (isset($_tempBody)) {\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\n } elseif (count($formParams) > 0) {\n $httpBody = $formParams; // for HTTP post (form)\n }\n \n // make the API Call\n try {\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\n $resourcePath, 'GET',\n $queryParams, $httpBody,\n $headerParams, '\\DBCDK\\CommunityServices\\Model\\FileContainer[]'\n );\n \n if (!$response) {\n return array(null, $statusCode, $httpHeader);\n }\n\n return array(\\DBCDK\\CommunityServices\\ObjectSerializer::deserialize($response, '\\DBCDK\\CommunityServices\\Model\\FileContainer[]', $httpHeader), $statusCode, $httpHeader);\n \n } catch (ApiException $e) {\n switch ($e->getCode()) { \n case 200:\n $data = \\DBCDK\\CommunityServices\\ObjectSerializer::deserialize($e->getResponseBody(), '\\DBCDK\\CommunityServices\\Model\\FileContainer[]', $e->getResponseHeaders());\n $e->setResponseObject($data);\n break;\n }\n \n throw $e;\n }\n }", "title": "" }, { "docid": "2a9dd8180af7c92595fcb924a4197b5d", "score": "0.36849827", "text": "public function auditEventsQueryAsyncWithHttpInfo($offset = null, $limit = null, $sort = null, $filter = null)\n {\n $returnType = '\\OpenAPI\\Client\\Model\\MsaQueryResponse';\n $request = $this->auditEventsQueryRequest($offset, $limit, $sort, $filter);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = (string) $responseBody;\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "title": "" }, { "docid": "97ddd6f8f915e2cef5f3d4797d19fed7", "score": "0.36829436", "text": "public function getEventInfo($eventId)\n {\n $url = 'https://' . $this->host . '/nba/boxscore/' . $eventId . '.json';\n // Set the User Agent, Authorization header and allow gzip\n $default_opts = array(\n 'http' => array(\n 'user_agent' => self::USER_AGENT,\n 'header' => array(\n 'Accept-Encoding: gzip',\n 'Authorization: Bearer ' . $this->accessToken\n )\n )\n );\n stream_context_get_default($default_opts);\n $file = 'compress.zlib://' . $url;\n try {\n $fh = @fopen($file, 'rb');\n } catch (Exception $e) {\n return array();\n }\n if (!$fh) return array();\n\n $content = stream_get_contents($fh);\n return json_decode($content, true);\n }", "title": "" }, { "docid": "d3b3986c9eb7fda5225210f429f45018", "score": "0.3661908", "text": "public static function getEventParams( Event $event ) {\n\t\t$delay = $event->getExtraParam( 'delay' );\n\t\t$rootJobSignature = $event->getExtraParam( 'rootJobSignature' );\n\t\t$rootJobTimestamp = $event->getExtraParam( 'rootJobTimestamp' );\n\n\t\treturn [ 'eventId' => $event->getId() ]\n\t\t\t+ ( $delay ? [ 'jobReleaseTimestamp' => (int)wfTimestamp() + $delay ] : [] )\n\t\t\t+ ( $rootJobSignature ? [ 'rootJobSignature' => $rootJobSignature ] : [] )\n\t\t\t+ ( $rootJobTimestamp ? [ 'rootJobTimestamp' => $rootJobTimestamp ] : [] );\n\t}", "title": "" }, { "docid": "672cdbee8b008a0c36231d8371146657", "score": "0.36427203", "text": "public function getFrames()\n {\n if ($this->frames === null) {\n $frames = $this->exception->getTrace();\n\n // If we're handling an ErrorException thrown by BooBoo,\n // get rid of the last frame, which matches the handleError method,\n // and do not add the current exception to trace. We ensure that\n // the next frame does have a filename / linenumber, though.\n if ($this->exception instanceof ErrorException) {\n foreach ($frames as $k => $frame) {\n if (isset($frame['class']) &&\n strpos($frame['class'], 'BooBoo') !== false\n ) {\n unset($frames[$k]);\n }\n }\n }\n\n $this->frames = new FrameCollection($frames);\n\n if ($previousInspector = $this->getPreviousExceptionInspector()) {\n // Keep outer frame on top of the inner one\n $outerFrames = $this->frames;\n $newFrames = clone $previousInspector->getFrames();\n $newFrames->prependFrames($outerFrames->topDiff($newFrames));\n $this->frames = $newFrames;\n }\n }\n\n return $this->frames;\n }", "title": "" }, { "docid": "75b716dd4e90f2eecd91c1f31a6a8545", "score": "0.36335886", "text": "public static function formatExceptionAsDataArray(InspectorInterface $inspector, $shouldAddTrace, array $frameFilters = [])\n {\n $exception = $inspector->getException();\n $response = [\n 'type' => get_class($exception),\n 'message' => $exception->getMessage(),\n 'code' => $exception->getCode(),\n 'file' => $exception->getFile(),\n 'line' => $exception->getLine(),\n ];\n\n if ($shouldAddTrace) {\n $frames = $inspector->getFrames($frameFilters);\n $frameData = [];\n\n foreach ($frames as $frame) {\n /** @var Frame $frame */\n $frameData[] = [\n 'file' => $frame->getFile(),\n 'line' => $frame->getLine(),\n 'function' => $frame->getFunction(),\n 'class' => $frame->getClass(),\n 'args' => $frame->getArgs(),\n ];\n }\n\n $response['trace'] = $frameData;\n }\n\n return $response;\n }", "title": "" }, { "docid": "68e0fe1202757f7c826285dffbbae2de", "score": "0.3617838", "text": "public function decode($frame)\n {\n $data = json_decode($frame->data, true);\n $data['data']['fd'] = $frame->fd;\n\n return [\n //事件名称请查看 websocket.php 中自定义的方法\n 'event' => $data['event'],\n 'data' => $data['data']\n ];\n }", "title": "" }, { "docid": "b906464b263a3efb8c182189a9dc176e", "score": "0.36095437", "text": "protected function getAttributes($object, $format = null, array $context)\n {\n return PhoneNumber::$exposedAttributes;\n }", "title": "" }, { "docid": "1086ac0ad1a47284e793d1f96ae6c71b", "score": "0.35978132", "text": "public function eventFrameCaptureValues($web_id)\r\n {\r\n list($response) = $this->eventFrameCaptureValuesWithHttpInfo($web_id);\r\n return $response;\r\n }", "title": "" }, { "docid": "4aed2f0e6db89a6af58e887ca395f766", "score": "0.35953662", "text": "public function findWithHttpInfo($app_id, $table_name, $body)\n {\n \n // verify the required parameter 'app_id' is set\n if ($app_id === null) {\n throw new \\InvalidArgumentException('Missing the required parameter $app_id when calling find');\n }\n // verify the required parameter 'table_name' is set\n if ($table_name === null) {\n throw new \\InvalidArgumentException('Missing the required parameter $table_name when calling find');\n }\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException('Missing the required parameter $body when calling find');\n }\n \n // parse inputs\n $resourcePath = \"data/{app_id}/{table_name}/find\";\n $httpBody = '';\n $queryParams = array();\n $headerParams = array();\n $formParams = array();\n $_header_accept = ApiClient::selectHeaderAccept(array('application/json'));\n if (!is_null($_header_accept)) {\n $headerParams['Accept'] = $_header_accept;\n }\n $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json'));\n \n \n \n // path params\n \n if ($app_id !== null) {\n $resourcePath = str_replace(\n \"{\" . \"app_id\" . \"}\",\n $this->apiClient->getSerializer()->toPathValue($app_id),\n $resourcePath\n );\n }// path params\n \n if ($table_name !== null) {\n $resourcePath = str_replace(\n \"{\" . \"table_name\" . \"}\",\n $this->apiClient->getSerializer()->toPathValue($table_name),\n $resourcePath\n );\n }\n // default format to json\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\n\n \n // body params\n $_tempBody = null;\n if (isset($body)) {\n $_tempBody = $body;\n }\n \n // for model (json/xml)\n if (isset($_tempBody)) {\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\n } elseif (count($formParams) > 0) {\n $httpBody = $formParams; // for HTTP post (form)\n }\n \n // make the API Call\n try {\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\n $resourcePath, 'POST',\n $queryParams, $httpBody,\n $headerParams, '\\Swagger\\Client\\Model\\CloudObject[]'\n );\n \n if (!$response) {\n return array(null, $statusCode, $httpHeader);\n }\n\n return array(\\Swagger\\Client\\ObjectSerializer::deserialize($response, '\\Swagger\\Client\\Model\\CloudObject[]', $httpHeader), $statusCode, $httpHeader);\n \n } catch (ApiException $e) {\n switch ($e->getCode()) { \n case 200:\n $data = \\Swagger\\Client\\ObjectSerializer::deserialize($e->getResponseBody(), '\\Swagger\\Client\\Model\\CloudObject[]', $e->getResponseHeaders());\n $e->setResponseObject($data);\n break;\n }\n \n throw $e;\n }\n }", "title": "" }, { "docid": "3b28d0e3185feff06388eeaa5d0d838a", "score": "0.35923275", "text": "protected function eventAttributes(){\n\t\treturn array(\n\t\t\t'dueDate'=>EventLog::report_DUE,\n\t\t\t'printDate'=>EventLog::report_PRINT,\n\t\t\t'pickUpDate'=>EventLog::report_PICKUP,\n\t\t);\n\t}", "title": "" }, { "docid": "a7a83709f4f03d4e0178ccb06e248449", "score": "0.35751852", "text": "public function getFrames()\n {\n if ($this->frames === null) {\n $frames = $this->exception->getTrace();\n\n // If we're handling an \\ErrorException thrown by BooBoo,\n // get rid of the last frame, which matches the handleError method,\n // and do not add the current exception to trace. We ensure that\n // the next frame does have a filename / linenumber, though.\n if ($this->exception instanceof \\ErrorException) {\n foreach ($frames as $k => $frame) {\n if (isset($frame['class']) &&\n strpos($frame['class'], 'BooBoo') !== false\n ) {\n unset($frames[$k]);\n }\n }\n }\n\n $this->frames = new FrameCollection($frames);\n\n if ($previousInspector = $this->getPreviousExceptionInspector()) {\n // Keep outer frame on top of the inner one\n $outerFrames = $this->frames;\n $newFrames = clone $previousInspector->getFrames();\n $newFrames->prependFrames($outerFrames->topDiff($newFrames));\n $this->frames = $newFrames;\n }\n }\n\n return $this->frames;\n }", "title": "" }, { "docid": "8e364f88ab2850c3c0d7f42d071110a1", "score": "0.35601372", "text": "public function getAllInvitationsWithHttpInfo($course_id = null, $since = null, $until = null, $datetime_filter = null, $tags = null, $more = null)\n {\n // parse inputs\n $resourcePath = \"/invitations\";\n $httpBody = '';\n $queryParams = [];\n $headerParams = [];\n $formParams = [];\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json']);\n if (!is_null($_header_accept)) {\n $headerParams['Accept'] = $_header_accept;\n }\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']);\n\n // query params\n if ($course_id !== null) {\n $queryParams['courseId'] = $this->apiClient->getSerializer()->toQueryValue($course_id);\n }\n // query params\n if ($since !== null) {\n $queryParams['since'] = $this->apiClient->getSerializer()->toQueryValue($since);\n }\n // query params\n if ($until !== null) {\n $queryParams['until'] = $this->apiClient->getSerializer()->toQueryValue($until);\n }\n // query params\n if ($datetime_filter !== null) {\n $queryParams['datetimeFilter'] = $this->apiClient->getSerializer()->toQueryValue($datetime_filter);\n }\n // query params\n if (is_array($tags)) {\n $tags = $this->apiClient->getSerializer()->serializeCollection($tags, 'csv', true);\n }\n if ($tags !== null) {\n $queryParams['tags'] = $this->apiClient->getSerializer()->toQueryValue($tags);\n }\n // query params\n if ($more !== null) {\n $queryParams['more'] = $this->apiClient->getSerializer()->toQueryValue($more);\n }\n // default format to json\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\n\n \n // for model (json/xml)\n if (isset($_tempBody)) {\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\n } elseif (count($formParams) > 0) {\n $httpBody = $formParams; // for HTTP post (form)\n }\n // this endpoint requires HTTP basic authentication\n if (strlen($this->apiClient->getConfig()->getUsername()) !== 0 or strlen($this->apiClient->getConfig()->getPassword()) !== 0) {\n $headerParams['Authorization'] = 'Basic ' . base64_encode($this->apiClient->getConfig()->getUsername() . \":\" . $this->apiClient->getConfig()->getPassword());\n }\n // this endpoint requires OAuth (access token)\n if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) {\n $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken();\n }\n // make the API Call\n try {\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\n $resourcePath,\n 'GET',\n $queryParams,\n $httpBody,\n $headerParams,\n '\\RusticiSoftware\\Cloud\\V2\\Model\\InvitationSummaryList',\n '/invitations'\n );\n\n return [$this->apiClient->getSerializer()->deserialize($response, '\\RusticiSoftware\\Cloud\\V2\\Model\\InvitationSummaryList', $httpHeader), $statusCode, $httpHeader];\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\RusticiSoftware\\Cloud\\V2\\Model\\InvitationSummaryList', $e->getResponseHeaders());\n $e->setResponseObject($data);\n break;\n case 400:\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\RusticiSoftware\\Cloud\\V2\\Model\\MessageSchema', $e->getResponseHeaders());\n $e->setResponseObject($data);\n break;\n }\n\n throw $e;\n }\n }", "title": "" }, { "docid": "ea07c09bbc2c7968bbdd5bdd790df027", "score": "0.35418758", "text": "public function eventFrameGetCategoriesWithHttpInfo($web_id, $selected_fields = null)\r\n {\r\n // verify the required parameter 'web_id' is set\r\n if ($web_id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $web_id when calling eventFrameGetCategories');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes/{webId}/categories\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);\r\n\r\n // query params\r\n if ($selected_fields !== null) {\r\n $queryParams['selectedFields'] = $this->apiClient->getSerializer()->toQueryValue($selected_fields);\r\n }\r\n // path params\r\n if ($web_id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"webId\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($web_id),\r\n $resourcePath\r\n );\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n \r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'GET',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n '\\PIWebAPI\\Client\\Model\\ItemsElementCategory',\r\n '/eventframes/{webId}/categories'\r\n );\r\n\r\n return [$this->apiClient->getSerializer()->deserialize($response, '\\PIWebAPI\\Client\\Model\\ItemsElementCategory', $httpHeader), $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n case 200:\r\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\PIWebAPI\\Client\\Model\\ItemsElementCategory', $e->getResponseHeaders());\r\n $e->setResponseObject($data);\r\n break;\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "104de2ea9bc341ebb5203a0766d1af59", "score": "0.3541402", "text": "public static function getEventInfo(int $id) {\n $phoneImageURL = EventsTabController::getPhoneHeaderImageUploadURL();\n $tabletImageURL = EventsTabController::getTabletHeaderImageUploadURL();\n return self::select(DB::raw(\"`id`, `tab_id`, `event_start_date`,`is_header_required`,`event_end_date`,\" . self::_getImageSelectString($phoneImageURL, 'phone_header_image') . \",\" . self::_getImageSelectString($tabletImageURL, 'tablet_header_image') . \",`m_lat`,`address_sec_1`,`timezone_id`,`address_sec_2`,`m_long`,`imported_location`,`description`,`status`,`name`,`location_id`\"))\n ->where('id', $id)\n ->first();\n }", "title": "" }, { "docid": "b75f8ad0eae48dca9880af242968f405", "score": "0.3519224", "text": "public function getEventFilters() {\n return $this->eventFilters;\n }", "title": "" }, { "docid": "d0cd2731cfad0b5474a5b82ef9aaafd2", "score": "0.35106575", "text": "public function eventFrameGetAnnotationById($id, $web_id, $selected_fields = null)\r\n {\r\n list($response) = $this->eventFrameGetAnnotationByIdWithHttpInfo($id, $web_id, $selected_fields);\r\n return $response;\r\n }", "title": "" }, { "docid": "0eaf35a23fbbcc3b0d4a098a41881a31", "score": "0.35019344", "text": "public function eventFrameGetMultiple($as_parallel = null, $include_mode = null, $path = null, $selected_fields = null, $web_id = null)\r\n {\r\n list($response) = $this->eventFrameGetMultipleWithHttpInfo($as_parallel, $include_mode, $path, $selected_fields, $web_id);\r\n return $response;\r\n }", "title": "" }, { "docid": "919a6b1bbcd6a52d3c94afd4830018f2", "score": "0.34993455", "text": "public function getEventDetails($event_id)\n {\n $event = [];\n $model = $this->_objectManager->create('Cor\\Eventmanagement\\Model\\Event');\n $model->load($event_id);\n if (count($model->getData()) > 0) {\n $event['name'] = $model->getEventName();\n $event['street'] = $model->getEventStreet();\n $event['city'] = $model->getEventCity();\n $event['state'] = $model->getEventState();\n $event['zip'] = $model->getEventZip();\n $event['country'] = $model->getEventCountry();\n $event['start_date'] = $model->getEventStartDate();\n $event['end_date'] = $model->getEventEndDate();\n $event['tax_values'] = $model->getTaxValues();\n\n }\n return $event;\n }", "title": "" }, { "docid": "050258e9c74407d124d6d7d571bc36fd", "score": "0.34931716", "text": "protected function getIframeFields()\n {\n $legend = $this->l('Web content (Iframe)');\n\n $inputs = array(\n array(\n 'type' => 'text',\n 'label' => $this->l('Iframe name'),\n 'name' => 'config[name]',\n ),\n array(\n 'type' => 'text',\n 'label' => $this->l('Iframe privacy url'),\n 'name' => 'config[uri]',\n ),\n array(\n 'type' => 'text',\n 'label' => $this->l('Iframe privacy url'),\n 'name' => 'config[cookies]',\n 'desc' => 'Need to be an array [\\'cookie 1\\', \\'cookie 2\\']',\n ),\n );\n\n return ['legend' => $legend, 'inputs' => $inputs];\n }", "title": "" }, { "docid": "b5fd57154c03c33ffeeca56b2568331c", "score": "0.34869945", "text": "private function getFilterAttributes(): array\r\n {\r\n $filterableAttributes = $this->collectionFactory\r\n ->create()\r\n ->addHasOptionsFilter()\r\n ->addIsFilterableFilter()\r\n ->getItems();\r\n\r\n $searchableAttributes = $this->collectionFactory\r\n ->create()\r\n ->addHasOptionsFilter()\r\n ->addIsSearchableFilter()\r\n ->addDisplayInAdvancedSearchFilter()\r\n ->getItems();\r\n\r\n return $filterableAttributes + $searchableAttributes;\r\n }", "title": "" }, { "docid": "39f5576d391dccd6999746016e3d9e9b", "score": "0.346588", "text": "public function pastMeetingDetailsWithHttpInfo($meeting_uuid)\n {\n $returnType = '\\Swagger\\Client\\Model\\InlineResponse20023';\n $request = $this->pastMeetingDetailsRequest($meeting_uuid);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Swagger\\Client\\Model\\InlineResponse20023',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "title": "" }, { "docid": "14e0d89de3b8c18270ecbe55c70abc73", "score": "0.3453704", "text": "public function eventFrameExecuteSearchByAttribute($search_id, $can_be_acknowledged = null, $end_time = null, $is_acknowledged = null, $max_count = null, $name_filter = null, $referenced_element_name_filter = null, $search_full_hierarchy = null, $search_mode = null, $selected_fields = null, $severity = null, $sort_field = null, $sort_order = null, $start_index = null, $start_time = null)\r\n {\r\n list($response) = $this->eventFrameExecuteSearchByAttributeWithHttpInfo($search_id, $can_be_acknowledged, $end_time, $is_acknowledged, $max_count, $name_filter, $referenced_element_name_filter, $search_full_hierarchy, $search_mode, $selected_fields, $severity, $sort_field, $sort_order, $start_index, $start_time);\r\n return $response;\r\n }", "title": "" }, { "docid": "b12a7064a836a7547ab4a3dc08406773", "score": "0.34523737", "text": "public function getAttributes($request);", "title": "" }, { "docid": "aa9e64794fca86a7fe066801af81df73", "score": "0.34380758", "text": "public function decode($frame)\n {\n $data = json_decode($frame->data, true);\n\n return [\n 'event' => $data['event'] ?? null,\n 'data' => $data['data'] ?? null,\n ];\n }", "title": "" }, { "docid": "8e24620c33d5ffe0b454107b875f3e09", "score": "0.34343112", "text": "public function eventFrameUpdate($web_id, $event_frame)\r\n {\r\n list($response) = $this->eventFrameUpdateWithHttpInfo($web_id, $event_frame);\r\n return $response;\r\n }", "title": "" }, { "docid": "e3c45741e51d76aa04d1974722a3c0c3", "score": "0.34085044", "text": "public function eventFrameGetSecurityEntries($web_id, $name_filter = null, $selected_fields = null)\r\n {\r\n list($response) = $this->eventFrameGetSecurityEntriesWithHttpInfo($web_id, $name_filter, $selected_fields);\r\n return $response;\r\n }", "title": "" }, { "docid": "eb4bd20f7925e259f667ebb55c5a96c9", "score": "0.338021", "text": "public function eventFrameUpdateSecurityEntryWithHttpInfo($name, $web_id, $security_entry, $apply_to_children = null)\r\n {\r\n // verify the required parameter 'name' is set\r\n if ($name === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $name when calling eventFrameUpdateSecurityEntry');\r\n }\r\n // verify the required parameter 'web_id' is set\r\n if ($web_id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $web_id when calling eventFrameUpdateSecurityEntry');\r\n }\r\n // verify the required parameter 'security_entry' is set\r\n if ($security_entry === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $security_entry when calling eventFrameUpdateSecurityEntry');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes/{webId}/securityentries/{name}\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json', 'text/json']);\r\n\r\n // query params\r\n if ($apply_to_children !== null) {\r\n $queryParams['applyToChildren'] = $this->apiClient->getSerializer()->toQueryValue($apply_to_children);\r\n }\r\n // path params\r\n if ($name !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"name\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($name),\r\n $resourcePath\r\n );\r\n }\r\n // path params\r\n if ($web_id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"webId\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($web_id),\r\n $resourcePath\r\n );\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n // body params\r\n $_tempBody = null;\r\n if (isset($security_entry)) {\r\n $_tempBody = $security_entry;\r\n }\r\n\r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'PUT',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n null,\r\n '/eventframes/{webId}/securityentries/{name}'\r\n );\r\n\r\n return [null, $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "f7c425ecf6bce6b262366e0f3278269d", "score": "0.33742648", "text": "public function eventFrameDeleteSecurityEntryWithHttpInfo($name, $web_id, $apply_to_children = null)\r\n {\r\n // verify the required parameter 'name' is set\r\n if ($name === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $name when calling eventFrameDeleteSecurityEntry');\r\n }\r\n // verify the required parameter 'web_id' is set\r\n if ($web_id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $web_id when calling eventFrameDeleteSecurityEntry');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes/{webId}/securityentries/{name}\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);\r\n\r\n // query params\r\n if ($apply_to_children !== null) {\r\n $queryParams['applyToChildren'] = $this->apiClient->getSerializer()->toQueryValue($apply_to_children);\r\n }\r\n // path params\r\n if ($name !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"name\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($name),\r\n $resourcePath\r\n );\r\n }\r\n // path params\r\n if ($web_id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"webId\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($web_id),\r\n $resourcePath\r\n );\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n \r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'DELETE',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n null,\r\n '/eventframes/{webId}/securityentries/{name}'\r\n );\r\n\r\n return [null, $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "11b792f6571bf2a450625675af6281c5", "score": "0.3361771", "text": "public static function getAttributeFields() {\n $fields = [];\n $field_definitions = \\Drupal::service('entity_field.manager')->getFieldDefinitions('exo_asset', 'exo_asset');\n foreach ($field_definitions as $field_definition) {\n /* \\Drupal\\Core\\Field\\FieldDefinitionInterface $field */\n if ($field_definition->getType() == 'exo_attribute') {\n $fields[] = $field_definition;\n }\n }\n return $fields;\n }", "title": "" }, { "docid": "1d9675c6e44b4d70a57ee93f1f48ce2a", "score": "0.3345593", "text": "public function getPrivateInvitationsWithHttpInfo($course_id = null, $since = null, $until = null, $datetime_filter = null, $tags = null, $more = null)\n {\n // parse inputs\n $resourcePath = \"/invitations/private\";\n $httpBody = '';\n $queryParams = [];\n $headerParams = [];\n $formParams = [];\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json']);\n if (!is_null($_header_accept)) {\n $headerParams['Accept'] = $_header_accept;\n }\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']);\n\n // query params\n if ($course_id !== null) {\n $queryParams['courseId'] = $this->apiClient->getSerializer()->toQueryValue($course_id);\n }\n // query params\n if ($since !== null) {\n $queryParams['since'] = $this->apiClient->getSerializer()->toQueryValue($since);\n }\n // query params\n if ($until !== null) {\n $queryParams['until'] = $this->apiClient->getSerializer()->toQueryValue($until);\n }\n // query params\n if ($datetime_filter !== null) {\n $queryParams['datetimeFilter'] = $this->apiClient->getSerializer()->toQueryValue($datetime_filter);\n }\n // query params\n if (is_array($tags)) {\n $tags = $this->apiClient->getSerializer()->serializeCollection($tags, 'csv', true);\n }\n if ($tags !== null) {\n $queryParams['tags'] = $this->apiClient->getSerializer()->toQueryValue($tags);\n }\n // query params\n if ($more !== null) {\n $queryParams['more'] = $this->apiClient->getSerializer()->toQueryValue($more);\n }\n // default format to json\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\n\n \n // for model (json/xml)\n if (isset($_tempBody)) {\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\n } elseif (count($formParams) > 0) {\n $httpBody = $formParams; // for HTTP post (form)\n }\n // this endpoint requires HTTP basic authentication\n if (strlen($this->apiClient->getConfig()->getUsername()) !== 0 or strlen($this->apiClient->getConfig()->getPassword()) !== 0) {\n $headerParams['Authorization'] = 'Basic ' . base64_encode($this->apiClient->getConfig()->getUsername() . \":\" . $this->apiClient->getConfig()->getPassword());\n }\n // this endpoint requires OAuth (access token)\n if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) {\n $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken();\n }\n // make the API Call\n try {\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\n $resourcePath,\n 'GET',\n $queryParams,\n $httpBody,\n $headerParams,\n '\\RusticiSoftware\\Cloud\\V2\\Model\\PrivateInvitationList',\n '/invitations/private'\n );\n\n return [$this->apiClient->getSerializer()->deserialize($response, '\\RusticiSoftware\\Cloud\\V2\\Model\\PrivateInvitationList', $httpHeader), $statusCode, $httpHeader];\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\RusticiSoftware\\Cloud\\V2\\Model\\PrivateInvitationList', $e->getResponseHeaders());\n $e->setResponseObject($data);\n break;\n case 400:\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\RusticiSoftware\\Cloud\\V2\\Model\\MessageSchema', $e->getResponseHeaders());\n $e->setResponseObject($data);\n break;\n }\n\n throw $e;\n }\n }", "title": "" }, { "docid": "73cf87a7b36202388f4af926c42d325d", "score": "0.33444968", "text": "public function getEventRequestHeader()\n {\n return $this->get(self::EVENT_REQUEST_HEADER);\n }", "title": "" }, { "docid": "e7bdac19eda45cf3869b7d8a73d088b1", "score": "0.3343116", "text": "public function listFeesWithHttpInfo($location_id)\n {\n // verify the required parameter 'location_id' is set\n if ($location_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $location_id when calling listFees'\n );\n }\n\n // parse inputs\n $resourcePath = \"/v1/{location_id}/fees\";\n $httpBody = '';\n $queryParams = [];\n $headerParams = [];\n $formParams = [];\n $_header_accept = ApiClient::selectHeaderAccept(['application/json']);\n if ($_header_accept !== null) {\n $headerParams['Accept'] = $_header_accept;\n }\n $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(['application/json']);\n\n // path params\n if ($location_id !== null) {\n $resourcePath = str_replace(\n \"{\" . \"location_id\" . \"}\",\n $this->apiClient->getSerializer()\n ->toPathValue($location_id),\n $resourcePath\n );\n }\n // default format to json\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\n } elseif (!empty($formParams) > 0) {\n $httpBody = $formParams; // for HTTP post (form)\n }\n\n // this endpoint requires OAuth (access token)\n if ($this->apiClient->getConfig()->getAccessToken() !== \"\") {\n $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()\n ->getAccessToken();\n }\n // make the API Call\n try {\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\n $resourcePath,\n 'GET',\n $queryParams,\n $httpBody,\n $headerParams,\n '\\SquareConnect\\Model\\V1Fee[]'\n );\n if (!$response) {\n return [null, $statusCode, $httpHeader];\n }\n\n return [\n \\SquareConnect\\ObjectSerializer::deserialize(\n $response,\n '\\SquareConnect\\Model\\V1Fee[]',\n $httpHeader\n ),\n $statusCode,\n $httpHeader\n ];\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = \\SquareConnect\\ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\SquareConnect\\Model\\V1Fee[]',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n\n throw $e;\n }\n }", "title": "" }, { "docid": "dbbf50c8290cc03c567b887ba0b2ddbb", "score": "0.332697", "text": "public function getFrames();", "title": "" }, { "docid": "dbbf50c8290cc03c567b887ba0b2ddbb", "score": "0.332697", "text": "public function getFrames();", "title": "" }, { "docid": "da4d82326a676cd8456ee7f14bc30aeb", "score": "0.3318773", "text": "public function fileContainerFindOneWithHttpInfo($filter = null)\n {\n \n \n // parse inputs\n $resourcePath = \"/fileContainers/findOne\";\n $httpBody = '';\n $queryParams = array();\n $headerParams = array();\n $formParams = array();\n $_header_accept = ApiClient::selectHeaderAccept(array('application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript'));\n if (!is_null($_header_accept)) {\n $headerParams['Accept'] = $_header_accept;\n }\n $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json','application/x-www-form-urlencoded','application/xml','text/xml'));\n \n // query params\n \n if ($filter !== null) {\n $queryParams['filter'] = $this->apiClient->getSerializer()->toQueryValue($filter);\n }\n \n \n // default format to json\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\n\n \n \n \n // for model (json/xml)\n if (isset($_tempBody)) {\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\n } elseif (count($formParams) > 0) {\n $httpBody = $formParams; // for HTTP post (form)\n }\n \n // make the API Call\n try {\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\n $resourcePath, 'GET',\n $queryParams, $httpBody,\n $headerParams, '\\DBCDK\\CommunityServices\\Model\\FileContainer'\n );\n \n if (!$response) {\n return array(null, $statusCode, $httpHeader);\n }\n\n return array(\\DBCDK\\CommunityServices\\ObjectSerializer::deserialize($response, '\\DBCDK\\CommunityServices\\Model\\FileContainer', $httpHeader), $statusCode, $httpHeader);\n \n } catch (ApiException $e) {\n switch ($e->getCode()) { \n case 200:\n $data = \\DBCDK\\CommunityServices\\ObjectSerializer::deserialize($e->getResponseBody(), '\\DBCDK\\CommunityServices\\Model\\FileContainer', $e->getResponseHeaders());\n $e->setResponseObject($data);\n break;\n }\n \n throw $e;\n }\n }", "title": "" }, { "docid": "3c64cc352a4ba04678818ddca3cdab5b", "score": "0.33127737", "text": "public function fileContainerFindByIdWithHttpInfo($id, $filter = null)\n {\n \n // verify the required parameter 'id' is set\n if ($id === null) {\n throw new \\InvalidArgumentException('Missing the required parameter $id when calling fileContainerFindById');\n }\n \n // parse inputs\n $resourcePath = \"/fileContainers/{id}\";\n $httpBody = '';\n $queryParams = array();\n $headerParams = array();\n $formParams = array();\n $_header_accept = ApiClient::selectHeaderAccept(array('application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript'));\n if (!is_null($_header_accept)) {\n $headerParams['Accept'] = $_header_accept;\n }\n $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json','application/x-www-form-urlencoded','application/xml','text/xml'));\n \n // query params\n \n if ($filter !== null) {\n $queryParams['filter'] = $this->apiClient->getSerializer()->toQueryValue($filter);\n }\n \n // path params\n \n if ($id !== null) {\n $resourcePath = str_replace(\n \"{\" . \"id\" . \"}\",\n $this->apiClient->getSerializer()->toPathValue($id),\n $resourcePath\n );\n }\n // default format to json\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\n\n \n \n \n // for model (json/xml)\n if (isset($_tempBody)) {\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\n } elseif (count($formParams) > 0) {\n $httpBody = $formParams; // for HTTP post (form)\n }\n \n // make the API Call\n try {\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\n $resourcePath, 'GET',\n $queryParams, $httpBody,\n $headerParams, '\\DBCDK\\CommunityServices\\Model\\FileContainer'\n );\n \n if (!$response) {\n return array(null, $statusCode, $httpHeader);\n }\n\n return array(\\DBCDK\\CommunityServices\\ObjectSerializer::deserialize($response, '\\DBCDK\\CommunityServices\\Model\\FileContainer', $httpHeader), $statusCode, $httpHeader);\n \n } catch (ApiException $e) {\n switch ($e->getCode()) { \n case 200:\n $data = \\DBCDK\\CommunityServices\\ObjectSerializer::deserialize($e->getResponseBody(), '\\DBCDK\\CommunityServices\\Model\\FileContainer', $e->getResponseHeaders());\n $e->setResponseObject($data);\n break;\n }\n \n throw $e;\n }\n }", "title": "" }, { "docid": "5ba9f2425c0c6fa23fa19525632e1411", "score": "0.33122236", "text": "public function getFilterInfo();", "title": "" }, { "docid": "71961908875a02cb4e7ac89ddfe0690c", "score": "0.32943565", "text": "function updateEventDetails()\n {\n $start = microtime(true);\n $data = json_decode(file_get_contents(\"php://input\"));\n $data->event_name = (isset($data->event_name) && $data->event_name!=null )?$this->custom_filter_input($data->event_name):'';\n $data->venue_name = (isset($data->venue_name) && $data->venue_name!=null )?$this->custom_filter_input($data->venue_name):'';\n $data->event_overview = (isset($data->event_overview) && $data->event_overview!=null )?$this->custom_filter_input( $data->event_overview):'';\n $data->event_location = (isset($data->event_location) && $data->event_location!=null )?$this->custom_filter_input( $data->event_location):'';\n $data->event_area = (isset($data->event_area) && $data->event_area!=null )?$this->custom_filter_input( $data->event_area):'';\n $data->event_cost = (isset($data->event_cost) && $data->event_cost!=null )?$this->custom_filter_input( $data->event_cost):'';\n $data->event_category = (isset($data->event_category) && $data->event_category!=null )?$this->custom_filter_input( $data->event_category):'';\n $data-> hash1 = (isset($data->hash1) && $data->hash1!=null )?$this->custom_filter_input( $data->hash1):'';\n $data-> hash2 = (isset($data->hash2) && $data->hash2!=null )?$this->custom_filter_input( $data->hash2):'';\n $data-> hash3 = (isset($data->hash3) && $data->hash3!=null )?$this->custom_filter_input( $data->hash3):'';\n $data->event_hashtags = $this->generateHashtag($data->hash1, $data->hash2, $data->hash3);\n $model = new AdminModel();\n $result = $model->updateEventDetails($data);\n $end = microtime(true);\n $this->executionTimeLogger->logExecutionTime(\"updateEventDetails\", $start, $end);\n if($result['status'] == 'success')\n {\n echo json_encode($result);\n }\n else\n {\n echo $result['message'];\n }\n\n }", "title": "" }, { "docid": "2e622fb86939d1ebf4a5ba3b68606da6", "score": "0.32892856", "text": "public function getAttributesList()\n {\n //扩展字段加入搜索\n $exField = [];\n\n return yii\\helpers\\ArrayHelper::merge([\n 'status' => [\n '' => '请选择',\n 0 => '未处理',\n 1 => '处理成功',\n 2 => '处理中',\n 3 => '处理失败'\n ],\n\n 'start_time' => [\n 'label' => Yii::t('app', 'start opt time'),\n 'class' => ' inputDate'\n ],\n 'stop_time' => [\n 'label' => Yii::t('app', 'end opt time'),\n 'class' => ' inputDate'\n ]\n\n ], $exField);\n }", "title": "" }, { "docid": "115aba5fb92125037e4ac681f6cf54f4", "score": "0.32892072", "text": "public static function buildIframeAttributes(array &$variables);", "title": "" }, { "docid": "fe60148140efa10aaf4c770a957d5000", "score": "0.3288964", "text": "public function eventFrameCreateAttribute($web_id, $attribute)\r\n {\r\n list($response) = $this->eventFrameCreateAttributeWithHttpInfo($web_id, $attribute);\r\n return $response;\r\n }", "title": "" }, { "docid": "3f772429ffedb51482530ecb8ee3adfd", "score": "0.32748392", "text": "public function fileContainerPrototypeUpdateAttributesWithHttpInfo($id, $data = null)\n {\n \n // verify the required parameter 'id' is set\n if ($id === null) {\n throw new \\InvalidArgumentException('Missing the required parameter $id when calling fileContainerPrototypeUpdateAttributes');\n }\n \n // parse inputs\n $resourcePath = \"/fileContainers/{id}\";\n $httpBody = '';\n $queryParams = array();\n $headerParams = array();\n $formParams = array();\n $_header_accept = ApiClient::selectHeaderAccept(array('application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript'));\n if (!is_null($_header_accept)) {\n $headerParams['Accept'] = $_header_accept;\n }\n $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json','application/x-www-form-urlencoded','application/xml','text/xml'));\n \n \n \n // path params\n \n if ($id !== null) {\n $resourcePath = str_replace(\n \"{\" . \"id\" . \"}\",\n $this->apiClient->getSerializer()->toPathValue($id),\n $resourcePath\n );\n }\n // default format to json\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\n\n \n // body params\n $_tempBody = null;\n if (isset($data)) {\n $_tempBody = $data;\n }\n \n // for model (json/xml)\n if (isset($_tempBody)) {\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\n } elseif (count($formParams) > 0) {\n $httpBody = $formParams; // for HTTP post (form)\n }\n \n // make the API Call\n try {\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\n $resourcePath, 'PUT',\n $queryParams, $httpBody,\n $headerParams, '\\DBCDK\\CommunityServices\\Model\\FileContainer'\n );\n \n if (!$response) {\n return array(null, $statusCode, $httpHeader);\n }\n\n return array(\\DBCDK\\CommunityServices\\ObjectSerializer::deserialize($response, '\\DBCDK\\CommunityServices\\Model\\FileContainer', $httpHeader), $statusCode, $httpHeader);\n \n } catch (ApiException $e) {\n switch ($e->getCode()) { \n case 200:\n $data = \\DBCDK\\CommunityServices\\ObjectSerializer::deserialize($e->getResponseBody(), '\\DBCDK\\CommunityServices\\Model\\FileContainer', $e->getResponseHeaders());\n $e->setResponseObject($data);\n break;\n }\n \n throw $e;\n }\n }", "title": "" }, { "docid": "50255adc1c855a79d6f407062bec39a2", "score": "0.3244323", "text": "public function list_events($include = array(), $filter = array(), $limit = 100) {\n\t\t// WARNING: The search query is not parameterized - be sure to properly escape all input\n\t\t$fields = array(\"event.*\");\n\t\t$joins = array();\n\t\t$where = array();\n\t\t$bind = array(\"\");\n\t\tforeach($filter as $field => $value) {\n\t\t\tif($value) {\n\t\t\t\tswitch($field) {\n\t\t\t\tcase 'type':\n\t\t\t\t\t$where[] = \"event.type = ?\";\n\t\t\t\t\t$bind[0] = $bind[0] . \"s\";\n\t\t\t\t\t$bind[] = $this->database->escape_string($value);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'object_id':\n\t\t\t\t\t$where[] = \"event.object_id = ?\";\n\t\t\t\t\t$bind[0] = $bind[0] . \"d\";\n\t\t\t\t\t$bind[] = $value;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$stmt = $this->database->prepare(\"\n\t\t\tSELECT \".implode(\", \", $fields).\"\n\t\t\tFROM event \".implode(\" \", $joins).\"\n\t\t\t\".(count($where) == 0 ? \"\" : \"WHERE (\".implode(\") AND (\", $where).\")\").\"\n\t\t\tGROUP BY event.id\n\t\t\tORDER BY event.id DESC\n\t\t\");\n\t\tif(count($bind) > 1) {\n\t\t\t$stmt->bind_param(...$bind);\n\t\t}\n\t\t$stmt->execute();\n\t\t$result = $stmt->get_result();\n\t\t$events = array();\n\t\twhile($row = $result->fetch_assoc()) {\n\t\t\t$events[] = new Event($row['id'], $row);\n\t\t}\n\t\t$stmt->close();\n\t\treturn $events;\n\t}", "title": "" }, { "docid": "b1159200237517e24cd8dcacf34d841c", "score": "0.3243437", "text": "public function eventFrameAcknowledgeWithHttpInfo($web_id)\r\n {\r\n // verify the required parameter 'web_id' is set\r\n if ($web_id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $web_id when calling eventFrameAcknowledge');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes/{webId}/acknowledge\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json', 'text/json']);\r\n\r\n // path params\r\n if ($web_id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"webId\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($web_id),\r\n $resourcePath\r\n );\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n \r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'PATCH',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n null,\r\n '/eventframes/{webId}/acknowledge'\r\n );\r\n\r\n return [null, $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "d125ba842b4a6e0649ab008d9b1e456c", "score": "0.32278624", "text": "public function get_info_hook($attributes)\n {\n clearos_profile(__METHOD__, __LINE__);\n\n $info = Utilities::convert_attributes_to_array($attributes, $this->info_map);\n\n return $info;\n }", "title": "" }, { "docid": "ec3960cb6e5b33ce46a0bc1bcfc9fe58", "score": "0.32264796", "text": "public static function get_calendar_reflect_events_parameters() {\n return new external_function_parameters(\n array('events' => new external_single_structure(\n array(\n 'eventids' => new external_multiple_structure(\n new external_value(PARAM_INT, 'event ids')\n , 'List of event ids', VALUE_DEFAULT, array(), NULL_ALLOWED\n ),\n 'courseids' => new external_multiple_structure(\n new external_value(PARAM_INT, 'course ids')\n , 'List of course ids for which events will be returned', VALUE_DEFAULT, array(), NULL_ALLOWED\n ),\n 'groupids' => new external_multiple_structure(\n new external_value(PARAM_INT, 'group ids')\n , 'List of group ids for which events should be returned', VALUE_DEFAULT, array(), NULL_ALLOWED\n )\n ), 'Event details', VALUE_DEFAULT, array()),\n 'options' => new external_single_structure(\n array(\n 'userevents' => new external_value(PARAM_BOOL, \"Set to true to return current user's user events\", VALUE_DEFAULT, true, NULL_ALLOWED),\n 'siteevents' => new external_value(PARAM_BOOL, \"Set to true to return global events\", VALUE_DEFAULT, true, NULL_ALLOWED),\n 'timestart' => new external_value(PARAM_INT, \"Time from which events should be returned\", VALUE_DEFAULT, 0, NULL_ALLOWED),\n 'timeend' => new external_value(PARAM_INT, \"Time to which the events should be returned\", VALUE_DEFAULT, time(), NULL_ALLOWED),\n 'ignorehidden' => new external_value(PARAM_BOOL, \"Ignore hidden events or not\", VALUE_DEFAULT, true, NULL_ALLOWED),\n ), 'Options', VALUE_DEFAULT, array()),\n 'courseID' => new external_value(PARAM_TEXT, 'courseID')\n )\n );\n }", "title": "" }, { "docid": "a926dcdc26d0182039eec3880d5bf38d", "score": "0.32188615", "text": "public function eventFrameDeleteAnnotationWithHttpInfo($id, $web_id)\r\n {\r\n // verify the required parameter 'id' is set\r\n if ($id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $id when calling eventFrameDeleteAnnotation');\r\n }\r\n // verify the required parameter 'web_id' is set\r\n if ($web_id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $web_id when calling eventFrameDeleteAnnotation');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes/{webId}/annotations/{id}\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);\r\n\r\n // path params\r\n if ($id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"id\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($id),\r\n $resourcePath\r\n );\r\n }\r\n // path params\r\n if ($web_id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"webId\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($web_id),\r\n $resourcePath\r\n );\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n \r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'DELETE',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n null,\r\n '/eventframes/{webId}/annotations/{id}'\r\n );\r\n\r\n return [null, $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "470fd98594b2011e3ca729e2ac97ac4c", "score": "0.32180107", "text": "public function eventFrameUpdateAnnotationWithHttpInfo($id, $web_id, $annotation)\r\n {\r\n // verify the required parameter 'id' is set\r\n if ($id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $id when calling eventFrameUpdateAnnotation');\r\n }\r\n // verify the required parameter 'web_id' is set\r\n if ($web_id === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $web_id when calling eventFrameUpdateAnnotation');\r\n }\r\n // verify the required parameter 'annotation' is set\r\n if ($annotation === null) {\r\n throw new \\InvalidArgumentException('Missing the required parameter $annotation when calling eventFrameUpdateAnnotation');\r\n }\r\n // parse inputs\r\n $resourcePath = \"/eventframes/{webId}/annotations/{id}\";\r\n $httpBody = '';\r\n $queryParams = [];\r\n $headerParams = [];\r\n $formParams = [];\r\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json', 'text/html', 'application/x-ms-application']);\r\n if (!is_null($_header_accept)) {\r\n $headerParams['Accept'] = $_header_accept;\r\n }\r\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json', 'text/json']);\r\n\r\n // path params\r\n if ($id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"id\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($id),\r\n $resourcePath\r\n );\r\n }\r\n // path params\r\n if ($web_id !== null) {\r\n $resourcePath = str_replace(\r\n \"{\" . \"webId\" . \"}\",\r\n $this->apiClient->getSerializer()->toPathValue($web_id),\r\n $resourcePath\r\n );\r\n }\r\n // default format to json\r\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\r\n\r\n // body params\r\n $_tempBody = null;\r\n if (isset($annotation)) {\r\n $_tempBody = $annotation;\r\n }\r\n\r\n // for model (json/xml)\r\n if (isset($_tempBody)) {\r\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\r\n } elseif (count($formParams) > 0) {\r\n $httpBody = $formParams; // for HTTP post (form)\r\n }\r\n // make the API Call\r\n try {\r\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\r\n $resourcePath,\r\n 'PATCH',\r\n $queryParams,\r\n $httpBody,\r\n $headerParams,\r\n null,\r\n '/eventframes/{webId}/annotations/{id}'\r\n );\r\n\r\n return [null, $statusCode, $httpHeader];\r\n } catch (ApiException $e) {\r\n switch ($e->getCode()) {\r\n }\r\n\r\n throw $e;\r\n }\r\n }", "title": "" }, { "docid": "7d35e41ce1f49bd103fef4435e18f804", "score": "0.32162565", "text": "public function getOrganizationApplianceSecurityEventsWithHttpInfo($organization_id, $t0 = null, $t1 = null, $timespan = null, $per_page = null, $starting_after = null, $ending_before = null, $sort_order = null)\n {\n $returnType = 'object';\n $request = $this->getOrganizationApplianceSecurityEventsRequest($organization_id, $t0, $t1, $timespan, $per_page, $starting_after, $ending_before, $sort_order);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n 'object',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "title": "" }, { "docid": "6f53d2b2b0d75a318f1b132d75e787de", "score": "0.3211088", "text": "public function getAttributes()\n {\n $attributes = array_merge(\n parent::getAttributes(),\n [\n 'href' => '#top',\n 'title' => $this->Label,\n 'data-offset-show' => $this->OffsetShow,\n 'data-offset-opacity' => $this->OffsetOpacity,\n 'data-scroll-duration' => $this->ScrollDuration\n ]\n );\n \n return $attributes;\n }", "title": "" }, { "docid": "d9fa7027efb9b395f582498f0cfd419a", "score": "0.32014906", "text": "public function getEventAttribute()\n\t{\n\t\treturn $this->event_attribute;\n\t}", "title": "" }, { "docid": "406bc3e4431cf7b71bd50fcd1d9e5d87", "score": "0.31962043", "text": "protected function list_file_attributes()\n\t\t{\n\t\t\treturn array();\n\t\t}", "title": "" }, { "docid": "acd836098565dcbeb67368bf094a07e2", "score": "0.31901184", "text": "public function getExtensionAttributes();", "title": "" }, { "docid": "acd836098565dcbeb67368bf094a07e2", "score": "0.31901184", "text": "public function getExtensionAttributes();", "title": "" }, { "docid": "acd836098565dcbeb67368bf094a07e2", "score": "0.31901184", "text": "public function getExtensionAttributes();", "title": "" }, { "docid": "acd836098565dcbeb67368bf094a07e2", "score": "0.31901184", "text": "public function getExtensionAttributes();", "title": "" }, { "docid": "acd836098565dcbeb67368bf094a07e2", "score": "0.31901184", "text": "public function getExtensionAttributes();", "title": "" }, { "docid": "acd836098565dcbeb67368bf094a07e2", "score": "0.31901184", "text": "public function getExtensionAttributes();", "title": "" }, { "docid": "acd836098565dcbeb67368bf094a07e2", "score": "0.31901184", "text": "public function getExtensionAttributes();", "title": "" }, { "docid": "acd836098565dcbeb67368bf094a07e2", "score": "0.31901184", "text": "public function getExtensionAttributes();", "title": "" }, { "docid": "acd836098565dcbeb67368bf094a07e2", "score": "0.31901184", "text": "public function getExtensionAttributes();", "title": "" }, { "docid": "acd836098565dcbeb67368bf094a07e2", "score": "0.31901184", "text": "public function getExtensionAttributes();", "title": "" } ]
9895891cba0877c624daea5436a89247
Get the list of registered locales
[ { "docid": "891f6889150c1b08989c9d5aa924a050", "score": "0.797631", "text": "function getLocales() {\n\t\t\treturn $this->locales;\n\t\t}", "title": "" } ]
[ { "docid": "8907f04ed47be5a9ff9b4bcd20c3b124", "score": "0.8220274", "text": "static public function getLocalesList()\r\n {\r\n /**\r\n * TODO It need to remove hard-coded language params and place them to config file for different implementations because\r\n * each implamentation can have different language settings\r\n */\r\n return Zend_Registry::get('cfg_translate_locales_xml');\r\n }", "title": "" }, { "docid": "b7324b936e98116871369edf9b98356f", "score": "0.8092506", "text": "public function getLocales(){\n $qb = $this->createQueryBuilder();\n $qb->module('system')->query('localelist');\n return $this->execute($qb);\n }", "title": "" }, { "docid": "cc652a643a8ddb6f59c58b2c08d413f2", "score": "0.79665554", "text": "public function getLocales()\n {\n return $this->locales;\n }", "title": "" }, { "docid": "9f2650b45b32542806a860fd515c16e0", "score": "0.79471606", "text": "public function getLocales()\n {\n return $this->_locales;\n }", "title": "" }, { "docid": "1c57317264365538b2598ac4c77ea09b", "score": "0.7872938", "text": "protected function getLocales()\n {\n return Strata::i18n()->getLocales();\n }", "title": "" }, { "docid": "fddce091a8d9ff368f722bb8262ae4aa", "score": "0.7822211", "text": "public function getAvailableLocales()\r\n {\r\n return $this->getLocales($this->getLocalesDirectory());\r\n }", "title": "" }, { "docid": "84ef5e1acd23777ce0b7173517aacba0", "score": "0.77985376", "text": "function getLocales() {\n\t\treturn array_keys($this->localeData);\n\t}", "title": "" }, { "docid": "6676d5f38cdecf2e0e2c2d034c280ebf", "score": "0.7601366", "text": "public function getAvailableLocales()\n {\n return $this->config->get('locale.available_locales');\n }", "title": "" }, { "docid": "87b8300ff65308be47fee2a480dff466", "score": "0.7527329", "text": "public function getAllLocales(): array\n {\n Craft::$app->getDeprecator()->log('craft.i18n.getAllLocales()', 'craft.i18n.getAllLocales() has been deprecated. Use craft.app.i18n.allLocales instead.');\n\n return Craft::$app->getI18n()->getAllLocales();\n }", "title": "" }, { "docid": "20fc9159d43d236a9b7be2efb9ae6aec", "score": "0.75217414", "text": "public function get_locales() {\n\t\t$existing_locales = Plugin::get_existing_locales();\n\n\t\t$locales = array();\n\t\tforeach ( $existing_locales as $locale ) {\n\t\t\t$locales[] = GP_Locales::by_slug( $locale );\n\t\t}\n\t\tusort( $locales, array( $this, '_sort_english_name_callback' ) );\n\t\tunset( $existing_locales );\n\n\t\t$contributors_count = Plugin::get_contributors_count();\n\t\t$translation_status = Plugin::get_translation_status();\n\n\t\t$this->tmpl( 'index-locales', get_defined_vars() );\n\t}", "title": "" }, { "docid": "4ff925df444e9799fcc9676012188f08", "score": "0.74832916", "text": "public function getAll()\n {\n return $this->getContainer()->getParameter('locales');\n }", "title": "" }, { "docid": "29a4dbb6619daae165b8076b31641fc9", "score": "0.74617445", "text": "protected function getLocales()\n {\n return \\localizer\\locales()->reduce(function ($ids, $locale) {\n $ids[] = $locale->id();\n\n return $ids;\n }, []);\n }", "title": "" }, { "docid": "47e3e183ce379021c9e1d7248760e2bf", "score": "0.74048454", "text": "public static function getLocaleList()\n {\n return collect(config('lang-detector.languages'))->map(function ($lang) {\n return [\n 'lang' => $lang,\n 'name' => self::getLocaleName($lang),\n 'name-orig' => self::getLocaleName($lang, $lang),\n ];\n });\n }", "title": "" }, { "docid": "2b140f88d688e8d06dc438bf9d14b333", "score": "0.73835105", "text": "protected function getSupportedLocales()\n {\n return Blog::getSupportedLocalesKeys();\n }", "title": "" }, { "docid": "0675adb6fd7b0ade89a8456242b7b7f1", "score": "0.7363387", "text": "public function getAvailableLocales(): array\n {\n return $this->availableLocales;\n }", "title": "" }, { "docid": "c2a6678a1e96304a8bdef1c858216223", "score": "0.72697586", "text": "protected function getLocales()\n {\n // Get user specified locales\n if ($locales = $this->option('locales')) {\n return array_filter(explode(',', preg_replace('/\\s+/', '', $locales)));\n }\n\n // Check for package\n if (class_exists('\\\\Torann\\\\Localization\\\\LocaleManager')) {\n return app(LocaleManager::class)->getSupportedLanguagesKeys();\n }\n\n return config('cloud-search.support_locales');\n }", "title": "" }, { "docid": "98e66a994e43395c392a32efe641687a", "score": "0.7248139", "text": "public static function get_enabled_locales() {\r\n\t\treturn self::$enabled_locales;\r\n\t}", "title": "" }, { "docid": "c808771abb0cc9830f34155bd29bf52e", "score": "0.72200376", "text": "public function getSupportedLocalesKeys();", "title": "" }, { "docid": "277e1b3fc232d1c1db6311749a67f88d", "score": "0.7206208", "text": "public function getAvailableLocales()\n {\n return $this->availableLocales;\n }", "title": "" }, { "docid": "6e85d2e9f708e717fc045bf1215bc0df", "score": "0.7175763", "text": "private function getAvailableLocales()\n {\n if (empty($this->availableLocales)) {\n // Open the pages directory.\n $pagesDirectory = opendir('../data/pages/');\n while ($directory = readdir($pagesDirectory)) {\n if (($directory != '.') && ($directory != '..')) {\n $this->availableLocales[] = $directory;\n }\n }\n closedir($pagesDirectory);\n }\n\n return $this->availableLocales;\n }", "title": "" }, { "docid": "9ab8a277ef09d4890be1767c998db014", "score": "0.7070514", "text": "protected function getSupportedLocales()\n {\n $locales = app('localize-route')->getConfig('locale_keys') ?? [];\n\n return $locales;\n }", "title": "" }, { "docid": "e474f75ffab57b2312c8c3f44d909035", "score": "0.70701396", "text": "public function getLocales(): array\n {\n $locales = $this->getSupportedLocales();\n\n if ($this->hasSimpleLocales()) {\n return $locales;\n }\n\n return array_keys($locales);\n }", "title": "" }, { "docid": "1d66adf00173e76cedbd95493a18269b", "score": "0.70514834", "text": "public function getLocalizedStringsList() {\n return $this->_get(1);\n }", "title": "" }, { "docid": "d37083fa842a6d69e4b9d25c2dc6923f", "score": "0.69751966", "text": "public function getSiteLocales(): array\n {\n Craft::$app->getDeprecator()->log('craft.i18n.getSiteLocales()', 'craft.i18n.getSiteLocales() has been deprecated. Use craft.app.i18n.siteLocales instead.');\n\n return Craft::$app->getI18n()->getSiteLocales();\n }", "title": "" }, { "docid": "38e67019f24e6072d598d60a970a9f9a", "score": "0.6926699", "text": "protected function getTranslationLocales()\n {\n foreach (Config::get('translation.locales') as $locale) {\n if ($locale != Config::get('translation.locale'))\n $this->locales[] = $locale;\n }\n }", "title": "" }, { "docid": "d2b64387a11e4091d610f15aa3909944", "score": "0.6863676", "text": "public function getSupportedLocales(): array\n {\n return $this->supportedLocales;\n }", "title": "" }, { "docid": "5f213b6f198598fdac51560154f96b6f", "score": "0.68485725", "text": "public function getSupportedLocales()\n {\n // For now, returns the config of locale.locales, but one day it could be specific per\n // screen.\n return Localizer::getScreensLocales();\n }", "title": "" }, { "docid": "7309c1b33dfe45f5a901c12b40e1c591", "score": "0.683955", "text": "public function get_locale()\n {\n $locale = $this->fetchConfig('ml_locales', null, null, false, false);\n $currlang = $this->currlang();\n $output = array();\n \n return $locale[$currlang];\n }", "title": "" }, { "docid": "9b8aaa67eb4be0312b8e5400c0b037bb", "score": "0.6790996", "text": "private function getLocales(): Collection\n {\n return Site::all()->map(function ($locale, $key) {\n return $this->getLocale($key);\n })->pipe(function ($locales) {\n return $this->addData($locales);\n })->filter(function ($locale) {\n return $this->excludeCurrent($locale);\n })->values();\n }", "title": "" }, { "docid": "9b17f2334e3786a95f1a251cce73f672", "score": "0.67775756", "text": "public function getAppLocales(): array\n {\n Craft::$app->getDeprecator()->log('craft.i18n.getAppLocales()', 'craft.i18n.getAppLocales() has been deprecated. Use craft.app.i18n.appLocales instead.');\n\n return Craft::$app->getI18n()->getAppLocales();\n }", "title": "" }, { "docid": "573e8c18ea7474048ee2dc3c6ad4638a", "score": "0.6762938", "text": "public function getLanguageList();", "title": "" }, { "docid": "0375d0d46825bee0c1f9055ec5a4bd8a", "score": "0.6698452", "text": "public function get_available_wp_locales() {\n\t\tglobal $wpdb;\n\n\t\t$locales = GP_Locales::locales();\n\t\t$wp_locales = array_filter( wp_list_pluck( $locales, 'wp_locale' ) );\n\t\t$wp_locales_in_use = $wpdb->get_col( 'SELECT locale FROM ' . Tables::LOCALES );\n\n\t\t$wp_locales_in_use[] = 'en_US';\n\n\t\treturn array_diff( $wp_locales, $wp_locales_in_use );\n\t}", "title": "" }, { "docid": "8682ccc81597468d814662a8690bc39a", "score": "0.66759014", "text": "public function all(): Collection\n {\n return $this->localeCollection;\n }", "title": "" }, { "docid": "60168d19eb5cf0fde3e0d69871283ca1", "score": "0.6642821", "text": "public function getActiveLocales($locale = null)\n {\n $registeredLocales = $this->registry->getRegisteredLocales();\n\n if (empty($registeredLocales)) {\n return [];\n }\n elseif ($locale === null) {\n $translatedLocales = $registeredLocales;\n }\n else {\n if (strpos($locale, '_') > 0) {\n $displayCountryLocales = Intl::getLocaleBundle()->getLocaleNames($locale);\n $displayLgLocales = Intl::getLocaleBundle()->getLocaleNames(substr($locale, 0, strpos($locale, '_')));\n $displayLocales = array_merge($displayLgLocales, $displayCountryLocales);\n } else {\n $displayLocales = Intl::getLocaleBundle()->getLocaleNames($locale);\n }\n\n // time to return a translated locale\n $translatedLocales = array_map(\n function($element) use($displayLocales, $locale)\n {\n if (array_key_exists($element, $displayLocales)) {\n // perfect, we have the full translated locale\n return $displayLocales[$element];\n } elseif (strpos($element, '_') > 0) {\n // ow we don't, let's see if it's a locale containing the country\n list($lg, $country) = explode('_', $element);\n\n if (strpos($locale, '_') > 0) {\n // Yep! it's a full locale. Let's merge the translated countries for the full locale + his parent, the lg\n $displayCountriesChild = Intl::getRegionBundle()->getCountryNames($locale);\n $displayCountriesParent = Intl::getRegionBundle()->getCountryNames(substr($locale, 0, strpos($locale, '_')));\n $displayCountries = array_merge($displayCountriesParent, $displayCountriesChild);\n } else {\n // it's just a lg\n $displayCountries = Intl::getRegionBundle()->getCountryNames($locale);\n }\n\n if (array_key_exists($country, $displayCountries)) {\n // ok we do have a country translation, let's manually build the full translation string\n $displayCountry = $displayCountries[$country];\n $displayLg = Intl::getLanguageBundle()->getLanguageName($lg, null, $locale);\n\n return $displayLg . ' (' . $displayCountry . ')';\n } else {\n // I give up. I just return the received locale.\n return $element;\n }\n } else {\n return $element;\n }\n }, $registeredLocales\n );\n }\n return array_combine($registeredLocales, $translatedLocales);\n }", "title": "" }, { "docid": "ed6d3f2066d5de39399cda0eafa10020", "score": "0.66420263", "text": "public function onLanguagesOptionsCallback(): array\n {\n return $this->locales->getLocales(null, true);\n }", "title": "" }, { "docid": "f42c3abd02293730c5075b36bea05347", "score": "0.6563375", "text": "public function getList()\n {\n return ArrayHelper::map(LanguageLocalization::find()->all(), 'lan_id', 'lan_name');\n }", "title": "" }, { "docid": "eaf838ea79b3986a9ab9dc68b9e8cf75", "score": "0.65324664", "text": "public function getEditableLocales(): array\n {\n Craft::$app->getDeprecator()->log('craft.i18n.getEditableLocales()', 'craft.i18n.getEditableLocales() has been deprecated. Use craft.app.i18n.editableLocales instead.');\n\n return Craft::$app->getI18n()->getEditableLocales();\n }", "title": "" }, { "docid": "825b0ec403849ca7d80ff0cae6f79a77", "score": "0.65310824", "text": "public function getLocaleManager();", "title": "" }, { "docid": "1a298d8e02b6720a0b6d010bde6a2088", "score": "0.65243155", "text": "public function getAllDomainsByLocale();", "title": "" }, { "docid": "8a4212649d934f1ab341a7ed80443f6c", "score": "0.6511869", "text": "public function getListUiLangs() {\n\t\treturn $this->_getConfigValueArray('UIlangList');\n\t}", "title": "" }, { "docid": "f730a2a1d090c3d215563d10446bef6a", "score": "0.65008044", "text": "public function getGlobals()\n {\n $locales = $this->registry->getRegisteredLocales();\n\n try {\n $locale = $this->requestStack->getCurrentRequest()->getLocale();\n } catch (\\Exception $e) {\n $locale = current($locales);\n }\n\n return [\n '_locale' => $locale,\n '_locales' => $locales\n ];\n }", "title": "" }, { "docid": "d800b8e648862ce6f52f98e26550eb15", "score": "0.6448372", "text": "function supportedLocaleKeys(): array\n {\n return config('localized-routes.supported-locales');\n }", "title": "" }, { "docid": "5ca96bb022030713c5c695d7b137d182", "score": "0.6442857", "text": "public function getAvailableTranslationGroups()\r\n {\r\n // Use the fallback locale as the default\r\n $defaultLocale = $this->getFallbackLocale();\r\n\r\n // Get files in the default directory\r\n $files = File::files($this->getLocalesDirectory() . DIRECTORY_SEPARATOR . $defaultLocale);\r\n $files = collect($files);\r\n\r\n // Return array of filenames without extension\r\n return $files\r\n ->map(function ($item, $key) {\r\n return pathinfo($item, PATHINFO_FILENAME);\r\n })\r\n ->toArray();\r\n }", "title": "" }, { "docid": "4db320dc4889555ae0f199de7dd8dd46", "score": "0.6413834", "text": "private function getUserLocales()\n {\n $userdata = $this->get('security.context')->getToken()->getUser();\n $locales = $userdata->getUserLanguages();\n\n foreach ($locales as $locale) {\n $userLang[$locale->getId()] = $locale->getLocale();\n }\n\n return $userLang;\n }", "title": "" }, { "docid": "7bc768815e92f70ac331ab30e835034c", "score": "0.6405825", "text": "public function getPreferredLocales(){\n\t\treturn $this->preferredLocales;\n\t}", "title": "" }, { "docid": "5efacfa34db19018cc033dc868b51922", "score": "0.63920045", "text": "public function getTranslationsByLocale()\n {\n if (!($arColl = $this->getTranslations())) {\n\n return [];\n }\n $out = [];\n foreach ($arColl as $trans) {\n $out[$trans->getLocale()] = $trans;\n }\n\n return $out;\n }", "title": "" }, { "docid": "6caf9a75786c78a3635ea533b57af22f", "score": "0.6335467", "text": "public function getLanguagesList() {\n return $this->_get(2);\n }", "title": "" }, { "docid": "ba3405e0be7e4063a35458f9bb976a2a", "score": "0.6308277", "text": "public function getLovLocale()\n\t{\n\t\t$locales['De'] = 'De';\n\t\t$locales['En'] = 'En';\n\t\t$locales['Fr'] = 'Fr';\n\t\treturn $locales;\n\t}", "title": "" }, { "docid": "cf17f7c30cddc5b4e3d53ee57a9e785a", "score": "0.62988305", "text": "public function index()\n {\n return Session::get('app.locale');\n }", "title": "" }, { "docid": "c2b49f44208c6236a8f3e61c4cd657e5", "score": "0.62895423", "text": "protected function loadLocale(): Collection\n {\n $cacheKey = 'laravel-i18n-locale-'.$this->getConfig('driver');\n $duration = $this->getConfig('cache_duration', 86400);\n $ttl = Carbon::now()->addSeconds($duration);\n\n if (!$this->getConfig('enable_cache')) {\n return app(RepositoryManager::class)->collect();\n }\n\n return \\Cache::remember($cacheKey, $ttl, function () {\n return app(RepositoryManager::class)->collect();\n });\n }", "title": "" }, { "docid": "c5d22ec1979e76031b6e9954d4c8c34a", "score": "0.6277563", "text": "public function getLanguages();", "title": "" }, { "docid": "339913d37252ceccd0d41ca0e83c6da0", "score": "0.62736815", "text": "public function testLocalesList()\n {\n $client = $this->createClient();\n $response = $client->get(sprintf('%s/locales', $_ENV['site_url']));\n $body = json_decode($response->getBody()->getContents(), true);\n\n $this->assertEquals(200 , $response->getStatusCode());\n $this->assertContains(['name' => 'test'], $body['response']);\n }", "title": "" }, { "docid": "1d0f0b492f11413312d3ba6c87cf5be2", "score": "0.62714005", "text": "private function getLocales($path)\r\n {\r\n // Get subdirectories\r\n return collect(File::directories($path))->map(function ($item, $key) {\r\n return pathinfo($item, PATHINFO_BASENAME);\r\n });\r\n }", "title": "" }, { "docid": "0e212c521f51b5eba281e31899b17e1b", "score": "0.6260568", "text": "public function getSysLanguages()\n {\n return $this->queryBuilder('sys_language')->select('uid', 'title', 'language_isocode')\n ->from('sys_language')\n ->execute()\n ->fetchAll();\n }", "title": "" }, { "docid": "4399719735f010675122992c45ba9726", "score": "0.624395", "text": "public static function getListLanguagesAvailable()\n {\n\n $locale_languages = self::getRootLocaleLanguages();\n $conf_languages = self::getConfLanguagesFile();\n\n if (isset($conf_languages['available'])) {\n \n $languages = array();\n foreach ($conf_languages['available'] as $lang) {\n $languages['__'.$lang] = $locale_languages[$lang];\n }\n } else {\n $languages = array('__it' => 'Italiano');\n // $languages = array('__it' => 'Italiano', '__en' => 'Inglese');\n }\n\n return $languages;\n }", "title": "" }, { "docid": "80f00fc32a4e05f97485992e0385556f", "score": "0.62425184", "text": "function get_list_of_locales($locale)\r\n\t{\r\n\t\t/* Figure out all possible locale names and start with the most\r\n\t\t * specific ones. I.e. for sr_CS.UTF-8@latin, look through all of\r\n\t\t * sr_CS.UTF-8@latin, sr_CS@latin, sr@latin, sr_CS.UTF-8, sr_CS, sr.\r\n\t\t */\r\n\t\t$locale_names = array();\r\n\t\t$lang = NULL;\r\n\t\t$country = NULL;\r\n\t\t$charset = NULL;\r\n\t\t$modifier = NULL;\r\n\t\tif ($locale) {\r\n\t\t\tif (preg_match(\"/^(?P<lang>[a-z]{2,3})\" // language code\r\n\t\t\t\t. \"(?:_(?P<country>[A-Z]{2}))?\" // country code\r\n\t\t\t\t. \"(?:\\.(?P<charset>[-A-Za-z0-9_]+))?\" // charset\r\n\t\t\t\t. \"(?:@(?P<modifier>[-A-Za-z0-9_]+))?$/\", // @ modifier\r\n\t\t\t\t$locale, $matches)) {\r\n\t\t\t\tif (isset($matches[\"lang\"]))\r\n\t\t\t\t\t$lang = $matches[\"lang\"];\r\n\t\t\t\tif (isset($matches[\"country\"]))\r\n\t\t\t\t\t$country = $matches[\"country\"];\r\n\t\t\t\tif (isset($matches[\"charset\"]))\r\n\t\t\t\t\t$charset = $matches[\"charset\"];\r\n\t\t\t\tif (isset($matches[\"modifier\"]))\r\n\t\t\t\t\t$modifier = $matches[\"modifier\"];\r\n\t\t\t\t\r\n\t\t\t\tif ($modifier) {\r\n\t\t\t\t\tif ($country) {\r\n\t\t\t\t\t\tif ($charset)\r\n\t\t\t\t\t\t\tarray_push($locale_names, \"${lang}_$country.$charset@$modifier\");\r\n\t\t\t\t\t\tarray_push($locale_names, \"${lang}_$country@$modifier\");\r\n\t\t\t\t\t} elseif ($charset)\r\n\t\t\t\t\t\tarray_push($locale_names, \"${lang}.$charset@$modifier\");\r\n\t\t\t\t\tarray_push($locale_names, \"$lang@$modifier\");\r\n\t\t\t\t}\r\n\t\t\t\tif ($country) {\r\n\t\t\t\t\tif ($charset)\r\n\t\t\t\t\t\tarray_push($locale_names, \"${lang}_$country.$charset\");\r\n\t\t\t\t\tarray_push($locale_names, \"${lang}_$country\");\r\n\t\t\t\t} elseif ($charset)\r\n\t\t\t\t\tarray_push($locale_names, \"${lang}.$charset\");\r\n\t\t\t\tarray_push($locale_names, $lang);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// If the locale name doesn't match POSIX style, just include it as-is.\r\n\t\t\tif (!in_array($locale, $locale_names))\r\n\t\t\t\tarray_push($locale_names, $locale);\r\n\t\t}\r\n\t\treturn $locale_names;\r\n\t}", "title": "" }, { "docid": "264475b8eb755ab2755683ba9ee8af6f", "score": "0.623846", "text": "public function fetchAll()\n {\n if (static::$languages === null) {\n static::$languages = $this->driver()->fetchAll();\n\n static::$languages = array_map(function ($language) {\n return new Locale($language);\n }, static::$languages);\n }\n\n return static::$languages;\n }", "title": "" }, { "docid": "4f8552a8a4995b7c117af07ff3f684cb", "score": "0.6234124", "text": "protected function get_date_locales() {\n\n\t\treturn array(\n\t\t\t'af',\n\t\t\t'ar-dz',\n\t\t\t'ar-kw',\n\t\t\t'ar-ly',\n\t\t\t'ar-ma',\n\t\t\t'ar-sa',\n\t\t\t'ar-tn',\n\t\t\t'ar',\n\t\t\t'az',\n\t\t\t'be',\n\t\t\t'bg',\n\t\t\t'bm',\n\t\t\t'bn',\n\t\t\t'bo',\n\t\t\t'br',\n\t\t\t'bs',\n\t\t\t'ca',\n\t\t\t'cs',\n\t\t\t'cv',\n\t\t\t'cy',\n\t\t\t'da',\n\t\t\t'de-at',\n\t\t\t'de-ch',\n\t\t\t'de',\n\t\t\t'dv',\n\t\t\t'el',\n\t\t\t'en-au',\n\t\t\t'en-ca',\n\t\t\t'en-gb',\n\t\t\t'en-ie',\n\t\t\t'en-il',\n\t\t\t'en-nz',\n\t\t\t'eo',\n\t\t\t'es-do',\n\t\t\t'es-us',\n\t\t\t'es',\n\t\t\t'et',\n\t\t\t'eu',\n\t\t\t'fa',\n\t\t\t'fi',\n\t\t\t'fo',\n\t\t\t'fr-ca',\n\t\t\t'fr-ch',\n\t\t\t'fr',\n\t\t\t'fy',\n\t\t\t'gd',\n\t\t\t'gl',\n\t\t\t'gom-latn',\n\t\t\t'gu',\n\t\t\t'he',\n\t\t\t'hi',\n\t\t\t'hr',\n\t\t\t'hu',\n\t\t\t'hy-am',\n\t\t\t'id',\n\t\t\t'is',\n\t\t\t'it',\n\t\t\t'ja',\n\t\t\t'jv',\n\t\t\t'ka',\n\t\t\t'kk',\n\t\t\t'km',\n\t\t\t'kn',\n\t\t\t'ko',\n\t\t\t'ku',\n\t\t\t'ky',\n\t\t\t'lb',\n\t\t\t'lo',\n\t\t\t'lt',\n\t\t\t'lv',\n\t\t\t'me',\n\t\t\t'mi',\n\t\t\t'mk',\n\t\t\t'ml',\n\t\t\t'mn',\n\t\t\t'mr',\n\t\t\t'ms-my',\n\t\t\t'ms',\n\t\t\t'mt',\n\t\t\t'my',\n\t\t\t'nb',\n\t\t\t'ne',\n\t\t\t'nl-be',\n\t\t\t'nl',\n\t\t\t'nn',\n\t\t\t'pa-in',\n\t\t\t'pl',\n\t\t\t'pt-br',\n\t\t\t'pt',\n\t\t\t'ro',\n\t\t\t'ru',\n\t\t\t'sd',\n\t\t\t'se',\n\t\t\t'si',\n\t\t\t'sk',\n\t\t\t'sl',\n\t\t\t'sq',\n\t\t\t'sr-cyrl',\n\t\t\t'sr',\n\t\t\t'ss',\n\t\t\t'sv',\n\t\t\t'sw',\n\t\t\t'ta',\n\t\t\t'te',\n\t\t\t'tet',\n\t\t\t'tg',\n\t\t\t'th',\n\t\t\t'tl-ph',\n\t\t\t'tlh',\n\t\t\t'tr',\n\t\t\t'tzl',\n\t\t\t'tzm-latn',\n\t\t\t'tzm',\n\t\t\t'ug-cn',\n\t\t\t'uk',\n\t\t\t'ur',\n\t\t\t'uz-latn',\n\t\t\t'uz',\n\t\t\t'vi',\n\t\t\t'x-pseudo',\n\t\t\t'yo',\n\t\t\t'zh-cn',\n\t\t\t'zh-hk',\n\t\t\t'zh-tw',\n\t\t);\n\t}", "title": "" }, { "docid": "8b57d5d5cebf1c43a70331f7a6db96ec", "score": "0.62311816", "text": "public function fb_locales() {\n\t\treturn [\n\t\t\t'af_ZA', // Afrikaans\n\t\t\t'ak_GH', // Akan\n\t\t\t'am_ET', // Amharic\n\t\t\t'ar_AR', // Arabic\n\t\t\t'as_IN', // Assamese\n\t\t\t'ay_BO', // Aymara\n\t\t\t'az_AZ', // Azerbaijani\n\t\t\t'be_BY', // Belarusian\n\t\t\t'bg_BG', // Bulgarian\n\t\t\t'bn_IN', // Bengali\n\t\t\t'br_FR', // Breton\n\t\t\t'bs_BA', // Bosnian\n\t\t\t'ca_ES', // Catalan\n\t\t\t'cb_IQ', // Sorani Kurdish\n\t\t\t'ck_US', // Cherokee\n\t\t\t'co_FR', // Corsican\n\t\t\t'cs_CZ', // Czech\n\t\t\t'cx_PH', // Cebuano\n\t\t\t'cy_GB', // Welsh\n\t\t\t'da_DK', // Danish\n\t\t\t'de_DE', // German\n\t\t\t'el_GR', // Greek\n\t\t\t'en_GB', // English (UK)\n\t\t\t'en_IN', // English (India)\n\t\t\t'en_PI', // English (Pirate)\n\t\t\t'en_UD', // English (Upside Down)\n\t\t\t'en_US', // English (US)\n\t\t\t'eo_EO', // Esperanto\n\t\t\t'es_CL', // Spanish (Chile)\n\t\t\t'es_CO', // Spanish (Colombia)\n\t\t\t'es_ES', // Spanish (Spain)\n\t\t\t'es_LA', // Spanish\n\t\t\t'es_MX', // Spanish (Mexico)\n\t\t\t'es_VE', // Spanish (Venezuela)\n\t\t\t'et_EE', // Estonian\n\t\t\t'eu_ES', // Basque\n\t\t\t'fa_IR', // Persian\n\t\t\t'fb_LT', // Leet Speak\n\t\t\t'ff_NG', // Fulah\n\t\t\t'fi_FI', // Finnish\n\t\t\t'fo_FO', // Faroese\n\t\t\t'fr_CA', // French (Canada)\n\t\t\t'fr_FR', // French (France)\n\t\t\t'fy_NL', // Frisian\n\t\t\t'ga_IE', // Irish\n\t\t\t'gl_ES', // Galician\n\t\t\t'gn_PY', // Guarani\n\t\t\t'gu_IN', // Gujarati\n\t\t\t'gx_GR', // Classical Greek\n\t\t\t'ha_NG', // Hausa\n\t\t\t'he_IL', // Hebrew\n\t\t\t'hi_IN', // Hindi\n\t\t\t'hr_HR', // Croatian\n\t\t\t'hu_HU', // Hungarian\n\t\t\t'hy_AM', // Armenian\n\t\t\t'id_ID', // Indonesian\n\t\t\t'ig_NG', // Igbo\n\t\t\t'is_IS', // Icelandic\n\t\t\t'it_IT', // Italian\n\t\t\t'ja_JP', // Japanese\n\t\t\t'ja_KS', // Japanese (Kansai)\n\t\t\t'jv_ID', // Javanese\n\t\t\t'ka_GE', // Georgian\n\t\t\t'kk_KZ', // Kazakh\n\t\t\t'km_KH', // Khmer\n\t\t\t'kn_IN', // Kannada\n\t\t\t'ko_KR', // Korean\n\t\t\t'ku_TR', // Kurdish (Kurmanji)\n\t\t\t'ky_KG', // Kyrgyz\n\t\t\t'la_VA', // Latin\n\t\t\t'lg_UG', // Ganda\n\t\t\t'li_NL', // Limburgish\n\t\t\t'ln_CD', // Lingala\n\t\t\t'lo_LA', // Lao\n\t\t\t'lt_LT', // Lithuanian\n\t\t\t'lv_LV', // Latvian\n\t\t\t'mg_MG', // Malagasy\n\t\t\t'mi_NZ', // Māori\n\t\t\t'mk_MK', // Macedonian\n\t\t\t'ml_IN', // Malayalam\n\t\t\t'mn_MN', // Mongolian\n\t\t\t'mr_IN', // Marathi\n\t\t\t'ms_MY', // Malay\n\t\t\t'mt_MT', // Maltese\n\t\t\t'my_MM', // Burmese\n\t\t\t'nb_NO', // Norwegian (bokmal)\n\t\t\t'nd_ZW', // Ndebele\n\t\t\t'ne_NP', // Nepali\n\t\t\t'nl_BE', // Dutch (België)\n\t\t\t'nl_NL', // Dutch\n\t\t\t'nn_NO', // Norwegian (nynorsk)\n\t\t\t'ny_MW', // Chewa\n\t\t\t'or_IN', // Oriya\n\t\t\t'pa_IN', // Punjabi\n\t\t\t'pl_PL', // Polish\n\t\t\t'ps_AF', // Pashto\n\t\t\t'pt_BR', // Portuguese (Brazil)\n\t\t\t'pt_PT', // Portuguese (Portugal)\n\t\t\t'qu_PE', // Quechua\n\t\t\t'rm_CH', // Romansh\n\t\t\t'ro_RO', // Romanian\n\t\t\t'ru_RU', // Russian\n\t\t\t'rw_RW', // Kinyarwanda\n\t\t\t'sa_IN', // Sanskrit\n\t\t\t'sc_IT', // Sardinian\n\t\t\t'se_NO', // Northern Sámi\n\t\t\t'si_LK', // Sinhala\n\t\t\t'sk_SK', // Slovak\n\t\t\t'sl_SI', // Slovenian\n\t\t\t'sn_ZW', // Shona\n\t\t\t'so_SO', // Somali\n\t\t\t'sq_AL', // Albanian\n\t\t\t'sr_RS', // Serbian\n\t\t\t'sv_SE', // Swedish\n\t\t\t'sy_SY', // Swahili\n\t\t\t'sw_KE', // Syriac\n\t\t\t'sz_PL', // Silesian\n\t\t\t'ta_IN', // Tamil\n\t\t\t'te_IN', // Telugu\n\t\t\t'tg_TJ', // Tajik\n\t\t\t'th_TH', // Thai\n\t\t\t'tk_TM', // Turkmen\n\t\t\t'tl_PH', // Filipino\n\t\t\t'tl_ST', // Klingon\n\t\t\t'tr_TR', // Turkish\n\t\t\t'tt_RU', // Tatar\n\t\t\t'tz_MA', // Tamazight\n\t\t\t'uk_UA', // Ukrainian\n\t\t\t'ur_PK', // Urdu\n\t\t\t'uz_UZ', // Uzbek\n\t\t\t'vi_VN', // Vietnamese\n\t\t\t'wo_SN', // Wolof\n\t\t\t'xh_ZA', // Xhosa\n\t\t\t'yi_DE', // Yiddish\n\t\t\t'yo_NG', // Yoruba\n\t\t\t'zh_CN', // Simplified Chinese (China)\n\t\t\t'zh_HK', // Traditional Chinese (Hong Kong)\n\t\t\t'zh_TW', // Traditional Chinese (Taiwan)\n\t\t\t'zu_ZA', // Zulu\n\t\t\t'zz_TR', // Zazaki\n\t\t];\n\t}", "title": "" }, { "docid": "673f4ad98bb23b6a5ec1fecda58ca0a0", "score": "0.6206961", "text": "static function getList() {\n if (self::$list === NULL) {\n\n $list_all = Lang::find()->published()->all();\n $l = array();\n foreach ($list_all as $data) {\n $l[$data->alias] = $data;\n }\n\n self::$list = $l;\n }\n return self::$list;\n }", "title": "" }, { "docid": "e70e959d79da5bd4c1f0b21835e6ebab", "score": "0.62030613", "text": "public static function loadAllLocales() {\n static $locales;\n\n if ($locales === null) {\n $objects = id(new PhutilClassMapQuery())\n ->setAncestorClass(__CLASS__)\n ->execute();\n\n $locale_map = array();\n foreach ($objects as $object) {\n $locale_code = $object->getLocaleCode();\n if (empty($locale_map[$locale_code])) {\n $locale_map[$locale_code] = $object;\n } else {\n throw new Exception(\n pht(\n 'Two subclasses of \"%s\" (\"%s\" and \"%s\") define '.\n 'locales with the same locale code (\"%s\"). Each locale must '.\n 'have a unique locale code.',\n __CLASS__,\n get_class($object),\n get_class($locale_map[$locale_code]),\n $locale_code));\n }\n }\n\n foreach ($locale_map as $locale_code => $locale) {\n $fallback_code = $locale->getFallbackLocaleCode();\n if ($fallback_code !== null) {\n if (empty($locale_map[$fallback_code])) {\n throw new Exception(\n pht(\n 'The locale \"%s\" has an invalid fallback locale code (\"%s\"). '.\n 'No locale class exists which defines this locale.',\n get_class($locale),\n $fallback_code));\n }\n }\n }\n\n foreach ($locale_map as $locale_code => $locale) {\n $seen = array($locale_code => get_class($locale));\n self::checkLocaleFallback($locale_map, $locale, $seen);\n }\n\n $locales = $locale_map;\n }\n return $locales;\n }", "title": "" }, { "docid": "348d2a766cad31c6ab2723b24986c090", "score": "0.6167207", "text": "function getAll()\r\n\t\t{\r\n\t\t\treturn $this->lang;\r\n\t\t}", "title": "" }, { "docid": "601e7b1f0957f24c600aab8a2d72b1f8", "score": "0.6162969", "text": "private function getAllLangs()\n\t{\n\t\t$options = array();\n\t\t$sql = \"SELECT * FROM \" . $this->db->prefix . \"site_languages WHERE is_online = 1\";\n\t\t$result = $this->db->query($sql);\n\t\t$available_languages = array();\n\t\twhile($row = $this->db->fetchToRow($result)){\n\t\t\t$available_languages[] = $row[ 'lang' ];\n\t\t\t$options[ $row[ 'lang' ] ][ 'lang' ] = $row[ 'lang' ];\n\t\t\t$options[ $row[ 'lang' ] ][ 'language' ] = ucfirst($row[ 'language' ]);\n\t\t}\n\t\t$this->language_options = $options;\n\n\t\treturn $available_languages;\n\t}", "title": "" }, { "docid": "beaa5bc01b4502fdcc878de1ac636d04", "score": "0.61486685", "text": "public static function getAllLanguages()\n {\n\t\tstatic $languages; \n\t\tif($languages == null){\n\t\t\t$db = JFactory::getDbo();\n\t\t\t$query = $db->getQuery(true);\n\t\t\t$default = self::getDefaultLanguage();\n\t\t\t$query->select('lang_id, lang_code, title, `sef`')\n\t\t\t\t->from('#__languages')\n\t\t\t\t->where('published = 1')\n\t\t\t\t->order('ordering');\n\t\t\t$db->setQuery($query);\n\t\t\t$languages = $db->loadObjectList();\n\t\t}\n return $languages;\n }", "title": "" }, { "docid": "f92bc2d75b631ab7842c4315ff6af540", "score": "0.61406344", "text": "public function index(Request $request)\n {\n return (new LocaleCollection($this->countryService->getAvailable()));\n }", "title": "" }, { "docid": "7f67645224443b335bdc67057d6ce970", "score": "0.6133554", "text": "private static function get_supported_locales() {\r\n\t\tif (self::is_version_1_8_or_higher()) {\r\n\t\t\treturn array(\r\n\t\t\t\tself::WIDGET_DATEPICKER => array(\r\n\t\t\t\t\t'af', 'ar', 'az',\r\n\t\t\t\t\t'bg', 'bs',\r\n\t\t\t\t\t'ca', 'cs',\r\n\t\t\t\t\t'da', 'de', \r\n\t\t\t\t\t'el', 'en-GB', 'eo', 'es', 'et', 'eu', \r\n\t\t\t\t\t'fa', 'fi', 'fo', 'fr-CH', 'fr',\r\n\t\t\t\t\t'he', 'hr', 'hu', 'hy',\r\n\t\t\t\t\t'id', 'is', 'it', \r\n\t\t\t\t\t'ja', \r\n\t\t\t\t\t'ko', \r\n\t\t\t\t\t'lt', 'lv',\r\n\t\t\t\t\t'ms',\r\n\t\t\t\t\t'nl', 'no', \r\n\t\t\t\t\t'pl', 'pt-BR',\r\n\t\t\t\t\t'ro', 'ru',\r\n\t\t\t\t\t'sk', 'sl', 'sq', 'sr', 'sr-SR', 'sv',\r\n\t\t\t\t\t'ta', 'th', 'tr', \r\n\t\t\t\t\t'uk', \r\n\t\t\t\t\t'vi',\r\n\t\t\t\t\t'zh-CN', 'zh-HK', 'zh-TW',\t\t\t\t\t\r\n\t\t\t\t),\r\n\t\t\t);\r\n\t\t}\t\r\n\t\telse {\r\n\t\t\t// Version 1.7\r\n\t\t\treturn array(\r\n\t\t\t\tself::WIDGET_DATEPICKER => array(\r\n\t\t\t\t\t'ar',\r\n\t\t\t\t\t'bg',\r\n\t\t\t\t\t'ca', 'cs',\r\n\t\t\t\t\t'da', 'de', \r\n\t\t\t\t\t'el', 'eo', 'es', \r\n\t\t\t\t\t'fa', 'fi', 'fr',\r\n\t\t\t\t\t'he', 'hr', 'hu', 'hy',\r\n\t\t\t\t\t'id', 'is', 'it', \r\n\t\t\t\t\t'ja', \r\n\t\t\t\t\t'ko', \r\n\t\t\t\t\t'lt', 'lv',\r\n\t\t\t\t\t'ms',\r\n\t\t\t\t\t'nl', 'no', \r\n\t\t\t\t\t'pl', 'pt-BR',\r\n\t\t\t\t\t'ro', 'ru',\r\n\t\t\t\t\t'sk', 'sl', 'sq', 'sr', 'sr-SR', 'sv',\r\n\t\t\t\t\t'th', 'tr', \r\n\t\t\t\t\t'uk', \r\n\t\t\t\t\t'vi',\r\n\t\t\t\t\t'zh-CN', 'zh-TW',\r\n\t\t\t\t),\t\r\n\t\t\t);\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "8645e64d2340955991e6219a8c861553", "score": "0.61330056", "text": "static function getLocale() {\n\t\treturn self::getRegistry()->get(self::REGISTRY_LOCALE);\n\t}", "title": "" }, { "docid": "10ef2f3f2b13f25cc306f1797f872e9a", "score": "0.61311156", "text": "public function getLanguages() {}", "title": "" }, { "docid": "ace4ec5693f885ee275fd4a8f11f5271", "score": "0.6125903", "text": "public static function allNames()\n {\n static $list;\n\n if ($list === null) {\n $list = [];\n $data = \\ResourceBundle::create(\\Locale::getDefault(), 'ICUDATA-curr')->get('Currencies');\n foreach ($data as $code => $values) {\n $list[$code] = $values[1];\n }\n }\n\n return $list;\n }", "title": "" }, { "docid": "eb2d1dd3f82fded8b591bcd38af5ace4", "score": "0.60898346", "text": "public function getSystemLanguages() {}", "title": "" }, { "docid": "eb2d1dd3f82fded8b591bcd38af5ace4", "score": "0.6088287", "text": "public function getSystemLanguages() {}", "title": "" }, { "docid": "a89160f9962f26f2955a2788bae4519d", "score": "0.6085636", "text": "function getDefaultLocalesOrder();", "title": "" }, { "docid": "8bc7bfbcf9b9016f3cf632ff9ca97901", "score": "0.6077063", "text": "protected static function getRootLocaleLanguages()\n {\n $language_locale = new \\Innomatic\\Locale\\LocaleCatalog(\n 'innomatic::localization', \n \\Innomatic\\Core\\InnomaticContainer::instance(\n '\\Innomatic\\Core\\InnomaticContainer'\n )->getLanguage()\n );\n\n $languageQuery = \\Innomatic\\Core\\InnomaticContainer::instance(\n '\\Innomatic\\Core\\InnomaticContainer'\n )->getDataAccess()->execute('SELECT * FROM locale_languages');\n\n while (!$languageQuery->eof) {\n $langshort = $languageQuery->getFields('langshort');\n $langname = $languageQuery->getFields('langname');\n $languages[$langshort] = $language_locale->getStr($langname);\n $languageQuery->moveNext();\n }\n\n return $languages;\n }", "title": "" }, { "docid": "df5db0edb43ffcb70f912f9997e31487", "score": "0.60660404", "text": "public function getLanguages() {\n\t\treturn $this->_getResponse(self::URL_LANGUAGES);\n\t}", "title": "" }, { "docid": "05925225c7578e29945005b418abb932", "score": "0.60645", "text": "function supplang_registered_languages() {\n\t/**\n\t * Filters the registered languages array.\n\t *\n\t * @since 2.3.0\n\t *\n\t * @param array The default languages\n\t */\n\t$languages = apply_filters( 'supplang_register_languages', SUPPLANG_LANGUAGES );\n\t// To prevent error when add_filter do not return the languages\n\treturn empty( $languages ) ? array() : $languages;\n}", "title": "" }, { "docid": "0a6a5b21910825824537bff624883484", "score": "0.604753", "text": "public function getCountries($locale)\n {\n if (!empty($this->countries)) {\n return $this->countries;\n }\n\n $country_list_path = __DIR__.'/../../../umpirsky/country-list/country/icu/';\n $path = $country_list_path.$locale.'/country.php';\n\n // Does that locale exist\n if (file_exists($path)) {\n $countries = include $path;\n } else {\n // Fallback to English\n $countries = include $country_list_path.'en/country.php';\n }\n\n return $countries;\n }", "title": "" }, { "docid": "4b27a76d7843d009e7c9b9f0cb13c59e", "score": "0.60464627", "text": "public function getLanguages()\n {\n $endpoint = $this->endpoints['getLanguages'];\n return $this->sendRequest($endpoint['method'], $endpoint['uri']);\n }", "title": "" }, { "docid": "d191797e42ec9f84ec571e69f432025b", "score": "0.6045411", "text": "public function getAllDomainsLocale()\n {\n $data = TranslationKeyQuery::create()\n ->joinWithTranslationContent()\n ->select(array('Domain', 'TranslationContent.Locale'))\n ->useTranslationContentQuery()\n ->filterByLocale($this->managedLocales)\n ->endUse()\n ->distinct('Domain')\n ->find();\n\n $return = array();\n foreach ($data as $line) {\n $return[] = array(\n 'locale' => $line['TranslationContent.Locale'],\n 'domain' => $line['Domain']\n );\n }\n\n return $return;\n }", "title": "" }, { "docid": "b44cf7890a5f6150e9134aad5d691ea8", "score": "0.60357654", "text": "public function localeIndex()\n {\n return $this->localeIndex;\n }", "title": "" }, { "docid": "a6b78d6f0dadc8436a8b246de23f992e", "score": "0.60275334", "text": "function getLocaleFieldNames() {\n\t\treturn array();\n\n\t}", "title": "" }, { "docid": "eaa8a062533456ec44d7880e6fc5fc59", "score": "0.6022611", "text": "static public function getLocalesListWithoutRss()\r\n {\r\n $locales = self::getLocalesList();\r\n return array_diff($locales, array('rss'));\r\n }", "title": "" }, { "docid": "7dbd19a008e8f05c58fb36736fbb1c6b", "score": "0.6018738", "text": "protected function localizer() {\n\t\treturn wponion_localize()->as_array();\n\t}", "title": "" }, { "docid": "0b99495fa6aaf647eee84d4e16e8c1e9", "score": "0.601684", "text": "function GetInstalledLanguages()\n\t{\n\t\t$result = $this->sendRequest(\"GetInstalledLanguages\", array());\t\n\t\treturn $this->getResultFromResponse($result);\n\t}", "title": "" }, { "docid": "d9763749e6d52bef6a917c17058b02a1", "score": "0.60160565", "text": "protected function addLocales()\n {\n // @todo: add locales when locales configuration is updated\n }", "title": "" }, { "docid": "613655c465f328d14462996527bdf587", "score": "0.60125387", "text": "public function getAll(){\n if(!isset($this->array_lang_en)){\n $this->initEn();\n }\n if(!isset($this->array_lang_fr)){\n $this->initEn();\n }\n return [\n 'eng' => $this->array_lang_en,\n 'fr' => $this->array_lang_fr\n ];\n }", "title": "" }, { "docid": "1ac174d78208e766165d0320fa19c783", "score": "0.5999839", "text": "public function getMessages($locale = null) {\n\t\treturn array();\n\t}", "title": "" }, { "docid": "8321d1d1c2dd88e39756bebed542aee9", "score": "0.59980625", "text": "public function getLocale();", "title": "" }, { "docid": "8321d1d1c2dd88e39756bebed542aee9", "score": "0.59980625", "text": "public function getLocale();", "title": "" }, { "docid": "a59ade36049fdb5d6f6978b09ba1e9a5", "score": "0.59958094", "text": "function issuu_get_languages() {\n $predefined = _locale_get_predefined_list();\n foreach ($predefined as $key => $value) {\n // Issuu doesn't support variants (for example pt-br), so skip those.\n if (strlen($key) != 2) {\n unset($predefined[$key]);\n continue;\n }\n // Include native name in output, if possible\n if (count($value) > 1) {\n $tname = t($value[0]);\n $predefined[$key] = ($tname == $value[1]) ? $tname : \"$tname ($value[1])\";\n }\n else {\n $predefined[$key] = t($value[0]);\n }\n }\n asort($predefined);\n return $predefined;\n}", "title": "" }, { "docid": "b1918d98220a64c117176d08e7678cda", "score": "0.5985324", "text": "public function getAvailableLanguages() {}", "title": "" }, { "docid": "c5dc808434a1114fe69a8b7a00540aff", "score": "0.5979932", "text": "public function actionLanguages() {\n return Lang::getList();\n }", "title": "" }, { "docid": "15eac41dd8789b0f1106d363a6004849", "score": "0.59732926", "text": "public function getAvailableLanguages(): array\n {\n return array_keys($this->settings);\n }", "title": "" }, { "docid": "591957358241b8b67111465845c54137", "score": "0.5973218", "text": "public function getLanguages()\n {\n return $this->getResponse(self::URL_LANGUAGES);\n }", "title": "" }, { "docid": "671c71715b06f68c0ffe6149f906a87e", "score": "0.59726083", "text": "public static function languages(string $locale = 'en') : Collection\n {\n return Collection::make(include __DIR__ . \"/../../../umpirsky/language-list/data/{$locale}/language.php\")->map(function ($lang) {\n return ucfirst($lang);\n });\n }", "title": "" }, { "docid": "1a19cc9bfaece9c197ca279d57bef3c4", "score": "0.5949905", "text": "public static function languages()\n {\n return self::first()->languages;\n }", "title": "" }, { "docid": "137d01f6ae7fa2c9320a34faa32310ab", "score": "0.5948282", "text": "public function index()\n {\n return view('stevebauman/localization::locales.index');\n }", "title": "" }, { "docid": "02b92b202f2c1e0841d6065526a26095", "score": "0.5932517", "text": "public function __invoke($root, array $args, GraphQLContext $context, ResolveInfo $resolveInfo)\n {\n return array_values(\\StaticData::getCountries($args['locale']));\n }", "title": "" }, { "docid": "a3a8d7b3b55317c89b4a33634dc38802", "score": "0.5932378", "text": "protected function initializeL10nLocales() {}", "title": "" }, { "docid": "f38ae7a2173d36f29542bb108f6b2e93", "score": "0.59297734", "text": "public function localizedLanguages()\n {\n foreach (self::languages() as $language) {\n $appLanguages[$language] = Copy::server(LANGUAGES[$language] ?? '');\n }\n\n return $appLanguages ?? null;\n }", "title": "" }, { "docid": "ee9095ed0161c697b6d06ee403238e7b", "score": "0.592888", "text": "public function getSiteLocaleIds(): array\n {\n Craft::$app->getDeprecator()->log('craft.i18n.getSiteLocaleIds()', 'craft.i18n.getSiteLocaleIds() has been deprecated. Use craft.app.i18n.siteLocaleIds instead.');\n\n return Craft::$app->getI18n()->getSiteLocaleIds();\n }", "title": "" } ]
c2afb0bb34b85d07bf237a463832ad86
Gets the 'pim_base_connector.event_listener.archivist' service. This service is shared. This method always returns the same instance of the service.
[ { "docid": "3f3e652a98971bdbc77d351bb9dc08a8", "score": "0.7253896", "text": "protected function getPimBaseConnector_EventListener_ArchivistService()\n {\n $this->services['pim_base_connector.event_listener.archivist'] = $instance = new \\Pim\\Bundle\\BaseConnectorBundle\\EventListener\\JobExecutionArchivist();\n\n $instance->registerArchiver($this->get('pim_base_connector.archiver.invalid_item_csv_archiver'));\n $instance->registerArchiver($this->get('pim_base_connector.archiver.file_reader_archiver'));\n $instance->registerArchiver($this->get('pim_base_connector.archiver.file_writer_archiver'));\n $instance->registerArchiver($this->get('pim_base_connector.archiver.archivable_file_writer_archiver'));\n\n return $instance;\n }", "title": "" } ]
[ { "docid": "aa8ddc978eb19025572eeed8d952a2da", "score": "0.6265614", "text": "protected function getPimArchivistFilesystemService()\n {\n return $this->services['pim_archivist_filesystem'] = new \\Gaufrette\\Filesystem(new \\Gaufrette\\Adapter\\Local((dirname(dirname(__DIR__)).'/archive'), true));\n }", "title": "" }, { "docid": "e9982188e08e625af43f5e9e3952d27a", "score": "0.549277", "text": "protected function getVictoireSitemap_Sort_HandlerService()\n {\n return $this->services['victoire_sitemap.sort.handler'] = new \\Victoire\\Bundle\\SitemapBundle\\Domain\\Sort\\SitemapSortHandler($this->get('doctrine.orm.default_entity_manager'));\n }", "title": "" }, { "docid": "69a465dbe423269f281a2c82442e7ff9", "score": "0.5424618", "text": "protected function getPimBaseConnector_Archiver_ArchivableFileWriterArchiverService()\n {\n return $this->services['pim_base_connector.archiver.archivable_file_writer_archiver'] = new \\Pim\\Bundle\\BaseConnectorBundle\\Archiver\\ArchivableFileWriterArchiver($this->get('pim_base_connector.factory.zip_filesystem'), (dirname(dirname(__DIR__)).'/archive'), $this->get('pim_archivist_filesystem'));\n }", "title": "" }, { "docid": "ab9e7dcb8d941c52a87684633e4b51c1", "score": "0.5378286", "text": "protected function getEventDispatcherService()\n {\n $this->services['event_dispatcher'] = $instance = new \\Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatcher($this);\n\n $instance->addListenerService('kernel.request', array(0 => 'knp_menu.listener.voters', 1 => 'onKernelRequest'), 0);\n $instance->addListenerService('victoire_core.build_menu', array(0 => 'victoire_blog.blog_menu_listener', 1 => 'addGlobal'), 90);\n $instance->addListenerService('victoire_core.article_menu.contextual', array(0 => 'victoire_blog.article_menu.contextual', 1 => 'addContextual'), 0);\n $instance->addListenerService('victoire_core.article_menu.contextual', array(0 => 'victoire_blog.article_settings_menu.contextual', 1 => 'addContextual'), 0);\n $instance->addListenerService('victoire_core.blog_menu.contextual', array(0 => 'victoire_blog.blog_menu.contextual', 1 => 'addBlogContextual'), 0);\n $instance->addListenerService('victoire_core.article_template_menu.contextual', array(0 => 'victoire_blog.article_template_menu.menu_listener.contextual', 1 => 'addContextual'), 0);\n $instance->addListenerService('victoire_core.blog_menu.contextual', array(0 => 'victoire_blog.blog_page_menu.contextual', 1 => 'addContextual'), 0);\n $instance->addListenerService('victoire.widget_filter.form.pre_set_data', array(0 => 'victoire.widget_filter.form.listener.presetdata', 1 => 'manageExtraFiltersFields'), 1);\n $instance->addListenerService('victoire.widget_filter.form.pre_submit', array(0 => 'victoire.widget_filter.form.listener.presubmit', 1 => 'manageExtraFiltersFields'), 1);\n $instance->addListenerService('victoire.widget_filter.form.date.set_default_value', array(0 => 'victoire.widget_filter.blog.set.default.values.form.listener', 1 => 'setDefaultDateValue'), 1);\n $instance->addListenerService('victoire_core.build_menu', array(0 => 'victoire_business_page.business_template_menu_listener', 1 => 'addGlobal'), 50);\n $instance->addListenerService('victoire_core.business_template_menu.contextual', array(0 => 'victoire_core.business_template_menu.contextual', 1 => 'addContextual'), 0);\n $instance->addListenerService('kernel.request', array(0 => 'victoire_core.menu_dispatcher', 1 => 'onKernelRequest'), 0);\n $instance->addListenerService('victoire_core.backend_menu.global', array(0 => 'victoire_core.backend_menu_listener', 1 => 'addGlobal'), 100);\n $instance->addListenerService('kernel.controller', array(0 => 'victoire_core.listener.controller_listener', 1 => 'preExecuteAutorun'), 0);\n $instance->addListenerService('victoire.on_render_page', array(0 => 'victoire_core.view_css_listener', 1 => 'onRenderPage'), 0);\n $instance->addListenerService('kernel.request', array(0 => 'victoire_i18n.kernelrequest.listener', 1 => 'onKernelRequest'), 0);\n $instance->addListenerService('victoire_core.build_menu', array(0 => 'victoire_core.media_menu_listener', 1 => 'addGlobal'), 60);\n $instance->addListenerService('victoire_core.build_menu', array(0 => 'victoire_core.page_menu_listener', 1 => 'addGlobal'), 100);\n $instance->addListenerService('victoire_core.page_menu.contextual', array(0 => 'victoire_core.page_menu.contextual', 1 => 'addContextual'), 0);\n $instance->addListenerService('victoire_core.build_menu', array(0 => 'victoire_sitemap.sitemap_menu_listener', 1 => 'addGlobal'), 70);\n $instance->addListenerService('victoire_core.build_menu', array(0 => 'victoire_core.template_menu_listener', 1 => 'addGlobal'), 80);\n $instance->addListenerService('victoire_core.template_menu.contextual', array(0 => 'victoire_core.template_menu.contextual', 1 => 'addContextual'), 0);\n $instance->addListenerService('kernel.request', array(0 => 'victoire_twig.kernelrequest.listener', 1 => 'onKernelRequest'), 0);\n $instance->addListenerService('kernel.request', array(0 => 'victoire_view_reference.cache_warmer', 1 => 'warmUp'), 0);\n $instance->addSubscriberService('response_listener', 'Symfony\\\\Component\\\\HttpKernel\\\\EventListener\\\\ResponseListener');\n $instance->addSubscriberService('streamed_response_listener', 'Symfony\\\\Component\\\\HttpKernel\\\\EventListener\\\\StreamedResponseListener');\n $instance->addSubscriberService('locale_listener', 'Symfony\\\\Component\\\\HttpKernel\\\\EventListener\\\\LocaleListener');\n $instance->addSubscriberService('validate_request_listener', 'Symfony\\\\Component\\\\HttpKernel\\\\EventListener\\\\ValidateRequestListener');\n $instance->addSubscriberService('translator_listener', 'Symfony\\\\Component\\\\HttpKernel\\\\EventListener\\\\TranslatorListener');\n $instance->addSubscriberService('session_listener', 'Symfony\\\\Bundle\\\\FrameworkBundle\\\\EventListener\\\\SessionListener');\n $instance->addSubscriberService('session.save_listener', 'Symfony\\\\Component\\\\HttpKernel\\\\EventListener\\\\SaveSessionListener');\n $instance->addSubscriberService('fragment.listener', 'Symfony\\\\Component\\\\HttpKernel\\\\EventListener\\\\FragmentListener');\n $instance->addSubscriberService('debug.debug_handlers_listener', 'Symfony\\\\Component\\\\HttpKernel\\\\EventListener\\\\DebugHandlersListener');\n $instance->addSubscriberService('router_listener', 'Symfony\\\\Component\\\\HttpKernel\\\\EventListener\\\\RouterListener');\n $instance->addSubscriberService('security.firewall', 'Symfony\\\\Component\\\\Security\\\\Http\\\\Firewall');\n $instance->addSubscriberService('security.rememberme.response_listener', 'Symfony\\\\Component\\\\Security\\\\Http\\\\RememberMe\\\\ResponseListener');\n $instance->addSubscriberService('twig.exception_listener', 'Symfony\\\\Component\\\\HttpKernel\\\\EventListener\\\\ExceptionListener');\n $instance->addSubscriberService('monolog.handler.console', 'Symfony\\\\Bridge\\\\Monolog\\\\Handler\\\\ConsoleHandler');\n $instance->addSubscriberService('swiftmailer.email_sender.listener', 'Symfony\\\\Bundle\\\\SwiftmailerBundle\\\\EventListener\\\\EmailSenderListener');\n $instance->addSubscriberService('sensio_framework_extra.controller.listener', 'Sensio\\\\Bundle\\\\FrameworkExtraBundle\\\\EventListener\\\\ControllerListener');\n $instance->addSubscriberService('sensio_framework_extra.converter.listener', 'Sensio\\\\Bundle\\\\FrameworkExtraBundle\\\\EventListener\\\\ParamConverterListener');\n $instance->addSubscriberService('sensio_framework_extra.view.listener', 'Sensio\\\\Bundle\\\\FrameworkExtraBundle\\\\EventListener\\\\TemplateListener');\n $instance->addSubscriberService('sensio_framework_extra.cache.listener', 'Sensio\\\\Bundle\\\\FrameworkExtraBundle\\\\EventListener\\\\HttpCacheListener');\n $instance->addSubscriberService('sensio_framework_extra.security.listener', 'Sensio\\\\Bundle\\\\FrameworkExtraBundle\\\\EventListener\\\\SecurityListener');\n $instance->addSubscriberService('troopers_alertifybundle.event_listener', 'Troopers\\\\AlertifyBundle\\\\EventListener\\\\AlertifyListener');\n $instance->addSubscriberService('fos_user.security.interactive_login_listener', 'FOS\\\\UserBundle\\\\EventListener\\\\LastLoginListener');\n $instance->addSubscriberService('fos_user.listener.authentication', 'FOS\\\\UserBundle\\\\EventListener\\\\AuthenticationListener');\n $instance->addSubscriberService('fos_user.listener.flash', 'FOS\\\\UserBundle\\\\EventListener\\\\FlashListener');\n $instance->addSubscriberService('fos_user.listener.resetting', 'FOS\\\\UserBundle\\\\EventListener\\\\ResettingListener');\n $instance->addSubscriberService('victoire_core.cache_subscriber', 'Victoire\\\\Bundle\\\\CoreBundle\\\\EventSubscriber\\\\CacheSubscriber');\n $instance->addSubscriberService('victoire_i18n.locale_subscriber', 'Victoire\\\\Bundle\\\\I18nBundle\\\\Subscriber\\\\LocaleSubscriber');\n $instance->addSubscriberService('victoire_view_reference.listener', 'Victoire\\\\Bundle\\\\ViewReferenceBundle\\\\Listener\\\\ViewReferenceListener');\n\n return $instance;\n }", "title": "" }, { "docid": "cf7ac919b2ddb1343cf3716f888b41bb", "score": "0.52836365", "text": "protected function getOroSecurity_OwnershipTreeSubscriberService()\n {\n return $this->services['oro_security.ownership_tree_subscriber'] = new \\Oro\\Bundle\\SecurityBundle\\EventListener\\OwnerTreeListener($this->get('oro_security.link.ownership_tree_provider'));\n }", "title": "" }, { "docid": "6827159d783b0b450e2ecb653f9d8470", "score": "0.5281838", "text": "protected function getVictoireSitemap_SitemapMenuListenerService()\n {\n return $this->services['victoire_sitemap.sitemap_menu_listener'] = new \\Victoire\\Bundle\\SitemapBundle\\Listener\\SiteMapMenuListener($this->get('victoire_core.admin_menu_builder'));\n }", "title": "" }, { "docid": "295f34561920ab1f144d3c1462e4e7ed", "score": "0.52704257", "text": "protected function getPimBaseConnector_Archiver_FileReaderArchiverService()\n {\n return $this->services['pim_base_connector.archiver.file_reader_archiver'] = new \\Pim\\Bundle\\BaseConnectorBundle\\Archiver\\FileReaderArchiver($this->get('pim_archivist_filesystem'));\n }", "title": "" }, { "docid": "17def4abe5ef353606394738efbf46a6", "score": "0.5266372", "text": "protected function getDataCollector_RouterService()\n {\n return $this->services['data_collector.router'] = new \\Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RouterDataCollector();\n }", "title": "" }, { "docid": "119e58de2755839c8a4cbe0bc4357583", "score": "0.5260288", "text": "protected function getPimBaseConnector_Archiver_FileWriterArchiverService()\n {\n return $this->services['pim_base_connector.archiver.file_writer_archiver'] = new \\Pim\\Bundle\\BaseConnectorBundle\\Archiver\\FileWriterArchiver($this->get('pim_archivist_filesystem'));\n }", "title": "" }, { "docid": "336883c55cc57c9a6e184c97dd746c4c", "score": "0.5169404", "text": "protected function getEventDispatcherService()\n {\n $this->services['event_dispatcher'] = $instance = new \\Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatcher($this);\n\n $instance->addListenerService('knp_pager.before', array(0 => 'knp_paginator.subscriber.paginate', 1 => 'before'), 0);\n $instance->addListenerService('knp_pager.pagination', array(0 => 'knp_paginator.subscriber.paginate', 1 => 'pagination'), 0);\n $instance->addListenerService('knp_pager.before', array(0 => 'knp_paginator.subscriber.sortable', 1 => 'before'), 1);\n $instance->addListenerService('knp_pager.before', array(0 => 'knp_paginator.subscriber.filtration', 1 => 'before'), 1);\n $instance->addListenerService('knp_pager.pagination', array(0 => 'knp_paginator.subscriber.sliding_pagination', 1 => 'pagination'), 1);\n $instance->addListenerService('kernel.controller', array(0 => 'data_collector.router', 1 => 'onKernelController'), 0);\n $instance->addListenerService('kernel.response', array(0 => 'monolog.handler.firephp', 1 => 'onKernelResponse'), 0);\n $instance->addListenerService('kernel.request', array(0 => 'besimple.soap.request_format.listener', 1 => 'onKernelRequest'), 0);\n $instance->addListenerService('kernel.view', array(0 => 'besimple.soap.response.listener', 1 => 'onKernelView'), 0);\n $instance->addListenerService('kernel.request', array(0 => 'fos_rest.body_listener', 1 => 'onKernelRequest'), 0);\n $instance->addListenerService('kernel.controller', array(0 => 'fos_rest.format_listener', 1 => 'onKernelController'), 0);\n $instance->addListenerService('kernel.request', array(0 => 'knp_menu.listener.voters', 1 => 'onKernelRequest'), 0);\n $instance->addListenerService('kernel.request', array(0 => 'knp_paginator.subscriber.sliding_pagination', 1 => 'onKernelRequest'), 0);\n $instance->addListenerService('kernel.request', array(0 => 'lexik_maintenance.listener', 1 => 'onKernelRequest'), 0);\n $instance->addListenerService('kernel.request', array(0 => 'nelmio_api_doc.event_listener.request', 1 => 'onKernelRequest'), 0);\n $instance->addListenerService('kernel.view', array(0 => 'oro_ui.view.listener', 1 => 'onKernelView'), 0);\n $instance->addListenerService('oro_menu.configure.application_menu', array(0 => 'oro_entity.listener.navigation_listener', 1 => 'onNavigationConfigure'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.after.audit-log-grid', array(0 => 'oro_entity_config.event_listener.audit_log_grid_listener', 1 => 'onBuildAfter'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.after.auditfield-log-grid', array(0 => 'oro_entity_config.event_listener.audit_log_grid_listener', 1 => 'onBuildAfter'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.before.auditfield-log-grid', array(0 => 'oro_entity_config.event_listener.audit_log_grid_listener', 1 => 'onBuildBefore'), 0);\n $instance->addListenerService('kernel.controller', array(0 => 'oro_help.listener.help_link', 1 => 'onKernelController'), -200);\n $instance->addListenerService('kernel.response', array(0 => 'kernel.listener.nav_history_response', 1 => 'onResponse'), 0);\n $instance->addListenerService('kernel.request', array(0 => 'kernel.listener.title_service.request_listener', 1 => 'onKernelRequest'), -255);\n $instance->addListenerService('kernel.response', array(0 => 'kernel.listener.hashnav_response', 1 => 'onResponse'), 0);\n $instance->addListenerService('kernel.request', array(0 => 'oro_navigation.twig.hash_nav_extension', 1 => 'onKernelRequest'), 0);\n $instance->addListenerService('entity_form.render.before', array(0 => 'oro_organization.form.listener', 1 => 'addOwnerField'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.after.bu-update-users-grid', array(0 => 'oro_organization.event_listener.bu_update_grid_listener', 1 => 'onBuildAfter'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.after.bu-view-users-grid', array(0 => 'oro_organization.event_listener.bu_view_grid_listener', 1 => 'onBuildAfter'), 0);\n $instance->addListenerService('kernel.controller', array(0 => 'oro_security.listener.controller', 1 => 'onKernelController'), -1);\n $instance->addListenerService('security.interactive_login', array(0 => 'oro_user.security.login', 1 => 'onLogin'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.after.users-email-grid', array(0 => 'oro_user.event_listener.user_email_grid_listener', 1 => 'onBuildAfter'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.after.role-users-grid', array(0 => 'oro_user.event_listener.role_users_grid_listener', 1 => 'onBuildAfter'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.after.group-users-grid', array(0 => 'oro_user.event_listener.group_users_grid_listener', 1 => 'onBuildAfter'), 0);\n $instance->addListenerService('kernel.request', array(0 => 'oro_dataaudit.listener.kernel_listener', 1 => 'onKernelRequest'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.after.audit-history-grid', array(0 => 'oro_dataaudit.event_listener.dataaudit_history_grid_listener', 1 => 'onBuildAfter'), 0);\n $instance->addListenerService('jsfv.pre_process', array(0 => 'jsfv.validation_groups_listener', 1 => 'onJsfvPreProcess'), 0);\n $instance->addListenerService('jsfv.post_process', array(0 => 'jsfv.repeated_field_listener', 1 => 'onJsfvPostProcess'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.after.pim-role-user-grid', array(0 => 'pim_user.event_listener.role_users_grid_listener', 1 => 'onBuildAfter'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.after.pim-group-user-grid', array(0 => 'pim_user.event_listener.group_users_grid_listener', 1 => 'onBuildAfter'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.before', array(0 => 'pim_datagrid.event_listener.configure_sorters_listener', 1 => 'onBuildBefore'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.after.export-profile-grid', array(0 => 'pim_import_export.event_listener.inject_job_type', 1 => 'onBuildAfter'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.after.import-profile-grid', array(0 => 'pim_import_export.event_listener.inject_job_type', 1 => 'onBuildAfter'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.after.export-execution-grid', array(0 => 'pim_import_export.event_listener.inject_job_type', 1 => 'onBuildAfter'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.after.import-execution-grid', array(0 => 'pim_import_export.event_listener.inject_job_type', 1 => 'onBuildAfter'), 0);\n $instance->addListenerService('kernel.request', array(0 => 'pim_versioning.event_subscriber.adduser', 1 => 'onKernelRequest'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.after', array(0 => 'pim_enrich.event_listener.add_locale_code_to_grid', 1 => 'onBuildAfter'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.before.product-grid', array(0 => 'pim_enrich.event_listener.product_grid_before_listener', 1 => 'buildBefore'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.after.product-grid', array(0 => 'pim_enrich.event_listener.product_grid_after_listener', 1 => 'onBuildAfter'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.before.product-group-grid', array(0 => 'pim_enrich.event_listener.product_group_grid_before_listener', 1 => 'buildBefore'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.after.product-group-grid', array(0 => 'pim_enrich.event_listener.product_group_grid_after_listener', 1 => 'onBuildAfter'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.before.product-variant-group-grid', array(0 => 'pim_enrich.event_listener.product_variant_group_grid_before_listener', 1 => 'buildBefore'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.after.product-variant-group-grid', array(0 => 'pim_enrich.event_listener.product_variant_group_grid_after_listener', 1 => 'onBuildAfter'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.after.group-grid', array(0 => 'pim_enrich.event_listener.group_grid_listener', 1 => 'onBuildAfter'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.after.variant-group-grid', array(0 => 'pim_enrich.event_listener.variant_group_grid_listener', 1 => 'onBuildAfter'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.before.association-product-grid', array(0 => 'pim_enrich.event_listener.association_product_grid_before_listener', 1 => 'buildBefore'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.after.association-product-grid', array(0 => 'pim_enrich.event_listener.association_product_grid_after_listener', 1 => 'onBuildAfter'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.after.association-group-grid', array(0 => 'pim_enrich.event_listener.association_group_grid_after_listener', 1 => 'onBuildAfter'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.before.history-grid', array(0 => 'pim_enrich.event_listener.history_grid_listener', 1 => 'onBuildBefore'), 0);\n $instance->addListenerService('oro_datagrid.datgrid.build.before.product-history-grid', array(0 => 'pim_enrich.event_listener.history_grid_listener', 1 => 'onBuildBefore'), 0);\n $instance->addListenerService('clank.client.connected', array(0 => 'clank.client_event.listener', 1 => 'onClientConnect'), 0);\n $instance->addListenerService('clank.client.disconnected', array(0 => 'clank.client_event.listener', 1 => 'onClientDisconnect'), 0);\n $instance->addListenerService('clank.client.error', array(0 => 'clank.client_event.listener', 1 => 'onClientError'), 0);\n $instance->addSubscriberService('response_listener', 'Symfony\\\\Component\\\\HttpKernel\\\\EventListener\\\\ResponseListener');\n $instance->addSubscriberService('streamed_response_listener', 'Symfony\\\\Component\\\\HttpKernel\\\\EventListener\\\\StreamedResponseListener');\n $instance->addSubscriberService('locale_listener', 'Symfony\\\\Component\\\\HttpKernel\\\\EventListener\\\\LocaleListener');\n $instance->addSubscriberService('debug.emergency_logger_listener', 'Symfony\\\\Component\\\\HttpKernel\\\\EventListener\\\\ErrorsLoggerListener');\n $instance->addSubscriberService('debug.deprecation_logger_listener', 'Symfony\\\\Component\\\\HttpKernel\\\\EventListener\\\\ErrorsLoggerListener');\n $instance->addSubscriberService('session_listener', 'Symfony\\\\Bundle\\\\FrameworkBundle\\\\EventListener\\\\SessionListener');\n $instance->addSubscriberService('session.save_listener', 'Symfony\\\\Component\\\\HttpKernel\\\\EventListener\\\\SaveSessionListener');\n $instance->addSubscriberService('fragment.listener', 'Symfony\\\\Component\\\\HttpKernel\\\\EventListener\\\\FragmentListener');\n $instance->addSubscriberService('profiler_listener', 'Symfony\\\\Component\\\\HttpKernel\\\\EventListener\\\\ProfilerListener');\n $instance->addSubscriberService('data_collector.request', 'Symfony\\\\Component\\\\HttpKernel\\\\DataCollector\\\\RequestDataCollector');\n $instance->addSubscriberService('router_listener', 'Symfony\\\\Component\\\\HttpKernel\\\\EventListener\\\\RouterListener');\n $instance->addSubscriberService('security.firewall', 'Symfony\\\\Component\\\\Security\\\\Http\\\\Firewall');\n $instance->addSubscriberService('security.rememberme.response_listener', 'Symfony\\\\Component\\\\Security\\\\Http\\\\RememberMe\\\\ResponseListener');\n $instance->addSubscriberService('twig.exception_listener', 'Symfony\\\\Component\\\\HttpKernel\\\\EventListener\\\\ExceptionListener');\n $instance->addSubscriberService('swiftmailer.email_sender.listener', 'Symfony\\\\Bundle\\\\SwiftmailerBundle\\\\EventListener\\\\EmailSenderListener');\n $instance->addSubscriberService('sensio_framework_extra.controller.listener', 'Sensio\\\\Bundle\\\\FrameworkExtraBundle\\\\EventListener\\\\ControllerListener');\n $instance->addSubscriberService('sensio_framework_extra.converter.listener', 'Sensio\\\\Bundle\\\\FrameworkExtraBundle\\\\EventListener\\\\ParamConverterListener');\n $instance->addSubscriberService('sensio_framework_extra.view.listener', 'Sensio\\\\Bundle\\\\FrameworkExtraBundle\\\\EventListener\\\\TemplateListener');\n $instance->addSubscriberService('sensio_framework_extra.cache.listener', 'Sensio\\\\Bundle\\\\FrameworkExtraBundle\\\\EventListener\\\\CacheListener');\n $instance->addSubscriberService('besimple.soap.exception_listener', 'BeSimple\\\\SoapBundle\\\\EventListener\\\\SoapExceptionListener');\n $instance->addSubscriberService('stof_doctrine_extensions.event_listener.locale', 'Pim\\\\Bundle\\\\EnrichBundle\\\\EventListener\\\\UserContextListener');\n $instance->addSubscriberService('oro_email.listener.config_subscriber', 'Oro\\\\Bundle\\\\EmailBundle\\\\EventListener\\\\ConfigSubscriber');\n $instance->addSubscriberService('oro_entity.owner.entity_config_subscriber', 'Oro\\\\Bundle\\\\EntityBundle\\\\EventListener\\\\EntityConfigSubscriber');\n $instance->addSubscriberService('oro_entity.event_listener.custom_entity_grid_subscriber', 'Oro\\\\Bundle\\\\EntityBundle\\\\EventListener\\\\CustomEntityGridListener');\n $instance->addSubscriberService('oro_entity.event_listener.relation_entity_grid_subscriber', 'Oro\\\\Bundle\\\\EntityBundle\\\\EventListener\\\\RelationEntityGridListener');\n $instance->addSubscriberService('oro_entity_config.event_listener.entityconfig_grid_listener', 'Oro\\\\Bundle\\\\EntityConfigBundle\\\\EventListener\\\\EntityConfigGridListener');\n $instance->addSubscriberService('oro_entity_config.event_listener.entityfields_grid_listener', 'Oro\\\\Bundle\\\\EntityConfigBundle\\\\EventListener\\\\FieldConfigGridListener');\n $instance->addSubscriberService('oro_entity_extend.listener.config_subscriber', 'Oro\\\\Bundle\\\\EntityExtendBundle\\\\EventListener\\\\ConfigSubscriber');\n $instance->addSubscriberService('oro_locale.locale_listener', 'Oro\\\\Bundle\\\\LocaleBundle\\\\EventListener\\\\LocaleListener');\n $instance->addSubscriberService('oro_security.owner.ownership_config_subscriber', 'Oro\\\\Bundle\\\\SecurityBundle\\\\EventListener\\\\OwnershipConfigSubscriber');\n $instance->addSubscriberService('oro_security.entity_security_config_subscriber', 'Oro\\\\Bundle\\\\SecurityBundle\\\\EventListener\\\\EntitySecurityMetadataConfigSubscriber');\n $instance->addSubscriberService('oro_security.listener.config_subscriber', 'Oro\\\\Bundle\\\\SecurityBundle\\\\EventListener\\\\ConfigSubscriber');\n $instance->addSubscriberService('akeneo_batch.logger_subscriber', 'Akeneo\\\\Bundle\\\\BatchBundle\\\\EventListener\\\\LoggerSubscriber');\n $instance->addSubscriberService('akeneo_batch.notification_subscriber', 'Akeneo\\\\Bundle\\\\BatchBundle\\\\EventListener\\\\NotificationSubscriber');\n $instance->addSubscriberService('akeneo_batch.set_job_execution_log_file_subscriber', 'Akeneo\\\\Bundle\\\\BatchBundle\\\\EventListener\\\\SetJobExecutionLogFileSubscriber');\n $instance->addSubscriberService('pim_user.event_subscriber.group', 'Pim\\\\Bundle\\\\UserBundle\\\\EventSubscriber\\\\GroupSubscriber');\n $instance->addSubscriberService('pim_notification.event_subscriber.job_execution_notifier', 'Pim\\\\Bundle\\\\NotificationBundle\\\\EventSubscriber\\\\JobExecutionNotifier');\n $instance->addSubscriberService('pim_catalog.event_subscriber.initialize_values', 'Pim\\\\Bundle\\\\CatalogBundle\\\\EventSubscriber\\\\InitializeValuesSubscriber');\n $instance->addSubscriberService('pim_catalog.event_subscriber.category.check_channels', 'Pim\\\\Bundle\\\\CatalogBundle\\\\EventSubscriber\\\\Category\\\\CheckChannelsOnDeletionSubscriber');\n $instance->addSubscriberService('pim_versioning.event_subscriber.addcontext', 'Pim\\\\Bundle\\\\VersioningBundle\\\\EventSubscriber\\\\AddContextSubscriber');\n $instance->addSubscriberService('pim_enrich.event_listener.request', 'Pim\\\\Bundle\\\\EnrichBundle\\\\EventListener\\\\RequestListener');\n $instance->addSubscriberService('pim_enrich.event_subscriber.translate_flash_messages', 'Pim\\\\Bundle\\\\EnrichBundle\\\\EventListener\\\\TranslateFlashMessagesSubscriber');\n $instance->addSubscriberService('pim_base_connector.event_listener.archivist', 'Pim\\\\Bundle\\\\BaseConnectorBundle\\\\EventListener\\\\JobExecutionArchivist');\n $instance->addSubscriberService('pim_base_connector.event_listener.invalid_items_collector', 'Pim\\\\Bundle\\\\BaseConnectorBundle\\\\EventListener\\\\InvalidItemsCollector');\n $instance->addSubscriberService('web_profiler.debug_toolbar', 'Symfony\\\\Bundle\\\\WebProfilerBundle\\\\EventListener\\\\WebDebugToolbarListener');\n\n return $instance;\n }", "title": "" }, { "docid": "2fea55a271a0c4ae4330c0b5da50cf02", "score": "0.5140859", "text": "protected function getVictoireSitemap_Export_HandlerService()\n {\n return $this->services['victoire_sitemap.export.handler'] = new \\Victoire\\Bundle\\SitemapBundle\\Domain\\Export\\SitemapExportHandler($this->get('doctrine.orm.default_entity_manager'), $this->get('victoire_page.page_helper'), $this->get('victoire_view_reference.repository'));\n }", "title": "" }, { "docid": "e020d8735f9df162816d344d1557e60e", "score": "0.5129506", "text": "protected function getPimCatalog_Query_Sorter_RegistryService()\n {\n $this->services['pim_catalog.query.sorter.registry'] = $instance = new \\Pim\\Bundle\\CatalogBundle\\Query\\Sorter\\SorterRegistry();\n\n $instance->register($this->get('pim_catalog.doctrine.query.sorter.completeness'));\n $instance->register($this->get('pim_catalog.doctrine.query.sorter.family'));\n $instance->register($this->get('pim_catalog.doctrine.query.sorter.in_group'));\n $instance->register($this->get('pim_catalog.doctrine.query.sorter.entity'));\n $instance->register($this->get('pim_catalog.doctrine.query.sorter.is_associated'));\n $instance->register($this->get('pim_catalog.doctrine.query.sorter.base'));\n\n return $instance;\n }", "title": "" }, { "docid": "18279d1eb96aaefffdabd2ccf8aa63d2", "score": "0.50517005", "text": "protected function getKernel_Listener_NavHistoryResponseService()\n {\n return $this->services['kernel.listener.nav_history_response'] = new \\Oro\\Bundle\\NavigationBundle\\Event\\ResponseHistoryListener($this->get('oro_navigation.item.factory'), $this->get('security.context'), $this->get('doctrine.orm.default_entity_manager'), $this->get('oro_navigation.title_service'));\n }", "title": "" }, { "docid": "4e6220a034595a8192a7827f73cb73c3", "score": "0.4988516", "text": "protected function getPimCatalog_Saver_CategoryService()\n {\n return $this->services['pim_catalog.saver.category'] = new \\Akeneo\\Bundle\\StorageUtilsBundle\\Doctrine\\Common\\Saver\\BaseSaver($this->get('doctrine.orm.default_entity_manager'), $this->get('pim_catalog.saver.base_options_resolver'), 'Pim\\\\Bundle\\\\CatalogBundle\\\\Model\\\\CategoryInterface');\n }", "title": "" }, { "docid": "5216a767207293a8e050804e2b75b17a", "score": "0.4978173", "text": "protected function getPimCatalog_EventSubscriber_LocalizableService()\n {\n return $this->services['pim_catalog.event_subscriber.localizable'] = new \\Pim\\Bundle\\CatalogBundle\\EventSubscriber\\LocalizableSubscriber($this->get('pim_catalog.context.catalog'));\n }", "title": "" }, { "docid": "966463435d44cf25a6b6c431703b7fa7", "score": "0.49738327", "text": "protected function getFileLocatorService()\n {\n return $this->services['file_locator'] = new \\Symfony\\Component\\HttpKernel\\Config\\FileLocator($this->get('kernel'), ($this->targetDirs[3].'/app/Resources'));\n }", "title": "" }, { "docid": "e9808bdf406b74daf971540d53d16e92", "score": "0.49584016", "text": "protected function getVictoireCore_MenuDispatcherService()\n {\n return $this->services['victoire_core.menu_dispatcher'] = new \\Victoire\\Bundle\\CoreBundle\\Listener\\MenuDispatcher($this->get('event_dispatcher'), $this->get('security.token_storage'), $this->get('security.authorization_checker'));\n }", "title": "" }, { "docid": "b08b1a341ce2e4b7b386fcdfcb901ce1", "score": "0.48954958", "text": "protected function getPimCatalog_EventSubscriber_ScopableService()\n {\n return $this->services['pim_catalog.event_subscriber.scopable'] = new \\Pim\\Bundle\\CatalogBundle\\EventSubscriber\\ScopableSubscriber($this->get('pim_catalog.context.catalog'));\n }", "title": "" }, { "docid": "34b2e0164eb597d9564a846de652a0c8", "score": "0.4888232", "text": "protected function getOroNavigation_Translation_ExtractorService()\n {\n return $this->services['oro_navigation.translation.extractor'] = new \\Oro\\Bundle\\NavigationBundle\\Title\\TranslationExtractor($this->get('oro_navigation.title_service'), $this->get('router'));\n }", "title": "" }, { "docid": "0d265f19d3f7752acb870a8d6ab9bf22", "score": "0.48838842", "text": "protected function getEventRepository() {\n\t\tif(is_null($this->eventRepository)) {\n\t\t\t$objectManager = t3lib_div::makeInstance('Tx_Extbase_Object_ObjectManager');\n\t\t\t$this->eventRepository = $objectManager->get('Tx_CzSimpleCal_Domain_Repository_EventRepository');\n\t\t}\n\t\treturn $this->eventRepository;\n\t}", "title": "" }, { "docid": "b90c2dce265b07d45cd1fc4a9091071e", "score": "0.48736137", "text": "protected function getKernel_Listener_HashnavResponseService()\n {\n return $this->services['kernel.listener.hashnav_response'] = new \\Oro\\Bundle\\NavigationBundle\\Event\\ResponseHashnavListener($this->get('security.context'), $this->get('templating'));\n }", "title": "" }, { "docid": "3524ac84c6eabef1e550dfba45d2200f", "score": "0.48610815", "text": "protected function getFileLocatorService()\n {\n return $this->services['file_locator'] = new \\Symfony\\Component\\HttpKernel\\Config\\FileLocator($this->get('kernel'), (dirname(dirname(__DIR__)).'/Resources'));\n }", "title": "" }, { "docid": "5ade3851c515d362bcd89e8874dc70ac", "score": "0.48383293", "text": "protected function getVictoireBlog_HierarchyTreeTypeService()\n {\n return $this->services['victoire_blog.hierarchy_tree_type'] = new \\Victoire\\Bundle\\BlogBundle\\Form\\HierarchyTreeType($this->get('property_accessor'));\n }", "title": "" }, { "docid": "82d2f0d53bff0a5c5a9cf1fa227d834e", "score": "0.48340568", "text": "protected function getPimCatalog_EventSubscriber_ResolveTargetRepositoryService()\n {\n $this->services['pim_catalog.event_subscriber.resolve_target_repository'] = $instance = new \\Akeneo\\Bundle\\StorageUtilsBundle\\EventSubscriber\\ResolveTargetRepositorySubscriber();\n\n $instance->addResolveTargetRepository('Oro\\\\Bundle\\\\UserBundle\\\\Entity\\\\Role', 'Pim\\\\Bundle\\\\UserBundle\\\\Entity\\\\Repository\\\\RoleRepository');\n $instance->addResolveTargetRepository('Oro\\\\Bundle\\\\UserBundle\\\\Entity\\\\Group', 'Pim\\\\Bundle\\\\UserBundle\\\\Entity\\\\Repository\\\\GroupRepository');\n $instance->addResolveTargetRepository('Pim\\\\Bundle\\\\NotificationBundle\\\\Entity\\\\UserNotification', 'Pim\\\\Bundle\\\\NotificationBundle\\\\Entity\\\\Repository\\\\UserNotificationRepository');\n $instance->addResolveTargetRepository('Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\AssociationType', 'Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\Repository\\\\AssociationTypeRepository');\n $instance->addResolveTargetRepository('Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\AttributeGroup', 'Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\Repository\\\\AttributeGroupRepository');\n $instance->addResolveTargetRepository('Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\AttributeOption', 'Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\Repository\\\\AttributeOptionRepository');\n $instance->addResolveTargetRepository('Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\Attribute', 'Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\Repository\\\\AttributeRepository');\n $instance->addResolveTargetRepository('Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\Category', 'Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\Repository\\\\CategoryRepository');\n $instance->addResolveTargetRepository('Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\Channel', 'Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\Repository\\\\ChannelRepository');\n $instance->addResolveTargetRepository('Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\Currency', 'Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\Repository\\\\CurrencyRepository');\n $instance->addResolveTargetRepository('Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\Family', 'Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\Repository\\\\FamilyRepository');\n $instance->addResolveTargetRepository('Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\Group', 'Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\Repository\\\\GroupRepository');\n $instance->addResolveTargetRepository('Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\GroupType', 'Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\Repository\\\\GroupTypeRepository');\n $instance->addResolveTargetRepository('Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\Locale', 'Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\Repository\\\\LocaleRepository');\n $instance->addResolveTargetRepository('Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\ProductTemplate', 'Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\Repository\\\\ProductTemplateRepository');\n $instance->addResolveTargetRepository('Pim\\\\Bundle\\\\DataGridBundle\\\\Entity\\\\DatagridView', 'Doctrine\\\\ORM\\\\EntityRepository');\n $instance->addResolveTargetRepository('Pim\\\\Bundle\\\\CatalogBundle\\\\Model\\\\Product', 'Pim\\\\Bundle\\\\CatalogBundle\\\\Doctrine\\\\ORM\\\\ProductRepository');\n $instance->addResolveTargetRepository('Pim\\\\Bundle\\\\CatalogBundle\\\\Model\\\\Association', 'Pim\\\\Bundle\\\\CatalogBundle\\\\Doctrine\\\\ORM\\\\AssociationRepository');\n $instance->addResolveTargetRepository('Akeneo\\\\Bundle\\\\BatchBundle\\\\Entity\\\\JobInstance', 'Pim\\\\Bundle\\\\ImportExportBundle\\\\Entity\\\\Repository\\\\JobInstanceRepository');\n $instance->addResolveTargetRepository('Akeneo\\\\Bundle\\\\BatchBundle\\\\Entity\\\\JobExecution', 'Pim\\\\Bundle\\\\ImportExportBundle\\\\Entity\\\\Repository\\\\JobExecutionRepository');\n $instance->addResolveTargetRepository('Pim\\\\Bundle\\\\VersioningBundle\\\\Model\\\\Version', 'Pim\\\\Bundle\\\\VersioningBundle\\\\Doctrine\\\\ORM\\\\VersionRepository');\n $instance->addResolveTargetRepository('Pim\\\\Bundle\\\\EnrichBundle\\\\Entity\\\\SequentialEdit', 'Pim\\\\Bundle\\\\EnrichBundle\\\\Entity\\\\Repository\\\\SequentialEditRepository');\n $instance->addResolveTargetRepository('Pim\\\\Bundle\\\\CommentBundle\\\\Entity\\\\Comment', 'Pim\\\\Bundle\\\\CommentBundle\\\\Repository\\\\CommentRepository');\n\n return $instance;\n }", "title": "" }, { "docid": "e7edc7507e5e0be2a2074655afc7b530", "score": "0.48076257", "text": "protected function getLiipImagine_Data_Loader_FilesystemService()\n {\n return $this->services['liip_imagine.data.loader.filesystem'] = new \\Liip\\ImagineBundle\\Imagine\\Data\\Loader\\FileSystemLoader($this->get('liip_imagine'), array(), (dirname(dirname(__DIR__)).'/../web'));\n }", "title": "" }, { "docid": "2694a1de7cc166dc77e799d5bfee782d", "score": "0.4800196", "text": "protected static function getInstance() {\n\n if (self::$oInstance == null) {\n\n self::$oInstance = new CalendarioRepository();\n }\n return self::$oInstance;\n }", "title": "" }, { "docid": "3341d6f57b22f60ac9ad4cd24b3b2600", "score": "0.47973308", "text": "private function getOrderRepositoryService()\n {\n if ($this->orderRepositoryService === null) {\n $this->orderRepositoryService = ServiceRegister::getService(OrderRepository::CLASS_NAME);\n }\n\n return $this->orderRepositoryService;\n }", "title": "" }, { "docid": "db03b51ba57c5ba32156a4480cc97507", "score": "0.4781303", "text": "protected function getVictoireBusinessPage_BusinessTemplateMenuListenerService()\n {\n return $this->services['victoire_business_page.business_template_menu_listener'] = new \\Victoire\\Bundle\\BusinessPageBundle\\Listener\\BusinessPageMenuListener($this->get('victoire_core.admin_menu_builder'));\n }", "title": "" }, { "docid": "0eddc091abe1e20fe9e190b4ad72879a", "score": "0.4762072", "text": "protected function getPimCatalog_Query_Filter_RegistryService()\n {\n $this->services['pim_catalog.query.filter.registry'] = $instance = new \\Pim\\Bundle\\CatalogBundle\\Query\\Filter\\FilterRegistry($this->get('pim_catalog.repository.attribute'));\n\n $instance->register($this->get('pim_catalog.doctrine.query.filter.category'));\n $instance->register($this->get('pim_catalog.doctrine.query.filter.boolean'));\n $instance->register($this->get('pim_catalog.doctrine.query.filter.completeness'));\n $instance->register($this->get('pim_catalog.doctrine.query.filter.date'));\n $instance->register($this->get('pim_catalog.doctrine.query.filter.metric'));\n $instance->register($this->get('pim_catalog.doctrine.query.filter.number'));\n $instance->register($this->get('pim_catalog.doctrine.query.filter.option'));\n $instance->register($this->get('pim_catalog.doctrine.query.filter.options'));\n $instance->register($this->get('pim_catalog.doctrine.query.filter.price'));\n $instance->register($this->get('pim_catalog.doctrine.query.filter.product_id'));\n $instance->register($this->get('pim_catalog.doctrine.query.filter.string'));\n $instance->register($this->get('pim_catalog.doctrine.query.filter.identifier'));\n $instance->register($this->get('pim_catalog.doctrine.query.filter.media'));\n $instance->register($this->get('pim_catalog.doctrine.query.filter.family'));\n $instance->register($this->get('pim_catalog.doctrine.query.filter.groups'));\n\n return $instance;\n }", "title": "" }, { "docid": "b476a47efa3b446e4168212ac6153e7d", "score": "0.4757694", "text": "protected function getMonolog_Logger_EventService()\n {\n $this->services['monolog.logger.event'] = $instance = new \\Symfony\\Bridge\\Monolog\\Logger('event');\n\n $instance->pushHandler($this->get('monolog.handler.firephp'));\n $instance->pushHandler($this->get('monolog.handler.main'));\n $instance->pushHandler($this->get('monolog.handler.debug'));\n\n return $instance;\n }", "title": "" }, { "docid": "a0d89b4e20dabaef756cb07a713cd887", "score": "0.47356278", "text": "protected function getRouterListenerService()\n {\n $this->services['router_listener'] = $instance = new \\Symfony\\Component\\HttpKernel\\EventListener\\RouterListener($this->get('router'), $this->get('router.request_context', ContainerInterface::NULL_ON_INVALID_REFERENCE), $this->get('monolog.logger.request', ContainerInterface::NULL_ON_INVALID_REFERENCE));\n\n $instance->setRequest($this->get('request', ContainerInterface::NULL_ON_INVALID_REFERENCE));\n\n return $instance;\n }", "title": "" }, { "docid": "e604c18d2c7c447c9b12e7fee9593333", "score": "0.47087103", "text": "public function getServiceLocator();", "title": "" }, { "docid": "19e40d42ba842fc36d69585f16736981", "score": "0.4703056", "text": "protected function getRouterListenerService()\n {\n return $this->services['router_listener'] = new \\Symfony\\Component\\HttpKernel\\EventListener\\RouterListener($this->get('router'), $this->get('request_stack'), ${($_ = isset($this->services['router.request_context']) ? $this->services['router.request_context'] : $this->getRouter_RequestContextService()) && false ?: '_'}, $this->get('monolog.logger.request', ContainerInterface::NULL_ON_INVALID_REFERENCE));\n }", "title": "" }, { "docid": "10e4691df4dc7465147f68e46fc095ed", "score": "0.46940112", "text": "public function getServiceLocator() \n { \n return $this->serviceLocator; \n }", "title": "" }, { "docid": "10e4691df4dc7465147f68e46fc095ed", "score": "0.46940112", "text": "public function getServiceLocator() \n { \n return $this->serviceLocator; \n }", "title": "" }, { "docid": "10e4691df4dc7465147f68e46fc095ed", "score": "0.46940112", "text": "public function getServiceLocator() \n { \n return $this->serviceLocator; \n }", "title": "" }, { "docid": "2ab36525bf750732756d0ff733cfd672", "score": "0.46725088", "text": "public function getServiceLocator() \r\n { \r\n return $this->serviceLocator; \r\n }", "title": "" }, { "docid": "e8f1ce4a095843cee2a54a1bb29abc50", "score": "0.46721685", "text": "protected function getPimEnrich_Form_View_ViewUpdater_RegistryService()\n {\n $this->services['pim_enrich.form.view.view_updater.registry'] = $instance = new \\Pim\\Bundle\\EnrichBundle\\Form\\View\\ViewUpdater\\ViewUpdaterRegistry();\n\n $instance->registerUpdater($this->get('pim_enrich.form.view.view_updater.variant'), 100);\n\n return $instance;\n }", "title": "" }, { "docid": "7130ee0c9febb6d6900e39fdcb5d00d8", "score": "0.4668194", "text": "protected function getVictoireViewReference_EventSubscriberService()\n {\n return $this->services['victoire_view_reference.event_subscriber'] = new \\Victoire\\Bundle\\ViewReferenceBundle\\EventSubscriber\\ViewReferenceSubscriber($this->get('event_dispatcher'));\n }", "title": "" }, { "docid": "6cc8695d87535fd8af00c841bcd55cbb", "score": "0.46639538", "text": "private function getServiceLocator()\n {\n return $this->serviceLocator;\n }", "title": "" }, { "docid": "6300541dbf38243e6b036aa6a6090cd7", "score": "0.466013", "text": "function &getDispatcher() {\n $dispatcher =& Registry::get('dispatcher', true, null);\n\n if (is_null($dispatcher)) {\n import('ikto.classes.core.ScienceJournalDispatcher');\n\n // Implicitly set dispatcher by ref in the registry\n $dispatcher = new ScienceJournalDispatcher();\n\n // Inject dependency\n $dispatcher->setApplication(PKPApplication::getApplication());\n\n // Inject router configuration\n $dispatcher->addRouterName('ikto.classes.core.ScienceJournalComponentRouter', ROUTE_COMPONENT);\n $dispatcher->addRouterName('ikto.classes.core.ScienceJournalPageRouter', ROUTE_PAGE);\n }\n\n return $dispatcher;\n }", "title": "" }, { "docid": "d5db568b6afbf0a9bd7da7f5260a8aeb", "score": "0.46583828", "text": "protected function getPimCatalog_Saver_GroupService()\n {\n return $this->services['pim_catalog.saver.group'] = new \\Pim\\Bundle\\CatalogBundle\\Doctrine\\Common\\Saver\\GroupSaver($this->get('doctrine.orm.default_entity_manager'), $this->get('pim_catalog.saver.product'), $this->get('pim_catalog.manager.product_template_media'), $this->get('pim_catalog.applier.product_template'), $this->get('pim_versioning.context.version'), $this->get('pim_catalog.saver.group_options_resolver'), 'Pim\\\\Bundle\\\\CatalogBundle\\\\Model\\\\Product');\n }", "title": "" }, { "docid": "01a357228185627ef9817739983cb236", "score": "0.46478724", "text": "protected function getKnpMenu_Voter_RouterService()\n {\n return $this->services['knp_menu.voter.router'] = new \\Knp\\Menu\\Matcher\\Voter\\RouteVoter();\n }", "title": "" }, { "docid": "8cf057649d5f72cff0d2d82a3b17dc8a", "score": "0.46234724", "text": "protected function getVictoireAnalytics_BrowserEvent_SubscriberService()\n {\n return $this->services['victoire_analytics.browser_event.subscriber'] = new \\Victoire\\Bundle\\AnalyticsBundle\\EventSubscriber\\BrowseEventSubscriber('Victoire\\\\Bundle\\\\UserBundle\\\\Entity\\\\User');\n }", "title": "" }, { "docid": "c14343e74ec93ee1c2807ec2aa3fee7b", "score": "0.46166477", "text": "public function getServiceLocator()\n {\n \treturn $this->serviceLocator;\n }", "title": "" }, { "docid": "c14343e74ec93ee1c2807ec2aa3fee7b", "score": "0.46166477", "text": "public function getServiceLocator()\n {\n \treturn $this->serviceLocator;\n }", "title": "" }, { "docid": "0fefb9573aca4ebd7147bd90ef6ed03b", "score": "0.4609327", "text": "public function getSearchService();", "title": "" }, { "docid": "266e9244301af63646cefd2fe492d49e", "score": "0.4603453", "text": "protected function getOroForm_Autocomplete_SearchRegistryService()\n {\n $this->services['oro_form.autocomplete.search_registry'] = $instance = new \\Oro\\Bundle\\FormBundle\\Autocomplete\\SearchRegistry();\n\n $instance->addSearchHandler('entity_select', $this->get('oro_entity.form.handler.entity_select'));\n $instance->addSearchHandler('users', $this->get('oro_user.autocomplete.user.search_handler'));\n\n return $instance;\n }", "title": "" }, { "docid": "4d72add5871f816b7031dbf618da3ec9", "score": "0.46007717", "text": "protected function getSecurity_RoleHierarchyService()\n {\n return $this->services['security.role_hierarchy'] = new \\Symfony\\Component\\Security\\Core\\Role\\RoleHierarchy(array());\n }", "title": "" }, { "docid": "b0574f5007b7151bc4afb83b48763c3c", "score": "0.45945403", "text": "protected function getLiipImagine_Cache_SignerService()\n {\n return $this->services['liip_imagine.cache.signer'] = new \\Liip\\ImagineBundle\\Imagine\\Cache\\Signer('0b1f529bfd1e2214cc16881ae978db041c8bee6f');\n }", "title": "" }, { "docid": "2ec4b7a6ce5272856d4ee9bb6a9d1c06", "score": "0.45929596", "text": "protected function getOroDataaudit_Loggable_LoggableManagerService()\n {\n return $this->services['oro_dataaudit.loggable.loggable_manager'] = new \\Oro\\Bundle\\DataAuditBundle\\Loggable\\LoggableManager('Oro\\\\Bundle\\\\DataAuditBundle\\\\Entity\\\\Audit', $this->get('oro_entity_config.provider.dataaudit'));\n }", "title": "" }, { "docid": "38563dc8d30f587b6bb63f2ef3d98a31", "score": "0.45924938", "text": "public function sitemap()\n {\n $mappy = new MappyService();\n return $mappy->construct();\n }", "title": "" }, { "docid": "5e5717d90f2da9aeccb90d401ad9ebc6", "score": "0.4581017", "text": "protected function getKnpMenu_Voter_RouterService()\n {\n return $this->services['knp_menu.voter.router'] = new \\Oro\\Bundle\\NavigationBundle\\Menu\\Matcher\\Voter\\RoutePatternVoter();\n }", "title": "" }, { "docid": "76de5fc0e599874e07f400d83ba9b3da", "score": "0.457621", "text": "public function getService()\r\n\t{\r\n\t\t$this->_service = $this->getClient()->objectStoreService('cloudFiles', $this->region);\r\n\t\treturn $this->_service;\r\n\t}", "title": "" }, { "docid": "e668f83ec4d9decf24fff558a27fb0d9", "score": "0.45724168", "text": "public function getServiceLocator()\n {\n if (!isset($this['pantono.service.locator'])) {\n $this['pantono.service.locator'] = new Locator($this);\n }\n return $this['pantono.service.locator'];\n }", "title": "" }, { "docid": "f769ca72c366900723a6c9d888f0fcf2", "score": "0.45689085", "text": "protected function getDebug_EventDispatcherService()\n {\n $this->services['debug.event_dispatcher'] = $instance = new \\Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher($this->get('event_dispatcher'), $this->get('debug.stopwatch'), $this->get('monolog.logger.event', ContainerInterface::NULL_ON_INVALID_REFERENCE));\n\n $instance->setProfiler($this->get('profiler', ContainerInterface::NULL_ON_INVALID_REFERENCE));\n\n return $instance;\n }", "title": "" }, { "docid": "067f0aa2a7bd015c581925a496a72456", "score": "0.4566996", "text": "protected function getVictoireCore_TemplateMenuListenerService()\n {\n return $this->services['victoire_core.template_menu_listener'] = new \\Victoire\\Bundle\\TemplateBundle\\Listener\\TemplateMenuListener($this->get('victoire_core.admin_menu_builder'));\n }", "title": "" }, { "docid": "7bc551622527caee0f28c7a80167380c", "score": "0.45655498", "text": "protected function getPimUser_EventSubscriber_GroupService()\n {\n return $this->services['pim_user.event_subscriber.group'] = new \\Pim\\Bundle\\UserBundle\\EventSubscriber\\GroupSubscriber();\n }", "title": "" }, { "docid": "561ee9d4624d3869116b8d65a96756a3", "score": "0.45512164", "text": "protected function getSecurity_RoleHierarchyService()\n {\n return $this->services['security.role_hierarchy'] = new \\Symfony\\Component\\Security\\Core\\Role\\RoleHierarchy(array('ROLE_VICTOIRE_DEVELOPER' => array(0 => 'ROLE_VICTOIRE', 1 => 'ROLE_VICTOIRE_BLOG', 2 => 'ROLE_VICTOIRE_LEFTNAVBAR', 3 => 'ROLE_VICTOIRE_BET', 4 => 'ROLE_VICTOIRE_PAGE_DEBUG', 5 => 'ROLE_VICTOIRE_STYLE'), 'BUSINESS_ENTITY_OWNER' => array()));\n }", "title": "" }, { "docid": "a0b04b07e0db3d22be04f448a6453c8e", "score": "0.45481983", "text": "protected function getStofDoctrineExtensions_EventListener_LocaleService()\n {\n return $this->services['stof_doctrine_extensions.event_listener.locale'] = new \\Pim\\Bundle\\EnrichBundle\\EventListener\\UserContextListener($this->get('security.context'), $this->get('pim_translation.listener.add_locale'), $this->get('pim_catalog.context.catalog'), $this->get('pim_user.context.user'));\n }", "title": "" }, { "docid": "e17011d372f81ae02bffbe9d640858cc", "score": "0.4548102", "text": "final public function getServiceLocator()\n\t{\n\t\tif ($this->serviceLocator === NULL) {\n\t\t\t$this->serviceLocator = $this->parent === NULL\n\t\t\t\t? Environment::getServiceLocator()\n\t\t\t\t: $this->parent->getServiceLocator();\n\t\t}\n\n\t\treturn $this->serviceLocator;\n\t}", "title": "" }, { "docid": "c141b11b33a29327ddd24b3c43dca783", "score": "0.4543677", "text": "protected function getKnpGaufrette_FilesystemMapService()\n {\n return $this->services['knp_gaufrette.filesystem_map'] = new \\Knp\\Bundle\\GaufretteBundle\\FilesystemMap(array('pim' => $this->get('pim_filesystem'), 'pim_archivist' => $this->get('pim_archivist_filesystem')));\n }", "title": "" }, { "docid": "5843673dadb77a2b4a9b2e6e42dda6d5", "score": "0.4536376", "text": "protected function getPimCatalog_Saver_ChannelService()\n {\n return $this->services['pim_catalog.saver.channel'] = new \\Pim\\Bundle\\CatalogBundle\\Doctrine\\Common\\Saver\\ChannelSaver($this->get('doctrine.orm.default_entity_manager'), $this->get('pim_catalog.manager.completeness'), $this->get('pim_catalog.saver.completeness_options_resolver'));\n }", "title": "" }, { "docid": "70593980c8f903cfa7582574a928ff30", "score": "0.4536317", "text": "public function getServiceLocator() {\n\n\t\treturn $this->serviceLocator;\n\t\n\t}", "title": "" }, { "docid": "70593980c8f903cfa7582574a928ff30", "score": "0.4536317", "text": "public function getServiceLocator() {\n\n\t\treturn $this->serviceLocator;\n\t\n\t}", "title": "" }, { "docid": "655ec45a2229ade0a90e3ecbb44419a9", "score": "0.45358247", "text": "protected function getVictoireCore_MediaMenuListenerService()\n {\n return $this->services['victoire_core.media_menu_listener'] = new \\Victoire\\Bundle\\MediaBundle\\EventListener\\MediaMenuListener($this->get('victoire_core.admin_menu_builder'));\n }", "title": "" }, { "docid": "581aaf16592b0b611c3479a033193f12", "score": "0.45326975", "text": "protected function getHttpKernelService()\n {\n return $this->services['http_kernel'] = new \\Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel($this->get('debug.event_dispatcher'), $this, $this->get('debug.controller_resolver'));\n }", "title": "" }, { "docid": "cdc2d8b313fc398c4d706565d8e91070", "score": "0.45146376", "text": "protected function getPimCatalog_Repository_CategoryService()\n {\n return $this->services['pim_catalog.repository.category'] = $this->get('doctrine.orm.default_entity_manager')->getRepository('Pim\\\\Bundle\\\\CatalogBundle\\\\Entity\\\\Category');\n }", "title": "" }, { "docid": "8b27582204cf4aa6be77af4ba33ec473", "score": "0.4513652", "text": "protected function getFilesystemService()\n {\n return $this->services['filesystem'] = new \\Symfony\\Component\\Filesystem\\Filesystem();\n }", "title": "" }, { "docid": "8b27582204cf4aa6be77af4ba33ec473", "score": "0.4513652", "text": "protected function getFilesystemService()\n {\n return $this->services['filesystem'] = new \\Symfony\\Component\\Filesystem\\Filesystem();\n }", "title": "" }, { "docid": "95aeac3ce56eef0af08729f46e3ae2d9", "score": "0.4509855", "text": "protected function getOroSecurity_Link_OwnershipTreeProviderService()\n {\n return $this->services['oro_security.link.ownership_tree_provider'] = new \\Oro\\Bundle\\EntityConfigBundle\\DependencyInjection\\Utils\\ServiceLink($this, 'oro_security.ownership_tree_provider', false);\n }", "title": "" }, { "docid": "0119de26662bb3e9c551eebb0053f483", "score": "0.45091382", "text": "protected function getVictoireWidgetMap_ChildrenResolverService()\n {\n return $this->services['victoire_widget_map.children_resolver'] = new \\Victoire\\Bundle\\WidgetMapBundle\\Resolver\\WidgetMapChildrenResolver($this->get('logger'));\n }", "title": "" }, { "docid": "55aa38eeafadc5fafed66c3445f16f3a", "score": "0.4505122", "text": "public function getServiceLocator()\n {\n return $this->serviceLocator;\n }", "title": "" }, { "docid": "55aa38eeafadc5fafed66c3445f16f3a", "score": "0.4505122", "text": "public function getServiceLocator()\n {\n return $this->serviceLocator;\n }", "title": "" }, { "docid": "55aa38eeafadc5fafed66c3445f16f3a", "score": "0.4505122", "text": "public function getServiceLocator()\n {\n return $this->serviceLocator;\n }", "title": "" }, { "docid": "55aa38eeafadc5fafed66c3445f16f3a", "score": "0.4505122", "text": "public function getServiceLocator()\n {\n return $this->serviceLocator;\n }", "title": "" }, { "docid": "55aa38eeafadc5fafed66c3445f16f3a", "score": "0.4505122", "text": "public function getServiceLocator()\n {\n return $this->serviceLocator;\n }", "title": "" }, { "docid": "55aa38eeafadc5fafed66c3445f16f3a", "score": "0.4505122", "text": "public function getServiceLocator()\n {\n return $this->serviceLocator;\n }", "title": "" }, { "docid": "f0fc448b6ec03a53eedf5729b96b2e25", "score": "0.45040914", "text": "protected function getKnpMenu_Listener_VotersService()\n {\n $this->services['knp_menu.listener.voters'] = $instance = new \\Knp\\Bundle\\MenuBundle\\EventListener\\VoterInitializerListener();\n\n $instance->addVoter($this->get('knp_menu.voter.router'));\n\n return $instance;\n }", "title": "" }, { "docid": "73b111d12ee3e91671cc4be993222acf", "score": "0.45016053", "text": "protected function getPimCatalog_Saver_FamilyService()\n {\n return $this->services['pim_catalog.saver.family'] = new \\Pim\\Bundle\\CatalogBundle\\Doctrine\\Common\\Saver\\FamilySaver($this->get('doctrine.orm.default_entity_manager'), $this->get('pim_catalog.manager.completeness'), $this->get('pim_catalog.saver.completeness_options_resolver'));\n }", "title": "" }, { "docid": "c069a33b0c7afc5e9b19f43bf30a1a74", "score": "0.44952992", "text": "protected function getOroUser_EntityWithImage_SubscriberService()\n {\n return $this->services['oro_user.entity_with_image.subscriber'] = new \\Oro\\Bundle\\UserBundle\\Entity\\EventListener\\UploadedImageSubscriber(dirname(dirname(__DIR__)));\n }", "title": "" }, { "docid": "858d6448a6584382916faf57db187788", "score": "0.44951138", "text": "static function getInstance() {\n if (is_null(self::$instance)) {\n self::$instance = new Registry();\n }\n\n return self::$instance;\n }", "title": "" }, { "docid": "097b2e4a7b7ef7e2e151921be065507c", "score": "0.44940335", "text": "public function serviceInstances() {\n return StatusBoard_SiteService::allForSite($this); \n }", "title": "" }, { "docid": "1e355212db51a130cbb77224045578ec", "score": "0.44916236", "text": "protected function getVictoireBusinessEntity_BusinessEntitySubscriberService()\n {\n return $this->services['victoire_business_entity.business_entity_subscriber'] = new \\Victoire\\Bundle\\BusinessEntityBundle\\EventSubscriber\\BusinessEntitySubscriber($this->get('victoire_business_page.business_page_builder'), $this->get('victoire_core.helper.business_entity_helper'), $this->get('victoire_business_page.business_page_helper'), $this->get('event_dispatcher'));\n }", "title": "" }, { "docid": "6ce6eb68ae6fa18266d53c4dcb3a4a4e", "score": "0.44901398", "text": "protected function getOroEntity_Listener_NavigationListenerService()\n {\n return $this->services['oro_entity.listener.navigation_listener'] = new \\Oro\\Bundle\\EntityBundle\\EventListener\\NavigationListener($this->get('oro_security.security_facade'), $this->get('doctrine.orm.default_entity_manager'), $this->get('oro_entity_config.provider.entity'), $this->get('oro_entity_config.provider.extend'));\n }", "title": "" }, { "docid": "0ed818b3b8748f54f23af78d5a96152f", "score": "0.4487848", "text": "protected function getOroDataaudit_Listener_KernelListenerService()\n {\n return $this->services['oro_dataaudit.listener.kernel_listener'] = new \\Oro\\Bundle\\DataAuditBundle\\EventListener\\KernelListener($this->get('oro_dataaudit.loggable.loggable_manager'), $this->get('security.context'));\n }", "title": "" }, { "docid": "9c8367308210886fee1e18e0a7cf69cf", "score": "0.4487807", "text": "protected function getOroDistribution_RoutingLoaderService()\n {\n return $this->services['oro_distribution.routing_loader'] = new \\Oro\\Bundle\\DistributionBundle\\Routing\\OroAutoLoader($this->get('file_locator'), $this->get('kernel'));\n }", "title": "" }, { "docid": "649d70f64827fa1e11f0597ff67547df", "score": "0.448437", "text": "public function getServiceLocator() {\n\t\treturn $this->serviceLocator;\n\t}", "title": "" }, { "docid": "1a2f41f0aaf1962c0f5220a0a39e09dc", "score": "0.44777814", "text": "public function getLocationService()\n {\n if (!$this->locationService) {\n $this->setLocationService(new LocationService($this));\n }\n\n return $this->locationService;\n }", "title": "" }, { "docid": "1a2f41f0aaf1962c0f5220a0a39e09dc", "score": "0.44777814", "text": "public function getLocationService()\n {\n if (!$this->locationService) {\n $this->setLocationService(new LocationService($this));\n }\n\n return $this->locationService;\n }", "title": "" }, { "docid": "fcf4b7e049fd5f0af446d108851494e4", "score": "0.44734454", "text": "protected function getTranslation_Dumper_XliffService()\n {\n return $this->services['translation.dumper.xliff'] = new \\Symfony\\Component\\Translation\\Dumper\\XliffFileDumper();\n }", "title": "" }, { "docid": "fcf4b7e049fd5f0af446d108851494e4", "score": "0.44734454", "text": "protected function getTranslation_Dumper_XliffService()\n {\n return $this->services['translation.dumper.xliff'] = new \\Symfony\\Component\\Translation\\Dumper\\XliffFileDumper();\n }", "title": "" }, { "docid": "ea6ce7abcf29bb48baa8203db74c0675", "score": "0.4471212", "text": "public static function getInstance()\n {\n if (self::$instance === null)\n {\n if (!self::$instance = sfContext::getInstance()->getRequest()->getParameter('IceBreadcrumbs'))\n {\n self::$instance = new IceBreadcrumbs();\n self::$instance->save();\n }\n }\n\n return self::$instance;\n }", "title": "" }, { "docid": "569cf98405ce6ce8aec67e675dcc4dcc", "score": "0.44683504", "text": "protected function getPimCatalog_Updater_Copier_RegistryService()\n {\n $a = $this->get('pim_catalog.builder.product');\n $b = $this->get('pim_catalog.validator.helper.attribute');\n $c = $this->get('pim_catalog.manager.media');\n $d = $this->get('pim_catalog.factory.media');\n\n $this->services['pim_catalog.updater.copier.registry'] = $instance = new \\Pim\\Bundle\\CatalogBundle\\Updater\\Copier\\CopierRegistry();\n\n $instance->register(new \\Pim\\Bundle\\CatalogBundle\\Updater\\Copier\\BaseValueCopier($a, $b, array(0 => 'pim_catalog_text'), array(0 => 'pim_catalog_text')));\n $instance->register(new \\Pim\\Bundle\\CatalogBundle\\Updater\\Copier\\MediaValueCopier($a, $b, $c, $d, array(0 => 'pim_catalog_image'), array(0 => 'pim_catalog_image')));\n $instance->register(new \\Pim\\Bundle\\CatalogBundle\\Updater\\Copier\\MediaValueCopier($a, $b, $c, $d, array(0 => 'pim_catalog_file'), array(0 => 'pim_catalog_file')));\n $instance->register(new \\Pim\\Bundle\\CatalogBundle\\Updater\\Copier\\BaseValueCopier($a, $b, array(0 => 'pim_catalog_textarea'), array(0 => 'pim_catalog_textarea')));\n $instance->register(new \\Pim\\Bundle\\CatalogBundle\\Updater\\Copier\\BaseValueCopier($a, $b, array(0 => 'pim_catalog_boolean'), array(0 => 'pim_catalog_boolean')));\n $instance->register(new \\Pim\\Bundle\\CatalogBundle\\Updater\\Copier\\BaseValueCopier($a, $b, array(0 => 'pim_catalog_number'), array(0 => 'pim_catalog_number')));\n $instance->register(new \\Pim\\Bundle\\CatalogBundle\\Updater\\Copier\\BaseValueCopier($a, $b, array(0 => 'pim_catalog_date'), array(0 => 'pim_catalog_date')));\n $instance->register(new \\Pim\\Bundle\\CatalogBundle\\Updater\\Copier\\MetricValueCopier($a, $b, $this->get('pim_catalog.factory.metric'), array(0 => 'pim_catalog_metric'), array(0 => 'pim_catalog_metric')));\n $instance->register(new \\Pim\\Bundle\\CatalogBundle\\Updater\\Copier\\BaseValueCopier($a, $b, array(0 => 'pim_catalog_simpleselect'), array(0 => 'pim_catalog_simpleselect')));\n $instance->register(new \\Pim\\Bundle\\CatalogBundle\\Updater\\Copier\\MultiSelectValueCopier($a, $b, array(0 => 'pim_catalog_multiselect'), array(0 => 'pim_catalog_multiselect')));\n $instance->register(new \\Pim\\Bundle\\CatalogBundle\\Updater\\Copier\\PriceCollectionValueCopier($a, $b, array(0 => 'pim_catalog_price_collection'), array(0 => 'pim_catalog_price_collection')));\n\n return $instance;\n }", "title": "" }, { "docid": "ec2fb97b7fd9dae9a22b1abcfb293dfc", "score": "0.44635513", "text": "protected function getPimCatalog_Remover_CategoryService()\n {\n return $this->services['pim_catalog.remover.category'] = new \\Pim\\Bundle\\CatalogBundle\\Doctrine\\Common\\Remover\\CategoryRemover($this->get('doctrine.orm.default_entity_manager'), $this->get('pim_catalog.remover.base_options_resolver'), $this->get('event_dispatcher'));\n }", "title": "" }, { "docid": "a7d27766792391c14ba164240c6ee75b", "score": "0.44582653", "text": "protected function getTroopersAlertifybundle_EventListenerService()\n {\n return $this->services['troopers_alertifybundle.event_listener'] = new \\Troopers\\AlertifyBundle\\EventListener\\AlertifyListener($this->get('session'), $this->get('troopers_alertifybundle.session_handler'));\n }", "title": "" }, { "docid": "21a0945705440e0c4f854515e8dc42fb", "score": "0.44551912", "text": "protected function getPage_SubscriberService()\n {\n return $this->services['page.subscriber'] = new \\Victoire\\Bundle\\PageBundle\\EventSubscriber\\PageSubscriber($this->get('router'), $this->get('victoire_page.user_callable'), 'Victoire\\\\Bundle\\\\UserBundle\\\\Entity\\\\User', $this->get('victoire_view_reference.builder'), $this->get('victoire_view_reference.repository'));\n }", "title": "" }, { "docid": "d89b76531610dddcfab503eb3eb96e07", "score": "0.4448817", "text": "protected function getOroLocale_LocaleListenerService()\n {\n $this->services['oro_locale.locale_listener'] = $instance = new \\Oro\\Bundle\\LocaleBundle\\EventListener\\LocaleListener($this->get('oro_locale.settings'), '2015-09-15T11:41:37+02:00');\n\n if ($this->has('request')) {\n $instance->setRequest($this->get('request', ContainerInterface::NULL_ON_INVALID_REFERENCE));\n }\n\n return $instance;\n }", "title": "" }, { "docid": "37d34e43a9c495a6eaf7560a9e25b6e0", "score": "0.4445087", "text": "protected function getOroMenu_CacheService()\n {\n $this->services['oro_menu.cache'] = $instance = new \\Doctrine\\Common\\Cache\\PhpFileCache(__DIR__);\n\n $instance->setNamespace('oro_menu.cache');\n\n return $instance;\n }", "title": "" }, { "docid": "6a862022c02aecbd4cd4630dd8d056fe", "score": "0.4442997", "text": "protected function getOroOrganization_BusinessUnit_ListenerService()\n {\n return $this->services['oro_organization.business_unit.listener'] = new \\Oro\\Bundle\\OrganizationBundle\\Event\\BusinessUnitListener();\n }", "title": "" } ]
f6067a9b9d01e24a780f8df3a7d6d83b
.method to expand short URL.
[ { "docid": "b11bda7a6ff2c69f95bc64906e147671", "score": "0.5902999", "text": "static function urlHandleDecode($shortUrl) {\n\t\t\n\t\t$params = array();\n\t\t$params['access_token'] = self::apiToken;\n\t\t$params['shortUrl'] = $shortUrl;\n\t\t$results = bitly_get('expand', $params, true);\n\n\t\treturn(json_encode($results));\n\t}", "title": "" } ]
[ { "docid": "af1ee665b5d2babc7585788114c72397", "score": "0.75536066", "text": "function expand_url( $short_url ) {\n\tif ( ! isset( $short_url ) ) {\n\t\treturn;\n\t}\n\t$short_url_headers = get_headers( $short_url, true );\n\t$site_url = 'https://www.sapiens.org'; // $site_url = get_site_url();\n\tif ( isset( $short_url_headers['Location'] ) ) {\n\t\t$location = $short_url_headers['Location'];\n\t} elseif ( isset( $short_url_headers['location'] ) ) {\n\t\t$location = $short_url_headers['location'];\n\t} else {\n\t\treturn $short_url;\n\t}\n\n\tif ( is_array( $location ) ) {\n\t\tforeach ( $location as $location ) {\n\t\t\tif ( ! isset( $url ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\treturn expand_url( $url );\n\t\t}\n\t} elseif ( is_string( $location ) ) {\n\t\tif ( strpos( $location, $site_url ) !== false ) {\n\t\t\t// Removes anchor tag.\n\t\t\t$anchorless_url = strtok( $location, '#' );\n\t\t\t$parameterless_url = strtok( $anchorless_url, '?' );\n\t\t\treturn $parameterless_url;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t} else {\n\t\treturn null;\n\t}\n}", "title": "" }, { "docid": "f0cb75290c0a2c3aadb86899ca841c0d", "score": "0.7174513", "text": "public function expand($url);", "title": "" }, { "docid": "d6459231b9d17d2616bb61a0e2f83160", "score": "0.6896695", "text": "public function shorten($url);", "title": "" }, { "docid": "12dd534e1cf7181150e5d86ca2b7fd2c", "score": "0.6660636", "text": "function shortlink($url){\n $link = parse_url($url);\n\n $base = $link['host'];\n if($link['port']) $base .= $base.':'.$link['port'];\n $long = $link['path'];\n if($link['query']) $long .= $link['query'];\n\n $name = shorten($base, $long, 55);\n\n return '<a href=\"'.hsc($url).'\" class=\"urlextern\">'.hsc($name).'</a>';\n }", "title": "" }, { "docid": "f221bd27484fc33cc8d19a3864138b0f", "score": "0.65971833", "text": "function getShortLink($short_url) {\n\treturn Request::getHttpHost() . '/s/' . $short_url;\n}", "title": "" }, { "docid": "64990ae41fe6e294ee10e08f8dd1f08f", "score": "0.6518696", "text": "public function shortenURL() {\n $this->JSONview();\n $view = $this->getActionView();\n $link = new Link(array(\n \"user_id\" => $this->user->id,\n \"short\" => \"\",\n \"item_id\" => RequestMethods::get(\"item\"),\n \"live\" => 1\n ));\n $link->save();\n \n $item = Item::first(array(\"id = ?\" => RequestMethods::get(\"item\")), array(\"url\", \"title\", \"image\", \"description\"));\n $m = Registry::get(\"MongoDB\")->urls;\n $doc = array(\n \"link_id\" => $link->id,\n \"item_id\" => RequestMethods::get(\"item\"),\n \"user_id\" => $this->user->id,\n \"url\" => $item->url,\n \"title\" => $item->title,\n \"image\" => $item->image,\n \"description\" => $item->description,\n \"created\" => date('Y-m-d', strtotime(\"now\"))\n );\n $m->insert($doc);\n\n $longURL = RequestMethods::get(\"domain\") . '/' . base64_encode($link->id);\n $googl = Registry::get(\"googl\");\n $object = $googl->shortenURL($longURL);\n\n $facebook = new \\Curl\\Curl();\n $facebook->post('https://graph.facebook.com/?id='. $longURL .'&scrape=true');\n $facebook->close();\n\n $link->short = $object->id;\n $link->save();\n\n $view->set(\"shortURL\", $object->id);\n }", "title": "" }, { "docid": "76364476049fa2c279e195e2e5e80840", "score": "0.6462967", "text": "public function expand_link(){\n\t\t//is the page expanded or hidden by default? Define array as opposite\n\t\t$array_name = Call::all_expanded()? 'hidden' : 'expanded' ;\n\t\t\n\t\t//create current url minus the 'expanded' or 'hidden' key\n\t\t$new_link = '?';\n\t\tif(isset($_GET)){\n\t\t\tforeach($_GET as $key=>$value){\n\t\t\t\tif($key!=$array_name){\n\t\t\t\t\t$new_link.= \"{$key}={$value}&\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//create an array of the current non-conformists\n\t\t$non_cons = array();\n\t\tif(isset($_GET[$array_name])){\n\t\t\t$non_cons= explode(',',$_GET[$array_name]);\n\t\t}\n\t\t\n\t\t//look for the id in the current non-cons\n\t\t//if found, let's subtract it\n\t\t$action = 'add';\n\t\tforeach($non_cons as $key=>$non_con){\n\t\t\tif($non_con == $this->id){\n\t\t\t\tunset($non_cons[$key]);\n\t\t\t\t$action = 'subtract';\n\t\t\t}\n\t\t}\n\t\t//if not found, let's add it\n\t\tif($action=='add'){\n\t\t\t$non_cons[]=$this->id;\n\t\t}\n\t\t//create the new link\n\t\tif(count($non_cons)>0){\n\t\t\t$new_link.=$array_name.'='.implode(',',$non_cons);\n\t\t}\n\t\t\n\t\t//decide whether to \"show\" or \"hide\"\n\t\tif($array_name=='hidden')$text = $action=='add' ? 'Hide' : 'Show';\n\t\tif($array_name=='expanded')$text = $action=='subtract' ? 'Hide' : 'Show';\n\t\t\n\t\t//remove '&' at end of string if there\n\t\t$new_link = rtrim($new_link,'&');\n\t\techo \"<a href=\\\"{$new_link}#call-{$this->id}\\\">{$text}</a>\";\n\t\treturn;\n\t}", "title": "" }, { "docid": "ad2aec430e348d08908c4d9c1aa7beee", "score": "0.6318017", "text": "public function shorten_url($url){\n \t\t$url = $this->get('url')?$this->get('url'):$url;\n\t\t$hootSuite = new ApiHootSuite($this->config->hootSuite_api_key);\n\t\t$shortUrl = $hootSuite->shorten($url);\n\t\tif($this->get('url')){\n\t\t\tif(strpos($this->get('url'),$this->config->http_address)!==False)\n\t\t\t\techo json_encode($shortUrl['results']['shortUrl']);\n\t\t}else\n\t\t\treturn $shortUrl['results']['shortUrl'];\n \n }", "title": "" }, { "docid": "db31e05ef58461318036a69c741c06eb", "score": "0.63010037", "text": "public function getShortUrl(): string {\n return '/' . $this->toUrl()->getInternalPath();\n }", "title": "" }, { "docid": "072e01edcf56d8b9b1548f02c1b92eb1", "score": "0.6287051", "text": "public function shortLink(){\n return config('app.url').'/'.$this->short;\n }", "title": "" }, { "docid": "0d44c5e6277b5c8f13cd7b659ccb31bf", "score": "0.62301964", "text": "function expand_url($url){\r\n //Get response headers\r\n $response = get_headers($url, 1);\r\n //Get the location property of the response header. If failure, return original url\r\n if (array_key_exists('Location', $response)) {\r\n $location = $response[\"Location\"];\r\n if (is_array($location)) {\r\n // t.co gives Location as an array\r\n return expand_url($location[count($location) - 1]);\r\n } else {\r\n return expand_url($location);\r\n }\r\n }\r\n return $url;\r\n}", "title": "" }, { "docid": "72b5bd23d1961983315a562593e4eec2", "score": "0.6207219", "text": "function shortenURL($url)\n\t{\n\t\tApp::import('Vendor', 'xhttp') ; \n\t\t$apiKey = Configure::read('API_KEY');\n\t\t\n\t\t$email = '[email protected]'; // GMail or Google Apps email address\n\t\t$password = 'g@@gltoken';\n\t\t$curlObj = curl_init();\n\t\t \n\t\tcurl_setopt($curlObj, CURLOPT_URL, 'https://www.google.com/accounts/ClientLogin?accountType=HOSTED_OR_GOOGLE&Email='.$email.'&Passwd='.$password.'&service=urlshortener&source=cheapstart');\n\t\tcurl_setopt($curlObj, CURLOPT_RETURNTRANSFER, 1);\n\t\tcurl_setopt($curlObj, CURLOPT_SSL_VERIFYPEER, 0);\n\t\tcurl_setopt($curlObj, CURLOPT_HEADER, 0);\n\t\tcurl_setopt($curlObj, CURLOPT_HTTPHEADER, array('Content-type:application/json'));\n\t\tcurl_setopt($curlObj, CURLOPT_POST, 0);\t\t \n\t\t$response = curl_exec($curlObj);\n\t\t\n\t\tpreg_match('/Auth=(.+)/', $response, $matches);\n\t\t$auth = $matches[1];\t\t \n\t\tcurl_close($curlObj);\n\t\t\n\t\t $data = array();\n\t\tif(isset($auth)) $data['headers']['Authorization'] = \"GoogleLogin auth=$auth\";\n\t\tif($apiKey) $data['get']['key'] = $apiKey;\n\n\t\t$data['headers']['Content-Type'] = \"application/json\";\n\t\t$data['post'] = array('longUrl' => $url,);\n\n\t\t$response = xhttp::fetch(\"https://www.googleapis.com/urlshortener/v1/url\", $data);\n\n\t\tif($response['successful']) {\n\t\t\t$var = json_decode($response['body'], true);\n\t\t\t$shortURL = $var['id'];\n\t\t\treturn $shortURL;\n\n\t\t} else {\n\t\t\treturn \"error\";\n\t\t}\n\t}", "title": "" }, { "docid": "046e1216166ec95f673cd46487d1b044", "score": "0.61993957", "text": "function url( $url = null, $full = false ) { \n if( isset( $this->params['prefix'] ) ) { \n $prefix = $this->params['prefix']; \n\n if( $this->params[$prefix] && ( !isset( $url[$prefix] ) || empty( $url[ $prefix ] ) ) ) { \n $url[$prefix] = false; \n } \n } \n\n return parent::url( $url, $full ); \n }", "title": "" }, { "docid": "6d8d9c01022ac11cf7c44b1876a523a1", "score": "0.6173571", "text": "public function shortenerLink(){\n try {\n $i = 0;\n do {\n $url = $this->createNewURL($i++);\n } while (!LinkBL::uniqueCheck($url));\n $data = [\n 'base_url' => $this->_baseUrl,\n 'url' => $url,\n 'link' => $this->data['uri'],\n 'registrant_ip' => $this->data['ip'],\n ];\n $result = LinkBL::createNew($data);\n $shrtLink['shortUrl'] = $result->base_url . $result->url;\n return $this->outputPacker(1, $shrtLink);\n } catch (\\Exception $e) {\n return $this->outputPacker($e->getMessage());\n }\n }", "title": "" }, { "docid": "f36464a4a8f0fa008ff9f814006c956e", "score": "0.60278684", "text": "public static function url($url = null, $full = true) {\n\t\treturn parent::url($url, $full);\n\t}", "title": "" }, { "docid": "be411c6020bb0275da37f75bf73b2500", "score": "0.6009218", "text": "function shortlink($url){ //Url verkürzen\n\t$ch = curl_init('http://api.bit.ly/v3/shorten?login='.BL_LOGIN.'&apiKey='.BL_API_KEY.'&uri='.urlencode($url).'&format=json');\n\tcurl_setopt($ch, CURLOPT_USERAGENT, \"Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)\");\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); \n\t$response=curl_exec($ch);\n\t$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n\tcurl_close($ch);\n\t$response=my_json_decode($response);\n\tif ($httpcode != 200) {\n\t\tlog_this(\"error: tried to shorten '$url'\", $reponse);\n\t\treturn(false);\n\t}else{\n\t\tlog_this(\"success: shortened '$url'\", $reponse);\n\t\treturn(stripslashes($response['data']['url']));\n\t}\n}", "title": "" }, { "docid": "d3e0bd9539dfd04d8990cea16ce9c151", "score": "0.60084033", "text": "public function actionShort()\n {\n $model = new Link();\n\n if (Yii::$app->request->isAjax && $model->load(Yii::$app->request->post()) && $model->save()) {\n $model->short_code = base_convert($model->id, 20, 36);\n $model->save(false);\n\n Yii::$app->response->format = Response::FORMAT_JSON;\n\n return [\n 'shortUrl' => Url::to(['site/go', 'shortCode' => $model->short_code], true),\n ];\n }\n\n throw new BadRequestHttpException('Bad parameters');\n }", "title": "" }, { "docid": "ca4541dce5caf61586dc935559e82159", "score": "0.59849286", "text": "public function build_shortlink( $url ) {\n\t\treturn add_query_arg( $this->collect_additional_shortlink_data(), $url );\n\t}", "title": "" }, { "docid": "b983905478ba72876d1112e42dfc1ebc", "score": "0.59785837", "text": "function shortURL($url)\n {\n $url = preg_replace('|' . $this->getWebsiteRegexp() . '|', '', $url);\n\n if (strpos($url, '%') !== false) {\n $url = urldecode($url);\n }\n\n return $url;\n }", "title": "" }, { "docid": "a7e4e8b7f31596b5080920176b6a21f6", "score": "0.595094", "text": "public function expandUrl($url) {\n\n $hash = $this->url->parseUrl($url);\n $expanded_url = $this->expandUrlByHash($hash);\n\n return $expanded_url;\n }", "title": "" }, { "docid": "e4ae383021e1e3cf2f840f9c5aae05cc", "score": "0.5911792", "text": "public function expand($shortUrl, $hash)\n\t{\n\t\t$shortUrl = urlencode($shortUrl);\n\n\t\tif ($shortUrl != \"\" || $hash != \"\")\n\t\t{\n\t\t\t$url = API_URL . \"/expand?access_token=\" . $this->getAccessToken();\n\t\t\tif ($shortUrl != \"\")\n\t\t\t\t$url .= \"&shortUrl=\" . $shortUrl;\n\t\t\tif ($hash != \"\")\n\t\t\t\t$url .= \"&hash=\" . $hash;\n\n\t\t\t$raw_result = $this->get_curl($url);\n\t $result = json_decode($raw_result);\n\n\t\t\t$output = array();\n\t\t if (is_object($result) && $result->{'status_code'} == 200)\n\t\t\t\tforeach ($result->{'data'}->{'expand'} as $obj)\n \t\t {\n\t\t\t\t\t$output['hash'] = $obj->{'user_hash'};\n\t \t $output['short_url'] = $obj->{'short_url'};\n\t \t$output['long_url'] = $obj->{'long_url'};\n\t\t $output['global_hash'] = $obj->{'global_hash'};\n\t\t\t\t}\n\t\t\telse $output['error'] = $raw_result;\n\n\t\t\treturn $output;\n\t\t}\n\t\treturn array(\"error\" => \"You need to specify at least one of shortUrl or hash params\");\n\t}", "title": "" }, { "docid": "0bbcbf22418605638ca28dcd5a398252", "score": "0.590981", "text": "function ShortUrl($matches) {\n\t $link_displayed = (strlen($matches[0]) > 50) ? substr( $matches[0], 0, 10).'…'.substr($matches[0], -10) : $matches[0];\n\t return '<a href=\"'.$matches[0].'\" title=\"Se rendre à « '.$matches[0].' »\" target=_blank>'.$link_displayed.'</a>';\n}", "title": "" }, { "docid": "79c29a929c6229eac4d49a24c435a37f", "score": "0.5908092", "text": "public function shorten($longurl, $keyword = '')\n\t{\t\n\t\t$url = $this->site_url.'/yourls-api.php';\n\t\t\n\t\t$fields = array(\n\t\t 'signature'=>$this->signature,\n\t\t 'action'=>'shorturl',\n\t\t 'url'=>urlencode($longurl),\n\t\t 'keyword'=>urlencode($keyword),\n\t\t 'format'=>'json'\n\t\t );\n\t\t$result = $this->api($url, $fields);\n\t\t$this->result = $result;\n\t\treturn $result['shorturl'];\n\t}", "title": "" }, { "docid": "08f8bb71fc65afc1bf092a08a94c46cc", "score": "0.5838687", "text": "public function getShortenedUrl()\n {\n return $this->shortenedUrl;\n }", "title": "" }, { "docid": "4587d429942b507b6813f8cf6ec2002e", "score": "0.58359975", "text": "public function getShortUrlAttribute()\n {\n return route('go', $this->id);\n }", "title": "" }, { "docid": "dea0113135cd04cb2934c45d474a57ff", "score": "0.5829372", "text": "public function test_normal_short_url()\n {\n $data = [\n 'url' => $this->faker->url,\n 'customUrl' => null,\n 'privateUrl' => 0,\n 'hideUrlStats' => 0,\n ];\n\n $response = $this->json('POST', '/url', $data);\n self::assertEquals(302, $response->status());\n\n $response->assertSessionHas('success');\n }", "title": "" }, { "docid": "74808eceda08da26367d91532e4cd49b", "score": "0.58238995", "text": "public function getShortUrlAttribute()\n {\n return url($this->short_code);\n }", "title": "" }, { "docid": "ae6244c472d0b81026c64232829a46f2", "score": "0.579926", "text": "public function setExpandUrl(Model $model, $flag = true) {\n\t\t$this->settings[$model->name]['expandUrl'] = $flag;\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "0a5b70959038cd54c0b3313179ae8567", "score": "0.57756907", "text": "public function show(ShortURL $shortURL)\n {\n //\n }", "title": "" }, { "docid": "f3d8dbb2185f52f0c4c7bd6d78591363", "score": "0.5746592", "text": "static function makeExpands($partial, $label)\n {\n // return if not string\n if (!is_string($label)) {\n return $label;\n }\n\n $url = '';\n if (strpos($partial, '/rest') === false) {\n $partial = '/rest' . $partial;\n }\n $bits = explode('/', $partial);\n\n if (count($bits) >= 3) {\n $url = $bits[2] . '.html/' . $bits[3];\n }\n\n if (isset($bits[4]) && $bits[4] == 'retrieve') {\n $url .= '/retrieve';\n }\n\n return link_to($url . '?expand=' . $label, $label);\n\n }", "title": "" }, { "docid": "d169df3e57483ac3fd9d588897719c61", "score": "0.57157767", "text": "public function shorten($longUrl)\n {\n\t$query = null;\n $this->_init();\n $path = '/shorten';\n\n\t$_params = $this->_params;\n\t$_params['longUrl'] = $longUrl;\n\n $response = $this->_get($path, $_params);\n\tif ($this->_format == 'json') {\n\t\treturn $response->getBody();\n\t} else {\n\t return new Zend_Rest_Client_Result($response->getBody());\n\t}\n }", "title": "" }, { "docid": "efaeb8ad2c8e97f04da3c1d9dbd847ac", "score": "0.57092065", "text": "function url($url = null, $full = false) {\r\n return Route::url($url, $full);\r\n\t}", "title": "" }, { "docid": "a551fb4bbd39c9713379d029903fa9a2", "score": "0.56773406", "text": "public function expandUrlByHash($hash) {\n $expanded_url = NULL;\n $bitly_url = \"http://api.bit.ly/expand?\" . \"version=\" . $this->api_version . \"&format=\" . $this->format . \"&hash=\" . $hash . \"&login=\" . $this->login . \"&apiKey=\" . $this->api_key;\n\n $content = file_get_contents($bitly_url);\n\n try {\n $expanded_url = $this->shorten->parseContent($content, $hash);\n } catch ( Exception $e ) {\n return \"Caught exception: \" . $e->getMessage();\n }\n\n return $expanded_url;\n }", "title": "" }, { "docid": "0d4012d0946537b482184c60b9c0749c", "score": "0.5665272", "text": "public function expand () {}", "title": "" }, { "docid": "985fe45d7cf6b5f11f6f1fd91aa197b5", "score": "0.56364244", "text": "public function testShorten()\n {\n $shortUrl = $this->shortener->shorten('https://google.com');\n\n $this->assertValidUrl($shortUrl);\n $this->assertTrue(Str::startsWith($shortUrl, 'https://ouo.io/'));\n }", "title": "" }, { "docid": "59d0dd788b8ae09b70f1332bc552aef4", "score": "0.56014574", "text": "public function postShorten()\n\t{\n\t\t// No big url\n\t\tif(!\\Input::has('bigurl'))\n\t\t\treturn \\Response::json(array('error' => array('code' => 'MISSING-PARAMETERS', 'http_code' => '400', 'message' => 'Bad Request')), 400);\n\n\t\t$bigURL = \\Input::get('bigurl');\n\t\t$user = $this->apiKey->user;\n\n\t\t// No user linked to API key - SHOULD NEVER HAPPEN\n\t\tif(!isset($user))\n\t\t\treturn \\Response::json(array('error' => array('code' => 'NOT-AUTH', 'http_code' => '403', 'message' => 'Forbidden: SHOULD NEVER HAPPEN!')), 403);\n\n\t\t// User has gone over quota so cant shorten\n\t\tif($user->quota_max != 0 && ($user->quota_used + 1) > $user->quota_max)\n\t\t\treturn \\Response::json(array('error' => array('code' => 'QUOTA-USED', 'http_code' => '400', 'message' => 'Bad Request')), 403);\n\n\t\tif (filter_var($bigURL, FILTER_VALIDATE_URL) === false)\n\t\t\treturn \\Response::json(array('error' => array('code' => 'URL-INVALID', 'http_code' => '400', 'message' => 'Bad Request')), 400);\n\n\t\t$dbLink = \\Link::where('destination', '=', $bigURL)->first();\n\t\tif (!isset($dbLink))\n\t\t{\n\t\t\t$dbLink = new \\Link;\n\t\t\t$dbLink->user_id = $user->id;\n\t\t\t$dbLink->code = $dbLink->generateCode();\n\t\t\t$dbLink->destination = $bigURL;\n\t\t\t$dbLink->clicks = \"0\";\n\t\t\t$dbLink->save();\n\n\t\t\t$user->quota_used += 1;\n\t\t\t$user->save();\n\t\t}\n\n\t\t$linkCode = $dbLink->code;\n\t\t$linkURL = \\Request::root().'/'.$linkCode;\n\t\treturn \\Response::json(array('ok' => array('code' => 'LINK-SHORTENED', 'http_code' => '200', 'message' => 'OK', 'data' => array('url' => $linkURL, 'url_code' => $linkCode))), 200);\n\t}", "title": "" }, { "docid": "1b6cc34a059a59aaa52c0b567c2e2578", "score": "0.55874896", "text": "public function show(ShortUrl $shortUrl)\n {\n //\n }", "title": "" }, { "docid": "09e7b31edd6c211aeb0a45b1fb37320d", "score": "0.55734766", "text": "function addYourls($url,$title='',$keyword='')\r\n{\r\n\t$format = 'xml';\t\t\t\t// output format: 'json', 'xml' or 'simple'\r\n\t// Init the CURL session\r\n\t$ch = curl_init();\r\n\tcurl_setopt($ch, CURLOPT_URL, YOURLS_URL);\r\n\tcurl_setopt($ch, CURLOPT_HEADER, 0); // No header in the result\r\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Return, do not echo result\r\n\tcurl_setopt($ch, CURLOPT_USERAGENT, 'PHP'); \r\n\tcurl_setopt($ch, CURLOPT_POST, 1); // This is a POST request\r\n\tcurl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\r\n\tcurl_setopt($ch, CURLOPT_POSTFIELDS, array( // Data to POST\r\n\t\t\t'url'\t\t=> $url,\r\n\t\t\t'keyword'\t=> $keyword,\r\n\t\t\t'title'\t\t=> $title,\r\n\t\t\t'format'\t=> $format,\r\n\t\t\t'action'\t=> 'shorturl',\r\n\t\t\t'username'\t=> YOURLS_USER,\r\n\t\t\t'password'\t=> YOURLS_PASS\r\n\t\t));\r\n\r\n\t// Fetch and return content\r\n\t$data = curl_exec($ch);\r\n\tcurl_close($ch);\r\n\t$pos = strpos($data, '<shorturl>');\t\t\t\t/*find shorturl*/\t\tif($pos === false) return false;\r\n\t$pos += strlen('<shorturl>');\t\t\t\t\t/*seek to shorturl*/\r\n\t$endpos = strpos($data, '</shorturl>', $pos);\t/*find end of shorturl*/if($endpos === false) return false;\r\n\t$length = $endpos - $pos;\t\t\t\t\t\t/*calc length of shorturl*/\r\n\t$shorturl = substr($data, $pos, $length);\t\t/*get shorturl*/\t\tif($shorturl === false) return false;\r\n\treturn $shorturl;\r\n}", "title": "" }, { "docid": "e73a34957d07550eadc7ea599bbf30a3", "score": "0.55250794", "text": "function bitly_url_shorten($long_url, $access_token, $domain)\r\n\t{\r\n\t\t$url = 'https://api-ssl.bitly.com/v3/shorten?access_token='.$access_token.'&longUrl='.urlencode($long_url).'&domain='.$domain;\r\n\t\ttry {\r\n\t\t\t$ch = curl_init($url);\r\n\t\t\tcurl_setopt($ch, CURLOPT_HEADER, 0);\r\n\t\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, 4);\r\n\t\t\tcurl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);\r\n\t\t\tcurl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\r\n\t\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\n\t\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\r\n\t\t\t$output = json_decode(curl_exec($ch));\r\n\t\t} catch (Exception $e) {\r\n\t\t\t\r\n\t\t}\r\n\t\tif(isset($output)){return $output->data->url;}\r\n\t}", "title": "" }, { "docid": "d5a5d8494c800c002b20d63dcd47d904", "score": "0.54955435", "text": "public function vgdShorten($url,$shorturl = null,$logstats = false)\n {\n //$shorturl - Your desired short URL (optional)\n //This function returns an array giving the results of your shortening\n //If successful $result[\"shortURL\"] will give your new shortened URL\n //If unsuccessful $result[\"errorMessage\"] will give an explanation of why\n //and $result[\"errorCode\"] will give a code indicating the type of error\n //See http://v.gd/apishorteningreference.php#errcodes for an explanation of what the\n //error codes mean. In addition to that list this function can return an\n //error code of -1 meaning there was an internal error e.g. if it failed\n //to fetch the API page.\n $url = urlencode($url);\n $basepath = \"http://v.gd/create.php?format=simple\";\n //if you want to use is.gd instead, just swap the above line for the commented out one below\n //$basepath = \"http://is.gd/create.php?format=simple\";\n $result = array();\n $result[\"errorCode\"] = -1;\n $result[\"shortURL\"] = null;\n $result[\"errorMessage\"] = null;\n //We need to set a context with ignore_errors on otherwise PHP doesn't fetch\n //page content for failure HTTP status codes (v.gd needs this to return error\n //messages when using simple format)\n $opts = array(\"http\" => array(\"ignore_errors\" => true));\n $context = stream_context_create($opts);\n if($shorturl)\n $path = $basepath.\"&shorturl=$shorturl&url=$url\";\n else\n $path = $basepath.\"&url=$url\";\n\n if($logstats)\n $path .= \"&logstats=1\";\n $response = @file_get_contents($path,false,$context);\n\n if(!isset($http_response_header))\n {\n $result[\"errorMessage\"] = \"Local error: Failed to fetch API page\";\n return($result);\n }\n //Hacky way of getting the HTTP status code from the response headers\n if (!preg_match(\"{[0-9]{3}}\",$http_response_header[0],$httpStatus))\n {\n $result[\"errorMessage\"] = \"Local error: Failed to extract HTTP status from result request\";\n return($result);\n }\n $errorCode = -1;\n switch($httpStatus[0])\n {\n case 200:\n $errorCode = 0;\n break;\n case 400:\n $errorCode = 1;\n break;\n case 406:\n $errorCode = 2;\n break;\n case 502:\n $errorCode = 3;\n break;\n case 503:\n $errorCode = 4;\n break;\n }\n if($errorCode==-1)\n {\n $result[\"errorMessage\"] = \"Local error: Unexpected response code received from server\";\n return($result);\n }\n $result[\"errorCode\"] = $errorCode;\n if($errorCode==0)\n $result[\"shortURL\"] = $response;\n else\n $result[\"errorMessage\"] = $response;\n return($result);\n }", "title": "" }, { "docid": "23cd2739db8aa55842982b5a0f22c890", "score": "0.5493135", "text": "protected function set_shorten_links() {\n\n\t\tglobal $socialflow;\n\t\t$shorten_links = absint( $socialflow->options->get( 'shorten_links' ) );\n\t\t$this->set( 'shorten_links', $shorten_links );\n\t}", "title": "" }, { "docid": "555be95b40958da13008a103010c6c33", "score": "0.54905766", "text": "static function get_shorturl( $number ) {\r\n\t\treturn base_convert( $number, 10, self::BASE );\r\n\t}", "title": "" }, { "docid": "48f8eec999d020352d0c63f5bd77fe04", "score": "0.54639685", "text": "public function r($short_url)\n\t{\t\t\n\t\tif($this->Link_model->IsLink($short_url))\n\t\t{\n\t\t\t$link = $this->Link_model->GetLink($short_url);\n\t\t\t$this->Link_model->IncrementClickCount($link->id);\n\t\t\tredirect($link->redirect_link);\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$data['error_message'] = \"your url doesn't seem valid, you might want to check it again: \" . $short_url;\n\t\t\t$this->load->view('header');\n\t\t\t$this->load->view('link_error', $data);\n\t\t\t$this->load->view('footer');\n\t\t}\n\t}", "title": "" }, { "docid": "59436635032932863168d46b9e823b66", "score": "0.5459296", "text": "public function createTinyUrl() { \n $fullUrl = $this->getUrl();\n \n $tinyurl = new Zend_Service_ShortUrl_TinyUrlCom();\n $short = $tinyurl->shorten($fullUrl);\n \n return $short; \n }", "title": "" }, { "docid": "df50bb71b7e987043f254867fa413bd6", "score": "0.5459051", "text": "public function fullUrl()\n {\n $query = $this->getQueryString();\n $question = $this->getBaseUrl().$this->getPathInfo() == '/' ? '/?' : '?';\n return $query ? $this->url().$question.$query : $this->url();\n }", "title": "" }, { "docid": "a79ac469513dc5dfa373c3f2f72ccd1a", "score": "0.5454087", "text": "function acortarUrl($url,$login,$apikey,$format = 'xml',$version = '2.0.1')\n{\n $uri = 'http://api.bit.ly/shorten?version='.$version.'&longUrl='.urlencode($url).'&login='.$login.'&apiKey='.$apikey.'&format='.$format;\n // cargamos el fichero xml de respuesta\n $xml = simplexml_load_file($uri);\n // devolvemos la variable con la url\n return $xml->results->nodeKeyVal->shortUrl;\n \n}", "title": "" }, { "docid": "52718e590005853a80550c425c4383a5", "score": "0.54371315", "text": "public function testGetShortUrl ()\n\t{\n\t\t$short_url = $this->ShortUrl->getShortUrl($this->url);\n\t\t$this->assertEquals('http://tinyurl.com/kotu', $short_url); // this should work for tinyurl.com\n\t\t$this->assertNotEquals($this->url, $short_url); // make sure we get back different url\n\t}", "title": "" }, { "docid": "7b4d5ceeb4944f00e8a3e9d32adba789", "score": "0.5403166", "text": "public function expand($params);", "title": "" }, { "docid": "1778dd395422bd56fd8b042692c63bf9", "score": "0.53986764", "text": "public function shortUrl($url, $length) {\n\t\t$strlen = strlen($url);\n\t\tif ($strlen > $length) {\n\t\t\t$min = floor($length / 2) - 3;\n\t\t\t$max = $strlen - $length + 3;\n\t\t\t$url = substr_replace($url, '...', $min, $max);\n\t\t}\n\t\treturn $url;\n\t}", "title": "" }, { "docid": "e111851194d776870aeaac1c97fec04d", "score": "0.538882", "text": "public function full_link()\n {\n return Pi_core::get_base_href() . $this->request_string;\n }", "title": "" }, { "docid": "fb7c525096683cf47b3510c849d60375", "score": "0.53852016", "text": "public static function shorten_url($url){\n\t\t\t$googl \t\t= new Googl();\n\t\t\t$shortened \t= $googl->shorten($url);\n\t\t\tunset($googl);\n\t\t\t\n\t\t\treturn $shortened;\n\t\t}", "title": "" }, { "docid": "0443fb014e636a085b94d1f452353718", "score": "0.5362734", "text": "public function testExpandWithValidApiResponse()\n {\n $response = $this->getBaseMockResponse();\n\n $apiRawResponse = <<<'JSON'\n{\n\"Code\": 0,\n\"ShortUrl\": \"https://dwz.cn/OErDnjcx\",\n\"LongUrl\": \"http://www.google.com/\",\n\"ErrMsg\": \"\"\n}\nJSON;\n\n $stream = $this->getBaseMockStream();\n $stream\n ->expects($this->once())\n ->method('getContents')\n ->will($this->returnValue($apiRawResponse));\n\n $response\n ->expects($this->once())\n ->method('getBody')\n ->will($this->returnValue($stream));\n\n $link = $this->getMockShortLink();\n $link\n ->expects($this->once())\n ->method('setLongUrl')\n ->with($this->equalTo('http://www.google.com/'));\n\n $this->mockClient($response, 'post');\n\n $this->provider->expand($link);\n }", "title": "" }, { "docid": "925f6e7b42627c35215543c0ee915e88", "score": "0.53583616", "text": "public function __toString() {\r\n return !empty($this->url_short) ? $this->url_short : \"\";\r\n }", "title": "" }, { "docid": "77a1a3769254f414c6afa63d54138a7c", "score": "0.5353729", "text": "public function linkURL();", "title": "" }, { "docid": "abb19f113eb8b35dfad21abdc69c659f", "score": "0.5353172", "text": "public function shorten(LinkInterface $link);", "title": "" }, { "docid": "9ef185d03fdbcc4a6e5bac9dbe3f58c9", "score": "0.53515244", "text": "public function url();", "title": "" }, { "docid": "9ef185d03fdbcc4a6e5bac9dbe3f58c9", "score": "0.53515244", "text": "public function url();", "title": "" }, { "docid": "79d6a39f9ff3f7046b8c1d8dee195ee2", "score": "0.5347388", "text": "private function legacy_shorten($key){\n\n\t\t// Get User\n\t\tif(!$user = $this->db->get(\"user\",[\"api\" => \"?\"], [\"limit\" => 1], [$key])) return $this->error(\"002\");\n\n\t\t$this->key = $key;\n\t\t$this->user = $user;\n\n\t\t$this->user->plan = $this->db->get(\"plans\", [\"id\" => $user->planid], [\"limit\" => 1]);\n\n\t\tif($this->isTeam($user) && !$this->teamPermission(\"api.create\", $user)){\n\t\t\t// Run Error\n\t\t\treturn $this->error(\"000\");\t\t\t\n\t\t}\n\n\t\tif(!$user->active || $user->banned) return $this->error(\"009\");\n\n\t\tif(!isset($_GET[\"url\"]) || empty($_GET[\"url\"])) return $this->error(\"004\");\n\n\t\tinclude(ROOT.\"/includes/Short.class.php\");\n\t\t$short = new Short($this->db,$this->config);\n\n\t\t$array = [];\n\n\t\t$array[\"private\"] = TRUE;\n\n\t\t$array[\"url\"]\t= Main::clean($_GET[\"url\"],3,TRUE);\n\n\t\t$array[\"type\"] = \"\";\n\t\t\n\t\tif(isset($_GET[\"custom\"]) && !empty($_GET[\"custom\"])) $array[\"custom\"] = Main::slug($_GET[\"custom\"]);\n\n\t\tif(isset($_GET[\"pass\"]) && !empty($_GET[\"pass\"])) $array[\"password\"] = Main::clean($_GET[\"pass\"], 3, TRUE);\n\n\t\tif(isset($_GET[\"domain\"]) && !empty($_GET[\"domain\"])) $array[\"domain\"] = Main::clean($_GET[\"domain\"], 3, TRUE);\n\n\t\tif(isset($data->type)){\n\n\t\t\tif($this->user->pro) {\n\t\t\t\tif(!in_array($data->type, [\"direct\", \"frame\", \"splash\",\"overlay\"])) return $this->error(\"009\");\n\t\t\t\t$array[\"type\"] = Main::clean($data->type);\n\n\t\t\t}else{\n\t\t\t\tif(!in_array($data->type, [\"direct\", \"frame\", \"splash\"])) return $this->error(\"009\");\n\t\t\t\tif(!$this->config[\"pro\"]) $array[\"type\"] = Main::clean($data->type);\n\t\t\t}\t\t\t\n\n\t\t}\n\n\t\t$result = $short->add($array, [\"noreturn\" => TRUE, \"api\" => TRUE, \"user\" => $this->user]);\n\n\t\treturn $this->build($result,isset($result[\"short\"]) ? $result[\"short\"] :\"\");\n\t}", "title": "" }, { "docid": "1083808ab1ce70bd6cd5bc4e6948b0aa", "score": "0.5335486", "text": "static function urlHandleEncode($longUrl) {\n\t\t\n\t\t$params = array();\n\t\t$params['access_token'] = self::apiToken;\n\t\t$params['longUrl'] = $longUrl;\n\t\t$params['domain'] = 'j.mp';\n\t\t$results = bitly_get('shorten', $params);\n\n\t\treturn json_encode($results);\n\t\t\n\t}", "title": "" }, { "docid": "4e44e64521cfde45e8982b69321e7837", "score": "0.5330062", "text": "function url($concat) {\n return $concat;\n}", "title": "" }, { "docid": "101352249b7bbdbd9e76a03581221c45", "score": "0.53253824", "text": "function wpbitly_generate_shortlink( $post_id )\r\n{\r\n\tglobal $wpbitly;\r\n\r\n\tif ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )\r\n\t\treturn false;\r\n\r\n\t// If this information hasn't been filled out, there's no need to go any further.\r\n\tif ( empty( $wpbitly->options['bitly_username'] ) || empty( $wpbitly->options['bitly_api_key'] ) || get_option( 'wpbitly_invalid' ) )\r\n\t\treturn false;\r\n\r\n\r\n\t// Do we need to generate a shortlink for this post? (save_post is fired when revisions, auto-drafts, et al are saved)\r\n\tif ( $parent = wp_is_post_revision( $post_id ) )\r\n\t{\r\n\t\t$post_id = $parent;\r\n\t}\r\n\r\n\t$post = get_post( $post_id );\r\n\r\n\tif ( 'publish' != $post->post_status && 'future' != $post->post_status )\r\n\t\treturn false;\r\n\r\n\r\n\t// Link to be generated\r\n\t$permalink = get_permalink( $post_id );\r\n\t$wpbitly_link = get_post_meta( $post_id, '_wpbitly', true );\r\n\r\n\r\n\tif ( $wpbitly_link != false )\r\n\t{\r\n\t\t$url = sprintf( $wpbitly->url['expand'], $wpbitly_link, $wpbitly->options['bitly_username'], $wpbitly->options['bitly_api_key'] );\r\n\t\t$bitly_response = wpbitly_curl( $url );\r\n\r\n\t\t// If we have a shortlink for this post already, we've sent it to the Bit.ly expand API to verify that it will actually forward to this posts permalink\r\n\t\tif ( is_array( $bitly_response ) && $bitly_response['status_code'] == 200 && $bitly_response['data']['expand'][0]['long_url'] == $permalink )\r\n\t\t\treturn false;\r\n\r\n\t\t// The expanded URLs don't match, so we can delete and regenerate\r\n\t\tdelete_post_meta( $post_id, '_wpbitly' );\r\n\t}\r\n\r\n\t// Submit to Bit.ly API and look for a response\r\n\t$url = sprintf( $wpbitly->url['shorten'], $wpbitly->options['bitly_username'], $wpbitly->options['bitly_api_key'], urlencode( $permalink ) );\r\n\t$bitly_response = wpbitly_curl( $url );\r\n\r\n\t// Success?\r\n\tif ( is_array( $bitly_response ) && $bitly_response['status_code'] == 200 )\r\n\t{\r\n\t\tupdate_post_meta( $post_id, '_wpbitly', $bitly_response['data']['url'] );\r\n\t}\r\n\r\n}", "title": "" }, { "docid": "fbb76cd80825cb66db41edede67925f2", "score": "0.53231776", "text": "public function shorten($url): Url\n {\n $url = $this->urlRepository->create([\n 'url' => $url,\n ]);\n\n $url->short_path = $this->shortener->generateShortPath($url->id);\n\n $url = $this->urlRepository->update($url->id, $url->toArray());\n\n return $url;\n }", "title": "" }, { "docid": "e2e3d2e142d6f1b1c3e683d966398f6f", "score": "0.53207463", "text": "private function getMockShortLink()\n {\n $link = $this->getBaseMockLink();\n\n $link\n ->expects($this->once())\n ->method('getShortUrl')\n ->will($this->returnValue('https://dwz.cn/OErDnjcx'));\n\n return $link;\n }", "title": "" }, { "docid": "655ec587f27154c208388419675b9137", "score": "0.5314943", "text": "function http_build_url ($url = null, $parts = null, $flags = null, array &$new_url = null ) {}", "title": "" }, { "docid": "950ab80f22a1630e284a9d93ed9dc388", "score": "0.5313008", "text": "public function short_url($text){\n\t\t$urlRegex = \"((?:https?|ftp)\\:\\/\\/)\"; /// Scheme\n\t\t$urlRegex .= \"([a-zA-Z0-9+!*(),;?&=\\$_.-]+(\\:[a-zA-Z0-9+!*(),;?&=\\$_.-]+)?@)?\"; /// User and Password\n\t\t$urlRegex .= \"([a-zA-Z0-9.-]*)\\.([a-zA-Z]{2,3})\"; /// Domain or IP\n\t\t$urlRegex .= \"(\\:[0-9]{2,5})?\"; /// Port\n\t\t$urlRegex .= \"(\\/([a-zA-Z0-9+\\$_-]\\.?)+)*\\/?\"; /// Path\n\t\t$urlRegex .= \"(\\?[a-zA-Z+&\\$_.-][a-zA-Z0-9;:@&%=+\\/\\$_.-]*)?\"; /// GET Query\n\t\t$urlRegex .= \"(#[a-zA-Z_.-][a-zA-Z0-9+\\$_.-]*)?\"; /// Anchor\n\t\t\n\t\t$linkRegex = '/\"(.+)\"\\:('. $urlRegex . ')/ms';\n\t\t\n\t\t$fullUrlRegex = \"/^\"; /// Start Regex (PHP is stupid)\n\t\t$fullUrlRegex .= \"(\"; /// Catch whole url except garbage\n\t\t$fullUrlRegex .= $urlRegex;\n\t\t$fullUrlRegex .= \").*\"; /// End of catching whole url\n\t\t$fullUrlRegex .= \"$/\"; /// End Regex\n\t\t$fullUrlRegex .= \"m\"; /// Allow multi line match (and ^ and & )\n\t\t$fullUrlRegex .= \"s\"; /// Don't stop when finding an \\n.\n\n\t\t$links = array();\n\t\t$urls = array();\n\t\t \n\t\tif(!$this->is_url_possible($text)){\n /// Do nothing, because the text is too small for urls.\n }else{\n $allTheWords = preg_split('/\\s|(\\<br ?\\/\\>)/', $text);\n\n foreach($allTheWords as $word){\n if($this->is_url_possible($word)){\n $matches = array();\n $ambigiousResultFullUrl = preg_match($fullUrlRegex, $word, $matches);\n if($ambigiousResultFullUrl === TRUE || $ambigiousResultFullUrl === 1){\n $embeddedLinks[] = $word;\n }\n\n $ambigiousResultLink = preg_match($linkRegex, $word, $matches);\n if($ambigiousResultLink === TRUE || $ambigiousResultLink === 1){\n $description = $matches[1];\n $url = $matches[2];\n $urls[$word] = '<a href=\"' . $url . '\" rel=\"nofollow\">' . $description . '</a>';\n }\n }\n }\n\n \n //Shorten each found embedded url longer than 60 chars with ellipses.\n //Otherwise, show them completely.\n\t\t\t//Added a check to see if embeddedLinks actually contained data\n\t\t\tif ($embeddedLinks){\n\t foreach( $embeddedLinks as $url ){\n\t $linkLength = strlen( $url );\n\t\n\t if($linkLength > 60){\n\t $urlFirstPart = substr( $url, 0, 25 );\n\t $urlSecondPart = substr( $url, -25, $linkLength );\n\t $displayUrl = '<a href=\"' . $url . '\" rel=\"nofollow\">' . $urlFirstPart . '...' . $urlSecondPart . '</a>';\n\t }else{\n\t $displayUrl = '<a href=\"' . $url . '\" rel=\"nofollow\">' . $url . '</a>';\n\t }\n\t $urls[$url] = $displayUrl;\n\t }\n\t\n\n\t //Replace each embedded url with its displayUrl:\n\t foreach($urls as $url => $displayUrl){\n\t $text = str_replace($url, $displayUrl, $text);\n\t }\n\t\t\t}\n }\n return $text;\n\t}", "title": "" }, { "docid": "0ddd62dfff72c6dfa87edd1b4e94f538", "score": "0.53109336", "text": "public static function shortenUrl(?string $url, string $login, string $key): string\n {\n if ($url_short = @file_get_contents(\n 'http://api.bit.ly/v3/shorten' .\n \"?login=$login\" .\n \"&apiKey=$key\" .\n \"&uri=$url\" .\n '&format=txt'\n )) {\n return urlencode($url_short);\n } else {\n return $url ?: '';\n }\n }", "title": "" }, { "docid": "67a7b00642747059a1eabea4c5692290", "score": "0.5299928", "text": "public function prepareUrl() : string;", "title": "" }, { "docid": "384695639ac01711921a9bef2321b89b", "score": "0.52962554", "text": "protected static function getFacadeAccessor()\r\n {\r\n return 'shorturl';\r\n }", "title": "" }, { "docid": "f1bb534f88bb5cbee5526c18a8c4091c", "score": "0.52739143", "text": "public function edit(ShortUrl $shortUrl)\n {\n //\n }", "title": "" }, { "docid": "7dcbe33160c138811e9fc29df0e9c2ad", "score": "0.5270342", "text": "protected function getMethodFullUrl($method)\n {\n return $this->nodeBaseUrl . $this->nodeJsServerBase . '/' . trim($method, '/');\n }", "title": "" }, { "docid": "2e56db95e1b440c71c7e5a0dca6a8483", "score": "0.52696", "text": "function my_theme_cpt_shortlinks( $shortlink, $id, $context, $allow_slugs=true ) {\n\t\t/**\n\t\t * If query is the context, we probably shouldn't do anything\n\t\t */\n\t\tif( 'query' == $context )\n\t\t\treturn $shortlink;\n\n\t\t$post = get_post( $id );\n\t\t$post_id = $post->ID;\n\n\t\t/**\n\t\t * If this is a standard post, return the shortlink that was already built\n\t\t */\n\t\tif( 'post' == $post->post_type )\n\t\t\treturn $shortlink;\n\n\t\t/**\n\t\t * Retrieve the array of publicly_queryable, non-built-in post types\n\t\t */\n\t\t$post_types = get_post_types( array( '_builtin' => false, 'publicly_queryable' => true ) );\n\t\tif( in_array( $post->post_type, $post_types ) || 'page' == $post->post_type )\n\t\t\t$shortlink = home_url('?p=' . $post->ID);\n\n\t\treturn $shortlink;\n\t}", "title": "" }, { "docid": "1a100924a3eca3888a7e1f0441a0cfd4", "score": "0.52504516", "text": "function encodeShortUrl($id) {\n return $this->converter->convertToId($id);\n }", "title": "" }, { "docid": "07fbbf23a24f4a77d77f7a98c03d4518", "score": "0.52452993", "text": "function fullURL($url, $urlencode = true)\n {\n $url = $this->shortURL($url);\n\n $protocol = '';\n if (preg_match('@^(https?|file|ftp)://@', $url, $matches)) {\n $protocol = $matches[0];\n $url = preg_replace('@^(https?|file|ftp)://@', '', $url);\n }\n\n if ($urlencode) {\n list($url, $query) = explode('?', $url . '?');\n $url_parts = explode('/', $url);\n $new_url = [];\n foreach ($url_parts as $part) {\n $new_url[] = urlencode($part);\n }\n $url = $protocol . implode('/', $new_url);\n if ($query) {\n $query = urlencode($query);\n $query = preg_replace('|%3d|i', '=', $query);\n $query = preg_replace('|%26|i', '&', $query);\n $url .= '?' . $query;\n }\n }\n\n if (!preg_match('@^(https?|file|ftp)://@', $url)) {\n $url = $this->identity->getMirror() . $url;\n }\n\n return $url;\n }", "title": "" }, { "docid": "57b2f5bca1ad16b6c99438a80ced90fe", "score": "0.52417845", "text": "public function handleShortcode( $shortCode )\n {\n\t\t$url=Url::where('short_url',$shortCode)->get();\t\t\n if (count($url)>0) {\n return Redirect::to($url[0]['original']['long_url'], 302 );\n } else {\n\t\t\tSession::flash('message', 'This Short Url Is Not Valid!');\n\t\t\tSession::flash('alert-class', 'alert-danger'); \n\t\t\treturn Redirect::to('urls');\t\t\n }\n }", "title": "" }, { "docid": "f04d11650a6f361e2f8b54cae47f0757", "score": "0.523148", "text": "public function testExpandThrowsExceptionIfApiResponseHasNoLongUrl()\n {\n $this->expectException(InvalidApiResponseException::class);\n $this->expectExceptionMessage('Baidu returned code error message \"-2: short url dose not exist');\n\n $this->mockClient($this->getMockResponseWithNoLongUrl(), 'post');\n\n $this->provider->expand($this->getBaseMockLink());\n }", "title": "" }, { "docid": "3ed36d79bad7e6699200b74be2fd19bf", "score": "0.52300775", "text": "public function expand(LinkInterface $link);", "title": "" }, { "docid": "a62ec4ebc7c300d4c687f1c990c547df", "score": "0.522391", "text": "private function prepareHttpMethod($method){\n $trimmedMethod = trim($method);\n $upperMethod = strtoupper($trimmedMethod);\n return rawurlencode($method);\n }", "title": "" }, { "docid": "0fb874054b540466f56a0165344fe061", "score": "0.52232766", "text": "protected abstract function apiUrl();", "title": "" }, { "docid": "7d6249da024c7ae0d0f495da727fee8c", "score": "0.5205924", "text": "public function createShortLink($fullUrl) {\n $this->openConnection();\n $shortLink = R::dispense('sllink');\n $shortLink->Url = $fullUrl;\n $shortLink->HitCount = 0;\n $shortLink->CreatedOn = new \\DateTime();\n $id = R::store($shortLink);\n \n $this->closeConnection();\n $coder = new CodeConverter();\n return $coder->encode($id);\n }", "title": "" }, { "docid": "78d3e0756d77b237cbe1dd9c79831420", "score": "0.51720744", "text": "public function testShortenWillReturnSameUrl($length)\n {\n $longUrl = 'http://example.com/url';\n $shortener = new BaseShortener();\n $shortener->setShortLength($length);\n\n $first = $shortener->shorten($longUrl);\n\n $this->assertEquals($first, $shortener->shorten($longUrl));\n }", "title": "" }, { "docid": "15c45a98e392e0a4558131c69b1884ff", "score": "0.5162172", "text": "public function blockshortenedurl($skey)\r\n\t{\r\n\t\t$dbobj=new ta_dboperations();\r\n\t\tif($dbobj->dbupdate(\"UPDATE \".tbl_shorturldb::tblname.\" SET \".tbl_shorturldb::col_linkflag.\"='3',\".tbl_shorturldb::col_nooflinkrep.\"=\".tbl_shorturldb::col_nooflinkrep.\"+1 WHERE \".tbl_shorturldb::col_linkkey.\"='$skey'\",tbl_shorturldb::dbname)==SUCCESS)\r\n\t\t{\r\n\t\t\treturn SUCCESS;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn FAILURE;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ccd0bb019881f895e080dc916ac6569a", "score": "0.5158785", "text": "function wpbitly_get_shortlink( $shortlink, $id, $context )\r\n{\r\n\r\n\t// Look for the post ID passed by wp_get_shortlink() first\r\n\tif ( empty( $id ) )\r\n\t{\r\n\t\tglobal $post;\r\n\t\t$id = ( isset( $post ) ? $post->ID : null );\r\n\t}\r\n\r\n\t// Fall back in case we still don't have a post ID\r\n\tif ( empty( $id ) )\r\n\t{\r\n\t\t// Maybe we got passed a shortlink already? Better to return something than nothing.\r\n\t\t// Some wacky test cases might help us polish this up.\r\n\t\tif ( ! empty( $shortlink ) )\r\n\t\t\treturn $shortlink;\r\n\r\n\t\treturn false;\r\n\r\n\t}\r\n\r\n\t$shortlink = get_post_meta( $id, '_wpbitly', true );\r\n\r\n\tif ( $shortlink == false )\r\n\t{\r\n\t\twpbitly_generate_shortlink( $id );\r\n\t\t$shortlink = get_post_meta( $id, '_wpbitly', true );\r\n\t}\r\n\r\n\treturn $shortlink;\r\n\r\n}", "title": "" }, { "docid": "77c99ea7968e05f471eaadfd7e0c4819", "score": "0.51579314", "text": "function _expandlinks($links,$URI)\n\t{\n\t\t\n\t\tpreg_match(\"/^[^\\?]+/\",$URI,$match);\n\n\t\t$match = preg_replace(\"|/[^\\/\\.]+\\.[^\\/\\.]+$|\",\"\",$match[0]);\n\t\t\t\t\n\t\t$search = array( \t\"|^http://\".preg_quote($this->host).\"|i\",\n\t\t\t\t\t\t\t\"|^(?!http://)(\\/)?(?!mailto:)|i\",\n\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\n\t\t$replace = array(\t\"\",\n\t\t\t\t\t\t\t$match.\"/\",\n\t\t\t\t\t\t\t\"/\",\n\t\t\t\t\t\t\t\"/\"\n\t\t\t\t\t\t);\t\t\t\n\t\t\t\t\n\t\t$expandedLinks = preg_replace($search,$replace,$links);\n\n\t\treturn $expandedLinks;\n\t}", "title": "" }, { "docid": "58319b66de0978bf214d511ba9ac5468", "score": "0.513948", "text": "public function update(Request $request, ShortUrl $shortUrl)\n {\n //\n }", "title": "" }, { "docid": "fb3d87975d117c6e29072138de526f3d", "score": "0.5135957", "text": "static function isShortUrl($url){\n // Overall URL length - May be a max of 30 characters\n if (strlen($url) > 30) return false;\n\n $parts = parse_url($url);\n\n if(isset($parts[\"path\"])){\n $path = $parts[\"path\"];\n $pathParts = explode(\"/\", $path);\n\n // Number of '/' after protocol (http://) - Max 2\n if (count($pathParts) > 2) return false;\n\n // URL length after last '/' - May be a max of 10 characters\n $lastPath = array_pop($pathParts);\n if (strlen($lastPath) > 10) return false;\n\n // Max length of host\n if (strlen($parts[\"host\"]) > 10) return false;\n } else {\n return false;\n }\n\n // Get headers and see if Location is set.\n $headers = get_headers($url, 1);\n if(!is_array($headers) || !isset($headers['Location'])){\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "47cf911307d66931809d145ef68a6090", "score": "0.5130127", "text": "abstract protected function toUrl();", "title": "" }, { "docid": "a6c8b7eabbb3517c878dccb8bb7a82eb", "score": "0.5126844", "text": "public function shortToLongUrl($url)\r\n {\r\n $this->shortUrl = $this->getShortUrl($url);\r\n if (!$this->validateTtl($this->shortUrl)) {\r\n $this->removeUrl($this->shortUrl);\r\n return header(\"Location: \" . DOMAIN_NAME . \"404.php\");\r\n }\r\n $this->longUrl = $this->getUrlFromDb($this->shortUrl);\r\n if ($this->longUrl) {\r\n header(\"Location: \" . $this->longUrl);\r\n exit;\r\n } else {\r\n header(\"Location: \" . DOMAIN_NAME . \"404.php\");\r\n exit;\r\n }\r\n }", "title": "" }, { "docid": "cfaad8043dca4fab82710c2017c5168a", "score": "0.5115295", "text": "public function link_shortening_shortest_cb() {\n ?>\n <code>http://destyy.com/q15Xzx</code> &nbsp;\n <?php _e( 'API Key', $this->plugin_name ) ?>\n <input type=\"text\"\n name=\"<?php echo $this->options_prefix . 'shortest_api_key' ?>\"\n id=\"<?php echo $this->options_prefix . 'shortest_api_key' ?>\"\n value=\"<?php echo $this->options->shortest_api_key ?>\" />\n <?php\n }", "title": "" }, { "docid": "2cee1a6b178bf1d238192a1a70301888", "score": "0.5110262", "text": "public function __construct(ShortenUrl $shorten) {\n $this->shorten = $shorten;\n }", "title": "" }, { "docid": "d86dd1e47b066cb0f3fa44be861d4cd1", "score": "0.5108751", "text": "public function setFullUrl(string $full_url): self\n {\n $this->full_url = $full_url;\n\n return $this;\n }", "title": "" }, { "docid": "e05aabd8ac42ffc713132533103c813d", "score": "0.5102811", "text": "function UrlToShortLink ($text) {\n \t$pattern = '`((?:https?|ftp)://\\S+?)(?=[[:punct:]]?(?:\\s|\\Z)|\\Z)`'; \n\t//Replacement of the pattern\n\t$text = preg_replace_callback($pattern, 'ShortUrl', $text);\n\treturn $text;\n}", "title": "" }, { "docid": "dc930c775f0ec48f4d8b68b893f9dbc8", "score": "0.50905555", "text": "public function methodUrl()\n {\n if (isset($this->url[1]))\n {\n // Check to see if method exists in controller\n if (method_exists($this->currentController, $this->url[1]))\n {\n $this->currentMethod = $this->url[1];\n\n // Unset 1 index\n unset($this->url[1]);\n }\n }\n }", "title": "" }, { "docid": "724fe01c62476c15ec8a0b514c3d0a0b", "score": "0.5081547", "text": "function toUrl($url, $queryString=''){\r\n\t\techo addUrlVar($url, $queryString);\r\n\t}", "title": "" }, { "docid": "a37ebfa52b35665e930e94f965d3acf9", "score": "0.50645167", "text": "private static function all_expanded(){\n\t\tif(!isset($_GET['expand']) || $_GET['expand']==0) return false;\n\t\tif($_GET['expand']==1) return true;\n\t}", "title": "" }, { "docid": "1df89d9413a241fd0f783ef399e92323", "score": "0.50636667", "text": "public function shorten_url($long_url) {\n\t\t\n\t\tif (empty($long_url)) {\n\t\t\tthrow new \\Exception(\"No URL was supplied. If you have supplied a URL but receive this message please contact us!\");\n\t\t}\n\t\tif ($this->verify_url_format($long_url) == false) {\n\t\t\tthrow new \\Exception(\"The URL does not have a valid format, or is of this domain\");\n\t\t}\n\t\tif(!$this->verify_url_exists($long_url)) {\n\t\t\tthrow new \\Exception(\"The URL does not appear to exist. We get a 404 (dead link)!\");\n\t\t}\n\t\tif($this->send_response($long_url) == false) {\n\t\t\tthrow new \\Exception(\"The URL is classified as malicious!\");\n\t\t}\n\n\t\t$word_pair = $this->url_exists_in_db($long_url);\n\n\t\tif( ($word_pair == false) ) {\n\t\t\t$word_pair = $this->gen_word_pair($long_url);\n\t\t\t$this->insert_url_in_db($long_url, $word_pair);\n\t\t}\n\t\treturn $word_pair;\n\t}", "title": "" }, { "docid": "b6001187a514c07a7c68e9f785502687", "score": "0.50506854", "text": "public function shortenLink($code)\n {\n $find = ShortLink::where('code', $code)->first();\n\n return redirect($find->link);\n }", "title": "" }, { "docid": "a5c9ee4afeeb103291fd793a54ee09cb", "score": "0.5041072", "text": "public function url(string $key): string;", "title": "" }, { "docid": "1c4a768cdfcbbcc3f2fb925ad5d83c09", "score": "0.5040903", "text": "function url() {\n return $this->request->base_url().$this->path();\n }", "title": "" }, { "docid": "447cb5c88805a724036f4d000ec0fe3b", "score": "0.50403595", "text": "function full_url($s, $use_forwarded_host=false){\n return url_origin($s, $use_forwarded_host) . $s['REQUEST_URI'];\n}", "title": "" }, { "docid": "c936501b32b4915a14c4a9e2f0c0828a", "score": "0.5025664", "text": "public function action_handler_shorten( $vars )\n\t{\n\t\t$secret= Options::get( 'lilliputian__secret' );\n\t\tlist( $junk, $pass, $url )= explode( '/', $vars['entire_match'], 3 );\n\t\tif ( ( $secret ) && ( $pass == $secret ) ) {\n\t\t\t$tiny= $this->internal_check( $url );\n\t\t\tif ( ! $tiny ) {\n\t\t\t\t$tiny= $this->internal_shrink( $url );\n\t\t\t\t$result= DB::query( 'INSERT INTO {postinfo} (post_id, name, value) VALUES (?, ?, ?)', array( 0, $url, $tiny ) );\n\t\t\t}\n\t\t\techo $tiny;\n\t\t\tdie;\n\t\t}\n\t\techo 'Go away';\n\t\tdie;\n\t}", "title": "" } ]
65a6a4be7285d880d768769798ea1a4b
Checks whether the command is enabled or not in the current environment. Override this to check for x or y and return false if the command can not run properly under the current conditions.
[ { "docid": "88e309b257ece6054783ca849eef0c1a", "score": "0.6338876", "text": "public function isEnabled()\n {\n if ( ! Tools::isCommandEnabled() && ! Tools::hasLayout()) {\n return false;\n }\n\n return true;\n }", "title": "" } ]
[ { "docid": "e966eff25bd4141110770b19e08b6c31", "score": "0.6539854", "text": "function enable()\n{\n\treturn $this->checkEnvironment();\n}", "title": "" }, { "docid": "2420997e861b46ce1b0264fd8fb184fc", "score": "0.6260057", "text": "public function canUseSystemExec(){\n\n return false;\n $canUse = true;\n if (strpos(ini_get(\"disable_functions\"),\"system\")){\n $canUse = false;\n }\n if ($canUse===true && $this->scopeConfig->getValue(self::XML_CONFIG_USE_SYSTEM_CALLS)==0)\n {\n $canUse = false;\n }\n\n return $canUse;\n }", "title": "" }, { "docid": "24560098099f615407ee6e36b1ed82f4", "score": "0.6191492", "text": "public function isEnabled()\n {\n if (!$this->isEnabled) {\n return false;\n }\n\n if (!$this->sensorHost) {\n return false;\n }\n\n //more info on filter_var for ensuring we have a valid url defined:\n //http://php.net/manual/en/function.filter-var.php\n if (!filter_var($this->sensorHost, FILTER_VALIDATE_URL)) {\n return false;\n }\n\n //if in prod, enabled in env, and sensor host defined/valid, we're good to go\n return true;\n }", "title": "" }, { "docid": "ef5a0df07e102a6c81680b3c678e776b", "score": "0.6118814", "text": "public function canUse(): bool\n {\n // Users who opt-in to this patcher are responsible for providing a valid executable and arguments.\n return true;\n }", "title": "" }, { "docid": "0eb1aa16433557abe4d3ca71f126a50b", "score": "0.61120576", "text": "protected function checkCommand() {\n $split_command = explode(' ', $this->master_command);\n\n $split_command = array_map('trim', $split_command);\n\n if(! count($split_command) == 6) return false;\n\n // Check coordinates\n $arr = array_filter(array_slice($split_command,0,4), 'is_numeric');\n if(! count($arr) == 4) return false;\n\n if(! in_array($split_command[4], $this->direction_reference)) return false;\n\n if(! preg_match('/^[M|R|L]+$/', $split_command[5])) return false;\n\n return true;\n }", "title": "" }, { "docid": "778cc0e2ebbd7d73f73c31cb1242b6c4", "score": "0.6102472", "text": "protected function isEnvironmentEnabled()\n {\n return in_array($this->environment, $this->enabledEnvironments);\n }", "title": "" }, { "docid": "f3f529e17100f6662a0ddcbe917e6cd2", "score": "0.60763747", "text": "private static function isExecAvailable()\n {\n static $available;\n \n if (!isset($available)) {\n $available = true;\n if (ini_get('safe_mode')) {\n $available = false;\n } else {\n $d = ini_get('disable_functions');\n $s = ini_get('suhosin.executor.func.blacklist');\n if (\"$d$s\") {\n $array = preg_split('/,\\s*/', \"$d,$s\");\n if (in_array('exec', $array)) {\n $available = false;\n }\n }\n }\n }\n \n return $available;\n }", "title": "" }, { "docid": "4c493e599722adba9d18dd21679b0145", "score": "0.60376817", "text": "public static function isEnabled() : bool\n {\n return static::config('engine', false) !== null;\n }", "title": "" }, { "docid": "901ef7f3d31c2db9355d03001e1cdbc1", "score": "0.5979097", "text": "public function hasCmd(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "901ef7f3d31c2db9355d03001e1cdbc1", "score": "0.5979097", "text": "public function hasCmd(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "6a733878c08ff1bf6a350c5ede4dc517", "score": "0.597658", "text": "public function isPhpCommandEnabled() {\n return $this->enablePhpCommand;\n }", "title": "" }, { "docid": "b8d16802a3eb8cb217bed76e113a4673", "score": "0.59699285", "text": "public function isEnabled()\n {\n return $this->kernel->getEnvironment() === 'dev';\n }", "title": "" }, { "docid": "5af6b067bd38fb55b05a09f758e275ac", "score": "0.5956805", "text": "public static function isExecAvailable()\n {\n static $available;\n \n if (!isset($available)) {\n $available = true;\n if (ini_get('safe_mode')) {\n $available = false;\n } else {\n $d = ini_get('disable_functions');\n $s = ini_get('suhosin.executor.func.blacklist');\n if (\"$d$s\") {\n $array = preg_split('/,\\s*/', \"$d,$s\");\n if (in_array('exec', $array)) {\n $available = false;\n }\n }\n }\n }\n \n return $available;\n }", "title": "" }, { "docid": "109747235b3d2588dcf8741654f8d785", "score": "0.5953569", "text": "private function isCommandValid(): bool\n {\n return\n !empty($this->email) &&\n !empty($this->name) &&\n !empty($this->password);\n }", "title": "" }, { "docid": "3a88dd89a42794bb92f8ec7443a1383b", "score": "0.58557695", "text": "function is_enabled(){\n\t\tstatic $enabled;\n\t\tif(!isset($enabled)){\n\t\t\tif(!$e = $this->option('enabled'))\n\t\t\t\treturn false;\n\t\t\tif($this->is_mobile()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t$enabled = $e;\n\t\t}\n\t\treturn $enabled == 'Y' ? true : false;\n\t}", "title": "" }, { "docid": "50bf2d352c0c6ae80d365703f8bb3740", "score": "0.5854338", "text": "protected function shouldRun()\n {\n $config = include __DIR__ . '/../../config/console.php';\n \n if ($config['components']['mailer']['transport']['host'] === 'mailhog') {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "ac3d0fd5ea1d37ece4c1d8d92a1577dc", "score": "0.58472943", "text": "public function isEnabled()\n {\n if ($this->enabled === null) {\n $config = $this->app['config'];\n $configEnabled = $config->get('branch-switcher.enabled');\n $configEnvironments = $config->get('branch-switcher.environments') ?? [];\n\n $this->enabled = $configEnabled && in_array($config['app.env'], $configEnvironments) && ! $this->app->runningInConsole();\n }\n\n return $this->enabled;\n }", "title": "" }, { "docid": "73b6b0ac407bd74e691c4fec50de0f53", "score": "0.5834913", "text": "function isEnabled() {\n\t\treturn $this->getEnabled() == self::ENABLED_Y;\n\t}", "title": "" }, { "docid": "5f23b15d82fe82ba656275dd03ea3429", "score": "0.5832138", "text": "private function isExecAllowed()\n {\n $disabled = explode(', ', ini_get('disable_functions'));\n\n return (bool) !in_array('shell_exec', $disabled);\n }", "title": "" }, { "docid": "8aa22a922e7593137f6a89ff18e6865e", "score": "0.5828446", "text": "static function canEnable()\n\t{\n\t\treturn extension_loaded('xcache');\n\t}", "title": "" }, { "docid": "bc488f118b325fb9efc46628aa008683", "score": "0.5824873", "text": "public static function is_enabled() {\n return get_config('tool_recyclebin', 'coursebinenable');\n }", "title": "" }, { "docid": "bae7b4db3de1fa1d4572dd2c2815938a", "score": "0.5803863", "text": "private function gateway_enabled()\n {\n return (($this->get_option('enabled') == 'yes') &&\n !empty($this->cin) &&\n !empty($this->user) &&\n !empty($this->entity) &&\n !empty($this->country) &&\n !empty($this->language) &&\n ($this->use_multibanco || $this->use_credit_card || $this->use_boleto) &&\n $this->is_valid_for_use()) ? 'yes' : 'no';\n }", "title": "" }, { "docid": "da8c96ec8e100d719169c44177e76e95", "score": "0.5793898", "text": "public function CheckEnabled()\n\t{\n\t\t$shippingManagers = explode(',', GetConfig(\"ShippingManagerModules\"));\n\t\tif (in_array($this->getid(), $shippingManagers)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "9a0603d25e19347043936af02ec8a8a7", "score": "0.57671595", "text": "protected function shouldExecute()\n {\n /** @var Configuration $config */\n $config = ServiceRegister::getService(Configuration::CLASS_NAME);\n $userInfo = $config->getUserInfo();\n\n if ($userInfo === null) {\n return false;\n }\n\n return $config->getDefaultWarehouse() !== null\n || $this->getCountryService()->isCountrySupported($userInfo->country);\n }", "title": "" }, { "docid": "e3bcbf239872dde7862cb03a188e5f18", "score": "0.57443535", "text": "public function is_available() {\n if ( $this->enabled === 'no' ) {\n return false;\n }\n\n // ensure required extensions\n if ( 0 !== count(DP()->missing_required_extensions()) ) {\n return false;\n }\n\n // Validate settings\n if ( ! $this->xpub_key ) {\n return false;\n }\n\n // validate xpub key\n if ( ! CoinUtil::is_valid_public_xkey( $this->xpub_key ) ) {\n return false;\n }\n\n // Must be a valid insight instance that we can connect to\n $insight = new DP_Insight_API( $this->settings['insight_api_url'] );\n if ( ! $insight->is_valid() ) {\n return false;\n }\n\n // ensure we can fetch exchange rate\n $exchange_rate;\n try {\n DP_Exchange_Rate::get_exchange_rate(self::$currency_ticker_symbol, get_woocommerce_currency());\n }\n catch (\\Exception $e) {\n return false;\n }\n\n // ensure matching xpub and insight networks\n $xpub_network = CoinUtil::guess_network_from_xkey( $this->correct_xpub_key() );\n\n $insight_network;\n try {\n $insight_network = $insight->get_network();\n }\n catch (\\Exception $ex) {\n return false;\n }\n\n if ( $xpub_network != $insight_network ) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "367a41acfce2b3db6f81818d00f9022e", "score": "0.5741787", "text": "function isCommand(){\n return !$this->server->has('HTTP_HOST');\n // @note we can't use the PHP_SAPI because of testing, using the test browser would report a cli request\n // when in actuality it should be treated as a normal http request\n ///return (strncasecmp(PHP_SAPI, 'cli', 3) === 0) || !isset($_SERVER['HTTP_HOST']);\n }", "title": "" }, { "docid": "1e7036193870f301b397f56341a06baa", "score": "0.5732237", "text": "public function isEnabled()\n {\n return !($this->getContainer()->getParameter('kernel.environment') === 'prod');\n }", "title": "" }, { "docid": "2af896a4e10f87367a7905f3b8c729d0", "score": "0.57176495", "text": "private function isEnabled(): bool\n {\n return null !== config('fenerum.base_uri') && null !== config('fenerum.api_token');\n }", "title": "" }, { "docid": "f4ec3f48bf5ed156a7a226fbf505970e", "score": "0.5686336", "text": "public static function isAvailable()\n {\n return CommandUtility::getCommand('git') !== '';\n }", "title": "" }, { "docid": "1ca939eb84c59533fbc49571c55ff31c", "score": "0.5675765", "text": "public function is_available()\n {\n if (!self::get_setting('enabled')) {\n return false;\n }\n\n if (self::get_setting('access_key') && self::get_setting('private_key') && self::get_setting('storefront_path')) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "972b089bc084aa66be74b04949b493f2", "score": "0.5668816", "text": "public static function check_enabled() {\n self::$skipenabled = false;\n }", "title": "" }, { "docid": "f748917649009ec772dbef232f46cc77", "score": "0.56618404", "text": "public function check_environment();", "title": "" }, { "docid": "6a64d47c9fc57a90549baaa1660c64f7", "score": "0.56565684", "text": "public function hasEnvironment();", "title": "" }, { "docid": "e3a90ab9b46bece6afac15eb53ee30b2", "score": "0.5640812", "text": "public function checkSystem()\n\t{\n\t\t$returnValue = TRUE;\n\n\t\t/**\n\t\t * check php version\n\t\t */\n\t\tif ($this->_phpVersion->hasErrors()) {\n\t\t\t$returnValue = FALSE;\n\t\t}\n\n\t\t/**\n\t\t * check writables\n\t\t */\n\t\tif ($this->_environmentWritables->hasErrors()) {\n\t\t\t$returnValue = FALSE;\n\t\t}\n\n\t\treturn $returnValue;\n\t}", "title": "" }, { "docid": "483cdab5df9490f1b320a69837c17843", "score": "0.5619089", "text": "public function is_enabled() {\n\t\treturn $this->enabled == 't' || $this->enabled == 'true';\n\t}", "title": "" }, { "docid": "98d14234299644801e17363dc66fc050", "score": "0.56007475", "text": "public function enabled() : bool\n {\n return $this->config->get('monitor');\n }", "title": "" }, { "docid": "6314c2d5e169e3eb0ad55dd79fce31a3", "score": "0.5587673", "text": "function is_available() {\r\n if ($this->enabled==\"yes\") :\r\n return true;\r\n endif;\r\n\r\n return false;\r\n }", "title": "" }, { "docid": "e38e8d13bf36dbdaae8c6c9ff54a8ccc", "score": "0.5584191", "text": "public function isApiEnabled() : bool\n {\n return $this->config->isApiEnabled() && $this->config->getApiKey() && $this->config->getApiEndpoint();\n }", "title": "" }, { "docid": "3edce9989a70f546d834c32aa22c028c", "score": "0.5581948", "text": "public function is_enabled() : bool\n {\n return $this->enabled ?? FALSE;\n }", "title": "" }, { "docid": "85b2b9d393733a2545ab6c36282329f3", "score": "0.55748606", "text": "function isEnabled() {\n\t\treturn $this->getSetting('enabled');\n\t}", "title": "" }, { "docid": "4074f89eab3aec0e0c183288762fb991", "score": "0.55550283", "text": "public function enabled()\n {\n if (!empty($this->_data[self::BUSINESS])) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "9632ea9f37420adcacdb960372cba5df", "score": "0.5552652", "text": "public function is_enabled() {\n\t\treturn $this->enabled == 't';\n\t}", "title": "" }, { "docid": "d49fbf1f92d962d8da863b1eae4ceeac", "score": "0.554129", "text": "public function isEnabled()\n\t{\n\t\treturn $this->checkComponent('com_acajoom');\n\t}", "title": "" }, { "docid": "351b9caa98fca1dba9772f9cd1cf74ba", "score": "0.55352336", "text": "public function hasCommands();", "title": "" }, { "docid": "d00fb51028c9b365bcd2c0abc2bfec27", "score": "0.5512421", "text": "public function isEnabled(): bool\n\t{\n\t\treturn ($this->isEnabled && Driver::getInstance()->isEnabled());\n\t}", "title": "" }, { "docid": "527a867712a074197c05b246df8425b3", "score": "0.5506622", "text": "public static function is_enabled() {\n\t\t// Shortcircuit early if Jetpack is not active or we are in offline mode.\n\t\tif ( ! Jetpack::is_connection_ready() || ( new Status() )->is_offline_mode() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// No recommendations for Atomic sites, they already get onboarded in Calypso.\n\t\tif ( jetpack_is_atomic_site() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tself::initialize_jetpack_recommendations();\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "5b8e1b3018b9240f4dc3d50e620b95ca", "score": "0.55011195", "text": "public static function enabled() {\n $enabled = get_option( 'sb_enable_whois' );\n return boolval( $enabled );\n }", "title": "" }, { "docid": "a84e8f531962987a78bc2b7433c810d0", "score": "0.5495702", "text": "public function is_enabled() {\n\t\tif(! empty( $this->vo_setting ) && isset ( $this->vo_setting['vo_opt_in'] ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2db0410039e1035e3d201447db8b887f", "score": "0.5493759", "text": "static function canEnable()\n\t{\n\t\treturn class_exists('PDO', false) || class_exists('SQLiteDatabase', false);\n\t}", "title": "" }, { "docid": "b5f96cf4b65929f2608324941e08c8de", "score": "0.5491622", "text": "public function Check() {\n if (!$this->enabled) return false;\n $isOk = true;\n // check loaded extensions : AND\n foreach($this->check['module'] as $check) {\n if (!extension_loaded($check)) {\n $isOk = false;\n break;\n }\n }\n if (!$isOk) return false;\n // check defined functions : AND\n foreach($this->check['function'] as $check) {\n if (!function_exists($check)) {\n $isOk = false;\n break;\n }\n } \n if (!$isOk) return false;\n // check defined classes\n foreach($this->check['class'] as $check) {\n if (!class_exists($check)) {\n return false;\n }\n } \n return true; \n }", "title": "" }, { "docid": "613b99a7897913bd0bd09fa7dc710cac", "score": "0.5483231", "text": "protected function checkEnvironment()\n {\n $result = true;\n $check = ini_get('phar.readonly');\n if ($check) {\n echo \"Fatal Error: Concrete will not be able to compile PHAR files because the php.ini setting 'phar.readonly' is turned on. \\n\\nPlease turn off the setting before compiling.\\n\\n\";\n $result = false;\n }\n return $result;\n }", "title": "" }, { "docid": "fec1db43503da7dd592a2110f324b90b", "score": "0.54786235", "text": "public function isAdvancedCommandSet($command = '')\r\n {\r\n $advanced_codes_array = $this->advanced_command_array;\r\n\r\n if (in_array($command, $advanced_codes_array)) {\r\n\r\n $evaluation = TRUE;\r\n } else {\r\n\r\n $evaluation = FALSE;\r\n }\r\n\r\n return $evaluation;\r\n }", "title": "" }, { "docid": "05badb0d534231e86456873e693d4d85", "score": "0.5477999", "text": "static function canEnable()\n\t{\n\t\treturn true;\n\t}", "title": "" }, { "docid": "2ad7ad6b68f90733e9f966710e3e66f0", "score": "0.54759043", "text": "function is_api_enabled() {\n $api_url = $this->ECWID_PRODUCT_API_ENDPOINT . \"/\" . $this->store_id . \"/profile\";\n $this->process_request($api_url);\n if ($this->error_code === '') {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "e831ce3078e86ce34c0a07b8e1ebeb85", "score": "0.5467779", "text": "public static function checkAccess()\n {\n $commands = static::commands();\n\n return (in_array('update', $commands['command'])) ? true : false;\n }", "title": "" }, { "docid": "25e56f7b21694d392b552fc2ea07f140", "score": "0.54677284", "text": "private function isEnabled()\n {\n // Only continue in the right application, if enabled so\n $application = JFactory::getApplication();\n if($application->isAdmin() && $this->getParams()->get('backend', 0) == 0) {\n return false;\n } elseif($application->isSite() && $this->getParams()->get('frontend', 1) == 0) {\n return false;\n }\n\n // Disable through URL\n if(JRequest::getInt('scriptmerge', 1) == 0) {\n return false;\n }\n\n // Try to include the helper\n $helper = JPATH_SITE.'/components/com_scriptmerge/helpers/helper.php';\n if(is_readable($helper) == false) {\n return false;\n }\n\n // Exclude for menus\n $menu = JFactory::getApplication()->getMenu('site');\n\t\t$current_menuitem = $menu->getActive();\n if(!empty($current_menuitem)) {\n $exclude_menuitems = $this->getParams()->get('exclude_menuitems');\n if(!is_array($exclude_menuitems)) $exclude_menuitems = explode(',', trim($exclude_menuitems));\n foreach($exclude_menuitems as $index => $exclude_menuitem) {\n if($exclude_menuitem == $current_menuitem->id) {\n return false;\n }\n }\n }\n\n // Exclude components\n $components = $this->getParams()->get('exclude_components');\n if(empty($components)) $components = array();\n if(!is_array($components)) $components = array($components);\n if(in_array(JRequest::getCmd('option'), $components)) {\n return false;\n }\n\n require_once $helper;\n return true;\n }", "title": "" }, { "docid": "5518a0dcd70619745a684cef6ed93a26", "score": "0.54671764", "text": "public function isEnabled()\n {\n if (!$this->getConf('forusers') && $_SERVER['REMOTE_USER']) return false;\n return true;\n }", "title": "" }, { "docid": "6fc65be1692588c85b77814e823fc19a", "score": "0.5459496", "text": "public function isEnabled() {\n // OR if the 'reports' param is set\n if(\t( isset($_SERVER[\"HTTP_REFERER\"]) && strstr($_SERVER[\"HTTP_REFERER\"], '/hazard-inventory/' ) ) || isset($_GET['hazard-inventory']))\n return true;\n\n return false;\n }", "title": "" }, { "docid": "9b6177a85ea1d043ee8c360043bf759d", "score": "0.54581374", "text": "public function isEnabled()\n\t{\n\t\tif($this->config['@disabled'] === false){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "bfe35bb8ce8b1f7a9a0a10466cab1798", "score": "0.54535073", "text": "public function isDontCheckRunning()\n {\n return $this->getOption(Command::OPTION_DONT_CHECK_RUNNING);\n }", "title": "" }, { "docid": "fa7f97e8615cd8eb14da4287a43cc9c4", "score": "0.54497933", "text": "public function enabled()\n {\n $feature_value = $this->value();\n if (is_null($feature_value)) {\n return false;\n }\n // If value is one of the positive words configured then the feature is enabled.\n if (in_array(strtolower($feature_value), Abone::$positiveWords)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "09546cea3fcbfc65706c3d1d26249caf", "score": "0.5448023", "text": "public function isEnabled()\n\t{\n\t\t$enabled = $this->cparams->getValue('selfprotect', 1) == 1;\n\n\t\treturn $enabled & $this->container->platform->isBackend();\n\t}", "title": "" }, { "docid": "52d91f830de005f506ab0f4ec83658ed", "score": "0.5441422", "text": "public function checkServiceXThemOn() {\n global $APP_TYPE;\n if (strtoupper(APP_TYPE) == \"UBERX\" && !empty(ENABLE_SERVICE_X_THEME) && ENABLE_SERVICE_X_THEME == \"Yes\") {\n return \"Yes\";\n } else {\n return \"No\";\n }\n }", "title": "" }, { "docid": "f4443d699011bae63d28455fd79cf70c", "score": "0.54203033", "text": "private function _checkApplicable() \n\t{\n\t\t$applicable = $this->params->get('applicable');\n\t\t\n\t\t// for bot end\n\t\tif($applicable == 30) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t$app = JFactory::getApplication();\n\t\t\n\t\t//applicable for front-end\n\t\tif($applicable == 20 && $app->isSite()) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t//Applicable for back-end\n\t\tif($applicable == 10 && $app->isAdmin()) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// not applicable\n\t\t$this->_enable_for = false;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2ba83a52431eb6643800c6216f0c8f7f", "score": "0.5418288", "text": "private function __isOnCommandline() {\n\t\t// Note: Like most things in PHP this function isn't reliable:\n\t\t// http://php.net/manual/en/function.php-sapi-name.php\n\t\t$sapiType = php_sapi_name();\n\n\t\treturn ($sapiType == 'cli');\n\t}", "title": "" }, { "docid": "f55a39bfe14329fc57f9b3bf64ca4444", "score": "0.5417128", "text": "public static function is_enabled() {\n return self::$skipenabled || get_config('core_competency', 'enabled');\n }", "title": "" }, { "docid": "608ac64897d68e88afd5fa677bab50eb", "score": "0.5410878", "text": "protected function get__enabled()\n\t{\n\t\treturn ( $this->enabled ) ? TRUE : FALSE;\n\t}", "title": "" }, { "docid": "22d481fc2886ae4cd55c5e161da10930", "score": "0.5408122", "text": "public function isServiceEnabled(): bool\n {\n $enablingModule = $this->getEnablingModule();\n if ($enablingModule !== null) {\n return $this->getModuleRegistry()->isModuleEnabled($enablingModule);\n }\n return parent::isServiceEnabled();\n }", "title": "" }, { "docid": "c826de538b044eb73d04ab6a14d88fc7", "score": "0.5398962", "text": "public function isEnabled(){\n\t\treturn $this->_getConfig()->isProductEnabled();\n\t}", "title": "" }, { "docid": "675fd498ee451131ac88850dfb330a55", "score": "0.5396896", "text": "function is_api_enabled() {\n $api_url = $this->ECWID_PRODUCT_API_ENDPOINT . \"/\" . $this->store_id . \"/profile\";\n\n $this->process_request($api_url);\n\n return $this->error_code === '';\n }", "title": "" }, { "docid": "0d529d0b202702520e4e1bac5379963c", "score": "0.53928834", "text": "public function is_enabled() {\n return true;\n }", "title": "" }, { "docid": "c8aadc1ab8aa32f4678485c2c01080e9", "score": "0.5384228", "text": "public function enabled() : bool\n {\n return $this->isStatus(1);\n }", "title": "" }, { "docid": "8a2305b4e0a37b02c34608b57144c020", "score": "0.53666407", "text": "public function enabled() {\n return (class_exists('PDO') && in_array('oci', \\PDO::getAvailableDrivers(), true));\n }", "title": "" }, { "docid": "ab7232db847d1733abb58e9fd80f8b8d", "score": "0.5362955", "text": "private function is_active() {\n\n\t\treturn $this->api_endpoint && $this->api_username && $this->api_password && $this->company_code && $this->division_no && $this->price_level;\n\t}", "title": "" }, { "docid": "e3331a368c7ecaf544312dc0af56e433", "score": "0.535552", "text": "public static function test_system_call(){\n\t\tif ( false !== strpos(ini_get(\"disable_functions\"), \"exec\") )\n \treturn false;\n \n\t\treturn true;\n\t}", "title": "" }, { "docid": "dd7efa645bce8685a1c6e4530894d6e4", "score": "0.53493214", "text": "public function is_available()\n {\n global $woocommerce;\n\n if ($this->enabled == 'yes') {\n if ($woocommerce->version < '1.5.8') {\n return false;\n }\n\n if ($this->testmode != 'yes' && (!$this->login || !$this->tran_key)) {\n return false;\n }\n\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "2c74738ce3881ad71b246ea91ddf2f23", "score": "0.53485453", "text": "public function getHasManualAccess()\n {\n $result = false;\n if (Config::getShibbolethManualGroupsActive()) {\n if (Config::getShibbolethManualGroups() !== '') {\n $groups = explode(Config::getShibbolethSeparator(), Config::getShibbolethManualGroups());\n $userGroupsArray = explode(Config::getShibbolethSeparator(), $this->getServerVar($this->groupKey));\n foreach ($groups as $g) {\n if (!$result && in_array($g, $userGroupsArray, true)) {\n $result = true;\n }\n }\n } else {\n throw new RuntimeException('Activating manual groups, you should also add the groups to the config.');\n }\n }\n return $result;\n }", "title": "" }, { "docid": "d838ff06ad88e8a4516bb05f10c5ef93", "score": "0.53426003", "text": "public function isEnabled()\n {\n return ($this->getEnabled() || $this->isForcedEnabled())\n && $this->getAdded()\n && $this->getModuleEnabled()\n && $this->getProcessor()\n && $this->getProcessor()->isConfigured($this);\n }", "title": "" }, { "docid": "6618e352f7ce67bf7372319fcbf7b33d", "score": "0.53407365", "text": "public function isBxEnable()\n {\n return $this->bxEnable;\n }", "title": "" }, { "docid": "da816f50619533a5b529da0e34b7b92f", "score": "0.533747", "text": "public function isEnabled()\n\t{\n\t\tif (!$this->container->platform->isFrontend())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tif ($this->skipFiltering)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn ($this->cparams->getValue('sessionshield', 1) == 1);\n\t}", "title": "" }, { "docid": "b7614e65ed9c29d3c03b6cba1c2d87bb", "score": "0.5336696", "text": "public static function isXdebugActive() : bool\n {\n self::setXdebugDetails();\n return self::$xdebugActive;\n }", "title": "" }, { "docid": "0b1462ccd4ed9485827c730b50fefa3e", "score": "0.532846", "text": "public function enabled()\n {\n if (!empty($this->_data[self::MERCHANT_ID])) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "718a73e1df2274eb1f39b976ba2bce1f", "score": "0.5319537", "text": "public function check_environment() {\r\n\t\t\tif ( ! defined( 'IFRAME_REQUEST' ) && ( WC_XENDIT_VERSION !== get_option( 'wc_xendit_version' ) ) ) {\r\n\t\t\t\t$this->install();\r\n\r\n\t\t\t\tdo_action( 'woocommerce_xendit_updated' );\r\n\t\t\t}\r\n\r\n\t\t\t$environment_warning = self::get_environment_warning();\r\n\r\n\t\t\tif ( $environment_warning && is_plugin_active( plugin_basename( __FILE__ ) ) ) {\r\n\t\t\t\t$this->add_admin_notice( 'bad_environment', 'error', $environment_warning );\r\n\t\t\t}\r\n\r\n\t\t\t// Check if secret key present. Otherwise prompt, via notice, to go to\r\n\t\t\t// setting.\r\n\t\t\tif ( ! class_exists( 'WC_Xendit_API' ) ) {\r\n\t\t\t\tinclude_once( dirname( __FILE__ ) . '/includes/class-wc-xendit-api.php' );\r\n\t\t\t}\r\n\r\n\t\t\t$secret = WC_Xendit_API::get_secret_key();\r\n\r\n\t\t\tif ( empty( $secret ) && ! ( isset( $_GET['page'], $_GET['section'] ) && 'wc-settings' === $_GET['page'] && 'xendit' === $_GET['section'] ) ) {\r\n\t\t\t\t$setting_link = $this->get_setting_link();\r\n\t\t\t\t$this->add_admin_notice( 'prompt_connect', 'notice notice-warning', sprintf( __( 'Xendit is almost ready. To get started, <a href=\"%s\">set your Xendit account keys</a>.', 'woocommerce-gateway-xendit' ), $setting_link ) );\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "cd27fa008b784ea60a402c7f68dcae1d", "score": "0.531331", "text": "public function hasCommand($name);", "title": "" }, { "docid": "4b41fa22e58dce2187d1ab55bdeb5e89", "score": "0.5312233", "text": "public function isEnabled() {\n\t\treturn $this->_config['enabled'];\n\t}", "title": "" }, { "docid": "dfa4c8085783de8cb074ba1ace6ab91c", "score": "0.53081733", "text": "public function enabled()\n {\n if (!empty($this->_data[self::SECRET_KEY]) && !empty($this->_data[self::PUBLISHABLE_KEY])) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "3a8d97f98bb935a8471887c8ee61e725", "score": "0.5303024", "text": "public function isHelpCommand() : bool\n {\n return self::$last_input == self::$user_commands['help'];\n }", "title": "" }, { "docid": "d44744838c5740a0f7d9011e91090d68", "score": "0.5301304", "text": "public function isEnabled() {\n return $this->getStatus() == TRUE;\n }", "title": "" }, { "docid": "7c5e72f33c591e66bf16f00737fa0d5c", "score": "0.52998525", "text": "public static function shIsAvailable(): bool\n {\n // $checkCmd = \"/usr/bin/env bash -c 'echo OK'\";\n // $shell = 'echo $0';\n $checkCmd = \"sh -c 'echo OK'\";\n\n return self::execute($checkCmd, false) === 'OK';\n }", "title": "" }, { "docid": "b932d8e7e2b5efdd18610281019fbf70", "score": "0.52921534", "text": "public function valid()\n {\n if ($this->container['mysql_user_name'] === null) {\n return false;\n }\n if ($this->container['mysql_user_password'] === null) {\n return false;\n }\n $allowed_values = array(\"Yes\", \"No\");\n if (!in_array($this->container['enterprise_monitor'], $allowed_values)) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "5773a8473de9a13ed2935cc21061ad7e", "score": "0.52822745", "text": "public function check_environment() {\n\t\t\t$environment_warning = self::get_environment_warning();\n\n\t\t\tif ( $environment_warning && is_plugin_active( plugin_basename( __FILE__ ) ) ) {\n\t\t\t\t$this->add_admin_notice( 'bad_environment', 'error', $environment_warning );\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "61be90452b26551f9c1469ce8f990715", "score": "0.52787066", "text": "function integration_enabled ()\n {\n $params = JComponentHelper::getParams( 'com_joomdle' );\n $additional_data_source = $params->get( 'additional_data_source' );\n return ($additional_data_source == $this->additional_data_source);\n }", "title": "" }, { "docid": "cd166c5a9625d3b5b3860c3af6cdb1ee", "score": "0.5277555", "text": "public function getIsAvailableAttribute()\n {\n if($this->designUpdate()->active()->exists()) return false;\n if($this->trade_id) return false;\n if(CharacterTransfer::active()->where('character_id', $this->id)->exists()) return false;\n return true;\n }", "title": "" }, { "docid": "0d1fe5c9e61785318598d42c56bebba5", "score": "0.52740514", "text": "public function isEnabled()\n\t{\n\t\treturn ($this->params->get('sescleaner', 0) == 1);\n\t}", "title": "" }, { "docid": "ac2e3339c71f01a02e216b2283f17f60", "score": "0.52717763", "text": "public function enabled()\n\t{\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "99b41a00ade8aedaaca195368d402567", "score": "0.52712536", "text": "public static function isEnabled()\n\t{\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "c841cd23787d151b48aee9bb4ac9ec8b", "score": "0.5256188", "text": "private function checkCondition() {\n // User can indicate specific paths to enable (or disable) token check mode.\n $condition = $this->conditionManager->createInstance('request_path');\n $condition->setConfiguration($this->gatewayPaths);\n return $this->conditionManager->execute($condition);\n }", "title": "" }, { "docid": "1372ff24d32a60d75fcbdde2263a3eca", "score": "0.52533984", "text": "public function IsEnabled() {\r\n\t\t$result=FALSE;\r\n\t\tforeach ($this->pools as $pool) {\r\n\t\t\t$result|=$pool->IsEnabled();\r\n\t\t}\r\n\t\treturn $result;\r\n\t}", "title": "" }, { "docid": "130129db00002e16834b5e916de773fb", "score": "0.5247264", "text": "private function skipLoginRequirement(): bool\n {\n if (isset($GLOBALS['BE_USER'])) {\n return true;\n }\n\n $remoteAddress = GeneralUtility::getIndpEnv('REMOTE_ADDR');\n\n try {\n $allowedIps = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('auth_basic', 'allowedIps');\n if ($allowedIps && GeneralUtility::cmpIP($remoteAddress, $allowedIps)) {\n return true;\n }\n } catch (\\Exception $e) {\n // the ExtensionConfiguration throws an error if it does not exist, skip that\n }\n\n\n if (GeneralUtility::cmpIP($remoteAddress, $GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask'])) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "0e121d76bbd00d38c81f9275c0875388", "score": "0.5236815", "text": "protected function isEnabled()\n {\n return extension_loaded('pinba');\n }", "title": "" } ]
675904dc55dc08b53416b571e3a3397f
Send email about commenting photo
[ { "docid": "b79d72be4abab3a1a593651bae542d04", "score": "0.77174586", "text": "public function sendCommentEmail() {\n // Only works for ajax requests\n $this->onlyAjaxRequests();\n\n $json = [];\n $user = $this->getLoggedInUser();\n\n if ($user && isset($_POST['data'])) {\n $data = json_decode($_POST['data'], true);\n if ($image = $this->imageModel->isImageExists($data['image_id'])) {\n $imageOwner = $this->userModel->findUser(['id' => $image['user_id']]);\n $message = \"<p>\" . $user['login'] . \" recently commented your photo:</p>\";\n $message .= \"<p>\\\"<q>\" . htmlspecialchars($data['comment']) . \"</q>\\\"</p>\";\n if (!$this->sendEmail($imageOwner['email'], $imageOwner['login'], $message)) {\n $json['message'] = 'Could not sent an email';\n }\n } else {\n $json['message'] = 'Image does not exists';\n }\n } else {\n $json['message'] = 'Image does not exists';\n }\n\n echo json_encode($json);\n }", "title": "" } ]
[ { "docid": "a75a81c37fbf94cc95a814d483ebdb6e", "score": "0.7496148", "text": "public function authorMail($email, $comment)\n\t{\n\t\t$email = str_replace(array(\"\\n\",\"\\r\",PHP_EOL),'',$email);\n\t\t$subject = 'Camagru - New comment on your picture';\n\t\t$from = '[email protected]';\n\n\t\t// To send HTML mail, the Content-type header must be set\n\t\t$headers = 'MIME-Version: 1.0' . \"\\r\\n\";\n\t\t$headers .= 'Content-type: text/html; charset=iso-8859-1' . \"\\r\\n\";\n\n\t\t// Create email headers\n\t\t$headers .= 'From: '.$from.\"\\r\\n\".\n\t\t'Reply-To: '.$from.\"\\r\\n\" .\n\t\t'X-Mailer: PHP/' . phpversion();\n\n\t\t// Compose a simple HTML email message\n\t\t$link = \"http://localhost:8081/Camagru/gallery/1\";\n\t\t$custom = \"gallery: <a href=\\\"$link\\\">Click the link!</a>\";\n\t\t$message = '<html><body>';\n\t\t$message .= '<h1 style=\"color:#006600;\">';\n\t\t$message .= 'New comment on your picture !';\n\t\t$message .= '</h1>';\n\t\t$message .= '<p style=\"color:#009900;font-size:16px;\">';\n\t\t$message .= 'Someone added a comment on your picture:' . '<br>' . '<br>' . '\"' . $comment . '\"' . '<br>' . '<br>';\n\t\t$message .= 'Go check it out in the ' . $custom;\n\t\t$message .= '</p><p style=\"color:#006600;font-size:16px;\"> Have a nice day ! <br><br> Team Camagru</p>';\n\t\t$message .= '</body></html>';\n\n\t\tmail($email, $subject, $message, $headers);\n\t}", "title": "" }, { "docid": "591838a188f0a0c3dbca6cef5410d45c", "score": "0.67952526", "text": "public function comment_mail_notification() {\n // See sendmail.php for using PHP's standard built in mail() function\n\n $mail = new PHPMailer;\n\n // phpMailer reporting\n $mail->SMTPDebug = 3;\n\n // You can leave out the following section and PHPMailer will still function as a\n // class and mehtod, as detailed below, but will use the standard PHP Sendmail function.\n // In order to utilise the SMTP features of PHPMailer, set isSMTP() and your server details.\n\n // SMTP sending server configs\n $mail->isSMTP(); // Set mailer to use SMTP\n $mail->Host = SMTP_HOST; // Specify main and backup SMTP servers\n $mail->SMTPAuth = SMTP_AUTH; // Enable SMTP authentication\n $mail->Username = SMTP_USER; // SMTP username\n $mail->Password = SMTP_PASS; // SMTP password\n $mail->SMTPSecure = SMTP_SECURE; // Enable TLS encryption, `ssl` also accepted\n $mail->Port = SMTP_PORT; // TCP port to connect to\n // End of SMTP Configs\n\n // FROM: details\n $mail->From = SMTP_FROM;\n $mail->FromName = SMTP_FROMNAME;\n\n // Reply-To (if different)\n $mail->addReplyTo('[email protected]', 'User Name');\n\n // $to_name = \"User Name\";\n // $to = \"[email protected]\";\n\n // TO: details\n // $mail->addAddress($to, $to_name)\n $mail->addAddress('[email protected]', 'User Name'); // Add a recipient\n // $mail->addAddress('[email protected]'); // Name is optional\n\n // $mail->addCC('[email protected]');\n // $mail->addBCC('[email protected]');\n\n // Attachments\n // $mail->addAttachment('/var/tmp/file.tar.gz'); // Add attachments\n // $mail->addAttachment('/tmp/image.jpg', 'new.jpg'); // Optional name\n\n // Mail format\n $mail->isHTML(SMTP_ISHTML); // Set email format to HTML\n\n // Mail Subject\n $mail->Subject = SMTP_SUBJECT . strftime(\"%T\", time());\n\n // Mail Body\n // $mail->Body = 'A new comment has been received.';\n // $mail->AltBody = 'A new comment has been received.';\n\n // Format the created time more nicely.\n $created = datetime_to_text($this->created);\n // Ensure line endings are preserved even in HEREDOC HTML email output.\n $mail_body = nl2br($this->body);\n\n // Get all the photo attributes so we can use them in the email\n $photo = Photograph::find_by_id($_GET['id']);\n\n // Generate the email body with HEREDOC\n $mail->Body =<<<EMAILBODY\n\nA new comment has been received in the Photo Gallery.<br>\n<br>\nPhotograph: {$photo->filename}<br>\n<br>\nOn {$created}, {$this->author} wrote:<br>\n<br>\n{$mail_body}<br>\n\nEMAILBODY;\n\n // Process mail and Status feedback\n // if(!$mail->send()) {\n // echo 'Message could not be sent.';\n // echo 'Mailer Error: ' . $mail->ErrorInfo;\n // } else {\n // echo '<br><br><hr>';\n // echo 'Message has been sent';\n // }\n\n // Alternate process with no feedback\n $result = $mail->send();\n return $result;\n }", "title": "" }, { "docid": "41006bdd83f83ee20887f554b20dcb25", "score": "0.6722371", "text": "function post_comment() {\n $inputs = $this->validate_post_comment();\n $inputs['photo'] = \"\";\n if (!empty($_FILES['photo']['name'])) {\n $image_data = array(\n 'key' => 'photo',\n 'upload_path' => './uploads/comment_photo/'\n );\n $inputs['photo'] = upload_image($image_data);\n }\n $res = $this->TweetModel->post_comment($inputs);\n if ($res) {\n return_data(true, 'Success! Commented.', $res);\n }\n return_data(false, 'Error! while commenting', array());\n }", "title": "" }, { "docid": "1eba2ed8f50b8f6ea16c184d72be9ad9", "score": "0.6363033", "text": "function notifyCommenter( $email, $username, $postID, $what, $url, $secret, $users_posts_uid) {\n\t\t\n\t\t$baseURL = $this->conf['baseURL'];\n\t\t//$url = $this->postIdToUrl($baseURL, $postID, $what);\n\t\t$url = rtrim($baseURL, '/') . $url;\n\t\t$to = empty($this->conf['debugEmail']) ? $email : $this->conf['debugEmail']; \n\t//\t$to = empty($this->conf['debugEmail']) ? '[email protected]' : $this->conf['debugEmail']; //DEBUG\n\n\t\t//print_r($this->conf); //DEBUG\n\t\t$toName = $username; //DEBUG \n\t\t$threadNotificationOffUrl = $this->getThreadNotificationOffUrl($baseURL, $username, $secret, $users_posts_uid);\n\t\t$globalNotificationOffUrl = $this->getGlobalNotificationOffUrl($baseURL, $username, $secret);\n\t\t//$bcc = \"[email protected]\";\n\t\t$bcc = null;\n\t\t\n\t\t//If a debug email value is set,\n\t\tif (!empty($this->conf['debugEmail']) ) {\n\t\t\t//send email to each of the debug email addresses\n\t\t\t$toArray = $this->commaSeparatedList2Array($this->conf['debugEmail']);\n\t\t\tforeach ($toArray as $to) {\n\t\t\t\t$this->sendNotification($to, $toName, '[email protected]', 'Savvy Miss', $bcc, $url, $username, $threadNotificationOffUrl, $globalNotificationOffUrl);\n\t\t\t}\n\t\t} else {\n\t\t\t//otherwise send to the real recipient\n//\t\t\t$to = '[email protected]'; //jsdebug\n\t\t\t$this->sendNotification($to, $toName, '[email protected]', 'Savvy Miss', $bcc, $url, $username, $threadNotificationOffUrl, $globalNotificationOffUrl);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "26d5eeddcd2272dfd4992d935ddb238c", "score": "0.6330822", "text": "public function comment($img_id)\n {\n\n\n if ($this->isPost) {\n $content = $_POST['content'];\n if (strlen($content) < 1) {\n $this->setValidationError(\"content\", \"Comment too short.\");\n }\n\n $user_id = $_SESSION['user_id'];\n if ($this->formValid()) {\n\n if ($this->model->comments($user_id, $img_id, $content))\n $this->addInfoMessage(\"Successful.\");\n $this->redirect(\"gallery\");\n }\n else {\n $this->addErrorMessage(\"Error: cannot upload comment. Try again\");\n\n }\n }\n\n }", "title": "" }, { "docid": "fd164a0781a7820313c3d91c185f4126", "score": "0.62896353", "text": "private function sendEmails()\r\n {\r\n $user_body = \"Hi,<br>A new comment was added to the following article:\\n\";\r\n $user_body .= '<a href=\"http://'.$this->config->getModuleVar('common', 'site_url').'/id_article/'.$this->viewVar['article']['id_article'].'\">'.$this->viewVar['article']['title'].\"</a>\\n\";\r\n\r\n $_tmp_error = array();\r\n $user_text_body = strip_tags($user_body);\r\n\r\n $this->model->action( 'common', 'mailSendTo',\r\n array('charset' => $this->viewVar['charset'],\r\n 'bodyHtml' => & $user_body,\r\n 'bodyText' => & $user_text_body,\r\n 'to' => array(array('email' => '[email protected]',\r\n 'name' => 'Armand Turpel')),\r\n 'subject' => \"Open Publisher Blog Entry\",\r\n 'fromEmail' => '[email protected]',\r\n 'fromName' => '[email protected]',\r\n 'error' => & $_tmp_error\r\n ));\r\n\r\n }", "title": "" }, { "docid": "c41f2961aeadb48fb322291202ef3705", "score": "0.62189704", "text": "public function sendCommentEmail($appointment_id){\n try{\n\n // execute the query and extract the details of the particular appointment\n $appointment = new Appointment();\n $row = $appointment->getAppointmentData($appointment_id);\n\n $appointment_date = $row['appointment_date'];\n $start_time = $row['start_time'];\n $end_time = $row['end_time'];\n\n $emp_id = $row['emp_id'];\n $service_id = $row['service_id'];\n $cust_id = $row['cust_id'];\n\n // execute the query and extract the beautician name\n $beautician = new Employee();\n $row = $beautician->getEmployeeData($emp_id);\n $emp_first_name = $row['first_name'];\n $emp_last_name = $row['last_name'];\n\n // execute the query and extract the service name\n $service = new Service();\n $row = $service->getServiceData($service_id);\n $service_name = $row['description'];\n\n // execute the query and extract the email address of the customer\n $customer = new RegisteredCustomer();\n $row = $customer->getCustomerData($cust_id);\n self::$mail->addAddress($row['cust_email']);\n\n // unique link to comment\n $comment_link = \"http://localhost/AWEERA/customer-comment.php?appointment_id=\".$appointment_id.\"&start_time=\".$start_time.\"&end_time=\".$end_time.\"&appointment_date=\".$appointment_date.\"&service_name=\".$service_name.\"&first_name=\".$emp_first_name.\"&last_name=\".$emp_last_name.\"\";\n\n $bodyContent = \"<h1>Thank you for using our services.</h1>\";\n $bodyContent .= \"\n Please visit the below link and comment about the service you received.<br>\n <a href='$comment_link'>$comment_link</a>\n <br><br>Thank you!\n <br>AWEERA - Hair and Beauty</p>\";\n\n self::$mail->Subject = 'Email from AWEERA by TeamScorp';\n self::$mail->Body = $bodyContent;\n if(!self::$mail->send()) {\n echo \"<h4>Mail NOT sent</h4>\";\n } else {\n echo \"<h4>Mail has been sent successfully.</h4>\";\n }\n\n }\n catch (Exception $ex){\n echo $ex;\n }\n }", "title": "" }, { "docid": "b8f0d2ff978c6a3d3cb2d88e2dc8dd11", "score": "0.61660755", "text": "public function send_picture($subject, $picture, $data) {}", "title": "" }, { "docid": "09b865f26f0341fdf9f37a67d7867dc6", "score": "0.60953206", "text": "function comment_author_email($comment_id = 0)\n {\n }", "title": "" }, { "docid": "07f366837637dbbbe6814d13c1b23b54", "score": "0.60556144", "text": "public function sendPhoto($chat_id,$photo,$caption=null,$reply_to_message_id=null,$reply_markup=null,$disable_notification=null){\n return $this->make_http_request(__FUNCTION__,(object) get_defined_vars());\n }", "title": "" }, { "docid": "403ad5412e24d12c461601430202e137", "score": "0.6045075", "text": "function __sendNewComment($data = array()) \n { \n $model_url = \"http://{$_SERVER['HTTP_HOST']}\".$data['url'];\n $modelIfo = $this->Comment->$data['model']->find('first', array('contain'=>array('User'),'conditions'=>array($data['model'].'.id'=>$data['model_id'])));\n $authorInfo = $modelIfo['User'];\n $modelIfo = $modelIfo[$data['model']];\n $respondent = $this->Comment->User->find('first', array('contain'=>array(),'conditions'=>array('User.id'=>$data['user_id'])));\n $respondent = $respondent['User'];\n if (isset($modelIfo['user_id']) && $modelIfo['user_id'] == $this->getUserID()) {\n return true;\n }\n if (!empty($modelIfo['title'])) {\n $title = $modelIfo['title'];\n } elseif (!empty($modelIfo['name'])) {\n $title = $modelIfo['name']; \n } else {\n $title = $data['model'];\n }\n $result = $this->sendMailMessage(\n 'NewComment', array(\n '{MODEL}' => $data['model']\n ,'{MODEL_ID}' => $data['model_id']\n ,'{MODEL_URL}' => $model_url\n ,'{RESPONDENT_LGN}' => $respondent['lgn']\n ,'{RESPONDENT_USER_LINK}' => \"<a href='http://\".$_SERVER['HTTP_HOST'].\"/users/view/\".$respondent['lgn'].\"'>\".$respondent['lgn'].\"</a>\"\n ,'{REPLY}' => html_entity_decode($this->convert_bbcode($data['comment']), ENT_QUOTES, 'UTF-8')\n ,'{MODEL_LINK}' => \"<a href='\".$model_url.\"'>\".$title.\"</a>\"\n ,'{REPLY_LINK}' => \"<a href='\".$model_url.\"?reply_to=\".$data['id'].\"#comment_\".$data['id'].\"'>Reply on this comment</a>\"\n ,'{COMMENT_URL}' => \"{$model_url}#comment_\".$data['model_id']\n ),\n $authorInfo['email']\n );\n \n }", "title": "" }, { "docid": "77a7b0b9f7183d7c07fc499e0bd67033", "score": "0.5990717", "text": "public function addCommentToThePhotoAction()\n {\n \t$param = $this->getRequest()->getParams();\n \n \t$ret_r = array();\n \t\n \t$photo_id = $param['photo_id'] ;\n \t$photo_posted_by_user_id = $param['album_posted_by'];\n \t$comment = $param['comment'] ;\n \n \t//Making a entry to like table for wallpost.\n \t$filterObj = Zend_Registry::get('Zend_Filter_StripTags');\n \t$comm_text = nl2br($filterObj->filter($this->getRequest()->getParam( 'comment' ) ));\n \t$comment_on_photo_id = \\Extended\\comments::addComment( $comm_text, Auth_UserAdapter::getIdentity()->getId(), NULL, NULL, $photo_id );\n \t$comments_obj = \\Extended\\comments::getRowObject( $comment_on_photo_id );\n \n \t//setting comment count for photo\n \t\\Extended\\socialise_photo::commentCountIncreament( $photo_id );\n \t\t\t\n \t// get socialise photo object \n \t$socialisephoto_obj = \\Extended\\socialise_photo::getRowObject( $photo_id );\n \t\n \t\n \t//Adding comment for wallpost in comments table( for special case only. )\n \tif( $socialisephoto_obj->getWallPost() )\n \t{\n \t\tif( $socialisephoto_obj->getWallPost()->getPost_update_type() == \\Extended\\wall_post::POST_UPDATE_TYPE_PROFILE_PHOTO_CHANGED )\n \t\t{\n \t\t\t$wallpost_comment_id = \\Extended\\comments::addComment( $comm_text, Auth_UserAdapter::getIdentity()->getId(), null, $socialisephoto_obj->getWallPost()->getId() );\n \t\t\t//Adding same comment id in photo comment record.\n \t\t\t$photo_comment_obj = \\Extended\\comments::getRowObject($comment_on_photo_id);\n \t\t\t$photo_comment_obj->setSame_comment_id($wallpost_comment_id);\n \t\t\t$em = Zend_Registry::get('em');\n \t\t\t$em->persist( $photo_comment_obj );\n \t\t\t$em->flush();\n \t\t\t\n \t\t\t$ret_r['wallpost_id'] = $socialisephoto_obj->getWallPost()->getId();\n \t\t\t$ret_r['wallpost_comment_id'] = $wallpost_comment_id;\n \t\t}\n \t}\n \t\n \t/* \tIf there is single photo inside the group\n \t in default album, then also add comment for its\n \tassociated wallpost.\n \t*/\n \tif( $socialisephoto_obj->getPhotoGroup() )\n \t{\n \t\tif( $socialisephoto_obj->getPhotoGroup()->getSocialisePhoto()->count() == 1 )\n \t\t{\n \t\t\t$wallpost_comment_id = \\Extended\\comments::addComment( $comm_text, Auth_UserAdapter::getIdentity()->getId(), null, $socialisephoto_obj->getPhotoGroup()->getWallPost()->getId() );\n \t\t\t//Adding same comment id in photo comment record.\n \t\t\t$photo_comment_obj = \\Extended\\comments::getRowObject($comment_on_photo_id);\n \t\t\t$photo_comment_obj->setSame_comment_id($wallpost_comment_id);\n \t\t\t$em = Zend_Registry::get('em');\n \t\t\t$em->persist( $photo_comment_obj );\n \t\t\t$em->flush();\n \t\t\t$ret_r['wallpost_id'] = $socialisephoto_obj->getPhotoGroup()->getWallPost()->getId();\n \t\t\t$ret_r['wallpost_comment_id'] = $wallpost_comment_id;\n \t\t}\n \t}\n \t\n \t\t\t\n \t$ret_r['comment_id'] = $comment_on_photo_id;\n \t$ret_r['comm_text'] = $comm_text;\n \t$ret_r['commenter_id'] = Auth_UserAdapter::getIdentity()->getId();\n \t$ret_r['commenter_fname'] = Auth_UserAdapter::getIdentity()->getFirstname();\n \t$ret_r['commenter_lname'] = Auth_UserAdapter::getIdentity()->getLastname();\n \t$ret_r['commenter_small_image'] = Helper_common::getUserProfessionalPhoto(Auth_UserAdapter::getIdentity()->getId(), 3);\n \t$ret_r['comment_count'] = $socialisephoto_obj->getSocialise_photosComment()->count();\n \t$ret_r['created_at'] = Helper_common::nicetime( $comments_obj->getCreated_at()->format( \"Y-m-d H:i:s\" ));\n \t\n \t\n \t//gathering information for sending email to user on whom post, comment is done.\n \t$subject = \"iLook - User commented on your photo\";\n \t$msg='';\n \t$msg = \"<p style='margin:20px 20px 0 0; padding:0; font-size:14px; font-family:Arial, Helvetica, sans-serif; color:#3a3a3a'>\n \t\".ucfirst($ret_r['commenter_fname']).\" \".ucfirst($ret_r['commenter_lname']).\" commented on your photo</p>\n \t<p style='margin:20px 20px 0 0; padding:0; font-size:14px; font-family:Arial, Helvetica, sans-serif; color:#3a3a3a'>\n \t<b>'\".$ret_r['comm_text'].\"'</b>\n \t</p>\";\n \t$recipient_name = ucfirst($socialisephoto_obj->getSocialise_photosPosted_by()->getFirstname()).\" \".ucfirst($socialisephoto_obj->getSocialise_photosPosted_by()->getLastname());\n \t$recipient_email = $socialisephoto_obj->getSocialise_photosPosted_by()->getEmail();\n \t\t\n \t// check if user is not commenting on his own post, only then mail will be sent\n \tif(Auth_UserAdapter::getIdentity()->getId() != $socialisephoto_obj->getSocialise_photosPosted_by()->getId())\n \t{\n \t\t//sending email to user on whom post comment is done\n \t\t\\Email_Mailer::sendMail(\n $subject,\n \t\t\t\t$msg,\n \t\t\t\t$recipient_name,\n \t\t\t\t$recipient_email,\n \t\t\t\tarray(),\n \t\t\t\t\"iLook Team\",\n \t\t\t\tAuth_UserAdapter::getIdentity()->getEmail(),\n \t\t\t\t\"Hello \",\n \t\t\t\t\"Thank you\");\n \t}\n \t\n \techo Zend_Json::encode($ret_r);\n \t\t\n \tdie;\n }", "title": "" }, { "docid": "4e1fd6a1994163d40ab89684655040f2", "score": "0.59874994", "text": "function image(){\n // $msg: User's comment to help solve the problem\n if(isset($_SESSION['uID']) && !empty($_SESSION['uID']))\n return $this->obj->save('reports','quoteID,reason,description',\"'\".$this->id.\"','Something's wrong with an image - Quote ID: \".$this->id.\"','\".$this->msg.\"'\");\n else return false;\n //return sendMail('[email protected]',\"Something's wrong with an image - Quote ID: \".$this->id,$this->msg); //pass: =V-6Tkc?SbJ-\n }", "title": "" }, { "docid": "c368c22ce3b9a2578d5e60ea27dd1f67", "score": "0.5978896", "text": "public function commentpostAction()\n {\n $data = $this->getRequest()->getPost();\n $imageupload = $this->_initImageupload();\n $session = Mage::getSingleton('core/session');\n if ($imageupload) {\n if ($imageupload->getAllowComments()) {\n if ((Mage::getSingleton('customer/session')->isLoggedIn() ||\n Mage::getStoreConfigFlag('esparkinfo_imageuploader/imageupload/allow_guest_comment'))) {\n $comment = Mage::getModel('esparkinfo_imageuploader/imageupload_comment')->setData($data);\n $validate = $comment->validate();\n if ($validate === true) {\n try {\n $comment->setImageuploadId($imageupload->getId())\n ->setStatus(Esparkinfo_Imageuploader_Model_Imageupload_Comment::STATUS_PENDING)\n ->setCustomerId(Mage::getSingleton('customer/session')->getCustomerId())\n ->setStores(array(Mage::app()->getStore()->getId()))\n ->save();\n $session->addSuccess($this->__('Your comment has been accepted for moderation.'));\n } catch (Exception $e) {\n $session->setImageuploadCommentData($data);\n $session->addError($this->__('Unable to post the comment.'));\n }\n } else {\n $session->setImageuploadCommentData($data);\n if (is_array($validate)) {\n foreach ($validate as $errorMessage) {\n $session->addError($errorMessage);\n }\n } else {\n $session->addError($this->__('Unable to post the comment.'));\n }\n }\n } else {\n $session->addError($this->__('Guest comments are not allowed'));\n }\n } else {\n $session->addError($this->__('This imageupload does not allow comments'));\n }\n }\n $this->_redirectReferer();\n }", "title": "" }, { "docid": "76e36ef1dff26ad653f3ac66ea951bfd", "score": "0.59788114", "text": "public function enviar(){\n\t\t\t$email = array(\n\t\t \t\t'nome'=>$this->remover_caracter($this->nome),\n\t\t \t\t'email'=>$this->email,\n\t\t\t\t'assunto'=>$this->remover_caracter($this->assunto),\n\t\t \t\t'texto'=>$this->remover_caracter($this->mensagem)\n\t\t\t);\n\t\t\tif( is_file($this->logo) ){\n\t\t\t\t$imagem_nome=$this->logo;\n\t\t\t\t$arquivo=fopen($imagem_nome,'r');\n\t\t\t\t$contents = fread($arquivo, filesize($imagem_nome));\n\t\t\t\t$encoded_attach = chunk_split(base64_encode($contents));\n\t\t\t\tfclose($arquivo);\n\t\t\t}\n\t\t\t$limitador = \"_=======\". date('YmdHms'). time() . \"=======_\";\n\n\t\t\t$mailheaders = \"From: \".$email['email'].\"\\r\\n\";\n\t\t\t$mailheaders .= \"MIME-version: 1.0\\r\\n\";\n\t\t\t$mailheaders .= \"Content-type: multipart/related; boundary=\\\"$limitador\\\"\\r\\n\";\n\t\t\t$cid = date('YmdHms').'.'.time();\n\n\t\t\t$texto=\"\n\t\t\t\t<html>\n\t\t\t\t<head>\n\t\t\t\t\t\".header('Content-type: text/html; charset=utf-8').\"\n\t\t\t\t</head>\n\t\t\t\t<body>\n\t\t\t\t\t<img src=\\\"cid:$cid\\\">\n\t\t\t\t\t<h1>Desenvolvedor avulso para Web</h1>\n\t\t\t\t\t<br>\n\t\t\t\t\t<p><strong>\".$email['nome'].\"</strong>: Solicitou contato, sobre :<em>\".$email['assunto'].\"</em></p>\n\t\t\t\t\t<p>com a seguinte mensagem: <span>\".$email['texto'].\"</span></p>\n\t\t\t\t\t<p>email: \".$email['email'].\"</p>\n\t\t\t\t\t<a href='http://\". $this->url .\"'><font size=3>\". $this->url .\"</font></a>\n\t\t\t\t</body>\n\t\t\t\t</html>\n\t\t\t\";\n\n\t\t\t$msg_body = \"--$limitador\\r\\n\";\n\t\t\t$msg_body .= \"Content-type: text/html; charset=iso-8859-1\\r\\n\";\n\t\t\t$msg_body .= \"$texto\";\n\n\t\t\t$emailPara = explode('@',$this->para)[1];\n\t\t\treturn mail($this->para ,\"Um novo Cliente Contactou o Site \". $emailPara ,$msg_body, $mailheaders);\n\t\t}", "title": "" }, { "docid": "aeecc64435a32ea75ac859d3e20931b9", "score": "0.5863881", "text": "static function comment_post($id_comment){\n if(!(($id_user = PDOQueries::get_post_publisher_id_by_comment($id_comment)) > 0) || !(($id_post = PDOQueries::get_post_id_by_comment($id_comment)) > 0) || !(($id_publisher = PDOQueries::get_publisher_id($id_post)) > 0))\n throw new \\PersonalizeException(2001);\n $marker = '{comment_post}{id_publisher/'.$id_user.'}';\n $link = 'index.php?'.Navigation::$navigation_marker.'='.Timeline::$post_id_page.'#'.$id_post.$id_comment;\n return PDOQueries::add_notification($id_publisher,$marker,$link);\n }", "title": "" }, { "docid": "7066b93892a0e9a73014502137e19410", "score": "0.5861009", "text": "function comment_notification_text($notify_message, $comment_id) {\n extract($this->get_comment_data($comment_id));\n if ($comment->comment_type == 'facebook') {\n ob_start();\n $content = strip_tags($comment->comment_content);\n ?>\nNew Facebook Comment on your post \"<?php echo $post->post_title ?>\"\n\nAuthor : <?php echo $comment->comment_author ?> \nURL : <?php echo $comment->comment_author_url ?> \n\nComment:\n\n<?php echo $content ?> \n\nParticipate in the conversation here:\n<?php echo $this->get_permalink($post->ID) ?> \n\n <?php\n return ob_get_clean();\n } else {\n return $notify_message;\n }\n }", "title": "" }, { "docid": "f33ffa05d40eaf53adc83c1704357eef", "score": "0.5821092", "text": "public function send_picture($picture) {}", "title": "" }, { "docid": "f33ffa05d40eaf53adc83c1704357eef", "score": "0.5821092", "text": "public function send_picture($picture) {}", "title": "" }, { "docid": "f33ffa05d40eaf53adc83c1704357eef", "score": "0.5821092", "text": "public function send_picture($picture) {}", "title": "" }, { "docid": "f33ffa05d40eaf53adc83c1704357eef", "score": "0.5821092", "text": "public function send_picture($picture) {}", "title": "" }, { "docid": "f33ffa05d40eaf53adc83c1704357eef", "score": "0.5821092", "text": "public function send_picture($picture) {}", "title": "" }, { "docid": "f33ffa05d40eaf53adc83c1704357eef", "score": "0.5821092", "text": "public function send_picture($picture) {}", "title": "" }, { "docid": "f33ffa05d40eaf53adc83c1704357eef", "score": "0.5821092", "text": "public function send_picture($picture) {}", "title": "" }, { "docid": "f33ffa05d40eaf53adc83c1704357eef", "score": "0.5821092", "text": "public function send_picture($picture) {}", "title": "" }, { "docid": "f33ffa05d40eaf53adc83c1704357eef", "score": "0.5821092", "text": "public function send_picture($picture) {}", "title": "" }, { "docid": "f33ffa05d40eaf53adc83c1704357eef", "score": "0.5821092", "text": "public function send_picture($picture) {}", "title": "" }, { "docid": "5c6e18c1de53bf3c9deb46f6bd761462", "score": "0.5783567", "text": "public function onHelpdeskProcessEmail($observer)\n {\n $event = $observer->getEvent();\n $ticket = $event->getTicket();\n $customer = $event->getCustomer();\n $user = $event->getUser();\n\n $text = $event->getBody();\n if (!$rmaId = $ticket->getRmaId()) {\n return;\n }\n $rma = Mage::getModel('rma/rma')->load($rmaId);\n if (!$rma->getId()) {\n return;\n }\n\n $rma->addComment($text, false, $customer, $user, true, true, true, true);\n }", "title": "" }, { "docid": "f72c70fe6659681937e2524319469fd1", "score": "0.5782336", "text": "function _sendPhoto($chatId, $photo, $caption = null){\n \n $data = [\n 'chat_id' => $chatId,\n 'photo' => $photo,\n 'caption' => $caption\n ];\n\n return Request('sendPhoto', $data);\n}", "title": "" }, { "docid": "410905aa95505848bf9e1b4040694787", "score": "0.57562053", "text": "function picture($photo_id, $message, $additional_values = null, $additional_parameters = null) {\n $default_parameters = array(\n 'parse_mode' => 'HTML'\n );\n $final_parameters = unite_arrays($default_parameters, $additional_parameters);\n\n return telegram_send_photo(\n $this->chat_id,\n $photo_id,\n $this->hydrate_text($message, $additional_values),\n $final_parameters\n );\n }", "title": "" }, { "docid": "dc1b7ddad192a8800525d36b0a33d20d", "score": "0.57367975", "text": "protected function sendEmailNotification() {\n // if ($opponent == 'b') {\n // $oid = $game['black'];\n // }\n // else {\n // $oid = $game['white'];\n // }\n // $email=ioLoadUserEmailAddress($oid);\n $email = FALSE; // Hugh - force following condition to be FALSE\n if ($email) {\n $prot = ($GLOBALS['_SERVER']['HTTPS'] == 'on') ? 'https' : 'http';\n $url = $prot . '://' . $GLOBALS['_SERVER']['HTTP_HOST'] . $GLOBALS['_SERVER']['SCRIPT_NAME'] . '?gid=' . $gid;\n $message = \"Dear $oid\\n\\n$uid has just moved.\\n\\nMove:\\n$move\\n\\nIt is your turn now!\\n\\nEnter the game:\\n$url\";\n mail($email, \"[OCC] \" . $game['white'] . \"vs\" . $game['black'] . \": $move->long_format()\",\n $message, 'From: ' . $mail_from);\n }\n\n }", "title": "" }, { "docid": "2ea8750d3c8a0730db4c9c38cbb42d6b", "score": "0.5733287", "text": "public function comment()\n {\n $commentManager = new CommentManager();\n \n $comment = $commentManager->getComment($_GET['id']);\n \n require (__DIR__ . '/../view/frontend/commentView.php');\n }", "title": "" }, { "docid": "39eeea3652b8050ae5a0fd991af13eb9", "score": "0.57315326", "text": "function lightboxgallery_print_comment($comment, $context) {\n global $DB, $CFG, $COURSE, $OUTPUT;\n\n //TODO: Move to renderer!\n\n $user = $DB->get_record('user', array('id' => $comment->userid));\n\n $deleteurl = new moodle_url('/mod/lightboxgallery/comment.php', array('id' => $comment->gallery, 'delete' => $comment->id));\n\n echo '<table cellspacing=\"0\" width=\"50%\" class=\"boxaligncenter datacomment forumpost\">'.\n '<tr class=\"header\"><td class=\"picture left\">'.$OUTPUT->user_picture($user, array('courseid' => $COURSE->id)).'</td>'.\n '<td class=\"topic starter\" align=\"left\"><a name=\"c'.$comment->id.'\"></a><div class=\"author\">'.\n '<a href=\"'.$CFG->wwwroot.'/user/view.php?id='.$user->id.'&amp;course='.$COURSE->id.'\">'.\n fullname($user, has_capability('moodle/site:viewfullnames', $context)).'</a> - '.userdate($comment->timemodified).\n '</div></td></tr>'.\n '<tr><td class=\"left side\">'.\n // TODO: user_group picture?\n '</td><td class=\"content\" align=\"left\">'.\n format_text($comment->comment, FORMAT_MOODLE).\n '<div class=\"commands\">'.\n (has_capability('mod/lightboxgallery:edit', $context) ? html_writer::link($deleteurl, get_string('delete')) : '').\n '</div>'.\n '</td></tr></table>';\n}", "title": "" }, { "docid": "7080880bc7babb12ca7476ed97a1d97e", "score": "0.5723581", "text": "public function sendNotificationEmail($observer)\n {\n $needSend = Mage::getStoreConfig('catalog/review/need_send');\n $mailTo = Mage::getStoreConfig('catalog/review/email_to');\n $emailTemplate = Mage::getStoreConfig('catalog/review/email_template');\n $emailIdentity = Mage::getStoreConfig('catalog/review/email_identity');\n\n /** @var Mage_Review_Model_Review $review */\n $review = $observer->getData('object');\n\n if (($needSend) && (strlen(trim($mailTo)) > 0)) {\n /** @var Mage_Catalog_Model_Product $product */\n $product = Mage::getModel('catalog/product')->load($review->getEntityPkValue());\n /** @var Mage_Core_Model_Email_Template $templateModel */\n $templateModel = Mage::getModel('core/email_template')->setDesignConfig(array('area' => 'backend'));\n\n $recipients = explode(\",\", $mailTo);\n foreach ($recipients as $recipient) {\n $datetime = Zend_Date::now();\n $datetime->setLocale(Mage::getStoreConfig(\n Mage_Core_Model_Locale::XML_PATH_DEFAULT_LOCALE))\n ->setTimezone(Mage::getStoreConfig(Mage_Core_Model_Locale::XML_PATH_DEFAULT_TIMEZONE));\n\n $templateModel->sendTransactional(\n $emailTemplate,\n $emailIdentity,\n trim($recipient),\n trim($recipient),\n array(\n \"product\" => $product->getName() . \" (sku: \" . $product->getSku() . \")\",\n \"title\" => $review->getData('title'),\n \"nickname\" => $review->getData('nickname'),\n \"details\" => $review->getData('detail'),\n \"id\" => $review->getId(),\n 'date' => $datetime->get(Zend_Date::DATETIME_MEDIUM)\n )\n );\n }\n }\n }", "title": "" }, { "docid": "62cd9d298623a05b9f1146a41008cbf3", "score": "0.5693852", "text": "public function addComment($photo_uid, $comment) {\r\n\t\ttx_cwtcommunity_lib_common::dbUpdateQuery('INSERT INTO tx_cwtcommunity_photo_comments (pid, crdate, cruser_id, photo_uid, text) VALUES ('.tx_cwtcommunity_lib_common::getGlobalStorageFolder().',\"'.time().'\", \"'.tx_cwtcommunity_lib_common::getLoggedInUserUID().'\", \"'.$photo_uid.'\", \"'.$comment.'\");');\r\n\t}", "title": "" }, { "docid": "2665711e370c958769585378c9051aa9", "score": "0.56927615", "text": "function comment_post($post_id,$enroll,$username){\n $user_image = $this->user_picture($username, $enroll);\n echo \"</div><div class='logged_com' >\"\n .\"<form action='#{$post_id}' method='post'>\"\n .\"<input type='hidden' value='$post_id' name='post_id' />\"\n .\"<input type='hidden' value='$enroll' name='user_enroll' />\"\n .\"<input type='hidden' name='comment' class='comment' value='comment' />\"\n .\"<img src='../$user_image' width='30px' height='30px' text-align='center' class='comment_photo img-circle posterimg' />\"\n .\"<div class='msg_com'><input type='text' width='80%' placeholder='Throw comment.....' class='msg_comm' name='com' maxlength=\\\"1024\\\" />\"\n .\"<span class='rule _petc'>Press Enter to Comment</span><input class='select-frnd' type='submit' value='Comment' />\"\n .\"</div></form></div></div></div></div>\";\n\t}", "title": "" }, { "docid": "3c06ba779c0deb91b9a70b114fdc6f0e", "score": "0.56802803", "text": "function channel_picture($photo_id, $message, $additional_values = null) {\n if(!$this->owning_context->game->game_channel_name) {\n Logger::info(\"Cannot send picture to channel (channel not set)\", __FILE__, $this->owning_context);\n\n return;\n }\n\n if($this->owning_context->game->game_channel_censor) {\n Logger::debug('Photo not sent to channel because of censorship settings', __FILE__, $this->owning_context);\n\n return $this->channel($message, $additional_values);\n }\n else {\n return telegram_send_photo(\n $this->owning_context->game->game_channel_name,\n $photo_id,\n $this->hydrate_text($message, $additional_values)\n );\n }\n }", "title": "" }, { "docid": "141085eccaf4d53e21d65c2883ff8b2e", "score": "0.5652436", "text": "public function addCommentToTheAlbumAction()\n{\n\t\t$current_user_obj = Auth_UserAdapter::getIdentity();\n\ttry {\n\t\t//getting the album's object.\n\t\t$album_obj = \\Extended\\socialise_album::getRowObject( $this->getRequest()->getParam( 'album_id' ) );\n\n\t\tif( $album_obj )\n\t\t{\n\t\t\t//Making a entry to comment table for album's comment .\n\t\t\t$filterObj = Zend_Registry::get('Zend_Filter_StripTags');\n\t\t\t$comm_text = $filterObj->filter( $this->getRequest()->getParam( 'comment' ) );\n\t\t\t \n\t\t\t$comment_on_album_id = \\Extended\\comments::addComment( $comm_text, $current_user_obj->getId(), null, NULL, NULL, $album_obj->getId() );\n\t\t\t \n\t\t\t$comments_obj = \\Extended\\comments::getRowObject( $comment_on_album_id );\n\t\t\t \n\t\t\t \n\t\t\t$ret_r = array();\n\t\t\t$ret_r['comm_id'] = $comment_on_album_id;\n\t\t\t$ret_r['comm_text'] = $comm_text;\n\t\t\t$ret_r['commenter_id'] = $current_user_obj->getId();\n\t\t\t$ret_r['commenter_fname'] = $current_user_obj->getFirstname();\n\t\t\t$ret_r['commenter_lname'] = $current_user_obj->getLastname();\n\t\t\t$ret_r['commenter_small_image'] = Helper_common::getUserProfessionalPhoto($current_user_obj->getId(), 3);\n\t\t\t$ret_r['comment_count'] = $album_obj->getSocialise_albumsComment()->count();\n\t\t\t$ret_r['wp_id'] = $album_obj->getId();\n\t\t\t$ret_r['created_at'] = Helper_common::nicetime( $comments_obj->getCreated_at()->format( \"Y-m-d H:i:s\" ));\n\t\t\t\n\t\t\t//gathering information for sending email to user on whom post, comment is done.\n\t\t\t$subject = \"iLook - User commented on your album\";\n\t\t\t$msg='';\n\t\t\t$msg = \"<p style='margin:20px 20px 0 0; padding:0; font-size:14px; font-family:Arial, Helvetica, sans-serif; color:#3a3a3a'>\n\t\t\t\".ucfirst($ret_r['commenter_fname']).\" \".ucfirst($ret_r['commenter_lname']).\" commented on your <a href='\".PROJECT_URL.'/'.PROJECT_NAME.\"profile/photos/uid/\".$album_obj->getSocialise_albumIlook_user()->getId().\"/id/\".$ret_r['wp_id'].\"'>album</a></p>\n\t\t\t<p style='margin:20px 20px 0 0; padding:0; font-size:14px; font-family:Arial, Helvetica, sans-serif; color:#3a3a3a'>\n\t\t\t<b>'\".$ret_r['comm_text'].\"'</b>\n\t\t\t</p>\";\n\t\t\t$recipient_name = ucfirst($album_obj->getSocialise_albumIlook_user()->getFirstname()).\" \".ucfirst($album_obj->getSocialise_albumIlook_user()->getLastname());\n\t\t\t$recipient_email = $album_obj->getSocialise_albumIlook_user()->getEmail();\n\t\t\t\n\t\t\t// check if user is not commenting on his own post, only then mail will be sent\n\t\t\tif(Auth_UserAdapter::getIdentity()->getId() != $album_obj->getSocialise_albumIlook_user()->getId())\n\t\t\t{\n\t\t\t\t//sending email to user on whom post comment is done\n\t\t\t\t\\Email_Mailer::sendMail($subject,\n\t\t\t\t\t\t$msg,\n\t\t\t\t\t\t$recipient_name,\n\t\t\t\t\t\t$recipient_email,\n\t\t\t\t\t\tarray(),\n\t\t\t\t\t\t\"iLook Team\",\n\t\t\t\t\t\tAuth_UserAdapter::getIdentity()->getEmail(),\n\t\t\t\t\t\t\"Hello \",\n\t\t\t\t\t\t\"Thank you\");\n \t\t\n\t\t\t}\n\t\t\techo Zend_Json::encode($ret_r);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//Album does not exist anymore.\n\t\t\techo Zend_Json::encode(2);\n\t\t}\n\t}\n\tcatch (Exception $e)\n\t{\n\t\techo Zend_Json::encode(0);\n\t}\n\tdie;\n}", "title": "" }, { "docid": "95dba967cb3b707c2af61696ac465293", "score": "0.56424123", "text": "static public function sendCitation($data,$email,$user,$name){\n $mail = new PHPMailer(true);\n\n try {\n //Server settings\n $mail->SMTPDebug = 0 ; // Enable verbose debug output\n $mail->isSMTP(); // Send using SMTP\n $mail->Host = 'smtp.gmail.com'; // Set the SMTP server to send through\n $mail->SMTPAuth = true; // Enable SMTP authentication\n $mail->Username = '[email protected]'; // SMTP username\n $mail->Password = 'Int3rc@mb1ar'; // SMTP password\n $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; // Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS` encouraged\n $mail->Port = 587; // TCP port to connect to, use 465 for `PHPMailer::ENCRYPTION_SMTPS` above\n \n //Recipients\n $mail->setFrom('[email protected]');\n $mail->addAddress($email); // Add a recipient\n \n \n \n // Content\n $mail->isHTML(true); // Set email format to HTML\n $mail->Subject = 'Citacion de Intercambio';\n $mail->Body ='<!DOCTYPE html>\n <html lang=\"en\" >\n <head>\n <meta charset=\"UTF-8\">\n <title>CodePen - Welcome Mail Kısa</title>\n \n \n </head>\n <body>\n <!-- partial:index.partial.html -->\n <head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=US-ASCII\">\n <meta name=\"viewport\" content=\"width=device-width\">\n \n \n </head>\n \n <body style=\"-moz-box-sizing: border-box; -ms-text-size-adjust: 100%; -webkit-box-sizing: border-box; -webkit-text-size-adjust: 100%; box-sizing: border-box; color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 22px; margin: 0; min-width: 100%; padding: 0; text-align: left; width: 100% !important\"><style type=\"text/css\">\n body {\n width: 100% !important; min-width: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; margin: 0; padding: 0; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;\n }\n .ExternalClass {\n width: 100%;\n }\n .ExternalClass {\n line-height: 100%;\n }\n #backgroundTable {\n margin: 0; padding: 0; width: 100% !important; line-height: 100% !important;\n }\n img {\n outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; clear: both; display: block;\n }\n body {\n color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-weight: normal; padding: 0; margin: 0; text-align: left; line-height: 1.3;\n }\n body {\n font-size: 16px; line-height: 1.3;\n }\n a:hover {\n color: #1f54ed;\n }\n a:active {\n color: #1f54ed;\n }\n a:visited {\n color: #EF7F1A;\n }\n h1 a:visited {\n color: #EF7F1A;\n }\n h2 a:visited {\n color: #EF7F1A;\n }\n h3 a:visited {\n color: #EF7F1A;\n }\n h4 a:visited {\n color: #EF7F1A;\n }\n h5 a:visited {\n color: #EF7F1A;\n }\n h6 a:visited {\n color: #EF7F1A;\n }\n table.button:hover table tr td a {\n color: #FFFFFF;\n }\n table.button:active table tr td a {\n color: #FFFFFF;\n }\n table.button table tr td a:visited {\n color: #FFFFFF;\n }\n table.button.tiny:hover table tr td a {\n color: #FFFFFF;\n }\n table.button.tiny:active table tr td a {\n color: #FFFFFF;\n }\n table.button.tiny table tr td a:visited {\n color: #FFFFFF;\n }\n table.button.small:hover table tr td a {\n color: #FFFFFF;\n }\n table.button.small:active table tr td a {\n color: #FFFFFF;\n }\n table.button.small table tr td a:visited {\n color: #FFFFFF;\n }\n table.button.large:hover table tr td a {\n color: #FFFFFF;\n }\n table.button.large:active table tr td a {\n color: #FFFFFF;\n }\n table.button.large table tr td a:visited {\n color: #FFFFFF;\n }\n table.button:hover table td {\n background: #1f54ed; color: #FFFFFF;\n }\n table.button:visited table td {\n background: #1f54ed; color: #FFFFFF;\n }\n table.button:active table td {\n background: #1f54ed; color: #FFFFFF;\n }\n table.button:hover table a {\n border: 0 solid #1f54ed;\n }\n table.button:visited table a {\n border: 0 solid #1f54ed;\n }\n table.button:active table a {\n border: 0 solid #1f54ed;\n }\n table.button.secondary:hover table td {\n background: #fefefe; color: #FFFFFF;\n }\n table.button.secondary:hover table a {\n border: 0 solid #fefefe;\n }\n table.button.secondary:hover table td a {\n color: #FFFFFF;\n }\n table.button.secondary:active table td a {\n color: #FFFFFF;\n }\n table.button.secondary table td a:visited {\n color: #FFFFFF;\n }\n table.button.success:hover table td {\n background: #009482;\n }\n table.button.success:hover table a {\n border: 0 solid #009482;\n }\n table.button.alert:hover table td {\n background: #ff6131;\n }\n table.button.alert:hover table a {\n border: 0 solid #ff6131;\n }\n table.button.warning:hover table td {\n background: #fcae1a;\n }\n table.button.warning:hover table a {\n border: 0px solid #fcae1a;\n }\n .thumbnail:hover {\n box-shadow: 0 0 6px 1px rgba(78,120,241,0.5);\n }\n .thumbnail:focus {\n box-shadow: 0 0 6px 1px rgba(78,120,241,0.5);\n }\n body.outlook p {\n display: inline !important;\n }\n body {\n font-weight: normal; font-size: 16px; line-height: 22px;\n }\n @media only screen and (max-width: 596px) {\n .small-float-center {\n margin: 0 auto !important; float: none !important; text-align: center !important;\n }\n .small-text-center {\n text-align: center !important;\n }\n .small-text-left {\n text-align: left !important;\n }\n .small-text-right {\n text-align: right !important;\n }\n .hide-for-large {\n display: block !important; width: auto !important; overflow: visible !important; max-height: none !important; font-size: inherit !important; line-height: inherit !important;\n }\n table.body table.container .hide-for-large {\n display: table !important; width: 100% !important;\n }\n table.body table.container .row.hide-for-large {\n display: table !important; width: 100% !important;\n }\n table.body table.container .callout-inner.hide-for-large {\n display: table-cell !important; width: 100% !important;\n }\n table.body table.container .show-for-large {\n display: none !important; width: 0; mso-hide: all; overflow: hidden;\n }\n table.body img {\n width: auto; height: auto;\n }\n table.body center {\n min-width: 0 !important;\n }\n table.body .container {\n width: 95% !important;\n }\n table.body .columns {\n height: auto !important; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; padding-left: 16px !important; padding-right: 16px !important;\n }\n table.body .column {\n height: auto !important; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; padding-left: 16px !important; padding-right: 16px !important;\n }\n table.body .columns .column {\n padding-left: 0 !important; padding-right: 0 !important;\n }\n table.body .columns .columns {\n padding-left: 0 !important; padding-right: 0 !important;\n }\n table.body .column .column {\n padding-left: 0 !important; padding-right: 0 !important;\n }\n table.body .column .columns {\n padding-left: 0 !important; padding-right: 0 !important;\n }\n table.body .collapse .columns {\n padding-left: 0 !important; padding-right: 0 !important;\n }\n table.body .collapse .column {\n padding-left: 0 !important; padding-right: 0 !important;\n }\n td.small-1 {\n display: inline-block !important; width: 8.333333% !important;\n }\n th.small-1 {\n display: inline-block !important; width: 8.333333% !important;\n }\n td.small-2 {\n display: inline-block !important; width: 16.666666% !important;\n }\n th.small-2 {\n display: inline-block !important; width: 16.666666% !important;\n }\n td.small-3 {\n display: inline-block !important; width: 25% !important;\n }\n th.small-3 {\n display: inline-block !important; width: 25% !important;\n }\n td.small-4 {\n display: inline-block !important; width: 33.333333% !important;\n }\n th.small-4 {\n display: inline-block !important; width: 33.333333% !important;\n }\n td.small-5 {\n display: inline-block !important; width: 41.666666% !important;\n }\n th.small-5 {\n display: inline-block !important; width: 41.666666% !important;\n }\n td.small-6 {\n display: inline-block !important; width: 50% !important;\n }\n th.small-6 {\n display: inline-block !important; width: 50% !important;\n }\n td.small-7 {\n display: inline-block !important; width: 58.333333% !important;\n }\n th.small-7 {\n display: inline-block !important; width: 58.333333% !important;\n }\n td.small-8 {\n display: inline-block !important; width: 66.666666% !important;\n }\n th.small-8 {\n display: inline-block !important; width: 66.666666% !important;\n }\n td.small-9 {\n display: inline-block !important; width: 75% !important;\n }\n th.small-9 {\n display: inline-block !important; width: 75% !important;\n }\n td.small-10 {\n display: inline-block !important; width: 83.333333% !important;\n }\n th.small-10 {\n display: inline-block !important; width: 83.333333% !important;\n }\n td.small-11 {\n display: inline-block !important; width: 91.666666% !important;\n }\n th.small-11 {\n display: inline-block !important; width: 91.666666% !important;\n }\n td.small-12 {\n display: inline-block !important; width: 100% !important;\n }\n th.small-12 {\n display: inline-block !important; width: 100% !important;\n }\n .columns td.small-12 {\n display: block !important; width: 100% !important;\n }\n .column td.small-12 {\n display: block !important; width: 100% !important;\n }\n .columns th.small-12 {\n display: block !important; width: 100% !important;\n }\n .column th.small-12 {\n display: block !important; width: 100% !important;\n }\n table.body td.small-offset-1 {\n margin-left: 8.333333% !important;\n }\n table.body th.small-offset-1 {\n margin-left: 8.333333% !important;\n }\n table.body td.small-offset-2 {\n margin-left: 16.666666% !important;\n }\n table.body th.small-offset-2 {\n margin-left: 16.666666% !important;\n }\n table.body td.small-offset-3 {\n margin-left: 25% !important;\n }\n table.body th.small-offset-3 {\n margin-left: 25% !important;\n }\n table.body td.small-offset-4 {\n margin-left: 33.333333% !important;\n }\n table.body th.small-offset-4 {\n margin-left: 33.333333% !important;\n }\n table.body td.small-offset-5 {\n margin-left: 41.666666% !important;\n }\n table.body th.small-offset-5 {\n margin-left: 41.666666% !important;\n }\n table.body td.small-offset-6 {\n margin-left: 50% !important;\n }\n table.body th.small-offset-6 {\n margin-left: 50% !important;\n }\n table.body td.small-offset-7 {\n margin-left: 58.333333% !important;\n }\n table.body th.small-offset-7 {\n margin-left: 58.333333% !important;\n }\n table.body td.small-offset-8 {\n margin-left: 66.666666% !important;\n }\n table.body th.small-offset-8 {\n margin-left: 66.666666% !important;\n }\n table.body td.small-offset-9 {\n margin-left: 75% !important;\n }\n table.body th.small-offset-9 {\n margin-left: 75% !important;\n }\n table.body td.small-offset-10 {\n margin-left: 83.333333% !important;\n }\n table.body th.small-offset-10 {\n margin-left: 83.333333% !important;\n }\n table.body td.small-offset-11 {\n margin-left: 91.666666% !important;\n }\n table.body th.small-offset-11 {\n margin-left: 91.666666% !important;\n }\n table.body table.columns td.expander {\n display: none !important;\n }\n table.body table.columns th.expander {\n display: none !important;\n }\n table.body .right-text-pad {\n padding-left: 10px !important;\n }\n table.body .text-pad-right {\n padding-left: 10px !important;\n }\n table.body .left-text-pad {\n padding-right: 10px !important;\n }\n table.body .text-pad-left {\n padding-right: 10px !important;\n }\n table.menu {\n width: 100% !important;\n }\n table.menu td {\n width: auto !important; display: inline-block !important;\n }\n table.menu th {\n width: auto !important; display: inline-block !important;\n }\n table.menu.vertical td {\n display: block !important;\n }\n table.menu.vertical th {\n display: block !important;\n }\n table.menu.small-vertical td {\n display: block !important;\n }\n table.menu.small-vertical th {\n display: block !important;\n }\n table.menu[align=\"center\"] {\n width: auto !important;\n }\n table.button.small-expand {\n width: 100% !important;\n }\n table.button.small-expanded {\n width: 100% !important;\n }\n table.button.small-expand table {\n width: 100%;\n }\n table.button.small-expanded table {\n width: 100%;\n }\n table.button.small-expand table a {\n text-align: center !important; width: 100% !important; padding-left: 0 !important; padding-right: 0 !important;\n }\n table.button.small-expanded table a {\n text-align: center !important; width: 100% !important; padding-left: 0 !important; padding-right: 0 !important;\n }\n table.button.small-expand center {\n min-width: 0;\n }\n table.button.small-expanded center {\n min-width: 0;\n }\n table.body .container {\n width: 100% !important;\n }\n }\n @media only screen and (min-width: 732px) {\n table.body table.milkyway-email-card {\n width: 525px !important;\n }\n table.body table.emailer-footer {\n width: 525px !important;\n }\n }\n @media only screen and (max-width: 731px) {\n table.body table.milkyway-email-card {\n width: 320px !important;\n }\n table.body table.emailer-footer {\n width: 320px !important;\n }\n }\n @media only screen and (max-width: 320px) {\n table.body table.milkyway-email-card {\n width: 100% !important; border-radius: 0; box-sizing: none;\n }\n table.body table.emailer-footer {\n width: 100% !important; border-radius: 0; box-sizing: none;\n }\n }\n @media only screen and (max-width: 280px) {\n table.body table.milkyway-email-card .milkyway-content {\n width: 100% !important;\n }\n }\n @media (min-width: 596px) {\n .milkyway-header {\n width: 11%;\n }\n }\n @media (max-width: 596px) {\n .milkyway-header {\n width: 50%;\n }\n .emailer-footer .emailer-border-bottom {\n border-bottom: 0.5px solid #E2E5E7;\n }\n .emailer-footer .make-you-smile {\n margin-top: 24px;\n }\n .emailer-footer .make-you-smile .email-tag-line {\n width: 80%; position: relative; left: 10%;\n }\n .emailer-footer .make-you-smile .universe-address {\n margin-bottom: 10px !important;\n }\n .emailer-footer .make-you-smile .email-tag-line {\n margin-bottom: 10px !important;\n }\n .have-questions-text {\n width: 70%;\n }\n .hide-on-small {\n display: none;\n }\n .product-card-stacked-row .thumbnail-image {\n max-width: 32% !important;\n }\n .product-card-stacked-row .thumbnail-content p {\n width: 64%;\n }\n .welcome-subcontent {\n text-align: left; margin: 20px 0 10px;\n }\n .milkyway-title {\n padding: 16px;\n }\n .meta-data {\n text-align: center;\n }\n .label {\n text-align: center;\n }\n .welcome-email .wavey-background-subcontent {\n width: calc(100% - 32px);\n }\n }\n @media (min-width: 597px) {\n .emailer-footer .show-on-mobile {\n display: none;\n }\n .emailer-footer .emailer-border-bottom {\n border-bottom: none;\n }\n .have-questions-text {\n border-bottom: none;\n }\n .hide-on-large {\n display: none;\n }\n .milkyway-title {\n padding: 55px 55px 16px;\n }\n }\n @media only screen and (max-width: 290px) {\n table.container.your-tickets .tickets-container {\n width: 100%;\n }\n }\n </style>\n <table class=\"body\" data-made-with-foundation=\"\" style=\"background: #FAFAFA; border-collapse: collapse; border-spacing: 0; color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; height: 100%; line-height: 1.3; margin: 0; padding: 0; text-align: left; vertical-align: top; width: 100%\" bgcolor=\"#FAFAFA\">\n <tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\">\n <td class=\"center\" align=\"center\" valign=\"top\" style=\"-moz-hyphens: auto; -webkit-hyphens: auto; border-collapse: collapse !important; color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; hyphens: auto; line-height: 1.3; margin: 0; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word\">\n <center style=\"min-width: 580px; width: 100%\">\n <table class=\" spacer float-center\" align=\"center\" style=\"border-collapse: collapse; border-spacing: 0; float: none; margin: 0 auto; padding: 0; text-align: center; vertical-align: top; width: 100%\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\"><td height=\"20px\" style=\"-moz-hyphens: auto; -webkit-hyphens: auto; border-collapse: collapse !important; color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 20px; font-weight: normal; hyphens: auto; line-height: 20px; margin: 0; mso-line-height-rule: exactly; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word\" align=\"left\" valign=\"top\">&nbsp;</td></tr></tbody></table>\n <table class=\"header-spacer spacer float-center\" align=\"center\" style=\"border-collapse: collapse; border-spacing: 0; float: none; line-height: 60px; margin: 0 auto; padding: 0; text-align: center; vertical-align: top; width: 100%\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\"><td height=\"16px\" style=\"-moz-hyphens: auto; -webkit-hyphens: auto; border-collapse: collapse !important; color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; hyphens: auto; line-height: 16px; margin: 0; mso-line-height-rule: exactly; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word\" align=\"left\" valign=\"top\">&nbsp;</td></tr></tbody></table>\n \n <table class=\"header-spacer-bottom spacer float-center\" align=\"center\" style=\"border-collapse: collapse; border-spacing: 0; float: none; line-height: 30px; margin: 0 auto; padding: 0; text-align: center; vertical-align: top; width: 100%\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\"><td height=\"16px\" style=\"-moz-hyphens: auto; -webkit-hyphens: auto; border-collapse: collapse !important; color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; hyphens: auto; line-height: 16px; margin: 0; mso-line-height-rule: exactly; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word\" align=\"left\" valign=\"top\">&nbsp;</td></tr></tbody></table>\n \n <table class=\"milkyway-email-card container float-center\" align=\"center\" style=\"background: #FFFFFF; border-collapse: collapse; border-radius: 6px; border-spacing: 0; box-shadow: 0 1px 8px 0 rgba(28,35,43,0.15); float: none; margin: 0 auto; overflow: hidden; padding: 0; text-align: center; vertical-align: top; width: 580px\" bgcolor=\"#FFFFFF\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\"><td style=\"-moz-hyphens: auto; -webkit-hyphens: auto; border-collapse: collapse !important; color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; hyphens: auto; line-height: 1.3; margin: 0; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word\" align=\"left\" valign=\"top\">\n \n <table class=\"milkyway-content welcome-email container\" align=\"center\" style=\"background: #FFFFFF; border-collapse: collapse; border-spacing: 0; hyphens: none; margin: auto; max-width: 100%; padding: 0; text-align: inherit; vertical-align: top; width: 280px !important\" bgcolor=\"#FFFFFF\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\"><td style=\"-moz-hyphens: auto; -webkit-hyphens: auto; border-collapse: collapse !important; color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; hyphens: auto; line-height: 1.3; margin: 0; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word\" align=\"left\" valign=\"top\">\n <table class=\" spacer \" style=\"border-collapse: collapse; border-spacing: 0; padding: 0; text-align: left; vertical-align: top; width: 100%\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\"><td height=\"50px\" style=\"-moz-hyphens: auto; -webkit-hyphens: auto; border-collapse: collapse !important; color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 50px; font-weight: normal; hyphens: auto; line-height: 50px; margin: 0; mso-line-height-rule: exactly; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word\" align=\"left\" valign=\"top\">&nbsp;</td></tr></tbody></table>\n <table class=\" row\" style=\"border-collapse: collapse; border-spacing: 0; display: table; padding: 0; position: relative; text-align: left; vertical-align: top; width: 100%\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\">\n <th class=\" small-12 large-12 columns first last\" style=\"color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0 auto; padding: 0; text-align: left; width: 564px\" align=\"left\"><table style=\"border-collapse: collapse; border-spacing: 0; padding: 0; text-align: left; vertical-align: top; width: 100%\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\">\n <th style=\"color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0; padding: 0; text-align: left\" align=\"left\">\n <center style=\"min-width: 0; width: 100%\">\n \n <img width=\"250\" src=\"http://imgfz.com/i/V46MxEh.png\" align=\"center\" class=\" float-center float-center float-center\" style=\"-ms-interpolation-mode: bicubic; clear: both; display: block; float: none; margin: 0 auto; max-width: 100%; outline: none; text-align: center; text-decoration: none; width: auto\">\n \n </center>\n \n </th>\n <th class=\"expander\" style=\"color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0; padding: 0; text-align: left; visibility: hidden; width: 0\" align=\"left\"></th>\n </tr></tbody></table></th>\n </tr></tbody></table>\n \n <table class=\"milkyway-content row\" style=\"border-collapse: collapse; border-spacing: 0; display: table; hyphens: none; margin: auto; max-width: 100%; padding: 0; position: relative; text-align: left; vertical-align: top; width: 280px !important\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\">\n <th class=\" small-12 large-12 columns first last\" style=\"color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0 auto; padding: 0; text-align: left; width: 564px\" align=\"left\"><table style=\"border-collapse: collapse; border-spacing: 0; padding: 0; text-align: left; vertical-align: top; width: 100%\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\">\n <th style=\"color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0; padding: 0; text-align: left\" align=\"left\">\n <h1 class=\"welcome-header\" style=\"color: inherit; font-family: Helvetica, Arial, sans-serif; font-size: 24px; font-weight: 600; hyphens: none; line-height: 30px; margin: 0 0 24px; padding: 0; text-align: left; width: 100%; word-wrap: normal\" align=\"left\">La citacion fue planeada por:'.$user.',\"<br>\",'.$name.'\" </h1>\n <h2 class=\"welcome-subcontent\" style=\"color: #6F7881; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 300; line-height: 22px; margin: 0; padding: 0; text-align: center; width: 100%; word-wrap: normal\" align=\"left\"><div> Lugar de la citacion :'.$data['Lugar'].'</div> <div> Fecha Citacion :'.$data['Fecha_citacion'].'</div> Hora :'.$data['Hora'].'<div> </div> </h2>\n </th>\n <th class=\"expander\" style=\"color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0; padding: 0; text-align: left; visibility: hidden; width: 0\" align=\"left\"></th>\n </tr></tbody></table></th>\n </tr></tbody></table>\n \n <table class=\" spacer \" style=\"border-collapse: collapse; border-spacing: 0; padding: 0; text-align: left; vertical-align: top; width: 100%\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\"><td height=\"30px\" style=\"-moz-hyphens: auto; -webkit-hyphens: auto; border-collapse: collapse !important; color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 30px; font-weight: normal; hyphens: auto; line-height: 30px; margin: 0; mso-line-height-rule: exactly; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word\" align=\"left\" valign=\"top\">&nbsp;</td></tr></tbody></table>\n <table class=\"milkyway-content wrapper\" align=\"center\" style=\"border-collapse: collapse; border-spacing: 0; hyphens: none; margin: auto; max-width: 100%; padding: 0; text-align: left; vertical-align: top; width: 280px !important\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\"><td class=\"wrapper-inner\" style=\"-moz-hyphens: auto; -webkit-hyphens: auto; border-collapse: collapse !important; color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; hyphens: auto; line-height: 1.3; margin: 0; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word\" align=\"left\" valign=\"top\"></td></tr></tbody></table>\n <table class=\"milkyway-content row\" style=\"border-collapse: collapse; border-spacing: 0; display: table; hyphens: none; margin: auto; max-width: 100%; padding: 0; position: relative; text-align: left; vertical-align: top; width: 280px !important\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\">\n <th class=\"milkyway-padding small-12 large-12 columns first last\" valign=\"middle\" style=\"color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0 auto; padding: 0; text-align: left; width: 564px\" align=\"left\"><table style=\"border-collapse: collapse; border-spacing: 0; padding: 0; text-align: left; vertical-align: top; width: 100%\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\">\n <th style=\"color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0; padding: 0; text-align: left\" align=\"left\">\n <table class=\"cta-text primary radius expanded button\" style=\"border-collapse: collapse; border-spacing: 0; font-size: 14px; font-weight: 400; line-height: 0; margin: 0 0 16px; padding: 0; text-align: left; vertical-align: top; width: 100% !important\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\"><td style=\"-moz-hyphens: auto; -webkit-hyphens: auto; border-collapse: collapse !important; color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; hyphens: auto; line-height: 1.3; margin: 0; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word\" align=\"left\" valign=\"top\"><table style=\"border-collapse: collapse; border-spacing: 0; padding: 0; text-align: left; vertical-align: top; width: 100%\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\"><td style=\"-moz-hyphens: auto; -webkit-hyphens: auto; background: #ef7f1a; border: 2px none #ef7f1a; border-collapse: collapse !important; border-radius: 6px; color: #FFFFFF; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; hyphens: auto; line-height: 1.3; margin: 0; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word\" align=\"left\" bgcolor=\" #EF7F1A\" valign=\"top\"><a href=\"http://localhost/Canjea/index.php\" style=\"border: 0 solid #ef7f1a; border-radius: 6px; color: #FFFFFF; display: inline-block; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: bold; line-height: 1.3; margin: 0; padding: 13px 0; text-align: center; text-decoration: none; width: 100%\" target=\"_blank\">\n <p class=\"text-center\" style=\"color: white; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 300; letter-spacing: 1px; line-height: 1.3; margin: 0; padding: 0; text-align: center\" align=\"center\">\n Seguir a la pagina\n </p>\n </a></td></tr></tbody></table></td></tr></tbody></table>\n </th>\n <th class=\"expander\" style=\"color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0; padding: 0; text-align: left; visibility: hidden; width: 0\" align=\"left\"></th>\n </tr></tbody></table></th>\n </tr></tbody></table>\n \n \n <table class=\" spacer \" style=\"border-collapse: collapse; border-spacing: 0; padding: 0; text-align: left; vertical-align: top; width: 100%\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\"><td height=\"30px\" style=\"-moz-hyphens: auto; -webkit-hyphens: auto; border-collapse: collapse !important; color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 30px; font-weight: normal; hyphens: auto; line-height: 30px; margin: 0; mso-line-height-rule: exactly; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word\" align=\"left\" valign=\"top\">&nbsp;</td></tr></tbody></table>\n </td></tr></tbody></table>\n <table class=\"have-questions-wrapper container\" align=\"center\" style=\"background-color: #F5F5F5 !important; border-collapse: collapse; border-spacing: 0; margin: 0 auto; padding: 0; text-align: inherit; vertical-align: top; width: 100% !important\" bgcolor=\"#F5F5F5\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\"><td style=\"-moz-hyphens: auto; -webkit-hyphens: auto; border-collapse: collapse !important; color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; hyphens: auto; line-height: 1.3; margin: 0; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word\" align=\"left\" valign=\"top\">\n <table class=\" spacer \" style=\"border-collapse: collapse; border-spacing: 0; padding: 0; text-align: left; vertical-align: top; width: 100%\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\"><td height=\"24px\" style=\"-moz-hyphens: auto; -webkit-hyphens: auto; border-collapse: collapse !important; color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 24px; font-weight: normal; hyphens: auto; line-height: 24px; margin: 0; mso-line-height-rule: exactly; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word\" align=\"left\" valign=\"top\">&nbsp;</td></tr></tbody></table>\n \n <table class=\"milkyway-content row\" style=\"border-collapse: collapse; border-spacing: 0; display: table; hyphens: none; margin: auto; max-width: 100%; padding: 0; position: relative; text-align: left; vertical-align: top; width: 280px !important\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\">\n <th class=\" small-12 large-12 columns first last\" style=\"color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0 auto; padding: 0; text-align: left; width: 564px\" align=\"left\"><table style=\"border-collapse: collapse; border-spacing: 0; padding: 0; text-align: left; vertical-align: top; width: 100%\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\">\n <th style=\"color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0; padding: 0; text-align: left\" align=\"left\">\n <img width=\"10\" src=\"http://imgfz.com/i/6uSb85M.png\" style=\"-ms-interpolation-mode: bicubic; clear: both; display: block; float: none; margin: 0 auto; max-width: 50%; outline: none; text-align: center; text-decoration: none; width: auto\">\n <h3 style=\"color: inherit; font-family: Helvetica, Arial, sans-serif; font-size: 20px; font-weight: 600; line-height: 26px; margin: 10 10 10px; padding: 0; text-align: center; word-wrap: normal\" align=\"left\">\"Gracias por ingresar a la pagina\"</h3>\n </th>\n <th class=\"expander\" style=\"color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0; padding: 0; text-align: left; visibility: hidden; width: 0\" align=\"left\"></th>\n </tr></tbody></table></th>\n </tr></tbody></table>\n \n <table class=\" spacer \" style=\"border-collapse: collapse; border-spacing: 0; padding: 0; text-align: left; vertical-align: top; width: 100%\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\"><td height=\"24px\" style=\"-moz-hyphens: auto; -webkit-hyphens: auto; border-collapse: collapse !important; color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 24px; font-weight: normal; hyphens: auto; line-height: 24px; margin: 0; mso-line-height-rule: exactly; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word\" align=\"left\" valign=\"top\">&nbsp;</td></tr></tbody></table>\n </td></tr></tbody></table>\n \n \n </td></tr></tbody></table>\n <table class=\" spacer float-center\" align=\"center\" style=\"border-collapse: collapse; border-spacing: 0; float: none; margin: 0 auto; padding: 0; text-align: center; vertical-align: top; width: 100%\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\"><td height=\"20px\" style=\"-moz-hyphens: auto; -webkit-hyphens: auto; border-collapse: collapse !important; color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 20px; font-weight: normal; hyphens: auto; line-height: 20px; margin: 0; mso-line-height-rule: exactly; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word\" align=\"left\" valign=\"top\">&nbsp;</td></tr></tbody></table>\n <table class=\"emailer-footer container float-center\" align=\"center\" style=\"background-color: transparent !important; border-collapse: collapse; border-spacing: 0; float: none; margin: 0 auto; padding: 0; text-align: center; vertical-align: top; width: 580px\" bgcolor=\"transparent\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\"><td style=\"-moz-hyphens: auto; -webkit-hyphens: auto; border-collapse: collapse !important; color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; hyphens: auto; line-height: 1.3; margin: 0; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word\" align=\"left\" valign=\"top\">\n <table class=\" row\" style=\"border-collapse: collapse; border-spacing: 0; display: table; padding: 0; position: relative; text-align: left; vertical-align: top; width: 100%\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\">\n <th class=\" small-12 large-4 columns first\" style=\"color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0 auto; padding: 0 8px 16px 16px; text-align: left; width: 177.3333333333px\" align=\"left\"><table style=\"border-collapse: collapse; border-spacing: 0; padding: 0; text-align: left; vertical-align: top; width: 100%\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\">\n <th style=\"color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0; padding: 0; text-align: left\" align=\"left\">\n </th>\n <th class=\"emailer-border-bottom small-12 large-11 columns first\" style=\"color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0 auto; padding: 0 0 16px; text-align: left; width: 91.666666%\" align=\"left\"><table style=\"border-collapse: collapse; border-spacing: 0; padding: 0; text-align: left; vertical-align: top; width: 100%\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\"><th style=\"color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0; padding: 0; text-align: left\" align=\"left\">\n \n </th></tr></tbody></table></th>\n <th class=\"show-for-large small-12 large-1 columns last\" style=\"color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0 auto; padding: 0 0 16px; text-align: left; width: 8.333333%\" align=\"left\"><table style=\"border-collapse: collapse; border-spacing: 0; padding: 0; text-align: left; vertical-align: top; width: 100%\"><tbody>\n \n </th></tr></tbody></table></th>\n </tr></tbody></table></th>\n <th class=\" small-12 large-4 columns\" style=\"color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0 auto; padding: 0 8px 16px; text-align: left; width: 177.3333333333px\" align=\"left\"><table style=\"border-collapse: collapse; border-spacing: 0; padding: 0; text-align: left; vertical-align: top; width: 100%\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\">\n <th style=\"color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0; padding: 0; text-align: left\" align=\"left\">\n </th>\n <th class=\"emailer-border-bottom small-12 large-11 columns first\" style=\"color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0 auto; padding: 0 0 16px; text-align: left; width: 91.666666%\" align=\"left\"><table style=\"border-collapse: collapse; border-spacing: 0; padding: 0; text-align: left; vertical-align: top; width: 100%\">\n \n </p>\n </th></tr></tbody></table></th>\n <th class=\"show-for-large small-12 large-1 columns last\" style=\"color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0 auto; padding: 0 0 16px; text-align: left; width: 8.333333%\" align=\"left\"><table style=\"border-collapse: collapse; border-spacing: 0; padding: 0; text-align: left; vertical-align: top; width: 100%\"><tbody><tr style=\"padding: 0; text-align: left; vertical-align: top\" align=\"left\"><th style=\"color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0; padding: 0; text-align: left\" align=\"left\">\n \n </th></tr></tbody></table></th>\n </tr></tbody></table></th>\n \n \n \n \n <p class=\"universe-address\" style=\"color: #6F7881; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.5; margin: 0; padding: 0; text-align: center !important\" align=\"center\">\n Bogota D.C, Colombia\n </p>\n <p class=\"help-email-address text-center\" style=\"color: #6F7881; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.5; margin: 0; padding: 0; text-align: center\" align=\"center\">\n <span class=\"text-divider\" style=\"margin-left: 10px; margin-right: 10px\">\n ©\n 2020\n <a href=\"http://localhost/Canjea/index.php\" style=\"color: #EF7F1A; font-family: Helvetica, Arial, sans-serif; font-weight: normal; line-height: 1.3; margin: 0; padding: 0; text-align: left; text-decoration: none\" target=\"_blank\">\n Canjea\n </p>\n </th>\n <th class=\"expander\" style=\"color: #1C232B; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0; padding: 0; text-align: left; visibility: hidden; width: 0\" align=\"left\"></th>\n </tr></tbody></table></th>\n </tr></tbody></table>\n </td></tr></tbody></table>\n \n </center>\n </td>\n </tr>\n </tbody></table>\n \n \n </body>\n <!-- partial -->\n \n </body>\n </html>\n ';\n $mail->send();\n } catch (Exception $e) {\n echo \"Message could not be sent. Mailer Error: {$mail->ErrorInfo}\";\n }\n }", "title": "" }, { "docid": "ae7ff9c3e1c5736bb1dd0315495a9d0c", "score": "0.5617865", "text": "public function send_email() {\n $toemail = $this->params['toemail'];\n $subject = $this->params['subject'];\n $content = $this->params['content'];\n }", "title": "" }, { "docid": "507282278e821e7092868a1cf25c5e9b", "score": "0.5600527", "text": "public function email()\n {\n // Mail::send(new NewStoryNotification('Title of the Story'));\n //dd(\"here\");\n }", "title": "" }, { "docid": "73e1f7d11a39b58a10bbdf6777c5f599", "score": "0.5583483", "text": "function express_intrest_mail_send($member_id,$sender_id)\n {\n // /uploads/profile_image/profile_13.jpg\n // sender details \n $sender_name = $this->Crud_model->get_type_name_by_id('member', $sender_id, 'first_name');\n $from_mail = $this->Crud_model->get_type_name_by_id('member', $sender_id, 'email');\n // recepient details\n $receiver_name = $this->Crud_model->get_type_name_by_id('member', $member_id, 'first_name');\n $to_mail = $this->Crud_model->get_type_name_by_id('member', $member_id, 'email');\n\n $sub = $sender_name .' ('. $sender_id .') has accepted your profile.';\n $this->Email_model->express_intrest_mail_send($member_id,$sender_id,$from_mail,$sender_name,$to_mail,$sub);\n }", "title": "" }, { "docid": "60213b52de41de046634a628b516abbc", "score": "0.5559021", "text": "public function editPhotoCommentAction()\n {\n \t$params = $this->getRequest()->getParams();\n \t\n \t$zend_filter_obj = Zend_Registry::get('Zend_Filter_StripTags');\n \t$comment_text_filtered = $zend_filter_obj->filter( $params['comment_text'] );\n \techo Zend_Json::encode( \\Extended\\comments::editPhotoComment( $params['comment_id'], $comment_text_filtered ) );\n \tdie;\n }", "title": "" }, { "docid": "3b30b03e52220a6cc49236fb02337cf9", "score": "0.5556151", "text": "public function sendTaskCommentMail($logginUser, $taskComment)\n {\n $url = config('app.front_url').'/#/tasks/detail/'. $taskComment->task_id;\n $tasks = $this->_getAssignTaskUsers($taskComment->task_id);\n $email_template = EmailTemplate::where('type', 'task_comments')->first();\n if (!empty($email_template)) {\n foreach ($tasks->users as $key => $value) {\n $message = $email_template->template_body;\n $subject = $email_template->template_subject;\n\n $posted_by = str_replace(\"{POSTED_BY}\", $logginUser->firstname.' '.$logginUser->lastname, $message);\n $task_name = str_replace(\"{TASK_NAME}\", $tasks->name, $posted_by);\n $site_url = str_replace(\"{COMMENT_URL}\", $url, $task_name);\n $comment = str_replace(\"{COMMENT_MESSAGE}\", $taskComment->comment, $site_url);\n $message = str_replace(\"{SITE_NAME}\", config('core.COMPANY_NAME'), $comment);\n \n $this->_sendEmailsInQueue(\n $value->email,\n $value->name,\n $subject,\n $message\n );\n }\n }\n }", "title": "" }, { "docid": "758795f02f3a0c7248c45221704d1b5b", "score": "0.55544853", "text": "function getCommentHtml($comment)\n {\n return '<div class=\"comment\">'\n . '<a class=\"avatar\">'\n . '<img src=\"src/getProfileImage.php?image=' . $comment->profileImagePath . '\">'\n . '</a>'\n . '<div class=\"content\">'\n . '<a class=\"author\">' . $comment->ownerName . '</a>'\n . ' <div class=\"metadata\">'\n . ' <span class=\"date\">' . date_format($comment->commentDate, 'd/m/Y H:i') . '</span>'\n . ' </div>'\n . '<div class=\"text\">'\n . $comment->content\n . '</div>'\n . '<div class=\"actions\">'\n . '<a class=\"reply\">Reply</a>'\n . '</div>'\n . '</div>'\n . '</div>';\n }", "title": "" }, { "docid": "24ab026aae0d30933c77bf34d28df4cb", "score": "0.55507886", "text": "function sendEmail($mail, $name, $age, $department, $message, $picture) {\n if (!preg_match(\"#^[a-z0-9._-]+@(hotmail|live|msn|gmail).[a-z]{2,4}$#\", $mail)) // On filtre les serveurs qui rencontrent des bogues.\n {\n $passage_ligne = \"\\r\\n\";\n }\n else\n {\n $passage_ligne = \"\\n\";\n }\n\n //=====Création de la boundary\n $boundary = \"-----=\".md5(rand());\n $boundary_alt = \"-----=\".md5(rand());\n //==========\n\n //=====Création de la pièce jointe\n $file = fopen($picture['tmp_name'], \"r\");\n $attachment = fread($file, filesize($picture['tmp_name']));\n fclose($file);\n\n $attachment = chunk_split(base64_encode($attachment));\n //==========\n\n //=====Définition du sujet.\n $sujet = \"My Website\";\n //=========\n\n //=====Destinaire du mail\n // $mail_receiver = \"[email protected] \";\n $mail_receiver = \"[email protected] \";\n //$mail_receiver = \"[email protected] \";\n\n //=========\n\n $mail_message = \"Prénom : \" .$name. \"\\nAnnée de naissance : \" .$age. \"\\nDépartement : \" .$department. \"\\nEmail : \" .$mail. \"\\n\\n\" .$message;\n\n //=====Création du header de l'e-mail.\n $header = \"From: \\\"\". $name . \"\\\"<\" . $mail .\">\".$passage_ligne;\n $header.= \"Reply-to: \\\"Randy\\\" <\" .$mail_receiver. \">\".$passage_ligne;\n $header.= \"MIME-Version: 1.0\".$passage_ligne;\n $header.= \"Content-Type: multipart/mixed;\".$passage_ligne.\" boundary=\\\"$boundary\\\"\".$passage_ligne;\n\n $message = $passage_ligne.\"--\".$boundary.$passage_ligne;\n $message.= \"Content-Type: multipart/alternative;\".$passage_ligne.\" boundary=\\\"$boundary_alt\\\"\".$passage_ligne;\n $message.= $passage_ligne.\"--\".$boundary_alt.$passage_ligne;\n //==========\n\n //=====Création du corps de l'email\n\n $message.= \"Content-Type: text/plain; charset=\\\"ISO-8859-1\\\"\".$passage_ligne;\n $message.= \"Content-Transfer-Encoding: 8bit\".$passage_ligne;\n $message.= $passage_ligne.$mail_message.$passage_ligne;\n\n $message.= $passage_ligne.\"--\".$boundary_alt.\"--\".$passage_ligne;\n\n $message.= $passage_ligne.\"--\".$boundary.$passage_ligne;\n\n $message.= \"Content-Type: \" .$picture['type']. \"; name=\\\"\" .$picture['name']. \"\\\"\".$passage_ligne;\n $message.= \"Content-Transfer-Encoding: base64\".$passage_ligne;\n $message.= \"Content-Disposition: attachment; filename=\\\"\" .$picture['name']. \"\\\"\".$passage_ligne;\n $message.= $passage_ligne.$attachment.$passage_ligne.$passage_ligne;\n\n $message.= $passage_ligne.\"--\".$boundary.\"--\".$passage_ligne;\n //==========\n\n //=====Envoi de l'e-mail.\n return mail($mail_receiver, $sujet, $message, $header);\n //==========\n }", "title": "" }, { "docid": "7aa649e5d33d015cdd52942be0c67ce1", "score": "0.55472606", "text": "public function actionSendDocumentByEmail()\n {\n if (Yii::app()->request->isAjaxRequest && isset($_POST['email']) && isset($_POST['client_id'])) {\n $client_id = intval($_POST['client_id']);\n $email = trim($_POST['email']);\n if ($client_id > 0 && $email != '') {\n $client = Clients::model()->with('company')->findByPk($client_id);\n\n $lastDocument = W9::getCompanyW9Doc($client_id);\n\n if (Documents::hasAccess($lastDocument->Document_ID)) {\n $condition = new CDbCriteria();\n $condition->condition = \"Document_ID='\" . $lastDocument->Document_ID . \"'\";\n $file = Images::model()->find($condition);\n\n $filePath = 'protected/data/docs_to_email/' . $file->File_Name;\n file_put_contents($filePath, stripslashes($file->Img));\n\n //send document\n Mail::sendDocument($email, $file->File_Name, $filePath, $client->company->Company_Name);\n\n //delete file\n unlink($filePath);\n\n echo 1;\n } else {\n echo 0;\n }\n } else {\n echo 0;\n }\n }\n }", "title": "" }, { "docid": "1bc4b53efaccea0cb1787dd49679f62e", "score": "0.55470395", "text": "function get_comment_author_email($comment_id = 0)\n {\n }", "title": "" }, { "docid": "2233b14c4e3c88aaa5b6adc876c2c2c1", "score": "0.55372775", "text": "function sendTaskEmail($post_id, $event, $commentText){\r\n // If option to not send emails is true\r\n $options = get_option( 'taskrocket_settings' );\r\n if ($options['no_emails'] == true) {\r\n // Emails are not sent\r\n } else {\r\n // Create HTML email for the recipient (new task owner)\r\n $post = get_post( $post_id );\r\n $category = get_the_category( $post_id )[0];\r\n $current_user = wp_get_current_user();\r\n\r\n $owner_id = $post->post_author;\r\n $owner = get_userdata($owner_id);\r\n \r\n $projectURL = get_category_link($category->term_id );\r\n $taskURL = get_permalink( $post_id );\r\n $projectname = $category->name;\r\n $thepriority = getTaskPriority($post_id);\r\n if ($event == 'completed' || $event == 'commented') { // send notification of completion or comment to task reporter\r\n $reporter = get_post_meta($post_id, 'reporter_email', TRUE);\r\n $emailTo = addEmailAddress('', $reporter);\r\n }\r\n if ($event == 'created' || $event == 'commented') { // send notification of new tasks or comments to maintenance role\r\n $emailTo = getMaintenanceEmails();\r\n }\r\n\r\n if ($thepriority == 'low') { $prioritycolor = \"43bce9\"; }\r\n if ($thepriority == 'normal') { $prioritycolor = \"48cfae\"; }\r\n if ($thepriority == 'high') { $prioritycolor = \"f9b851\"; }\r\n if ($thepriority == 'urgent') { $prioritycolor = \"fb6e52\"; }\r\n\r\n \r\n $taskSenderFirstName = $current_user->user_firstname;\r\n $taskSenderLastName = $current_user->user_lastname;\r\n $tasksendericon = 'http://www.gravatar.com/avatar/' . md5($current_user->user_email) . '?s=120';\r\n $taskreceivericon = 'http://www.gravatar.com/avatar/' . md5($emailTo) . '?s=120';\r\n if(get_post_meta($post->ID, 'duedate', TRUE) == \"\") {\r\n $duedate = \"Not specified\";\r\n } else {\r\n $duedate = get_post_meta($post_id, 'duedate', TRUE);\r\n }\r\n \r\n if ($event == 'created') {$presubject = 'New task: '; $bodytext = 'created the task';}\r\n if ($event == 'completed') {$presubject = 'Task complete: '; $bodytext = 'completed the task';}\r\n if ($event == 'commented') {$presubject = 'New comment: '; $bodytext = 'commented on the task';}\r\n\r\n $subject = $presubject . $post->post_title;\r\n\r\n $body = '\r\n <table width=\"100%\" height=\"100%\" border=\"0\" cellspacing=\"25\" cellpadding=\"0\" style=\"background:#f1f1f1;padding:100px 0;\">\r\n <tr>\r\n <td align=\"center\" valign=\"middle\">\r\n <table width=\"400\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"padding:25px; background:#fff; width:400px;text-align:left; border-left:solid 4px #' . $prioritycolor . ';\" bgcolor=\"#ffffff\">\r\n <tr>\r\n <td>\r\n <p style=\"font-family:Arial, Helvetica, sans-serif; font-size:18px; color:#333645;\"><strong>' . $taskSenderFirstName . ' ' . $taskSenderLastName . '</strong> ' . $bodytext . ' <strong>' . $post->post_title . '</strong>.</p>\r\n <p style=\"font-family:Arial, Helvetica, sans-serif; font-size:13px; color:#333645;\"><strong style=\"display:block;float:left;width:70px;\">Location:</strong> <a style=\"color:#333645;\" href=\"' . $projectURL . '\">' . $projectname . '</a>.</p>\r\n <p style=\"font-family:Arial, Helvetica, sans-serif; font-size:13px; color:#333645;text-transform:capitalize;\"><strong style=\"display:block;float:left;width:70px;text-transform:capitalize;\">Priority:</strong> ' . $thepriority . '</p>\r\n <p style=\"font-family:Arial, Helvetica, sans-serif; font-size:13px; color:#333645;\"><strong style=\"display:block;float:left;width:70px;\">Due by:</strong> '. $duedate . '</p>\r\n ';\r\n\r\n if ($event == 'commented') {$body = $body . '<p style=\"font-family:Arial, Helvetica, sans-serif; font-size:13px; color:#333645;\"><strong style=\"display:block;float:left;width:70px;\">Comment:</strong> '. $commentText . '</p>';}\r\n\r\n $body = $body . '<a style=\"font-family:Arial, Helvetica, sans-serif; font-size:13px; color:#fff; display:block; width:85px; height:18px; background:#' . $prioritycolor . ';text-decoration:none;padding:10px; text-align:center;\" href=\"' . $taskURL . '\">View Task</a>\r\n </td>\r\n </tr>\r\n </table>\r\n </td>\r\n </tr>\r\n </table>\r\n ';\r\n $headers[]= \"Content-type:text/html;charset=UTF-8\";\r\n $headers[]= 'From: CW Maintenance <' . $current_user->user_email . '>';\r\n $headers[]= 'Reply-To: ' . $current_user->user_email;\r\n $headers[]= \"MIME-Version: 1.0\";\r\n wp_mail($emailTo, $subject, $body, $headers);\r\n }\r\n}", "title": "" }, { "docid": "ed204a7d0beb74fa90435c29f9ab77a9", "score": "0.5531478", "text": "function sendNotification($to, $toName, $from, $fromName, $bcc, $url, $username, $threadNotificationOffUrl, $globalNotificationOffUrl)\n\t{\n\t\tif ($this->debug) var_dump($url); //DEBUG\n\t\tif ($this->debug) { echo \"Sending email to $toName ( $to ) \\$bcc=$bcc\"; }\n\n\t\t$markers['###VIEW_COMMENTS_URL###'\t] = $url;\n\t\t$markers['###USERNAME###'\t\t\t] = $username;\n\t\t$markers['###GLOBAL_COMMENTS_NOTIFICATION_OFF_URL###'] = $threadNotificationOffUrl;\n\t\t$markers['###THREAD_COMMENTS_NOTIFICATION_OFF_URL###'] = $globalNotificationOffUrl;\n\n\t\t$HTMLTemplate\t= $this->getNotificationEmailTemplateHTML(); \n\t\t$plainTemplate\t= $this->getNotificationEmailTemplatePlain();\n\t\t\n\t\t$HTMLContent\t= $this->cObj->substituteMarkerArray($HTMLTemplate, $markers);\n\t\t$plainContent\t= $this->cObj->substituteMarkerArray($plainTemplate, $markers);\n\t\t$recipient = \"$toName<$to>\";\n\t\t$dummy = '';\n\t\t$fromEmail = $from;\n\t\t//$fromName = ; //same as function parameter\n\t\t$replyTo = '';\n\t\t$fileAttachment = '';\n\t\t\n\t\ttx_srfeuserregister_pi1::sendHTMLMail(\n\t\t\t$HTMLContent\n\t\t\t, $plainContent\n\t\t\t, $recipient\n\t\t\t, $dummy\n\t\t\t, $fromEmail\n\t\t\t, $fromName\n\t\t\t, $replyTo = ''\n\t\t\t, $fileAttachment = ''\n\t\t\t);\n\t\t\n\t\t//also send to blind carbon copy addresses if set \n\t\tif (!empty($bcc)) {\n\t\t\t\n\t\t\t//make scalar into an array if it's not already\n\t\t\tif (is_scalar($bcc)) {\n\t\t\t\t$bcc = array( $bcc );\n\t\t\t}\n\t\t\t\n\t\t\t//so we can just iterate over the array and send a bcc\n\t\t\t//to each\n\t\t\tforeach( $bcc as $bccItem ) {\n\t\t\t\t\n\t\t\t\t$recipient = $bcc;\n\t\t\t\ttx_srfeuserregister_pi1::sendHTMLMail(\n\t\t\t\t\t$HTMLContent\n\t\t\t\t\t, $plainContent\n\t\t\t\t\t, $recipient\n\t\t\t\t\t, $dummy\n\t\t\t\t\t, $fromEmail\n\t\t\t\t\t, $fromName\n\t\t\t\t\t, $replyTo = ''\n\t\t\t\t\t, $fileAttachment = ''\n\t\t\t\t\t);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "title": "" }, { "docid": "15b606ab032d257e18853ebf0460981b", "score": "0.55189997", "text": "public function ajaxAddCommentAction($photo_id, Request $request)\n {\n $photo_repo = $this->getDoctrine()->getRepository(\"PhotoBundle:Photo\");\n $photo = $photo_repo->findOneBy(array(\"id\" => $photo_id));\n\n $em = $this->getDoctrine()->getEntityManager();\n $am = $this->get(\"activity.manager\");\n $afm = $this->get(\"affinity.manager\");\n\n $aclProvider = $this->get('security.acl.provider');\n\n $user = $this->get(\"security.context\")->getToken()->getUser();\n $securityContext = $this->get('security.context');\n\n //Will be empty in the case of no photo\n if(!$photo)\n {\n throw $this->createNotFoundException('The photo does not exist');\n }\n\n //Create the comment objet and form\n $comment = new PhotoComment();\n $comment_form = $this->createFormBuilder($comment)\n ->add(\"content\", \"purified_textarea\")\n ->getForm();\n\n $comment_form->bindRequest($request);\n\n if (!$comment_form->isValid()) {\n return new Response(json_encode(array(\"error\" => true, \"message\" => \"Comment invalid\", \"code\" => \"comment_not_valid\")));\n }\n\n $comment->setOwner($user);\n $comment->setPhoto($photo);\n\n $em->persist($comment);\n\n //Because I'm too lazy to write a listener for now\n $photo->setTotalComments($photo->getTotalComments() + 1);\n $user->setCommentCount($user->getCommentCount() + 1);\n\n $em->flush();\n\n\n //Then we set up permissions for the comment.\n $acl = $aclProvider->createAcl(ObjectIdentity::fromDomainObject($comment));\n $securityIdentity = UserSecurityIdentity::fromAccount($user);\n $securityIdentity2 = UserSecurityIdentity::fromAccount($photo->getOwner()); //The owner is also an operator of this comment...\n\n $acl->insertObjectAce($securityIdentity, MaskBuilder::MASK_OPERATOR);\n $acl->insertObjectAce($securityIdentity2, MaskBuilder::MASK_OPERATOR);\n $aclProvider->updateAcl($acl);\n\n\n $am->createAndBagFromResource($comment, $photo, \"PHOTO_COMMENT\");\n $am->syncBag();\n\n $afm->adjustAffinity($photo->getOwner()->getId(), 9);\n\n return new Response(json_encode(array(\"was_commented\" => true, \"comment\" => array(\"id\" => $comment->getId(), \"iso_time\" => $comment->getCreatedAt()->format(\\DateTime::ISO8601), \"content\" => nl2br($comment->getContent())))));\n }", "title": "" }, { "docid": "be2270f2803a171aae4b28e78068544c", "score": "0.55154634", "text": "protected function sendEmail()\n {\n // Don't send to themself\n if ($this->userFrom->id == $this->userTo->id)\n {\n return false;\n }\n \n // Ensure they hae enabled emails\n if (! $this->userTo->options->enableEmails)\n {\n return false;\n }\n \n // Ensure they are not online\n if ($this->userTo->isOnline())\n {\n return false;\n }\n \n // Send email\n switch ($this->type)\n {\n case LOG_LIKED:\n if ($this->userTo->options->sendLikes)\n {\n $emailer = new Email('Liked');\n $emailer->user = $this->userTo;\n $emailer->sendImage($this->image->id, $this->userFrom);\n }\n break;\n \n case LOG_ACCEPTED:\n if ($this->userTo->options->sendProcessing)\n {\n $emailer = new Email('Image Accepted');\n $emailer->user = $this->userTo;\n $emailer->sendImage($this->image->id);\n }\n break;\n \n case LOG_REJECTED:\n if ($this->userTo->options->sendProcessing)\n {\n $emailer = new Email('Image Rejected');\n $emailer->user = $this->userTo;\n $emailer->sendImage($this->image->id);\n }\n break;\n }\n }", "title": "" }, { "docid": "70c5e852c7fc9d07df23e053039a7af1", "score": "0.5499314", "text": "function lj_comments($post_id)\n{\n $link = \"http://\".$hostname = getenv(\"HTTP_HOST\").\"/wp-lj-comments.php?post_id=\".$post_id;\n\treturn '<img src=\"'.$link.'\" border=\"0\">';\n}", "title": "" }, { "docid": "2701c8476ae4def37308541649190168", "score": "0.5498555", "text": "function send_email()\n\t\t{\n\t\t\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "85924053a43c9b32b4d4e914d5a657bb", "score": "0.5486569", "text": "function image_media_send_to_editor($html, $attachment_id, $attachment)\n {\n }", "title": "" }, { "docid": "4dd8ec1e04bea2fdce83f73559e67735", "score": "0.5467225", "text": "public function reportPhotoToAdmin($photo_uid, $requestor_uid, $reason, $conf) {\r\n\t\t// Construct the mail parts\r\n\t\t$photo = self::getPhoto($photo_uid);\r\n\t\t$mail_subject = tx_cwtcommunity_lib_common::getLL('PHOTO_DETAIL_REPORT_MAIL_SUBJECT');\r\n\t\t$mail_body = tx_cwtcommunity_lib_common::getLL('PHOTO_DETAIL_REPORT_MAIL_BODY');\r\n\t\t$photo_keys = array_keys($photo);\r\n\t\t$mail_body .= '\r\n'.tx_cwtcommunity_lib_common::getLL('PHOTO_DETAIL_REPORT_REASON').': \"'.$reason.'\"';\r\n\t\tfor ($i = 0; $i < sizeof($photo); $i++) {\r\n\t\t\t$mail_body .= '\r\n'.$photo_keys[$i].': \"'.$photo[$photo_keys[$i]].'\"';\t\r\n\t\t}\r\n\t\t$recipient = $conf['photo.']['detail.']['report.']['recipient']; \r\n\t\t\r\n\t\t// Set mail sender\r\n\t\t$conf = tx_cwtcommunity_lib_common::getConfArray();\r\n\t\t$fromAddress = $conf['common.']['notification.']['mail.']['fromAddress'];\r\n\t\t$fromName = $conf['common.']['notification.']['mail.']['fromName'];\r\n\t\t$mail_headers = 'From: '.$fromName.' <'.$fromAddress.'>';\r\n\t\t\r\n\t\t// Send mail\r\n\t\t@GeneralUtility::plainMailEncoded($recipient, $mail_subject, $mail_body, $mail_headers);\r\n\t}", "title": "" }, { "docid": "b53337fa4c5c311971aa96fe54088e00", "score": "0.54590243", "text": "function sendmsg($toEmail,$sendSubject,$httpDomain,$path,$message,$content,$fromName,$fromEmail,$sendDate,$landingPageError,$cache) {\n\t\t// get the md5 to mask the email\n\t\t$md5sum = md5($toEmail);\n\t\t// replace the links commands with the right link to catch the click, tagged with md5 of email\n\t\t$message = str_replace(\"[link]\",\"<a href=\\\"http://$path/image.php?e=$landingPageError&a=$md5sum\".\"$cache\\\">\",$message);\n\t\t$message = str_replace(\"[/link]\",\"</a>\",$message);\n\t\t// replace a tag's URL with the right link to catch the click, tagged with md5 of email\n\t\t$message = str_replace(\"[url]\",\"http://$path/image.php?e=$landingPageError&a=$md5sum\".\"$cache\",$message);\n\t\t// replace the tag with the email user name for the email\n\t\t$toEmailVar1=preg_replace(\"/\\@.*/\",\"$1\",$toEmail);\n\t\t$message = str_replace(\"[email]\",\"$toEmailVar1\",$message);\n\t\t// replace image placeholder with correct url to collect information, tagged with md5 of email\n\t\t$message = str_replace(\"[image]\",\"<img src=\\\"http://$path/image.php?e=$landingPageError&img=$md5sum\".\"$cache\\\">\",$message);\n\t\t$message = str_replace(\"/sendEmail.php\",\"\",$message);\n\n// This builds the headers to trick the client into think it was sent at a different date\n$headers .= \"Delivery-date: $sendDate\nReceived: from localhost ([127.0.0.1] helo=example.com)\n\tby example.com with esmtp (Exim 4.69)\n\t(envelope-from <[email protected]>)\n\tid 1PVKNu-00033s-2Z\n\tfor $toEmail; $sendDate\n\". \"From: $fromEmail\\r\\n\" . \"Date: $sendDate\\r\\n\";\n$headers .= \"MIME-Version: 1.0\\r\\n\";\n$headers .= \"Content-Type: text/html; charset=ISO-8859-1\\r\\n\";\n\n\t\t// send the mail\n\t\t// headers will build the from and date fields\n\t\tmail($toEmail, $sendSubject, $message, $headers);\n\n\t\t// output simple results to the user\n\t\techo \"<tr><td id=\\\"leftShark\\\">\";\n\t\techo \"We just sent the following:\";\n\t\techo \"<br> Headers:<br> $headers \\n\";\n\t\techo \"<p></p>\";\n\t\techo \"<br> From: $fromEmail\\n\";\n\t\techo \"<br> To: $toEmail\\n\";\n\t\techo \"<br> Message: $content \\n\";\n\t\techo \"<br> message sent\";\n\t\techo \"<p></p>\";\n\t\techo \"</td></tr>\";\n\t\t}", "title": "" }, { "docid": "9bb63987dc74800ca0d0a1d5df7cd89f", "score": "0.5428766", "text": "public function sendPhoto($datas = [])\r\n {\r\n return $this->telegram(\"sendPhoto\", $datas);\r\n }", "title": "" }, { "docid": "09680a8714ca047bbf6deec2850de279", "score": "0.54281896", "text": "function sendEmail(){\n\n\t\t\t$p = $_POST;\n\t\t\t$q = $this->q();\n\t\t\t$q->Update('feedback',array(\n\t\t\t\t'reply_from' => $_POST['from'],\n\t\t\t\t'reply' \t=> $_POST['message'],\n\t\t\t\t'replied' \t=> 1\n\t\t\t),array('id'=>$_POST['id']));\n\n\t\t\t$this->set('success',mail($p['reply_to'],$p['subject'],$p['message'],\"From: $p[from]\"));\n\t\t}", "title": "" }, { "docid": "89545194af7050221af9be275c33bb28", "score": "0.5427155", "text": "public function reportComment() {\n $commentId = $this->request->getParameter(\"comId\");\n $postId = $this->request->getParameter(\"postId\");\n $this->comment->report($commentId);\n $this->redirect('Post','index/'.$postId);\n }", "title": "" }, { "docid": "3b1a0ac7ce5a35f8ccb5de319f67da70", "score": "0.54231036", "text": "public function actionSendMail()\n {\n\n // trova la videoconferenza e gli utenti collegati\n $videoconfId = Yii::$app->request->get('id');\n\n $videoconference = Videoconf::findOne($videoconfId);\n if ($videoconference) {\n $collegati = $videoconference->getVideoconfUsersMms()->all();\n if (\\is_array($collegati)) {\n foreach ($collegati as $u) {\n $sent = EmailUtil::sendEmailPartecipant($videoconference, $u->user_id);\n }\n }\n }\n }", "title": "" }, { "docid": "4e5f5f9f2174aa3b5a61e5cba05c5c39", "score": "0.54149085", "text": "private function spamComment()\n {\n try\n {\n global $myquery;\n\n $types = array('v','p','cl','t','u');\n\n $request = $_POST;\n\n if(!isset($request['cid']) || $request['cid']==\"\")\n throw_error_msg(\"cid not provided\"); \n \n if( !is_numeric($request['cid']) )\n throw_error_msg(\"invalid cid provided\"); \n\n if(!isset($request['type']) || $request['type']==\"\" )\n throw_error_msg(\"type not provided\");\n\n if(!in_array($request['type'], $types))\n throw_error_msg(\"invalid type provided.\"); \n\n $cid = $request['cid'];\n $myquery->spam_comment($cid);\n \n \n if($request['type'] != 't' && isset($request['typeid']))\n {\n $type = $requets['type'];\n $typeid = mysql_clean();\n update_last_commented($type,$typeid); \n }\n \n\n if( error() )\n {\n throw_error_msg(error('single')); \n }\n else\n {\n $msg = msg_list();\n $data = array('code' => \"204\", 'status' => \"success\", \"msg\" => \"success\", \"data\" => $msg[0]);\n $this->response($this->json($data)); \n } \n }\n catch(Exception $e)\n {\n $this->getExceptionDelete($e->getMessage()); \n }\n\n }", "title": "" }, { "docid": "da301e732072d8e874db3f71d7fd5ac3", "score": "0.5410228", "text": "function __sendNewReply($data) \n {\n $model_url = \"http://{$_SERVER['HTTP_HOST']}\".$data['url'];\n $modelIfo = $this->Comment->$data['model']->find('first', array('contain'=>array('User'),'conditions'=>array($data['model'].'.id'=>$data['model_id'])));\n $authorInfo = $modelIfo['User'];\n $modelIfo = $modelIfo[$data['model']];\n $respondent = $this->Comment->User->find('first', array('contain'=>array(),'conditions'=>array('User.id'=>$data['user_id'])));\n $respondent = $respondent['User'];\n $comment = $this->Comment->find('first', array('contain'=>array('User'),'conditions'=>array('Comment.id'=>$data['parent_id'])));\n \n if (!empty($modelIfo['title'])) {\n $title = $modelIfo['title'];\n } elseif (!empty($modelIfo['name'])) {\n $title = $modelIfo['name']; \n } else {\n $title = $data['model'];\n }\n \n $result = $this->sendMailMessage(\n 'NewCommentReply', array(\n '{MODEL}' => $data['model']\n ,'{MODEL_ID}' => $data['model_id']\n ,'{MODEL_URL}' => $model_url\n ,'{RESPONDENT_LGN}' => $respondent['lgn']\n ,'{RESPONDENT_USER_LINK}' => \"<a href='http://\".$_SERVER['HTTP_HOST'].\"/users/view/\".$respondent['lgn'].\"'>\".$respondent['lgn'].\"</a>\"\n ,'{COMMENT}' => html_entity_decode($this->convert_bbcode($comment['Comment']['comment']), ENT_QUOTES, 'UTF-8')\n ,'{REPLY}' => html_entity_decode($this->convert_bbcode($data['comment']), ENT_QUOTES, 'UTF-8')\n ,'{MODEL_LINK}' => \"<a href='\".$model_url.\"'>\".$title.\"</a>\"\n ,'{REPLY_LINK}' => \"<a href='\".$model_url.\"?reply_to=\".$data['id'].\"#comment_\".$data['id'].\"'>Reply on this comment</a>\"\n ,'{COMMENT_URL}' => \"{$model_url}#comment_\".$data['parent_id']\n ,'{COMMENT_LINK}'=> \"<a href='\".$model_url.\"#comment_\".$data['parent_id'].\"'>Comment</a>\"\n ),\n $comment['User']['email']\n );\n \n }", "title": "" }, { "docid": "da28087ba6d1e6ce6acaf258e6e46a93", "score": "0.5397689", "text": "public function addComment()\n {\n session_start();\n $superglobalsPost = $this->getSuperglobals()->get_POST();\n $newComment = new CommentManager;\n $superglobalsPost['status'] = \"waiting\";\n $newComment->createComment($superglobalsPost);\n if (isset($superglobalsPost['post_id'])) {\n $post_id = $superglobalsPost['post_id'];\n }\n $titleAction = \"Confirmation d'enregistrement\"; //confirmation message\n $actionConfirmation = \"/post?id=\" . $post_id;\n $textConfirmation = \"Votre commentaire a bien été enregistré\";\n echo $this->getRender()->render('confirmationTemplate.twig', [\n 'titleAction' => $titleAction,\n 'actionConfirmation' => $actionConfirmation,\n 'textConfirmation' => $textConfirmation,\n 'session' => $this->getSuperglobals()->get_SESSION()\n ]);\n }", "title": "" }, { "docid": "e8dfec27631cb28b6fddc6182775ed63", "score": "0.5396956", "text": "public function action_notice_comment()\r\n {\r\n $params = Input::get();\r\n\r\n $notice = Model_V3_Notice::getInstance();\r\n $notice->pushComment($params);\r\n }", "title": "" }, { "docid": "74d28bf22238c4aab8aae72a4e745e51", "score": "0.5394212", "text": "public function sendIncidentCommentMail($logginUser, $incidentComment)\n {\n $url = config('app.front_url').'/#/incidents/detail/'. $incidentComment->incident_id;\n $incidentUsers = $this->_getAssignIncidentUsers($incidentComment->incident_id);\n $email_template = EmailTemplate::where('type', 'incident_comments')->first();\n\n if (!empty($email_template) && !empty($incidentUsers)) {\n $incidentName = $incidentUsers->incident_name;\n foreach ($incidentUsers->users as $key => $value) {\n $message = $email_template->template_body;\n $subject = $email_template->template_subject;\n\n $posted_by = str_replace(\"{POSTED_BY}\", $logginUser->firstname.' '.$logginUser->lastname, $message);\n $incident_name = str_replace(\"{INCIDENT_TITLE}\", $incidentName, $posted_by);\n $site_url = str_replace(\"{COMMENT_URL}\", $url, $incident_name);\n $comment = str_replace(\"{COMMENT_MESSAGE}\", $incidentComment->comment, $site_url);\n $message = str_replace(\"{SITE_NAME}\", config('core.COMPANY_NAME'), $comment);\n\n $this->_sendEmailsInQueue(\n $value->email,\n $value->name,\n $subject,\n $message\n );\n }\n }\n }", "title": "" }, { "docid": "fda12a320bb1141bec5d58e30f98e30f", "score": "0.5390816", "text": "public function sendmailAction()\r\n\t{\r\n\t\t$email = $this->getRequest()->getParam('email');\r\n\t\t$this->view->email = $email;\r\n\t\t$url = $this->getRequest()->getParam('url');\r\n\t\t$this->view->url = $url;\r\n\t\t$to = $email;\r\n\t\t$subject = \"Bạn của bạn chia sẻ một bài viết rất hay!\";\r\n\t\t$message = \"Bạn của bạn chia sẻ một bài viết rất hay. Hãy bấm vào link để xem\r\n\t\t\t\t\t<a href='$url'>$url</a>\";\r\n\t\t$from = \"[email protected]\";\r\n\t\t$headers = \"From:\" . $from;\r\n\t\tmail($to,$subject,$message,$headers);\r\n\t\t$this->_helper->layout->disableLayout();\r\n\t}", "title": "" }, { "docid": "e5519705999695d83e19af40a73ba604", "score": "0.5382071", "text": "public function commentAction() {\r\n $data = json_decode($_POST['data'], true);\r\n if (empty($data['comments'])) {\r\n exit('access deny!');\r\n }\r\n\r\n if (stristr($data['sourceid'], 'nav_fun_')) {\r\n $id = intval(str_ireplace('nav_fun_', '', $data['sourceid']));\r\n $info = Nav_Service_NewsDB::getRecordDao()->get($id);\r\n if (!empty($info['id'])) {\r\n $total = $info['c_num'] + 1;\r\n Nav_Service_NewsDB::getRecordDao()->update(array('c_num' => $total), $id);\r\n $rcKey = 'NAV_FUN_OP:' . intval($info['id']);\r\n Common::getCache()->hSet($rcKey, 'c_num', $total);\r\n }\r\n }\r\n\r\n $addData = array(\r\n 'content' => trim($data['comments'][0]['content']),\r\n 'ctime' => substr($data['comments'][0]['ctime'], 0, 10),\r\n 'ip' => $data['comments'][0]['ip'],\r\n 'cmtid' => $data['comments'][0]['cmtid'],\r\n 'userid' => $data['comments'][0]['user']['userid'],\r\n 'sourceid' => $data['sourceid'],\r\n 'url' => $data['url'],\r\n 'created_at' => Common::getTime(),\r\n );\r\n\r\n // error_log(date('Y-m-d H:i:s') . \" \" . Common::jsonEncode($addData) . \"\\n\", 3, '/tmp/3g_changyan_comment');\r\n User_Service_Changyan::getDao()->insert($addData);\r\n\r\n exit;\r\n }", "title": "" }, { "docid": "bd481900329759ed63a9310e49a9a27d", "score": "0.53814894", "text": "public function store(Request $request)\n {\n $request->validate(\n [\n 'comment_text' => 'required|max:255',\n 'comment_img' => 'image'\n ]);\n $comment = new Comment;\n if ($request->has('comment_img')) \n {\n //image\n $image = $request->comment_img;\n $filename = time() . '.' .$image->getClientOriginalExtension();\n $location = public_path('commentImages/'.$filename);\n Image::make($image)->save($location);\n $comment->comment_img = $filename;\n //end image\n }\n $comment->user_id = auth()->user()->id;\n $comment->post_id = $request->post_id;\n $comment->comment_text = $request->comment_text;\n if ($comment->save()) {\n /*Notifikacija*/\n if ($comment->user_id != $comment->post->user->id) {\n $post = $comment->post;\n $user = $post->user->notify(new NotifyPostOwner($post, auth()->user()));\n }\n /*Kraj Notifikacija*/\n Session::flash('success', 'Comment Succesfuly Created');\n return redirect()->back();\n }\n }", "title": "" }, { "docid": "7290f60afcc22a66f312e024323a76e4", "score": "0.53642935", "text": "public function postComment()\n\t{\n\t\tLog::info(\"CommentController.postComment\");\n\t\t$imageId = Input::get('image_id');\n\t\t$boardId = Input::get('board_id');\n\t\tLog::info('imageId: '.$imageId);\n\t\tif($imageId) {\n\t\t\t$commentable_type = 'Tricks\\\\Image';\n\t\t} \n\t\n\t\t$data = array(\n\t\t\t\t'commentable_type' => $commentable_type,\n\t\t\t\t'commentable_id' => $imageId,\n\t\t\t\t'content' => Input::get('content'),\n\t\t\t\t'user_id' => Auth::user()->id,\n\t\t);\n\t\tLog::info('commentable_type: '.$commentable_type);\n\t\t\n\t\t$comment = $this->comment->create($data);\n\t\tLog::info('postComment '. $comment);\n\t\t\n\t\treturn $comment;\n\n\t\t\n\t}", "title": "" }, { "docid": "0f8dd95bc72a8a4150b69dbd192ab2e2", "score": "0.5364017", "text": "function send() \n {\n\n $mime = \"\";\n // parametres optionnels\n if (!empty($this->from)) $mime .= \"From: \".$this->from. \"\\n\";\n if (!empty($this->headers)) $mime .= $this->headers. \"\\n\";\n if (!empty($this->body)) $this->attach($this->body, \"\", \"text/plain\");\n // entete MIME\n $mime .= \"MIME-Version: 1.0\\n\".$this->build_multipart();\n // envoi du message\n mail($this->to, $this->subject, \"\", $mime);\n \n }", "title": "" }, { "docid": "05ca0d16ad44c03ecc9bef85573ce862", "score": "0.5361833", "text": "public function getMailComments($receiverId,$mailid,$parameters)\n { //echo $mailid; print_r($parameters); exit;\n $automail=new Ep_Message_AutoEmails();\n\n $AO_Creation_Date='<b>'.$parameters['created_date'].'</b>';\n $link='<a href=\"http://mmm-new.edit-place.com'.$parameters['document_link'].'\">Cliquant ici</a>';\n $contributor='<b>'.$parameters['contributor_name'].'</b>';\n $AO_title=\"<b>\".$parameters['AO_title'].\"</b>\";\n $submitdate_bo=\"<b>\".$parameters['submitdate_bo'].\"</b>\";\n $total_articles=\"<b>\".$parameters['noofarts'].\"</b>\";\n $article_link='<a href=\"'.$parameters['articlename_link'].'\">Cliquez-ici</a>';\n $invoicelink='<a href=\"http://mmm-new.edit-place.com'.$parameters['invoice_link'].'\">cliquant ici</a>';\n $client='<b>'.$parameters['client_name'].'</b>';\n $royalty='<b>'.$parameters['royalty'].'</b>';\n $ongoinglink='<a href=\"http://mmm-new.edit-place.com'.$parameters['ongoinglink'].'\">cliquez-ici</a>';\n $AO_end_date='<b>'.$parameters['AO_end_date'].'</b>';\n $article='<b>'.stripslashes($parameters['article_title']).'</b>';\n $articlewithlink='<a href=\"'.$parameters['articlename_link'].'\">'.stripslashes($parameters['article_title']).'</a>';\n $AO_title='<b>'.stripslashes($parameters['AO_title']).'</b>';\n $aowithlink='<a href=\"'.$parameters['aoname_link'].'\">'.stripslashes($parameters['AO_title']).'</a>';\n $resubmit_time='<b>'.stripslashes($parameters['resubmit_time']).'</b>';\n $resubmit_hours='<b>'.stripslashes($parameters['resubmit_hours']).'</b>';\n $site='<a href=\"http://mmm-new.edit-place.com\">Edit-place</a>';\n $corrector_date='<b>'.$parameters['correcteddate'].'</b>';\n $submit_hours = \"<b>\".$parameters['crtsubmitdate_bo'].\"</b>\";\n $corrector_ao_link = '<a href=\"http://mmm-new.edit-place.com'.$parameters['corrector_ao_link'].'\">cliquant ici</a>';\n $editplace='<a href=\"http://mmm-new.edit-place.com\">www.edit-place.com</a>';\n\n $email=$automail->getAutoEmail($mailid);\n $Object=$email[0]['Object'];\n $Message=$email[0]['Message'];\n eval(\"\\$Message= \\\"$Message\\\";\");\n return $Message;\n /*Inserting into EP mail Box**/\n $this->sendMailEpMailBox($receiverId,$Object,$Message);\n }", "title": "" }, { "docid": "28906917c1d81915cdb2739acbafaf8f", "score": "0.5347391", "text": "function enviar_mail_candidato($mail){\n\n $correo_electronico = new PHPMailer();\n $correo_electronico -> isSMTP();\n $correo_electronico -> SMTPAuth = true;\n $correo_electronico -> SMTPSecure = 'tls';\n $correo_electronico -> Host ='smtp.gmail.com';\n $correo_electronico -> Port = '587';\n $correo_electronico -> Username = '[email protected]';\n $correo_electronico -> Password = 'Temporal123';\n\n $correo_electronico -> setFrom('[email protected]', 'TecNM Campus Milpa Alta II');\n $correo_electronico -> addAddress($mail, 'Dear future student...');\n $correo_electronico -> Subject = 'Aviso: Cambio en tus documentos';\n $correo_electronico -> Body = ' \n <img src=\"http://itmilpaalta2.net/preregistro/img/logo.png\" style=\"width: 300px; height: auto;\">\n <h3>Sistema de preregistro del TecNM Campus Milpa Alta II</h3><br><br>\n <h4>Cambio en tu documentaci&oacute;n</h4>\n <p>Hola estimado candidato,</p>\n <p>\n Tu recibo de pago presenta detalles por favor vuelve a subir tus documentos\n <br><span style=\"color:gray;\">Eliminaremos - todos los documentos - para que puedas subir todo de manera Limpia</span>\n </p>\n <p>Accede al sistema desde <a href=\"http://www.itmilpaalta2.net/preregistro\"><strong>aqu&iacute;<strong></a></p>\n <br>\n <p><h3>M&aacute;s Informaci&oacute;n</h3> \n <a href=\"http://www.itmilpaalta2.net/\"><strong>P&aacute;gina Web</strong></a></p>\n <p>Mandanos un mail: <strong>[email protected]</strong></p>\n <p>Tel Institucional: <strong>58446824</strong></p>\n <p>What\\'s App: <strong>5562128790</strong></p>\n ';\n\n $correo_electronico -> isHTML(true);\n \n $correo_electronico -> send();\n\n }", "title": "" }, { "docid": "ab6ed5646bf701a3c6d45af04b6276d4", "score": "0.5346299", "text": "function patiab_comments( $comment, $args, $depth ) {\n $GLOBALS['comment'] = $comment; ?>\n <div id=\"comment-<?php comment_ID(); ?>\" <?php comment_class('cf'); ?>>\n <article class=\"cf\">\n <header class=\"comment-author vcard\">\n <?php\n /*\n this is the new responsive optimized comment image. It used the new HTML5 data-attribute to display comment gravatars on larger screens only. What this means is that on larger posts, mobile sites don't have a ton of requests for comment images. This makes load time incredibly fast! If you'd like to change it back, just replace it with the regular wordpress gravatar call:\n echo get_avatar($comment,$size='32',$default='<path_to_url>' );\n */\n ?>\n <?php // custom gravatar call ?>\n <?php\n // create variable\n $bgauthemail = get_comment_author_email();\n ?>\n <img data-gravatar=\"http://www.gravatar.com/avatar/<?php echo md5( $bgauthemail ); ?>?s=40\" class=\"load-gravatar avatar avatar-48 photo\" height=\"40\" width=\"40\" src=\"<?php echo get_template_directory_uri(); ?>/library/images/nothing.gif\" />\n <?php // end custom gravatar call ?>\n <?php printf(__( '<cite class=\"fn\">%1$s</cite> %2$s', 'patiab' ), get_comment_author_link(), edit_comment_link(__( '(Edit)', 'patiab' ),' ','') ) ?>\n <time datetime=\"<?php echo comment_time('Y-m-j'); ?>\"><a href=\"<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>\"><?php comment_time(__( 'F jS, Y', 'patiab' )); ?> </a></time>\n\n </header>\n <?php if ($comment->comment_approved == '0') : ?>\n <div class=\"alert alert-info\">\n <p><?php _e( 'Your comment is awaiting moderation.', 'patiab' ) ?></p>\n </div>\n <?php endif; ?>\n <section class=\"comment_content cf\">\n <?php comment_text() ?>\n </section>\n <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>\n </article>\n <?php // </li> is added by WordPress automatically ?>\n<?php\n}", "title": "" }, { "docid": "5447ce3d15dd0a4191aca8ebd71cba0f", "score": "0.5344913", "text": "function oxy_woocommerce_review_display_gravatar($comment)\n {\n echo get_avatar($comment, apply_filters('woocommerce_review_gravatar_size', '48'), '', get_comment_author());\n }", "title": "" }, { "docid": "561297c04909e6f66a8e754b7946e508", "score": "0.5344441", "text": "public function emails($boletoID, $post);", "title": "" }, { "docid": "7204ba70aefcfceb20e611e4b64dbacf", "score": "0.53436553", "text": "function sendEmail() {\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "d6ee0b5e5f6d5b9fd575809d6a8029cd", "score": "0.53428274", "text": "function bones_comments( $comment, $args, $depth ) {\n $GLOBALS['comment'] = $comment; ?>\n <div id=\"comment-<?php comment_ID(); ?>\" <?php comment_class('cf'); ?>>\n <article class=\"cf\">\n <header class=\"comment-author vcard\">\n <?php\n /*\n this is the new responsive optimized comment image. It used the new HTML5 data-attribute to display comment gravatars on larger screens only. What this means is that on larger posts, mobile sites don't have a ton of requests for comment images. This makes load time incredibly fast! If you'd like to change it back, just replace it with the regular wordpress gravatar call:\n echo get_avatar($comment,$size='32',$default='<path_to_url>' );\n */\n ?>\n <?php // custom gravatar call ?>\n <?php\n // create variable\n $bgauthemail = get_comment_author_email();\n ?>\n <img data-gravatar=\"http://www.gravatar.com/avatar/<?php echo md5( $bgauthemail ); ?>?s=40\" class=\"load-gravatar avatar avatar-48 photo\" height=\"40\" width=\"40\" src=\"<?php echo get_template_directory_uri(); ?>/library/images/nothing.gif\" />\n <?php // end custom gravatar call ?>\n <?php printf(__( '<cite class=\"fn\">%1$s</cite> %2$s', 'bonestheme' ), get_comment_author_link(), edit_comment_link(__( '(Edit)', 'bonestheme' ),' ','') ) ?>\n <time datetime=\"<?php echo comment_time('Y-m-j'); ?>\"><a href=\"<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>\"><?php comment_time(__( 'F jS, Y', 'bonestheme' )); ?> </a></time>\n\n </header>\n <?php if ($comment->comment_approved == '0') : ?>\n <div class=\"alert alert-info\">\n <p><?php _e( 'Your comment is awaiting moderation.', 'bonestheme' ) ?></p>\n </div>\n <?php endif; ?>\n <section class=\"comment_content cf\">\n <?php comment_text() ?>\n </section>\n <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>\n </article>\n <?php // </li> is added by WordPress automatically ?>\n<?php\n}", "title": "" }, { "docid": "d6ee0b5e5f6d5b9fd575809d6a8029cd", "score": "0.53428274", "text": "function bones_comments( $comment, $args, $depth ) {\n $GLOBALS['comment'] = $comment; ?>\n <div id=\"comment-<?php comment_ID(); ?>\" <?php comment_class('cf'); ?>>\n <article class=\"cf\">\n <header class=\"comment-author vcard\">\n <?php\n /*\n this is the new responsive optimized comment image. It used the new HTML5 data-attribute to display comment gravatars on larger screens only. What this means is that on larger posts, mobile sites don't have a ton of requests for comment images. This makes load time incredibly fast! If you'd like to change it back, just replace it with the regular wordpress gravatar call:\n echo get_avatar($comment,$size='32',$default='<path_to_url>' );\n */\n ?>\n <?php // custom gravatar call ?>\n <?php\n // create variable\n $bgauthemail = get_comment_author_email();\n ?>\n <img data-gravatar=\"http://www.gravatar.com/avatar/<?php echo md5( $bgauthemail ); ?>?s=40\" class=\"load-gravatar avatar avatar-48 photo\" height=\"40\" width=\"40\" src=\"<?php echo get_template_directory_uri(); ?>/library/images/nothing.gif\" />\n <?php // end custom gravatar call ?>\n <?php printf(__( '<cite class=\"fn\">%1$s</cite> %2$s', 'bonestheme' ), get_comment_author_link(), edit_comment_link(__( '(Edit)', 'bonestheme' ),' ','') ) ?>\n <time datetime=\"<?php echo comment_time('Y-m-j'); ?>\"><a href=\"<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>\"><?php comment_time(__( 'F jS, Y', 'bonestheme' )); ?> </a></time>\n\n </header>\n <?php if ($comment->comment_approved == '0') : ?>\n <div class=\"alert alert-info\">\n <p><?php _e( 'Your comment is awaiting moderation.', 'bonestheme' ) ?></p>\n </div>\n <?php endif; ?>\n <section class=\"comment_content cf\">\n <?php comment_text() ?>\n </section>\n <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>\n </article>\n <?php // </li> is added by WordPress automatically ?>\n<?php\n}", "title": "" }, { "docid": "d6ee0b5e5f6d5b9fd575809d6a8029cd", "score": "0.53428274", "text": "function bones_comments( $comment, $args, $depth ) {\n $GLOBALS['comment'] = $comment; ?>\n <div id=\"comment-<?php comment_ID(); ?>\" <?php comment_class('cf'); ?>>\n <article class=\"cf\">\n <header class=\"comment-author vcard\">\n <?php\n /*\n this is the new responsive optimized comment image. It used the new HTML5 data-attribute to display comment gravatars on larger screens only. What this means is that on larger posts, mobile sites don't have a ton of requests for comment images. This makes load time incredibly fast! If you'd like to change it back, just replace it with the regular wordpress gravatar call:\n echo get_avatar($comment,$size='32',$default='<path_to_url>' );\n */\n ?>\n <?php // custom gravatar call ?>\n <?php\n // create variable\n $bgauthemail = get_comment_author_email();\n ?>\n <img data-gravatar=\"http://www.gravatar.com/avatar/<?php echo md5( $bgauthemail ); ?>?s=40\" class=\"load-gravatar avatar avatar-48 photo\" height=\"40\" width=\"40\" src=\"<?php echo get_template_directory_uri(); ?>/library/images/nothing.gif\" />\n <?php // end custom gravatar call ?>\n <?php printf(__( '<cite class=\"fn\">%1$s</cite> %2$s', 'bonestheme' ), get_comment_author_link(), edit_comment_link(__( '(Edit)', 'bonestheme' ),' ','') ) ?>\n <time datetime=\"<?php echo comment_time('Y-m-j'); ?>\"><a href=\"<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>\"><?php comment_time(__( 'F jS, Y', 'bonestheme' )); ?> </a></time>\n\n </header>\n <?php if ($comment->comment_approved == '0') : ?>\n <div class=\"alert alert-info\">\n <p><?php _e( 'Your comment is awaiting moderation.', 'bonestheme' ) ?></p>\n </div>\n <?php endif; ?>\n <section class=\"comment_content cf\">\n <?php comment_text() ?>\n </section>\n <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>\n </article>\n <?php // </li> is added by WordPress automatically ?>\n<?php\n}", "title": "" }, { "docid": "b045498a8682e2c0b23b75b1898d2f79", "score": "0.5340355", "text": "public function sendPreview(Order_Model_Item $order_item, $comment = null) {\r\n\t\t$eml = new Zend_View();\r\n\t\t$eml->setScriptPath(APPLICATION_PATH . '/modules/order/views/emails/item');\r\n\t\t\r\n\t\t// assign valeues\r\n\t\t$eml->assign('partner_partner', $order_item->getOrderOrder()->getPartnerPartner());\r\n\t\t$eml->assign('order_item', $order_item);\r\n\t\t$eml->assign('comment', $comment);\r\n\t\t\r\n\t\t// render view\r\n\t\t$bodyText = $eml->render('send.phtml');\r\n\t\t\r\n\t\t$mail = new Zend_Mail();\r\n\t\t$mail->setBodyText($bodyText);\r\n\t\t$mail->addTo($order_item->getOrderOrder()->getPartnerPartner()->email);\r\n\t\t$mail->setSubject('Druckvorschau');\r\n\t\t\r\n\t\t$at = $mail->createAttachment(file_get_contents(APPLICATION_PATH . '/../public/deploy/' . $order_item->getAuthkey() . Product_Model_Layout::VIEW_PREVIEW_FRONT_SUFFIX . '.pdf'), 'application/pdf');\r\n\t\t$at->disposition = Zend_Mime::DISPOSITION_ATTACHMENT;\r\n\t\t$at->encoding = Zend_Mime::ENCODING_BASE64;\r\n\t\t$at->filename = $order_item->getAuthkey() . '.pdf'; //Hint! Hint!\r\n\t\t\r\n\t\t$mail->send();\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "b2696ad2b0d0acbb842ca5cf5439d250", "score": "0.53389686", "text": "public static function make($photo_id, $author=\"Anonymous\", $body=\"\") {\n if(!empty($photo_id) && !empty($author) && !empty($body)) {\n $comment = new Comment();\n $comment->photograph_id = (int)$photo_id;\n $comment->created = strftime(\"%Y/%m/%d %H:%M:%S\", time());\n $comment->author = $author;\n $comment->body = $body;\n return $comment;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "50a58bfd0abb5b2f3234c1b92d822459", "score": "0.5333425", "text": "public function execute()\n {\n\n $postData = $this->getRequest()->getParams();\n if ($id = $this->getRequest()->getParam('id')) {\n if (empty($postData['comment'])) {\n throw new \\Magento\\Framework\\Exception\\LocalizedException(__('Please enter a comment.'));\n }\n\n $rmaChat = $this->rmaChatFactory->create();\n $comment = trim(strip_tags($postData['comment']));\n $data = ['rma_request_id' => $id,\n 'created_at' => $this->dateTime->gmtDate(),\n 'chat_flow' => \\Ced\\CsRma\\Model\\Request::OWNER_ADMIN, //when send from admin\n 'chat' => $comment\n ];\n $rmaChat->setData($data);\n $files = $this->getRequest()->getFiles()->toArray();\n $file = '';\n if (!empty($files['rma_file']['name'])) {\n $file = $this->rmaDataHelper->getRmaImgUpload($postData);\n }\n if (!is_array($file)) {\n $rmaChat->setData('file', $file);\n } else {\n\n $this->messageManager->addErrorMessage(__($file[0]));\n return $this->resultRedirectFactory->create()->setPath('*/*/edit', ['id' => $this->getRequest()->getParam('id')]);\n }\n\n try {\n\n $rmaChat->save();\n $this->messageManager->addSuccessMessage(__('Message Sent Successfully'));\n $email = $this->prepareTemplateContent($comment, $id);\n return $this->resultRedirectFactory->create()->setPath('*/*/edit', ['id' => $this->getRequest()->getParam('id')]);\n\n } catch (\\Magento\\Framework\\Exception\\LocalizedException $e) {\n $response = ['error' => true, 'message' => $e->getMessage()];\n\n } catch (\\Exception $e) {\n $response = ['error' => true, 'message' => __('We cannot send message.')];\n }\n }\n return $this->resultRedirectFactory->create()->setPath('csrma/*/');\n }", "title": "" }, { "docid": "bae17508c42d5e70d43ef2670fa2fca7", "score": "0.5311863", "text": "function itstar_comments( $comment, $args, $depth ) {\n $GLOBALS['comment'] = $comment; ?>\n<div id=\"comment-<?php comment_ID(); ?>\" <?php comment_class('cf'); ?>>\n <article class=\"cf\">\n <header class=\"comment-author vcard\">\n <?php\n /*\n this is the new responsive optimized comment image. It used the new HTML5 data-attribute to display comment gravatars on larger screens only. What this means is that on larger posts, mobile sites don't have a ton of requests for comment images. This makes load time incredibly fast! If you'd like to change it back, just replace it with the regular wordpress gravatar call:\n echo get_avatar($comment,$size='32',$default='<path_to_url>' );\n */\n ?>\n <?php // custom gravatar call ?>\n <?php\n // create variable\n $bgauthemail = get_comment_author_email();\n ?>\n <img data-gravatar=\"http://www.gravatar.com/avatar/<?php echo md5( $bgauthemail ); ?>?s=40\" class=\"load-gravatar avatar avatar-48 photo\" height=\"40\" width=\"40\" src=\"<?php echo get_template_directory_uri(); ?>/library/images/nothing.gif\" />\n <?php // end custom gravatar call ?>\n <?php printf(__( '<cite class=\"fn\">%1$s</cite> %2$s', 'itstar' ), get_comment_author_link(), edit_comment_link(__( '(Edit)', 'itstar' ),' ','') ) ?>\n <time datetime=\"<?php echo comment_time('Y-m-j'); ?>\"><a href=\"<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>\"><?php comment_time(__( 'F jS, Y', 'itstar' )); ?> </a></time>\n\n </header>\n <?php if ($comment->comment_approved == '0') : ?>\n <div class=\"alert alert-info\">\n <p><?php _e( 'Your comment is awaiting moderation.', 'itstar' ) ?></p>\n </div>\n <?php endif; ?>\n <section class=\"comment_content cf\">\n <?php comment_text() ?>\n </section>\n <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>\n </article>\n <?php // </li> is added by WordPress automatically ?>\n <?php\n}", "title": "" }, { "docid": "2a9eca8f097aecaac1eff4d7ce905b3e", "score": "0.5305155", "text": "public function beenthere() {\n $this->readParams();\n global $TYPO3_DB;\n\n // Talk talk talk :)\n $TYPO3_DB->sql_query(\"UPDATE tx_tcdirectmail_sentlog SET beenthere = 1 WHERE authcode = '$this->authCode' AND uid = $this->sendId\");\n \n $rs = $TYPO3_DB->sql_query(\"SELECT target, user_uid FROM tx_tcdirectmail_sentlog WHERE authcode = '$this->authCode' AND uid = $this->sendId\");\n if (list($targetUid, $userUid) = $TYPO3_DB->sql_fetch_row($rs)) {\n $target = tx_tcdirectmail_target::getTarget($targetUid);\n $target->registerOpen($userUid);\n }\n \n header ('Content-type: image/gif');\n echo base64_decode('R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAO2lmDQ==');\n }", "title": "" }, { "docid": "a2adefe88211e31faf4819f3a9b51c39", "score": "0.5291993", "text": "function sendPhoto($chatID, $photo, $text = '', $parse_mode = '', $disable_notification = false, $reply = 0, $replyMarkup = []) {\n global $bot, $settings;\n\n $data = array();\n $data['chat_id'] = $chatID;\n $data['photo'] = $photo;\n if(!empty($text)) $data['caption'] = $text;\n if(!empty($parse_mode)) $data['parse_mode'] = $parse_mode; else $data['parse_mode'] = $settings['DEFAULT_parse_mode'];\n if($disable_notification) $data['disable_notification'] = $disable_notification; else $data['disable_notification'] = $settings['DEFAULT_disable_notification'];\n if(!empty($reply)){\n if(is_bool($reply)){\n if($reply===true) global $message_id; $data['reply_to_message_id'] = $message_id;\n } else $data['reply_to_message_id'] = $reply;\n }\n if(!empty($replyMarkup)){\n if(is_array($replyMarkup)) $replyMarkup = json_encode($replyMarkup);\n $data['reply_markup'] = $replyMarkup;\n }\n\n return $bot->TelegramApi(\"sendPhoto\", $data);\n}", "title": "" }, { "docid": "3570b45205ccfc28f22fe3d43ba12f71", "score": "0.5284593", "text": "function wp_spam_comment($comment_id)\n {\n }", "title": "" }, { "docid": "0a494d5cf6e6b554d6030d244c83aef5", "score": "0.5283689", "text": "function itstar_comments( $comment, $args, $depth ) {\n $GLOBALS['comment'] = $comment; ?>\n <div id=\"comment-<?php comment_ID(); ?>\" <?php comment_class('cf'); ?>>\n <article class=\"cf\">\n <header class=\"comment-author vcard\">\n <?php\n /*\n this is the new responsive optimized comment image. It used the new HTML5 data-attribute to display comment gravatars on larger screens only. What this means is that on larger posts, mobile sites don't have a ton of requests for comment images. This makes load time incredibly fast! If you'd like to change it back, just replace it with the regular wordpress gravatar call:\n echo get_avatar($comment,$size='32',$default='<path_to_url>' );\n */\n ?>\n <?php // custom gravatar call ?>\n <?php\n // create variable\n $bgauthemail = get_comment_author_email();\n ?>\n <img data-gravatar=\"http://www.gravatar.com/avatar/<?php echo md5( $bgauthemail ); ?>?s=40\" class=\"load-gravatar avatar avatar-48 photo\" height=\"40\" width=\"40\" src=\"<?php echo get_template_directory_uri(); ?>/library/images/nothing.gif\" />\n <?php // end custom gravatar call ?>\n <?php printf(__( '<cite class=\"fn\">%1$s</cite> %2$s', 'itstar' ), get_comment_author_link(), edit_comment_link(__( '(Edit)', 'itstar' ),' ','') ) ?>\n <time datetime=\"<?php echo comment_time('Y-m-j'); ?>\"><a href=\"<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>\"><?php comment_time(__( 'F jS, Y', 'itstar' )); ?> </a></time>\n\n </header>\n <?php if ($comment->comment_approved == '0') : ?>\n <div class=\"alert alert-info\">\n <p><?php _e( 'Your comment is awaiting moderation.', 'itstar' ) ?></p>\n </div>\n <?php endif; ?>\n <section class=\"comment_content cf\">\n <?php comment_text() ?>\n </section>\n <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>\n </article>\n <?php // </li> is added by WordPress automatically ?>\n<?php\n}", "title": "" }, { "docid": "fe1344875cd53c61f3e266ac724b5c0b", "score": "0.527805", "text": "function view_comment()\n\t{\n\t\tif ( ! $this->cp->allowed_group('can_access_content'))\n\t\t{\n\t\t\tshow_error($this->lang->line('unauthorized_access'));\n\t\t}\n\n\t\t$comment_id = $this->input->get('comment_id');\n\t\t$this->view_comments('', '', '', array($comment_id));\n\t}", "title": "" }, { "docid": "0c03d0369673167dfa7c12d7ea1c9f6b", "score": "0.5270029", "text": "function kirim_email_pic($id_pic,$email,$id_user,$last_insert_id,$firstname_pic,$lastname_pic){\n \n $get_users=$this->user_pengajuan_model->get_users($id_user);\n foreach($get_users as $us){\n $first_name=$us->first_name;\n $last_name =$us->last_name;\n }\n $count_email=count($email);\n $id_barang=$last_insert_id;\n $this->load->library('email');\n \n $data['first_name_pic']=$firstname_pic;\n $data['last_name_pic'] =$lastname_pic;\n $data['first_name']=$first_name;\n $data['last_name'] =$last_name;\n\n $i=0;\n while ($i <= $count_email)\n {\n $email_asli=$email[$i];\n $data['email_asli']=$email_asli;\n $message = $this->load->view('email_permintaan/notif_pic',$data, TRUE);\n $this->email->from('[email protected]', 'Bursa Sajadah');\n $this->email->to($email_asli);\n $this->email->subject('Pengajuan Permintaan Produk Non Dagang - Baru (#'.$first_name.') - ('.$last_name.')');\n $this->email->message($message); \n $this->email->send();\n $i=$i+1;\n }\n }", "title": "" }, { "docid": "9520a0293e84896b26d13eeadf0e9899", "score": "0.5266785", "text": "public function add_comment()\n { \n $this->load->model('mention_model');\n $contact = $this->clients_model->get_contact(get_contact_user_id());\n\n $data = $this->input->post();\n unset($data['url']);\n $data['postid'] = $data['postid'];\n $data['content'] = $this->reconvertAll($data['content']);\n\n $comment_id = $this->mention_model->add_comment_client($data, $contact); \n $success = false; \n $success = ($comment_id !== false ? true : false);\n $comment = '';\n if ($comment_id) {\n $comment = $this->comment_single($this->mention_model->get_comment($comment_id, true));\n }\n\n echo json_encode([\n 'success' => $success,\n 'comment' => $comment,\n 'comment_id' => $comment_id\n ]);\n }", "title": "" }, { "docid": "e3c8b5a894c7c55a3312643d3426a47d", "score": "0.5254512", "text": "public function sendProjectCommentMail($logginUser, $projectcomment)\n {\n $project = $this->_getAssignProjectUsers($projectcomment->project_id);\n $email_template = EmailTemplate::where('type', 'project_comments')->first();\n\n if (!empty($email_template)) {\n $url = config('app.front_url').'/#/projects/detail/'. $projectcomment->project_id;\n foreach ($project->users as $key => $value) {\n $message = $email_template->template_body;\n $subject = $email_template->template_subject;\n\n $posted_by = str_replace(\"{POSTED_BY}\", $logginUser->firstname.' '.$logginUser->lastname, $message);\n $project_name = str_replace(\"{PROJECT_NAME}\", $project->project_name, $posted_by);\n $site_url = str_replace(\"{COMMENT_URL}\", $url, $project_name);\n $comment = str_replace(\"{COMMENT_MESSAGE}\", $projectcomment->comment, $site_url);\n $message = str_replace(\"{SITE_NAME}\", config('core.COMPANY_NAME'), $comment);\n\n $this->_sendEmailsInQueue(\n $value->email,\n $value->name,\n $subject,\n $message\n );\n }\n }\n }", "title": "" }, { "docid": "766aa1bcb7ba885898034c0ffeea111c", "score": "0.5253352", "text": "function carton_mail( $to, $subject, $message, $headers = \"Content-Type: text/html\\r\\n\", $attachments = \"\" ) {\n\tglobal $carton;\n\n\t$mailer = $carton->mailer();\n\n\t$mailer->send( $to, $subject, $message, $headers, $attachments );\n}", "title": "" }, { "docid": "ddaa008227771bbd0c00faa51248cbaa", "score": "0.52450025", "text": "public function showCommentOfUserAction()\n {\n $params = $this->getRequest()->getParams();\n //Get users blocked and users who have blocked logged in user.\n $blocked_user = \\Extended\\blocked_users::getAllBlockersAndBlockedUsers(Auth_UserAdapter::getIdentity()->getId());\n \n $comments_obj = \\Extended\\comments::getRowObject( $params['comment_id'] );\n \n if($blocked_user)\n {\n \t$comment_user_photo_detail = \\Extended\\comments::getUsersPhotoForComment($comments_obj->getCommentsIlook_user()->getId(), $blocked_user);\n }\n else\n {\n \t$comment_user_photo_detail['photo_path'] = \\Helper_common::getUserProfessionalPhoto($comments_obj->getCommentsIlook_user()->getId(), 3);\n \t$comment_user_photo_detail['is_photo_clickable'] = true;\n }\n if( $comments_obj->getCommentsIlook_user()->getAccount_closed_on())\n {\n \t$comment_user_photo_detail['photo_path'] = \\Helper_common::getUserProfessionalPhoto($comments_obj->getCommentsIlook_user()->getId(), 3);\n \t$comment_user_photo_detail['is_photo_clickable'] = false;\n }\n $ret_r = array();\n $ret_r['comm_id'] = $params['comment_id'];\n $ret_r['comm_text'] = $comments_obj->getComment_text();\n $ret_r['same_comm_id'] = $comments_obj->getSame_comment_id();\n $ret_r['commenter_id'] = $comments_obj->getCommentsIlook_user()->getId();\n $ret_r['commenter_fname'] = $comments_obj->getCommentsIlook_user()->getFirstname();\n $ret_r['commenter_lname'] = $comments_obj->getCommentsIlook_user()->getLastname();\n $ret_r['commenter_small_image'] = $comment_user_photo_detail['photo_path'];\n $ret_r['is_user_photo_clickable'] = $comment_user_photo_detail['is_photo_clickable'];\n $ret_r['wp_id'] = $comments_obj->getId();\n $ret_r['created_at'] = Helper_common::nicetime( $comments_obj->getCreated_at()->format( \"Y-m-d H:i:s\" ));\n echo Zend_Json::encode($ret_r);\n die;\n }", "title": "" }, { "docid": "5ba89b1441f828cee89b0616a8bf0976", "score": "0.5239354", "text": "public function after_comment_create($ticket_id, $comment_id){\n\n\t\t$admin_emails = $this->get_ticket_admin_emails($ticket_id);\n\t\t$author_email = wt_get_ticket_author_meta($ticket_id, 'email');\n\n\t\t// add html email header\n\t\tadd_filter( 'wp_mail_content_type', array($this, 'set_html_content_type') );\n\t\n\t\t// current comment author\n\t\t$comment_email = get_comment($comment_id)->comment_author_email;\n\t\tif(in_array($comment_email, $admin_emails)){\n\n\t\t\t// check to see if the current comment was not public or private then dont notify\n\t\t\tif( !in_array( get_comment_meta( $comment_id, '_comment_access',true), array('public', 'private') ) ){\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// author posted\n\t\t\tif(is_member_ticket($ticket_id)){\n\n\t\t\t\t// send member email\n\t\t\t\t$email_subject = 'new comment member';\n\t\t\t\t$email_message = $this->get_email_content( 'member_update', array('test' => 'Member'));\n\t\t\t\t$template = $this->set_template_content($email_message, $email_subject);\n\t\t\t\twp_mail( $author_email, $email_subject, $template);\n\t\t\t}else{\n\n\t\t\t\t$email_vars = array(\n\t\t\t\t\t'pass' => get_post_meta( $ticket_id, '_view_key', true ),\n\t\t\t\t\t'name' => get_post_meta( $ticket_id, '_user_name', true ),\n\t\t\t\t);\n\n\t\t\t\t// send public email\n\t\t\t\t$email_subject = 'new comment public';\n\t\t\t\t$email_message = $this->get_email_content( 'public_update', $email_vars);\n\t\t\t\t$template = $this->set_template_content($email_message, $email_subject);\n\t\t\t\twp_mail( $author_email, $email_subject, $template);\n\t\t\t}\n\t\t}else{\n\n\t\t\t// non author, send admin emails\n\t\t\t$email_subject = 'new comment admin';\n\t\t\t$email_message = $this->get_email_content( 'admin_update', array('test' => 'Admin'));\n\t\t\t$template = $this->set_template_content($email_message, $email_subject);\n\t\t\twp_mail( $admin_emails, $email_subject, $template);\n\t\t}\n\n\t\t// remove html email header filter\n\t\tremove_filter( 'wp_mail_content_type', array($this, 'set_html_content_type') );\n\t}", "title": "" }, { "docid": "381860b4eabafb7cf0648f1bc2d79327", "score": "0.52228355", "text": "public static function send_noti_email($email, $content,$class_name) {\n $mail = new PHPMailer(true);\n\n try {\n //Server settings\n //$mail->SMTPDebug = SMTP::DEBUG_SERVER; // Enable verbose debug output\n $mail->isSMTP(); // Send using SMTP\n $mail->CharSet = 'UTF-8';\n $mail->Host = 'smtp.gmail.com'; // Set the SMTP server to send through\n $mail->SMTPAuth = true; // Enable SMTP authentication\n $mail->Username = '[email protected]'; // SMTP username\n $mail->Password = 'dxgfohpfcndbswzh'; // SMTP password\n $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; // Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS` encouraged\n $mail->Port = 587; // TCP port to connect to, use 465 for `PHPMailer::ENCRYPTION_SMTPS` above\n\n //Recipients\n $mail->setFrom('[email protected]', 'Admin classroom');\n $mail->addAddress($email, 'Admin classroom'); // Add a recipient\n /*$mail->addAddress('[email protected]'); // Name is optional\n $mail->addReplyTo('[email protected]', 'Information');\n $mail->addCC('[email protected]');\n $mail->addBCC('[email protected]');*/\n\n // Attachments\n /*$mail->addAttachment('/var/tmp/file.tar.gz'); // Add attachments\n $mail->addAttachment('/tmp/image.jpg', 'new.jpg'); */ // Optional name\n\n // Content\n $mail->isHTML(true); // Set email format to HTML\n $mail->Subject = $class_name;\n $mail->Body = $content;\n $mail->AltBody = 'This is the body in plain text for non-HTML mail clients';\n\n $mail->send();\n return true;\n } catch (Exception $e) {\n return false;\n }\n }", "title": "" }, { "docid": "8d8ac9763e191108a3a50ed6527cae7e", "score": "0.52168894", "text": "public static function notifyAdmin(array $comment)\n\t{\n\t\t// don't notify when a comment is marked as spam\n\t\tif($comment['status'] == 'spam') return;\n\n\t\t// build data for push notification\n\t\tif($comment['status'] == 'moderation') $alert = array('loc-key' => 'NEW_COMMENT_TO_MODERATE');\n\t\telse $alert = array('loc-key' => 'NEW_COMMENT');\n\n\t\t// get number of moderations to show in the badge\n\t\t$badge = (int) FrontendModel::getContainer()->get('database')->getVar(\n\t\t\t'SELECT COUNT(b.id)\n\t\t\t FROM guestbook AS b\n\t\t\t WHERE b.status = ? AND b.language = ?\n\t\t\t GROUP BY b.status',\n\t\t\tarray('moderation', FRONTEND_LANGUAGE)\n\t\t);\n\n\t\tif($badge == 0) $badge == null;\n\n\t\t// build data\n\t\t$data = array('data' => array('endpoint' => SITE_URL . '/api/1.0', 'comment_id' => $comment['id']));\n\n\t\t// push to apple device\n\t\tFrontendModel::pushToAppleApp($alert, $badge, null, $data);\n\n\t\t// get settings\n\t\t$notifyByEmailModeration = FrontendModel::getModuleSetting('guestbook', 'notify_by_email_on_new_comment_to_moderate', false);\n\t\t$notifyByEmailNewComment = FrontendModel::getModuleSetting('guestbook', 'notify_by_email_on_new_comment', false);\n\n\t\t// create urls\n\t\t$viewURL = SITE_URL . FrontendNavigation::getURLForBlock('guestbook') . '#comment-' . $comment['id'];\n\t\t$backendURL = SITE_URL . FrontendNavigation::getBackendURLForBlock('index', 'guestbook') . '#tabModeration';\n\n\t\tif($notifyByEmailModeration && $comment['status'] == 'moderation')\n\t\t{\n\t\t\t// set variables\n\t\t\t$variables['message'] = vsprintf(FL::msg('GuestbookEmailNotificationsNewCommentToModerate'), array($comment['author'], $viewURL, FL::lbl('Guestbook'), $backendURL));\n\n\t\t\t// send email\n\t\t\tFrontendMailer::addEmail(FL::msg('NotificationSubject'), FRONTEND_CORE_PATH . '/layout/templates/mails/notification.tpl', $variables);\n\t\t}\n\t\telseif($notifyByEmailNewComment)\n\t\t{\n\t\t\tif($comment['status'] == 'published')\n\t\t\t{\n\t\t\t\t// set variables\n\t\t\t\t$variables['message'] = vsprintf(FL::msg('GuestbookEmailNotificationsNewComment'), array($comment['author'], $viewURL, FL::lbl('Guestbook')));\n\t\t\t}\n\t\t\telseif($comment['status'] == 'moderation')\n\t\t\t{\n\t\t\t\t// set variables\n\t\t\t\t$variables['message'] = vsprintf(FL::msg('GuestbookEmailNotificationsNewCommentToModerate'), array($comment['author'], $viewURL, FL::lbl('Guestbook'), $backendURL));\n\t\t\t}\n\n\t\t\t// send email\n\t\t\tFrontendMailer::addEmail(FL::msg('NotificationSubject'), FRONTEND_CORE_PATH . '/layout/templates/mails/notification.tpl', $variables);\n\t\t}\n\t}", "title": "" }, { "docid": "281c2e729d54b60bfcc057d5c17760c7", "score": "0.5213928", "text": "function _send_mail_for_client($order_number,$order_id,$action,$type,$client_id){\n\t\textract($this->Client->get_client_all_email($client_id));\n\t\t$code_name=$this->Contract->get_order_code($order_id);\n\t\t$title='Noticfication Message';\n\t\t$content=\"\nDear {$client_name},\\n\\n\\n\nSent by [email protected]\n ---------------------------------------------------------------------------------------\nNoticfication Message\\n\nOrder# {$order_number} ( {$code_name} ) has been {$action} by {$type}.\\n\nPlease don't reply this email\\n\n ---------------------------------------------------------------------------------------\\n\\n\nRegards,\\n\nHenry\";\n\t\t\n\t\tforeach ($email as $key=>$value){\n\t\t\tif(!empty($value)){\n\t\t\t\t$this->PhpSendMail->send_mail($value,$title,$content);\n\t\t\t}\n\t\t}\n\t\t\n\n\n\t}", "title": "" }, { "docid": "9cae779c6fee9b57b320329200afa1e1", "score": "0.52133965", "text": "public function show(ImageComment $imageComment)\n {\n //\n }", "title": "" }, { "docid": "3b74d7c9dde0129cfd0b1169161bd0ee", "score": "0.5212302", "text": "public function Mail ($nom, $prenom, $email, $message) {\n\n $mail = new PHPMailer(true);\n\n //$mail->SMTPDebug = SMTP::DEBUG_SERVER; //Enable verbose debug output\n $mail->isSMTP(); //Send using SMTP\n $mail->Host = 'smtp.gmail.com'; //Set the SMTP server to send through\n $mail->SMTPAuth = true; //Enable SMTP authentication\n $mail->Username = '[email protected]'; //SMTP username\n $mail->Password = 'lkanizmbebajdkmn'; //SMTP password\n $mail->SMTPSecure = 'ssl'; //Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS` encouraged\n $mail->Port = 465; //TCP port to connect to, use 465 for `PHPMailer::ENCRYPTION_SMTPS` above\n\n //Recipients\n $mail->setFrom('[email protected]', 'JUNGLE GARDENER');\n $mail->addAddress('[email protected]'); //Add a recipient\n\n\n //Content\n $mail->isHTML(true); //Set email format to HTML\n $mail->Subject = 'CONTACT - JUNGLE GARDENER';\n $mail->Body = '<div>\n <span><b>Nom</b> : '.$nom.'</span><br>\n <span><b>Prenom</b> : '.$prenom.'</span><br>\n <span><b>Email</b> : '.$email.'</span><br>\n <span><b>Message</b> : '.$message.'</span>\n </div>';\n\n $mail->send();\n\n }", "title": "" } ]
73bc7079fd23fd36dc1978f7af5bc3af
Calculates a product's average rating
[ { "docid": "33c8bcced042f33d0eee186b7f2dacc9", "score": "0.7965578", "text": "private function calculateAverageRating($idProduct) {\n\t\t$average = Review::where('idProduct', '=', $idProduct)->avg('rating');\n\t\tif ($average == null) {\n\t\t\treturn 5;\n\t\t} else {\n\t\t\treturn $average;\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "9a4ea1b3fadc7d3ed11c3734fe8ea543", "score": "0.8023818", "text": "public function getAverageRating();", "title": "" }, { "docid": "e940e23dd46b81e796f3ddadc145de40", "score": "0.795169", "text": "public function getRatingAverage();", "title": "" }, { "docid": "d1ba95b995a770a04838592067e543e7", "score": "0.7891585", "text": "public function averageRating()\n {\n return $this->ratings()->avg('rating');\n }", "title": "" }, { "docid": "96a9a9c4e112119204f8b435b3c528a0", "score": "0.73616093", "text": "public function getAvgRating(){\n\t\treturn $this->avg_rating;\n\t}", "title": "" }, { "docid": "470eb893ecc4c40269427697d7f5f4cf", "score": "0.72762203", "text": "public function totalAverageRatings()\n {\n\t // get all my recipes made\n $recipes = $this->hasMany(Recipe::class)->get();\n\n\t//if our recipes are completely empty return empty recipes, otherwise, continue\n\tif($recipes->isEmpty())\n\t return 0;\n\n\t $count = 0;\n\t $totalRatings = 1;\n\t forEach($recipes as $recipe) {\n\t\tif($recipe->hasRatings()) {\n\t $count += $recipe->getRating();\n\t\t$totalRatings += 1;\n\t }\n\t }\n\t\n\treturn round($count/$totalRatings, 2);\n }", "title": "" }, { "docid": "49c3c1624099df6992c23d0bb369fa41", "score": "0.7185806", "text": "public function getAverageRating() {\n return $this->data['rating_avg'];\n }", "title": "" }, { "docid": "d949523885cfd98baf30ab9a61959302", "score": "0.71812636", "text": "public function getAverageRating()\n {\n return $this->average_rating;\n }", "title": "" }, { "docid": "45899abbcf77d71c8ec29e09cd5e77f5", "score": "0.71457666", "text": "public function getAverageRating()\n {\n return round(($this->rateBroadbandAccessibility + $this->rateCarParkSpaces + $this->rateLandlordApproach +\n $this->rateNeighbours + $this->rateQualityOfEquipment + $this->rateUtilityCharges) / 6, 2);\n }", "title": "" }, { "docid": "8b6dfda27a507ac030999b7568424d58", "score": "0.7133159", "text": "public function getRating()\n {\n $sum = 0;\n $average = 0;\n $ratings = $this->getRatings();\n foreach ($ratings as $rating) {\n if($rating->getEnabled()){\n $sum += $rating->getRate();\n }\n }\n if($sum)\n $average = round($sum / count($ratings),1);\n\n return $average;\n\n }", "title": "" }, { "docid": "78ff5681bc5f44d503e605554f4f2d80", "score": "0.7114931", "text": "public function display_product_stars( ){\n\t\t$total = 0;\n\t\tfor( $i=0; $i<count( $this->reviews ); $i++ ){\n\t\t\t$total = $total + $this->reviews[$i]->rating;\t\n\t\t}\n\t\tif( $i > 0 )\n\t\t\t$average = ceil( $total/$i );\n\t\telse\n\t\t\t$average = 0;\n\t\techo $this->rating->display_stars( $average );\t\n\t}", "title": "" }, { "docid": "667b64a0c33e38d5bb58869e031921dc", "score": "0.69848603", "text": "public function getRatingAttribute()\n {\n return $this->reviews->avg('stars');\n }", "title": "" }, { "docid": "ee8ed1391ce00e62cf5d43cf6c87922e", "score": "0.69603366", "text": "public function getReviewAverageAttribute()\n {\n $total = 0;\n $count = 0;\n\n foreach($this->reviews as $review) {\n $total = $total + $review->rating;\n $count++;\n }\n \n /** Average the review ratings\n * and check for 0, cause you can't divide by zero\n */\n if($total == 0 || $count == 0) {\n $average = 0;\n } else {\n $average = round($total/$count);\n }\n \n return $average;\n }", "title": "" }, { "docid": "f15104e3de46715437578245f850a191", "score": "0.6915251", "text": "public function getAverageRating()\n {\n return $this->model->{$this->relationForAverageRating};\n }", "title": "" }, { "docid": "1cc570a2e05a44f8954b9a109fcbfe73", "score": "0.6880942", "text": "public function getRatingAttribute()\n {\n return $this->ratings()->avg('rating');\n }", "title": "" }, { "docid": "023eb6b6d6d98197783c4aae070379c5", "score": "0.68030506", "text": "function get_average_rating($custom_id = null) {\n\t\tglobal $id, $wpdb;\n\t\t$pid = $id;\n\t\tif (is_numeric($custom_id))\n\t\t\t$pid = $custom_id;\n\t\t\t\n\t\t$ratings = get_ratings($pid);\n\t\t\n\t\t$sum = 0;\n\t\t$count = 0;\n\t\tforeach ($ratings as $rating) {\n\t\t\tif ($rating > 0) {\n\t\t\t\t$sum += $rating;\n\t\t\t\t$count++;\t\t\n\t\t\t}\n\t\t}\n\t\t\t\n\t\treturn ($count > 0) ? $sum / $count : 0;\n\t}", "title": "" }, { "docid": "1b192219432da1ef9a96aef1fb822546", "score": "0.6759238", "text": "public function getOverallRating($product_id)\n {\n Review::getOverallRating($product_id);\n }", "title": "" }, { "docid": "aee1b2f856988a15e4c2ce1d46520fbc", "score": "0.67500424", "text": "public function getRating(): float;", "title": "" }, { "docid": "973abfec283007649ad81e88bf0dc596", "score": "0.6716002", "text": "function wpv_woocommerce_rating() {\n\t\tglobal $product;\n\n\t\tif ( !isset($product) || get_option( 'woocommerce_enable_review_rating' ) != 'yes' ) return;\n\n\t\t$count = $product->get_rating_count();\n\n\t\tif ( $count > 0 ) {\n\n\t\t\t$average = $product->get_average_rating();\n\n\t\t\techo '<div itemprop=\"aggregateRating\" itemscope itemtype=\"http://schema.org/AggregateRating\">';\n\n\t\t\techo '<div class=\"star-rating\" title=\"' . esc_attr( sprintf( __( 'Rated %s out of 5', 'woocommerce' ), $average ) ) . '\"><span style=\"width:' . esc_attr( ( ( $average / 5 ) * 100 ) ) . '%\"><strong itemprop=\"ratingValue\" class=\"rating\">' . $average . '</strong> <span class=\"visuallyhidden\">' . __( 'out of 5', 'woocommerce' ) . '</span></span></div>'; // xss ok\n\n\t\t\techo '</div>';\n\n\t\t}\n\t}", "title": "" }, { "docid": "4af2f48217c077000458aadaa98c4333", "score": "0.6696787", "text": "function average() {\r\n $total = 0;\r\n foreach ($this->grades as $value) {\r\n $total += $value;\r\n }\r\n \r\n return $total / count($this->grades);\r\n }", "title": "" }, { "docid": "8f49a2d7f5ea00151bb44544e0a9b3b6", "score": "0.6687889", "text": "public function getAggregateRating();", "title": "" }, { "docid": "35ec07afcf0bb8fa226dfbd8be78f85c", "score": "0.6685487", "text": "function average() {\r\n $total = 0;\r\n foreach ($this->grades as $value){\r\n $total += $value;\r\n }\r\n return $total / count($this->grades);\r\n }", "title": "" }, { "docid": "520f2eec6f6778f28f687c5cb6cc0f56", "score": "0.66530246", "text": "public function getRating()\n {\n return round($this->averageRating(),1);\n }", "title": "" }, { "docid": "af98e26ce7e4c2b9bb8abbebc3a1f15d", "score": "0.66433537", "text": "function average() {\n $total = 0;\n foreach ($this->grades as $value)\n $total += $value;\n return $total / count($this->grades);\n }", "title": "" }, { "docid": "af98e26ce7e4c2b9bb8abbebc3a1f15d", "score": "0.66433537", "text": "function average() {\n $total = 0;\n foreach ($this->grades as $value)\n $total += $value;\n return $total / count($this->grades);\n }", "title": "" }, { "docid": "3321a0ca36d8e9bf8e215d59592dd0e2", "score": "0.6633296", "text": "public function getVote_average()\n {\n return $this->vote_average;\n }", "title": "" }, { "docid": "29df4826850523ae117d336008622b68", "score": "0.6615718", "text": "function get_star_rating($product_id)\n{\n\t$CI = &get_instance();\n\t$CI->load->model('Review_model', 'review');\n\n\t$star = $CI->review->get_products_star_rating($product_id);\n\n\treturn $star;\n}", "title": "" }, { "docid": "fe6a4ab1ec7fab408b8c13009e802d41", "score": "0.66074353", "text": "public function getVote_average()\n {\n return $this->vote_average;\n }", "title": "" }, { "docid": "13705eb838a8b1b16b1cbe3facc30646", "score": "0.6602302", "text": "public function testaddToRatingAverage()\n {\n $oArticle = $this->_createArticle('_testArt');\n $oArticle->oxarticles__oxrating = new oxField(3.5, oxField::T_RAW);\n $oArticle->oxarticles__oxratingcnt = new oxField(2, oxField::T_RAW);\n $oArticle->save();\n $oArticle->addToRatingAverage(5);\n\n $this->assertEquals(4, $oArticle->oxarticles__oxrating->value);\n $this->assertEquals(3, $oArticle->oxarticles__oxratingcnt->value);\n $dRating = oxDb::getDb()->getOne(\"select oxrating from oxarticles where oxid='\" . $oArticle->getId() . \"'\");\n $this->assertEquals(4, $dRating);\n }", "title": "" }, { "docid": "0417ca93363d0b9d4fba0dfcdc3c7b05", "score": "0.6597592", "text": "public function testGetArticleRatingAverage()\n {\n $oArticle = $this->_createArticle('_testArt', '_testVar');\n $oArticle->oxarticles__oxrating = new oxField(3.52345, oxField::T_RAW);\n $oArticle->oxarticles__oxratingcnt = new oxField(1, oxField::T_RAW);\n\n $this->assertEquals(3.5, $oArticle->getArticleRatingAverage());\n $this->assertEquals(1, $oArticle->getArticleRatingCount());\n\n // inserting few test records\n $oRev = oxNew('oxreview');\n $oRev->setId('_testrev1');\n $oRev->oxreviews__oxobjectid = new oxField('_testArt');\n $oRev->oxreviews__oxtype = new oxField('oxarticle');\n $oRev->oxreviews__oxrating = new oxField(3);\n $oRev->save();\n\n $oRev = oxNew('oxreview');\n $oRev->setId('_testrev2');\n $oRev->oxreviews__oxobjectid = new oxField('_testArt');\n $oRev->oxreviews__oxtype = new oxField('oxarticle');\n $oRev->oxreviews__oxrating = new oxField(1);\n $oRev->save();\n\n $oRev = oxNew('oxreview');\n $oRev->setId('_testrev3');\n $oRev->oxreviews__oxobjectid = new oxField('_testVar');\n $oRev->oxreviews__oxtype = new oxField('oxarticle');\n $oRev->oxreviews__oxrating = new oxField(5);\n $oRev->save();\n\n $this->assertEquals(3, $oArticle->getArticleRatingAverage(true));\n $this->assertEquals(3, $oArticle->getArticleRatingCount(true));\n\n }", "title": "" }, { "docid": "662ab592c4a8c50e5940836edbb13d32", "score": "0.65713906", "text": "function calcAvgRating($dbc, $userID) // return average rating\r\n {\r\n // formula AR = 1*a+2*b+3*c+4*d+5*e/5\r\n $user_id = $dbc->real_escape_string(trim($userID));\r\n\r\n $q = \"SELECT AVG(rating) AS avgRating FROM ratings WHERE user_id = $user_id\";\r\n $r = $dbc->query($q);\r\n $row = $r->fetch_array(MYSQLI_ASSOC);\r\n if ($row['avgRating'] > 0) {\r\n // return $row['avgRating'];\r\n return number_format ($row['avgRating'], 1);\r\n } else {\r\n return \"Not enough ratings.\";\r\n }\r\n }", "title": "" }, { "docid": "8c1d24a484529cb99fd961c8a5a498a3", "score": "0.6569904", "text": "public function getAverageScore()\n {\n return $this->rateableService->getRatingsFor($this->owner->ClassName, $this->owner->ID)->avg('Score');\n }", "title": "" }, { "docid": "066643ea9db616732bfea69d8711bb76", "score": "0.65569687", "text": "public static function getAVGRatingByProductId($productId){\r\n $results = self::getConnection()->executeQuery(\"SELECT ROUND(AVG(Rating),1) FROM Rating WHERE ProductId = '?'\", array($productId));\r\n\r\n $resultsArray = array();\r\n for($i = 0; $i < $results->num_rows; $i++ ){\r\n\r\n $row = $results->fetch_array();\r\n\r\n $rating = self::convertRowToObject1($row);\r\n\r\n $resultsArray[$i] = $rating;\r\n }\r\n\r\n return $resultsArray;\r\n\r\n }", "title": "" }, { "docid": "619598a7837fad6a7d53035e977d5e51", "score": "0.6551205", "text": "public function average()\n {\n $numeric = $this->filter('Noz\\is_numeric');\n if (!$count = $numeric->count()) {\n return 0;\n }\n return $numeric->sum() / $count;\n }", "title": "" }, { "docid": "2f9bef2955341407f02afaab2a7483c8", "score": "0.6472084", "text": "function average() {\n $total = 0;\n foreach($this->grades as $value) {\n $total += $value;\n }\n if (count($this->grades) == 0) {\n return 0;\n }\n return $total / count($this->grades);\n }", "title": "" }, { "docid": "c2f17efdbd9be5c5a637f7e99a804c22", "score": "0.64378303", "text": "public function getVoteAverage() {\n return $this->_data['vote_average'];\n }", "title": "" }, { "docid": "7b5c79627a7b1a1123cbf6550465974f", "score": "0.6412185", "text": "function get_average_rate() {\n $this->db->select(\"a.coach_id, sum(cr.rate) as sum\");\n $this->db->group_by('a.coach_id'); \n $this->db->from('coach_ratings cr');\n $this->db->join('appointments a', 'cr.appointment_id = a.id');\n $this->db->where('a.student_id',$this->auth_manager->userid());\n $this->db->where('cr.status', 'rated');\n\n $rate = array();\n foreach($this->db->get()->result() as $a){\n $rate[$a->coach_id] = $a->sum;\n }\n \n // getting total count rating\n $this->db->select(\"a.coach_id, count(cr.rate) as count\");\n $this->db->group_by('a.coach_id'); \n $this->db->from('coach_ratings cr');\n $this->db->join('appointments a', 'cr.appointment_id = a.id');\n $this->db->where('a.student_id',$this->auth_manager->userid());\n $this->db->where('cr.status', 'rated');\n \n foreach($this->db->get()->result() as $a){\n $rate[$a->coach_id] = $rate[$a->coach_id]/$a->count;\n }\n \n return $rate;\n }", "title": "" }, { "docid": "5bf30e465ba6fb9ec3e01d814803be81", "score": "0.64020765", "text": "public function average(): int\n\t{\n\t\t// We assume all reviews will be positive so any reviews not left will count towards the total of the average.\n\t\t// Because of the assumption we can just get the count of completed rentals when averaging.\n\t\t$completedRentalsCount = $this->getCompletedRentalsCount();\n\n\t\t// We then get only the negative answers count adding it to the average.\n\t\t$negativeAnswersCount = UserQuestionAnswer::whereUserScoringQuestion()\n\t\t\t->where('answer_id', Answer::NO)\n\t\t\t->whereIn('item_rental_id', $this->getUsersLentItemIds())->count();\n\n\t\t$avg = (($completedRentalsCount - $negativeAnswersCount) / $completedRentalsCount) * 100;\n\n\t\treturn (int) ceil($avg);\n\t}", "title": "" }, { "docid": "a23dfdf403ba663608a942b447fee8eb", "score": "0.63970476", "text": "public function getTotalRating($userId){\n return $this->getUserRating($userId)['average'];\n }", "title": "" }, { "docid": "1859f0558166a7db1d022abc81fba617", "score": "0.63344336", "text": "public function getAveragePlayerRating()\n {\n $players = $this->players()->getResults();\n $rating = 0;\n $totalPlayers = count($players);\n if ($totalPlayers > 0) {\n foreach ($players as $player) {\n $rating += ($player->player_rating*100);\n }\n return number_format((float)($rating/$totalPlayers), 3, '.', '');\n } else {\n return 0.000;\n }\n }", "title": "" }, { "docid": "606e6df1a5d9d1cd1c0bee8dd873b320", "score": "0.6315502", "text": "public function average()\n {\n if (!isset($this->comparisonCollection)) {\n //If we are dealing with a single answer index instead of all of the answers\n if (!is_array($this->getEntity()->first())) {\n $value_sum = 0;\n foreach ($this->getEntity() as $answer) {\n if ($answer->value) {\n $numeric_value = preg_replace('/[a-zA-Z]/', '', $answer->value);\n $value_sum += $numeric_value;\n }\n }\n if ($value_sum <= 0) {\n return 0;\n }\n return $value_sum / $this->count();\n }else {\n //If we are dealing with multiple answer indexes\n //@todo figure this out\n\n }\n } else {\n $this->comparison['average'] = new Collection();\n //we are dealing with a comparison of the averages\n\n //If we are dealing with a single answer index\n if (!is_array($this->getEntity()->first()) && !is_object($this->getEntity()->first())) {\n //@todo figure this out\n } else {\n //If we are dealing with a collection of answer index => answer collections\n foreach ($this as $question_index => $answer_collection) {\n\n $data = array(\n 'value' => $answer_collection->average() - $this->getComparisonCollection()[$question_index + 1]->average(),\n 'index' => $question_index + 1,\n );\n\n $this->comparison['average']->push($data);\n }\n }\n\n\n $this->comparison['average']->sort(function($a, $b){\n if ($a == $b) {\n return 0;\n }\n return ($a['value'] > $b['value']) ? -1 : 1;\n });\n\n\n return $this->comparison['average'];\n }\n }", "title": "" }, { "docid": "26529c8001726673de2a0f8753d9ccb5", "score": "0.6315051", "text": "public static function Rating($code) \n {\n \n global $database;\n \n // verify user login\n\n $email = $database->escape($code);\n\n $sql = \"SELECT * FROM ratings WHERE product_code = '$code'\";\n $result = $database->insert($sql);\n \n $result_num = mysqli_num_rows($result);\n \n \n $max = 0;\n foreach ($result as $rate => $count) { // iterate through array\n $max = $max+$count['rating'];\n }\n\n if($result_num > 0){\n $averageRating = @($max / $result_num);\n }\n\n \n \n if(isset($averageRating)) {\n return $averageRating;\n } else {\n return 0;\n }\n \n }", "title": "" }, { "docid": "c03c44ce97915aebd19171d7a40e32c8", "score": "0.6288043", "text": "public function averageRating() {\n\t\t$this->ratingAvg = 0;\n\t\t$this->ratingCount = 0;\n\n\t\t/* Get average of each of establishment plates */\n\t\tforeach($this->plates as $key => $plate) {\n\t\t\t$tmp = $plate->averageRating();\n\t\t\tif ($tmp) {\n\t\t\t\tif ($tmp > 0) {\n\t\t\t\t\t$this->ratingAvg += $tmp;\n\t\t\t\t\t$this->ratingCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* Averages the average rating of each plate */\n\t\tif ($this->ratingCount > 0) {\n\t\t\t$this->ratingAvg /= $this->ratingCount;\n\t\t}\n\n\t\tunset($this->plates);\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "184486f80f728f0b1910768befc0fb99", "score": "0.6285639", "text": "public function getAvgRatings() {\n\n // $waitingComment = $this->getWaitingCommentCount();\n\n // return compact('waitingComment');\n\n // Calculer la somme des notations\n\n // if($this->comment->getStatus() == \"Validé\"){\n // $status = $this->comment->getStatus();\n // if($status == \"Validé\"){\n \n \n // $count = count($this->comments) WHERE (comments->getStatus) = \"Validé\";\n\n\n\n\n\n $sum = array_reduce($this->reviews->toArray(), function($total, $review) {\n \n if($review->getStatus() === \"Validé\"){\n return $total + $review->getNote();\n \n\n }else{\n return $total;\n \n\n }\n }, 1);\n // dump($sum);\n // die();\n dd($sum);\n\n // }\n // }\n\n $nbValidatedComments = array_reduce($this->reviews->toArray(), function($total, $review) {\n \n if($review->getStatus() === \"Validé\"){\n return $total + 1;\n \n }else{\n return $total; \n }\n }, 0);\n\n // dd($nbValidatedComments);\n\n // Faire la division pour avoir la moyenne\n // if(count($this->comments) > 0) return round($sum /count($this->comments));\n\n if($nbValidatedComments > 0) return ceil($sum / $nbValidatedComments);\n\n // Sinon retourner null (0)\n return 0;\n\n }", "title": "" }, { "docid": "9a7154f240e885ca3c11dae47ca44a30", "score": "0.627037", "text": "public function getAverage()\n {\n return $this->average;\n }", "title": "" }, { "docid": "033d9db8cdc8546277414ffcf75fe374", "score": "0.6267646", "text": "public function actionGetRating() {\n $id = Yii::$app->request->get('id');\n $product = Product::findOne($id);\n $rating = round($product->rating / $product->voters, 1);\n return json_encode(['rating' => $rating, 'voters' => $product->voters]);\n }", "title": "" }, { "docid": "3ed6641438f84bc2ddb8abff32aa3936", "score": "0.626163", "text": "public function averageScore(): float\r\n {\r\n return $this->avg = $this->total / 5;\r\n }", "title": "" }, { "docid": "9b38af3a9436c520b280d8ec9190993c", "score": "0.6261278", "text": "public function getAvgRateAttribute()\n {\n $total = round($this->rates->avg('rate'));\n\n return $total;\n }", "title": "" }, { "docid": "d7ee4b85113f8c12491d330d575c99d3", "score": "0.62582326", "text": "public function updateAggregateRating()\n\t{\n\t\t$this->{$this->getRatingAverageColumn()} = $this->aggregateRatingReviews()\n\t\t\t->avg($this->getReviewRatingColumn());\n\n\t\t$this->{$this->getRatingCountColumn()} = $this->aggregateRatingReviews()\n\t\t\t->count($this->getReviewRatingColumn());\n\n\t\t$this->getQuery()\n ->where($this->getKeyName(), $this->getKey())\n ->update([\n $this->getRatingAverageColumn() => $this->{$this->getRatingAverageColumn()},\n $this->getRatingCountColumn() => $this->{$this->getRatingCountColumn()},\n ]);\n\t}", "title": "" }, { "docid": "3821a59ca80dcfbe25554a89da2d3d10", "score": "0.6253296", "text": "public function getRating()\n\t{\n\t\treturn number_format($this->rate_sum / $this->rate_cnt, 2);\n\t}", "title": "" }, { "docid": "f2242ecbcb9d76ed66e13de1ca53a611", "score": "0.62401026", "text": "function Average_of_rating($conn, $post_id)\n {\n \t $sql = \"select avg(num_of_star) from judge where post_id = $post_id\";\n \t $result = $conn->query($sql);\n \t if(!$result)\n \t {\n \t \ttrigger_error(\"Co loi xay ra khi tinh diem tb danh gia: \".$conn->error.\"</br>\");\n \t \treturn -1;\n \t }else{\n \t \t$row = $result->fetch_row();\n \t \treturn $row[0];\n \t } \n }", "title": "" }, { "docid": "7c5a80545334f0034e2a442ea4f4a022", "score": "0.6207025", "text": "function woocommerce_template_loop_rating() {\n\t\tglobal $product;\n\n\t\tif ( !isset($product) || get_option( 'woocommerce_enable_review_rating' ) != 'yes' ) return;\n\n\t\t$count = $product->get_rating_count();\n\n\t\tif ( $count > 0 ) {\n\n\t\t\t$average = $product->get_average_rating();\n\n\t\t\techo '<div class=\"aggregateRating\" itemprop=\"aggregateRating\" itemscope itemtype=\"http://schema.org/AggregateRating\">';\n\n\t\t\techo '<div class=\"star-rating\" title=\"' . esc_attr( sprintf( __( 'Rated %s out of 5', 'woocommerce' ), $average ) ) . '\"><span style=\"width:' . ( ( $average / 5 ) * 100 ) . '%\"><strong itemprop=\"ratingValue\" class=\"rating\">' . $average . '</strong> <span class=\"visuallyhidden\">' . __( 'out of 5', 'woocommerce' ) . '</span></span></div>'; // xss ok\n\n\t\t\techo '</div>';\n\n\t\t}\n\t}", "title": "" }, { "docid": "7e7dac87bfb805930570011229e1719e", "score": "0.6204852", "text": "public function rating() {\n\t\t\t$rating_html = '';\n\t\t\tif(is_object($this->product) && isset($this->args['post_show_rating']) && $this->args['post_show_rating'] == 'on') {\n\t\t\t\tif(function_exists('wc_get_rating_html') && method_exists($this->product, 'get_average_rating')) {\n\t\t\t\t\t$rating_html .= wc_get_rating_html( $this->product->get_average_rating() );\n\t\t\t\t} elseif(method_exists($this->product, 'get_rating_html')) {\n\t\t\t\t\t$rating_html .= $this->product->get_rating_html();\n\t\t\t\t}\n\t\t\t\tif(!empty($rating_html)) {\n\t\t\t\t\t$rating_html = '<div class=\"dfd-rating-wrap\"><div class=\"inline-block\">'.$rating_html.'</div></div>';\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $rating_html;\n\t\t}", "title": "" }, { "docid": "9403e45cb2532d8087113d0694739ea9", "score": "0.6199525", "text": "function Overall ($idPubli, $bd) \n{\n // Note: does not take account of NULL values\n $query = \"SELECT AVG(overall) AS overall FROM Review WHERE idPubli=$idPubli\";\n \n $result = $bd->execRequete ($query);\n $rev = $bd->objetSuivant ($result);\n if (is_object($rev)) \n return $rev->overall;\n else \n return 0;\n}", "title": "" }, { "docid": "039764563ffdf08ab8d7ff64825f40fd", "score": "0.6178247", "text": "public function computeAverageRating(ConnectionInterface $con)\n {\n $stmt = $con->prepare('SELECT AVG(rating) FROM event_rating WHERE event_rating.EVENTID = :p1');\n $stmt->bindValue(':p1', $this->getId());\n $stmt->execute();\n\n return $stmt->fetchColumn();\n }", "title": "" }, { "docid": "90f84f67263961d570d26725956dff11", "score": "0.6173755", "text": "public function getRating(): float\n {\n return $this->r;\n }", "title": "" }, { "docid": "31d74b00af10ef88ea88f54a880ba84a", "score": "0.6151204", "text": "public function getAvgRating($record_id) {\n\n $ratingsTable = $this->getDb()->Ratings;\n\n $sql = \"SELECT rating FROM $ratingsTable WHERE record_id = $record_id\";\n\n $result = $this->query($sql);\n $rating = $result->fetchAll();\n\n // AVG the result - http://bit.ly/I6Geib\n $avgRating = (floor($rating[0]['rating'] * 2))/2;\n\n return $avgRating;\n }", "title": "" }, { "docid": "473cfa50131fd3ac4cd32d8827abb9c5", "score": "0.61484534", "text": "function get_average_listing_rating( $post_id = null, $decimals = 2 ) {\n\n\tif ( empty( $post_id ) ) {\n\t\tglobal $post;\n\t\t$post_id = $post->ID;\n\t}\n\n\tglobal $pixreviews_plugin;\n\tif ( method_exists( $pixreviews_plugin, 'get_average_rating' ) ) {\n\t\treturn $pixreviews_plugin->get_average_rating( $post_id, $decimals );\n\t}\n\n\treturn false;\n}", "title": "" }, { "docid": "07c125da99229a8aff3638a957750efe", "score": "0.61247206", "text": "public function avgRating($type = 'review')\n {\n return $this->comments->where('type', $type)->avg('rating');\n }", "title": "" }, { "docid": "9341084f9627e67c32c43e84081da9b1", "score": "0.6105875", "text": "public function Average() {\r\n\t\tif(empty($this->_average)) {\r\n\t\t\t$result = mysql_query(\"SELECT `dAverage` FROM `z_pricing` WHERE `typeID` = '\" . $this->DatabaseId() . \"';\");\r\n\t\t\t$result = mysql_fetch_object($result);\r\n\t\t\t$this->_average = $result->dAverage;\r\n\t\t}\r\n\t\treturn $this->_average;\r\n\t}", "title": "" }, { "docid": "584289d6c13f44d181903f65a1e19e97", "score": "0.6082147", "text": "public function setAverageRating($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->average_rating !== $v) {\n $this->average_rating = $v;\n $this->modifiedColumns[EventTableMap::COL_AVERAGE_RATING] = true;\n }\n\n return $this;\n }", "title": "" }, { "docid": "14bed726a4cae4ac1cf781b4728ee077", "score": "0.6076693", "text": "public function rating(){\n return $this->getValue(\"rating\");\n }", "title": "" }, { "docid": "7dda5f3f7242532dea570e2d72e144dd", "score": "0.60559934", "text": "public function getRating(){return $this->rating;}", "title": "" }, { "docid": "abc16f16c2697340c9b06f2a27bf0eeb", "score": "0.60464495", "text": "public function average($attribute, $precision = 1)\n {\n $items = $this->lists($attribute);\n if (!$items) {\n return;\n }\n\n $average = array_sum($items) / count($items);\n $average = round($average, $precision);\n\n return $average;\n }", "title": "" }, { "docid": "abf7293bbb751e45b168d7e4cfe8cf86", "score": "0.60462654", "text": "function getTotalrating($deal_id)\n {\n $sqlrat_tot=\"SELECT rating_id FROM tbl_rating where deal_id=$deal_id\";\n $rowrat_tot=mysql_query($sqlrat_tot)or die(mysql_error());\n $countRatQues = 0;\n $totalRatMark = 0;\n while($recrat_tot=mysql_fetch_assoc($rowrat_tot))\n {\n $sqlavg =\"SELECT sum(rating_mark) as ratmrksum,count(id) as quecount FROM tbl_detailed_rating WHERE rating_id =\".$recrat_tot['rating_id'];\n $rowavg=mysql_query($sqlavg)or die(mysql_error());\n $recavg=mysql_fetch_assoc($rowavg);\n $countRatQues += $recavg['quecount'];\n $totalRatMark += $recavg['ratmrksum'];\n }\n $avgRating = 0;\n if($countRatQues > 0)\n {\n $avgRating = round($totalRatMark/$countRatQues);\n }\n return $avgRating;\n }", "title": "" }, { "docid": "fbb63571f2ba4a6198465c50cbba4678", "score": "0.60377795", "text": "public function avg(): int|float;", "title": "" }, { "docid": "4bfe79c4bc83370fecc1ebd4f536cee2", "score": "0.603105", "text": "public function average()\n {\n return array_sum($this->faceValues) / $this->numberOfDices;\n }", "title": "" }, { "docid": "45de5e749a6a35959c35d2d2f898576c", "score": "0.6030045", "text": "public function reviewRating()\n {\n return $this->hasMany('App\\Review','restaurant_id','id')->select('id','restaurant_id', DB::raw('SUM(rating) as total_rating'), \\DB::raw('count(*) as total_reviews'), DB::raw('ROUND(SUM(rating)/count(*), 1) as average'));\n }", "title": "" }, { "docid": "e191fc1d4a29f8a11e100430416b4cff", "score": "0.6027738", "text": "function sp_woo_product_rating_html( $product_id = '', $icon_class = 'icon-star' ) {\n\tif ( empty( $product_id ) )\n\t\treturn;\n\n\t// get the comments of product\n\t$comments = get_comments( array( 'post_id' => absint( $product_id ), 'status' => 'approve', 'meta_key' => 'rating' ) );\n\n\t$ratings = array();\n\t$total = 0;\n\n\tif ( is_array( $comments ) ) {\n\t\tforeach( $comments as $comment ) {\n\t\t\t$ratings[] = absint( $comment->meta_value );\n\t\t\t$total += absint( $comment->meta_value );\n\t\t}\n\t}\n\n\t// bail if no ratings\n\tif ( count( $ratings ) <= 0 )\n\t\treturn '';\n\t\n\t$avg_rating = round( $total / count( $ratings ), 0 );\n\n\t$output = '';\n\n\t$output .= '<div class=\"product-rating-stars\">' . PHP_EOL;\n\n\tfor ( $i = 1; $i <= 5; $i++ ) {\n\t\tif ( $avg_rating / $i >= 1 )\n\t\t\t$active = 'active';\n\t\telse\n\t\t\t$active = '';\n\n\t\t$output .= '<i class=\"' . esc_attr( $icon_class ) . ' ' . esc_attr( $active ) . '\" aria-hidden=\"true\"></i>' . PHP_EOL;\n\t}\n\n\t$output .= '</div><!--close product-rating-stars-->' . PHP_EOL;\n\n\treturn $output;\n}", "title": "" }, { "docid": "ec37612bd93bbc52062a9d39a8521e3f", "score": "0.6024536", "text": "public function getRating()\n\t{\n\t\treturn $this->rating ? ceil($this->rating/$this->totalvotes) : 0;\n\t}", "title": "" }, { "docid": "a5db1bb2b7fd513340d5b3d7b9bdeb0a", "score": "0.6007783", "text": "function getAvgProdSales()\n\t\t{\n\t\t\t$query = \"SELECT q.identifier as quote_id,ql.action, ql.action_at FROM `Quotes` q JOIN QuotesLog ql ON q.identifier = ql.quote_id WHERE ql.action = 'prod_validated_delay' OR ql.action='prod_validated_ontime' OR ql.action='sales_validated_ontime' GROUP BY q.identifier,action ORDER BY `q`.`identifier` ASC,ql.action,ql.action_at ASC\";\n\t\t\tif(($result = $this->getQuery($query,true))!=NULL)\n\t\t\t\treturn $result;\n\t\t\telse\n\t\t\t\treturn array();\n\t\t}", "title": "" }, { "docid": "815038488f1080eaa94466d6d08688cf", "score": "0.5999963", "text": "public function getAppliedDiscount(Product $product): float;", "title": "" }, { "docid": "4fc925907652e93b178fce4935259b69", "score": "0.59999627", "text": "public function productRating(Request $request)\n {\n $this->validate($request, [\n 'product_id' => 'required|numeric',\n 'product_combination_id' => 'required|numeric',\n 'rating' => 'required|numeric|min:1|max:5',\n ]);\n \n $user = session()->get('authUser');\n \n $product = Product::find($request->product_id);\n \n // Check product is available or not\n if(!empty($product))\n {\n $productReview = ProductReview::where([\n 'product_id' => $request->product_id,\n 'product_combination_id' => $request->product_combination_id,\n 'user_id' => $request->user_id,\n ])->first();\n \n // Check review is already available or not\n if(empty($productReview))\n {\n $productReview = new ProductReview();\n $productReview->product_id = $request->product_id;\n $productReview->product_combination_id = $request->product_combination_id;\n $productReview->user_id = $request->user_id;\n $productReview->rating = $request->rating;\n $productReview->save();\n \n return $this->toJson(null, trans('api.product_rating.success'), 1);\n }\n \n return $this->toJson(null, trans('api.product_rating.already_available'), 0);\n }\n \n return $this->toJson(null, trans('api.product.not_available'), 0);\n }", "title": "" }, { "docid": "fb5907679c59a2b1b7bf92f5ff0b674b", "score": "0.59838146", "text": "function average_price($product, $commune){\n\t//opening of the database\n\ttry {\n\t\t$price_database = new PDO('mysql:host=localhost;dbname=babiprix;charset=utf8', 'root', 'root'); ///A changer lors de l'hébergement\n\t\t$price_database->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);\n\t} catch (Exception $e) {\n\t\tdie('Erreur : '.$e->getMessage());\n\t}\n\n\t//Recuperation of the price data attributed to the right product in the right commune and stocking in $response\n\t$response = $price_database->prepare('SELECT price FROM prices WHERE commune = ? AND product = ?');\n\t$response->execute(array($commune, $product));\n\t\n\t$average=0;\n\t$i=0;\n\n\t//recuperation of the data and calcul of the average\n\twhile ($data = $response->fetch()) {\n\t\t$average = $average+$data['price'];\n\t\t$i=$i+1;\n\t}\n\t$response->closeCursor();\n\tif($i!=0){\n\t\t$average=$average/$i;\n }\n return $average;\n}", "title": "" }, { "docid": "595ad83cb7631c7501be4f89a473b121", "score": "0.5970418", "text": "public function getRateAttribute(){\n return $this->hasMany(CouponRating::class, 'coupon_id')->avg('rate');\n }", "title": "" }, { "docid": "6a2d3545fcdf330d9b150219eb62208d", "score": "0.5965925", "text": "public function getAverage()\n {\n $count = $this->where([\n ['score', '!=', ''],\n ['date_created', '>=', strtotime('midnight first day of this month')],\n ['date_completed', '!=', ''],\n ])\n ->whereIn('solicitor_office_id', $this->getSolicitorOffices())\n ->avg('score');\n\n return $count;\n }", "title": "" }, { "docid": "eeb3540e481b5511ffe42ffa6ae0dc75", "score": "0.59624857", "text": "public function getAverageRating($path)\n\t{\n\t\t$response = $this->rest_client->get($this->registry_url.$path.\";\".RemoteRegistry::RATING_PARAMTER);\n\t\t\n\t\tif($this->rest_client->getLastResponseStatus() == \"200\")\n\t\t{\n\t\t\t$resouce = $this->createResourceFromFeed($response);\n\t\t\t$feed_xml = $this->last_feed_xml;\n\t\t\t$wso2_ns = $feed_xml->children(\"http://wso2.org/registry\");\n\t\t\tif($wso2_ns->AverageRating !== NULL)\n\t\t\t{\n\t\t\t\treturn (float)($wso2_ns->AverageRating.\"\");\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "d0b85f7cb59192647b1b1e8e75eb6af4", "score": "0.59493214", "text": "public function getAverageAmount()\n {\n return $this->averageAmount;\n }", "title": "" }, { "docid": "df5e260e9071a5e898c1ce9e267ce235", "score": "0.5948584", "text": "public function getRating()\n {\n return $this->rating;\n }", "title": "" }, { "docid": "df5e260e9071a5e898c1ce9e267ce235", "score": "0.5948584", "text": "public function getRating()\n {\n return $this->rating;\n }", "title": "" }, { "docid": "df5e260e9071a5e898c1ce9e267ce235", "score": "0.5948584", "text": "public function getRating()\n {\n return $this->rating;\n }", "title": "" }, { "docid": "28f444c334d83672e8e1d3ddc0025917", "score": "0.59415454", "text": "function _calculate($place_id)\n {\n $values= $this->Rating->find('list',array('conditions'=>array('place_id'=> $place_id),\n 'fields'=>array('id','value')));\n $i=0;\n $total=0;\n foreach($values as $value){\n $total=$total+$value; \n $i++;\n }\n $avg=$total/$i;\n $this->Rating->Place->id = $place_id;\n $this->Rating->Place->saveField('rating', $avg);\n $this->set('total_value', $avg);\n }", "title": "" }, { "docid": "dc3d463c2b0525b7bb2a0945ef073a2c", "score": "0.5939031", "text": "function get_average_comment_rating($custom_id = null) {\n\t\tglobal $wpdb, $comment;\n\t\t$pid = $comment->comment_ID;\n\t\tif (is_numeric($custom_id))\n\t\t\t$pid = $custom_id;\n\t\t\n\t\t$ratings = get_comment_ratings($pid);\n\t\t$sum = 0;\n\t\t$count = 0;\n\t\tforeach ($ratings as $rating) {\n\t\t\tif ($rating > 0) {\t\n\t\t\t\t$sum += $rating;\n\t\t\t\t$count++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn ($count > 0) ? $sum / $count : 0;\t\n\t}", "title": "" }, { "docid": "f4217c36157a6bf4f51d4daf2aac5a9e", "score": "0.5938141", "text": "public function set_average_rating( $average ) {\n $this->set_prop( 'average_rating', masvideos_format_decimal( $average ) );\n }", "title": "" }, { "docid": "5cad2565b16f86ad8f269a0980fd9d4d", "score": "0.5935825", "text": "public function rate()\n {\n // solo se permite puntuar/comentar a usuarios identificados en el \n // sistema\n if (!$this->isLoggedIn())\n $this->redirect(\"product\");\n\n // debe recibirse el identificador del producto\n if (!isset($this->request->prod)) {\n $this->setFlash($this->lang[\"product\"][\"rate_err\"]);\n $this->redirect(\"product\");\n }\n\n // TODO: mover las comprobaciones sobre el modelo a los modelos.\n // comprueba que el producto exista\n $this->product = new \\models\\Product($this->request->prod);\n if (!$this->product->fill()) {\n $this->setFlash($this->lang[\"product\"][\"rate_err\"]);\n $this->redirect(\"product\");\n }\n\n // comprueba que el usuario no haya puntuado todavia el producto\n $rating = new \\models\\Rating(null, $this->request->prod, $this->session->username);\n if (!$rating->isNewRating()) {\n $this->setFlash($this->lang[\"product\"][\"rate_err\"]);\n $this->redirect(\"product\");\n }\n\n // si es GET, muestra formulario de puntuacion\n if ($this->request->isGet()) {\n $this->view->assign(\"product\", $this->product);\n $this->view->render(\"product_rate\");\n }\n\n // si es POST, almacena la puntuacion y redirige\n if ($this->request->isPost()) {\n if ($this->ratePost()) {\n $this->setFlash($this->lang[\"product\"][\"rate_ok\"]);\n $this->redirect();\n } else {\n $this->setFlash($this->lang[\"product\"][\"rate_err\"]);\n $this->redirect(\"product\", \"rate\");\n }\n }\n }", "title": "" }, { "docid": "e051cd7f21790978fc43a4e3ce30881c", "score": "0.5931487", "text": "public function getRating() {\n\t\treturn $this->rating;\n\t}", "title": "" }, { "docid": "08d5c37e335b5f9be8efdc59e93c32ad", "score": "0.5923514", "text": "public function getRatingAvgAttribute($value){\n return ($value) ? intval($value) : 0;\n }", "title": "" }, { "docid": "5cca0cdb5a6d66305a10f141dc027d10", "score": "0.5918233", "text": "public function getRoundRating()\n {\n $avrate = intval(round($this->averageRating()));\n return $avrate;\n }", "title": "" }, { "docid": "7435d85ff477eca91dd94bf3d019ac91", "score": "0.5897789", "text": "function prog_avg( $class_id, $session_id, $prog_name ){\r\n $classinfo = $this->admin_model->load_class_info($class_id);\r\n $classinfo = $classinfo[0];\r\n $table = $classinfo->term . '_' . $classinfo->class_name . '_results';\r\n \r\n $prog_id = $this->tc_model->pidFromPname($class_id, $session_id, $prog_name);\r\n $pid = $prog_id[0]->id;\r\n \r\n $scores = $this->db->select('score')\r\n ->where('prog_id', $pid)\r\n ->get($table)->result();\r\n $total = 0;\r\n foreach ($scores as $s){\r\n $total += $s->score;\r\n }\r\n \r\n return $total / $this->prog_size($class_id, $session_id, $prog_name);\r\n }", "title": "" }, { "docid": "f64c9d7bbd6b9ea42df62b2310394ca7", "score": "0.58955985", "text": "function getRating()\n {\n return $this->rating;\n }", "title": "" }, { "docid": "cf02a2b932c85dae06e65e95b51ca840", "score": "0.5872262", "text": "public function getRating()\n {\n return $this->rating;\n }", "title": "" }, { "docid": "cde80ebd1117d10856692ebf04031175", "score": "0.58697593", "text": "public function getRating() {\n\n $r = ($this->_data['quality'] + $this->_data['delivery']) / 2;\n return str_replace(\",\", \".\", $r);\n }", "title": "" }, { "docid": "7942336027b2ab6e16e4d65f87b353ea", "score": "0.58252186", "text": "public function average()\n {\n return ($this->increments > 0) ? ($this->score / $this->increments) : false;\n }", "title": "" }, { "docid": "21900f61727476fd1cee4f358224acbc", "score": "0.58206296", "text": "function FindRatingByID($id) {\n\n $ratings = 0;\n $ratingAVG = 0;\n\n try{\n $pdo = new PDO(DBCONNSTRING,DBUSER,DBPASS);\n $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n $sql = \"SELECT * FROM travelimagerating WHERE ImageID = :id\";\n $statement = $pdo->prepare($sql);\n $statement->execute(['id' => $id]);\n\n for($i=0; $i<$statement->rowCount(); $i++){\n $result = $statement->fetch(PDO::FETCH_ASSOC);\n if ($result['Rating'] == NULL)\n {\n break;\n }\n \n\n \n $ratingAVG = $ratingAVG + $result[\"Rating\"];\n $ratings++;\n }\n $pdo = null;\n }\n catch (PDOException $e) {\n die( $e->getMessage() );\n }\n $ratingAVG = $ratingAVG/$ratings;\n return number_format((float)$ratingAVG, 2, '.', '');\n \n}", "title": "" }, { "docid": "8e97330c836f2e3067ffd3a4abd4aa14", "score": "0.5812283", "text": "public function getUserRating($userId){\n $myExchanges = Exchanges\n ::where('id_seller', $userId)\n ->where('status', Constant::STATUS_ACCEPTED)\n ->get();\n\n $ratingData = 0;\n $ratingsWithValue = 0;\n\n foreach ($myExchanges as $exchange){\n if ($exchange->getRating){\n $ratingData = $ratingData + $exchange->getRating->rating;\n $ratingsWithValue ++;\n }\n }\n\n // Return prepare\n if ($ratingsWithValue){\n $average = $ratingData / $ratingsWithValue;\n }else{\n $average = 0;\n }\n return array(\n 'ratingsWithValue' => $ratingsWithValue, \n 'average' => $average\n );\n }", "title": "" }, { "docid": "b3f644ad6957d287805f92f397296540", "score": "0.5799472", "text": "function update_rating_score($element_id = false)\n{\n if ( ($alt_result = trigger_change('update_rating_score', false, $element_id)) !== false)\n {\n return $alt_result;\n }\n\n $query = '\nSELECT element_id,\n COUNT(rate) AS rcount,\n SUM(rate) AS rsum\n FROM '.RATE_TABLE.'\n GROUP by element_id';\n\n $all_rates_count = 0;\n $all_rates_avg = 0;\n $item_ratecount_avg = 0;\n $by_item = array();\n\n $result = pwg_query($query);\n while ($row = pwg_db_fetch_assoc($result))\n {\n $all_rates_count += $row['rcount'];\n $all_rates_avg += $row['rsum'];\n $by_item[$row['element_id']] = $row;\n }\n\n if ($all_rates_count>0)\n {\n $all_rates_avg /= $all_rates_count;\n $item_ratecount_avg = $all_rates_count / count($by_item);\n }\n\n $updates = array();\n foreach ($by_item as $id => $rate_summary )\n {\n $score = ( $item_ratecount_avg * $all_rates_avg + $rate_summary['rsum'] ) / ($item_ratecount_avg + $rate_summary['rcount']);\n $score = round($score,2);\n if ($id==$element_id)\n {\n $return = array(\n 'score' => $score,\n 'average' => round($rate_summary['rsum'] / $rate_summary['rcount'], 2),\n 'count' => $rate_summary['rcount'],\n );\n }\n $updates[] = array( 'id'=>$id, 'rating_score'=>$score );\n }\n mass_updates(\n IMAGES_TABLE,\n array(\n 'primary' => array('id'),\n 'update' => array('rating_score')\n ),\n $updates\n );\n\n //set to null all items with no rate\n if ( !isset($by_item[$element_id]) )\n {\n $query='\nSELECT id FROM '.IMAGES_TABLE .'\n LEFT JOIN '.RATE_TABLE.' ON id=element_id\n WHERE element_id IS NULL AND rating_score IS NOT NULL';\n\n $to_update = array_from_query( $query, 'id');\n\n if ( !empty($to_update) )\n {\n $query='\nUPDATE '.IMAGES_TABLE .'\n SET rating_score=NULL\n WHERE id IN (' . implode(',',$to_update) . ')';\n pwg_query($query);\n }\n }\n\n return isset($return) ? $return : array('score'=>null, 'average'=>null, 'count'=>0 );\n}", "title": "" }, { "docid": "f5a8bae86ece80f1faf65936714e38ae", "score": "0.5794524", "text": "private function calculateScore($review)\n {\n \t$score = $this->score;\n \tforeach($this->calculators as $calculator) {\n \t\t$score += $calculator->getModifier($review, $this->reviews);\n \t}\n \t$this->score = $score < $this::MAX_SCORE ? $score : $this::MAX_SCORE;\n \t\n \tif ($this->score < 50 && $this->status > Advisor::STATUS_INACTIVE) {\n \t\t$this->status = Advisor::STATUS_INACTIVE;\n \t\tthrow new ExtraLowScore($this->getName());\n \t} else if ($this->score < 70 && $this->status > Advisor::STATUS_WARNED) {\n \t\t$this->status = Advisor::STATUS_WARNED;\n \t\tthrow new LowScore($this->getName(), $this->score);\n \t}\n }", "title": "" }, { "docid": "1677ca05bbdf2649e46b83ffa43e0c5d", "score": "0.57927024", "text": "public function calculate()\n\t{\n\t\t$calculated = $this->shouldUseAvg() ? $this->average() : $this->subtract();\n\n\t\treturn $this->determineScore($calculated);\n\t}", "title": "" }, { "docid": "0ff17bbb9d68c277164bcc272dcfb5b1", "score": "0.578968", "text": "function displayProductRating($rating = null,$pro_id = null) {\n\t\t// import department db\n\t\tApp::import('Model','ProductRating');\n\t\t$this->ProductRating = & new ProductRating();\n\t\t$total_rating_reviewers = $this->ProductRating->find('count',array('conditions'=>array('ProductRating.product_id'=>$pro_id)));\n\t\t$half_star = 0;$full_star = 0;$avg_rating = 0;$ratingStar='';\n\t\tif(!empty($rating)){\n\t\t\t$rating_arr = explode('.',$rating);\n\t\t\t$full_star = $rating_arr[0];\n\t\t\tif(!empty($rating_arr[1])){\n\t\t\t\t$first_decimal = $rating_arr[1][0];\n\t\t\t\tif($first_decimal >= 5){\n\t\t\t\t\t$half_star = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(!empty($full_star)){\n\t\t\tfor($avgrate = 0; $avgrate < $full_star; $avgrate++){\n\t\t\t\t$ratingStar .= '<img src=\"'.SITE_URL.'img/red-star-rating.png\" width=\"12\" height=\"12\" alt=\"\" >';\n\t\t\t}\n\t\t}\n\t\tif(!empty($half_star)){ // half star\n\t\t\t$ratingStar .= '<img src=\"'.SITE_URL.'img/half-red-star-rating.png\" width=\"12\" height=\"12\" alt=\"\" >';\n\t\t\t$avg_rating = $full_star + 1;\n\t\t} else{\n\t\t\t$avg_rating = $full_star;\n\t\t}\n\t\t// show gray color stars\n\t\tfor($avgrate_white = 0; $avgrate_white < (5-$avg_rating); $avgrate_white++){\n\t\t\t$ratingStar .= '<img src=\"'.SITE_URL.'img/gray-star-rating.png\" width=\"12\" height=\"12\" alt=\"\" >';\n\t\t}\t\n\t\treturn $ratingStar. \" ($total_rating_reviewers)\";\n\t}", "title": "" }, { "docid": "cb655e235adcc5d2f1d07ecc186bb91d", "score": "0.57837695", "text": "public function computeScraperAverage(){\n\n\t\t//percents\n\t\t$marks=array([], [], [], [], []);\n\t\t//numbers\n\t\t$weight=array([], [], [], [], []);\n\t\t//more numbers\n\t\t$totalWeight=array(0, 0, 0, 0, 0);\n\n\t\t//this has a runtime of o(scary)\n\t\t//if teachers havent inputted at least one mark in each category then we're screwed\n\t\tforeach($this->assignments as $assignment){\n\t\t\tfor($i=0; $i<5; $i++){\n\t\t\t\tarray_push($marks[$i], $assignment->getMark($i));\n\t\t\t\tarray_push($weight[$i], $assignment->getWeight($i));\n\t\t\t\t$totalWeight[$i]+=$assignment->getWeight($i);\n\t\t\t}\n\t\t}\n\n\t\t//now we have a populated marks array, as well as total weightings for each category\n\t\t$max=count($marks[0]);\n\t\tforeach($marks as $category=>$mark){\n\t\t\tfor($i=0; $i<$max; $i++){\n\t\t\t\tif(isset($totalWeight[$i]) && !is_null($totalWeight[$i]) && $totalWeight[$i] !== 0 && (bool)$weight[$category][$i]){\n\t\t\t\t\t$this->scraperAchievement[$category]+=($weight[$category][$i]/$totalWeight[$category])*$marks[$category][$i];\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\n\t\t$sum=0;\n\t\t$hasFinal=$this->hasFinal();\n\t\tif($hasFinal){\n\t\t\tfor($i=0; $i<5; $i++){\n\t\t\t\tif($i==4)\n\t\t\t\t\t$sum+=$this->weighting[$i]*$this->scraperAchievement[$i];\n\t\t\t\telse\n\t\t\t\t\t$sum+=$this->weighting[$i]*0.7*$this->scraperAchievement[$i];\n\t\t\t}\t\n\t\t}\n\t\telse{\n\t\t\tfor($i=0; $i<4; $i++){\n\t\t\t\t$sum+=$this->weighting[$i]*$this->scraperAchievement[$i];\n\t\t\t}\t\n\t\t}\n\t\t$this->scraperAverage=$sum;\n\t}", "title": "" }, { "docid": "4b25ecb7b8a376936b752cd7b2012e04", "score": "0.57773316", "text": "public function averages(): Collection;", "title": "" } ]
8ef242df6ad03ea33f54ee76ecc344c0
Bootstrap any application services.
[ { "docid": "6f109b1ad419b4f59221c27c6fe54bc4", "score": "0.0", "text": "public function boot()\n {\n $this->publishes([\n realpath(__DIR__ . '/../config/package-config.php') => config_path('package-config.php'),\n ]);\n\n // Load database migrations\n $this->loadMigrationsFrom(realpath(__DIR__.'/../database/migrations/'));\n }", "title": "" } ]
[ { "docid": "e62a2aa228f26a213cf5a26dd765a006", "score": "0.795199", "text": "protected function bootstrap()\n {\n $this->app->bootstrapWith([\n DetectAndLoadEnvironment::class,\n LoadConfiguration::class,\n RegisterApplicationServiceProviders::class\n ]);\n }", "title": "" }, { "docid": "2f071e4d2c3ec560ab0c1ff47377f5f1", "score": "0.7314122", "text": "public function boot()\n {\n $this->app->singleton(EstationService::class, function ($app) {\n return new EstationService();\n });\n\n foreach (Config::get('extensions.list', []) as $plugin) {\n $this->app->singleton($plugin, function ($app) use ($plugin) {\n return new $app();\n });\n }\n }", "title": "" }, { "docid": "2478dbb7b27acedc8d6d195849e9a5d9", "score": "0.72820437", "text": "public function boot()\n {\n Schema::defaultStringLength(191);\n $this->app->bind(IAdvertService::class, AdvertService::class);\n $this->app->bind(IMarkService::class, MarkService::class);\n $this->app->bind(ISampleService::class, SampleService::class);\n $this->app->bind(IModificationService::class, ModificationService::class);\n $this->app->bind(ICommentService::class, CommentService::class);\n $this->app->bind(IUserService::class, UserService::class);\n }", "title": "" }, { "docid": "e1dc0b56beb20b746c487a8d1b9e27ba", "score": "0.724038", "text": "public function boot()\n {\n $this->registerServiceProviders($this->containerServiceProviders);\n }", "title": "" }, { "docid": "e8beadd6a3803ced8677c2c947596dec", "score": "0.71575016", "text": "public function boot()\n {\n $this->bindRepositories();\n $this->bindServices();\n }", "title": "" }, { "docid": "e8ed5a31a2732cfe1d2a68b4c4da178c", "score": "0.7145517", "text": "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "201e75149f8f019f9e1f814a680eeb66", "score": "0.71396685", "text": "public function boot()\n {\n $this->app->singleton(ClientBuilder::class, function ($app) {\n $hosts = [\n 'es01',\n 'es02',\n 'es03',\n ];\n return ClientBuilder::create()->setHosts($hosts)->build();\n });\n\n $this->app->bind( DepartmentRepositoryInterface::class, function ($app) {\n return new DepartmentRepository(\"departments\");\n });\n\n $this->app->bind( DeveloperRepositoryInterface::class, function ($app) {\n return new DeveloperRepository(\"developers\");\n });\n\n $this->app->bind( ProjectRepositoryInterface::class, function ($app) {\n return new ProjectRepository(\"projects\");\n });\n }", "title": "" }, { "docid": "b866e2b06f9c0f7b75f1b7e1dfd607d4", "score": "0.71317947", "text": "public function boot()\n {\n $this->loadServiceProviders();\n $this->loadAliases();\n }", "title": "" }, { "docid": "5d76afc2ee22659c2cbf0078019d466a", "score": "0.7081085", "text": "public function boot()\n {\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "5d76afc2ee22659c2cbf0078019d466a", "score": "0.7081085", "text": "public function boot()\n {\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "4a86199a42593dd5e8a2b680deec348c", "score": "0.7076792", "text": "public function boot()\n\t{\n\t\t$this->app->bind(AddressServiceInterface::class, AddressService::class);\n\t\t$this->app->bind(DoctorServiceInterface::class, DoctorService::class);\n\t\t$this->app->bind(PatientServiceInterface::class, PatientService::class);\n\t\t$this->app->bind(SchedulingServiceInterface::class, SchedulingService::class);\n\t\t$this->app->bind(UserServiceInterface::class, UserService::class);\n\t\t\n\t\tSchema::defaultStringLength(191);\n\t}", "title": "" }, { "docid": "d7f6536bc81f511e0749f4f5ef2543e0", "score": "0.70752025", "text": "public function boot()\n {\n // Make sure we are running in console\n if ($this->app->runningInConsole()) {\n // Register Commands.\n $this->commands([\n Console\\MakeCommand::class,\n ]);\n }\n\n $this->bootRepositories();\n }", "title": "" }, { "docid": "5a137d07a51fbfd2dd80a0ce8a4eaae1", "score": "0.7062382", "text": "public function bootstrap()\n {\n if (!$this->app->hasBeenBootstrapped()) {\n $this->app->bootstrapWith($this->bootstrappers());\n }\n\n\n // If we are calling a arbitary command from within the application, we will load\n // all of the available deferred providers which will make all of the commands\n // available to an application. Otherwise the command will not be available.\n $this->app->loadDeferredProviders();\n }", "title": "" }, { "docid": "0c3de58149358e1a9f711be7ab0a2401", "score": "0.7062173", "text": "public function boot()\n {\n // Make sure we are running in console\n if ($this->app->runningInConsole()) {\n // Register Commands.\n $this->commands([\n Console\\RepositoryCommand::class,\n Console\\ControllerCommand::class,\n ]);\n }\n\n //$this->bootRepositories();\n }", "title": "" }, { "docid": "e6ef4279eb302b554cea94a2d772c566", "score": "0.7060086", "text": "protected static function boot()\n {\n parent::boot();\n static::addGlobalScope(new ServiceProviderScope);\n }", "title": "" }, { "docid": "f8af9159da16964505c9e3ebf21d75ec", "score": "0.70529133", "text": "public function boot()\n {\n $router = $this->app['router'];\n $router->pushMiddlewareToGroup('web', ServiceMiddleware::class);\n\n $this->loadRoutesFrom(__DIR__.'/../routes/web.php');\n $this->loadRoutesFrom(__DIR__.'/../routes/api.php');\n $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'service');\n $this->loadViewsFrom(resource_path('/views/vendors/service'), 'service');\n\n $this->publishes([\n __DIR__.'/../public' => public_path('vendor/honesttraders'),\n __DIR__.'/../resources/views' => resource_path('views/vendors/service'),\n ], 'honesttraders');\n\n $this->commands([\n MigrateStatusCommand::class,\n ]);\n }", "title": "" }, { "docid": "8e5c7615c3ad7a4bd46b3b3e48788354", "score": "0.7046054", "text": "public function boot()\n {\n if ($this->app->environment() !== 'production') {\n $this->registerServiceProviders();\n $this->registerFacadeAliases();\n }\n }", "title": "" }, { "docid": "ddf6aa306e5b37665dad59956f4e3bd8", "score": "0.7022152", "text": "public function boot() {\n // $this->app->singleton(PlaceShipService::class, fn($app) => new PlaceShipService());\n }", "title": "" }, { "docid": "5f9365ae2bac475164c88d23b2f4c7fa", "score": "0.70208514", "text": "public function boot()\n {\n Schema::defaultStringLength(191);\n Passport::routes();\n\n // This makes it easy to toggle the search feature flag\n // on and off. This is going to prove useful later on\n // when deploy the new search engine to a live app.\n if (config('services.search.enabled')) {\n Item::observe(ElasticsearchObserver::class);\n }\n }", "title": "" }, { "docid": "3047092eec87d82134a985349fae0951", "score": "0.70153844", "text": "public function boot()\n {\n $this->booting(function (Scarf $app) {});\n\n $this->registerConstants();\n\n $this->registerBaseClassesBinding();\n\n $this->registerCoreBinding();\n\n $this->registerErrorHandling();\n\n $this->booted(function (Scarf $app) {});\n }", "title": "" }, { "docid": "0489d2ade67681a91b8d75052908a1eb", "score": "0.7003907", "text": "public function boot(): void\n {\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "87cdc537fe2982e60a4dbc03090a1f5a", "score": "0.6989079", "text": "public function boot()\n {\n $this->app->when(AutoService::class)\n ->needs(ClientInterface::class)\n ->give(function () {\n return new Client([\n 'base_uri' => config('services.auto.base_uri'),\n 'timeout' => config('services.auto.timeout'),\n ]);\n });\n }", "title": "" }, { "docid": "8ff3a37d8ea964a02d920c45f63bba1e", "score": "0.6955807", "text": "public function boot()\n {\n $this->setupConfig($this->app);\n }", "title": "" }, { "docid": "ca7076c19a1c05cc0019cb7e08214214", "score": "0.69552255", "text": "public function boot()\n {\n $this->moduleSvc = app(ModuleService::class);\n $this->registerConfig();\n }", "title": "" }, { "docid": "28deabcb7d4043e0942f462b6d218444", "score": "0.6929805", "text": "public function boot()\n {\n $this->loadContainersInternalMiddlewares();\n }", "title": "" }, { "docid": "4771ceaa7f0342540b4396514ed66f11", "score": "0.690856", "text": "public function boot()\n {\n $this->loadTranslationsFrom(__DIR__.'/../Resources/Lang', 'oauth-clients');\n $this->loadViewsFrom(__DIR__.'/../Resources/Views', 'oauth-clients');\n\n $this->loadMigrationsFrom(module_path('oauth-clients', 'Database/Migrations', 'app'));\n if (!$this->app->configurationIsCached()) {\n $this->loadConfigsFrom(module_path('oauth-clients', 'Config', 'app'));\n }\n }", "title": "" }, { "docid": "afc203c2d85468bb7b5d350a4eb02cc1", "score": "0.69078505", "text": "public static function boot(){\n parent::boot();\n\t\t\n \n// App::register($this->service_provider);\n \n \n \n }", "title": "" }, { "docid": "cfe14b019266196ff1f4e1279e9365ea", "score": "0.6900775", "text": "public function boot()\n {\n $this->app->bind('userfacade', UserService::class);\n $this->app->bind('meetfacade', MeetService::class);\n }", "title": "" }, { "docid": "6e270f92f5ffcb96add246c73febc1ae", "score": "0.68948793", "text": "protected function boot()\n {\n $this->registerAutoload();\n $this->registerService();\n $this->setupErrorHandler();\n }", "title": "" }, { "docid": "e107d7bb2919d5b2844d719b2016e3a8", "score": "0.689018", "text": "public function boot()\n {\n JsonResource::withoutWrapping();\n\n $this->registerCommands();\n $this->registerObservers();\n $this->registerExpansionsFrom();\n $this->registerMiddleware();\n $this->loadRoutesFrom(__DIR__ . '/../routes.php');\n $this->loadMigrationsFrom(__DIR__ . '/../../migrations');\n $this->mergeConfigFrom(__DIR__ . '/../../config/database.connections.php', 'database.connections');\n $this->mergeConfigFrom(__DIR__ . '/../../config/database.redis.php', 'database.redis');\n $this->mergeConfigFrom(__DIR__ . '/../../config/broadcasting.connections.php', 'broadcasting.connections');\n $this->mergeConfigFrom(__DIR__ . '/../../config/fleetbase.php', 'fleetbase');\n $this->mergeConfigFrom(__DIR__ . '/../../config/auth.php', 'auth');\n $this->mergeConfigFrom(__DIR__ . '/../../config/sanctum.php', 'sanctum');\n $this->mergeConfigFrom(__DIR__ . '/../../config/twilio.php', 'twilio');\n $this->mergeConfigFrom(__DIR__ . '/../../config/webhook-server.php', 'webhook-server');\n $this->mergeConfigFrom(__DIR__ . '/../../config/permission.php', 'permission');\n $this->mergeConfigFrom(__DIR__ . '/../../config/activitylog.php', 'activitylog');\n $this->mergeConfigFrom(__DIR__ . '/../../config/excel.php', 'excel');\n $this->mergeConfigFrom(__DIR__ . '/../../config/sentry.php', 'sentry');\n $this->mergeConfigFromSettings();\n $this->addServerIpAsAllowedOrigin();\n }", "title": "" }, { "docid": "b3b3dbd14f7670a8daf0024f2f3f8f70", "score": "0.68802035", "text": "public function boot()\n\t{\n $this->app->bind(CybersourcePaymentsService::class, function () {\n \treturn new CybersourcePaymentsService;\n });\n\n $this->app->alias(CybersourcePaymentsService::class, 'cybersource-payments');\n\t}", "title": "" }, { "docid": "02a96b61994cc919e7dca3b2d157588c", "score": "0.6872049", "text": "public function boot()\n {\n $kernel = $this->app->make(Kernel::class);\n $kernel->pushMiddleware(LmsService::class);\n\n $this->loadRoutesFrom(__DIR__.'/../routes/web.php');\n $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'lms');\n $this->loadViewsFrom(__DIR__.'/../resources/views', 'lms');\n $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n }", "title": "" }, { "docid": "9ce62e28d2f41af9286104bd268ed94a", "score": "0.6867779", "text": "public function boot(): void\n {\n Nova::serving(function(ServingNova $event)\n {\n Nova::tools([\n new NovaGallery\n ]);\n \n Lang::addJsonPath(__DIR__ . '/../lang');\n });\n \n $this->app->booted(function()\n {\n $this->routes();\n });\n }", "title": "" }, { "docid": "60c28c629984af306ea0d9e66f22bdcd", "score": "0.68516177", "text": "public function boot()\n {\n $this->app->singleton(Driver::class, CookieDriver::class);\n\n $this->app->singleton(Authenticator::class, DefaultAuthenticator::class);\n }", "title": "" }, { "docid": "f12e5cc66154a652adf004a99c906d57", "score": "0.68460906", "text": "public function boot()\n {\n\n if (env('FORCE_HTTPS')) {\n\n URL::forceScheme('https');\n }\n\n User::observe(UserObserver::class);\n Role::observe(RoleObserver::class);\n\n $this->app->singleton(FakerGenerator::class, function () {\n return FakerFactory::create('pt_BR');\n });\n\n }", "title": "" }, { "docid": "4bfaacf9490335cbf9025b20b171a68a", "score": "0.68392426", "text": "protected function getServicesBoot() {\n return require __DIR__.'/../config/services.php';\n }", "title": "" }, { "docid": "9c615233da02386e214c8a41f438216a", "score": "0.6838106", "text": "public function boot() {\n if ($this->app->runningInConsole()) {\n $this->commands([\n RepositoryMakeCommand::class,\n ServiceMakeCommand::class\n ]);\n }\n }", "title": "" }, { "docid": "fafa8f5f97f1ff8ebde95be2096b75ae", "score": "0.68235874", "text": "public function boot()\n {\n $app = $this->getContainer()->get(ApplicationInterface::class);\n $this->registerRoutes($app);\n $this->registerDatabase();\n $this->registerTemplateEngine();\n }", "title": "" }, { "docid": "9d51a9d20ace3acf2044fbd7c6be44be", "score": "0.6810684", "text": "public function boot()\n {\n $allocationRepository = new AllocationRepository();\n $orderRepository = new OrderRepository();\n \n $portfolioService = new PortfolioService($allocationRepository, $orderRepository); \n $orderService = new OrderService($orderRepository, $allocationRepository);\n $allocationService = new AllocationService($allocationRepository);\n \n $this->app->bind(UpdatePortfolioUseCase::class, function ($app) use ($portfolioService) {\n return new UpdatePortfolioUseCase($portfolioService);\n });\n \n $this->app->bind(GetPortfolioUseCase::class, function ($app) use ($portfolioService) {\n return new GetPortfolioUseCase($portfolioService);\n });\n \n $this->app->bind(CreateOrderUseCase::class, function ($app) use ($orderService, $allocationService) {\n return new CreateOrderUseCase($orderService, $allocationService);\n });\n \n $this->app->bind(CompleteUseCase::class, function ($app) use ($orderService, $allocationService) {\n return new CompleteUseCase($orderService, $allocationService);\n });\n \n $this->app->bind(GetOrderByPortfolioUseCase::class, function ($app) use ($orderService) {\n return new GetOrderByPortfolioUseCase($orderService);\n });\n }", "title": "" }, { "docid": "d9ba840bc74f261135922aaa9e2d068d", "score": "0.6802191", "text": "public function boot()\n {\n // Bootstrap code here.\n $this->app->when(FacilitaMovelChannel::class)\n ->needs(FacilitaMovel::class)\n ->give(function () {\n $config = config('services.facilitamovel');\n return new FacilitaMovel(\n $config['login'],\n $config['password']\n );\n });\n }", "title": "" }, { "docid": "2a7561745d8f771f09d821c33a9c9831", "score": "0.67977923", "text": "public function boot()\n {\n /**\n * @property \\MicroweberPackages\\Shipping\\ShippingManager $shipping_manager\n */\n\n $this->app->singleton('shipping_manager', function ($app) {\n /**\n * @var Application $app\n */\n return new ShippingManager($app->make(Container::class));\n });\n\n\n //add drivers\n\n /* $this->app->resolving(\\MicroweberPackages\\Shipping\\ShippingManager::class, function (\\MicroweberPackages\\Shipping\\ShippingManager $shippingManager) {\n\n $shippingManager->extend('pickup', function () {\n return new \\MicroweberPackages\\Shipping\\Providers\\PickupDriver();\n });\n\n });*/\n\n $this->loadRoutesFrom(__DIR__ . '/routes/api.php');\n\n\n\n\n // $this->loadMigrationsFrom(__DIR__ . '/migrations/');\n }", "title": "" }, { "docid": "274b76f8c109b3f8db603aaa4cae3a46", "score": "0.6790844", "text": "public function boot(): void\n {\n if ($this->app->runningInConsole()) {\n $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n $this->registerCommands();\n $this->registerPublishes();\n }\n\n $this->loadViewsFrom(__DIR__.'/../resources/views', 'root');\n\n $this->registerComposers();\n $this->registerRoutes();\n }", "title": "" }, { "docid": "23fbdb35bc3d4f69ab9db61c5c0c1e41", "score": "0.6783079", "text": "public function boot()\n\t{\n\t\t$this->package('sule/api', 'sule/api');\n\n // Load the filters\n include __DIR__.'/../../filters.php';\n\n // Load the routes\n require_once __DIR__.'/../../routes.php';\n\t}", "title": "" }, { "docid": "b9d5fc5996d1cf771a9494d8f504fb35", "score": "0.67720366", "text": "public function boot()\n {\n // config file\n if ($this->app->runningInConsole()) {\n $sourceCountries = realpath(__DIR__ . '/../config/countries.php');\n $sourceCities = realpath(__DIR__ . '/../config/cities.php');\n $sourceRegions = realpath(__DIR__ . '/../config/regions.php');\n $this->publishes([ $sourceCountries => config_path('countries.php') ], 'config');\n $this->publishes([ $sourceCities => config_path('cities.php') ], 'config');\n $this->publishes([ $sourceRegions => config_path('regions.php') ], 'config');\n }\n\n // migrations\n $this->loadMigrationsFrom(realpath(__DIR__ . '/../migrations'));\n }", "title": "" }, { "docid": "50a49bc50f2edf79b4923c4895e27866", "score": "0.6761259", "text": "public function boot(): void\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__ . '/config/config.php' => config_path('menu-builder.php'),\n ], 'config');\n }\n\n $this->loadViews();\n $this->loadRoute();\n $this->loadMigrations();\n }", "title": "" }, { "docid": "a909f9e81cf4fa4d14672123a49a8a55", "score": "0.6751015", "text": "public function boot()\n {\n // ...\n }", "title": "" }, { "docid": "1ed956ddb57d5f732c91fd58e4069e71", "score": "0.6750513", "text": "protected function bootRepositories()\n {\n $this->app->resolving(function ($repo) {\n // This is a repo.\n if ($repo instanceof Repository) {\n // Boot the Repository.\n $repo->boot();\n }\n\n if ($repo instanceof Controller) {\n // Boot the Repository.\n $repo->boot();\n }\n });\n }", "title": "" }, { "docid": "631fe7ea26a0c933f02e9a16f5528b43", "score": "0.6744507", "text": "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $configPath = __DIR__ . '/../config/ach.php';\n if (function_exists('config_path')) {\n $publishPath = config_path('ach.php');\n } else {\n $publishPath = base_path('config/ach.php');\n }\n $this->publishes([$configPath => $publishPath], 'config');\n\n $this->commands([\n DockerUp::class,\n DockerBuild::class,\n DockerClean::class,\n DockerCleanImages::class,\n DockerIdeHelper::class,\n DockerMigrate::class,\n DockerRebuild::class,\n DockerRun::class,\n DockerSeed::class,\n DockerStop::class,\n ComposerDumpAutoload::class,\n ComposerInstall::class,\n ComposerUpdate::class\n ]);\n }\n }", "title": "" }, { "docid": "91d657b5149447c8e492b392669ccefe", "score": "0.67381734", "text": "public function boot()\n {\n // Load some helper functions\n require_once __DIR__.'/../Helpers/helpers.php';\n\n config(['auth.providers.users.model' => \\Doitonlinemedia\\Admin\\App\\Models\\User::class]);\n\n // Register package middleware\n new Kernel($this->app, $this->app['router']);\n\n $this->loadTranslationsFrom(__DIR__.'/../../resources/lang', 'admin');\n\n // Load package routes\n $this->routes();\n\n // Load package views\n $this->loadViewsFrom(__DIR__.'/../../resources/views', 'admin');\n\n // Publish what needs to be published\n $this->publish();\n\n // Load all ServiceProviders that are needed\n $providers = collect(config('admin.providers'));\n $providers->each(function($value) {\n app()->register($value);\n });\n\n }", "title": "" }, { "docid": "77a4e3db010ed6289f5b64c0c37c73ef", "score": "0.67368937", "text": "public function boot()\n {\n\n\n $this->loadMigrationsFrom(__DIR__ . '/migrations');\n $this->app->bind(\n 'Jarvis', function () {\n return new Jarvis();\n }\n );\n\n $this->registerFactoriesPath(__DIR__ . '/factories');\n\n $this->publishPackages();\n\n $this->registerThemeSettings();\n\n include_once __DIR__ . '/Helpers/helper.php';\n\n $this->themeDisk();\n\n $this->themeSetup();\n\n $this->directives();\n\n }", "title": "" }, { "docid": "3d09e3f0162fef6bc2a3a8217d55d378", "score": "0.67345446", "text": "public function boot()\n {\n $this->registerEvents();\n\n $this->registerDisk();\n\n $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'wide-store');\n $this->loadViewsFrom(__DIR__.'/../resources/views', 'wide-store');\n $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n $this->loadRoutesFrom(__DIR__.'/../routes/web.php');\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "e4d6cf477f71462b7e006f32a64b3063", "score": "0.6729806", "text": "public function boot()\n {\n $this->app->bind(ProviderServiceInterface::class, ProviderService::class);\n $this->app->bind(ProviderRepositoryInterface::class, ProviderRepository::class);\n }", "title": "" }, { "docid": "0c69e89ce1a96405113a4d83f6dd0353", "score": "0.6727873", "text": "public function boot()\n {\n $this->moduleSvc = app('App\\Services\\ModuleService');\n $this->registerConfig();\n }", "title": "" }, { "docid": "44b6d399481468a53330e1bf9a7c91d4", "score": "0.67271423", "text": "public function boot()\n {\n app()->booted(function () {\n $this->booted();\n });\n }", "title": "" }, { "docid": "44b6d399481468a53330e1bf9a7c91d4", "score": "0.67271423", "text": "public function boot()\n {\n app()->booted(function () {\n $this->booted();\n });\n }", "title": "" }, { "docid": "44b6d399481468a53330e1bf9a7c91d4", "score": "0.67271423", "text": "public function boot()\n {\n app()->booted(function () {\n $this->booted();\n });\n }", "title": "" }, { "docid": "c25d35dae8d34ba53f6d9e9831d67473", "score": "0.6724336", "text": "protected function bootRepositories()\n {\n $this->app->resolving(function ($repo) {\n // This is a repo.\n if ($repo instanceof Repository) {\n // Boot the Repository.\n $repo->boot();\n }\n });\n }", "title": "" }, { "docid": "e8587707aeb38931908109671e1a3895", "score": "0.6720906", "text": "public function boot()\n {\n $this->app->singleton('Service', function ($app) { \n return new Service(new URLBuilder(), new Client(), 'todo');\n });\n\n //$service = new Service(new URLBuilder(), new Client(), 'todo');\n //$this->app->instance('Service', $service);\n }", "title": "" }, { "docid": "c7a92636bda04188c0efc9255b1f53cc", "score": "0.6706853", "text": "protected function bootstrapContainer()\n {\n $this->instance('app', $this);\n $this->instance('Illuminate\\Container\\Container', $this);\n\n $this->instance('path', $this->path());\n\n $this->configure('app');\n $this->configure('scout');\n $this->configure('services');\n $this->configure('session');\n $this->configure('mail');\n\n $this->registerContainerAliases();\n\n $this->bindActionsAndFilters();\n\n $this->register(\\Illuminate\\Session\\SessionServiceProvider::class);\n $this->register(\\FatPanda\\Illuminate\\WordPress\\Providers\\Mail\\MailServiceProvider::class);\n $this->register(Providers\\Session\\WordPressSessionServiceProvider::class);\n $this->register(Providers\\Scout\\ScoutServiceProvider::class);\n\n $this->singleton(\\Illuminate\\Contracts\\Console\\Kernel::class, WordPressConsoleKernel::class); \n $this->singleton(\\Illuminate\\Contracts\\Debug\\ExceptionHandler::class, WordPressExceptionHandler::class); \n }", "title": "" }, { "docid": "0a8949b93b3b62ed2d51bd9052c82514", "score": "0.66981506", "text": "public function boot()\n {\n $path = \\realpath(__DIR__.'/../');\n\n $this->addConfigComponent('orchestra/memory', 'orchestra/memory', \"{$path}/config\");\n\n if (! $this->hasPackageRepository()) {\n $this->bootUnderLaravel($path);\n }\n\n $this->loadMigrationsFrom([\n \"{$path}/database/migrations\",\n ]);\n\n $this->bootEvents();\n }", "title": "" }, { "docid": "255157a8abba9f72b2e0ed37ee9e1887", "score": "0.6695485", "text": "public function boot()\n {\n $this->app->when(SMSApiChannel::class)\n ->needs(SMSApi::class)\n ->give(function () {\n $config = config('services.smsapi');\n\n return new SMSApi(\n $config['token']\n );\n });\n }", "title": "" }, { "docid": "84b9c9e67b66375b1e032fbdf3af67ba", "score": "0.66953826", "text": "public function boot()\n {\n $this->configureRateLimiting();\n\n if ($this->app->runningInConsole()) {\n $this->registerPublishing();\n $this->commands([\n MigrateWordPressUsers::class,\n MigrateWooCommerceData::class,\n ]);\n }\n\n $this->registerResources();\n }", "title": "" }, { "docid": "86ac3aeab2a59f911b4addcf0e1107d9", "score": "0.6695101", "text": "public function boot()\r\n {\r\n $this->container->add('Betasyntax\\Config');\r\n $this->app->config = $this->container->get('Betasyntax\\Config');\r\n $this->setProviders($this->getProviders());\r\n $this->provides = config('app','core_providers');\r\n $this->middleware = config('app','middleware');\r\n foreach ($this->provides as $key => $value) {\r\n if ($key=='view') {\r\n $this->app->viewClass = $value;\r\n }\r\n $this->container->add($value);\r\n $this->app->$key = $this->container->get($value); \r\n }\r\n foreach ($this->middleware as $key => $value) {\r\n $this->container->add($value);\r\n }\r\n $this->register();\r\n }", "title": "" }, { "docid": "a7221f7f73b57ad3d14fd9215639ee8d", "score": "0.6694474", "text": "public function boot()\n {\n $this->publishConfigs();\n $this->registerConfigs();\n $this->bindingSnsClient();\n }", "title": "" }, { "docid": "bdc3bae8a60b4311d9be3ed04df05cb4", "score": "0.66944325", "text": "public function boot()\n {\n if (! config('app.installed')) {\n return;\n }\n\n $this->loadRoutesFrom(__DIR__ . '/Routes/admin.php');\n $this->loadRoutesFrom(__DIR__ . '/Routes/public.php');\n\n $this->loadMigrationsFrom(__DIR__ . '/Database/Migrations');\n\n $this->loadTranslationsFrom(__DIR__ . '/Resources/Lang/', 'comment');\n\n //Add menu to admin panel\n $this->adminMenu();\n\n }", "title": "" }, { "docid": "4ab44c8191962d2cd8652a43b477deb2", "score": "0.6691719", "text": "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__.'/../database/migrations/create_spotify_users_table.php' => database_path('migrations/2018_11_15_000000_create_spotify_users_table.php'),\n ], 'migrations');\n }\n\n $this->loadViewsFrom(__DIR__.'/../resources/views', 'nova-spotify-auth-tool');\n\n $this->app->booted(function () {\n $this->routes();\n });\n\n Nova::serving(function (ServingNova $event) {\n //\n });\n }", "title": "" }, { "docid": "62cbcfe85466e552962973b4d81a25aa", "score": "0.66816926", "text": "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->registerArtisanCommands();\n }\n }", "title": "" }, { "docid": "d4391c0f03ec31d31c586968813fc3d7", "score": "0.6681349", "text": "public function boot(){\r\n\r\n $this->package('hailwood/smartless4laravel');\r\n\r\n if(!$this->app->runningInConsole()){\r\n\r\n $smartless = new SmartLess( $this->app );\r\n\r\n $smartless->compile();\r\n }\r\n\r\n\r\n }", "title": "" }, { "docid": "5764c2b40ed6748d799d84133ee542b8", "score": "0.6679545", "text": "public function boot() {\n }", "title": "" }, { "docid": "13c658679cbe2b7532e10b6a98a4f469", "score": "0.66775537", "text": "public function boot()\n {\n $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'ashei');\n\n if ($this->app->runningInConsole()) {\n $this->registerPublishes();\n }\n }", "title": "" }, { "docid": "a84c1830f24f0576a821baf3e568e341", "score": "0.66770375", "text": "public function boot()\n {\n $this->initORM();\n $this->initLocales();\n $this->initProviders();\n $this->initApplicationComponents();\n $this->initTwig();\n $this->initSecurity();\n\n parent::boot();\n }", "title": "" }, { "docid": "8984b82620179497255886cf861678d7", "score": "0.66767615", "text": "public function boot()\n {\n app()->bind('App\\MyClasses\\MyService',\n function($app){\n $myservice = new MyService();\n $myservice->setId(0);\n return $myservice;\n });\n }", "title": "" }, { "docid": "0bb27a1494c11496b16d1f01da46b5a3", "score": "0.66764313", "text": "public function boot()\n {\n $this->app->singleton(Client::class, function () {\n $baseUrl = $this->app['config']->get('app.wp_url');\n\n return new Client([\n 'base_uri' => $baseUrl . '/wp-json/wp/v2/',\n 'headers' => ['Authorization' => 'Basic Um9iOkZvcm11bGUx'],\n ]);\n });\n }", "title": "" }, { "docid": "0c7a4958f052bab7ef5f84a94e4bf69d", "score": "0.66731805", "text": "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->commands([\n Commands\\CaseMakeCommand::class,\n Commands\\ConditionMakeCommand::class,\n Commands\\ActionMakeCommand::class,\n ]);\n }\n }", "title": "" }, { "docid": "03119b99370e0b72363b4220ced651da", "score": "0.66727746", "text": "public function boot()\n {\n $this->registerTranslations();\n $this->registerConfig();\n $this->registerViews();\n $this->registerFactories();\n $this->loadMigrationsFrom(module_path($this->moduleName, 'Database/Migrations'));\n $this->registerLivewireComponents();\n $this->registerHookActions();\n $this->registerSoftetherServerTabsGroups();\n\n ServerUtils::addSoftware('softether-vpn', SoftetherSoftware::class);\n\n\n }", "title": "" }, { "docid": "28e1c79a35b99d0bb5ec4014f37fc7f9", "score": "0.6672279", "text": "protected function onBoot()\n {\n $this->getLeagueContainer()\n ->addServiceProvider(new EnvironmentServiceProvider($this->getRootPath()))\n ->addServiceProvider(new ConfigurationsServiceProvider($this->getRootPath()))\n ->addServiceProvider(LoggerServiceProvider::class)\n ->addServiceProvider(ErrorResponseFactoryServiceProvider::class)\n ->addServiceProvider(DatabaseServiceProvider::class)\n ->addServiceProvider(TwigServiceProvider::class);\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66722375", "text": "public function boot()\n {\n }", "title": "" } ]
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "2a46fdbfc8cb01983bb03691388f0169", "score": "0.0", "text": "public function create()\n {\n //\n }", "title": "" } ]
[ { "docid": "2aaf2ecaef4fe756e441fbe5133d649b", "score": "0.77661365", "text": "public function create()\n {\n return view('resource::create');\n }", "title": "" }, { "docid": "03bfd9797acc7936efbf149267039e5d", "score": "0.77260435", "text": "public function create()\n {\n return view('resource.create');\n }", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.7570922", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.7570922", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "09a06518682f649f50825ae03a5f02c5", "score": "0.74318075", "text": "public function create(Resource $resource)\n {\n \n return view('resources.create', compact('resource'));\n }", "title": "" }, { "docid": "0040811f91da2137388f5b25ff0b7003", "score": "0.74021316", "text": "public function create()\n {\n // we don't need the create method which will show a frontend of forms\n }", "title": "" }, { "docid": "eefd3a34279d87bd94753b0beae69b0d", "score": "0.7390976", "text": "public function create()\n {\n return view('humanresources::create');\n }", "title": "" }, { "docid": "59acf613824f0c3b37aa55dc50605250", "score": "0.72932535", "text": "public function create()\n {\n // Get the form options\n $options = method_exists($this, 'formOptions') ? $this->formOptions() : [];\n\n // Render create view\n return $this->content('create', $options);\n }", "title": "" }, { "docid": "9332c37244dbc51a6ec587579d9cd246", "score": "0.7286031", "text": "public function create()\n {\n //\n return view('forms.create');\n }", "title": "" }, { "docid": "97f8d4d6f5ca725cf3e66f545b385fc5", "score": "0.7284454", "text": "public function create()\n {\n return view('formation.add-form');\n }", "title": "" }, { "docid": "43b99da6b88bf413a5a649ba3a67015e", "score": "0.72763455", "text": "public function create()\n\t{\n\t\treturn view($this->views . '.form')->with('obj', $this->model);\n\t}", "title": "" }, { "docid": "43b99da6b88bf413a5a649ba3a67015e", "score": "0.72763455", "text": "public function create()\n\t{\n\t\treturn view($this->views . '.form')->with('obj', $this->model);\n\t}", "title": "" }, { "docid": "241815ede3de07346cdc5dd5223c3297", "score": "0.72757864", "text": "public function create()\n {\n return view(\"pengeluaran.form\");\n }", "title": "" }, { "docid": "3068f5b3c0dfff179b7c9ecffe939b5b", "score": "0.7236195", "text": "public function create()\n {\n $countries = Country::all();\n $roles = Role::all();\n $pageTitle = trans(config('dashboard.trans_file').'add_new');\n $submitFormRoute = route('admins.store');\n $submitFormMethod = 'post';\n return view(config('dashboard.resource_folder').$this->controllerResource.'form', compact('countries', 'roles', 'pageTitle', 'submitFormRoute', 'submitFormMethod'));\n }", "title": "" }, { "docid": "38ecc75a4d6989a8b4f4e8399b531681", "score": "0.72130984", "text": "public function create()\n {\n //\n return view('admin.forms.create');\n }", "title": "" }, { "docid": "2ba4890e70df9cc5460b64bc519b7725", "score": "0.7210258", "text": "public function actionCreate() {\n $model = new Form();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->form_id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "53f6a6cabd482a9ba582ca823a9212fc", "score": "0.7208262", "text": "public function actionCreate()\n {\n $model=new Resources;\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if(isset($_POST['Resources']))\n {\n $model->attributes=$_POST['Resources'];\n $model->created_at = date(\"Y-m-d H:i:s\");\n $model->modified_at = date(\"Y-m-d H:i:s\");\n if($model->is_available == \"on\"){\n $model->is_available = 1;\n }\n else{\n $model->is_available = 0;\n }\n if($model->save())\n $this->redirect(array('view','id'=>$model->resource_id));\n }\n\n $this->render('create',array(\n 'model'=>$model,\n 'from' => \"create\",\n ));\n }", "title": "" }, { "docid": "ec6c48e2a6c77e52e3dd220e9a42790d", "score": "0.7201143", "text": "public function create()\n {\n return view('RequestForms.requestforms.create');\n }", "title": "" }, { "docid": "b85c23612f97bf86113f4c24770e2c90", "score": "0.7177403", "text": "public function create()\n {\n return view('be/forms/add');\n }", "title": "" }, { "docid": "9b078c37b7def3d0aa0936448ea591e4", "score": "0.71748173", "text": "public function form()\n {\n return view('create');\n }", "title": "" }, { "docid": "abcdd6ee800f478cd20431244af3bd42", "score": "0.7162191", "text": "public function newAction()\n {\n $this->view->form = new ClientForm(null, array('edit' => true));\n }", "title": "" }, { "docid": "83a47d90318500ad98cc612ab26fc702", "score": "0.71610785", "text": "public function create(){\n $resourceStatuses = ResourceStatus::orderBy('name', 'ASC')->get();\n $resourceTypes = ResourceType::orderBy('name', 'ASC')->get();\n $dependencies = Dependency::orderBy('name', 'ASC')->get();\n $resourceCategories = ResourceCategory::orderBy('name', 'ASC')->get();\n $physicalStates = PhysicalState::orderBy('name', 'ASC')->get();\n $spaces = Space::orderBy('name', 'ASC')->get();\n\n return view('admin.resources.create_edit')\n ->with('spaces', $spaces)\n ->with('resourceStatuses', $resourceStatuses)\n ->with('resourceTypes', $resourceTypes)\n ->with('dependencies', $dependencies)\n ->with('resourceCategories', $resourceCategories)\n ->with('physicalStates', $physicalStates)\n ->with('title_page', 'Crear nuevo recurso')\n ->with('menu_item', $this->menu_item);\n }", "title": "" }, { "docid": "333b7adf43052fb5d5c8718573f770bd", "score": "0.7160766", "text": "public function create()\r\n {\r\n return view('ask::form');\r\n }", "title": "" }, { "docid": "7f194de3c5c17bb40860b2954fe66227", "score": "0.7157919", "text": "public function create()\n {\n return view('Application_Form/create');\n }", "title": "" }, { "docid": "cdccf0772168a4c3198ad8229762752f", "score": "0.7153613", "text": "public function create()\n {\n return $this->view('form');\n }", "title": "" }, { "docid": "dda7015eff0593458f7e9daeb92389f7", "score": "0.71446884", "text": "public function create()\r\n {\r\n Breadcrumb::title(trans('admin_partner.create'));\r\n return view('admin.partner.create_edit');\r\n }", "title": "" }, { "docid": "b4766fe7cffd9556005a702266efce82", "score": "0.7134025", "text": "public function create()\n {\n return view('luot-choi.form');\n }", "title": "" }, { "docid": "53163536d5d151380894ed516baf152c", "score": "0.71320015", "text": "public function actionCreate() {\n $this->render('create');\n }", "title": "" }, { "docid": "97209db276d73dfc71ffc10ef4a4037f", "score": "0.71299785", "text": "public function create()\n {\n return view('book.form');\n }", "title": "" }, { "docid": "91f24bb86cd15eed211f58196f1d86ae", "score": "0.71291333", "text": "public function create()\n {\n return view('backend.Professor.add');\n }", "title": "" }, { "docid": "d97704263c26734e129cdf5323ff60bc", "score": "0.71215284", "text": "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCResourcePersonBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "title": "" }, { "docid": "c571604fd51a96c35378cece2d31fca9", "score": "0.71205664", "text": "public function create()\n {\n return view('component.form');\n }", "title": "" }, { "docid": "11be4c91a1fe4a200ba70320116d65bd", "score": "0.7115929", "text": "public function newAction()\n {\n $entity = new Form();\n $form = $this->createCreateForm($entity);\n\n return $this->render('FormBundle:Form:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "e864dc2fb3b7132697f36b0ed311645c", "score": "0.71139205", "text": "public function create()\n {\n //\n\n $modules = Module::getFormModulesArray();\n\n return view('resources.create', compact('modules'));\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.7113886", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.7113886", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "5d55890bc62628c68b42c85ea77e34ab", "score": "0.7110771", "text": "public function create()\n {\n //return the form\n return view('addBrand');\n }", "title": "" }, { "docid": "4ae755f5cddde08f9f196daabb710be5", "score": "0.7101543", "text": "public function create()\n {\n return view('rest.create');\n }", "title": "" }, { "docid": "250053e797e8b6427e70e0bf8a821f82", "score": "0.710147", "text": "public function create()\n {\n return view('singularForm');\n }", "title": "" }, { "docid": "730158469e1bfb64d8c0b14e02113fed", "score": "0.7091812", "text": "public function create()\n { \n return $this->showForm();\n }", "title": "" }, { "docid": "d1aa4707a9c6ebf5c8103249dbc1a2a3", "score": "0.7085012", "text": "public function create()\n {\n $view = 'create';\n\n $active = $this->active;\n $word = $this->create_word;\n $model = null;\n $select = null;\n $columns = null;\n $actions = null;\n $item = null;\n\n return view('admin.crud.form', compact($this->compact));\n }", "title": "" }, { "docid": "30ab8989b95dcf9d797d22a8cedaf241", "score": "0.7085002", "text": "public function create()\n {\n return view ('walas.form');\n }", "title": "" }, { "docid": "e72578b08d1332567faf884e2c542543", "score": "0.70808655", "text": "public function create()\n {\n //\n return view('Hrm.create');\n }", "title": "" }, { "docid": "1d478e63e74fbe4c05b862772d019539", "score": "0.70711833", "text": "public function create()\n\t{\n\t\treturn View::make('referrals.create');\n\t}", "title": "" }, { "docid": "b7d9a98626783303d6641ee55810a61c", "score": "0.7065534", "text": "public function create()\n {\n return view ('mapel.form');\n }", "title": "" }, { "docid": "ef53dfc7738110e45d9007d473bd71d5", "score": "0.70557463", "text": "public function newAction()\n {\n $user = $this->getUser();\n $entity = new Program();\n $form = $this->createCreateForm($entity);\n\n return $this->render('SifoAdminBundle:new:layout.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'user' => $user,\n ));\n }", "title": "" }, { "docid": "a3472bb62fbfd95113a02e6ab298fb16", "score": "0.70503694", "text": "public function create()\n {\n return view('admin.new.create');\n }", "title": "" }, { "docid": "c69f303d7cafa0864b25b452417d3c13", "score": "0.7048917", "text": "public function create()\n\t{\n\t\treturn view('actions.create');\n\t}", "title": "" }, { "docid": "24de1eba4953f740bc6a118cfe591c83", "score": "0.7047", "text": "public function create()\n\t{\n\t\treturn view('terapis.create');\n\t}", "title": "" }, { "docid": "620ab4a3a65ec50a3ce7567f8eb824b6", "score": "0.70397186", "text": "public function create()\n {\n return view('periode.form', ['action' => 'create']);\n }", "title": "" }, { "docid": "f6a3aae712481bebdb682e358afe1838", "score": "0.7034701", "text": "public function create()\n {\n return view('addnew');\n }", "title": "" }, { "docid": "6e681e9ac9f85217033ef4f7a3bbf71a", "score": "0.7027346", "text": "public function new()\n {\n return view('api.create');\n }", "title": "" }, { "docid": "2d5b7eca3b39b1bc57b0ee331b2b4be2", "score": "0.70163363", "text": "public function create()\n {\n return view('cr.create');\n }", "title": "" }, { "docid": "66b746538eaf7a550c7b3a12968b96a6", "score": "0.70137095", "text": "public function create()\n {\n return view('supplier.form');\n }", "title": "" }, { "docid": "66b746538eaf7a550c7b3a12968b96a6", "score": "0.70137095", "text": "public function create()\n {\n return view('supplier.form');\n }", "title": "" }, { "docid": "815b2bb0c304d8b5c4fe1f4daf2ceec4", "score": "0.70020354", "text": "public function newAction()\n {\n $entity = new Contratos();\n $form = $this->createForm(new ContratosType(), $entity);\n\n return $this->render('ContratosBundle:Contratos:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "352b208a6732c907e34599651886889d", "score": "0.69891995", "text": "public function newAction()\n {\n $entity = new Presupuesto();\n $entity->setFecha(new \\DateTime(\"now\"));\n $form = $this->createForm(new PresupuestoType(), $entity);\n\n return $this->render('SisafBundle:Presupuesto:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "c8b3173ebb54a31ce2b94ee2bb8bfa2c", "score": "0.6981039", "text": "public function newAction()\n {\n $this->view->form = new PeliculaForm(null, array('edit' => true));\n }", "title": "" }, { "docid": "186fd4dd8e12d5f9b7757f0a686adc29", "score": "0.69759303", "text": "public function create()\n {\n //\n \n return view('students.add-record');\n }", "title": "" }, { "docid": "ed971a374ffda4f996862b4981ac44db", "score": "0.6975652", "text": "public function create() {\n\n\t\t//Pasamos los datos antiguos del form o un objeto vacio a la vista\n\t\treturn view('balance.entry.insert', [\n\t\t\t'title' \t=> 'Insertar Registro',\n\t\t\t'action' \t=> [\n\t\t\t'name' => 'insert',\n\t\t\t'value' => 'Insertar',\n\t\t\t'route' => '/entry/insert'\n\t\t\t],\n\t\t\t'concepts'\t=> Concepts::all('name', 'id'),\n\t\t\t'entry'\t=> $this->createEntry (old())\n\t\t\t]\n\t\t\t);\n\n\t}", "title": "" }, { "docid": "ac3176c7f03421a5d8485f79ce8a5af7", "score": "0.69731045", "text": "public function create()\n {\n //\n return view('admin.forms.form-produto');\n }", "title": "" }, { "docid": "b448943ed550a7fe66b7e558cb34571d", "score": "0.6971573", "text": "public function create()\n {\n\t\treturn view('admin.pages.material-form-create', ['page' => 'material']);\n }", "title": "" }, { "docid": "f552f3b31ae1d146915cc557308d9ddf", "score": "0.6971476", "text": "public function create()\n {\n $controls = [\n [\n 'type' => 'text',\n 'name' => 'title',\n 'title' => 'Название',\n 'placeholder' => 'Введите название'\n ],\n ];\n\n return view('control-form.create', [\n 'title' => 'Добавить новый жанр',\n 'controls' => $controls,\n 'button_title' => 'Все жанры',\n 'button_route' => 'genre.index',\n 'route_store' => 'genre.store',\n ]);\n }", "title": "" }, { "docid": "77f3e1fd596cfdf21d9eae9a8efaa862", "score": "0.69625854", "text": "public function create()\n\t\t{\n\t\t\treturn view('kalender.create');\n\t\t}", "title": "" }, { "docid": "5de84c2126fe48e85ce132c9fbb06f89", "score": "0.69614667", "text": "public function newAction()\n {\n $entity = new Section();\n $form = $this->createForm(new SectionType(), $entity);\n\n return $this->render('OrchestraOrchestraBundle:Section:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "c259b246490a579b8d14c75187100711", "score": "0.6955765", "text": "public function create()\n {\n //\n return view(env('THEME').'.form');\n }", "title": "" }, { "docid": "8ed65484ff2ee4c220e635b0137f51c9", "score": "0.6947236", "text": "public function create()\n {\n return view('show.create');\n }", "title": "" }, { "docid": "468549dd2c5b7deb7ef57808ae25eb96", "score": "0.6946818", "text": "public function newAction()\n {\n $entity = new Representation();\n $form = $this->createCreateForm($entity);\n\n return $this->render('DevPCultBundle:Representation:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "93bc20f90c626c640e22d48a58c57dc8", "score": "0.6943836", "text": "public function action_new()\n\t{\n\t\t$id = $this->request->param('id');\n\n\t\tif ($id !== null)\n\t\t{\n\t\t\t$this->redirect(Route::url('customer', array('action' => 'edit', 'id' => $id)));\n\t\t} // if\n\n\t\t$model = ORM::factory('Customer');\n\n\t\t$this->content = View::factory('customer/form', array(\n\t\t\t'title' => __('Create new customer'),\n\t\t\t'customer' => $model,\n\t\t\t'properties' => $model->get_properties(),\n\t\t\t'ajax_url' => Route::url('customer', array('action' => 'save'))\n\t\t));\n\t}", "title": "" }, { "docid": "bfc152f36ac3a238d17495dc7b11b127", "score": "0.6943741", "text": "public function create() {\n\t\t//\n\t\treturn view('matakuliah.create');\n\t}", "title": "" }, { "docid": "3646d78424385e5a1829ad7679cf8113", "score": "0.69376904", "text": "public function create()\n {\n abort_if(Gate::denies('user_access'), Response::HTTP_FORBIDDEN, '403 Forbidden');\n $forms = Form::all(['id', 'name']);\n return view('admin.form.create',[\n 'forms' => $forms\n ]);\n }", "title": "" }, { "docid": "d2dfb39011e7751d334f3b102132bcc0", "score": "0.69359493", "text": "public function create()\n {\n return view('libro.create');\n }", "title": "" }, { "docid": "f19095884fa0edb7061608c09bb71e8d", "score": "0.69340336", "text": "public function create()\n {\n return view(static::$resource::uriKey() . '.create');\n }", "title": "" }, { "docid": "c617fff7a1564553ef77993e1b2abce0", "score": "0.6929935", "text": "public function create()\n\t{\n\t\treturn View::make('pertanians.create');\n\t}", "title": "" }, { "docid": "978bcc6315cbc834f3ebe718240ae1d3", "score": "0.6926812", "text": "public function create()\n {\n return view('actions.create');\n }", "title": "" }, { "docid": "978bcc6315cbc834f3ebe718240ae1d3", "score": "0.6926812", "text": "public function create()\n {\n return view('actions.create');\n }", "title": "" }, { "docid": "a5971cddc1452c95970f26bbe6bb5e6f", "score": "0.6922355", "text": "public function create()\n\t{\n\t\treturn view('baloncestos.create');\n\t}", "title": "" }, { "docid": "0b29daaacb3707cc487ca300065d6c2d", "score": "0.69210124", "text": "public function create()\n {\n return view('Admin/product/form');\n }", "title": "" }, { "docid": "5517acddff8c143f08d4836b4e8fd2e3", "score": "0.69207615", "text": "public function create()\n\t{\t\n\n\t\treturn view('karyawan.create');\n\t}", "title": "" }, { "docid": "c4416390a701ec4941a20dc3ab095a2a", "score": "0.6916859", "text": "public function create()\n\t{\n\t\treturn view('create');\n\t}", "title": "" }, { "docid": "1d6a11dbd501ca5d140d052e376ab852", "score": "0.69158936", "text": "public function create()\n {\n //\n return view('security_form/create');\n }", "title": "" }, { "docid": "d4c80824a85a6929fc348476de3eca98", "score": "0.69129395", "text": "public function newAction()\n {\n $entity = new Faq();\n $form = $this->createCreateForm($entity);\n\n return $this->render('StalkAdminBundle:Faq:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "e90d65170f9bc3dd1e2b969826600c53", "score": "0.691206", "text": "public function create()\n {\n return view('ekskul.create');\n }", "title": "" }, { "docid": "48be68f2d9bd5c305c8873ab5aff62d3", "score": "0.69094074", "text": "public function create()\n\t{\n\t\t//\n\n return view ('control.create');\n\t}", "title": "" }, { "docid": "e8cca05e3e15a063aab85a8139089f03", "score": "0.6907963", "text": "public function create()\n\t{\n\t\treturn View::make('actions.create');\n\t}", "title": "" }, { "docid": "9b7a38de3bb00757b81dc1254498c827", "score": "0.69054276", "text": "public function create()\n {\n //\n return view(\"admin.admin.add\");\n }", "title": "" }, { "docid": "5519441f340b7c0a79f84cf3d36493f2", "score": "0.69046044", "text": "public function create()\n {\n return view('bookshelfs.create');\n }", "title": "" }, { "docid": "f608122e33d25f55691c654ca00c5667", "score": "0.69021165", "text": "public function create()\n {\n //\n view('backend.form.post');\n }", "title": "" }, { "docid": "e9b252f908807559380ec3e0133efd8e", "score": "0.69011486", "text": "public function create()\n\t{\n\t\treturn view('background.form');\n\t}", "title": "" }, { "docid": "e88b17f0dfcb8e1d7ac04c5b9f6af8f1", "score": "0.6900857", "text": "public function create()\n {\n return view('cars.form');\n }", "title": "" }, { "docid": "0bfd2732af9e7c334472e3d359a90660", "score": "0.6899377", "text": "public function newAction()\r\n {\r\n return view('new::new');\r\n }", "title": "" }, { "docid": "b0e63a1ed98c6d4fef9c0ef1f2d36a46", "score": "0.68980145", "text": "public function create()\n {\n return view('digemid::create');\n }", "title": "" }, { "docid": "a0881f7e221b4df400147e74c85c747d", "score": "0.68958324", "text": "public function create()\n {\n Return View::make(\"manufacture.add\");\n }", "title": "" }, { "docid": "500865703b94c25ca90c99ae01ee90e3", "score": "0.68946874", "text": "public function new()\n {\n $this->denyAccessUnlessGranted('ROLE_ADMIN');\n\n $form = $this->createNewForm(new Relation());\n\n return $this->render('@IntegratedContent/relation/new.html.twig', [\n 'form' => $form->createView(),\n ]);\n }", "title": "" }, { "docid": "b0dd1ae1c23ce5ea02e38a9b85427b1e", "score": "0.6894297", "text": "public function create()\n \t{\n \t\treturn view('terapiobat.create');\n \t}", "title": "" }, { "docid": "1dbd74dcb3f0ceb2fd4fb4fd641e0384", "score": "0.6894276", "text": "public function create()\n {\n return view('backend.instruktur.form');\n }", "title": "" }, { "docid": "8e97605e60c08e7be60f2ce241d8675e", "score": "0.6889809", "text": "public function create()\n {\n return view('administration.create');\n }", "title": "" }, { "docid": "e9341a1375b53713ef8760a5689b525f", "score": "0.68888545", "text": "public function create()\n {\n return view('bookself.create');\n }", "title": "" }, { "docid": "0075ba982bed082bc50bd31893c5082e", "score": "0.6888815", "text": "public function create()\n {\n //\n $BookId = Book::max('id')+1;\n $BookId = \"BOOKID-\".str_pad($BookId, 4, '0', STR_PAD_LEFT);\n\n $data = array(\n 'bookId'=>$BookId,\n 'form'=>\"create\",\n );\n return view('book.form')->with($data);\n }", "title": "" }, { "docid": "6769fe63e35d4f98abe507728065b246", "score": "0.6887824", "text": "public function create()\r\n {\r\n return view('superadmin::create');\r\n }", "title": "" }, { "docid": "b7654a4ac084aa2dc258dde927666f09", "score": "0.6887317", "text": "public function create()\n {\n return view (\"student.create\");\n }", "title": "" } ]
ff6889862c31b8230345781586d88e9f
Create an url for authentication.
[ { "docid": "ffba183430ed5f7bdfd582f33ea46063", "score": "0.7139755", "text": "public function createAuthUrl() {\n $url = $this->service->createAuthUrl();\n return response()->json($url);\n }", "title": "" } ]
[ { "docid": "f42d800cc26098f51a7e031b77df9103", "score": "0.8136807", "text": "public function createAuthUrl()\n\t{\n\t\treturn $this->client->createAuthUrl();\n\t}", "title": "" }, { "docid": "2849752ce3cdce1921119c99cedcdd93", "score": "0.79478157", "text": "public function createAuthUrl()\n {\n return $this->client->createAuthUrl();\n }", "title": "" }, { "docid": "7e52e451cf1b362a32e19da3ac686785", "score": "0.72927207", "text": "public function auth_url() \n\t{\n\t\treturn $this->_gclient->createAuthUrl();\n\t}", "title": "" }, { "docid": "7ee94c87994e945a7cdca595f93c3395", "score": "0.7246929", "text": "public function getAuthenticationUrl();", "title": "" }, { "docid": "de313f48c827c80a92a7562e1ca399a5", "score": "0.6987734", "text": "public function authUrl()\n {\n return $this->client->createAuthUrl();\n }", "title": "" }, { "docid": "c7a98b22e1f914d996e83e657566acb5", "score": "0.6780111", "text": "public function getAuthUrl()\n\t{\n\t\treturn \"https://\" . $this->getDomain() . '/private/api/auth.php?type=json';\n\t}", "title": "" }, { "docid": "7f01fb4e2e183ffea69b13f39e79ce61", "score": "0.6716897", "text": "abstract public function authorizeUrl();", "title": "" }, { "docid": "18a0b521bcfbd0d7dce0f6f9e9adce9a", "score": "0.6605683", "text": "public function generateLoginUrl(): string\n {\n return self::CORE_URL . 'auth?app_id=' . $this->app_id . '&redirect_url=' . urlencode($this->redirect_url);\n }", "title": "" }, { "docid": "27b154633eeebd17e5a0041830775730", "score": "0.65841264", "text": "public function getAuthUrl() {\n return str_replace(['{CLIENT_ID}', '{STATE}'], [$this->cfg->nest->client_id, uniqid()], self::OAUTH_AUTH_URL);\n }", "title": "" }, { "docid": "4c21700901cc3b1c24d665c7eb29d04f", "score": "0.6583982", "text": "public function AuthUrl() {\n\t\t$client = $this->client();\n\n\t\t// If the user hasn't authorized the app, initiate the OAuth flow\n\t\t$state = mt_rand();\n\t\t$client->setState($state);\n\t\t$_SESSION['state'] = $state;\n\n\t\treturn $client->createAuthUrl();\n\t}", "title": "" }, { "docid": "1881ff66ae997c84f4215b18d5745da9", "score": "0.658324", "text": "public function loginUrl();", "title": "" }, { "docid": "223f55e0be651ea10129c15d98fb8d1f", "score": "0.6578582", "text": "function wpda_add_basic_auth($url, $username, $password) {\r\n\t\t$url = str_replace(\"https://\", \"\", $url);\r\n\t\t$url = \"https://\" . $username . \":\" . $password . \"@\" . $url;\r\n\t\treturn $url;\r\n\t}", "title": "" }, { "docid": "6cf12c196b9935f92fb38980f1e8293f", "score": "0.656376", "text": "private static function setAuthenticationLink()\n {\n $clientId = bSecure::getClientId();\n $scope = self::$scope;\n $response_type = self::$response_type;\n $state = self::$state;\n return bSecure::$loginBase.'?client_id='.$clientId.'&scope='.$scope.'&response_type='.$response_type.'&state='.$state;\n }", "title": "" }, { "docid": "45bfc8b9f5de4fe8321f51dc67d8fdbb", "score": "0.655519", "text": "public function createAuthUrl() {\n\n global $g_authurl_error; \n\n $bitshares = new Bitcoin($this->RPC_SERVER_USER, $this->RPC_SERVER_PASS, $this->RPC_SERVER_ADDRESS, $this->RPC_SERVER_PORT, $this->RPC_SERVER_PATH);\n $bitshares->open($this->RPC_SERVER_WALLET);\n if ($bitshares->status != 200) {\n $g_authurl_error = $bitshares->error;\n return false;\n }\n $bitshares->unlock(2, $this->RPC_SERVER_WALLET_PASS); // with invalid password this doesnt trigger error\n if ($bitshares->status != 200) {\n $g_authurl_error = $bitshares->error;\n return false;\n }\n\n $loginStart = $bitshares->wallet_login_start($this->BITSHARES_USER_NAME);\n if (($bitshares->status != 200) || empty($loginStart) || ($loginStart == 'null')) {\n $g_authurl_error = $bitshares->error;\n return false;\n }\n\t return $loginStart . $this->SITE_DOMAIN . \"/index.php?action=bitshares\";\n }", "title": "" }, { "docid": "ad442044beadc5c1cbc24e94cf5c091d", "score": "0.6465971", "text": "public function getAuthURL()\n {\n $clientID = \\Config::inst()->get('VendAPI', 'clientID');\n $redirectURI = \\Director::absoluteBaseURLWithAuth() . \\Config::inst()->get('VendAPI', 'redirectURI');\n return \"https://secure.vendhq.com/connect?response_type=code&client_id=$clientID&redirect_uri=$redirectURI\";\n }", "title": "" }, { "docid": "ce7d66699892c965a4cbfe54509af170", "score": "0.6395294", "text": "public function getAuthURL($action = self::ACTION_AUTHEMTICATE);", "title": "" }, { "docid": "f126008371cc0964f05ebfd16a6da287", "score": "0.6393679", "text": "protected function getAuthUrl()\n {\n $params = $this->buildAuthParams();\n\n return $this->buildUrl('/oauth2/authorize', $params);\n }", "title": "" }, { "docid": "d2cbea0288523024f32641d42f6912be", "score": "0.6368615", "text": "static function absoluteBaseURLWithAuth() {\n\t\t$s = \"\";\n\t\t$login = \"\";\n\t\t\n\t \tif(isset($_SERVER['PHP_AUTH_USER'])) $login = \"$_SERVER[PHP_AUTH_USER]:$_SERVER[PHP_AUTH_PW]@\";\n\n\t \treturn Director::protocol() . $login . $_SERVER['HTTP_HOST'] . Director::baseURL();\n\t }", "title": "" }, { "docid": "c91eadbfac1f52640ab15d484c8e0b78", "score": "0.6358782", "text": "public function get_login_url() {\n\t\t// Generate several nonces to be used as antiforgery_id.\n\t\t$passes = defined( 'AADSSO_NONCE_PASSES' )\n\t\t\t? filter_var( AADSSO_NONCE_PASSES, FILTER_VALIDATE_INT )\n\t\t\t: 3;\n\n\t\t// Generate at least one nonce.\n\t\t$passes = max( $passes, 1 );\n\n\t\t$nonces = array();\n\t\tfor ( $i = 0; $i < $passes; $i++ ) {\n\t\t\t$nonces[] = wp_create_nonce( 'aadsso_authenticate_' . $i );\n\t\t}\n\n\t\t// implode the nonces without delimiter.\n\t\t$antiforgery_id = implode(\n\t\t\t'',\n\t\t\t$nonces\n\t\t);\n\t\treturn AADSSO_Authorization_Helper::get_authorization_url( $this->settings, $antiforgery_id );\n\t}", "title": "" }, { "docid": "09458541f9784879907772f8525cb43b", "score": "0.63574487", "text": "public function getAuthUrl()\r\n {\r\n $params = array(\r\n 'client_id' => $this->apiKey,\r\n\t \t'url' => $this->redirectUri,\r\n 'response_type' => 'code'\r\n );\r\n // Only append a redirectURI if one was explicitly specified\r\n if ($this->redirectUri) {\r\n $params['redirect_uri'] = $this->redirectUri;\r\n }\r\n $url = $this->apiServerUrl.'/authenticate?' . http_build_query($params);\t\r\n return $url;\r\n }", "title": "" }, { "docid": "9914a2f25fe55066b9d5bb1a389b2283", "score": "0.631835", "text": "public function createURL () {\n\t\t// SSL on standard port\n\t\tif(($_SERVER['HTTPS'] == 'on') || ($_SERVER['SERVER_PORT'] == 443)) {\n\t\t\t$url = \"https://$_SERVER[HTTP_HOST]\";\n\t\t}\n\t\t// reverse proxy doing SSL offloading\n elseif(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {\n \t$url = \"https://$_SERVER[HTTP_X_FORWARDED_HOST]\";\n }\n\t\telseif(isset($_SERVER['HTTP_X_SECURE_REQUEST']) && $_SERVER['HTTP_X_SECURE_REQUEST'] == 'true') {\n\t\t\t$url = \"https://$_SERVER[SERVER_NAME]\";\n\t\t}\n\t\t// custom port\n\t\telseif($_SERVER['SERVER_PORT']!=\"80\") {\n\t\t\t$url = \"http://$_SERVER[SERVER_NAME]:$_SERVER[SERVER_PORT]\";\n\t\t}\n\t\t// normal http\n\t\telse {\n\t\t\t$url = \"http://$_SERVER[HTTP_HOST]\";\n\t\t}\n\n\t\t//result\n\t\treturn $url;\n\t}", "title": "" }, { "docid": "cfe48a1434e6c381030d6d46332ae57a", "score": "0.6296465", "text": "abstract public function accessTokenUrl();", "title": "" }, { "docid": "a8a89aa4418d8f2fd9ceba89161c54b0", "score": "0.6282698", "text": "abstract public function getLoginUrl();", "title": "" }, { "docid": "5c7c5b2d2693b0a7fd0d3329c7bbd064", "score": "0.6268047", "text": "public function getAuthenticateUrl()\n {\n return 'https://once.deputy.com/my/oauth/login?' .\n http_build_query(\n [\n 'client_id' => $this->getClientId(),\n 'redirect_uri' => $this->getRedirectUri(),\n 'response_type' => 'code',\n 'scope' => $this->_longLife ? 'longlife_refresh_token' : '',\n ]\n );\n }", "title": "" }, { "docid": "f01299cad7bcb5d079b181439dd94b11", "score": "0.6225065", "text": "abstract public function getSignInUrl();", "title": "" }, { "docid": "ea32032afb013793b5b31095866e17f9", "score": "0.6212075", "text": "public function buildUrl();", "title": "" }, { "docid": "ea32032afb013793b5b31095866e17f9", "score": "0.6212075", "text": "public function buildUrl();", "title": "" }, { "docid": "174db66ad6911f2d5c5eb4f9b905e7e9", "score": "0.6198983", "text": "public function getUrlAuthentication()\n {\n return $this->urlAuthentication;\n }", "title": "" }, { "docid": "56728ef3d593fdc0d27f5c41c9b536ae", "score": "0.6177285", "text": "public function getAuthURL() {\n $options = [\n 'state' => $this->getState(), // If empty, the provider will generate one.\n ];\n $url = $this->provider->getAuthorizationUrl($options);\n // The state is used to verify the response.\n // Store the state generated by the OAuth provider object.\n $this->setState($this->provider->getState());\n return $url;\n }", "title": "" }, { "docid": "d00a43e594565a8d5a6f8789e13f2838", "score": "0.6155124", "text": "public function buildUrl()\n {\n $scheme = isset($this->value['scheme']) ? ($this->value['scheme'] . '://') : '';\n\n $host = $this->value['host'] ?? '';\n $port = isset($this->value['port']) ? (':' . $this->value['port']) : '';\n\n $user = $this->value['user'] ?? '';\n\n $pass = isset($this->value['pass']) ? (':' . $this->value['pass']) : '';\n $pass = ($user || $pass) ? ($pass . '@') : '';\n\n $path = $this->value['path'] ?? '';\n $path = $path ? ('/' . ltrim($path, '/')) : '';\n\n $query = isset($this->value['query']) ? ('?' . $this->value['query']) : '';\n $fragment = isset($this->value['fragment']) ? ('#' . $this->value['fragment']) : '';\n\n return implode('', [$scheme, $user, $pass, $host, $port, $path, $query, $fragment]);\n }", "title": "" }, { "docid": "9335244c01ed4b912de7135932a0ff98", "score": "0.6153882", "text": "function fsl_gauth_getauthurl()\n\t{\n\t\n\t$gClient = new Google_Client();\n $gClient->setApplicationName('Login');\n $gClient->setClientId(option('clientId'));\n $gClient->setClientSecret(option('clientSecret'));\n $gClient->setRedirectUri(option('redirectURL')); \n\t//\t$gClient->setHd(option('hd')); \n $google_oauthV2 = new Google_Oauth2Service($gClient);\n $authUrl = $gClient->createAuthUrl();\n return $authUrl;\n}", "title": "" }, { "docid": "e7135d54d8a335b7fbd3aae35889e73e", "score": "0.61483926", "text": "public function getAuthUrl()\n {\n return $this->authUri;\n }", "title": "" }, { "docid": "a8957e1cfb43d2c8e4b084697fa641d9", "score": "0.6135429", "text": "public function createUrlForUser($name)\n {\n $data = $this->getData();\n $key = $data['tokenkey'];\n $name = urlencode($name);\n\n // Oddity in the google authenticator... totp needs to be lowercase.\n $tokenType = strtolower($data['tokentype']);\n if ($tokenType === 'totp') {\n $url = 'otpauth://' . $tokenType . '/' . $name . '?secret=' . $key;\n } else {\n $url = 'otpauth://' . $tokenType . '/' . $name . '?secret=' . $key . '&counter=' . $data['tokencounter'];\n }\n return $url;\n }", "title": "" }, { "docid": "32539701aa6166a5e478de46f3d3fa90", "score": "0.61078453", "text": "function getUrlAuth() \n {\n return __WWW_LANG_ROOT__ . '/authentification?url_retour=' . urlencode($_SERVER['REQUEST_URI']);\n }", "title": "" }, { "docid": "eb6179c5f574eca0c44fb98c1887a90d", "score": "0.6105953", "text": "public function getAuthenticationUrl()\n {\n return $this->authenticationUrl;\n }", "title": "" }, { "docid": "c6ffb60a74258a9ef91ade545bc5e06c", "score": "0.6096997", "text": "private function extractAuthEndpoint()\n {\n $auth = empty($this->config['auth_endpoint']) ? self::DEFAULT_AUTH_ENDPOINT : $this->config['auth_endpoint'];\n\n switch ($auth) {\n case Endpoint::UK:\n $endpoint = Rackspace::UK_IDENTITY_ENDPOINT;\n break;\n case Endpoint::US:\n $endpoint = Rackspace::US_IDENTITY_ENDPOINT;\n break;\n default:\n $endpoint = $auth;\n break;\n }\n\n return Url::factory($endpoint);\n }", "title": "" }, { "docid": "06971c3b02873a2f3cd75dbe81b6f1c2", "score": "0.6088259", "text": "public function getLoginUrl();", "title": "" }, { "docid": "9f1189f975ac5f29b047813dc4a9a694", "score": "0.60177135", "text": "public function buildUrl() {\n\t\treturn \"http\" . ($this->usessl ? \"s\" : \"\") . \"://\" . $this->hostname . \":\" . $this->port . \"/\";\n\t}", "title": "" }, { "docid": "f3d87ba73706521c2619456ecebcfe5b", "score": "0.60168254", "text": "private function buildHostUrl()\n {\n return 'http://' . env('ELASTIC_UN') . \":\" . env('ELASTIC_PW') . '@' . env('ELASTIC_HOST');\n }", "title": "" }, { "docid": "fde63899b6413587f41795cb1e57ed2f", "score": "0.60023606", "text": "public function getLoginUrl()\n {\n // Generate a new user uuid\n CompanionTokenManager::getToken()->userId = ID::uuid();\n CompanionTokenManager::saveTokens();\n \n // Get a token from SE\n $response = $this->getToken();\n CompanionTokenManager::getToken()->token = $response->token;\n CompanionTokenManager::getToken()->salt = $response->salt;\n CompanionTokenManager::saveTokens();\n \n // Get OAuth URI\n $this->loginUri = $this->buildLoginUri();\n return $this->loginUri;\n }", "title": "" }, { "docid": "16361a7f187b2e3c8dd7b2edfe7d583c", "score": "0.59951353", "text": "private function accessUrl() {\n $config = $this->config('eloqua_api_redux.settings');\n $redirectUrl = Url::fromUri('internal:/eloqua_api_redux/callback', ['absolute' => TRUE])->toString();\n $urlBase = $config->get('api_uri') . 'authorize';\n\n $query = [\n 'response_type' => 'code',\n 'client_id' => $config->get('client_id'),\n 'redirect_uri' => $redirectUrl,\n ];\n\n $url = Url::fromUri($urlBase, [\n 'query' => $query,\n 'absolute' => TRUE,\n ])->toString();\n\n return $url;\n }", "title": "" }, { "docid": "f57032cfbddfcc8fd4e660cc8e44a299", "score": "0.5971675", "text": "public function getUrl() {\n $params = array(\n 'client_id' => $this->client_id,\n 'redirect_uri' => $this->return_url,\n 'response_type' => 'code'\n );\n\n $url = $this->__getUrl(self::AUTH_URL, $params);\n \n return $url;\n }", "title": "" }, { "docid": "bb9133b5d861eac9b4d2f5d4c687e484", "score": "0.596295", "text": "protected function getLoginUrl()\n {\n return $this->router->generate($this->cas->getRouteLogin());\n }", "title": "" }, { "docid": "7595e021555600248ff04de7252b3f21", "score": "0.59595543", "text": "protected function getAuthTokenUrl() {\n $baseUrl = $this->helper->getTransactionApiUrl('bread_2', $this->getStoreId());\n return join('/', [trim($baseUrl, '/'), 'auth/service/authorize']);\n }", "title": "" }, { "docid": "67aff83258b93116e55e5cfe85578a70", "score": "0.59589803", "text": "protected function makeSecureLink()\n {\n $email = $this->user->email;\n $password = User::select('password')->where('email', $email)->first()->password;\n\n $hashedPass = bcrypt($password);\n $hashedEmail = base64_encode($email);\n $suffix = $hashedEmail . $hashedPass;\n\n return url('accountActive?key=' . $suffix);\n }", "title": "" }, { "docid": "e7934f1113763ec03022f3a3b121fbfd", "score": "0.5940698", "text": "public function getAuthAction() {\n\t\t$authUrl = $this->client->createAuthUrl();\n\t\t\n\t\treturn \"<a href=\\\"\".ehtml($authUrl).\"\\\" onclick=\\\"window.open(this.href, '_blank', 'height=500,width=700,status=yes,toolbar=no,menubar=no,location=no,scrollbars=no');return false;\\\">+ Conectare cont</a>\";\n\t}", "title": "" }, { "docid": "9bb93057273f5053dbb7ef83c5ae7520", "score": "0.59326875", "text": "public function urlTokenCredentials()\n {\n return 'https://publicapi.avans.nl/oauth/access_token';\n }", "title": "" }, { "docid": "c5839fa02bdc8df3fcd1a1774236f79c", "score": "0.5928176", "text": "public function getLoginURL()\n {\n // build request url\n $url = self::OAUTH_URL . '/v2/auth?';\n\n //get scope \n $scope = $this->scope;\n\n array_walk($scope, function(&$value, $key) { \n $value = self::API . $value; \n });\n\n // convert array to string delimited by space\n $scopeList = implode(' ', $scope);\n\n // build query parameters\n $params = array(\n 'scope'=> $scopeList,\n 'redirect_uri'=> $this->redirectUri,\n 'response_type' => self::RESPONSE_TYPE,\n 'client_id' => $this->clientId,\n 'access_type' => self::ACCESS_TYPE\n );\n\n // append parameters to the url\n $loginUrl = $url . http_build_query($params);\n\n // return login url\n return $loginUrl;\n }", "title": "" }, { "docid": "2b70812a5267a9c17267e3e80e1474ba", "score": "0.5909628", "text": "public function create()\n {\n return Redirect::to( 'https://' . Request::server('SERVER_NAME') . ':' . Request::server('SERVER_PORT') . Config::get(\"$this->cpath.idp_login\") . '?target=' . action($this->ctrpath . \"idpAuthorize\"));\n }", "title": "" }, { "docid": "1837e65a2483fd9e2c5e1f93be1c8b89", "score": "0.58890855", "text": "public function urlAuthorization()\n {\n return 'https://publicapi.avans.nl/oauth/saml.php';\n }", "title": "" }, { "docid": "f65a87fdd7599824a47b454ed87bcace", "score": "0.588149", "text": "public function getAuthorizationUrl(array $options = [])\n {\n $options['nonce'] = uniqid();\n return parent::getAuthorizationUrl($options);\n }", "title": "" }, { "docid": "c92b60bf073b30316344ad700e477652", "score": "0.58164436", "text": "protected function getLoginUrl()\n {\n return $this->urlGenerator->generate('login');\n }", "title": "" }, { "docid": "8031c506cf234b5b4b4a7dc519794bc5", "score": "0.58000296", "text": "public function getAuthentication($uri);", "title": "" }, { "docid": "fb61da77bc8d00ec78b5d72dad77f85e", "score": "0.57767504", "text": "protected function getLoginUrl()\n {\n return $this->router->generate('login');\n }", "title": "" }, { "docid": "8d25d3d225b7455d4694159024f2cd9e", "score": "0.5754695", "text": "private function createUrl($route)\n {\n return HTTPS_SERVER.'index.php?route='.$route.'&user_token='.$this->session->data['user_token'];\n }", "title": "" }, { "docid": "fb73b020c2d0ab29b9ce76d0accf7ca0", "score": "0.5754452", "text": "function createUrl() {\r\n if( empty( $this->url )) return FALSE;\r\n if( empty( $this->url['value'] ))\r\n return ( $this->getConfig( 'allowEmpty' )) ? $this->_createElement( 'URL' ) : FALSE;\r\n $attributes = $this->_createParams( $this->url['params'] );\r\n return $this->_createElement( 'URL', $attributes, $this->url['value'] );\r\n }", "title": "" }, { "docid": "d422879ce86313248cb1fb46b5cf89ce", "score": "0.57422763", "text": "abstract public function requestTokenUrl();", "title": "" }, { "docid": "7fc56fc3b66888b71b10f2589b21b0ec", "score": "0.5737796", "text": "public function getAuthorizeUrl(AuthorizationServerInterface $authServer);", "title": "" }, { "docid": "cc66e19a1bd33834270ffa3cb3b7c1cb", "score": "0.57327956", "text": "function domain_url() {\n\t\t$url = 'http://localhost/PHP_auth_register/';\n\t\treturn $url;\n\t}", "title": "" }, { "docid": "e0685915787fa3adeb3422c795a5396a", "score": "0.5732391", "text": "protected function getAuthUrl($state)\n {\n return $this->buildAuthUrlFromBase('https://api.weibo.com/oauth2/authorize', $state);\n }", "title": "" }, { "docid": "b7f106f3257f52489491e2b101982215", "score": "0.5723336", "text": "protected function composeUrl($path = '')\n {\n return $this->authUrl . $path;\n }", "title": "" }, { "docid": "3c62fb31666789842e8e325840c6c198", "score": "0.57181495", "text": "abstract public function url_authorize();", "title": "" }, { "docid": "c7966841365b17af5339013f5916653a", "score": "0.57174087", "text": "private function buildRequestUrlForConsulting()\n {\n return [\n 'un' => $this->account,\n 'pw' => $this->password,\n ];\n }", "title": "" }, { "docid": "d86bb2cbfb24a543d12f17719540adf6", "score": "0.5707368", "text": "private function buildURL ()\n {\n $url = new \\r8\\URL;\n\n // Get the url Scheme from the server protocol\n if ( self::hasKey($this->server, \"SERVER_PROTOCOL\") )\n $url->setScheme( strtolower( strstr( $this->server['SERVER_PROTOCOL'], \"/\", TRUE ) ) );\n\n // Pull the server host, if it is set\n if ( self::hasKey($this->server, 'HTTP_HOST') )\n $url->setHost($this->server['HTTP_HOST']);\n\n // If there is no host, pull the IP address\n else if ( self::hasKey($this->server, \"SERVER_ADDR\") )\n $url->setHost($this->server['SERVER_ADDR']);\n\n // Pull the port\n if ( self::hasKey($this->server, \"SERVER_PORT\") )\n $url->setPort( (int) $this->server['SERVER_PORT'] );\n\n // The path and file name\n if ( self::hasKey($this->server, 'SCRIPT_NAME') )\n $url->setPath( $this->server['SCRIPT_NAME'] );\n\n // The faux directories\n if ( self::hasKey( $this->server, 'PATH_INFO' ) )\n $url->setFauxDir( \\r8\\str\\head( $this->server['PATH_INFO'], \"/\" ) );\n\n // Finally, pull the the URL query\n if ( self::hasKey($this->server, 'QUERY_STRING') )\n $url->setQuery($this->server['QUERY_STRING']);\n\n return $url;\n }", "title": "" }, { "docid": "12a2b85d0235d663555a2bd8a0f9b027", "score": "0.5704553", "text": "public function createUriFromServerSuperGlobal();", "title": "" }, { "docid": "42dacef2ce0a278019eebcdc6b0e7a9c", "score": "0.5679888", "text": "public function urlTemporaryCredentials()\n {\n return 'https://publicapi.avans.nl/oauth/request_token';\n }", "title": "" }, { "docid": "dcbe327d4d7b2a409067c1009f80a555", "score": "0.566422", "text": "public function constructUrl()\n {\n $constructedUrl = $this->getProtocol() . '://';\n $constructedUrl .= $this->getBaseUrl();\n $constructedUrl .= $this->getEndpoint() . '/';\n\n foreach($this->getParams() as $k => $v)\n {\n $constructedUrl .= \"&{$k}={$v}\";\n }\n\n $this->setUrl($constructedUrl);\n return $constructedUrl;\n }", "title": "" }, { "docid": "5c5ed437b7e655d0afa9c5e05e116361", "score": "0.56623715", "text": "public function accessTokenURL() {\n return $this->host . 'token?grant_type=client_credential';\n }", "title": "" }, { "docid": "2fd41afb1c006d45c9f2df1b47c5ed44", "score": "0.56569594", "text": "public function httpsUri();", "title": "" }, { "docid": "89b9e3e6b6fb72734cb8b27ff7d51e2e", "score": "0.5656923", "text": "public function makeAuthenticated();", "title": "" }, { "docid": "761fa99b160f8e436e37b01dd55154fe", "score": "0.5651032", "text": "public function create_access_token_url()\n {\n $data = [\n 'client_id' => $this->client_id,\n 'client_secret' => $this->client_secret,\n 'redirect_uri' => $this->callback_url,\n 'code' => $this->code,\n 'grant_type' => 'authorization_code',\n ];\n\n $obj = $this->post($this->access_token_url, $data);\n $this->access_token = $obj->access_token;\n\n return $this->access_token;\n }", "title": "" }, { "docid": "25ad502d175ed310a5329511cbf20054", "score": "0.5650287", "text": "public function authUrlProvider(): array\n {\n \n return [\n [\n '/'\n ],\n [\n '/tasks/create'\n ],\n [\n '/users/create'\n ]\n ];\n }", "title": "" }, { "docid": "90569108f5d33d4d2f03e3c85efcf033", "score": "0.563811", "text": "public function getYelpLoginUrl() {\n $login_url = $this->client->getAuthorizationUrl();\n\n // Generate and return the URL where we should redirect the user.\n return $login_url;\n }", "title": "" }, { "docid": "17c4f58497120813760fef76eed05c9b", "score": "0.56362045", "text": "public function getBaseAuthorizationUrl(): string\n {\n $url = $this->getAuthServer();\n if ($this->allowSilentAuth) {\n $url .= '/oauth/auth';\n } else {\n $url .= '/oauth/auth?prompt=login';\n }\n return $url;\n }", "title": "" }, { "docid": "5354bbda14f2ea18e35be34043dd9310", "score": "0.5626214", "text": "public function getAuthenticateUrl(OAuthToken $requestToken)\n {\n return sprintf('%s/oauth/authenticate?oauth_token=%s', $this->getUrl(), $requestToken->getKey());\n }", "title": "" }, { "docid": "e668e0a2f6c57068ef07fa4fc110eb14", "score": "0.5625221", "text": "public function create_url( string $url ) {\n\n\t\t\t// Let's create a nonce to populate $nonce.\n\t\t\t$this->create_nonce();\n\t\t\t$url = wp_nonce_url( $url, $this->get_action(), $this->get_request_name() );\n\t\t\t$this->set_url( $url );\n\t\t\treturn $this->get_url();\n\n\t\t}", "title": "" }, { "docid": "83b331cef03c3940e32fcf3c55a0c6b0", "score": "0.55994", "text": "public function getAuthorizeUrl(): string\n {\n $requestToken = $this->getRequestToken();\n $requestToken = is_string($requestToken) ? $requestToken : $requestToken['oauth_token'];\n return $this->oauth_authorize_url . '?oauth_token=' . urlencode($requestToken);\n }", "title": "" }, { "docid": "6f3d8bf01327086d03141d0b65eb0dbe", "score": "0.559669", "text": "public function createUrl($uri = '/')\n {\n if (!isset($this->urlBase)) {\n $ssl = $this->isSSL();\n $protocol = 'http' . (($ssl) ? 's' : '');\n\n $host = $this->host;\n if (strpos($host, ':') === false) {\n $port = $this->serverData['SERVER_PORT'];\n $port = ((!$ssl && $port == '80') || ($ssl && $port == '443')) ? '' : ':' . $port;\n $host = $this->host . $port;\n }\n\n $this->urlBase = $protocol . '://' . $host;\n }\n\n if ($uri !== '' && strpos($uri, '/') === false) {\n $uri = '/' . $uri;\n }\n\n return $this->urlBase . $uri;\n }", "title": "" }, { "docid": "952fb831057deb6197eafb583ccbc199", "score": "0.55964756", "text": "public function url()\n {\n return '/login';\n }", "title": "" }, { "docid": "e39e818be62ea07d841ca88c67580e0e", "score": "0.5591762", "text": "public function getRedirectUrl(): string\n {\n // prepare payload\n $payload = [\n 'iat' => time(), // to make sure this token will not last forever\n 'role' => $this->determineRole(),\n ];\n\n // add user identification properties\n foreach ($this->attributeMapping as $prop) {\n $payload[$prop] = $this->$prop;\n }\n\n if ($this->instanceId) {\n $payload['instanceId'] = $this->instanceId;\n }\n\n $token = JWT::encode($payload, $this->jwtSecret, \"HS256\");\n return $this->uri . '?token=' . urlencode($token);\n }", "title": "" }, { "docid": "6acefbe037ff7ee70bcdbdff5ba18e01", "score": "0.5578559", "text": "protected function getUrlLogin() {\r\n return $_SERVER['SCRIPT_NAME'] . '/login';\r\n }", "title": "" }, { "docid": "2017f07e42ff5407bdb034a0143d6f6f", "score": "0.55729324", "text": "private function CreateUrl() {\n return $this->_url . $this->_citiyId .\".xml\";\n }", "title": "" }, { "docid": "4467b0900dca0753ae720a76599b5883", "score": "0.5569632", "text": "private function buildLoginUri()\n {\n return CompanionRequest::SQEX_AUTH_URI .'?'. http_build_query([\n 'client_id' => 'ffxiv_comapp',\n 'lang' => 'en-gb',\n 'response_type' => 'code',\n 'redirect_uri' => $this->buildCompanionOAuthRedirectUri(),\n ]);\n }", "title": "" }, { "docid": "269e8513ef6059a712ab2b99440246aa", "score": "0.5565085", "text": "public function buildAuthorizationURL($authEndpoint, $domain, $client)\n {\n $domain = $client->normalizeMeURL($domain);\n $state = bin2hex(openssl_random_pseudo_bytes(16));\n session(['state' => $state]);\n $redirectURL = config('app.url') . '/indieauth';\n $clientId = config('app.url') . '/notes/new';\n $scope = 'post';\n $authorizationURL = $client->buildAuthorizationURL(\n $authEndpoint,\n $domain,\n $redirectURL,\n $clientId,\n $state,\n $scope\n );\n\n return $authorizationURL;\n }", "title": "" }, { "docid": "01088413de02bf55fe67d6ac1d55fdb9", "score": "0.5563999", "text": "public function access_url( $mode = 'subscribe' ) {\n\t\tglobal $wp;\n\t\t$permalink = get_permalink();\n\t\tif ( empty( $permalink ) ) {\n\t\t\t$permalink = add_query_arg( $wp->query_vars, home_url( $wp->request ) );\n\t\t}\n\n\t\t$login_url = $this->get_rest_api_token_url( $this->get_site_id(), $permalink );\n\t\treturn $login_url;\n\t}", "title": "" }, { "docid": "43a5e64d21e9f2a57321214a17b1c704", "score": "0.55606747", "text": "function makeUri($token) {\n $label = isset($token->issuerExt) ? $token->issuerExt . ':' . $token->label: $token->label;\n $baseUri = 'otpauth://' . urlencode(strtolower($token->type)) . '/' . urlencode($label);\n $params = [\n 'secret' => encodeSecretBytes($token->secret),\n 'issuer' => isset($token->issuerInt) ? $token->issuerInt : $token->issuerExt,\n 'algorithm' => $token->algo,\n 'digits' => $token->digits,\n 'period' => $token->period,\n ];\n return $baseUri . '?' . http_build_query($params);\n}", "title": "" }, { "docid": "fb81412de74fec5fe8904c319c18ffdf", "score": "0.55448294", "text": "public function getAuthoriseUrl()\n {\n $clientId = $this->scopeConfig->getValue(\n \\Dotdigitalgroup\\Email\\Helper\\Config::XML_PATH_CONNECTOR_CLIENT_ID\n );\n\n //callback uri if not set custom\n $redirectUri = $this->getRedirectUri();\n $redirectUri .= 'connector/email/callback';\n\n $adminUser = $this->_sessionModel->getUser();\n //query params\n $params = array(\n 'redirect_uri' => $redirectUri,\n 'scope' => 'Account',\n 'state' => $adminUser->getId(),\n 'response_type' => 'code'\n );\n\n $authorizeBaseUrl = $this->_objectManager->create(\n 'Dotdigitalgroup\\Email\\Helper\\Config'\n )->getAuthorizeLink();\n $url = $authorizeBaseUrl . http_build_query($params)\n . '&client_id=' . $clientId;\n\n return $url;\n }", "title": "" }, { "docid": "c670a201b29002a6b65020276f4b4d4a", "score": "0.5541821", "text": "function getAuthUrl()\n {\n if ($this->state() == 'requesting-auth') {\n return $this->client->authorizeUrl($this->state->oauth_token);\n } else {\n // TRANS: Server exception thrown when requesting a Yammer authentication URL while in an incorrect state.\n throw new ServerException(_m('Cannot get Yammer auth URL when not in requesting-auth state!'));\n }\n }", "title": "" }, { "docid": "1c57199a904d71b850a94a7a719f480d", "score": "0.55376625", "text": "public function makeAuthHeader();", "title": "" }, { "docid": "12dd3cfb55c558ef7c04e1d629f5c6be", "score": "0.55284566", "text": "private static function getOAuthDeclareEndpoint()\r\n {\r\n return self::$instance->getUrlProd().'/auth';\r\n }", "title": "" }, { "docid": "45400141d1dbf9364a06d2dcfae83db9", "score": "0.55187416", "text": "private function getAuthorizeUrl()\n {\n return $this->authorize_url;\n }", "title": "" }, { "docid": "d49408486b4b24ab0d134073bdadfce1", "score": "0.55175227", "text": "static function generateAuthSubRequestLink($nextUrl = null){\n\t\t$scope = 'http://gdata.youtube.com';\n\t\t$secure = false;\n\t\t$session = true;\n\n\t\tif (!$nextUrl) {\n\t\t\tself :: generateUrlInformation($_GET['page']);\n\t\t\t$nextUrl = $_SESSION['operationsUrl'];\n\t\t}\n\n\t\t$url = Zend_Gdata_AuthSub::getAuthSubTokenUri($nextUrl, $scope, $secure, $session);\n\t\techo '<a href=\"' . $url\n\t\t\t. '\"><strong>Click here to authenticate with YouTube</strong></a>';\n\t}", "title": "" }, { "docid": "81b6f2f582a0cefd2ef05551cf37f709", "score": "0.5512764", "text": "public function getBaseAuthorizationUrl()\n {\n return 'https://rocketbeans.tv/oauth2/authorize';\n }", "title": "" }, { "docid": "1b17ed39b328a875b6d65143bbed3103", "score": "0.5500682", "text": "function generateAuthotentication($url, $attributes){\r\n\t\t\t\r\n\t\t\t$attributesExtras = array(\r\n\t\t\t\t'shopid'\t\t=>$this->shopeeShopId, \r\n\t\t\t\t'partner_id'\t=>$this->shopeePartnerId, \r\n\t\t\t\t'timestamp'\t\t=>$this->shopeeGetTimeStamp());\r\n\t\t\t\r\n\t\t\tif(is_array($attributes))\r\n\t\t\t\tforeach($attributes as $k=>$v){\r\n\t\t\t\t\t$attributesExtras[$k] = $v;\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t$attributesExtrasJSON = json_encode($attributesExtras);\r\n\t\t\t\r\n\t\t\t$this->dataPostJson = $attributesExtrasJSON;\r\n\r\n\t\t\t$this->contentLength = strlen($this->dataPostJson);\r\n\r\n\t\t\t$strConcat = $url.'|'.$attributesExtrasJSON;\r\n\t\t\t\r\n\t\t\t$hexHash = hash_hmac('sha256', $strConcat, $this->shopeeSecretKey);\r\n\t\t\treturn $hexHash;\r\n\t\t}", "title": "" }, { "docid": "c665be74d542775fb7387b407f837f89", "score": "0.54968727", "text": "public function getLoginUrl()\n {\n $url = $this->getOpenIdValue('authorization_endpoint');\n $params = [\n 'scope' => 'openid',\n 'response_type' => 'code',\n 'client_id' => $this->getClientId(),\n 'redirect_uri' => $this->callbackUrl,\n 'state' => $this->getState(),\n ];\n\n return $this->buildUrl($url, $params);\n }", "title": "" }, { "docid": "e4b48f5c828fabda556fbf233d33a779", "score": "0.54901814", "text": "abstract function getLoginURL($service);", "title": "" }, { "docid": "b6218a74a8f67717367121b9fe611916", "score": "0.54873985", "text": "public function getLoginURI() {\n return '/oauth/google/login/';\n }", "title": "" }, { "docid": "c9d674e9bf4c38f4e6324bfbaa7331e7", "score": "0.5485948", "text": "private function _get_authorization_url($return_to)\n {\n $antiforgery_id = $this->_new_guid();\n\n // Save the nonce and return_to values to flash data\n $_SESSION['aad_auth_nonce'] = $antiforgery_id;\n $_SESSION['aad_auth_return_to'] = $return_to;\n $this->CI->session->mark_as_flash(array('aad_auth_nonce', 'aad_auth_return_to'));\n\n $auth_url = $this->settings['authorization_endpoint'] . '?' .\n http_build_query(\n array(\n 'scope' => 'openid',\n 'response_type' => 'code',\n 'client_id' => $this->settings['client_id'],\n 'redirect_uri' => $this->settings['redirect_uri'],\n 'state' => $antiforgery_id,\n 'nonce' => $antiforgery_id,\n 'domain_hint' => $this->settings['org_domain_hint'],\n 'resource' => $this->settings['resource_uri'],\n )\n );\n\n return $auth_url;\n }", "title": "" }, { "docid": "31e271c6866a24b8a1f156066b8e1343", "score": "0.54845786", "text": "public function authorizationEndpoint() {\n\t\t$endpoint = $this->getset('authorization_endpoint', func_get_args());\n\t\treturn $this->validateEndpoint($endpoint ?: self::URI_AUTHORIZE);\n\t}", "title": "" }, { "docid": "a7b0e367cc116a2b67bff71656520f64", "score": "0.54802597", "text": "abstract protected function url();", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "904b5d35bc995d058f36abdf58e7f26d", "score": "0.0", "text": "public function show(Material $material)\n {\n return view('admin.materials.show',['material',$material]);\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": "" } ]
f35d2a754efc1dff575350e221522ffd
Get the item price w/ tax quantity
[ { "docid": "de1e87a3eef53ff8867d480aae88e392", "score": "0.70190525", "text": "public function taxed_price_subtotal()\n\t{\n\t\treturn $this->core->round(($this->tax() * $this->quantity()) + ($this->price() * $this->quantity()));\n\t}", "title": "" } ]
[ { "docid": "e3197893040a9553c79d60f8c75bea3f", "score": "0.73871917", "text": "public function get_price_including_tax($qty = 1, $price = '')\n {\n }", "title": "" }, { "docid": "d5e689d16bdc9d5b98b322377a47474e", "score": "0.7271495", "text": "public function tax()\n {\n return (float)array_sum(\n array_map(function (CartItem $item) {\n return $item->getTotalTax();\n }, $this->items)\n );\n }", "title": "" }, { "docid": "c8a710bc42b0c119fd28a822e11a1f8b", "score": "0.72625357", "text": "public function getItemPrice() : float{\n\t\treturn($this->itemPrice);\n\t}", "title": "" }, { "docid": "e0f7a0591afc6b3b1d19be438ce98f11", "score": "0.7253015", "text": "public function priceTax()\n {\n return $this->price()->add($this->tax());\n }", "title": "" }, { "docid": "d3c96dc3c7c5947b572ef440fc0d5dc8", "score": "0.71939504", "text": "public function getShowPriceWithTax();", "title": "" }, { "docid": "4a27af59d170fb440dcd18a3442c79f5", "score": "0.719306", "text": "public function getTax(): float\n {\n $tax = 0.0;\n foreach ($this->data() as $item) {\n $tax += (float)$item['quantity'] * ((float)$item['tax'] ?? 0);\n }\n return $tax;\n }", "title": "" }, { "docid": "cc9908c46928a91062e8ec266631a092", "score": "0.7186976", "text": "public function getTax(): float;", "title": "" }, { "docid": "abce2f1fcead90d0b8c69bac6125d087", "score": "0.7185799", "text": "public function tax()\n {\n return $this->price()->multiply($this->taxRate / 100);\n }", "title": "" }, { "docid": "9cba3af7b61e4e4b54fb69c29d1ff6c2", "score": "0.71672237", "text": "public function getItemPrice()\n {\n return $this->itemPrice;\n }", "title": "" }, { "docid": "a49bee556896caae8cb7bb7ff696db92", "score": "0.714525", "text": "public function getPriceWithTax() {\n (float)$price = $this->Price;\n (float)$tax = $this->Tax;\n\n return number_format($price + $tax, 2);\n }", "title": "" }, { "docid": "e4e670b8e52c25df272a66a79aedb140", "score": "0.71310246", "text": "public function taxed_price()\n\t{\n\t\treturn $this->core->round( $this->tax() + $this->price() );\n\t}", "title": "" }, { "docid": "c7a6ab68750de7d7a65e98b4163fc0a3", "score": "0.7120022", "text": "public function getTaxAmount();", "title": "" }, { "docid": "c7a6ab68750de7d7a65e98b4163fc0a3", "score": "0.7120022", "text": "public function getTaxAmount();", "title": "" }, { "docid": "dce206f3a8588dbc035cb3bd79054023", "score": "0.7073944", "text": "public function itemsTaxedTotal();", "title": "" }, { "docid": "0ffc8e1462ad479fb98a1a384cc7c324", "score": "0.707371", "text": "function getExtrasPrice(): float;", "title": "" }, { "docid": "3590c0882587a3ab980581a6707b0420", "score": "0.7001525", "text": "public function getTax() {\n\t\t$tax = 0.00;\n\t\t$taxAddress = @$_SESSION['cart_checkout']['address']['shipping_address'];\n\t\tforeach ($this->getCartItems() as $item) {\n\t\t\t$taxClass = $item->getProduct()->getTaxClass();\n\t\t\t$taxRate = CartTaxRate::getTaxRate($taxClass, $taxAddress);\n\t\t\t$rate = $taxRate->getRate();\n\t\t\t$tmpTax = $rate * ($item->getPrice() * $item->getQuantity());\n\t\t\t$tmpTax = ceil($tmpTax);\n\t\t\t$tmpTax = $tmpTax / 100;\n\t\t\t$tax += $tmpTax;\n\t\t}\n\t\treturn $this->round($tax);\t\t\n\t}", "title": "" }, { "docid": "6ed9ac2b7a64c8a2b0b24c1157c5672d", "score": "0.6997887", "text": "function tep_calculate_tax($price, $tax) {\n global $currencies;\n\n return tep_round($price * $tax / 100, $currencies->currencies[DEFAULT_CURRENCY]['decimal_places']);\n }", "title": "" }, { "docid": "60118ffe79843634c5787791a786e29e", "score": "0.6959289", "text": "public function taxTotal()\n {\n return $this->tax()->multiply($this->qty);\n }", "title": "" }, { "docid": "eb8fba87c32f047aba67ea6e5a527a5e", "score": "0.69571483", "text": "public function getItemsTotalTax() {\r\n\r\n $total = 0.00;\r\n\r\n if (empty($this->items)) {\r\n\r\n return $total;\r\n }\r\n\r\n /* @var $item \\Openapi\\Phalcon\\Plugins\\PayPal\\Checkout\\Types\\ItemType */\r\n foreach ($this->items as $item) {\r\n\r\n $total += $item->calculateItemTaxTotal();\r\n }\r\n\r\n return $total;\r\n }", "title": "" }, { "docid": "64a135874ba51862bc91e5d767d928c9", "score": "0.6951959", "text": "function cart_tax()\n\t{\n\t\treturn $this->view_formatted_number($this->_calculate_tax());\n\t}", "title": "" }, { "docid": "8ea0742b8c7eae308cb79c89a032ab80", "score": "0.69472545", "text": "function findTotalAmount($qty, $unitprice, $tax)\n{\n\t$qpt = round($qty*$unitprice+$tax, 2);\n\treturn $qpt;\n}", "title": "" }, { "docid": "57fe8d9ae95b2713da9028b4f5fc99b5", "score": "0.69356436", "text": "public function tax(): float\n {\n $tax = 0;\n foreach ($this->cartItems as $item) {\n /** @var CartItem $item */\n $tax += $item->tax();\n }\n return $tax;\n }", "title": "" }, { "docid": "3d5e02bf3a8888b2ad53448e0a4d1c6c", "score": "0.69047797", "text": "abstract public function getDollarPrice(): float;", "title": "" }, { "docid": "63f947e3f91ecdfe8157080f1b0efac6", "score": "0.6899682", "text": "function osc_calculate_tax($price, $tax) {\n return $price * $tax / 100;\n }", "title": "" }, { "docid": "a7448e4efcd8a97ce753d14a1df414cd", "score": "0.6871847", "text": "public function getItemFinalPriceInclTax(Mage_Sales_Model_Order_Item $item)\n {\n $price = $item->getBaseRowTotal() + $item->getBaseTaxAmount() + $item->getBaseHiddenTaxAmount() - $item->getBaseDiscountAmount();\n return $price;\n }", "title": "" }, { "docid": "123cab361733354cdf599fc7d1afa26d", "score": "0.6859603", "text": "public function getTaxTotalPrice()\n {\n \n \n\n }", "title": "" }, { "docid": "f73a26e9b9dd2368a508ac99a782681c", "score": "0.68561155", "text": "function pmprogst_pmpro_tax($tax, $values, $order)\r\n{ \t\r\n\t$tax = round((float)$values[price] * 0.05, 2);\t\t\r\n\treturn $tax;\r\n}", "title": "" }, { "docid": "55dde2090c338e0ccf764e668d501f8b", "score": "0.68434024", "text": "public function get_price()\n {\n return $this->format($this->data['line_subtotal'] / $this->get_quantity());\n }", "title": "" }, { "docid": "6358be33ab1c04f758f7b003293a503f", "score": "0.6818258", "text": "public function getTaxableAmount();", "title": "" }, { "docid": "c760718baaf93e8a8363c627a5dfb458", "score": "0.6817889", "text": "public function get_cart_tax()\n {\n }", "title": "" }, { "docid": "ec8279ad9e45334d59b043a09e13e727", "score": "0.68021184", "text": "public function get_item_shipping_tax_amount($item)\n {\n }", "title": "" }, { "docid": "62c4e636b7ed49609763bdce13c59397", "score": "0.6786629", "text": "function taxItem( $itemDetails )\r\n{\r\n\t# Type sanity\r\n\tif( ! isset( $itemDetails ) || ! is_array( $itemDetails )\r\n\t\t|| ! isset( $itemDetails[ ITEM_EXEMPT ] ) || ! is_bool( $itemDetails[ ITEM_EXEMPT ] )\r\n\t\t|| ! isset( $itemDetails[ ITEM_IMPORTED ] ) || ! is_bool( $itemDetails[ ITEM_IMPORTED ] )\r\n\t\t|| ! isset( $itemDetails[ ITEM_PRICE ] ) || ! is_int( $itemDetails[ ITEM_PRICE ] )\r\n\t)\r\n\t{\r\n\t\tthrow new Exception ( 'taxItem() data missing or invalid type' ); \r\n\t}\r\n\r\n\t$price = $itemDetails[ ITEM_PRICE ];\r\n\t$tax = 0;\r\n\tif( $price )\r\n\t{\r\n\t\tif( ! $itemDetails[ ITEM_EXEMPT ] )\r\n\t\t{\r\n\t\t\t$tax += $price * BASIC_TAX;\r\n\t\t}\r\n\t\tif( $itemDetails[ ITEM_IMPORTED ] )\r\n\t\t{\r\n\t\t\t$tax += $price * IMPORT_DUTY;\r\n\t\t}\r\n\r\n\t\t# round up to nearest 5 pence/cent\r\n\t\t$tax = (int)( ceil( $tax / 5.0 ) * 5.0 );\r\n\t}\r\n\treturn $tax;\r\n}", "title": "" }, { "docid": "5cd0e91d4d21b7851ce4bef8200ba3fe", "score": "0.677533", "text": "function df_qty($p):float {\n\tdf_assert_qty_supported($p);\n\t# 2019-11-21 https://devdocs.magento.com/guides/v2.3/inventory/reservations.html#checkout-services\n\tif (!df_msi()) {\n\t\t$r = df_stock_r()->getStockItem(df_product_id($p))->getQty();\n\t}\n\telse {\n\t\t$i = df_o(IQty::class); /** @var IQty|Qty $i */\n\t\t$sku = $p->getSku(); /** @var string $sku */\n\t\t$r = array_sum(df_map(df_msi_stock_ids($p), function(int $sid) use($i, $sku):float {return $i->execute(\n\t\t\t$sku, $sid\n\t\t);}));\n\t}\n\treturn $r;\n}", "title": "" }, { "docid": "762320cc853f0c92db9d85809beac42c", "score": "0.6756535", "text": "public function getPrice(): float;", "title": "" }, { "docid": "ff691ca44241be4299a4b2cbe2c6aca4", "score": "0.6734357", "text": "public function getShippingTaxAmount();", "title": "" }, { "docid": "f5d60826dc4dd5bab9251bc9f8acf8e0", "score": "0.67253196", "text": "public function total()\n {\n return $this->priceTax()->multiply($this->qty);\n }", "title": "" }, { "docid": "a79b683bd7826cd122ba99280a732276", "score": "0.6704964", "text": "function calculate_tax($cart=array())\n{\n $price = 0.0;\n if(is_array($cart))\n {\n foreach($cart as $prodid => $qty)\n { \n $query = \"select item_price, taxcode from products where idcode='$prodid'\";\n $result = mysql_query($query);\n if ($result)\n {\n $row=mysql_fetch_array($result);\n $item_price = $row[\"item_price\"];\n $taxcode = $row[\"taxcode\"];\n $price +=(($item_price*$qty)*$taxcode);\n }\n }\n }\n return $price;\n}", "title": "" }, { "docid": "4437d7db8cc6dcd15102a8f0dc910dad", "score": "0.66948867", "text": "protected function get_item_costs_by_tax_class()\n {\n }", "title": "" }, { "docid": "aeff46eb9aa710416eb155b539859937", "score": "0.6692705", "text": "public function tax()\n {\n $product = $this->getProduct();\n\n $rate = new LocationTaxRate();\n\n $tax = $this->money();\n\n if (!$product->taxable || $product->free) {\n return $tax;\n }\n\n $value = $this->value();\n $discount = $this->discount();\n\n $value = $value->subtract($discount);\n $tax = $value->multiply($rate->float());\n\n return $tax;\n }", "title": "" }, { "docid": "caf5a014b75b8923471a1d98152017d9", "score": "0.66697323", "text": "public function getTaxRate();", "title": "" }, { "docid": "caf5a014b75b8923471a1d98152017d9", "score": "0.66697323", "text": "public function getTaxRate();", "title": "" }, { "docid": "1ce8d7d750fc904a7d4e3a1f4bf36d97", "score": "0.6667511", "text": "public function getPrice() : float\n\t\t{\n\t\t\tif ($this->_quantity == 0) { return 0; }\n\t\t\t\n\t\t\t//NOTE: we could add more kind of discounts in the future as percentage discounts based on quantity (now we use free units based on quantity), etc.\n\t\t\t\n\t\t\t//First, tries to return the price with the items which are free when a quantity limit is reached (if any):\n\t\t\t$discountsPerQuantity = $this->_item->getDiscountsPerQuantity();\n\t\t\tif ($discountsPerQuantity instanceof DiscountsPerQuantity)\n\t\t\t{\n\t\t\t\t$itemsFree = $discountsPerQuantity->getDiscountPerQuantity($this->_quantity);\n\t\t\t\tif ($itemsFree != 0)\n\t\t\t\t{\n\t\t\t\t\t$price = ($this->_quantity - $itemsFree) * $this->_item->getNormalPrice();\n\t\t\t\t\treturn ($price < 0) ? 0 : $price;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Otherwise, returns the price (applying the percentage discount if any):\n\t\t\treturn $this->_quantity * ($this->_item->getNormalPrice() * ((100 - $this->_item->getDiscount()) / 100));\n\t\t}", "title": "" }, { "docid": "890c86471bd505da71a94bf7c44011bd", "score": "0.66591597", "text": "function item_price($id) {\n return $this->get_item($id,'price');\n }", "title": "" }, { "docid": "8f4eabe7a9ed41c72c3016ec68a23445", "score": "0.66574603", "text": "protected function getOrderItemsTaxAndTotals()\n {\n $orderData = [];\n $sendLineItems = $this->config->get('payment_mpgs_hosted_checkout_send_line_items');\n if ($sendLineItems) {\n $this->load->model('catalog/product');\n foreach ($this->cart->getProducts() as $product) {\n $productModel = $this->model_catalog_product->getProduct($product['product_id']);\n\n $items = [];\n if ($productModel['manufacturer']) {\n $items['brand'] = utf8_substr($productModel['manufacturer'], 0, 127);\n }\n\n $description = [];\n foreach ($product['option'] as $option) {\n if ($option['type'] != 'file') {\n $value = isset($option['value']) ? $option['value'] : '';\n } else {\n $uploadInfo = $this->model_tool_upload->getUploadByCode($option['value']);\n\n if ($uploadInfo) {\n $value = $uploadInfo['name'];\n } else {\n $value = '';\n }\n }\n $description[] = $option['name'] . ':' . (utf8_strlen($value) > 20 ? utf8_substr($value, 0,\n 20) . '..' : $value);\n }\n if (!empty($description)) {\n $items['description'] = utf8_substr(implode(', ', $description), 0, 127);\n } elseif ($product['model']) {\n $items['description'] = utf8_substr($product['model'], 0, 127);\n }\n $items['name'] = utf8_substr($product['name'], 0, 127);\n $items['quantity'] = $product['quantity'];\n if ($product['model']) {\n $items['sku'] = utf8_substr($product['model'], 0, 127);\n }\n $items['unitPrice'] = round($product['price'], 2);\n\n $orderData['item'][] = $items;\n }\n }\n\n /** Tax, Shipping, Discount and Order Total */\n $totals = [];\n $taxes = $this->cart->getTaxes();\n $total = 0;\n\n // Because __call can not keep var references so we put them into an array.\n $totalData = [\n 'totals' => &$totals,\n 'taxes' => &$taxes,\n 'total' => &$total\n ];\n\n $this->load->model('setting/extension');\n\n // Display prices\n $sorOrder = [];\n $results = $this->model_setting_extension->getExtensions('total');\n\n foreach ($results as $key => $value) {\n $sorOrder[$key] = $this->config->get('total_' . $value['code'] . '_sort_order');\n }\n\n array_multisort($sorOrder, SORT_ASC, $results);\n\n foreach ($results as $result) {\n if ($this->config->get('total_' . $result['code'] . '_status')) {\n $this->load->model('extension/total/' . $result['code']);\n\n // We have to put the totals in an array so that they pass by reference.\n $this->{'model_extension_total_' . $result['code']}->getTotal($totalData);\n }\n\n $sorOrder = [];\n foreach ($totals as $key => $value) {\n $sorOrder[$key] = $value['sort_order'];\n }\n\n array_multisort($sorOrder, SORT_ASC, $totals);\n }\n\n $skipTotals = [\n 'sub_total',\n 'total',\n 'tax'\n ];\n\n $formattedTotal = round($total, 2);\n $subTotal = 0;\n $tax = 0;\n $taxInfo = [];\n $shipping = 0;\n\n foreach ($totals as $key => $value) {\n $formattedValue = round($value['value'], 2);\n\n if ($value['code'] == 'sub_total') {\n $subTotal += $formattedValue;\n }\n\n if ($value['code'] == 'tax') {\n $tax += $formattedValue;\n $taxInfo[] = [\n 'amount' => $formattedValue,\n 'type' => $value['title']\n ];\n }\n\n if (!in_array($value['code'], $skipTotals)) {\n $shipping += $formattedValue;\n }\n }\n\n $finalTotal = $subTotal + $tax + $shipping;\n if ($finalTotal == $formattedTotal) {\n $this->orderAmount = $formattedTotal;\n $orderData['amount'] = $formattedTotal;\n if ($sendLineItems) {\n $orderData['itemAmount'] = $subTotal;\n $orderData['shippingAndHandlingAmount'] = $shipping;\n $orderData['taxAmount'] = $tax;\n }\n }\n\n /** Order Tax Details */\n if (!empty($taxInfo) && $sendLineItems) {\n $orderData['tax'] = $taxInfo;\n }\n\n return $orderData;\n }", "title": "" }, { "docid": "b362f4738fcdc5e19275c8e2f599e776", "score": "0.6654771", "text": "public function getAmountExclTax();", "title": "" }, { "docid": "9cc001cd7abe4ca3e00ab30664972871", "score": "0.6651389", "text": "public function getUnitPrice(): float;", "title": "" }, { "docid": "9cc001cd7abe4ca3e00ab30664972871", "score": "0.6651389", "text": "public function getUnitPrice(): float;", "title": "" }, { "docid": "83118e91b1aca84c62ca24b64c89ed13", "score": "0.66458505", "text": "public function getShipmentPrice()\n { \n //get amount of every item\n return $this->_getItemAmount(); \n }", "title": "" }, { "docid": "d71c2f8f895b6fd8fba8f9f24bb89104", "score": "0.6645567", "text": "public function priceIncludesTax()\n {\n return $this->taxHelper->priceIncludesTax($this->getItem()->getStoreId());\n }", "title": "" }, { "docid": "02f8a8ca81f0a853493bc46dc0946752", "score": "0.66339034", "text": "public function get_total_ex_tax()\n {\n }", "title": "" }, { "docid": "40905ace394a72ea213b74e7dfb5b6d2", "score": "0.6623098", "text": "public function get_cart_item_quantities()\n {\n }", "title": "" }, { "docid": "1a79c62fa302790e10b46e9f791f3085", "score": "0.6620811", "text": "public function itemsTotal($withTax = false);", "title": "" }, { "docid": "1179d469b512e8e41a67b0b5aa753cbc", "score": "0.6617784", "text": "function getUnitPrice();", "title": "" }, { "docid": "8ce175de2dfde4a9c66d237d23941ec2", "score": "0.6609085", "text": "public function price()\n {\n return (float)$this->get('mt');\n }", "title": "" }, { "docid": "546c1d9fda3430aceef71e03d84509dc", "score": "0.6604486", "text": "public function price()\n {\n // Defer to the quantity presenter\n return $this->entity->quantity->present()->price;\n }", "title": "" }, { "docid": "55fb5d966db1aac7b96e6466cc9fbd2c", "score": "0.66041416", "text": "public function getTotalTaxAmount();", "title": "" }, { "docid": "f8c08ea8051b9fdb26d17ac56d013556", "score": "0.66027266", "text": "public function tax()\n {\n return config('shopping.taxrate') * ( static::subtotal() - static::discount() );\n }", "title": "" }, { "docid": "0faeea81fd4d7faad0cf294570356b77", "score": "0.65957254", "text": "public function getQty();", "title": "" }, { "docid": "84ff9469079fbf82e53d2c0f1b4ef020", "score": "0.65927684", "text": "function oos_calculate_tax($price, $tax)\n{\n\n if ($tax > 0) {\n return $price * $tax / 100;\n } else {\n return 0;\n }\n\n}", "title": "" }, { "docid": "b5a66a357f9f47653670987933707933", "score": "0.6590151", "text": "public function get_total_tax()\n {\n }", "title": "" }, { "docid": "79ec84d5c2e7ddee48cad66281d5a209", "score": "0.6589007", "text": "function getItemSubtotal($ItemQuantity, $ItemPrice)\r\n{\r\n $itemSubTotal = $ItemQuantity * $ItemPrice;\r\n return $itemSubTotal; // cast as currency\r\n}", "title": "" }, { "docid": "317fbd468a91079c6e5a1ddf11905552", "score": "0.6585464", "text": "function getSubTotal(){\n\t\t$subtotal = $this->Quantity * $this->getItem()->Price;\n\t\treturn $subtotal;\n\t}", "title": "" }, { "docid": "bfc54b3b4fb5a7db8d4913a8431b6264", "score": "0.65733176", "text": "public function get_price_excluding_tax($qty = 1, $price = '')\n {\n }", "title": "" }, { "docid": "74a74bc4adcb37b7d91d8172e74f38aa", "score": "0.6560024", "text": "function wc_get_price_including_tax($product, $args = array())\n {\n }", "title": "" }, { "docid": "2df44a6cd3534715f00642cd5a03dc6e", "score": "0.65478057", "text": "public function getVatTaxAmount();", "title": "" }, { "docid": "66e051369e6620eb9dcad765eb9e034c", "score": "0.6507543", "text": "public function price(): float\n {\n return 6.5;\n }", "title": "" }, { "docid": "0eeedf140b3b02e0ed9b7c776da40b2c", "score": "0.64980716", "text": "function getPriceWithNoTaxe()\n {\n $this->isProcessed();\n $currency_rate=$this->currency->get('rate',1);\n return $this->price_with_no_taxe * $currency_rate;\n }", "title": "" }, { "docid": "002032d2ef768f1a9d467d6b24e62f9a", "score": "0.64938533", "text": "public function getTierPrice($item) {\n\t\t\n $productInfo = $this->getProductInfoByCode($item['product_code']);\n\t\t$tierPrice = $productInfo['tier_price']; // Tier Price of Product\n\t\t$tierQty = $productInfo['tier_qty']; \n\t\t\t\n\t\tif(!empty($tierQty)) {\n\t\t\t$rowtotal = ( floor($item['qty'] / $tierQty) * $tierPrice ) + (($item['qty'] % $tierQty) * $item['price']);\n\t\t} else {\n\t\t\t$rowtotal = $item['qty'] * $item['price'];\n\t\t}// end: if\n return $rowtotal;\n\t\t\n }", "title": "" }, { "docid": "fe803b11565aabc801ee30c2223d05b2", "score": "0.6492506", "text": "public function getTotalPrice(){\n $total = 0;\n foreach($this->items as $k=>$v){\n $total += ($v['price']*$v['qty']);\n };\n return $total;\n }", "title": "" }, { "docid": "addd78bcaba3371d6c35216ef0e4d49b", "score": "0.648692", "text": "public function taxed_base_price()\n\t{\n\t\treturn $this->core->round( $this->base_tax() + $this->base_price() );\n\t}", "title": "" }, { "docid": "86e786f64d2f0d40b4651613b90005ef", "score": "0.6485917", "text": "public function item_price($item, $order)\n {\n if (!isset($item['line_subtotal']) || !isset($item['line_subtotal_tax']) || !isset($item['qty'])) {\n return;\n }\n\n $line_subtotal = $this->invoiceOptions['woo_pdf_inclusive_tax'] ? ((double) $item['line_subtotal'] + (double) $item['line_subtotal_tax']) : (double) $item['line_subtotal'];\n\n $price = $line_subtotal / (int) $item['qty'];\n\n if ((((double) $price) * (int) $item['qty']) == (double) $this->row_total($item, $this->orderData)) {\n return $price;\n }\n else {\n return $price;\n }\n }", "title": "" }, { "docid": "41934db1500406b1dc8150117fe173ab", "score": "0.6485531", "text": "public function getTaxedPrice()\n {\n return $this->taxedPrice instanceof TaxedPriceBuilder ? $this->taxedPrice->build() : $this->taxedPrice;\n }", "title": "" }, { "docid": "eb40501e4069104698743626017b2085", "score": "0.6478589", "text": "public function taxed_base_price_subtotal()\n\t{\n\t\treturn $this->core->round( $this->base_tax() + $this->base_price() ) * $this->quantity();\n\t}", "title": "" }, { "docid": "547c56b478cc4440cc8425f93471aac4", "score": "0.64750654", "text": "public function getTax() {\n $config = SiteConfig::current_site_config();\n (float)$price = $this->Price;\n (float)$rate = $config->TaxRate;\n\n if($rate > 0)\n (float)$tax = ($price / 100) * $rate; // Get our tax amount from the price\n else\n (float)$tax = 0;\n\n return number_format($tax, 2);\n }", "title": "" }, { "docid": "e50bd49f9a841f5d96d6686cd2ca76c7", "score": "0.6465649", "text": "public function get_price()\n {\n return $this->fee->amount;\n }", "title": "" }, { "docid": "f36e39880ed7de59a8e06da456d161a7", "score": "0.64582354", "text": "public function total_price()\n\t{\n\t\t$item_price = $this->price();\n\n\t\t// Round before multiplying.\n\t\t// Payment processors work only with 2 digits of precision.\n\t\t$item_price->amount(round($item_price->amount(), 2));\n\n\t\treturn $item_price->multiply_by($this->quantity);\n\t}", "title": "" }, { "docid": "e74c2b7accc2aa599634e21dcf3613f4", "score": "0.64567286", "text": "public function price_subtotal()\n\t{\n\t\treturn $this->core->round($this->price()) * $this->quantity();\n\t}", "title": "" }, { "docid": "9af011b32c53b967ae2dd2660c683143", "score": "0.6451888", "text": "public function getBasePrice();", "title": "" }, { "docid": "ffadf52bb08e499c3c891c243bf5065a", "score": "0.6442961", "text": "public function getUnitPrice();", "title": "" }, { "docid": "ffadf52bb08e499c3c891c243bf5065a", "score": "0.6442961", "text": "public function getUnitPrice();", "title": "" }, { "docid": "3fcbc16ec5120b694995b03e477ccfc3", "score": "0.64350927", "text": "public function get_cart_discount_tax_total()\n {\n }", "title": "" }, { "docid": "8f1038b7ac487af6d94426f157859945", "score": "0.64310515", "text": "public function getBaseCustomPrice();", "title": "" }, { "docid": "ca88a0056512756d15adc2414f1fd854", "score": "0.64287156", "text": "private function totalPrice()\n {\n return $this->subtotal + $this->otMultiplierAmount + $this->otMultiplierTax + $this->taxAmount;\n }", "title": "" }, { "docid": "870ccbeb7693e54885f2ba43f2a41e1d", "score": "0.6424598", "text": "public function getCalcQuantity();", "title": "" }, { "docid": "b7a1ea5a1a65dbca2a2be38d00ea09d9", "score": "0.6395829", "text": "public function get_line_tax($item)\n {\n }", "title": "" }, { "docid": "d6342281d19296119201644876d07693", "score": "0.63890225", "text": "public function getInvoicePrice(): float\n {\n return $this->getPrice();\n }", "title": "" }, { "docid": "175a91888f5e6edac515761d387b921d", "score": "0.63859946", "text": "private function get_item_tax($plugin, $cost)\n\t{\n\t\t$tax = $plugin->get_tax($cost, $this);\n\t\t\n\t\tif ($this->core->store->config('round_tax_only_on_subtotal'))\n\t\t{\n\t\t\treturn $tax; \n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->core->round($tax);\n\t\t}\n\t}", "title": "" }, { "docid": "6e89092c9c8e7c0c93acde5bf3b24729", "score": "0.63799983", "text": "public function getExternalTaxRate();", "title": "" }, { "docid": "64df9f01bda0a087469f571c6be0e3ae", "score": "0.6362184", "text": "protected function _getItemAmount()\n {\n $amount = 0;\n foreach ($this->_getShipment()->getItemsCollection()->getItems() as $item): \n if ((float) $item->getPrice()!=0):\n //Load Order Item\n $_order_item = Mage::getModel('sales/order_item')->load($item->getOrderItemId());\n /*\n * If the order includes tax, getPriceInclTax() returns the item price incl. tax, if not the price excludes tax\n */\n $_item_price = $_order_item->getPriceInclTax(); \n $amount += ((float) $_item_price * (float) $item->getQty());\n endif; \n endforeach;\n\n return $amount;\n }", "title": "" }, { "docid": "e4f54ecbeda868908365b93bef750c2b", "score": "0.6359877", "text": "function getOrderTotal($preTaxAmount)\r\n{\r\n global $decimalTaxRate;\r\n\r\n $decimalFactor = 1+ $decimalTaxRate;\r\n $withTaxAmount = $decimalFactor * $preTaxAmount;\r\n return $withTaxAmount;\r\n}", "title": "" }, { "docid": "1b7a8d296e7c05e57376e01551e038ac", "score": "0.6353462", "text": "public function getPrice()\n {\n return $this->scopeConfig->getValue('carriers/express/price', ScopeInterface::SCOPE_STORE);\n }", "title": "" }, { "docid": "4d992f8caab5257fdeb0186d55e86c1c", "score": "0.63512844", "text": "public function getTaxableAmount()\n {\n $amount = $this->quantity*$this->unit_final_price;\n\n if ( Configuration::isFalse('ENABLE_ECOTAXES') ) return $amount;\n\n if ( $this->line_type == 'service' ) return $amount;\n if ( $this->line_type == 'shipping' ) return $amount;\n\n if ( $this->product->ecotax_id <= 0 ) return $amount;\n\n if ( Configuration::isTrue('PRICES_ENTERED_WITH_ECOTAX') ) return $amount;\n \n // Apply Eco-Tax\n\n // Get rules\n // $rules = $product->getTaxRules( $this->taxingaddress, $this->customer );\n // Gorrino style, instead:\n $ecotax = $this->product->ecotax;\n\n // Apply rules\n // $document_line->applyTaxRules( $rules );\n // Gorrino style again\n $amount = $amount*(1.0+$ecotax->percent/100.0) + $ecotax->amount * $this->quantity;\n\n return $amount;\n }", "title": "" }, { "docid": "33c7e78a7ca2ab67bdb80db287f18b35", "score": "0.63455504", "text": "function getQuantity();", "title": "" }, { "docid": "f87ac6039028ee394f2f4e4c2f449561", "score": "0.6332", "text": "public function getTaxRate()\n {\n return 10;\n }", "title": "" }, { "docid": "53469ffb7c94cda5f84258253b7a6011", "score": "0.633002", "text": "public function get_cart_contents_tax()\n {\n }", "title": "" }, { "docid": "d5f129d43f9f91f945f930c56817b18f", "score": "0.6324734", "text": "abstract public function getPrice();", "title": "" }, { "docid": "d5f129d43f9f91f945f930c56817b18f", "score": "0.6324734", "text": "abstract public function getPrice();", "title": "" }, { "docid": "a15a0a983ad60d02b46f6c628339e16f", "score": "0.6324149", "text": "public function getPrice()\n {\n return $this->_get(self::KEY_PRICE);\n }", "title": "" }, { "docid": "65b058b668f694ab24dd9f1d911eca16", "score": "0.6323737", "text": "public function getTotal()\n {\n return $this->getQuantity()*$this->getItem()->getNetPrice();\n }", "title": "" }, { "docid": "d0121405ac086d38380ff1a8810343d0", "score": "0.6321915", "text": "public function get_item_tax($item, $round = \\true)\n {\n }", "title": "" } ]
4e3f7a1a118d97d060b461083738c54f
The actual allocation of memory for the guest
[ { "docid": "245e24e179046b3695ea68fd68e6c689", "score": "0.0", "text": "public function setCurrentMemory(int $allocation, string $unit = \"MiB\")\n {\n $this->currentMemory()->setValue($allocation)->setAttribute(\"unit\", $unit);\n return $this;\n }", "title": "" } ]
[ { "docid": "bf04f192a49a513ae63f5a3d9c564e79", "score": "0.7313007", "text": "public function allocation();", "title": "" }, { "docid": "10613dcf1453b6317c795cda8ca27e18", "score": "0.6682959", "text": "public function getRealMemoryUsage() {}", "title": "" }, { "docid": "4dd96abd06da2df1ddb836b4326d9d5a", "score": "0.6287717", "text": "function get_free_physical_mem_size()\n\t{\n\t\treturn $this->call(\"Debug.GetFreePhysMemSize\");\n\t}", "title": "" }, { "docid": "d25e30cc7e1c75c8617d0c88e784a847", "score": "0.6249028", "text": "private function getMemoryInfo()\n {\n $free_output = $this->conn->exec('free');\n return SshHelper::extractInfoFromFree($free_output);\n }", "title": "" }, { "docid": "314cf902399ce1a9bdf4f213fa9796d5", "score": "0.62087923", "text": "public static function startMemoryTest() {\n self::$startMemory = memory_get_usage(false);\n return self::$startMemory;\n }", "title": "" }, { "docid": "3212ed568c8eca8f6b52e6fdee5e50da", "score": "0.6114393", "text": "protected function reserveMemory()\n {\n $this->reservedMemory = str_repeat(' ', 10 * 1024);\n }", "title": "" }, { "docid": "86a0dae96c56fe03f7228723e091c0c6", "score": "0.60533243", "text": "function getMemory() {\n\t\t\tforeach(file('/proc/meminfo') as $ri) $m[strtok($ri, ':')] = strtok('');\n\t\t\t//$resultmem = 100 - round(($m['MemFree'] + $m['Buffers'] + $m['Cached']) / $m['MemTotal'] * 100);\n\t\t\t$MemTotal = ($m['MemTotal']/1024)/1024;\n\t\t\t$MemUsed = (($m['Active']+$m['Buffers'] + $m['Cached'])/1024)/1024;\n\t\t\t$MemFree = $MemTotal-$MemUsed;\n\t\t\t$arrData = array('total'=>$MemTotal, 'used'=>$MemUsed, 'free'=>$MemFree);\n\t\t\treturn $arrData;\n\t\t}", "title": "" }, { "docid": "f701d45b9acb1de3b60bfa437102284a", "score": "0.6052212", "text": "public function getMemoryMeasurements()\n {\n return $this->memory;\n }", "title": "" }, { "docid": "d23dc190374bd49b00e4ee4fad8db38f", "score": "0.6048182", "text": "public static function getGatheredMemory ()\n {\n return self :: $s_pStatistics -> Memory;\n }", "title": "" }, { "docid": "dbe42058a2a770b1bfe718590fc26be2", "score": "0.5954637", "text": "public function getMemoryRequirements()\n {\n return $this->memoryRequirements;\n }", "title": "" }, { "docid": "4339234d6e30b66e8190239eb873ffa9", "score": "0.585838", "text": "public function getMemory() {\n return (string)$this->data['memory'];\n }", "title": "" }, { "docid": "09c5279e708c73af15f0c96b2cd5e8f4", "score": "0.5857937", "text": "protected function getMemoryUsage()\n {\n return memory_get_usage(true);\n }", "title": "" }, { "docid": "e4407e63b1b5041e3566edef7d575418", "score": "0.583288", "text": "static public function getSizeMemory() {\r\n $size = memory_get_usage();\r\n $unit = array('B', 'Kb', 'Mb', 'Gb', 'Tb', 'Pb');\r\n $memory = @round($size / pow(1024, ($i = floor(log($size, 1024)))), 2) . ' ' . $unit[$i];\r\n Ibe_Debug::warn($memory);\r\n }", "title": "" }, { "docid": "ef12e221260f8f062cf5d95b655319bb", "score": "0.58151525", "text": "function getMemoryFree()\n {\n return getSpecification()['memory_free'];\n }", "title": "" }, { "docid": "f3045357f5f203cd5bcc8210235a4ccc", "score": "0.57941365", "text": "public function getMemory()\n {\n return isset($this->memory) ? $this->memory : '';\n }", "title": "" }, { "docid": "0eaa3692c7ee25ff22d92da30c9f655f", "score": "0.5756017", "text": "private static function record()\n\t{\n\t\tself::$memory[] = memory_get_usage();\n\t\tself::$realMemory[] = memory_get_usage(true);\n\t\tself::$memoryPeak[] = memory_get_peak_usage();\n\t\tself::$realMemoryPeak[] = memory_get_peak_usage(true);\n\t}", "title": "" }, { "docid": "82578ffde46df66451954eea21697721", "score": "0.5723107", "text": "function get_cur_mem_size()\n\t{\n\t\treturn $this->call(\"Debug.GetMemCurSize\");\n\t}", "title": "" }, { "docid": "417bbbc0bb1d75e79cb5c0d1ea28060a", "score": "0.56429935", "text": "public function getFreeSpace();", "title": "" }, { "docid": "71f89a6210d4d7b1cd72d81e66210759", "score": "0.56172913", "text": "public function getFreeMem() {\n\t\treturn $this->freeMem;\n\t}", "title": "" }, { "docid": "760df216e1521617c7f7f23075481e1d", "score": "0.5588506", "text": "public function getMemoryUsage()\n {\n return memory_get_usage($this->isRealUsage());\n }", "title": "" }, { "docid": "3f5d37a28aa1e20e936d0fb56c1ae51d", "score": "0.5565479", "text": "public function getMemoryLoad(): int;", "title": "" }, { "docid": "280540297e98ad22f1c124b0a8030597", "score": "0.5551427", "text": "final static function increased_available_memory() {\n\t\treturn \\TSF_Extension_Manager\\has_run( __METHOD__ );\n\t}", "title": "" }, { "docid": "17d79f4f3d3c392ab6e033075f07f4ed", "score": "0.5521245", "text": "public static function getMemoryUsage()\n\t{\n\t\treturn [\n\t\t\t'start' => self::formatMemory(self::$start_mem),\n\t\t\t'stop' => self::formatMemory(self::$stop_mem),\n\t\t\t'stop_peak' => self::formatMemory(self::$stop_mem_peak)\n\t\t];\n\t}", "title": "" }, { "docid": "bb2635cba13a1ff980015a579b8a434a", "score": "0.55193025", "text": "public static function getAvailableMemory()\n {\n return self::getMemoryLimit() - self::getMemoryUsage();\n }", "title": "" }, { "docid": "8fb75dbe918d3d66c254256952247477", "score": "0.5518477", "text": "function getMemoryTotal()\n {\n return getSpecification()['memory_total'];\n }", "title": "" }, { "docid": "5e645174b9b0d75e802207b3751080ec", "score": "0.5504339", "text": "public function allocate(int $capacity) {}", "title": "" }, { "docid": "5bc2d8854bf388eeff68fdf941791331", "score": "0.54917336", "text": "function get_min_mem_size()\n\t{\n\t\treturn $this->call(\"Debug.GetMemMinSize\");\n\t}", "title": "" }, { "docid": "0e389bd6a8b0f2b58c2dece11ab0b14b", "score": "0.5491097", "text": "public function getRAM(){\n echo \"RAM :\" . $this->ram . \"\\n\";\n }", "title": "" }, { "docid": "0e389bd6a8b0f2b58c2dece11ab0b14b", "score": "0.5491097", "text": "public function getRAM(){\n echo \"RAM :\" . $this->ram . \"\\n\";\n }", "title": "" }, { "docid": "0e389bd6a8b0f2b58c2dece11ab0b14b", "score": "0.5491097", "text": "public function getRAM(){\n echo \"RAM :\" . $this->ram . \"\\n\";\n }", "title": "" }, { "docid": "f75ebe2b84c52ed614efec0107a02842", "score": "0.5465173", "text": "public function memoryUsage() : string\n {\n return $this -> storage['memory'];\n }", "title": "" }, { "docid": "19fb1173550f68544dd7a7a46da55102", "score": "0.54577374", "text": "function getServerMem()\n{\n if(file_exists('/proc/meminfo')) {\n $data = explode(\"\\n\", file_get_contents(\"/proc/meminfo\"), 4);\n for ($i = 0; $i < 3; $i++) {\n $meminfo[$i] = preg_replace(\"/[^0-9?![:space:]]/\", \"\", $data[$i]);\n $meminfo[$i] = intval( $meminfo[$i] / 1024 );\n }\n /*\n # Getting Total RAM Memory\n $meminfo[0] = preg_replace(\"/[^0-9?![:space:]]/\", \"\", $data[0]);\n $meminfo[0] = intval( $meminfo[0] / 1024 );\n # Getting Free RAM Memory\n $meminfo[1] = preg_replace(\"/[^0-9?![:space:]]/\", \"\", $data[2]);\n $meminfo[1] = intval( $meminfo[1] / 1024 );\n */\n return $meminfo;\n }\n else\n return false;\n}", "title": "" }, { "docid": "f7b5aa5346e9ba7b0fd427d6c39ffc31", "score": "0.5434481", "text": "public function getJailMemoryPool();", "title": "" }, { "docid": "0f99ff103ba31a9e26a5889f4c49d481", "score": "0.54257005", "text": "function getSystemMemoryFreeLimitBytes()\n{\n\t$info = getSystemMemInfo();\n\tif (isset($info['MemAvailable'])) {\n\t\treturn $info['MemAvailable'];\n\t}\n\treturn $info['MemFree'] + $info['Cached'] + $info['Buffers'];\n}", "title": "" }, { "docid": "fc762ef8f328a8094c789dc77e8e9387", "score": "0.5353652", "text": "protected function getMemoryUsage()\n {\n return round(memory_get_usage() / 1024 / 1024, 2);\n }", "title": "" }, { "docid": "cc3da62e3348f9eb99f54e41b1f23d83", "score": "0.5339058", "text": "protected function createMemoryDriver()\n {\n return new MemoryStorage();\n }", "title": "" }, { "docid": "3bef2a437f115b7b8c9464f07ab8d694", "score": "0.5322849", "text": "public function meminfo() {\n return $this->callAsync('meminfo', array());\n }", "title": "" }, { "docid": "715e00d39d414e32cc11c77979f04ff4", "score": "0.5301922", "text": "public function getMemoryUsage()\n {\n return isset($this->ends['mu']) && isset($this->starts['mu']) ? $this->ends['mu'] - $this->starts['mu'] : 0;\n }", "title": "" }, { "docid": "69802608005afb5d6cf9da39ff385467", "score": "0.5294493", "text": "function memoryUsageStart( $memName = \"execution_time\" ){\r\n return $GLOBALS['memoryCounter'][$memName] = memory_get_usage();\r\n}", "title": "" }, { "docid": "e8021abac55c0e198be0d3494f1b5ff6", "score": "0.52893865", "text": "public static function memory()\n\t{\n\t\treturn isset(static::$cached['memory']) ? static::$cached['memory'] : null;\n\t}", "title": "" }, { "docid": "e5b29bd16d5aed36eca8a19ff53de579", "score": "0.5286008", "text": "public function length() {\r\n return sizeof($this->memory);\r\n }", "title": "" }, { "docid": "64e4b208e614644c79fdcc4154b280b0", "score": "0.52843934", "text": "function getSystemMemInfo()\n{\n\t$data = explode(\"\\n\", file_get_contents(\"/proc/meminfo\"));\n\t$meminfo = array();\n\tforeach ($data as $line) {\n\t\tif (empty($line)) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tlist($key, $val) = explode(\":\", $line);\n\t\t$_val = explode(\" \", strtolower(trim($val)));\n\t\t$val = intval($_val[0]);\n\t\tif (isset($_val[1]) && $_val[1] == 'kb') {\n\t\t\t$val *= 1024;\n\t\t}\n\t\t$meminfo[$key] = trim($val);\n\t}\n\treturn $meminfo;\n}", "title": "" }, { "docid": "fae34a551b3761fa4cea03fee7652006", "score": "0.5258666", "text": "public function testMemory() {\r\n BasicBenchmark::startMemoryTest();\r\n $string = str_pad('', 1024, 'x');\r\n BasicBenchmark::endMemoryTest();\r\n $this->assertEquals('1104b', BasicBenchmark::getMemoryUsed('b')); // extra 80 bytes... from where?\r\n $this->assertEquals('1.078kb', BasicBenchmark::getMemoryUsed('kb'));\r\n }", "title": "" }, { "docid": "475d40b41b634e3d02257c80ca063ff5", "score": "0.5245728", "text": "protected function getMemoryCache() {}", "title": "" }, { "docid": "63737def58e98fc22f62269eb08fe183", "score": "0.52452487", "text": "public function getPoolUsage() {\n $len = 0; $shared = 0; $real = 0; $count = 0;\n foreach(self::$internPool as $var) {\n $len = strlen($var[0]);\n $real += $len;\n $shared += $len * $var[1];\n $count += $var[1];\n }\n $segments = count(self::$internPool);\n $ret = array('count' => $count, 'segments' => $segments, 'ratio' => ($segments > 0 ? ($count / $segments) * 100 : 0), 'memory' => array('real' => $real, 'shared' => $shared, 'ratio' => $real > 0 ? ($shared/$real) * 100 : 0));\n return $ret;\n }", "title": "" }, { "docid": "1e08091244b4d3efd5d04cf13d44c5c4", "score": "0.52396363", "text": "public static function totalUsedSpace()\n {\n return (object) ['bytes' => (int) DB::table('file_managers')->sum('size')];\n }", "title": "" }, { "docid": "89cc39ba3d84d1a20cdc87bdada6ef8b", "score": "0.52386856", "text": "public function getMemorySwap()\n {\n return $this->memorySwap;\n }", "title": "" }, { "docid": "9a90d09affb4e594f16bbb7402efec91", "score": "0.5187173", "text": "public function packup() {\n /* Release memory */\n }", "title": "" }, { "docid": "50916529f4f48cbb632e5ef589858036", "score": "0.5186052", "text": "public static function getCurrentMemory($base_dir){\n $data = json_decode(file_get_contents($base_dir.\"/core.json\"), true);\n return $data[\"serverdata\"][\"currentmemory\"];\n }", "title": "" }, { "docid": "a4acc6b00108a84e94f65c16708d2318", "score": "0.51591635", "text": "public function getAllocations()\n {\n return $this->allocations;\n }", "title": "" }, { "docid": "73898570b8aceebd0ca0e36ab20bc480", "score": "0.51103127", "text": "public function providerTestGetRealSize()\n {\n return array(\n array('0', 0),\n array('1kb', 1024),\n array('1024k', 1024 * 1024),\n array('8m', 8 * 1024 * 1024),\n array('12gb', 12 * 1024 * 1024 * 1024),\n array('1024', 1024),\n );\n }", "title": "" }, { "docid": "1119ec71a1ec68825c223989477c8a12", "score": "0.5106655", "text": "public function getMemoryUsage()\n {\n return memory_get_peak_usage(TRUE);\n }", "title": "" }, { "docid": "e3206c93893425e5fdcc57dfc1d969a9", "score": "0.5100503", "text": "final protected function get_memory_limit_in_bytes() {\n\t\tMemory_Cache::get_memory_limit_in_bytes();\n\t}", "title": "" }, { "docid": "0ea331a2e1858e20266989a676246de8", "score": "0.507958", "text": "protected function getDataCollector_MemoryService()\n {\n return $this->privates['data_collector.memory'] = new \\Symfony\\Component\\HttpKernel\\DataCollector\\MemoryDataCollector();\n }", "title": "" }, { "docid": "a3a50ad0fda3913403aa2031071dfd9c", "score": "0.5048063", "text": "function getRamAvailable() {\n\t\treturn OpenStackNovaController::_get_property( $this->absolute, 'maxTotalRAMSize' );\n\t}", "title": "" }, { "docid": "f3f905031eeecc759594b996052214aa", "score": "0.50344914", "text": "function uncode_core_php_test_memory() {\n\tif ( current_user_can( 'manage_options' ) && isset( $_POST[ 'php_test_memory_nonce' ] ) && wp_verify_nonce( $_POST[ 'php_test_memory_nonce' ], 'uncode-php-test-memory-nonce' ) ) {\n\t\t$text = '';\n\n\t\tfor ( $i = 16; $i < 1000; $i += 4 ) {\n\t\t\t$a = @uncode_core_loadmem( $i-4 );\n\t\t\tupdate_option( 'uncode_real_php_memory', $i );\n\t\t\techo '%' . $i . \"\\n\";\n\n\t\t\tif ($a > 112) {\n\t\t\t\tunset( $a );\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tunset( $a );\n\t\t}\n\t}\n\n\tdie();\n}", "title": "" }, { "docid": "93f17be7b1dd9eff31c7237cc91899d8", "score": "0.50152886", "text": "function ProductAllocate( )\n\t{\n\n\t\tglobal $gProductGroups, $gUserData, $gProductData; \n\t\t$group = 0;\n\t\tif( isset( $gProductGroups[$gProductData->code] ))\n\t\t{\n\t\t\t$group = $gProductGroups[$gProductData->code];\n\t\t}\n\n\t\tif( $group == 1 ) \n\t\t{\n\t\t\t$gUserData->fuelAdd += $gProductData->value; \n\t\t}\n\t\telse if( $group == 2 )\n\t\t{\n\t\t\t$gUserData->shopAdd += $gProductData->value; \n\t\t}\n\t}", "title": "" }, { "docid": "8b44f90ed7d2b20e40e23a32749b41bc", "score": "0.4966627", "text": "public static function endMemoryTest() {\n self::$endMemory = memory_get_usage(false);\n return self::$endMemory;\n }", "title": "" }, { "docid": "233d92f6dc880c0c5b39641b9b752f3e", "score": "0.49545228", "text": "public function getGcVirtual()\n {\n return $this->gc_virtual;\n }", "title": "" }, { "docid": "09dad211c0482cae11912d8ba1792145", "score": "0.4951373", "text": "function getRamUsed() {\n\t\treturn OpenStackNovaController::_get_property( $this->absolute, 'totalRAMUsed' );\n\t}", "title": "" }, { "docid": "c3df709638ae2b0d1da9e9cbdbfc647c", "score": "0.49421754", "text": "public function run()\n {\n Allocation::factory()\n ->count(20)\n ->create();\n }", "title": "" }, { "docid": "29259aed7cca5c02e67e693eab84fbd3", "score": "0.49302214", "text": "function CheckStorageSpace () {\n\t\t// avoid warning from null value\n\t\t(isset($this->userData) && is_array($this->userData)) || $this->userData = array();\n\t\t\n\t\tisset($this->userData['Storage']) || $this->userData['Storage'] = 100;\n\t\t\n\t\t$this->StorageAllocated = $this->userData['Storage'];\n\t\t$this->StorageUsed = $this->CalculateStorageUsed ();\n\n\t\tif ($this->StorageAllocated == 0) {\n\t\t\t$this->StorageFree = 0;\n\t\t} else {\n\t\t\t$this->StorageFree = $this->StorageAllocated - $this->StorageUsed;\n\t\t}\n\t\t\n\t\tif (intval ($this->StorageAllocated) > 0) {\n\t\t\t$this->StorageFreeText = $this->StorageFree;\n\t\t\t$this->StorageAllocatedText = $this->StorageAllocated;\n\t\t} else {\n\t\t\t$this->StorageFreeText = \"{fp:unlimited}\";\n\t\t\t$this->StorageAllocatedText = \"{fp:unlimited}\";\n\t\t}\n\t}", "title": "" }, { "docid": "4fbc41ba9f5c4c2aeaac4343335ed713", "score": "0.49238002", "text": "public function getTotalSize(){ return 0; }", "title": "" }, { "docid": "867ccaf49a154341aff3c810b0a11b1a", "score": "0.49233523", "text": "public function getIpAllocation()\n {\n return $this->ip_allocation;\n }", "title": "" }, { "docid": "a7352af8d3aa533b183b4beb6b5c3366", "score": "0.4917689", "text": "protected static function setMemoryLimit() {}", "title": "" }, { "docid": "f1e725bbfe7a75ceb7e498d684b19635", "score": "0.49163768", "text": "function memory_report()\n{\n\tif (!err()) return;\n\t\n\tglobal $__MEMORY_EVENTS;\n\tif (!isset($__MEMORY_EVENTS))\n\t{\n\t\t$__MEMORY_EVENTS = array();\n\t}\n\t\t\n\t$limit\t\t= trim(ini_get('memory_limit'));\n\t$available\t= $limit + 0;\n\t$unit\t\t= substr(strtolower(str_replace($available, '', $limit)), 0, 1);\n\tswitch($unit)\n\t{\n\t\t// The 'G' modifier is available since PHP 5.1.0\n\t\tcase 'g':\n\t\t\t$available *= 1024;\n\t\tcase 'm':\n\t\t\t$available *= 1024;\n\t\tcase 'k':\n\t\t\t$available *= 1024;\n\t}\n\t\n\tif ($available == 0)\n\t{\n\t\t$available++;\n\t}\n\n\t$when = gmdate('Y-m-d h:i:s');\n\t$available_formatted = number_format($available);\n\t$tma = str_pad(\"Total memory available:\".r('# +#', ' ', \" {$limit} \").\"({$available_formatted}B)\", 61, ' ', STR_PAD_LEFT);\n\t$text = <<<TEXT\n--------------------------------------------------------------------------------\n{$when}{$tma}\n--------------------------------------------------------------------------------\n | SINCE LAST EVENT\n Total ----------------------------------------\n Memory % of | Memory % of Time\nEvent Consumed Total | Consumed Total Elapsed\n--------------------------------------------------------------------------------\n\nTEXT;\n\t\n\t$last_used\t\t= 0;\n\t$last_microtime\t= EXECUTION_START;\n\tforeach($__MEMORY_EVENTS as $i => $event)\n\t{\n\t\t$name \t= str_pad(!empty($event[0]) ? $event[0] : 'tick '.$i, 20);\n\t\t$mc\t\t= str_pad(number_format(round($event[1]/1024)).'kB', 12);\n\t\t$pt\t\t= str_pad(round($event[1]/$available * 100, 2).'%', 8);\n\t\t\n\t\t$diff \t= $event[1] - $last_used;\n\t\t$emc\t= str_pad(number_format(round($diff/1024)).'kB', 12);\n\t\t$ept\t= str_pad(round($diff/$available * 100, 2).'%', 8);\n\t\t$ete\t= str_pad(number_format($event[2] - $last_microtime, 6).'s', 16, ' ', STR_PAD_LEFT);\n\t\t\n\t\t$text .= $name.$mc.$pt.'| '.$emc.$ept.$ete.\"\\n\";\n\t\t\n\t\t$last_used \t\t= $event[1];\n\t\t$last_microtime\t= $event[2];\n\t}\n\t\n\t$nm\t = function_exists('memory_get_usage') ? memory_get_usage() : 0;\n\t$tmc = str_pad(number_format(round(($nm - $__MEMORY_EVENTS[0][1])/1024)).'kB', 12);\n\t$tpt = str_pad(round(($nm - $__MEMORY_EVENTS[0][1])/$available * 100, 2).'%', 8);\n\t$tet = str_pad(number_format($last_microtime - EXECUTION_START, 6).'s', 40, ' ', STR_PAD_LEFT);\n\t$text .= <<<TEXT\n--------------------------------------------------------------------------------\nSince first event {$tmc}{$tpt}{$tet}\n\n\nTEXT;\n\t\n\t// empty our events\n\t$__MEMORY_EVENTS = array();\n\t\n\treturn $text;\n}", "title": "" }, { "docid": "ecec005e951ecb4193d935afe17ec30a", "score": "0.48984605", "text": "public function size() {\n\t\t\treturn (object) array( 'width' => $this->_width, 'height' => $this->_height );\n\t\t}", "title": "" }, { "docid": "413a49c5c008dcbdaa4ba78993604c0b", "score": "0.48677066", "text": "protected function __construct() {\n // Call the parent constructor\n parent::__construct();\n\n $export = file_get_contents(__DIR__ . '/../../memory.per');\n eval ('$this->memStorage = ' . $export . ';');\n }", "title": "" }, { "docid": "943ed5cf76427773576dfc06ca8c2cbd", "score": "0.48669598", "text": "private function _compile_memory_usage()\n\t{\n\t\t$output = \"\\n\\n\";\n\t\t$output .= '<fieldset style=\"border:1px solid #5a0099;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee\">';\n\t\t$output .= \"\\n\";\n\t\t$output .= '<legend style=\"color:#5a0099;\">&nbsp;&nbsp;'.$this->lang('profiler_memory_usage').'&nbsp;&nbsp;</legend>';\n\t\t$output .= \"\\n\";\n\n\t\tif( function_exists('memory_get_usage')&&( $usage = memory_get_usage() )!= '')\n\t\t{\n\t\t\t$byte\t= number_format($usage);\n\t\t\t$kbyte\t= $usage/1024;\n\t\t\t$mbyte\t= round($kbyte/1024,2);\n\t\t\tif($mbyte>=1){\n\t\t\t\t$useage_string = $mbyte.' Mbyte ';\n\t\t\t}elseif($kbyte>=1){\n\t\t\t\t$useage_string = $kbyte.' Kbyte ';\n\t\t\t}else{\n\t\t\t\t$useage_string = $byte.' byte ';\n\t\t\t}\n\t\t\t$output .= \"<div style='color:#5a0099;font-weight:normal;padding:4px 0 4px 0'>\".$useage_string.'</div>';\n\t\t}else{\n\t\t\t$output .= \"<div style='color:#5a0099;font-weight:normal;padding:4px 0 4px 0'>\".$this->lang('profiler_no_memory_usage').\"</div>\";\n\t\t}\n\n\t\t$output .= \"</fieldset>\";\n\n\t\treturn $output;\n\t}", "title": "" }, { "docid": "cc3986bab1f20d248e8a0ea66a9096b7", "score": "0.486378", "text": "public function gc() { return 0; }", "title": "" }, { "docid": "fa9938523f571e369775cbe5777e8ba3", "score": "0.48501357", "text": "function getHDD(){\n\t\t\t$partition = \"/\";\n\t\t\t$totalSpace = disk_total_space($partition) / 1048576;\n\t\t\t$usedSpace = $totalSpace - disk_free_space($partition) / 1048576;\n\t\t\t$totalSpace = ($totalSpace/1024);\n\t\t\t$usedSpace = ($usedSpace/1024);\n\t\t\t$freeSpace = ($totalSpace-$usedSpace);\n\t\t\t$arrData = array('total'=>$totalSpace, 'used'=>$usedSpace, 'free'=>$freeSpace);\n\t\t\treturn $arrData;\n\t\t}", "title": "" }, { "docid": "1dfd76f53b88278a59cf9efd0a045b8b", "score": "0.48372054", "text": "public function getTotalSize() {}", "title": "" }, { "docid": "1dfd76f53b88278a59cf9efd0a045b8b", "score": "0.48372054", "text": "public function getTotalSize() {}", "title": "" }, { "docid": "423beafe5eb6717503517d50f38c8999", "score": "0.48355883", "text": "protected function extendMemory()\n {\n $app = $this->app;\n $config = $this->app->make('config');\n $app->make('antares.memory')->extend('tests', function ($app, $name) use($config) {\n $handler = new Memory\\Handler($name, $config->get('antares/tester::memory'), $app);\n return new Provider($handler);\n });\n }", "title": "" }, { "docid": "904a37fc276037cabda08f912f4e681f", "score": "0.48283392", "text": "function get_max_mem_size()\n\t{\n\t\treturn $this->call(\"Debug.GetMemMaxSize\");\n\t}", "title": "" }, { "docid": "01b71eff6aa2e2cf7f7091c3d344cb1b", "score": "0.48263806", "text": "public function test_get_total_disk_space_used() {\n // By default, Moodle only setup 4 images.\n $imagesize = $this->get_current_size_for_mime(\"image/%\");\n $quotamanager = new quota_manager();\n $this->comparefloat($quotamanager->get_total_disk_space_used(), $imagesize);\n }", "title": "" }, { "docid": "2b670ba41090f800306cb1013d98c4e8", "score": "0.4824342", "text": "abstract protected function _Free();", "title": "" }, { "docid": "862e3c4f0deb47ada2390aec15d6ac02", "score": "0.48114997", "text": "public static function getMemoryUsage()\n {\n if ( self::getOsType() === 'nix' && function_exists('memory_get_usage') ) {\n return memory_get_usage(true);\n }\n /*\n * If its Windows\n * \n * Tested on Win XP Pro SP2. Should work on Win 2003 Server too\n * Doesn't work for 2000\n * If you need it to work for 2000 look at http://php.net/manual/en/function.memory-get-usage.php#54642\n */\n $processStat = 0;\n if ( self::getOsType() == 'win' ) {\n $output = array();\n exec('tasklist /FI \"PID eq ' . getmypid() . '\" /FO LIST', $output , $processStat);\n if ( $processStat !== 0 ) { // error occured in execution of takslist\n return false;\n }\n $currentMemory = intval( preg_replace( '/[\\D]/', '', $output[5] ) ); // returns in KB\n $currentMemory *= 1024;\n } else\t{\n /*\n * We now assume the OS is UNIX\n * Tested on Mac OS X 10.4.6 and Linux Red Hat Enterprise 4\n * This should work on most UNIX systems\n */\n $pid = getmypid();\n exec(\"ps -eo%mem,rss,pid | grep $pid\", $output, $processStat);\n if ( $processStat !== 0 ) { // error occured in execution of takslist\n return false;\n }\n $output = explode(\" \", $output[0]);\n //rss is given in 1024 byte units\n $currentMemory = intval($output[1]); // in KB\n $currentMemory *= 1024;\n }\n return $currentMemory;\n }", "title": "" }, { "docid": "aa73436ccf68298f791ccb7d37fbba35", "score": "0.48108178", "text": "public function getBytesFromSizeMeasurementDataProvider() {}", "title": "" }, { "docid": "e8b4f68d4a7571c870082df1de676592", "score": "0.48004407", "text": "public function capacity(): int {}", "title": "" }, { "docid": "bd5643dc7c38d95f7cfb55f5ea603443", "score": "0.4793615", "text": "private function memory() {\n\t\tif (MEMORY_LIMIT == -1)\n\t\t\treturn false;\n\t\t$mem = memory_get_usage(true);\n\t\t$stop = ($mem >= 0.9*MEMORY_LIMIT);\n\n\t\treturn $stop;\n\t}", "title": "" }, { "docid": "1daf3dca2bd5ff00370c374da0370b46", "score": "0.4788473", "text": "public function getBaseSize();", "title": "" }, { "docid": "ab93e734771773187c2e1fb741dc8b04", "score": "0.47841468", "text": "function get_free_mem () {\r\n\treturn max (0, get_value (ini_get (\"memory_limit\")) - memory_get_usage ());\r\n\t\r\n}", "title": "" }, { "docid": "b5296eda188c955fab2e5c0cdcd6b37c", "score": "0.47759697", "text": "public function GetMemoryCache()\n\t{\n\t\treturn $this->memoryCache;\n\t}", "title": "" }, { "docid": "c8f6bb9d966432f9ff998a1c96e3a231", "score": "0.47700986", "text": "protected function setUp()\n {\n parent::setUp();\n $this->memory = new Memory(150.0, 225.0, 50.0);\n }", "title": "" }, { "docid": "81ee950db25ce8ab0358b47eb5b76561", "score": "0.474603", "text": "public static function getTotalMemory($base_dir){\n $data = json_decode(file_get_contents($base_dir.\"/core.json\"), true);\n return $data[\"serverdata\"][\"totalmemory\"];\n }", "title": "" }, { "docid": "fabf5948854f98686dcf443de6a3fc98", "score": "0.47364652", "text": "protected function getCache_Backend_MemoryService()\n {\n return $this->services['cache.backend.memory'] = new \\Drupal\\Core\\Cache\\MemoryBackendFactory();\n }", "title": "" }, { "docid": "443818c894021eb033901448b4fed073", "score": "0.47334632", "text": "public function global_memory_output($memory=\"\", $total=0, $peak=0 ) {\n\n$IPBHTML = \"\";\n//--starthtml--//\n\n$IPBHTML .= <<<EOF\n<br /><br />\n<div align='center' style='margin-left:auto;margin-right:0'>\n<div class='acp-box' style='text-align:left;'>\n\t<h3>{$this->lang->words['gbl_memory']}</h3>\n\t<table class='ipsTable'>\n\t\t{$memory}\n\t</table>\n\t<div class='acp-actionbar' style='text-align: left;'>\n\t\t<strong>{$this->lang->words['ttlmemoryused']} {$total} ({$this->lang->words['peakmemoryused']} {$peak})</strong>\n\t</div>\n</div>\n</div>\nEOF;\n\n//--endhtml--//\nreturn $IPBHTML;\n}", "title": "" }, { "docid": "9cd810e83bf86247c994e4a4e63757e6", "score": "0.47331858", "text": "public function getSize () {}", "title": "" }, { "docid": "94fbb0c5f90cd3eb6d78189818a62822", "score": "0.47293025", "text": "public function collectGarbage() {}", "title": "" }, { "docid": "94fbb0c5f90cd3eb6d78189818a62822", "score": "0.47289854", "text": "public function collectGarbage() {}", "title": "" }, { "docid": "94fbb0c5f90cd3eb6d78189818a62822", "score": "0.47289854", "text": "public function collectGarbage() {}", "title": "" }, { "docid": "94fbb0c5f90cd3eb6d78189818a62822", "score": "0.47289854", "text": "public function collectGarbage() {}", "title": "" }, { "docid": "04b3c5849042904c7d66875c7a9435ea", "score": "0.47279948", "text": "function getSize() ;", "title": "" }, { "docid": "867939260706a16ac0e7343d612f7ec6", "score": "0.47253066", "text": "private function getPeakMemory()\n {\n return number_format(memory_get_peak_usage() / 1048576, 2) . ' MB';\n }", "title": "" }, { "docid": "b63fca479f2bea721f9f2361560da821", "score": "0.47241762", "text": "public function totalMemory($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "title": "" }, { "docid": "a25240b3e0cd7794691c0759365b38a1", "score": "0.47188482", "text": "public function diskInformation()\n\t{\n\t\t// Get the result\n\t\t$info = system(\"df -h / | grep '/dev/root'\");\n\n\t\t// Replace the multiple spaces with a single space\n\t\t$info = preg_replace('!\\s+!', ' ', $info);\n\n\t\t// Explode the string into an array using the spaces\n\t\t$info = explode(\" \", $info);\n\n\t\treturn [\n\t\t\t'size'\t\t\t=> $info[1],\n\t\t\t'used'\t\t\t=> $info[2],\n\t\t\t'available'\t\t=> $info[3],\n\t\t\t'percent_used'\t=> $info[4]\n\t\t];\n\t}", "title": "" }, { "docid": "02dd1b2b800b2b5ae88ad28284014e27", "score": "0.4717554", "text": "public function getLastFreeObject()\n {\n return 0;\n }", "title": "" }, { "docid": "3777260530ddf2a414d7537942d9c78d", "score": "0.47060418", "text": "public static function Process ()\n {\n if (time () - self :: $s_nLastCollect >= 5)\n {\n $nStart = memory_get_usage ();\n \n gc_collect_cycles ();\n \n $nDifference = (memory_get_usage () - $nStart);\n self :: $s_pStatistics -> Memory += ($nDifference > 0) ? $nDifference : 0;\n self :: $s_pStatistics -> Cycles ++;\n self :: $s_nLastCollect = time ();\n }\n }", "title": "" }, { "docid": "9bd7c4c64bf5b36e3b77fd1e79361dc6", "score": "0.47028714", "text": "public static function isMemoryConsumptionTooHigh() : bool {}", "title": "" }, { "docid": "20bca2966e0cce330d3bb8976ae85eb8", "score": "0.46971956", "text": "public function getMemoryLimit()\n {\n return $this->_memoryLimit;\n }", "title": "" } ]
906c8ad10bd75505cc5c2d1c483cba52
Return DOM attribute contents
[ { "docid": "2d5bde42991f4e0efe9c82cf2da26572", "score": "0.69311595", "text": "public function getDomAttributeString(): string\n {\n $attr = substr($this->dom_attributes['src'], 0, 1) === '#' ? $this->dom_attributes['src'] : sprintf('url(%s)', \n $this->dom_attributes['src']);\n return $attr;\n }", "title": "" } ]
[ { "docid": "802248d0d423583da0e4971e4c71420c", "score": "0.73811895", "text": "public function getAttribute();", "title": "" }, { "docid": "0401b68f9b0bc01bb002fa70bb122c76", "score": "0.6851297", "text": "public function attr() {\n\t\treturn utils::attr($this->attr, func_get_args());\n\t}", "title": "" }, { "docid": "033627066b2ff83fbfdb21245108bea7", "score": "0.68509454", "text": "public function getAttribute(): string\n {\n return $this->attribute;\n }", "title": "" }, { "docid": "d4bcd970d57baec7f4aaff1da090a833", "score": "0.67356735", "text": "public function getAttrib() {\n return $this->attrib;\n }", "title": "" }, { "docid": "94ac9b37a330e97ce24d0440883d1e8e", "score": "0.6681552", "text": "public function getAttributesTag()\n {\n $html = '';\n foreach ($this->attributes as $attr => $value)\n $html .= \" $attr=\\\"$value\\\"\";\n return ltrim($html); // RETIRA PRIMEIRO ESPAÇO ANTES DE RETORNAR\n }", "title": "" }, { "docid": "c5a1dacd89e89f09360c132c5e3ee7de", "score": "0.6655128", "text": "private function getAttributes()\n {\n\t\t$attributes_string = '';\n\n\t\tif ($attr = $this->fetchParam('attr', false, null, false, false)) {\n\t\t\t$attributes_array = Helper::explodeOptions($attr, true);\n\t\t\tforeach ($attributes_array as $key => $value) {\n\t\t\t\t$attributes_string .= \" {$key}='{$value}'\";\n\t\t\t}\n\t\t}\n \n return $attributes_string;\n }", "title": "" }, { "docid": "576e72177e9f3a4cb5f848d8a50eb120", "score": "0.6652062", "text": "public function getAttribute()\n {\n return $this->filterParam . '[' . $this->attribute . ']';\n }", "title": "" }, { "docid": "6d0afc7037589f79d35d22c9df728ecc", "score": "0.665005", "text": "public function getHtmlAttributes();", "title": "" }, { "docid": "6467fb17d8198472bed84ae7bb6eeb1f", "score": "0.6578812", "text": "public function getAttribs(): string {\n\n $attribs = '';\n\n foreach ($this->attributes as $key => $value) {\n $key = strtolower($key);\n if ($value) {\n if ($key == 'value') {\n if (is_array($value)) {\n foreach ($value as $k => $i) {\n $value[$k] = htmlspecialchars($i);\n }\n }\n else {\n $value = htmlspecialchars($value);\n }\n }\n elseif ($key == 'href') {\n // For security reasons, we escape the values! They could be user-supplied hence skeptical.\n $value = urlencode($value);\n }\n $attribs .= $key . '=\"' . $value . '\" ';\n }\n else {\n $attribs .= $key . ' ';\n }\n }\n return trim($attribs);\n }", "title": "" }, { "docid": "650a0bd326a1fe2a4e56cd5e8b658d18", "score": "0.65255255", "text": "public function getAttrString(){\n\t\t$this->attrString = '';\n\t\tif(is_array($this->attr))\n\t\t\tarray_walk($this->attr, array($this, 'attrToString')); \n\t}", "title": "" }, { "docid": "70ccea732e51346a59002c333fd36886", "score": "0.65132403", "text": "public function getHtmlAttributes() {}", "title": "" }, { "docid": "70ccea732e51346a59002c333fd36886", "score": "0.65132403", "text": "public function getHtmlAttributes() {}", "title": "" }, { "docid": "d4f014a940b4222a40dcb13cff8530ef", "score": "0.650601", "text": "public function getExtractAttribute()\n {\n return substr(strip_tags($this->content), 0, 255);\n }", "title": "" }, { "docid": "e9710875a276700c655711ae6fb014ae", "score": "0.64680344", "text": "public function getAttribute()\n {\n return $this->getValueObject('attribute');\n }", "title": "" }, { "docid": "c3162c7d943454125c4fab37cf2ab2b1", "score": "0.6414484", "text": "function attribute($text) {\n\t\treturn $this->text($text);\n\t}", "title": "" }, { "docid": "e9964dcde04679a2e1bcf8251dd3856d", "score": "0.6398153", "text": "final public function parseAttributes() {\n\t\t$content = '';\n\t\tforeach ($this->_attributes as $name => $value) {\n\t\t\t$content .= ' ' . $name . '=\"' . str_replace('\"', '\\\"', $value) . '\"';\n\t\t}\n\t\treturn $content;\n\t}", "title": "" }, { "docid": "a932710cc74c2ee971f1211ff27a3a51", "score": "0.6383059", "text": "public function getAttributes(){\n\t\treturn $this->getElement()->getAttributes();\n\t}", "title": "" }, { "docid": "86908cbc8c35ff56d04884da6e1e0dbd", "score": "0.63817245", "text": "function get_attribute($tag, $attr) {\n return get_attr($tag, $attr);\n}", "title": "" }, { "docid": "f69ec6478128897548b0f1b8e108393a", "score": "0.6368552", "text": "protected function getAttributes() : string\n {\n $content = '';\n foreach ($this->attributes as $key => $value) {\n $content .= $key.'=\"'.$value.'\" ';\n }\n\n return trim($content);\n }", "title": "" }, { "docid": "66cf2f6eae27a1df7b0ed8d460fa4216", "score": "0.63249075", "text": "public function getHtmlAttribute()\n\t{\n\t\tif (empty($this->_attributes['class'])) {\n\t\t\t$this->removeAttribute('class');\n\t\t} else {\n\t\t\t$this->_attributes['class'] = $this->getClasses();\n\t\t}\n\n\t\t$attributes = '';\n\t\tforeach ($this->_attributes as $key => $value) {\n\t\t\t$attributes .= ' ' . $key . (isset($value) ? '=\"' . htmlspecialchars($value) . '\"' : '');\n\t\t}\n\n\t\treturn $attributes;\n\t}", "title": "" }, { "docid": "bcf3df82c3dfbcb768b6c809e8ae6185", "score": "0.62353766", "text": "public function getAttribute()\n {\n return $this->attribute;\n }", "title": "" }, { "docid": "c79df8b5d63541f5448261f79cbc56be", "score": "0.6223105", "text": "public static function getDomNodeAttributeValue($domNode, $attribute='class')\n {\n $numAttributes = $domNode->attributes->length;\n for($i = 0; $i < $numAttributes; $i++) {\n $domNodeAttr = $domNode->attributes->item($i);\n if($domNodeAttr->name == $attribute) {\n return $domNodeAttr->value;\n }\n }\n return '';\n }", "title": "" }, { "docid": "699863c8ac8ada29c65676472f4c1666", "score": "0.6214595", "text": "protected function attrToHtml()\n {\n $html = '';\n\n foreach ($this->attributes as $name => $value) {\n if (($value === null) || ($value === false)) {\n continue;\n }\n\n if ($value === true) {\n $html .= \" $name\";\n } else {\n if (is_array($value)) {\n $value = implode(' ', $value);\n }\n\n $html .= \" $name=\\\"\".static::escape($value).\"\\\"\";\n }\n }\n\n foreach ($this->data as $name => $value) {\n $html .= \" data-$name=\\\"\".static::escape($value).\"\\\"\";\n }\n\n return $html;\n }", "title": "" }, { "docid": "3ed0a9d2fa05ced997c7966b12f5ee8f", "score": "0.61625254", "text": "public function attrib_content($data) {\n return $this->process($data, function(\\SimpleXMLElement $obj) : string {\n return (string) $obj->attributes()['content'];\n });\n }", "title": "" }, { "docid": "e4567687133a1f6486ad7c9f2cb8b9e3", "score": "0.61492795", "text": "private function getEvalAttribute($attrname) {\n $eval = $this->getEval();\n if (is_object($eval) && (get_class($eval) == \"DOMElement\" || is_subclass_of($eval, \"DOMElement\")))\n return $eval->getAttribute($attrname);\n else\n return '';\n }", "title": "" }, { "docid": "caf156f53cdcd25a358a70b8e5bd9849", "score": "0.6142253", "text": "function get_attribute( $name ) {\n\t\tif ( isset( $this->attributes[ $name ] ) ) {\n\t\t\treturn $this->attributes[ $name ];\n\t\t} else {\n\t\t\treturn '';\n\t\t}\n\t}", "title": "" }, { "docid": "5ce575ca296e2358dbe9153810680b6f", "score": "0.61252373", "text": "protected function get_attribute_string() {\n\t\t\t$attribute_string = '';\n\t\t\t$attribute_string .= (isset($this->accept)) ? ' accept=\"' . $this->accept . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->alt)) ? ' alt=\"' . $this->alt . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->autocomplete)) ? ' autocomplete=' . $this->autocomplete . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->autofocus)) && $this->autofocus ? ' autofocus' : '';\n\t\t\t$attribute_string .= (isset($this->checked)) && $this->checked ? ' checked' : '';\n\t\t\t$attribute_string .= (isset($this->disabled)) && $this->disabled ? ' disabled' : '';\n\t\t\t$attribute_string .= (isset($this->form)) ? ' form=\"' . $this->form . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->formaction)) ? ' formaction=\"' . $this->formaction . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->formenctype)) ? ' formenctype=\"' . $this->formenctype . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->formmethod)) ? ' formmethod=\"' . $this->formmethod . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->formnovalidate) && $this->formnovalidate) ? ' formnovalidate=\"formnovalidate\"' : '';\n\t\t\t$attribute_string .= (isset($this->formtarget)) ? ' formtarget=\"' . $this->formtarget . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->height)) ? ' height=\"' . $this->height . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->list)) ? ' list=\"' . $this->list . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->max)) ? ' max=\"' . $this->max . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->maxlength)) ? ' maxlength=\"' . $this->maxlength . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->min)) ? ' min=\"' . $this->min . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->multiple) && $this->multiple) ? ' multiple' : '';\n//\t\t\t$attribute_string .= (isset($this->name)) ? ' name=\"' . $this->name . '\"' : '';\n\t\t\t// Add the name attribute, appending brackets if attribute multiple is true. This allows PHP to receive multiple submissions as an array.\n\t\t\t$name_string = '';\n\t\t\tif (isset($this->name)) {\n\t\t\t\t$name_string .= ' name=\"' . $this->name;\n\t\t\t\tif ((isset($this->multiple) && $this->multiple)) {\n\t\t\t\t\t$name_string .= '[]';\n\t\t\t\t} // if\n\t\t\t\t$name_string .= '\"';\n\t\t\t} // if\n\t\t\t$attribute_string .= $name_string;\n\t\t\t// Continue building attribute string\n\t\t\t$attribute_string .= (isset($this->pattern)) ? ' pattern=\"' . $this->pattern . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->placeholder)) ? ' placeholder=\"' . $this->placeholder . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->readonly) && $this->readonly) ? ' readonly' : '';\n\t\t\t$attribute_string .= (isset($this->required) && $this->required) ? ' required' : '';\n\t\t\t$attribute_string .= (isset($this->size)) ? ' size=\"' . $this->size . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->src)) ? ' src=\"' . $this->src . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->step)) ? ' step=\"' . $this->step . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->type)) ? ' type=\"' . $this->type . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->value)) ? ' value=\"' . $this->value . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->width)) ? ' width=\"' . $this->width . '\"' : '';\n\n\t\t\treturn $attribute_string;\n\t\t}", "title": "" }, { "docid": "482616e789226c225067aa2edd27d501", "score": "0.6125155", "text": "public function getAttribute()\r\n {\r\n return $this->getElement()->getEntityAttribute();\r\n }", "title": "" }, { "docid": "a5262daa09e7258ee2aacc13b55ef08f", "score": "0.6115412", "text": "public function getAttribute()\n {\n return $this->getElement()->getEntityAttribute();\n }", "title": "" }, { "docid": "c67f155f168b26e97f5597eeb852b802", "score": "0.6115392", "text": "public function getAttribute() \n {\n return $this->_fields['Attribute']['FieldValue'];\n }", "title": "" }, { "docid": "41b6f958fce2ea645a5ae48032f269cd", "score": "0.605854", "text": "public function __get($attribute) {}", "title": "" }, { "docid": "c6cfc0d353954c548a40327be58147f0", "score": "0.60366374", "text": "public function getHtmlAttributes()\n {\n return [\n 'data-password-min-character-sets',\n 'data-password-min-length',\n 'type',\n 'title',\n 'class',\n 'style',\n 'onclick',\n 'onchange',\n 'disabled',\n 'readonly',\n 'tabindex',\n 'placeholder',\n 'data-form-part',\n 'data-role',\n 'data-action',\n 'checked',\n ];\n }", "title": "" }, { "docid": "96ba20698c93bc471ec9702386991c9d", "score": "0.603336", "text": "public function getAttribute($name);", "title": "" }, { "docid": "0c1f2d65bb7491f7d4c9a10ffa64a5c7", "score": "0.60325485", "text": "public function get_attribute($key, $defaut = NULL);", "title": "" }, { "docid": "f585b01b42ac2c7a60ff8446d88054fc", "score": "0.60229176", "text": "function &objectAttributeContent( &$contentObjectAttribute )\r\n {\r\n return $contentObjectAttribute->attribute( 'data_text' );\r\n }", "title": "" }, { "docid": "1b8047e8dfc1531cda9e31ecf38c3fd5", "score": "0.6003554", "text": "function getTagAttrib($text, $tag, $attr) {\n\t$val = '';\n\tif (($pos_start = my_strpos($text, my_substr($tag, 0, my_strlen($tag)-1)))!==false) {\n\t\t$pos_end = my_strpos($text, my_substr($tag, -1, 1), $pos_start);\n\t\t$pos_attr = my_strpos($text, $attr.'=', $pos_start);\n\t\tif ($pos_attr!==false && $pos_attr<$pos_end) {\n\t\t\t$pos_attr += my_strlen($attr)+2;\n\t\t\t$pos_quote = my_strpos($text, my_substr($text, $pos_attr-1, 1), $pos_attr);\n\t\t\t$val = my_substr($text, $pos_attr, $pos_quote-$pos_attr);\n\t\t}\n\t}\n\treturn $val;\n}", "title": "" }, { "docid": "39bc1a8ce6aa109069bf8ed1dd442336", "score": "0.60027397", "text": "public function getAttribute(string $name);", "title": "" }, { "docid": "0087882597360e185133ffe5e51d0f7c", "score": "0.59612864", "text": "abstract protected function getAttribute($attribute);", "title": "" }, { "docid": "fad09339b37fc8649493176975834bab", "score": "0.59440416", "text": "public function getIdentifyingAttribute();", "title": "" }, { "docid": "cf0353759219d6c4ea1957c42c9261b0", "score": "0.59392095", "text": "public function attributes()\n\t{\n\t\treturn $this->attribs;\n\t}", "title": "" }, { "docid": "6f1657fb2af09a7f9b9d07ba40ca5213", "score": "0.5927238", "text": "function getAttribute($attribute)\n {\n return parent::getAttribute($attribute);\n }", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.5924188", "text": "public function getAttributes();", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.5924188", "text": "public function getAttributes();", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.5924188", "text": "public function getAttributes();", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.5924188", "text": "public function getAttributes();", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.5924188", "text": "public function getAttributes();", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.5924188", "text": "public function getAttributes();", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.5924188", "text": "public function getAttributes();", "title": "" }, { "docid": "2953799dc26a58ab2d675d5e02d2b887", "score": "0.59170395", "text": "public function getCustomAttributesAttribute()\n {\n return $this->custom_attributes()->get();\n }", "title": "" }, { "docid": "d63d1d0016bdd3bb4a10e8cb754d222b", "score": "0.58934456", "text": "public function getAttributes() {}", "title": "" }, { "docid": "d63d1d0016bdd3bb4a10e8cb754d222b", "score": "0.58934456", "text": "public function getAttributes() {}", "title": "" }, { "docid": "d63d1d0016bdd3bb4a10e8cb754d222b", "score": "0.58933085", "text": "public function getAttributes() {}", "title": "" }, { "docid": "7d84d95aff4b497ae96c6e3fa7be9d9a", "score": "0.5891674", "text": "public static function attribute()\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\treturn Invoke::emitClass('ILLI\\Core\\Std\\Dom\\Attribute', func_get_args());\n\t\t\t}\n\t\t\tcatch(Exception $E)\n\t\t\t{\n\t\t\t\tthrow new ComponentMethodCallException($E, ComponentMethodCallException::ERROR_M_ATTRIBUTE, ['method' => __METHOD__]);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "50412f825fafc8b3a1497f4d43a3d5e2", "score": "0.5889362", "text": "public function GetAttribute ()\r\n\t{\r\n\t\treturn $this->_attr_field;\r\n\t}", "title": "" }, { "docid": "37ba2f52a5a824efb0f21c696e6b643d", "score": "0.5883723", "text": "static function get_html_attributes( $attributes ) {\n $attr = '';\n foreach ( $attributes as $key => $value ) {\n if ( !is_null( $value ) ) {\n $attr .= \" data-$key='$value'\";\n }\n }\n return $attr;\n }", "title": "" }, { "docid": "5d3ed989566b802e687f4d92844c2383", "score": "0.5870891", "text": "public function get_attribute($name)\n {\n }", "title": "" }, { "docid": "275a58a0ab503de963c580a505913ae9", "score": "0.58663696", "text": "public function getAttribute($attribute)\n {\n }", "title": "" }, { "docid": "468804205cf50c6ba14cd2bab6037272", "score": "0.58536893", "text": "function getAttributesArray($domNode) {\r\n\t$attrArray = false;\r\n\t$attr = $domNode->attributes;\r\n\tfor($i=0;$i<$attr->length;$i++)\r\n\t\t$attrArray[$attr->item($i)->nodeName] = $attr->item($i)->nodeValue;\r\n\treturn $attrArray;\r\n}", "title": "" }, { "docid": "8dcfcbe2ca7c62af53ca70975e8362f0", "score": "0.5852137", "text": "public function get_rendered_attributes( $input ) {\n\n // Make sure shortcode has attributes\n if ( ! $this->config['attributes'] ) {\n return;\n }\n\n $attributes = '';\n foreach ( $this->get_sanitized_attributes( $input ) as $attribute => $value ) {\n $attributes .= ' ' . $attribute . '=\"' . $value . '\"';\n }\n return trim( $attributes );\n }", "title": "" }, { "docid": "8d7be06473617295fbf62c5884211fd9", "score": "0.5834159", "text": "function _get_attribute($name, $tag)\n\t{\n\t\t// Look for the name value pair, parse it out. Backreferences here provides\n\t\t// flexibility so the user can use either single or double quotes, as\n\t\t// long as their balanced, this will parse. \n\t\t$tag = str_replace(array(\"&#8243;\", \"&#8242;\"), array('\"', \"'\"), $tag);\n\t\t$hasAttribute = preg_match( \"/$name=('|\\\")([^\\\\1]*?)\\\\1/i\", $tag, $matches );\n\t\tif ( $hasAttribute ) {\n\t\t\t$quote = $matches[1];\n\t\t\t$value = \"$quote$matches[2]$quote\";\n\t\t} else {\n\t\t\t$value = '\"' . get_option(\"chitikap_${name}\") . '\"';\n\t\t}\n\n\t\treturn $value;\n\t}", "title": "" }, { "docid": "70cd1c993d7675b335696bfa51e79eec", "score": "0.5830965", "text": "public function getAttribs()\n {\n return $this->attribs;\n }", "title": "" }, { "docid": "70cd1c993d7675b335696bfa51e79eec", "score": "0.5830965", "text": "public function getAttribs()\n {\n return $this->attribs;\n }", "title": "" }, { "docid": "74e287467e3502233c3c8bd546c78875", "score": "0.5825855", "text": "function getStyleAttribute($attribute, $tag){\n $tmp = $tag->xpath(\"./@\".$attribute);\n return (string) $tmp[0];\n }", "title": "" }, { "docid": "03155ef50dcf1a1768a49fbe1dbd67ac", "score": "0.58250463", "text": "private function getAttribute(string $name): string\n {\n return (string) $this->xmlItem->attributes()[$name];\n }", "title": "" }, { "docid": "d798e4db5096c3080e1d18fe8c34b145", "score": "0.5823479", "text": "public function getScript(): string\n {\n return $this->sAttrName . ' = ' . $this->xAttrValue;\n }", "title": "" }, { "docid": "48bd02bb93edc402c83c76033f39ba47", "score": "0.5807465", "text": "function getAttributes()\n {\n }", "title": "" }, { "docid": "fefb9f93e51ad0a3fdb8157a40ba5c24", "score": "0.5803498", "text": "protected function get_global_attribute_string() {\n\t\t\t$attribute_string = '';\n\t\t\t$attribute_string .= (isset($this->accesskey)) ? ' accesskey=\"' . $this->accesskey . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->class)) ? ' class=\"' . $this->class . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->contenteditable)) ? ' contenteditable=\"' . $this->contenteditable . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->contextmenu)) ? ' contextmenu=\"' . $this->contextmenu . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->dir)) ? ' dir=\"' . $this->dir . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->data)) ? ' ' . $this->data : '';\n\t\t\t$attribute_string .= (isset($this->draggable)) ? ' draggable=\"' . $this->draggable . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->dropzone)) ? ' dropzone=\"' . $this->dropzone . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->hidden) && $this->hidden) ? ' hidden' : '';\n\t\t\t$attribute_string .= (isset($this->id)) ? ' id=\"' . $this->id . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->lang)) ? ' lang=\"' . $this->lang . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->spellcheck)) ? ' spellcheck=\"' . $this->spellcheck . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->style)) ? ' style=\"' . $this->style . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->tabindex)) ? ' tabindex=\"' . $this->tabindex . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->title)) ? ' title=\"' . $this->title . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->translate)) ? ' translate=\"' . $this->translate . '\"' : '';\n\t\t\treturn $attribute_string;\n\t\t}", "title": "" }, { "docid": "a4979fce9cdfebf87984ab0d5c10fa6c", "score": "0.5794207", "text": "public function getAttribute($attribute, $defaultValue=null) {}", "title": "" }, { "docid": "c773ba86b3a973316271aa0f61c35847", "score": "0.5789965", "text": "public function getAttrsList(){\n return $this->_get(6);\n }", "title": "" }, { "docid": "f0205742f71ea208492b24293bea8c69", "score": "0.5789717", "text": "public function attribute(string $name);", "title": "" }, { "docid": "38914eb204aec972b3d17cf243843f38", "score": "0.5788386", "text": "public static function attr($string, $strict = true) {\n if(static::noNeedToEscape($string)) return $string;\n if($strict === true) {\n return preg_replace_callback('/[^a-z0-9,\\.\\-_]/iSu', 'static::escapeAttrChar', $string);\n }\n return static::html($string);\n }", "title": "" }, { "docid": "a76b77d1f0e6b680be158e29b7be9c20", "score": "0.57813275", "text": "private function _attributes() {\n\t\t\t$return = array();\n\t\t\t$onsubmit = false;\n\t\t\tforeach($this->attributes as $key => $value):\n\t\t\t\tif($key === 'data' && is_array($value)) foreach($value as $k => $v) $return[] = 'data-'.$k.'=\"'.htmlentities(\n\t\t\t\t\t\t\t\tis_array($v)\n\t\t\t\t\t\t\t\t\t?join(';',$v)\n\t\t\t\t\t\t\t\t\t:$v,ENT_QUOTES,'UTF-8',false).'\"';\n\t\t\t\telse $return[] = $key.'=\"'.htmlentities(\n\t\t\t\t\t\t\tis_array($value)\n\t\t\t\t\t\t\t\t?join(' ',$value)\n\t\t\t\t\t\t\t\t:$value,ENT_QUOTES,'UTF-8',false).'\"';\n\t\t\t\tif($key === 'onsubmit') $onsubmit = true;\n\t\t\tendforeach;\n\t\t\tif($this->tag === 'form' && !$onsubmit && in_array(USER_BROWSER,array('ie','ie6'))) $return[] = 'onsubmit=\";var d=document.documentElement;if(d.onsubmit){return d.onsubmit(event);}else{return Event.fire(d,\\'submit\\',event);}\"';\n\t\t\treturn ((count($return))\n\t\t\t\t?' '.join(' ',$return)\n\t\t\t\t:false);\n\t\t}", "title": "" }, { "docid": "c31de5baaa66b79a70e5d569b466bdc9", "score": "0.5769243", "text": "public function escapeAttr($value)\n {\n return $this->_encode($value);\n }", "title": "" }, { "docid": "34de316aee7c5dc129e6a05d6a33447a", "score": "0.57679677", "text": "function e_attr($string)\n{\n return htmlentities($string, ENT_QUOTES, 'UTF-8');\n}", "title": "" }, { "docid": "6c40f0630556bc8095545fed9d43f421", "score": "0.57654595", "text": "function tag_attr($selector, $attr, $text = '', $source = false)\r\n{\r\n $t = tags_attr($selector, $attr, $text,$source);\r\n if ($t) $r = reset($t);\r\n else $r='';\r\n if (DEV)\r\n xlogc('tag_attr', $r, $selector, $attr, $source, $text);\r\n\r\n return $r;\r\n}", "title": "" }, { "docid": "44223a15497d2d591aef0e879ee8590b", "score": "0.5765119", "text": "protected function setAttribute() {\n \t\n \t\treturn array();\n \t}", "title": "" }, { "docid": "78193795da22476c390f8834c4ed29b0", "score": "0.5764165", "text": "function toString( $contentObjectAttribute )\n {\n return $contentObjectAttribute->attribute( 'data_text' );\n }", "title": "" }, { "docid": "64e9d67db57dfd42e1a1da2c4bd2940c", "score": "0.57573843", "text": "public function __GET($attr){\n\n\t\t return $this->$attr;\n\t\t}", "title": "" }, { "docid": "894929d5cf2b083997d033e8c3f85ce5", "score": "0.575197", "text": "protected function attrsToString()\n {\n $string = NULL;\n $this->prepareAttrs();\n foreach ($this->attrs as $attr => $value) {\n $string .= \"$attr=\\\"$value\\\" \";\n }\n return $string;\n }", "title": "" }, { "docid": "c9405ee0b3ffa3ab1fb8bccdae92e490", "score": "0.5714311", "text": "protected function get_attribute_string() {\n\t\t\t$attribute_string = '';\n\t\t\t$attribute_string .= (isset($this->autofocus) && $this->autofocus) ? ' autofocus' : '';\n\t\t\t$attribute_string .= (isset($this->disabled) && $this->disabled) ? ' disabled' : '';\n\t\t\t$attribute_string .= (isset($this->form)) ? ' form=\"' . $this->form . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->formaction)) ? ' formaction=\"' . $this->formaction . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->formenctype)) ? ' formenctype=\"' . $this->formenctype . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->formmethod)) ? ' formmethod=\"' . $this->formmethod . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->formnovalidate) && $this->formnovalidate) ? ' formnovalidate' : '';\n\t\t\t$attribute_string .= (isset($this->formtarget)) ? ' formtarget=\"' . $this->formtarget . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->name)) ? ' name=\"' . $this->name . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->type)) ? ' type=\"' . $this->type . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->value)) ? ' value=\"' . $this->value . '\"' : '';\n\t\t\treturn $attribute_string;\n\t\t}", "title": "" }, { "docid": "a14c69f908b9de24e624e4cba33c52d2", "score": "0.57103026", "text": "function get_attribute($attrib)\r\n\t{\r\n\t\tif (isset($this->attributes[$attrib]))\r\n\t\t\treturn $this->attributes[$attrib];\r\n\t}", "title": "" }, { "docid": "a754105e16d1761f1200cad441c56b88", "score": "0.5688152", "text": "protected function __get_attributes()\n\t{\n\t\t$attributes = array();\n\t\t$dom_attributes = $this->element->attributes;\n\n\t\t$i = 0;\n\t\twhile ($dom_attribute = $dom_attributes->item($i))\n\t\t{\n\t\t\t$attributes[$dom_attribute->name] = $dom_attribute->value;\n\t\t\t$i++;\n\t\t}\n\n\t\treturn $attributes;\n\t}", "title": "" }, { "docid": "809f760c6987b1af64ea4c00739c7081", "score": "0.5682968", "text": "public function getParsedContentAttribute()\n {\n return $this->attributes['content'];\n }", "title": "" }, { "docid": "efef8ac668fea5eed6befba5104972c8", "score": "0.5680387", "text": "protected function get_attribute_string() {\n\t\t\t$attribute_string = '';\n\t\t\t$attribute_string .= (isset($this->disabled) && $this->disabled) ? ' disabled' : '';\n\t\t\t$attribute_string .= (isset($this->label)) ? ' label=\"' . $this->label . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->selected) && $this->selected) ? ' selected' : '';\n\t\t\t$attribute_string .= (isset($this->value)) ? ' value=\"' . $this->value . '\"' : '';\n\t\t\treturn $attribute_string;\n\t\t}", "title": "" }, { "docid": "882dad91051e9ce6a5e61ff070ac8964", "score": "0.5678812", "text": "function objectAttributeContent( $contentObjectAttribute )\n {\n $value = $contentObjectAttribute->attribute( 'data_text' );\n $content = array( 'value' => $value );\n return $content;\n }", "title": "" }, { "docid": "8baa1044b10ca95ace023eb2a5b55417", "score": "0.5674155", "text": "function getAttribute($name)\n {\n return $this->sf1Token->getAttribute($name);\n }", "title": "" }, { "docid": "4108102172696ea9d05212e37b4f3cef", "score": "0.5665903", "text": "public function getHTML(): string\n {\n unset($this->attributes['value']);\n \n return parent::getHTML();\n }", "title": "" }, { "docid": "60935f7ae31fb7cc05ca30cd35b3a839", "score": "0.5662171", "text": "public function getMetaImageLinkAttributesHTML()\n {\n return ViewTools::singleton()->getAttributesHTML($this->owner->getMetaImageLinkAttributes());\n }", "title": "" }, { "docid": "172e3ac9b0666a896fa1995c2139c7b1", "score": "0.56621253", "text": "public function attributeToString($attrs) {//{{{\n $html = array();\n if (empty($attrs)) return \"\";\n $n = $attrs->length;\n for ($i = 0 ;$i < $n; $i++) {\n $attr = $attrs->item($i);\n if ($attr->value == \"-\") {\n $html[] = $attr->name;\n } else {\n $html[] = $attr->name . \"=\\\"\" . $attr->value . \"\\\"\";\n }\n }\n if (empty($html)) return \"\";\n\n return \" \" . implode(\" \", $html);\n }", "title": "" }, { "docid": "f1b70f926dd757f136c6d1b87b4130d0", "score": "0.566012", "text": "protected function get_attribute_string() {\n\t\t\t$attribute_string = '';\n\t\t\t$attribute_string .= (isset($this->autofocus) && $this->autofocus) ? ' autofocus' : '';\n\t\t\t$attribute_string .= (isset($this->cols)) ? ' cols=\"' . $this->cols . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->disabled) && $this->disabled) ? ' disabled' : '';\n\t\t\t$attribute_string .= (isset($this->form)) ? ' form=\"' . $this->form . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->maxlength)) ? ' maxlength=\"' . $this->maxlength . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->name)) ? ' name=\"' . $this->name . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->placeholder)) ? ' placeholder=\"' . $this->placeholder . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->readonly) && $this->readonly) ? ' readonly' : '';\n\t\t\t$attribute_string .= (isset($this->required) && $this->required) ? ' required' : '';\n\t\t\t$attribute_string .= (isset($this->rows)) ? ' rows=\"' . $this->rows . '\"' : '';\n\t\t\t$attribute_string .= (isset($this->wrap)) ? ' wrap=\"' . $this->wrap . '\"' : '';\n\t\t\treturn $attribute_string;\n\t\t}", "title": "" }, { "docid": "0d33e4a542c4ce6100ff49fc83e2c2c9", "score": "0.5653436", "text": "public function attribute($id, $name)\n\t{\n\t\treturn $this->connection()->get(\"element/$id/attribute/$name\");\n\t}", "title": "" }, { "docid": "9ff85fe5c7921be3e92a89dd2600a94c", "score": "0.56529003", "text": "function add_attribute($dom, $element, $name, $value) {\n\t$attr = $element->appendChild($dom->createAttribute($name));\n\t$attr->appendChild($dom->createTextNode($value));\n\treturn $attr;\n}", "title": "" }, { "docid": "2797de55faef7ad8af79d7a412d9beb9", "score": "0.5647826", "text": "function wp_kses_attr($element, $attr, $allowed_html, $allowed_protocols)\n {\n }", "title": "" }, { "docid": "3f41b55a3da5e58537a9afe98d92649e", "score": "0.5646248", "text": "function getAdditionalAttributes() ;", "title": "" }, { "docid": "be4a2f06c43e9f4bcd8509c0a9f1dede", "score": "0.56319606", "text": "public function getValue() {\n return $this->attributes['value'];\n }", "title": "" }, { "docid": "8aa259a705b15efbc6f7caae821c3a8b", "score": "0.56292903", "text": "public function __attribute($name)\n {\n return $this->__attributes[$name];\n }", "title": "" }, { "docid": "d52479fad7c52be47702ce0b476cbca9", "score": "0.56223786", "text": "public function getAttribs() {\n\t\treturn $this->_attribs;\n\t}", "title": "" }, { "docid": "b5c799270fa95d82d126447968f51723", "score": "0.5620556", "text": "private function returnValueOfAttribute($elem, $attr, $url_flag = FALSE) {\n $element = $this->getSession()->getPage()->find(\"css\", $elem);\n if (!$element) {\n throw new Exception('Expected element ' . $elem . ' not found on page.');\n }\n if (!$element->hasAttribute($attr)) {\n throw new Exception('Expected element ' . $elem . ' to have attribute ' . $attr . ', but it does not.');\n }\n\n $current_value = $element->getAttribute($attr);\n\n if ($url_flag) {\n $current_value = $this->locatePath($current_value);\n }\n\n return $current_value;\n }", "title": "" }, { "docid": "eb756a9f24aad51d8d4f08a58d25edec", "score": "0.5611312", "text": "public function get_attr($html_attr)\r\n {\r\n if (isset($this->attr[$html_attr]))\r\n return ($this->attr[$html_attr]);\r\n return (NULL);\r\n }", "title": "" }, { "docid": "53fb0b61804afd6e5e792ba7b599c6ce", "score": "0.5608082", "text": "public function attrs(): HtmlAttributes\n {\n return $this->attrs;\n }", "title": "" } ]
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "547931506e9db956cc3911b6597b1b13", "score": "0.0", "text": "public function run()\n {\n $faker = Faker\\Factory::create();\n $status=array('Phòng trống', 'Phòng bận', 'Phòng đang sửa chữa');\n for($i = 1; $i <= 10; $i++){\n for($k=1; $k<=2; $k++){\n for($j=1; $j<=10; $j++){\n DB::table('rooms')->insert([\n 'name' => 'Room'.$j,\n 'status' => $faker-> randomElement($array = $status),\n 'cinemas_id' => $i,\n 'days_id' => $k,\n 'created_at' => Carbon\\Carbon::now()\n ]); \n }\n }\n }\n }", "title": "" } ]
[ { "docid": "71c6796615a8344ad02f1c59309a8195", "score": "0.810222", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n $roles = ['superadmin', 'admin', 'user'];\n for ($i=0; $i<count($roles); $i++)\n {\n \\App\\Role::create([\n 'name' => $roles[$i]\n ]);\n }\n\n factory(\\App\\User::class, 10)->create();\n factory(\\App\\Category::class, 5)->create();\n factory(\\App\\Product::class, 20)->create();\n\n $prod_id = \\App\\Product::pluck('id');\n $prod_count = count($prod_id);\n\n foreach ($users = \\App\\User::all() as $user)\n {\n for ($i=0; $i<rand(0, $prod_count); $i++)\n {\n $id = $prod_id[$i];\n $user->favorites()->attach($id);\n }\n }\n factory(\\App\\Review::class, 20)->create();\n }", "title": "" }, { "docid": "da4e361a9e2ff83579cb0561d63b82c2", "score": "0.7990817", "text": "public function run()\n {\n\n DB::table('users')->insert([\n [\n 'name' => \"admin\",\n 'email' => \"[email protected]\",\n 'phone' => \"082181189178\",\n 'role' => \"admin\",\n 'password' => bcrypt('admin')\n ],\n ]);\n\n DB::table('categories')->insert([\n [\n 'name' => \"Beach\",\n ],\n [\n 'name' => 'Mountain',\n ]\n ]);\n\n DB::table('articles')->insert([\n [\n 'user_id' => 4,\n 'categories_id' => 1,\n 'title' => 'Pantai Kuta Bali',\n 'description' => 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Eligendi repellat',\n 'image' => 'b1.jpeg',\n ],\n [\n 'user_id' => 4,\n 'categories_id' => 1,\n 'title' => 'Pantai',\n 'description' => 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Eligendi repellat',\n 'image' => 'b2.jpeg',\n ]\n ]);\n\n\n // $this->call(UserSeeder::class);\n }", "title": "" }, { "docid": "9be7037c6bd7f61f2f9bfe3d1ad6aa33", "score": "0.7957593", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory('App\\User', 20)->create();\n factory('App\\Company', 20)->create();\n factory('App\\Property', 20)->create();\n\n $categories = [\n 'Sold',\n 'Under Offer',\n 'Sold STC',\n 'For Sale'\n ];\n foreach ($categories as $category){\n Category::create(['name'=>$category]);\n }\n\n $propertytypes = [\n 'House',\n 'Bungalow',\n 'Flat'\n ];\n foreach ($propertytypes as $proptype){\n PropertyType::create(['name'=>$proptype]);\n }\n }", "title": "" }, { "docid": "643ca4b2b0a3350305279ecc21004f82", "score": "0.7939023", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n // 30 tag\n $tags = factory(App\\Tag::class, 30)->create();\n\n // 10 categorie\n $categories = factory(App\\Category::class, 10)->create();\n\n // 10 utenti\n $users = factory(App\\User::class, 10)->create();\n\n foreach ($users as $user) {\n // 15 post per utente\n $posts = factory(App\\Post::class, 15)->create([\n 'user_id' => $user->id,\n // 1 categoria random fra quelle create\n 'category_id' => $categories->random()->id,\n ]);\n // 3 tag random fra quelli create\n\n foreach ($posts as $post) {\n $post->tags()->sync($tags->random(3));\n }\n }\n }", "title": "" }, { "docid": "65835db97635cc435cdea4358f845df1", "score": "0.7937348", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n Role::create([\n 'name' => 'Administrator'\n ]);\n Role::create([\n 'name' => 'Member'\n ]);\n\n Status::create([\n 'name' => 'Active'\n ]);\n Status::create([\n 'name' => 'Inactive'\n ]);\n\n Site::create([\n 'name' => 'T&D Jogja'\n ]);\n\n User::create([\n 'site_id' => 1,\n 'role_id' => 1,\n 'name' => 'Admin',\n 'last_name' => 'Jogja',\n 'email' => '[email protected]',\n 'password' => Hash::make('password')\n ]);\n }", "title": "" }, { "docid": "ea5361a7636055f6a2ac45f40d6f9660", "score": "0.7930582", "text": "public function run()\n {\n $this->call(RolesTableSeeder::class);\n $this->call(UserTableSeeder::class);\n\n factory(App\\Category::class, 10)->create();\n factory(App\\Publisher::class, 20)->create();\n factory(App\\Author::class, 30)->create();\n factory(App\\Book::class, 100)->create()->each(function ($book) {\n\n $id_a = rand(1,30);\n $book->authors()->attach($id_a);\n });\n factory(App\\User::class, 100)->create()->each(function ($user){\n $rating = rand(1,10);\n $fav = rand(0,1);\n $books = \\App\\Book::inRandomOrder()->first();\n\n\n $user->books()->attach($books->isbn,[\n 'rating' => $rating,\n 'favourite' => $fav]);\n });\n }", "title": "" }, { "docid": "4b00078ab9a8de5ccf3ec46c08be4992", "score": "0.79253244", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'Super Admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('tester'),\n ]);\n\n DB::table('tags')->insert([\n 'tag' => 'Romance'\n ]);\n\n DB::table('categories')->insert([\n 'category' => 'AniManga'\n ]);\n\n DB::table('categories')->insert([\n 'category' => 'Novel'\n ]);\n\n DB::table('categories')->insert([\n 'category' => 'Light Novel'\n ]);\n\n DB::table('categories')->insert([\n 'category' => 'News'\n ]);\n\n DB::table('categories')->insert([\n 'category' => 'Entertainment'\n ]);\n\n DB::table('categories')->insert([\n 'category' => 'Celebrity'\n ]);\n }", "title": "" }, { "docid": "a19ba6eedf512446a4ff6a821f942a7f", "score": "0.78956264", "text": "public function run()\n {\n // $this->call(ArticlesTableSeeder::class);\n factory(App\\Article::class, 30)->create();\n // $this->call(UsersTableSeeder::class);\n \n $faker = Faker::create();\n $statuses = ['Waiting for approval', 'Approved', 'In progress'];\n foreach (range(1, 400) as $index) {\n \\DB::table('projects')->insert([\n 'status' => $statuses[shuffle($statuses)],\n 'deadline' => $faker->dateTimeBetween('+1 month', '+2 month'),\n 'budget' => rand(10000, 500000),\n ]);\n }\n }", "title": "" }, { "docid": "7c0e5f0f3d9257d2cc92932318f34df1", "score": "0.7893241", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n\n App\\User::create([\n 'name' => 'German Middi',\n 'email' => '[email protected]',\n 'password' => bcrypt('123456')\n ]);\n\n\n App\\Models\\Category::create([\n 'title' => 'Agenda',\n ]);\n\n App\\Models\\PostStatu::create([\n 'status_txt' => 'Borrador',\n ]);\n \n App\\Models\\PostStatu::create([\n 'status_txt' => 'Publicado',\n ]);\n\n App\\Models\\PostStatu::create([\n 'status_txt' => 'Oculta',\n ]);\n \n App\\Models\\Post::create([\n 'user_id' => 1,\n 'title' => 'Primer Post',\n 'body' => 'Lorem ipsum dolor sit amet consectetur, adipisicing elit. Reiciendis deserunt quisquam dolore iusto impedit repellendus quam odio porro laborum harum facilis non accusantium ducimus, est dolores amet ab temporibus numquam.',\n 'category_id' => 1,\n 'status_id' => 1\n ]);\n\n\n\n\n //factory(App\\Models\\Category::class, 8)->create();\n // factory(App\\Models\\Post::class, 24)->create();\n \n }", "title": "" }, { "docid": "9ba09b0cd477f6bcc7e404fb53ae0298", "score": "0.7893209", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n Category::insert([\n ['name' => 'Computer'],\n ['name' => 'Cellphone'],\n ['name' => 'Watch'],\n ['name' => 'Headphone']\n ]);\n Subcategory::insert([\n ['name' => 'Laptop', 'category_id' => '1'],\n ['name' => 'Desktop', 'category_id' => '1'],\n ['name' => 'Iphone', 'category_id' => '2'],\n ['name' => 'Wrist', 'category_id' => '3'],\n ['name' => 'Wired', 'category_id' => '4']\n ]);\n }", "title": "" }, { "docid": "ca98272f756ed2422862b346c61bd5a3", "score": "0.7889463", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\Professional::factory(20)->create();\n \\App\\Models\\MedicalCenter::factory(12)->create();\n \\App\\Models\\Affiliate::factory(200)->create();\n\n $this->SeedSpecializations();\n $this->SeedProfessionalSpecializations();\n $this->SeedAvailability();\n }", "title": "" }, { "docid": "efa9a59b6fcaad178163e02ca6c3670b", "score": "0.78812075", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n DB::table('books')->truncate();\n // Only seed if not in production environment\n if (!App::environment('production')) {\n $payload = [\n ['Php In Use', 'thanhnt'],\n ['Advance Java', 'tuvd'],\n ['Html5 practical', 'vidm'],\n ];\n foreach ($payload as $book) {\n Book::create([\n 'title' => $book[0],\n 'author' => $book[1],\n ]);\n }\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "b4aa656fb085f9b1b9a13c6a767fa97e", "score": "0.78684664", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \n factory(App\\User::class, 20)->create()->each(function ($users) {\n // Seed the relation with one address\n $songs = factory(App\\Songs::class)->make();\n $users->songs()->save($songs);\n \n }); \n\n }", "title": "" }, { "docid": "b64e1978db418d4451b3ed7886d2c896", "score": "0.7867829", "text": "public function run()\n {\n // Uncomment the below to wipe the table clean before populating\n // DB::table('advisors')->delete();\n\n $advisors = [\n ['id' => '0001111', 'first_name' => 'Hassan', 'last_name' => 'Reza', 'email' => '[email protected]'],\n ['id' => '0002222', 'first_name' => 'Travis', 'last_name' => 'Desell', 'email' => '[email protected]'],\n ];\n\n // Uncomment the below to run the seeder\n DB::table('advisors')->insert($advisors);\n }", "title": "" }, { "docid": "83806ba52791ac39317a9e97fdf5a167", "score": "0.78631747", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(Post::class, 10)->create();\n factory(User::class, 10)->create();\n factory(Catagory::class, 10)->create();\n }", "title": "" }, { "docid": "ab431e20cc3d00876d3107671e71dfce", "score": "0.7857198", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n \n DB::table('rols')->insert([\n 'nombre'=>'Administradores',\n 'estado' =>1\n ]);\n\n\n DB::table('personas')->insert([\n 'nombre'=>'admin',\n 'idRol' => 1,\n 'estado' =>1\n ]);\n\n\n DB::table('usuarios')->insert([\n 'nombre'=>'admin',\n 'password' => 'admin',\n 'idPersona' => 1,\n 'estado' => 1\n ]);\n\n\n\n DB::table('rols')->insert([\n 'nombre'=>'Bodeguero',\n 'estado' =>1\n ]);\n\n\n DB::table('rols')->insert([\n 'nombre'=>'Empleados',\n 'estado' =>1\n ]);\n\n }", "title": "" }, { "docid": "60ca7f756e4476d50cae23404adff94e", "score": "0.7848712", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 10)->create();\n factory(App\\User::class, 'admin', 1)->create();\n factory(App\\Event::class, 10)->create();\n factory(App\\Vacation::class, 10)->create();\n factory(App\\UserActivites::class, 10)->create();\n \n\n for ($i = 1; $i <= 10; $i++ ) {\n DB::table('user_vacation')->insert([\n 'user_id' => rand(1, 10),\n 'vacation_id' => rand(1, 10)\n ]);\n }\n DB::table('roles')->insert([\n [\n 'role_name' => \"admin\",\n ],\n [\n 'role_name' => \"manager\",\n ],\n [\n 'role_name' => \"employee\",\n ],\n ]);\n }", "title": "" }, { "docid": "87e9177da05f4ca3502f77df8e5593ef", "score": "0.78444487", "text": "public function run()\n {\n // DB::table('users')->truncate();\n // factory(User::class)->create(\n // [\n // \"email\"=>\"[email protected]\",\n // \"password\"=>Hash::make(App::environment(\"DB_PASSWORD\"))\n // ]\n // );\n $this->call(CategorySeeder::class);\n \n $this->call(DiscountSeeder::class);\n\n }", "title": "" }, { "docid": "9b678da2216c7ad2d5530677c1dba41e", "score": "0.7829541", "text": "public function run()\n {\n $faker = Faker\\Factory::create();\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n \\App\\Sport::truncate();\n \t$sports = [\n \t\t[\n \t\t\t'name' => 'Basquete',\n \t\t],\n \t\t[\n \t\t\t'name' => 'Volei',\n \t\t],\n \t\t[\n \t\t\t'name' => 'Futebol',\n \t\t],\n \t\t[\n \t\t\t'name' => 'Canoagem',\n \t\t],\n \t\t[\n \t\t\t'name' => 'Tênis de mesa',\n \t\t],\n \t\t[\n \t\t\t'name' => 'Bets',\n \t\t],\n \t\t[\n \t\t\t'name' => 'Pipa',\n \t\t],\n \t];\n \t\n \t\n \t\\App\\Sport::insert($sports);\n\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n }", "title": "" }, { "docid": "2d62531f18a91512d0a3f0505f4ef886", "score": "0.78210163", "text": "public function run()\n {\n\n $faker= Faker::create();\n\n foreach (range(1,100) as $index){\n Article::create([\n 'title'=>$faker->sentence(6),\n 'description'=>$faker->paragraph(1),\n ]);\n }\n // \\App\\Models\\User::factory(10)->create();\n }", "title": "" }, { "docid": "08a77e0fbb8703933812bc2c29d383da", "score": "0.78156805", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\Langage::class, 5)\n ->create()\n ->each(function($lang) {\n $lang->translations()->saveMany(factory(App\\Translation::class,\n rand(2, 4))->make());\n });\n }", "title": "" }, { "docid": "a6e889f662490d03076345e00e725d10", "score": "0.7809831", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('events')->insert([\n 'name' => 'sport',\n 'description' => 'football match ',\n 'address' => 'alex gleem '\n ]);\n DB::table('events')->insert([\n 'name' => 'art',\n 'description' => 'draw ',\n 'address' => 'alex sedy gaber '\n ]);\n DB::table('events')->insert([\n 'name' => 'running',\n 'description' => 'running ',\n 'address' => 'alex mandara '\n ]);\n }", "title": "" }, { "docid": "6dca1a129907a23e6374ee008363cb13", "score": "0.7809656", "text": "public function run()\n {\n // La creación de datos de roles debe ejecutarse primero\n $this->call(RoleTableSeeder::class);\n\n // Los usuarios necesitarán los roles previamente generados\n $this->call(UserTableSeeder::class);\n \n DB::table('places')->insert(['place'=>'Depósito']);\n DB::table('places')->insert(['place'=>'Showroom']);\n \n DB::table('img_categories')->insert(['category'=>'previewA']);\n DB::table('img_categories')->insert(['category'=>'previewB']);\n DB::table('img_categories')->insert(['category'=>'previewLarge']);\n DB::table('img_categories')->insert(['category'=>'imgCatalog']);\n \n DB::table('shoe_categories')->insert(['name'=>'Boots']);\n DB::table('shoe_categories')->insert(['name'=>'Sandals']);\n DB::table('shoe_categories')->insert(['name'=>'Stilettos']);\n DB::table('shoe_categories')->insert(['name'=>'Flats']);\n DB::table('shoe_categories')->insert(['name'=>'Tango']);\n \n /* factory(Shoe::class)->times(6)->create(); */\n\n DB::table('addresses')->insert([\n 'user_id'=> 1,\n 'name'=> 'Showroom',\n 'surname'=>'Laila Frank',\n 'street'=>'3 de Febreo',\n 'number'=>'1390',\n 'floor'=>'floor',\n 'apartment'=>'Planta baja E',\n 'city'=>'Capital Federal',\n 'state'=>'Buenos Aires',\n 'post_code' =>'C1428AHD',\n 'country'=>'Argentina'\n ]);\n }", "title": "" }, { "docid": "42022b50cf9926c784f4e79e0feacbdb", "score": "0.78001225", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n // Event::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 Event::create([\n 'image' => $faker->image(),\n 'name' => $faker->name(),\n 'date_time' => $faker->date(),\n 'venue' => $faker->address,\n 'phone' => $faker->phoneNumber,\n 'u_id' => $faker->numberBetween($min=1,$max=11), \n 'o_id' => $faker->numberBetween($min=1,$max=11)\n ]);\n }\n }", "title": "" }, { "docid": "f875ec63b40623c53ead81b3a234fea0", "score": "0.7794292", "text": "public function run()\n {\n DB::table('users')->insert([\n 'name' => \"root\",\n 'email' => \"[email protected]\",\n 'password' => Hash::make('password'),\n ]);\n\n DB::table('phones')->insert([\n 'user_id' => 1,\n 'number' => \"593101010\",\n ]);\n\n DB::table('comments')->insert([\n 'user_id' => 1,\n 'text' => \"My first comment\",\n ]);\n\n DB::table('comments')->insert([\n 'user_id' => 1,\n 'text' => \"My second comment\",\n ]);\n\n DB::table('roles')->insert([\n 'name' => \"customer\",\n ]);\n\n DB::table('roles')->insert([\n 'name' => \"admin\",\n ]);\n\n DB::table('role_user')->insert([\n 'role_id' => 1,\n 'user_id' => 1,\n ]);\n\n DB::table('role_user')->insert([\n 'role_id' => 2,\n 'user_id' => 1,\n ]);\n }", "title": "" }, { "docid": "afa07ed6bd16bbdeb1f41cb52db0a467", "score": "0.7788638", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'Yuri Ramos Canário Campos',\n 'password' => 'root',\n 'email' => '[email protected]'\n ]);\n \n DB::table('languages')->insert(['name' => 'english']);\n DB::table('languages')->insert(['name' => 'portuguese']);\n DB::table('languages')->insert(['name' => 'spanish']);\n DB::table('knowledges')->insert(['title' => 'Javascript']);\n DB::table('knowledges')->insert(['title' => 'Laravel']);\n DB::table('knowledges')->insert(['title' => 'PHP']);\n DB::table('knowledges')->insert(['title' => 'Delphi']);\n DB::table('courses')->insert(['title' => 'Javascript para Idiotas','emissor' => 'Colégio Dona Bimbinha']);\n DB::table('courses')->insert(['title' => 'Laramassa','emissor' => 'Robertinho Cursos']);\n DB::table('formations')->insert([\n 'title' => 'Analista de Sistemas',\n 'level' => 'Superior'\n ]);\n DB::table('curriculums')\n ->insert(['address'=> 'Coronel Elysio Pereira, 71','phone' => '3422-5194', 'cellphone' => '98535-7065', 'id_user' => 1]);\n }", "title": "" }, { "docid": "e877ab72f0de79c5f54deb3654d66410", "score": "0.7775003", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //factory(\\App\\Model\\User::class, 5)->create();\n //factory(\\App\\Model\\News::class, 150)->create();\n //factory(\\App\\Model\\BookCategory::class, 10)->create();\n //factory(\\App\\Model\\Books::class, 100)->create();\n // factory(\\App\\Model\\Ticket::class, 20)->create();\n //factory(\\App\\Model\\Forum::class, 10)->create();\n //factory(\\App\\Model\\ForumAnswer::class, 40)->create();\n //factory(\\App\\Model\\Community::class, 30)->create();\n //factory(\\App\\Model\\CommunityPost::class, 90)->create();\n //factory(\\App\\Model\\Elon::class, 90)->create();\n //factory(\\App\\Model\\VideoCourse::class, 50)->create();\n //factory(\\App\\Model\\VideoCourseGallery::class, 150)->create();\n //factory(\\App\\Model\\FaqCategory::class, 10)->create();\n //factory(\\App\\Model\\Faq::class, 100)->create();\n// factory(\\App\\Model\\PoolResult::class, 50)->create();\n// factory(\\App\\Model\\Notice::class, 50)->create();\n\n }", "title": "" }, { "docid": "7784ebb5b249a5db796b6f9983ce71ff", "score": "0.77745116", "text": "public function run()\n {\n $user = App\\User::all()->pluck('id')->toArray();\n $faker = Faker::create();\n\n DB::table('posts')->insert([\n [\n 'user_id' =>Arr::random($user),\n 'title' => 'How to use a lightsaber efficiently',\n 'body' => $faker->text($maxNbChars = 2000),\n ],\n [\n 'user_id' =>Arr::random($user),\n 'title' => 'How to deal with an distant father',\n 'body' => $faker->text($maxNbChars = 2000),\n ],\n [\n 'user_id' =>Arr::random($user),\n 'title' => 'How to lose a holochess game to a Wookie',\n 'body' => $faker->text($maxNbChars = 2000),\n ],\n ]);\n }", "title": "" }, { "docid": "05d569ef8b55f0987f197ee527ce3d09", "score": "0.77744925", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\Models\\User::class, 20)->create();\n factory(App\\Models\\Location::class, 20)->create();\n factory(App\\Models\\Category::class, 10)->create();\n factory(App\\Models\\Course::class, 20)->create();\n factory(App\\Models\\Tutor::class, 20)->create();\n factory(App\\Models\\Role::class, 3)->create();\n \n }", "title": "" }, { "docid": "27fc74dfbd1c11bbbe2e4767b9aef069", "score": "0.77672327", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n\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// \\App\\User::create([\n// 'name' => $faker->sentence,\n// 'email' => $faker->email,\n// 'password' => $faker->password(8, 15),\n// 'api_token' => $faker->name('Jll7q0BSijLOrzaOSm5Dr5hW9cJRZAJKOzvDlxjKCXepwAeZ7JR6YP5zQqnw')\n// ]);\n// }\n for ($i = 0; $i < 50; $i++) {\n \\App\\Job::create([\n 'title' => $faker->sentence,\n 'description' => $faker->sentence,\n 'organization' => $faker->sentence,\n 'type' => $faker->word('U'),\n 'salary' => $faker->numberBetween(10000,50000),\n 'date' => $faker->date('1996-08-26')\n ]);\n }\n }", "title": "" }, { "docid": "e81d2ef647926f3ba5603be994a414ca", "score": "0.7765724", "text": "public function run()\n {\n // users table seeds\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('password'),\n 'user_type' => 1,\n 'status' => 1,\n ]);\n\n // users table seeds\n DB::table('roles')->insert([\n 'name' => 'admin',\n 'display_name' => 'Administrator',\n 'description' => 'administrator can access admin panel',\n ]);\n\n DB::table('roles')->insert([\n 'name' => 'instructor',\n 'display_name' => 'Instructor',\n 'description' => 'instructor can not access admin panel',\n ]);\n\n DB::table('roles')->insert([\n 'name' => 'student',\n 'display_name' => 'Student',\n 'description' => 'student can not access admin panel',\n ]);\n\n // permissions table seeds\n DB::table('permissions')->insert([\n 'name' => 'question',\n 'display_name' => 'question',\n 'description' => 'question',\n ]);\n\n DB::table('permissions')->insert([\n 'name' => 'exam',\n 'display_name' => 'exam',\n 'description' => 'exam',\n ]);\n }", "title": "" }, { "docid": "e21ba40d9f1a7c1c807e323e4659bf00", "score": "0.7761533", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n \\App\\User::truncate();\n \\App\\Profile::truncate();\n \\App\\Group::truncate();\n \\App\\GroupUser::truncate();\n\n $user = factory('App\\User')->create([\n 'email' => '[email protected]',\n 'password' => bcrypt(123123),\n 'is_confirmed' => true\n ]);\n\n factory('App\\Profile')->create(['user_id' => $user->id]);\n\n $users = factory('App\\User', 100)->create();\n\n $groups = factory('App\\Group', 20)->create();\n\n $users->each(function ($user) {\n factory('App\\Profile')->create(['user_id' => $user->id]);\n });\n\n $groups->each(function ($group) {\n factory('App\\GroupUser', 5)->create(['group_id' => $group->id]);\n });\n\n }", "title": "" }, { "docid": "ddcf0166e4683fc6ddd3a15c1619f33f", "score": "0.7761254", "text": "public function run()\n {\n $categories = ['Bollywood','Hollywood','Sports','Politics','Health','Tips','Local'];\n foreach($categories as $category){\n DB::table('categories')->insert([\n 'title' => $category\n ]);\n }\n // $this->call(UsersTableSeeder::class);\n // factory(App\\Category::class, 10)->create();\n // factory(App\\User::class, 10)->create();\n }", "title": "" }, { "docid": "2a91b06c48e8a30771182a29303f45e7", "score": "0.77577376", "text": "public function run()\n {\n $this->call(UserSeeder::class);\n $this->call(AuthorSeeder::class);\n $this->call(BookSeeder::class);\n $this->call(GenreSeeder::class);\n $this->call(FollowSeeder::class);\n factory(App\\Shelf::class,4)->create();\n $this->call(reviewSeeder::class);\n //factory(App\\Review::class,1)->create();\n /*factory(App\\User::class, 50)->create();\n factory(App\\Author::class, 20)->create();\n factory(App\\Book::class, 50)->create();\n factory(App\\Review::class,50)->create();\n factory(App\\Genre::class, 20)->create();\n factory(App\\Comment::class,30)->create();\n factory(App\\Likes::class,30)->create();\n factory(App\\Shelf::class,20)->create();\n factory(App\\Following::class,15)->create();*/\n\n }", "title": "" }, { "docid": "7ceb2ba0b5921e33483bce90bd4dcff8", "score": "0.7755898", "text": "public function run()\n {\n // Truncate existing records to start from scratch.\n DB::table('items')->delete();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few items in our database:\n for ($i = 0; $i < 50; $i++) {\n $item_create = Item::create([\n 'name' => $faker->name,\n 'qnt' => $faker->numberBetween(1, 200),\n 'value' => $faker->numberBetween(1, 1264),\n 'category' => $faker->word,\n 'subcategory' => $faker->word,\n 'collection_id' => $faker->numberBetween(0, 1264),\n 'tags' => $faker->shuffleArray([\"porsche\", \"design\"]),\n ]);\n $item_create -> orders() -> attach(Order::all()->random());\n }\n }", "title": "" }, { "docid": "9844485296efb745821003e46a8eb05f", "score": "0.7749864", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n // Calling Category Table Seeder\n // $this->call(CategoryTableSeeder::class);\n\n factory(Category::class,100)->create();\n factory(Person::class,100)->create();\n factory(Post::class,100)->create();\n }", "title": "" }, { "docid": "57c330d48459442abbc71684fe360201", "score": "0.77471614", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n// factory(\\App\\User::class, 4)->create();\n// factory(\\App\\Post::class, 15)->create();\n\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(UserRolesTableSeeder::class);\n $this->call(AttributeGroupsSeeder::class);\n $this->call(AttributeProductsSeeder::class);\n $this->call(AttributeValuesSeeder::class);\n $this->call(BrandsSeeder::class);\n $this->call(CategoriesSeeder::class);\n $this->call(CurrenciesSeeder::class);\n $this->call(GalleriesSeeder::class);\n $this->call(ProductsSeeder::class);\n $this->call(RelatedProductsSeeder::class);\n $this->call(OrdersSeeder::class);\n $this->call(AdminOrderProductsSeeder::class);\n }", "title": "" }, { "docid": "70d62fecb535e08b51a51e4932b4b2b3", "score": "0.77444977", "text": "public function run()\n {\n //\\App\\Models\\User::factory(1)->create();\n\n //Category::factory(3)->create();\n \n Tag::factory(10)->create();\n\n /*$this->call([\n PostsTableSeeder::class\n ]);*/\n }", "title": "" }, { "docid": "c76cc6eac7d476133144a0afc9b69d55", "score": "0.7744303", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class,10)->create();\n factory(Category::class,5)->create();\n factory(Question::class,5)->create();\n factory(Reply::class,50)->create()->each(function($reply){\n return $reply->like()->save(factory(Likes::class)->make());\n });\n User::create([\n 'name' => 'hamdi',\n 'email' => '[email protected]',\n 'password' => Hash::make('12345678')\n ]);\n }", "title": "" }, { "docid": "6260cdf97e46414c2a70f26808235789", "score": "0.77442646", "text": "public function run()\n {\n $this->cleanDatabase();\n \n Model::unguard();\n\n factory('App\\User',10)->create();\n factory('App\\Candidate', 10)->create();\n factory('App\\CandidateReview', 20)->create();\n\n // factory('App\\Candidate',10)->create()->each(function($candidate) use ($faker){\n\n // factory('App\\Review', 2)->create([ \n // 'user_id' => 1,\n // 'candidate_id' => $candidate->id,\n // 'review' => $faker->paragraph\n // ]);\n\n // });\n\n\n Model::reguard();\n }", "title": "" }, { "docid": "8044f6e9d8f8fc34aeb7da3559bef600", "score": "0.7743904", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n \t//quitar validaciones de llaves foeranas\n \tDB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n //truncaremos la tablas para eliminar datos existentes\n\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n\n DB::table('category_product')->truncate();\n\n //Ejecutamos factoris\n\n $CantidadUsuarios = 200;\n $CantidadCategorias = 70;\n $CantidadProductos = 2500;\n $CantidadTransaciones = 1650;\n\n\n factory(User::class, $CantidadUsuarios)->create();\n\n factory(Category::class, $CantidadCategorias)->create();\n\n factory(Product::class, $CantidadProductos)->create()->each(\n\n \t function ($producto)\n \t{\n \t\t$categorias = Category::all()->random(mt_rand(1, 5))->pluck('id');\n \t\t$producto->categories()->attach($categorias);\n \t}\n );\n\n factory(Transaction::class, $CantidadTransaciones)->create();\n }", "title": "" }, { "docid": "764c005a9562e9bdd683c2a6a7fbc498", "score": "0.7740468", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // insert Fake data to table\n\n\n DB::table('companies')->insert(['name' => \"Company 1\", 'created_at' => now()]);\n DB::table('companies')->insert(['name' => \"Company 2\", 'created_at' => now()]);\n DB::table('companies')->insert(['name' => \"Company 3\", 'created_at' => now()]);\n DB::table('companies')->insert(['name' => \"Company 4\", 'created_at' => now()]);\n\n\n DB::table('specialties')->insert(['name' => \"IT\", 'created_at' => now()]);\n DB::table('specialties')->insert(['name' => \"DT\", 'created_at' => now()]);\n\n\n DB::table('users')->insert([\n \"name\" => \"abd\",\n \"email\" => \"abd@haboub\",\n \"password\" => '$2y$10$F6qgEnGfdKncSgldWYchRerE4HjeI6lm1Zg7u8QPRFrsJSmk70Ava',\n \"role\" => 0,\n ]);\n }", "title": "" }, { "docid": "c6bb2cf6f8efd0afe02972619083aff6", "score": "0.7738983", "text": "public function run()\n {\n // Seed database with sample data\n $this->call(RolesTableSeeder::class);\n $this->call(OrganizationTypesTableSeeder::class);\n $this->call(MemberTypesTableSeeder::class);\n $this->call(OrganizationsTableSeeder::class);\n $this->call(MembersTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(ShowTypesSeeder::class);\n $this->call(ShowsTableSeeder::class);\n $this->call(PaymentMethodsTableSeeder::class);\n $this->call(EventTypesSeeder::class);\n $this->call(EventsTableSeeder::class);\n $this->call(TicketTypesTableSeeder::class);\n $this->call(SettingsTableSeeder::class);\n $this->call(CategoryTableSeeder::class);\n $this->call(ProductsTypeTableSeeder::class);\n $this->call(ProductsTableSeeder::class);\n $this->call(RolesAccessControlSeeder::class);\n $this->call(GradesSeeder::class);\n $this->call(PositionsTableSeeder::class);\n\n }", "title": "" }, { "docid": "7b3e6bbb4a66db96f151afdc65f1835a", "score": "0.77370405", "text": "public function run()\n {\n $this->call([\n PermissionsTableSeeder::class,\n RolesTableSeeder::class,\n PermissionRoleTableSeeder::class,\n UsersTableSeeder::class,\n RoleUserTableSeeder::class,\n TeamTableSeeder::class,\n TeamUserTableSeeder::class,\n CategorySeeder::class,\n ]);\n\n Blog::factory(5)->create(); // Create 5 blogs\n Tag::factory(2)->create(); // Create 8 tags\n\n foreach(Blog::all() as $blog){ // loop through all posts \n $random_tags = Tag::all()->random(rand(1, 2))->pluck('id')->toArray();\n // Insert random blog tag\n foreach ($random_tags as $tag) {\n DB::table('blog_tag')->insert([\n 'blog_id' => $blog->id,\n 'tag_id' => $tag,\n 'blog_tag_type' => \"blogs\",\n ]);\n }\n }\n }", "title": "" }, { "docid": "93c52e20cd594fea79bf6e21cba5bf0b", "score": "0.7736773", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n\n User::truncate();\n Category::truncate();\n Product::truncate();\n Role::truncate();\n DB::table('category_product')->truncate();\n\n User::flushEventListeners();\n Category::flushEventListeners();\n Product::flushEventListeners();\n Role::flushEventListeners();\n\n\n $this->call([\n RoleSeeder::class\n ]);\n\n $usersQuantity = 100;\n $categoriesQuantity = 30;\n $productsQuantity = 100;\n\n User::factory()\n ->count($usersQuantity)\n ->create();\n\n Category::factory()\n ->count($categoriesQuantity)\n ->create();\n\n Product::factory()\n ->count($productsQuantity)\n ->create()\n ->each(function($product){\n $categories = Category::all()->random(mt_rand(1,5))->pluck('id');\n\n $product->categories()->attach($categories);\n });\n }", "title": "" }, { "docid": "bfa9e61d9a3e49e7b926d240b764afaa", "score": "0.77351654", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // DB::table('superadmin_account')->insert([\n // 'name' => 'Administrator',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('admin')\n // ]);\n\n DB::table('tm_role')->insert([\n 'name' => 'Administrator',\n 'level' => 'Admin',\n 'description' => 'Role for administrator'\n ]);\n\n DB::table('tm_role')->insert([\n 'name' => 'User',\n 'level' => 'User',\n 'description' => 'Role for user'\n ]);\n\n $this->call([\n UserSeeder::class,\n ]);\n\n $this->call([\n ModuleSeeder::class,\n ]);\n\n $this->call([\n MenuSeeder::class,\n ]);\n\n $this->call([\n AccessSeeder::class,\n ]);\n\n $this->call([\n ProductCategorySeeder::class,\n ]);\n }", "title": "" }, { "docid": "4dcbd25935917c2d381dccc8d7ded3ad", "score": "0.7734701", "text": "public function run()\n {\n City::factory(config('serempre.seeds.cities'))\n ->hasClients(config('serempre.seeds.clients'))\n ->create();\n\n User::create([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password\n ]);\n\n User::factory(config('serempre.seeds.users'))\n ->create();\n }", "title": "" }, { "docid": "32ccd27e79a39d71880d591a0a9f0bfc", "score": "0.7732237", "text": "public function run()\n {\n //to insert data into my DB table using seed class and call this seeder class inside DatabseSeeder\n // DB::table('posts')->insert([\n\n // 'title' => 'First Post Title',\n // 'body' => 'First Post Body',\n\n //to insert a second record just change this and run the seed commad.\n\n // 'title' => 'Second Post Title',\n // 'body' => 'Second Post Body',\n // ]);\n //to insert a multiple record at a time use Faker packege and write the below code\n\n $faker = Faker::create();\n foreach (range(1, 100) as $index) {\n DB::table('posts')->insert([\n 'title' => $faker->sentence(5),\n 'body' => $faker->paragraph(4),\n ]);\n }\n }", "title": "" }, { "docid": "d681f120866ba260ce624d8f848b39d2", "score": "0.7730474", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('posts')->insert([\n 'content' => \"Of course, manually specifying the attributes for each model seed is cumbersome. Instead, you can use model factories to conveniently generate large amounts of database records. First, review the model factory documentation to learn how to define your factories. Once you have defined your factories, you may use the factory helper function to insert records into your database.\",\n 'user_id'=>1\n ]);\n DB::table('posts')->insert([\n 'content' => \"Of course, for each model seed is cumbersome. Instead, you can use model factories to conveniently generate large amounts of database records. First, review the model factory documentation to learn how to define your factories. Once you have defined your factories, you may use the factory helper function to insert records into your database.\",\n 'user_id'=>2\n ]);\n DB::table('posts')->insert([\n 'content' => \"Of course, manually specifying the attributes for each model seed is cumbersome. Instead, you can use model factories to conveniently generate large amounts of database records. First, review the model factory documentation to learn how to define your factories. Once you have defined your factories, you may use the factory helper function to insert records into your database.\",\n 'user_id'=>1\n ]);\n DB::table('posts')->insert([\n 'content' =>\"Of course, manually specifying the attributes for each model seed is cumbersome. Instead, you can use model factories to conveniently generate large amounts the model factory documentation to learn how to define your factories. Once you have defined your factories, you may use the factory helper function to insert records into your database.\",\n 'user_id'=>2\n ]);\n }", "title": "" }, { "docid": "5f5815401e74483805353b02311e2841", "score": "0.7728041", "text": "public function run()\n {\n //faker 实例\n $faker=app(Faker\\Generator::class);\n //获取用户ID\n $users=User::all()->pluck(\"id\")->toArray();\n $posts=factory(Post::class)->times(100)->make()->each(function($post,$index) use ($users,$faker){\n $post->user_id=$faker->randomElement($users);\n });\n Post::insert($posts->toArray());\n }", "title": "" }, { "docid": "29b7b2d4d9390099d2c10f37ea147499", "score": "0.7719431", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n $this->call(RoleSeeder::class);\n $this->call(UserSeeder::class);\n $this->call(LocationSeeder::class);\n Library::factory(1)->create();\n Book::factory(20)->create();\n Category::factory(15)->create();\n rating::factory(20)->create();\n Blog::factory(20)->create();\n }", "title": "" }, { "docid": "bacac0bd28ab92bcc4f659047ceea4f7", "score": "0.7717704", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'Tobias de Vargas',\n 'email' =>'[email protected]',\n 'password' => bcrypt('12345678'),\n ]);\n\n DB::table('accs')->insert([\n 'nome' => 'Estágios',\n 'limiteHoras' =>'100',\n 'horas' => '180',\n 'user_id' => '1'\n ]);\n\n }", "title": "" }, { "docid": "752c92fd7013ac44464dfe6590becae6", "score": "0.7717582", "text": "public function run()\n {\n \\DB::table('positions')->delete();\n \\DB::table('divisions')->delete();\n \\DB::table('jabatans')->delete();\n \\DB::table('periodes')->delete();\n\n\n Jabatan::create(['name'=>'Founder']);\n Jabatan::create(['name'=>'Director']);\n Jabatan::create(['name'=>'Manager']);\n Jabatan::create(['name'=>'Staff']);\n\n Periode::create(['name'=>'1.0']);\n Periode::create(['name'=>'2.0']);\n Periode::create(['name'=>'3.0']);\n\n Division::factory(10)->create()->each(function($d) {\n $d->positions()\n ->saveMany(\n Position::factory(rand(4, 8))->make());\n }); \n }", "title": "" }, { "docid": "b8c4b74fe31609e49896f56f36110008", "score": "0.7716862", "text": "public function run()\n {\n Model::unguard();\n\n // $this->call(UserTableSeeder::class);\n\n DB::table('users')->insert([\n 'first_name' => 'Администратор',\n 'email' => '[email protected]',\n 'password' => bcrypt('adminadmin'),\n ]);\n\n DB::table('post_statuses')->insert([\n [ 'name' => 'Неопубликован' ],\n [ 'name' => 'На модерации' ],\n [ 'name' => 'Опубликован' ],\n ]);\n\n DB::table('menuitem_types')->insert([\n [ 'name' => 'Внутренняя ссылка' ],\n [ 'name' => 'Внешняя ссылка' ],\n [ 'name' => 'Маркер' ],\n [ 'name' => 'Группа маркеров' ],\n ]);\n\n\n DB::table('administrators')->insert([\n\n 'username' => 'admin',\n 'password' => bcrypt('adminadmin'),\n 'name' => 'Администратор'\n ]);\n\n DB::table('marker_groups')->insert([\n\n [ 'name' => 'Кухня' ],\n [ 'name' => 'Блюдо' ],\n [ 'name' => 'Дневной рацион' ],\n ]);\n\n Model::reguard();\n }", "title": "" }, { "docid": "1412b7a500fe55705ba8cc8539e01d88", "score": "0.77126175", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\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 $productQty = 200;\n $categoryQty = 20;\n $userQty = 10;\n $transactionQty = 100;\n\n factory(User::class, $userQty)->create();\n factory(Category::class, $categoryQty)->create();\n factory(Product::class, $productQty)->create()->each(function($product){\n \t$categories = Category::all()->random(mt_rand(1,5))->pluck('id');\n \t$product->categories()->attach($categories);\n });\n factory(Transaction::class, $transactionQty)->create();\n\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 1');\n }", "title": "" }, { "docid": "5269eca04d3ed6025e05fdb9504e19a7", "score": "0.7711065", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class,50)->create();\n // factory(App\\Category::class,50)->create();\n\n $category=new App\\Category();\n $category->title = \"Features\";\n $category->slug = \"features\";\n $category->save();\n\n $category=new App\\Category();\n $category->title = \"Food\";\n $category->slug = \"food\";\n $category->save();\n\n $category=new App\\Category();\n $category->title = \"Travel\";\n $category->slug = \"travel\";\n $category->save();\n\n $category=new App\\Category();\n $category->title = \"Recipe\";\n $category->slug = \"recipe\";\n $category->save();\n\n $category=new App\\Category();\n $category->title = \"Bread\";\n $category->slug = \"bread\";\n $category->save();\n\n $category=new App\\Category();\n $category->title = \"Breakfast\";\n $category->slug = \"breakfast\";\n $category->save();\n\n $category=new App\\Category();\n $category->title = \"Meat\";\n $category->slug = \"meat\";\n $category->save();\n\n $category=new App\\Category();\n $category->title = \"Fastfood\";\n $category->slug = \"fastfood\";\n $category->save();\n\n $category=new App\\Category();\n $category->title = \"Salad\";\n $category->slug = \"salad\";\n $category->save();\n\n $category=new App\\Category();\n $category->title = \"Soup\";\n $category->slug = \"soup\";\n $category->save();\n }", "title": "" }, { "docid": "0f6e15864469f10a25811c4b5ffceae1", "score": "0.77107096", "text": "public function run()\n {\n /*\n $l=12;\n $faker = Faker\\Factory::create();\n for ($i=1; $i <=$l ; $i++) {\n DB::table('posts')->insert([\n 'title' => 'Titulo'.$i,\n 'description' => $faker->text(),\n 'date' => $faker->date(),\n 'image' => \"58b969a711b739.97759974.png\",\n ]);\n DB::table('tags')->insert([\n 'name' => 'tag'.$i\n ]);\n \t}\n\n for ($i=1; $i <=$l ; $i++) {\n DB::table('post_tag')->insert([\n 'tag_id' => random_int(1, $l),\n 'post_id' => random_int(1, $l)\n ]);\n }\n */\n }", "title": "" }, { "docid": "c201b766accf1049c723381225596164", "score": "0.77106935", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(SettingsTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n $this->call(PostsTableSeeder::class);\n $this->call(TagsTableSeeder::class); \n \n\n // $roles = App\\Role::all();\n // // Populate the pivot table\n // App\\User::all()->each(function ($user) use ($roles) { \n // $user->roles()->attach(\n // $roles->random(rand(1, 3))->pluck('id')->toArray()\n // ); \n // });\n }", "title": "" }, { "docid": "8a6f5e3e9c04d0e7d353bd8388559963", "score": "0.77106106", "text": "public function run()\n\t{\n\t\t// Safety measure\n\t\tif(App::environment() == 'production')\n\t\t{\n\t\t\texit('No seeding allowed on production!');\n\t\t}\n\n\t\tEloquent::unguard();\n\n\t $this->insertDefaultUsers();\n\n $this->insertGroups();\n\n $this->addGroupToAdmin();\n\n $this->insertExamplePost();\n \t\t\n\t}", "title": "" }, { "docid": "cccf46daff53fc4f07d90d32ee0a1341", "score": "0.77092713", "text": "public function run()\n {\n $this->call(AdminsTableSeeder::class);\n\n \\App\\Models\\Teacher::factory(100)->create();\n \\App\\Models\\Student::factory(200)->create();\n\n $classes = \\App\\Models\\ClassModel::factory(300)->create();\n ClassModel::chunk(300, function ($classes) {\n foreach ($classes as $class) {\n $student = Student::whereDoesntHave('classes', function($query) use ($class) {\n $query->where('classes.id', $class->id);\n })->get()->random();\n \n ClassStudent::factory()->create(['class_id' => $class->id, 'student_id' => $student->id]);\n }\n });\n\n \\App\\Models\\Mark::factory(700)->create();\n }", "title": "" }, { "docid": "38f2e7532c266522e1d0527e4e080cd3", "score": "0.7709134", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \n App\\User::truncate();\n App\\Article::truncate();\n App\\ArticlePage::truncate();\n App\\Comment::truncate();\n\n factory(App\\User::class)->states('myself')->create();\n factory(App\\ArticlePage::class, 20)->create();\n \n $this->call(AdminSeeder::class);\n }", "title": "" }, { "docid": "6173f7ee7635dd924f5ec4c33ab9966a", "score": "0.7703554", "text": "public function run()\n\t{\n\t\tDB::table(self::TABLE_NAME)->delete();\n\n\t\tforeach (seed(self::TABLE_NAME) as $row)\n\t\t\t$records[] = [\n\t\t\t\t'id'\t\t\t=> $row->id,\n\t\t\t\t'created_at'\t=> $row->created_at ?? Carbon::now(),\n\t\t\t\t'updated_at'\t=> $row->updated_at ?? Carbon::now(),\n\n\t\t\t\t'slug'\t\t\t=> $row->slug,\n\t\t\t\t'name'\t\t\t=> $row->name,\n\t\t\t];\n\n\t\tinsert(self::TABLE_NAME, $records ?? []);\n\t}", "title": "" }, { "docid": "3517e76e1d8f527e81c70605de01d848", "score": "0.77019715", "text": "public function run()\n {\n $this->seed([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'password' => bcrypt(000000),\n 'group_id' => 1\n ]);\n\n $this->seed([\n 'name' => 'user1',\n 'email' => '[email protected]',\n 'password' => bcrypt(000000),\n 'group_id' => 3,\n 'district_id' => 35\n ]);\n\n }", "title": "" }, { "docid": "f69ae85a098afc8ab68302edd3f0490e", "score": "0.7698164", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('category_models')->insert([\n 'category' => 'cat',\n ]);\n DB::table('category_models')->insert([\n 'category' => 'dog',\n ]);\n }", "title": "" }, { "docid": "09a708b4e0b52ad5f5689964fc70b6d0", "score": "0.7697185", "text": "public function run()\n {\n //\\App\\Models\\User::factory(50)->create();\n //\\App\\Models\\Skupina::factory(10)->create();\n //\\App\\Models\\Vlakno::factory(50)->create();\n //\\App\\Models\\Prispevek::factory(250)->create();\n //\\App\\Models\\Zadost::factory(10)->create();\n //\\App\\Models\\Clen::factory(100)->create();\n //\\App\\Models\\Hodnotil::factory(1000)->create();\n //\\App\\Models\\Moderator::factory(20)->create();\n $this->call(TestUserSeeder::class);\n $this->call(TestGroupSeeder::class);\n }", "title": "" }, { "docid": "f9448f6133c6e8b37b6532dad95839af", "score": "0.7694687", "text": "public function run()\n {\n $faker = Faker::create();\n\n foreach (range(1, 100) as $i) {\n\n \t$year = Year::orderByRaw('RANDOM()')->first();\n \t$school = School::orderByRaw('RANDOM()')->first();\n\n \tClasse::create([\n \t\t'name' => $faker->words(3, true),\n\t\t\t\t'number' => $faker->randomNumber(2,false),\n\t\t\t\t'year_id' => $year->id,\n\t\t\t\t'school_id' => $school->id\n \t]);\n }\n\n }", "title": "" }, { "docid": "eac5616aa00d523969bc5322c2c0dff6", "score": "0.7694383", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n factory(App\\Models\\Setting::class,1)->create();\n //factory(App\\Models\\Customer::class,1)->create();\n \n //factory(App\\Models\\Category::class,10)->create();\n //factory(App\\Models\\Sub_category::class,10)->create();\n //factory(App\\Models\\ChildTag::class,10)->create();\n //factory(App\\Models\\Pro_model::class,10)->create();\n //factory(App\\Models\\Brand::class,10)->create();\n\n factory(App\\Models\\Invoice_setting::class,1)->create();\n }", "title": "" }, { "docid": "b9cff682d2526f461ce57526e042f677", "score": "0.76934123", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Classroom::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few classrooms in our database:\n for ($i = 0; $i < 10; $i++) {\n Classroom::create([\n 'name' => $faker->word, \n ]);\n }\n }", "title": "" }, { "docid": "b7ef246494fe8d88b196c2b7221af528", "score": "0.7691815", "text": "public function run()\n {\n //Users Seeder factory & Books\n factory(App\\User::class, 10)->create()->each(function ($user)\n {\n $user->books()->saveMany(factory(App\\Models\\Book::class, 2)->make());\n });\n\n //Reviews\n factory(App\\Models\\Review::class, 60)->create();\n }", "title": "" }, { "docid": "f61b7d83aa13c60fe3627733a07ab15f", "score": "0.76914847", "text": "public function run()\n {\n $this->call(UserTableSeeder::class);\n// $this->call(CurrencySeeder::class);\n// $this->call(PermissionsTableSeeder::class);\n// DB::table('users')->insert([\n// 'surname' => 'MR',\n// 'first_name' => 'Imtiaz',\n// 'last_name' => 'ahmed',\n// 'username' => 'admin',\n// 'email' => '[email protected]',\n// 'password' => bcrypt('admin1234'),\n// ]);\n\n// DB::table('business')->insert([\n// 'name' => 'Xyz',\n// 'currency_id' => Currency::first()->id,\n// 'owner_id' => User::first()->id\n// ]);\n// $user = User::first();\n// $user->business_id = Business::first()->id;\n// $user->save();\n }", "title": "" }, { "docid": "4aca49de13fcd4b5b6824cedd323b42a", "score": "0.76904124", "text": "public function run()\n {\n $this->call(EventSpeakerSeeder::class);\n $this->call(EventTypeSeeder::class);\n \n factory(Event::class,10)->create();\n\n factory(Participant::class,10)->create();\n for ($i=0; $i < Event::count(); $i++) {\n factory(EventParticipant::class)->create(['participant_id'=> random_int(1, Participant::count()), 'event_id'=> random_int(1, Event::count())]);\n }\n \n factory(Budget::class,10)->create();\n for ($i=0; $i < Event::count(); $i++) { \n \tfactory(EventBudget::class)->create(['budget_id'=> random_int(1, Budget::count()), 'event_id'=> random_int(1, Event::count())]);\n }\n\n $employee = factory(Employee::class)\n ->create([\n 'email' => '[email protected]',\n 'first_name' => 'Jade',\n 'last_name' => 'Doe',\n 'contact_number' => '09358711471']);\n\n factory(User::class)->create([\n 'email' => $employee->email,\n 'password' => Hash::make('secret'),\n ]);\n }", "title": "" }, { "docid": "d46ce473aff191c97b929677db1af6c9", "score": "0.7689183", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory('App\\Student',40)->create();\n\n $subjects =['Bangla','English','Math'];\n\n foreach ($subjects as $subject) {\n \\App\\Subject::create(['subName' => $subject]);\n }\n }", "title": "" }, { "docid": "1901f179a21e06626c23a8832671e91a", "score": "0.7688056", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // DB::table('users')->insert([\n // 'name' => 'John Doe',\n // 'email' => '[email protected]',\n // 'email_verified_at' => now(),\n // 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password\n // 'remember_token' => Str::random(10)\n // ]);\n\n //factory(App\\User::class, 20)->create();\n\n /*\n $doe=factory(App\\User::class)->states('john-doe')->create();\n $other=factory(App\\User::class, 20)->create();\n $users=$other->concat([$doe]);\n //dd($users->count());\n\n $posts=factory(App\\BlogPost::class, 50)->make()->each(function($post) use ($users) {\n $post->user_id=$users->random()->id;\n $post->save();\n });\n\n $comments=factory(App\\Comment::class, 150)->make()->each(function($comment) use ($posts) {\n $comment->blog_post_id=$posts->random()->id;\n $comment->save();\n });\n */\n\n if($this->command->confirm('Do you want to refresh the database?', true)) {\n $this->command->call('migrate:refresh');\n $this->command->info('Database was refreshed');\n } else {\n return;\n }\n\n $this->call([\n UsersTableSeeder::class,\n BlogPostsTableSeeder::class,\n CommentsTableSeeder::class,\n TagsTableSeeder::class,\n BlogPostTagTableSeeder::class\n ]);\n }", "title": "" }, { "docid": "fedf5ccdccb089bfacd42517c1914214", "score": "0.7686136", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n $this->call(PostSeeder::class);\n\n // foreach( range(1, 100) as $i) {\n // DB::table('posts')->insert([\n // 'title' => 'First Post',\n // 'content' => 'This is content'\n // ]);\n // }\n\n }", "title": "" }, { "docid": "5f8e1ca4aaa356dde12e347615adf7eb", "score": "0.7683458", "text": "public function run()\n {\n $this->call(RoleSeeder::class);\n\n $this->call(DepartamentSeeder::class);\n $this->call(TownshipSeeder::class);\n \n User::Create([\n 'name' => 'Test',\n 'email' => '[email protected]',\n 'gender'=>'masculino',\n 'birthdate'=>'2000-12-12',\n 'address'=>'direccion del usuario',\n 'number'=>'18007878',\n 'condition'=>1,\n 'email_verified_at' => now(),\n 'password' => '$2y$10$rq5oCT9eD1szjfUsTn5E8uJWCMCvFRjUsrq85t/pz1Qy9CRxoDADu', // password asd.123456\n 'township_id' => rand(1,200),\n 'profile_photo_path' => 'profile-photos/user.png'\n ])->assignRole('Administrador');\n\n User::factory(20)->create();\n $this->call(UserTypeSeeder::class);\n $this->call(UserStatusSeeder::class);\n $this->call(CategorySeeder::class);\n Subscription::factory(90)->Create();\n $this->call(AdvertStatusSeeder::class);\n\n Advert::factory(90)->create();\n $this->call(CurrencySeeder::class);\n Product::factory(90)->create();\n AdvertComment::factory(10)->create();\n $this->call(AdvertPhotoSeeder::class);\n\n \n \n\n }", "title": "" }, { "docid": "4675f99b4c0549cf01a20835acd2fc30", "score": "0.7682812", "text": "public function run()\n {\n $faker = Factory::create();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Order_Fruit::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $usersIDs = DB::table('users')->pluck('id');\n $fruitsIDs = DB::table('users')->pluck('id');\n\n for ($i = 1; $i <= 20; $i++) {\n Order_Fruit::create([\n 'user_id' => $faker->randomElement($usersIDs),\n 'fruit_id' => $faker->randomElement($fruitsIDs),\n 'quantity' => mt_rand(1, 10000)\n ]);\n }\n }", "title": "" }, { "docid": "9ba73b432cc500f657e338ec268d734b", "score": "0.76766217", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $insertUser = [\n 'name' => 'Admin',\n\n 'email' => '[email protected]',\n\n 'email_verified_at' => now(),\n\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password\n\n 'remember_token' => 1\n ];\n\n User::create($insertUser);\n\n //Tipos\n Tipo::create(['nome'=>'Projetor']);\n Tipo::create(['nome'=>'Caixa de Som']);\n Tipo::create(['nome'=>'Cadeira']);\n Tipo::create(['nome'=>'Microfone']);\n //Equipamentos\n Equipamento::create([\n 'nome'=>'Projetor Sala 2',\n 'tombamento'=>520,\n 'tipo_id' =>'1'\n ]);\n Equipamento::create([\n 'nome'=>'Caixa de Som Sala 2',\n 'tombamento'=>420,\n 'tipo_id' =>'2'\n ]);\n Equipamento::create([\n 'nome'=>'Cadeira do L2',\n 'tombamento'=>320,\n 'tipo_id' =>'3'\n ]);\n Equipamento::create([\n 'nome'=>'Microfone da DAEE',\n 'tombamento'=>220,\n 'tipo_id' =>'4'\n ]);\n \n }", "title": "" }, { "docid": "42fc2a1b8f646134de8caf8efc3e3085", "score": "0.7676048", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n DB::table('colaboradores')->insert([\n \t'nome' => 'Thiago Hofmeister',\n \t'email' => '[email protected]',\n \t'telefone' => '(51) 99401-7101',\n \t'data_nascimento' => '1997-04-25',\n \t'password' => Hash::make('540120'),\n \t'status' => '1'\n ]);\n DB::table('colaboradores')->insert([\n \t'nome' => 'Tiago Silveira',\n \t'email' => '[email protected]',\n \t'telefone' => '(51) 99366-4639',\n \t'data_nascimento' => '1997-04-25',\n \t'password' => Hash::make('456123'),\n \t'status' => '1'\n ]);\n }", "title": "" }, { "docid": "afbaaf086b3f79ed1f806e9a33187158", "score": "0.7675129", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //factory('App\\User', 50)->create;\n\n //Model::unguard();\n factory('App\\Estado', 5)->create();\n factory('App\\Municipio', 3)->create();\n factory('App\\Parroquia', 5)->create();\n factory('App\\Filial', 5)->create();\n factory('App\\Nomina', 5)->create();\n //factory('App\\User', 10)->create();\n //factory('App\\Trabajador', 1)->create();\n //factory('App\\Docente', 1)->create();\n factory('App\\Materia', 1)->create();\n //factory('App\\Responsable', 1)->create();\n \n factory('App\\Talla', 4)->create();\n //factory('App\\Institucion', 1)->create();\n //factory('App\\Ruta', 1)->create();\n //factory('App\\Alumno', 1)->create();\n //Model::reguard();\n\n }", "title": "" }, { "docid": "bd0a031dbbd471e642fb795f1cb5d045", "score": "0.7674316", "text": "public function run()\n {\n\n $this->call(\\Database\\Seeders\\RolesSeeder::class);\n $this->call(\\Database\\Seeders\\AdminsSeeder::class);\n \\App\\Models\\Users::factory(4)->create();\n $this->call(\\Database\\Seeders\\CoursesSeeder::class);\n \\App\\Models\\CourseItems::factory(4)->create();\n \\App\\Models\\Assignments::factory(4)->create();\n\n }", "title": "" }, { "docid": "d16b4c245ec59889dc57494208c09493", "score": "0.76738137", "text": "public function run()\n {\n // You can run this seeder after create a db\n // This function can create some fake data\n // sequel pro-test\n\n //need set database as nullable\n // ...->commant()->nullable();\n\n $newResume = new Resume();\n $newResume->name = \"Russell\";\n $newResume->phoneNumber = \"0900000999\";\n $newResume->birthday = \"19960131\";\n $newResume->address = \"home\";\n $newResume->resume = 'hello world';\n //$newResume->resumetyp = 'english';\n $newResume->save();\n }", "title": "" }, { "docid": "7c0b282beba065f3cb3881f8cb6483e6", "score": "0.76734626", "text": "public function run()\n {\n $faker = Factory::create();\n\n factory(User::class, 5)\n ->create()\n ->each(function ($user) use ($faker) {\n factory(Post::class, $faker->numberBetween(2, 20))\n ->create([\n 'user_id' => $user->id\n ])\n ->each(function ($post) use ($faker) {\n factory(Comment::class, $faker->numberBetween(10, 60))\n ->create([\n 'body' => $faker->paragraph,\n 'approved' => mt_rand(1, 2),\n 'type' => mt_rand(1, 10),\n 'commentable_type' => 'App\\Model\\Post',\n 'commentable_id' => $post->id\n ]);\n });\n });\n\n factory(NewsletterSubscription::class, $faker->numberBetween(5, 10))->create();\n //factory(DB::table('post_categories'), $faker->numberBetween(1, 63))->create();\n }", "title": "" }, { "docid": "770a2fa12b33357de3190927264ee1af", "score": "0.76730675", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(User::class,20)->create();\n Topic::create(['name'=>'Featured sitest','slug' => 'featured']);\n Topic::create(['name'=>'Useful links','slug' => 'Links']);\n Topic::create(['name'=>'Guides Tutorials','slug' => 'Tutorials']);\n\n factory(Post::class,20)->create();\n\n }", "title": "" }, { "docid": "719751addae7f27742c307b2982b7fd6", "score": "0.76726", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(AdminSeeder::class);\n $this->call(SettingSeeder::class);\n $this->call(AboutSeeder::class);\n $this->call(CounterSeeder::class);\n $this->call(SeoSeeder::class);\n // \\App\\Models\\Slider::factory(5)->create();\n // \\App\\Models\\Customer::factory(15)->create();\n // \\App\\Models\\Course::factory(30)->create();\n // \\App\\Models\\Gallary::factory(50)->create();\n // \\App\\Models\\Bolg::factory(30)->create();\n // \\App\\Models\\Advert::factory(30)->create();\n \n }", "title": "" }, { "docid": "ec09ea32933a15c9ae1def22c2a6e32b", "score": "0.767247", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n// $this->call(ThanhVienTableSeeder::class);\n factory(App\\Product::class,50)->create();\n factory(App\\Review::class,300)->create();\n\n }", "title": "" }, { "docid": "da277d77f5d75049f332088792d9a23e", "score": "0.76693535", "text": "public function run()\n {\n $faker = Faker\\Factory::create();\n\n foreach(range(1,10) as $value){\n \tApp\\Models\\Survey::create([\n \t\t'name' => $faker->name,\n \t\t'description' => $faker->text,\n \t\t'user_id' => 1,\n \t\t'category_id' => rand(1,10),\n \t]);\n }\n }", "title": "" }, { "docid": "ed928faf974c57003bc826bb9ccb457a", "score": "0.76690495", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n /*DB::table('posts')->insert([\n 'title' => Str::random(30),\n 'body' => Str::random(500),\n 'slug' => Str::random(20)\n ]);*/\n \n \n \n DB::table('comments')->insert([\n 'comment'=>Str::random(40),\n 'user_id'=>1,\n 'post_id'=>1\n ]);\n //$this->call(RolesTableSeeder::class);\n //$this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "9a06a265677a0b9239626227aead02d5", "score": "0.76680243", "text": "public function run()\n {\n DB::table('patients')->delete();\n $faker = Faker::create();\n echo \"[Seed] Table 'patients'\\n\";\n foreach(range(1, 80) as $i) {\n Patient::create([\n 'name' => $faker->firstName,\n 'lastname' => $faker->lastName,\n 'jobtitle' => $faker->jobTitle,\n 'cep' => $faker->numerify('#####-###'),\n 'street' => $faker->streetName,\n 'number' => $faker->buildingNumber(),\n 'district' => $faker->word,\n 'state' => $faker->state,\n 'city' => $faker->city,\n 'cellphone' => $faker->numerify('(##) #####-####'),\n 'phone' => $faker->numerify('(##) ####-####'),\n 'email' => $faker->companyEmail\n ]);\n }\n }", "title": "" }, { "docid": "b1db1834572e6aa1aec44e257c716b76", "score": "0.76651335", "text": "public function run()\n {\n\n Eloquent::unguard();\n\n //disable foreign key check for this connection before running seeders\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n User::truncate();\n $usersData = [\n ['first_name'=>'Admin', 'last_name'=>'Admin','email'=>'[email protected]' ,'password' => Hash::make('admin123'),'contact_no' => '9821258699',\n 'role_id'=>'2','created_at' => Carbon::now(),\n\n ],\n ['first_name'=>'Prajakta', 'last_name'=>'Sisale','email'=>'[email protected]' ,'password' => Hash::make('prajakta123'),'contact_no' => '9821258699',\n 'role_id'=>'2','created_at' => Carbon::now(),\n\n ],\n ['first_name'=>'Praju', 'last_name'=>'Sisale','email'=>'[email protected]' ,'password' => Hash::make('praju123'),'contact_no' => '9821258677',\n 'role_id'=>'5','created_at' => Carbon::now(),\n ]\n\n ];\n\n\n DB::table(\"users\")->insert($usersData);\n }", "title": "" }, { "docid": "7de5c832894871b9776743baacb6f84b", "score": "0.7661534", "text": "public function run()\n {\n // $this->call(my_seeds::class)\n //gets unix timestamp\n\t\t$date = new DateTime();\n\t\t$time_now = $date->format('Y-m-d H:i:s');\n\n DB::table('users')->insert([\n 'fname' => \"Ebrahim\",\n 'sname' => \"Ravat\",\n 'email' => \"[email protected]\",\n 'password' => bcrypt('test123')\n ]);\n\n DB::table('users')->insert([\n 'fname' => \"Bob\",\n 'sname' => \"The Builder\",\n 'email' => \"[email protected]\",\n 'password' => bcrypt('test123')\n ]); \n\n $faker = Faker::create('en_GB');\n $num_of_users = 10;\n $num_of_posts = 25;\n\n foreach (range(1,$num_of_users) as $index) {\n $name = $faker->firstName();\n DB::table('users')->insert([\n 'fname' => $name,\n 'sname' => $faker->lastname(),\n 'email' => $name.\"@\".$faker->domainName,\n 'password' => bcrypt('test123')\n ]);\n } \n\n foreach (range(1,$num_of_posts) as $index) {\n DB::table('rental')->insert([\n 'user_id' => $faker->numberBetween(1,$num_of_users),\n 'title' => $faker->word.\" \".$faker->word,\n 'description' => $faker->paragraph,\n 'make' => $this->randomCarType(),\n 'model' => $faker->word,\n 'avail' => $faker->numberBetween(0,1)\n ]);\n } \n }", "title": "" }, { "docid": "44cb8c34219fda585acb1f8ff6dd4ea1", "score": "0.76614374", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n User::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n $faker = \\Faker\\Factory::create();\n\t\tfor ($i=0; $i < 10; $i++) {\n $name = $faker->lastName();\n $firstname = $faker->firstName();\n DB::table('users')->insert([\n 'mail' => $name.'.'.$firstname.'@gmail.com', \n 'password' => md5($name.'.'.$firstname),\n 'nom' => $name,\n 'prenom' => $firstname,\n 'ville' => $faker->address,\n 'login' => $name.'.'.$firstname,\n 'magasin_id' => $faker->numberBetween($min = 1, $max = 10),\n 'created_at' => Now(),\n 'updated_at' => Now(),\n\t\t ]);\n\t\t}\n }", "title": "" }, { "docid": "15bceb499e4f961c56e4636cd137b2e9", "score": "0.76613784", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(PermissionTableSeeder::class);\n $this->call(VotesTableSeeder::class);\n\n $user = new \\App\\User();\n $user->name = 'Andrey';\n $user->email = '[email protected]';\n $user->password = md5('[email protected]');\n $user->remember_token = md5(time() . '[email protected]');\n $user->id_permission = 1;\n $user->save();\n\n for ($i = 1; $i < 10; $i++) {\n\n $user = new \\App\\User();\n $user->name = 'Andrey' . $i;\n $user->email = $i . '[email protected]';\n $user->password = md5($i . '[email protected]');\n $user->remember_token = md5(time() . '[email protected]' . $i);\n $user->id_permission = 1;\n $user->save();\n }\n\n for ($i = 1; $i < 5; $i++) {\n\n $rand = (int)rand(0, 5);\n\n for ($j = 1; $j < $rand; $j++) {\n $cq = new \\App\\ClosedQuestion();\n $cq->id_votes = $i;\n $cq->id_users = $j;\n $cq->value = (bool)(round(rand()));\n $cq->save();\n }\n }\n }", "title": "" }, { "docid": "0f13bc8606fe11499f6c86ae6956a222", "score": "0.76611", "text": "public function run()\n {\n $faker = Factory::create();\n\n $users = User::all()->pluck('id')->toArray();\n\n for ($i = 1;$i < 20;$i++) {\n $sentence = $faker->sentence(10);\n DB::table('postsenUS')->insert([\n 'title' => $sentence,\n 'user_id' => $faker->randomElement($users),\n 'slug' => $faker->slug,\n 'content' => $faker->text()\n ]);\n }\n }", "title": "" }, { "docid": "1216b563a7d5d0b82da21dc42d8e3a86", "score": "0.7660163", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class)->times(150)->create();\n\n $brands = factory(App\\Brand::class)->times(10)->create();\n $categories = factory(App\\Category::class)->times(9)->create();\n $colors = factory(App\\Color::class)->times(9)->create();\n $sizes = factory(App\\Size::class)->times(7)->create();\n $states = factory(App\\State::class)->times(3)->create();\n $subcategories = factory(App\\Subcategory::class)->times(2)->create();\n $products = factory(App\\Product::class)->times(50)->create();\n \t\t$users = factory(App\\User::class)->times(150)->create();\n \n\n\n\n foreach ($products as $oneProduct) {\n \t\t\t$oneProduct->brand()->associate($brands->random(1)->first()->id);\n $oneProduct->category()->associate($categories->random(1)->first()->id);\n \t\t\t$oneProduct->user()->associate($users->random(1)->first()->id); \n \t\t\t$oneProduct->save();\n\n \t\t\t$oneProduct->colors()->sync($colors->random(3));\n $oneProduct->sizes()->sync($sizes->random(3));\n\n \t\t}\n\n // foreach ($categories as $oneCategory) {\n // $oneCategory->subcategories()->attach($subcategories->random(1)->first()->id);\n // $oneCategory->save();\n // }\n\n\n\n foreach ($categories as $oneCategory) {\n $oneCategory->subcategories()->sync($subcategories->random(2));\n }\n\n\n }", "title": "" }, { "docid": "d4f7e3eb2b114563e335340a50429db0", "score": "0.7659646", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n \n $user = new User(\n array(\n 'name' => 'Super Usuario',\n 'email'=> '[email protected]',\n 'password' => bcrypt('rootroot')\n )\n );\n \n $user->save();\n\n $role_admin = new Role(array(\n 'name'=>'admin'\n ));\n $role_admin->save();\n\n $role_user = new Role(array(\n 'name'=>'user'\n ));\n $role_user->save();\n\n $user->roles()->save($role_admin);\n\n $category = new Category(\n array(\n 'name'=>'Todos'\n )\n );\n $category->save();\n\n\n\n }", "title": "" }, { "docid": "9369a1d55f720edc3a33b247d343235e", "score": "0.76572263", "text": "public function run()\n {\n User::factory(3)->create();\n\n User::create([\n 'name' => 'Rizky Kurniawan',\n 'username' => 'rizky',\n 'email' => '[email protected]',\n 'password' => Hash::make('password'),\n ]);\n\n Category::create([\n 'name' => 'Web Programming',\n 'slug' => 'web-programming',\n ]);\n\n Category::create([\n 'name' => 'Web Design',\n 'slug' => 'web-design',\n ]);\n\n Category::create([\n 'name' => 'Personal',\n 'slug' => 'personal',\n ]);\n\n Post::factory(20)->create();\n }", "title": "" }, { "docid": "d2fbae49d0c021aff4c1bfc9c0a66c82", "score": "0.76558894", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Comment::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 100; $i++) {\n Comment::create([\n 'post_id' => random_int(1, 50),\n 'user_id' => random_int(1, 14),\n 'content' => $faker->sentence,\n ]);\n }\n }", "title": "" }, { "docid": "4445947d1e55eb937e648f6e94fd1d65", "score": "0.7655459", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n DB::table('users')->insert([\n 'name'=>'admin',\n 'email'=>'[email protected]',\n 'password'=>bcrypt('1234'),\n 'role'=>'Administrador',\n ]);\n\n DB::table('roles')->insert([\n 'name'=>'admin',\n 'display_name'=>'Administrator',\n 'description'=>'User is allowed to manage and edit other users'\n ]);\n\n DB::table('permissions')->insert([\n 'name'=>'edit',\n 'display_name'=>'Edit Users',\n 'description'=>'edit existing users'\n ]);\n\n DB::table('cities')->insert([\n 'name'=>'Guanare',\n ]);\n DB::table('cities')->insert([\n 'name'=>'Acarigua',\n ]);\n\n DB::table('cities')->insert([\n 'name'=>'Barquisimeto',\n ]);\n\n DB::table('permissions')->insert([\n 'name'=>'Editar',\n 'description'=>'Editar usuarios y planes',\n ]);\n\n DB::table('permissions')->insert([\n 'name'=>'Eliminar',\n 'description'=>'Eliminar usuarios y planes',\n ]);\n\n }", "title": "" }, { "docid": "dd7cde5dc611b9f3b4a33844e23265fd", "score": "0.7654757", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(ProductsTableSeeder::class);\n\n $user = factory(User::class)->create([\n 'name' => 'Toko 1',\n 'email' => '[email protected]',\n 'password' => bcrypt('12345678'),\n ]);\n\n factory(Product::class, 20)->create([\n 'user_id' => $user->id,\n ]);\n }", "title": "" }, { "docid": "aef72117062b88a29f397c729bb74ff7", "score": "0.7654305", "text": "public function run()\n {\n DB::table('articles')->delete();\n \n $articles = array(\n ['id' => 1, 'title' => 'Project 1', 'body' => 'project-1', 'created_at' => new DateTime, 'updated_at' => new DateTime],\n \n );\n \n // Uncomment the below to run the seeder\n DB::table('articles')->insert($articles);\n }", "title": "" }, { "docid": "829de54450e151544dc6fdd3c107be13", "score": "0.7651256", "text": "public function run()\n {\n DB::table('facl_relations')->delete();\n $projects = array(\n ['cid' => '2', 'fid' => '4'],\n ['cid' => '3', 'fid' => '5'],\n\n );\n // Uncomment the below to run the seeder\n DB::table('facl_relations')->insert($projects);\n }", "title": "" } ]
c64015c25687f2b242b3b64fe0df0992
Builds some example typed data object with properties.
[ { "docid": "53c15051c1a04b37b0036dc127145bb6", "score": "0.8249971", "text": "protected function buildExampleTypedDataWithProperties() {\n $tree = [\n 'key1' => 'value1',\n 'key2' => 'value2',\n 'key3' => 3,\n 'key4' => [\n 0 => TRUE,\n 1 => 'value6',\n 'key7' => 'value7',\n ],\n ];\n $map_data_definition = MapDataDefinition::create()\n ->setPropertyDefinition('key1', DataDefinition::create('string'))\n ->setPropertyDefinition('key2', DataDefinition::create('string'))\n ->setPropertyDefinition('key3', DataDefinition::create('integer'))\n ->setPropertyDefinition('key4', MapDataDefinition::create()\n ->setPropertyDefinition(0, DataDefinition::create('boolean'))\n ->setPropertyDefinition(1, DataDefinition::create('string'))\n ->setPropertyDefinition('key7', DataDefinition::create('string'))\n );\n\n $typed_data = $this->typedDataManager->create(\n $map_data_definition,\n $tree,\n 'test name'\n );\n\n return $typed_data;\n }", "title": "" } ]
[ { "docid": "04e61a7fc76ba08919ee06c9c3c22d44", "score": "0.78315604", "text": "protected function buildExampleTypedData() {\n $tree = [\n 'key1' => 'value1',\n 'key2' => 'value2',\n 'key3' => 3,\n 'key4' => [\n 0 => TRUE,\n 1 => 'value6',\n 'key7' => 'value7',\n ],\n ];\n $map_data_definition = MapDataDefinition::create();\n $typed_data = $this->typedDataManager->create(\n $map_data_definition,\n $tree,\n 'test name'\n );\n return $typed_data;\n }", "title": "" }, { "docid": "a7209f2ca9f71a59ddb63a811375778d", "score": "0.5944071", "text": "public function build()\n {\n $reflector = new \\ReflectionClass($this->getObjectFqcn());\n return $reflector->newInstanceArgs(array_values($this->_builder_placeholder_data_87cd3fb3_4fde_49d1_a91f_6411e0862c32));\n }", "title": "" }, { "docid": "3de2dd2907e3f60e7f5cf99a935d87b1", "score": "0.58214843", "text": "public function __construct(array $buildData = array(), array $data = null)\n {\n foreach ($buildData as $key => $value)\n {\n // If we have a property, treat it as such\n if ($value instanceof PropertyInterface)\n {\n $this->addElement($key, $value);\n }\n // Otherwise, we have another context\n else\n {\n $this->addElement($key, new static($value));\n }\n }\n // If contextual data was passed in, merge it\n if (isset($data))\n {\n $this->mergeInto($this->properties, $data);\n }\n }", "title": "" }, { "docid": "9feecc0564e0c06d6a966a4848a2efbe", "score": "0.5671971", "text": "public function build($data);", "title": "" }, { "docid": "9fb946322065dad291e53c4ca350273a", "score": "0.5539626", "text": "public function test___construct_calledWithProperData_createsProperObject()\n {\n $this->markTestSkipped('This test don\\'t works anymore :( | Fix it? ');\n\n $breakDown = $this->getBreakDownResult();\n $actual = $this->getSut($breakDown);\n\n }", "title": "" }, { "docid": "2ed4f4543d5a632d53737eb61d1322b1", "score": "0.54465115", "text": "public function testConstructForTypeHintingTypes()\n {\n // Test valid data\n $valid = [\n 'object' => new \\stdClass(),\n 'array' => ['test'],\n 'emptyArray' => [],\n ];\n foreach ($valid as $type => $elm) {\n try {\n new TypeHintingInput($elm);\n $this->assertTrue(true);\n } catch (\\InvalidArgumentException $e) {\n $this->fail(\"Test fail on correct value with type - {$type}\");\n }\n }\n\n // Test invalid data\n $invalid = [\n 'boolean' => (bool)mt_rand(0, 1),\n 'string' => 'test',\n 'emptyString' => '',\n 'integer' => mt_rand(1, PHP_INT_MAX),\n 'zeroInteger' => 0,\n 'negativeInteger' => mt_rand(1, PHP_INT_MAX) * -1,\n 'double' => microtime(true),\n 'negativeDouble' => microtime(true) * -0.5,\n ];\n foreach ($invalid as $type => $elm) {\n try {\n new TypeHintingInput($elm);\n $this->fail(\"Test doesn`t fail on incorrect value with type - {$type}\");\n } catch (\\InvalidArgumentException $e) {\n $this->assertTrue(true);\n }\n }\n }", "title": "" }, { "docid": "566608b858df4c0cd9bed709e8ed8efa", "score": "0.54348767", "text": "public function generateFakeData(): void\n {\n ContentType::create(['name'=> 'Programming Languages']);\n }", "title": "" }, { "docid": "c81d48c7992f938b46234565ea1255f7", "score": "0.5403161", "text": "abstract protected function generateData();", "title": "" }, { "docid": "ee780ae741dac45c6dd859c3deb13059", "score": "0.53515375", "text": "public function buildFields()\n {\n $this->addField('name', 'Name', true);\n $this->addField('plainText', 'Plain text', true);\n $this->addField('richText', 'Rich text', true);\n }", "title": "" }, { "docid": "8c049108f68d0c2157664cf979e9b77f", "score": "0.5334078", "text": "protected function buildData()\n {\n $this->retData = [\n 'appId' => $this->appId,\n 'trade_type' => $this->trade_type,\n 'prepay_id' => $this->prepay_id,\n 'mweb_url' => $this->mweb_url\n ];\n }", "title": "" }, { "docid": "abcf3135faa036d043762aba87bc469b", "score": "0.5324128", "text": "public function makeData()\n {\n $faker = Faker::create();\n\n $category = factory(Category::class)->create();\n $donator = factory(Donator::class)->create([\n 'user_id' => $this->user->id\n ]);\n $book = factory(Book::class)->create([\n 'category_id' => $category->id,\n 'donator_id' => $donator->id,\n ]);\n\n factory(Post::class)->create([\n 'user_id' => $this->user->id,\n 'book_id' => $book->id,\n ]);\n\n $post = Post::first();\n factory(Comment::class)->create([\n 'post_id' => $post->id,\n 'user_id' => $this->user->id,\n 'parent_id' => null,\n ]);\n\n $comment = Comment::first();\n factory(Comment::class)->create([\n 'post_id' => $post->id,\n 'user_id' => $this->user->id,\n 'parent_id' => $comment->id,\n ]);\n }", "title": "" }, { "docid": "3cbf3206c8828eaacb171c9a860a1340", "score": "0.5306615", "text": "public function buildData() {\n return [\n 'chinook' => [\n 'sqlite',\n 'chinook',\n 'sqlite/select.sql',\n [],\n [\n [\n 'count' => 347,\n ],\n ],\n ],\n 'pgpdotestdb' => [\n 'pgsql',\n 'pgpdotestdb',\n 'pgsql/create_table.sql',\n ],\n 'pgtestdb' => [\n 'pgsql',\n 'pgtestdb',\n 'pgsql/create_table.sql',\n ],\n 'mypdotestdb' => [\n 'mysql',\n 'mypdotestdb',\n 'mysql/create_table.sql',\n ],\n 'mytestdb' => [\n 'mysql',\n 'mytestdb',\n 'mysql/create_table.sql',\n ],\n 'mytestdb_show' => [\n 'mysql',\n 'mytestdb',\n 'mysql/show_variables.sql',\n [\n // 1002 = \\PDO::MYSQL_ATTR_INIT_COMMAND\n 1002 => \"SET SESSION sql_mode='TRADITIONAL'\",\n ],\n [\n [\n 'Variable_name' => 'sql_mode',\n 'Value' => 'STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION',\n ],\n ],\n ],\n ];\n }", "title": "" }, { "docid": "99c484f6ef5f6e86a6b1661f61538847", "score": "0.529394", "text": "public function testBuildAllIncludesProperties()\n {\n $object = [\n 'test1' => 'value1',\n 'test2' => 'value2',\n ];\n\n $builder = new GeoJSON\\PropertyBuilder([], $this->geomProps);\n $this->assertEquals($object, $builder->build($object));\n }", "title": "" }, { "docid": "7d489ab0d791251f7fe2e48ce1bae89a", "score": "0.52911484", "text": "public function construct(\n VisitorInterface $visitor,\n ClassMetadata $metadata,\n $data,\n array $type,\n DeserializationContext $context\n ) {\n\n $object = $this->getInstantiator()->instantiate($metadata->name);\n if (!empty($metadata->discriminatorMap)) {\n print \\json_encode($metadata->discriminatorMap) . \"\\n\";\n }\n\n\n return $object;\n\n /*\n // TODO: clean up/fix this properly.\n $className = AnyType::class;\n if (isset($this->documentType) && $context->getDepth() === 1) {\n $className = $this->documentType;\n print \"\\nYEEEEEEEESSS: $className\\n\\n\";\n //$type['name'] = $this->documentType;\n }\n else {\n print \"\\n\";\n print $context->getDepth() . \"\\t\" . $type['name'];\n print \"\\n\";\n if ($this->setClasses->contains($type['name'])) {\n //print \"JUHUUUUUUUUUUUU\\n\\n\";\n }\n else {\n $className = $type['name'];\n }\n if ($type['name'] == X509Data::class) {\n //print_r($type);\n }\n }\n\n if ($context->getDepth() >= 3) {\n //print_r($type);\n //print_r($data);\n }\n\n if (strpos($type['name'], 'KeyInfo') !== -1) {\n// print \"\\n------ KeyInfo ---------\\n\";\n// print_r($data);\n// print_r($type);\n// echo \"OK\";\n }\n\n\n $object = NULL;\n try {\n $object = new $className();\n } catch (\\ReflectionException $e) {\n throw new \\RuntimeException($e);\n }\n\n //return $object->newInstanceWithoutConstructor();\n return $object;\n */\n }", "title": "" }, { "docid": "f32b95ec113b86d46da30234ca71b8a8", "score": "0.5282201", "text": "private function buildCoreFields(): void\n {\n //====================================================================//\n // Name without Options\n $this->fieldsFactory()->create(SPL_T_VARCHAR)\n ->identifier(\"title\")\n ->name(\"Title\")\n ->isRequired()\n ->microData(\"http://schema.org/Product\", \"alternateName\")\n ->isIndexed()\n ;\n //====================================================================//\n // Availability Date\n $this->fieldsFactory()->create(SPL_T_BOOL)\n ->identifier(\"published\")\n ->name(\"Is Published\")\n ->microData(\"http://schema.org/Product\", \"offered\")\n ->isListed()\n ->isNotTested()\n ;\n //====================================================================//\n // Long Description\n $this->fieldsFactory()->create(SPL_T_VARCHAR)\n ->identifier(\"body_html\")\n ->name(\"Description\")\n ->description(\"A description of the product. Supports HTML formatting.\")\n ->microData(\"http://schema.org/Product\", \"description\")\n ;\n //====================================================================//\n // Product Type\n $this->fieldsFactory()->create(SPL_T_VARCHAR)\n ->identifier(\"product_type\")\n ->name(\"Product Type\")\n ->description(\"A categorization for the product used for filtering and searching products.\")\n ->microData(\"http://schema.org/Product\", \"additionalType\")\n ;\n //====================================================================//\n // Meta Url\n $this->fieldsFactory()->create(SPL_T_VARCHAR)\n ->identifier(\"handle\")\n ->name(\"Friendly URL\")\n ->description(\n \"A unique human-friendly string for the product. Automatically generated from the product's title.\"\n )\n ->addOption(\"isLowerCase\")\n ->microData(\"http://schema.org/Product\", \"urlRewrite\")\n ;\n }", "title": "" }, { "docid": "d2f1759de27ff7a83831ff196b16bbc1", "score": "0.5200762", "text": "protected function setUp() {\n\t\t$this->object = new ModelData('testtable');\n\t\t$this->object->field(new CharField('first_field'));\n\t\t$this->object->field(new CharField('second_field'));\n\n\t\t$this->object->data = array(\n\t\t\tarray('id' => 12, 'first_field' => \"test string one\", 'second_field' => 'some string one'),\n\t\t\tarray('id' => 34, 'first_field' => \"test string two\", 'second_field' => 'some string two'),\n\t\t\tarray('id' => 76, 'first_field' => \"test string three\", 'second_field' => 'some string three'),\n\t\t);\n\t}", "title": "" }, { "docid": "0d33e499b63ed43d8067a9a9f0c2b1b6", "score": "0.51900804", "text": "public function createData($data);", "title": "" }, { "docid": "342171d7aa688ba065102906f1934afb", "score": "0.5177386", "text": "public function buildFields()\n {\n $this->addField('name', 'Name', true);\n $this->addField('email', 'Email', true);\n $this->addField('question', 'Question', true);\n }", "title": "" }, { "docid": "2e1bd9a695327888eb4411d4faabcb5e", "score": "0.5162715", "text": "private static function create_default_data()\n {\n }", "title": "" }, { "docid": "dc99db04c00ae6450f790824e4b9eaca", "score": "0.51623464", "text": "public function build(string $class, Map $properties): object;", "title": "" }, { "docid": "811d25421041f479064de4514f2a5d07", "score": "0.5139057", "text": "abstract public function build();", "title": "" }, { "docid": "811d25421041f479064de4514f2a5d07", "score": "0.5139057", "text": "abstract public function build();", "title": "" }, { "docid": "811d25421041f479064de4514f2a5d07", "score": "0.5139057", "text": "abstract public function build();", "title": "" }, { "docid": "6a65c125707be1c81d7fa75e485e579b", "score": "0.5138686", "text": "private function _buildMetaData()\n {\n $metadata = MQF_Registry::instance()->getDatabaseById($this->dbid)->getMetaDataForTable($this->table);\n\n $this->primarykeys = array();\n $this->metadata = array();\n\n foreach ($metadata as $m) {\n $m->name = trim(strtoupper($m->name));\n\n $this->metadata[$m->name]['field'] = $m->name;\n $this->metadata[$m->name]['datatype'] = $m->type;\n $this->metadata[$m->name]['size'] = $m->max_length;\n\n if (isset($m->has_default) and $m->has_default == 1) {\n $this->metadata[$m->name]['default'] = $m->default_value;\n } else {\n $this->metadata[$m->name]['default'] = null;\n }\n\n if (isset($m->primarykey) and $m->primarykey == 1) {\n $this->primarykeys[$m->name] = $m->name;\n }\n }\n }", "title": "" }, { "docid": "dda32e29405aa6aa85fa99f09d3aceef", "score": "0.5136954", "text": "protected function buildProperties(){\n if(empty($this->propertiesInfo)){\n $properties = DBManager::getInstance()->describe($this->table);\n $this->propertiesInfo = $properties['fields-info']?? [];\n $this->attributes = $properties['fields']?? [];\n $this->pk = $properties['primary']?? null;\n } else {\n $this->fetchProperties();\n }\n $this->tableColumns = array_keys($this->attributes);\n }", "title": "" }, { "docid": "e17a6208234f93e50684264d01ff9242", "score": "0.51356804", "text": "protected function CreateObjects() {\n\t\t$this->lblId = $this->mctType->lblId_Create();\n\t\t$this->txtName = $this->mctType->txtName_Create();\n\t\t$this->txtDescription = $this->mctType->txtDescription_Create();\n\t\t$this->chkActive = $this->mctType->chkActive_Create();\n\t}", "title": "" }, { "docid": "9563748ae3f76f916f09dd43a4a39c09", "score": "0.51340044", "text": "private function generatePropertyFields()\n {\n $sentence = $this->faker->sentence(rand(1, 3));\n $this->name = substr($sentence, 0, strlen($sentence) - 1);\n $noSpaced = str_replace(' ', '_', $this->name);\n $this->code = strtoupper($noSpaced);\n }", "title": "" }, { "docid": "812e4924917f177e20204d911b302128", "score": "0.5130202", "text": "protected abstract function make_object( \\stdClass $data );", "title": "" }, { "docid": "f1b645e8361fc0aa1cea277dc97a0e9f", "score": "0.512519", "text": "private function createAndInitializeEntity($objType, $data)\r\n {\r\n $obj = Models\\EntityFactory::factory($objType);\r\n //$def = $this->getDefWithLoader($objType);\r\n \r\n foreach ($data as $fname=>$fval)\r\n $obj->setValue($fname, $fval);\r\n\t\t\r\n return $obj; \r\n }", "title": "" }, { "docid": "7a27f745d4a1bfc52af215f6b8268085", "score": "0.51174057", "text": "public function generate_complex_data_class()\n {\n $template = new MyTemplate();\n $template->set_rootdir(__DIR__);\n \n $location = Path::get_repository_path() . 'lib/content_object/' . $this->xml_definition['name'];\n \n if (! is_dir($location))\n {\n mkdir($location, 0777, true);\n }\n \n $file = fopen($location . '/complex_' . $this->xml_definition['name'] . '.class.php', 'w+');\n \n if ($file)\n {\n $template->set_filenames(array('complex_data_class' => 'complex_data_class.template'));\n $classname = (string) StringUtilities::getInstance()->createString($this->xml_definition['name'])->upperCamelize();\n $template->assign_vars(\n array('TYPE' => $this->xml_definition['name'], 'AUTHOR' => $this->author, 'OBJECT_CLASS' => $classname));\n \n $string = \"<?php\nnamespace libraries\\utilities;\\n\" . $template->pparse_return('complex_data_class') . \"?>\";\n fwrite($file, $string);\n fclose($file);\n }\n }", "title": "" }, { "docid": "84a7f077d05d4e193b20c78a6bff38a6", "score": "0.51107883", "text": "public function dataprovider_make_from_moodle_field() {\n $testdata = array();\n\n $fieldtypes = array(\n // Checkbox.\n array(\n 'datatype' => 'checkbox',\n 'param1' => null,\n 'param2' => null,\n 'param3' => null,\n 'param4' => null,\n 'param5' => null,\n 'edatatype' => 'bool',\n 'elis_manual_owner_params' => array(\n 'control' => 'checkbox'\n )\n ),\n // Datetime w/out inctime.\n array(\n 'datatype' => 'datetime',\n 'param1' => '1987',\n 'param2' => '2013',\n 'param3' => '0',\n 'param4' => null,\n 'param5' => null,\n 'edatatype' => 'datetime',\n 'elis_manual_owner_params' => array(\n 'control' => 'datetime',\n 'startyear' => '1987',\n 'stopyear' => '2013',\n 'inctime' => '0',\n )\n ),\n // Datetime with inctime.\n array(\n 'datatype' => 'datetime',\n 'param1' => '1987',\n 'param2' => '2013',\n 'param3' => '1',\n 'param4' => null,\n 'param5' => null,\n 'edatatype' => 'datetime',\n 'elis_manual_owner_params' => array(\n 'control' => 'datetime',\n 'startyear' => '1987',\n 'stopyear' => '2013',\n 'inctime' => '1',\n )\n ),\n // Menu of choices with defaultdata.\n array(\n 'datatype' => 'menu',\n 'defaultdata' => \"Value C\",\n 'param1' => \"Value A\\nValue B\\nValue C\\nValue D\",\n 'param2' => null,\n 'param3' => null,\n 'param4' => null,\n 'param5' => null,\n 'edatatype' => 'char',\n 'elis_manual_owner_params' => array(\n 'control' => 'menu',\n 'options' => \"Value A\\nValue B\\nValue C\\nValue D\",\n )\n ),\n // Menu of choices without default data.\n array(\n 'datatype' => 'menu',\n 'param1' => \"Value A\\nValue B\\nValue C\\nValue D\",\n 'param2' => null,\n 'param3' => null,\n 'param4' => null,\n 'param5' => null,\n 'edatatype' => 'char',\n 'elis_manual_owner_params' => array(\n 'control' => 'menu',\n 'options' => \"Value A\\nValue B\\nValue C\\nValue D\",\n )\n ),\n // Textarea with default columns/rows.\n array(\n 'datatype' => 'textarea',\n 'param1' => null,\n 'param2' => null,\n 'param3' => null,\n 'param4' => null,\n 'param5' => null,\n 'edatatype' => 'text',\n 'elis_manual_owner_params' => array(\n 'control' => 'textarea',\n 'columns' => 30,\n 'rows' => 10,\n )\n ),\n // Textarea with custom columns/rows.\n array(\n 'datatype' => 'textarea',\n 'param1' => 50,\n 'param2' => 20,\n 'param3' => null,\n 'param4' => null,\n 'param5' => null,\n 'edatatype' => 'text',\n 'elis_manual_owner_params' => array(\n 'control' => 'textarea',\n 'columns' => 50,\n 'rows' => 20,\n )\n ),\n // Text.\n array(\n 'datatype' => 'text',\n 'param1' => 30,\n 'param2' => 2048,\n 'param3' => 0,\n 'param4' => null,\n 'param5' => null,\n 'edatatype' => 'text',\n 'elis_manual_owner_params' => array(\n 'control' => 'text',\n 'columns' => '30',\n 'maxlength' => '2048'\n )\n ),\n // Password.\n array(\n 'datatype' => 'text',\n 'param1' => 30,\n 'param2' => 2048,\n 'param3' => 1,\n 'param4' => null,\n 'param5' => null,\n 'edatatype' => 'text',\n 'elis_manual_owner_params' => array(\n 'control' => 'password',\n 'columns' => '30',\n 'maxlength' => '2048'\n )\n ),\n // Text/password with default data.\n array(\n 'datatype' => 'text',\n 'defaultdata' => 'test default data',\n 'param1' => 30,\n 'param2' => 2048,\n 'param3' => 1,\n 'param4' => null,\n 'param5' => null,\n 'edatatype' => 'text',\n 'elis_manual_owner_params' => array(\n 'control' => 'password',\n 'columns' => '30',\n 'maxlength' => '2048'\n )\n ),\n );\n\n foreach ($fieldtypes as $type) {\n foreach (array(true, false) as $unique) {\n foreach (array(true, false) as $required) {\n $type['elis_manual_owner_params']['required'] = $required;\n $testdata[] = array(\n array(\n 'shortname' => 'test'.$type['datatype'],\n 'name' => 'Test '.$type['datatype'],\n 'datatype' => $type['datatype'],\n 'description' => '<p>Test '.$type['datatype'].' Description</p>',\n 'descriptionformat' => '1',\n 'categoryid' => '1',\n 'sortorder' => '3',\n 'required' => (string)(int)$required,\n 'locked' => '0',\n 'visible' => '2',\n 'forceunique' => $unique,\n 'signup' => '0',\n 'defaultdata' => (isset($type['defaultdata'])) ? $type['defaultdata'] : '1',\n 'defaultdataformat' => '0',\n 'param1' => $type['param1'],\n 'param2' => $type['param2'],\n 'param3' => $type['param3'],\n 'param4' => $type['param4'],\n 'param5' => $type['param5'],\n ),\n array(\n 'shortname' => 'test'.$type['datatype'],\n 'name' => 'Test '.$type['datatype'],\n 'datatype' => $type['edatatype'],\n 'description' => '<p>Test '.$type['datatype'].' Description</p>',\n 'categoryid' => '7',\n 'multivalued' => '0',\n 'forceunique' => (string)(int)$unique,\n 'params' => serialize(array()),\n ),\n $type['elis_manual_owner_params']\n );\n }\n }\n }\n\n return $testdata;\n }", "title": "" }, { "docid": "34af4b5fdf72a60077240d4763377a42", "score": "0.51025647", "text": "protected function setUp() {\n $this->object = new Transformer(array(\n 'loop' => array(\n array(\n 'name' => 'name1',\n 'value' => 'value1',\n 'value2'=> 'otherVal1'\n ),\n array(\n 'name' => 'name2',\n 'value' => 'value2',\n 'value2'=> 'otherVal2'\n ),\n array(\n 'name' => 'name3',\n 'value' => 'value3',\n 'value2'=> 'otherVal3'\n ),\n )\n ));\n }", "title": "" }, { "docid": "71c01d7e37e66810b04aa67478e9f4fb", "score": "0.5099007", "text": "public function constructorTestData(): array\n {\n return [\n [\n [\n 'id' => [\n 'type' => 'intger'\n ]\n ],\n 'id'\n ],\n [\n '*',\n '*'\n ],\n [\n new \\Mezon\\FieldsSet([\n 'id' => [\n 'type' => 'intger'\n ]\n ]),\n 'id'\n ]\n ];\n }", "title": "" }, { "docid": "6bd9c82ef91b6e7982994bac70bc8156", "score": "0.5096806", "text": "public function build(){\n $type = $this->field->arg( 'type' );\n return $this->{$type}( $type );\n }", "title": "" }, { "docid": "f713e97c9b68da3c2fa50f8ce19ca1da", "score": "0.50952554", "text": "protected function buildMainFields()\n {\n //====================================================================//\n // Company\n $this->fieldsFactory()->Create(SPL_T_VARCHAR)\n ->identifier(\"company\")\n ->name(__(\"Company\"))\n ->microData(\"http://schema.org/Organization\", \"legalName\")\n ;\n //====================================================================//\n // Firstname\n $this->fieldsFactory()->Create(SPL_T_VARCHAR)\n ->identifier(\"first_name\")\n ->name(__(\"First Name\"))\n ->microData(\"http://schema.org/Person\", \"familyName\")\n ->association(\"first_name\", \"last_name\")\n ->isListed()\n ;\n //====================================================================//\n // Lastname\n $this->fieldsFactory()->Create(SPL_T_VARCHAR)\n ->identifier(\"last_name\")\n ->name(__(\"Last Name\"))\n ->microData(\"http://schema.org/Person\", \"givenName\")\n ->association(\"first_name\", \"last_name\")\n ->isListed()\n ;\n //====================================================================//\n // Address 1\n $this->fieldsFactory()->Create(SPL_T_VARCHAR)\n ->identifier(\"address_1\")\n ->name(__(\"Address line 1\"))\n ->microData(\"http://schema.org/PostalAddress\", \"streetAddress\")\n ->isLogged()\n ;\n //====================================================================//\n // Address 2\n $this->fieldsFactory()->Create(SPL_T_VARCHAR)\n ->identifier(\"address_2\")\n ->name(__(\"Address line 2\"))\n ->microData(\"http://schema.org/PostalAddress\", \"postOfficeBoxNumber\")\n ->isLogged()\n ;\n //====================================================================//\n // Address Full\n $this->fieldsFactory()->create(SPL_T_VARCHAR)\n ->identifier(\"address_full\")\n ->name(__(\"Address line 1 & 2\"))\n ->microData(\"http://schema.org/PostalAddress\", \"alternateName\")\n ->isReadOnly()\n ;\n //====================================================================//\n // Zip Code\n $this->fieldsFactory()->Create(SPL_T_VARCHAR)\n ->identifier(\"postcode\")\n ->name(__(\"Postcode / ZIP\"))\n ->microData(\"http://schema.org/PostalAddress\", \"postalCode\")\n ->isLogged()\n ->isListed()\n ;\n //====================================================================//\n // City Name\n $this->fieldsFactory()->Create(SPL_T_VARCHAR)\n ->identifier(\"city\")\n ->name(__(\"City\"))\n ->microData(\"http://schema.org/PostalAddress\", \"addressLocality\")\n ->isListed()\n ;\n //====================================================================//\n // Country ISO Code\n $this->fieldsFactory()->Create(SPL_T_COUNTRY)\n ->identifier(\"country\")\n ->name(__(\"Country\"))\n ->isLogged()\n ->microData(\"http://schema.org/PostalAddress\", \"addressCountry\")\n ;\n //====================================================================//\n // State code\n $this->fieldsFactory()->Create(SPL_T_STATE)\n ->identifier(\"state\")\n ->name(__(\"State / County\"))\n ->microData(\"http://schema.org/PostalAddress\", \"addressRegion\")\n ->isNotTested()\n ;\n }", "title": "" }, { "docid": "97ee438eea1d449193b903ccd3a9a0e4", "score": "0.5092689", "text": "public function createData()\n {\n return array(\n 'All defaults' => array('12345678901234567890', '[email protected]', null, null, null, null, 'otpauth://hotp/test.ease%40example.org?secret=GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ'),\n 'All options' => array('12345678901234567890', '[email protected]', 'Skynet', 111, 10, 'SHA256', 'otpauth://hotp/test.ease%40example.org?secret=GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ&counter=111&digits=10&algorithm=SHA256&issuer=Skynet'),\n );\n }", "title": "" }, { "docid": "530fd1e74af099c5758a5443efc054cd", "score": "0.5068981", "text": "public function buildFields()\n {\n $this->addField('stockist', 'Stockist', true);\n $this->addField('address', 'Address', true);\n $this->addField('postCode', 'Post code', true);\n $this->addField('website', 'Website', true);\n $this->addField('county', 'County', true);\n }", "title": "" }, { "docid": "5eca13ce1cef5fbdf231b7c3db1ca1be", "score": "0.5057547", "text": "public abstract function build();", "title": "" }, { "docid": "1a2b326171f240f19332e2d16b23ba0d", "score": "0.50545746", "text": "public function build()\n {\n return $this->_type->build();\n }", "title": "" }, { "docid": "c5464778b5033ab50da3c08ddd214d13", "score": "0.5044104", "text": "public function dataProviderPrimitiveData() {\n $data = [];\n\n $definition = DataDefinition::createFromDataType('string');\n $string = new StringData($definition, 'string');\n $string->setValue('test');\n\n $data['string'] = [$string, 'test'];\n\n $definition = DataDefinition::createFromDataType('string');\n $string = new StringData($definition, 'string');\n $string->setValue(NULL);\n\n $data['string-null'] = [$string, NULL];\n\n $definition = DataDefinition::createFromDataType('integer');\n $integer = new IntegerData($definition, 'integer');\n $integer->setValue(5);\n\n $data['integer'] = [$integer, 5];\n\n $definition = DataDefinition::createFromDataType('integer');\n $integer = new IntegerData($definition, 'integer');\n $integer->setValue(NULL);\n\n $data['integer-null'] = [$integer, NULL];\n\n $definition = DataDefinition::createFromDataType('boolean');\n $boolean = new BooleanData($definition, 'boolean');\n $boolean->setValue(TRUE);\n\n $data['boolean'] = [$boolean, TRUE];\n\n $definition = DataDefinition::createFromDataType('boolean');\n $boolean = new BooleanData($definition, 'boolean');\n $boolean->setValue(NULL);\n\n $data['boolean-null'] = [$boolean, NULL];\n\n return $data;\n }", "title": "" }, { "docid": "b674902ddfd18227626815dcdf7dcf5a", "score": "0.50231904", "text": "public function buildData()\n {\n $this->data = [\n 'action' => $this->action,\n 'controller' => $this->controller,\n 'statusCode' => $this->statusCode,\n ];\n }", "title": "" }, { "docid": "1bb25e9c8cdea606a257b5c50f8dde46", "score": "0.5022544", "text": "public function CreateTypePhp($data){\n\t\t$server=$data['server'];\n\t\t$res=&$data['res'];\n\t\t$res[]=\"/**\";\n\t\tif(!is_null($this->Docs)){\n\t\t\t$res[]=\" * \".implode(\"\\n * \",explode(\"\\n\",$this->Docs));\n\t\t\t$res[]=\" *\";\n\t\t}\n\t\t$res[]=\" * @pw_enum \".$this->Type.\" \".$this->Name.\" \".implode(',',$this->Elements);\n\t\t$res[]=\" */\";\n\t\t$res[]=\"abstract class \".$this->Name.\"{\";\n\t\t$i=-1;\n\t\t$eLen=sizeof($this->Elements);\n\t\twhile(++$i<$eLen){\n\t\t\t$temp=explode('=',$this->Elements[$i],2);\n\t\t\tif(sizeof($temp)==1) $temp[]=$temp[0];// Use the key as string value, if no value was given\n\t\t\t$res[]=\"\\t/**\";\n\t\t\t$res[]=\"\\t * @var \".$this->Type;\n\t\t\t$res[]=\"\\t */\";\n\t\t\t$res[]=\"\\tconst \\$\".$temp[0].\"=\\\"\".addslashes($temp[1]).\"\\\";\";\n\t\t}\n\t\t$res[]=\"}\";\n\t}", "title": "" }, { "docid": "85c112f70b0ba82c3c45b72a879edc0b", "score": "0.5022209", "text": "protected function buildClass()\n {\n $tableName = $this->getEntity()->getTableName();\n $this->getDefinition()->setDescription(\"Test class for Additional builder enabled on the '$tableName' table.\");\n }", "title": "" }, { "docid": "725ac61f9dd179ba9509612efed33478", "score": "0.5021533", "text": "public function data_make() {\n\t\t\t$data = array(\n\t\t\t\tarray(array(array(1, 2)), array(array(1, 2))),\n\t\t\t);\n\t\t\treturn $data;\n\t\t}", "title": "" }, { "docid": "8e1e95c31604bb194a3cae1def4bad70", "score": "0.5018776", "text": "private function _createExpectedData()\n {\n return [\n 'recordId' => 1,\n 'seoModel' => [\n 'name' => 'name 1',\n 'alias' => 'alias-1',\n 'title' => 'title 1',\n 'keywords' => 'keywords 1',\n 'description' => 'description 1',\n ],\n 'textTextInstanceModel' => [\n 'textId' => 1,\n 'text' => ''\n ],\n 'descriptionTextInstanceModel' => [\n 'textId' => 1,\n 'text' => ''\n ],\n 'imageGroupModel' => [\n 'imageId' => 1,\n 'seoModel' => [\n 'name' => 'record',\n ],\n 'sort' => 0,\n ],\n 'coverImageInstanceModel' => [\n 'imageGroupId' => 1,\n 'isCover' => false,\n 'sort' => 0,\n 'alt' => '',\n 'width' => 0,\n 'height' => 0,\n 'viewX' => 0,\n 'viewY' => 0,\n 'viewWidth' => 0,\n 'viewHeight' => 0,\n 'thumbX' => 0,\n 'thumbY' => 0,\n 'thumbWidth' => 0,\n 'thumbHeight' => 0,\n ],\n 'sort' => 0,\n ];\n }", "title": "" }, { "docid": "50b5d77f2cedc5cf84e8fa06845055a8", "score": "0.50179964", "text": "public function create($data)\n {\n return Property::create($data);\n }", "title": "" }, { "docid": "88731602e5caa908e98436574efeca4c", "score": "0.5015236", "text": "protected function createCustomData()\n {\n $p = &$this->data;\n\n $p['data'] = Util\\toJSONArray(@$p['data']);\n $p['sys_data'] = Util\\toJSONArray(@$p['sys_data']);\n\n //filter fields\n $this->filterHTMLFields($p['data']);\n\n $this->lastMentionedUserIds = $this->setFollowers();\n\n $this->collectSolrData();\n\n $data = array(\n 'id' => $this->id\n ,'data' => Util\\jsonEncode($p['data'])\n ,'sys_data' => Util\\jsonEncode($p['sys_data'])\n );\n\n if (DM\\Objects::exists($this->id)) {\n DM\\Objects::update($data);\n } else {\n DM\\Objects::create($data);\n }\n }", "title": "" }, { "docid": "88f815bbb8294dd247b7e4b59fe224c6", "score": "0.50052845", "text": "private function _createData()\n {\n return [\n 'recordId' => 1,\n 'seoModel' => [\n 'name' => 'name 1',\n 'alias' => 'alias-1',\n 'title' => 'title 1',\n 'keywords' => 'keywords 1',\n 'description' => 'description 1',\n ],\n 'textTextInstanceModel' => [\n 'textId' => 1,\n 'text' => ''\n ],\n 'descriptionTextInstanceModel' => [\n 'textId' => 1,\n 'text' => ''\n ],\n 'imageGroupModel' => [\n 'imageId' => 1,\n 'seoModel' => [\n 'name' => 'record',\n ],\n 'sort' => 0,\n ],\n 'coverImageInstanceModel' => [\n 'imageGroupId' => 1,\n 'originalFileModel' => [\n 'uniqueName' => uniqid()\n ],\n 'viewFileModel' => [\n 'uniqueName' => uniqid()\n ],\n 'thumbFileModel' => [\n 'uniqueName' => uniqid()\n ],\n 'isCover' => false,\n 'sort' => 0,\n 'alt' => '',\n 'width' => 0,\n 'height' => 0,\n 'viewX' => 0,\n 'viewY' => 0,\n 'viewWidth' => 0,\n 'viewHeight' => 0,\n 'thumbX' => 0,\n 'thumbY' => 0,\n 'thumbWidth' => 0,\n 'thumbHeight' => 0,\n ],\n 'sort' => 0,\n ];\n }", "title": "" }, { "docid": "971f068cf6694f8c1e335047171f8396", "score": "0.50052583", "text": "public function build();", "title": "" }, { "docid": "971f068cf6694f8c1e335047171f8396", "score": "0.50052583", "text": "public function build();", "title": "" }, { "docid": "971f068cf6694f8c1e335047171f8396", "score": "0.50052583", "text": "public function build();", "title": "" }, { "docid": "971f068cf6694f8c1e335047171f8396", "score": "0.50052583", "text": "public function build();", "title": "" }, { "docid": "971f068cf6694f8c1e335047171f8396", "score": "0.50052583", "text": "public function build();", "title": "" }, { "docid": "971f068cf6694f8c1e335047171f8396", "score": "0.50052583", "text": "public function build();", "title": "" }, { "docid": "971f068cf6694f8c1e335047171f8396", "score": "0.50052583", "text": "public function build();", "title": "" }, { "docid": "d2be2985a4cdd7f67b29f9c8ac246923", "score": "0.49963287", "text": "public function createAndReadProvider() {\n\t\t$data = array('foo'=>'bar', 'category'=>12);\n\t\t\n\t\t$object = new stdClass;\n\t\tforeach ($data as $key=>$value) {\n\t\t\t$object->$key = $value;\n\t\t}\n\t\t\n\t\t$fat_array = $data;\n\t\t$fat_array['not_a_field'] = 'whatever';\n\t\t\n\t\t$fat_object = new stdClass;\n\t\tforeach ($fat_array as $key=>$value) {\n\t\t\t$fat_object->$key = $value;\n\t\t}\n\t\t\n\t\treturn array(\n\t\t\tarray($data),\t\t// create a record from an array\n\t\t\tarray($object),\t // create a record from an object\n\t\t\tarray($fat_array), // use an array with extra non-table data\n\t\t\tarray($fat_object), // use an object with extra non-table data\n\t\t\t);\n\t}", "title": "" }, { "docid": "d1a363223ff74ac11f7dc3b32e2b139c", "score": "0.49950296", "text": "public static function build()\n {\n }", "title": "" }, { "docid": "459207f96f1623ec65cc934436fabc9c", "score": "0.49651843", "text": "public function creating(array $data);", "title": "" }, { "docid": "4d239f7fd99b66bb3b665d4415913f01", "score": "0.49643934", "text": "public function buildDataContext()\n {\n $blockData = array(\n 'text' => get_sub_field('text_text')\n );\n\n $data = array(\n 'data' => $blockData\n );\n\n $this->_context->setContext($data);\n }", "title": "" }, { "docid": "544c6bb28879a34b8b7805d1c4e7cb7d", "score": "0.4953553", "text": "public function __construct($data) {\n foreach ($data as $k => $v) {\n $this->$k = $v;\n }\n }", "title": "" }, { "docid": "9b9b55495cfa8b3db471c6fcdbd51042", "score": "0.49458408", "text": "private function buildFieldsData($type, &$element) {\n $fields = field_info_instances('node', $type);\n $element->fields = [];\n\n foreach ($fields as $id => $field) {\n $fieldID = $field['id'];\n $fieldName = $field['field_name'];\n $fieldLabel = $field['label'];\n $fieldModule = $field['widget']['module'];\n $fieldWidgetType = $field['widget']['type'];\n $fieldRequired = $field['required'] ? TRUE : FALSE;\n $fieldDescription = $field['description'];\n\n $fieldData = new stdClass();\n $fieldData->id = $fieldID;\n $fieldData->name = $fieldLabel;\n $fieldData->help = $fieldDescription;\n $fieldData->required = $fieldRequired;\n $fieldData->datatype = $fieldModule;\n $fieldData->{'ui-type'} = $fieldWidgetType;\n\n $element->fields[] = $fieldData;\n }\n }", "title": "" }, { "docid": "698e9b5d5dd0f3e4269672181a3d3695", "score": "0.49400204", "text": "public function __construct($data = null)\n {\n if ($data) {\n $this->initProperties((new DataToArrayCaster())->cast($data));\n }\n }", "title": "" }, { "docid": "81df25ca67f025becc0d074a1691a8cd", "score": "0.49317464", "text": "public function __construct(Data $data = null)\n {\n if (is_null($data)) {\n return;\n }\n\n $this->setSimpleType($data->simpleType)\n ->setShortInfo($data->shortInfo)\n ->setLongInfo($data->longInfo)\n ->setModel($data->model);\n }", "title": "" }, { "docid": "96c094f9cdc8602da129d7c7a527c675", "score": "0.49277714", "text": "public function __construct( $type, $name, $intention, $genre, $data ) {\n\n $this->html = hoz_json_html_factory::factory( $type, $name, $intention, $genre, $data );\n $this->modules = hoz_json_modules_factory::factory( $type, $name, $intention, $genre , $data );\n }", "title": "" }, { "docid": "0b6e3daa279872b92069023549c6f317", "score": "0.4905848", "text": "private function createBasicData(): array\n {\n return [\n '__version' => Descriptor::FORMAT_VERSION,\n 'entities' => [],\n ];\n }", "title": "" }, { "docid": "537c9e0a39e607b6b269da028f97df32", "score": "0.48903945", "text": "abstract protected function initCreatingFields();", "title": "" }, { "docid": "3b95c707d67f707d761e12b195e34ddb", "score": "0.48902556", "text": "protected function setUp()\n {\n $this->object = new MetaData(array('first' => 'string', 'second' => 1000));\n }", "title": "" }, { "docid": "a2d84080f11d64c3b3baad6cb367e6dc", "score": "0.48883227", "text": "function _buildComplexTypes() {\n\t\tif ($this->complexTypes) {\n\t\t\tforeach ($this->complexTypes as $name => $def) {\n\t\t\t\tif (isset($def['array'])) {\n\t\t\t\t\t$item=$def['array'];\n\t\t\t\t\tif (strpos($item, 'xsd:') === false) {\n\t\t\t\t\t\t$item = \"tns:$item\";\n\t\t\t\t\t}\n\t\t\t\t\t$phpType = 'array';\n\t\t\t\t\t$compositor = '';\n\t\t\t\t\t$restrictionBase = 'SOAP-ENC:Array';\n\t\t\t\t\t$elements = array();\n\t\t\t\t\t$attrs = array(array('ref' => 'SOAP-ENC:arrayType', 'wsdl:arrayType' => \"{$item}[]\"));\n\t\t\t\t\t$arrayType = $item;\n\t\t\t\t} else if (isset($def['struct'])) { \t\t\t\t\t\n\t\t\t\t\t$phpType = 'struct';\n\t\t\t\t\t$compositor = 'all';\n\t\t\t\t\t$restrictionBase = '';\n\t\t\t\t\t$elements = array();\n\t\t\t\t\tforeach ($def['struct'] as $n => $v) {\n\t\t\t\t\t\t$elements[$n] = array('name' => $n, 'type' => $v); \t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t$attrs = array();\n\t\t\t\t\t$arrayType = '';\n\t\t\t\t} else if (isset($def['model'])) { \t\t\t\t\t\n\t\t\t\t\t$phpType = 'struct';\n\t\t\t\t\t$compositor = 'all';\n\t\t\t\t\t$restrictionBase = '';\n\t\t\t\t\t$elements = array();\n\t\t\t\t\t$columns = $this->{$def['model']}->getColumnTypes();\n\t\t\t\t\tforeach ($columns as $n => $v) {\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t$pos = strpos($v, \"(\");\n\t\t\t\t\t\tif ($pos) {\n\t\t\t\t\t\t\t$v = substr($v, 0, $pos);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$include = false;\n\t\t\t\t\t\tif (isset($def['fields'])) {\n\t\t\t\t\t\t \tif (isset($def['fields'][$n])) {\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t \t\t$n = $def['fields'][$n];\n\t\t\t\t\t\t \t\t$include = true;\n\t\t\t\t\t\t \t} else if (in_array($n, $def['fields'])) {\n\t\t\t\t\t\t\t\t$include = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$include = true;\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\tif ($include) $elements[$n] = array('name' => $n, 'type' => $this->columnTypes[$v]);\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t$attrs = array();\n\t\t\t\t\t$arrayType = '';\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse continue;\n\t\t\t\t\n\t\t\t\t$this->_soap_server->wsdl->addComplexType($name, 'complexType', $phpType, $compositor, $restrictionBase, $elements, $attrs, $arrayType); \t\t\t\t\n\t\t\t}\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "db7717a8aa25b41af098962116704b18", "score": "0.48759937", "text": "public function getDataDefinition();", "title": "" }, { "docid": "db7717a8aa25b41af098962116704b18", "score": "0.48759937", "text": "public function getDataDefinition();", "title": "" }, { "docid": "cc00505b7d71be3a2f191e4aec82346b", "score": "0.48696184", "text": "public function definition()\n {\n $this->faker = \\Faker\\Factory::create(config('app.faker_locale'));\n $this->faker->addProvider(new \\SupGeekRod\\FakerZh\\ZhCnDataProvider($this->faker));\n\n return [\n 'type' => $this->faker->randomElement(['thumb_up', 'thumb_down']),\n 'user_id' => null,\n 'entity_class' => null,\n 'entity_id' => null,\n\n 'created_at' => $this->faker->dateTimeThisMonth(),\n 'updated_at' => $this->faker->dateTimeThisMonth(),\n ];\n }", "title": "" }, { "docid": "e47c72a409d6a47e5040257bb121a68e", "score": "0.48587385", "text": "public function buildSchema();", "title": "" }, { "docid": "28e12028fa670c9b6a5a3aa78c18d47a", "score": "0.48580128", "text": "protected function geretateTestData()\n {\n factory($this->model, $this->initDataNumber)->create();\n factory($this->model)->create($this->seederObject);\n factory($this->model)->create($this->seederObjectFilter);\n }", "title": "" }, { "docid": "63e51cad38a8f09d50cbf9bc848b040d", "score": "0.48572066", "text": "protected function makeDataGenerator($properties)\n {\n return JqplotDataGenerator::factory($properties['graph_type'], $properties);\n }", "title": "" }, { "docid": "71d66e35e6ff0f4ab9e22bf1dc6b28fb", "score": "0.48465946", "text": "public function fromArray($data)\n\t{\n\t\tif (isset($data[\"id\"]))\n\t\t\t$this->id = $data[\"id\"];\n\n\t\tif (isset($data[\"name\"]))\n\t\t\t$this->name = $data[\"name\"];\n\n\t\tif (isset($data[\"title\"]))\n\t\t\t$this->title = $data[\"title\"];\n\n\t\tif (isset($data[\"type\"]))\n\t\t\t$this->type = $data[\"type\"];\n\n\t\tif (isset($data[\"subtype\"]))\n\t\t\t$this->subtype = $data[\"subtype\"];\n\n\t\tif (isset($data[\"mask\"]))\n\t\t\t$this->mask = $data[\"mask\"];\n\n\t\tif (isset($data[\"required\"]))\n\t\t\t$this->required = ($data[\"required\"]===true || (string)$data[\"required\"]==\"true\" || (string)$data[\"required\"]==\"t\") ? true : false;\n\n\t\tif (isset($data[\"system\"]))\n\t\t\t$this->system = ($data[\"system\"]===true || (string)$data[\"system\"]==\"true\" || (string)$data[\"system\"]==\"t\") ? true : false;\n\n\t\tif (isset($data[\"readonly\"]))\n\t\t\t$this->readonly = ($data[\"readonly\"]===true || (string)$data[\"readonly\"]==\"true\" || (string)$data[\"readonly\"]==\"t\") ? true : false;\n\n\t\tif (isset($data[\"unique\"]))\n\t\t\t$this->unique = ($data[\"unique\"]===true || (string)$data[\"unique\"]==\"true\" || (string)$data[\"unique\"]==\"t\") ? true : false;\n\n\t\tif (isset($data[\"autocreate\"]))\n\t\t\t$this->autocreate = $data[\"autocreate\"];\n\t\t\n\t\tif (isset($data[\"autocreatename\"]))\n\t\t\t$this->autocreatename = $data[\"autocreatename\"];\n\t\t\n\t\tif (isset($data[\"autocreatebase\"]))\n\t\t\t$this->autocreatebase = $data[\"autocreatebase\"];\n\n\t\tif (isset($data[\"use_when\"]))\n\t\t\t$this->setUseWhen($data[\"use_when\"]);\n\n\t\tif (isset($data[\"default\"]))\n\t\t\t$this->default = $data[\"default\"];\n\n\t\tif (isset($data[\"optional_values\"]))\n\t\t\t$this->optionalValues = $data[\"optional_values\"];\n\n\t\tif (isset($data[\"fkey_table\"]))\n\t\t\t$this->fkeyTable = $data[\"fkey_table\"];\n\n\t\t// Check object groupings\n\t\tif ((\"fkey\" == $this->type || \"fkey_multi\" == $this->type) && \"object_groupings\" == $this->subtype && $this->fkeyTable == null)\n\t\t{\n\t\t\t$this->fkeyTable = array(\n\t\t\t\t\"key\"=>\"id\", \n\t\t\t\t\"title\"=>\"name\", \n\t\t\t\t\"parent\"=>\"parent_id\",\n\t\t\t\t\t\"ref_table\"=>array(\n\t\t\t\t\t\t\"table\"=>\"object_grouping_mem\", \n\t\t\t\t\t\t\"this\"=>\"object_id\", \n\t\t\t\t\t\t\"ref\"=>\"grouping_id\"\n\t\t\t\t\t)\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "e5c259ca5d09603267725be73f256d18", "score": "0.48444915", "text": "abstract public function __construct( $data );", "title": "" }, { "docid": "e04607c8f3c9294b89ff35a91ca9d7eb", "score": "0.48439717", "text": "public function buildFields()\n {\n $this->addField('email', 'Email', true);\n $this->addField('node', 'Node', true);\n $this->addField('lang', 'Lang', true);\n $this->addField('active', 'Active', true);\n }", "title": "" }, { "docid": "89ba057a33036519936e4dfeff71ee59", "score": "0.4837358", "text": "public function get_data() {\n if (!$data = parent::get_data()) {\n return $data;\n }\n $templates = array();\n foreach ($this->templatekeys as $key) {\n if (isset($data->$key) && empty($data->{$key.'_usedefault'})) {\n $templates[$key] = $data->$key;\n unset($data->$key);\n }\n }\n $data->customtext1 = json_encode($templates);\n return $data;\n }", "title": "" }, { "docid": "16dd381b696ae57e5b3f85284a6f0749", "score": "0.48348057", "text": "abstract public function create(array $data);", "title": "" }, { "docid": "a2d3a37b420db51507d78287bf1bb9fa", "score": "0.48283777", "text": "public function build()\n {\n $data = array();\n foreach($this->data as $value) {\n\n $row = array();\n\n if(isset($value['filter'])) {\n $row[] = $value['filter'];\n } else {\n $row[] = $this->defaultFilter;\n }\n\n $row[] = $value['value'];\n\n if(array_key_exists('expected', $value)) {\n $row[] = $value['expected'];\n } else {\n $row[] = $value['value'];\n }\n\n if (isset($value['validator'])) {\n $row[] = $value['validator'];\n } else {\n $row[] = new Validator();\n }\n\n $data[$value['name']] = $row;\n }\n return $data;\n }", "title": "" }, { "docid": "8a6dc05247e506ab9c05076702f4dd46", "score": "0.48203224", "text": "public function __construct($type, $data = null) {\r\n\t\t$this->type = $type;\r\n\t\t$this->data = $data;\r\n\t}", "title": "" }, { "docid": "30ed00d737c58fc3401f3046b29fe0ef", "score": "0.4817694", "text": "public function init() {\n extract($this->data);\n }", "title": "" }, { "docid": "bdefe9ac6ef9157b107d869c45ef7e81", "score": "0.4810597", "text": "public function buildObjectBasedOn(BuildPlan $p);", "title": "" }, { "docid": "9c8e4aa59b1c7510439a7976b70a91bb", "score": "0.48033276", "text": "public function build() {\n // Check the number of observations in a given dataset\n if ($this->count < 3) {\n throw new \\InvalidArgumentException('The dataset should contain a minimum of 3 observations.');\n }\n \n $b = $this->round_($this->bSlope());\n $a = $this->round_($this->aIntercept($b));\n $model = $this->createModel($a, $b);\n $y = $this->round_($model($this->x));\n \n $result = new \\stdClass();\n $result->ln_model = (string) ($a.'+'.$b.'x');\n $result->cor = $this->round_($this->corCoefficient($b));\n $result->x = $this->x;\n $result->y = $y;\n \n return $result;\n }", "title": "" }, { "docid": "cf5b1325fdbec5d3427d2bddf9236f73", "score": "0.4799808", "text": "abstract public function data();", "title": "" }, { "docid": "c4215e492b1a71dc45500b31dd86c971", "score": "0.47952986", "text": "public function getFieldsToGenerateMeta();", "title": "" }, { "docid": "b72fc6097385e2023f84d27a4a51b1e5", "score": "0.47919387", "text": "abstract public function NewDataDictionary();", "title": "" }, { "docid": "1af5f40a7ef5b59b10f36e74c736c290", "score": "0.4791718", "text": "protected function buildExtraFields(): void\n {\n //====================================================================//\n // Ean\n $this->fieldsFactory()->create(SPL_T_VARCHAR)\n ->identifier(\"ean\")\n ->name(\"[OPT] Ean\")\n ->microData(\"http://schema.org/Product\", \"gtin13\")\n ->isReadOnly()\n ;\n //====================================================================//\n // Truncated Product Description\n $this->fieldsFactory()->create(SPL_T_TEXT)\n ->identifier(\"shorten_description\")\n ->name(\"[OPT] Desc.\")\n ->description(\"[OPTION] Truncated Short Description\")\n ->group(\"Description\")\n ->setMultilang(self::getDefaultLanguage())\n ->isReadOnly()\n ;\n //====================================================================//\n // Product Cost Price\n $this->fieldsFactory()->create(SPL_T_PRICE)\n ->identifier(\"cost\")\n ->name(\"[OPT] Cost HT\".\" (\".Mage::app()->getStore()->getCurrentCurrencyCode().\")\")\n ->microData(\"http://schema.org/Product\", \"wholesalePrice\")\n ->isReadOnly()\n ;\n }", "title": "" }, { "docid": "12c18050663a52a1996d47aa104d16a6", "score": "0.47818366", "text": "function cform_make_content_typ()\n\t{\n\t\t$typ_array = array();\n\t\t// result_cat\n\t\t$typ_array[] = array(\n\t\t\t\"type\" => \"alpha\",\n\t\t\t\"name\" => \"alphabetisch\"\n\t\t);\n\n\t\t$typ_array[] = array(\n\t\t\t\"type\" => \"num\",\n\t\t\t\"name\" => \"numerisch\"\n\t\t);\n\t\t$this->content->template['result_cat_ctyp'] = $typ_array;\n\t}", "title": "" }, { "docid": "efc8470073ff4e407689382b4467376b", "score": "0.4776046", "text": "public function definition()\n {\n $title = $this->faker->word(mt_rand(4,5), true);\n $sub_title = $this->faker->word(mt_rand(4,6), true);\n $start_date = $this->faker->dateTimeBetween($startDate = '2020-01-01', $endDate = 'now')->format(\"Y-m-d\");\n $speaker_id = mt_rand(1,15);\n\n return [\n 'title' => $title,\n 'sub_title' => $sub_title,\n 'start_date' => $start_date,\n 'speaker_id' => $speaker_id,\n ];\n }", "title": "" }, { "docid": "3433a51d16d16bd429fb1ccb1c866ed4", "score": "0.47748104", "text": "abstract public static function builder();", "title": "" }, { "docid": "a5d36ae6f81aabff26b21e3802a4eb32", "score": "0.4766512", "text": "public function build() {\n\n\t\t$this->add_item( 'full_name', array(\n\t\t\t'name' => 'full_name',\n\t\t\t'type' => 'text',\n\t\t\t'required' => true,\n\t\t\t'label' => 'Full Name',\n\t\t\t'split' => 2,\n\t\t\t'max_length' => 128,\n\t\t) );\n\n\t\t$this->add_item( 'name', array(\n\t\t\t'name' => 'name',\n\t\t\t'type' => 'text',\n\t\t\t'required' => true,\n\t\t\t'label' => 'Name',\n\t\t\t'split' => 2,\n\t\t\t'max_length' => 128,\n\t\t) );\n\n\t\t$this->add_item( 'subject', array(\n\t\t\t'name' => 'subject',\n\t\t\t'type' => 'text',\n\t\t\t'required' => true,\n\t\t\t'label' => 'Subject',\n\t\t\t'split' => 2,\n\t\t\t'max_length' => 356,\n\t\t) );\n\n\t\t$this->add_item( 'first_name', array(\n\t\t\t'name' => 'first_name',\n\t\t\t'type' => 'text',\n\t\t\t'required' => true,\n\t\t\t'label' => 'First Name',\n\t\t\t'split' => 2,\n\t\t\t'max_length' => 128,\n\t\t) );\n\n\t\t$this->add_item( 'last_name', array(\n\t\t\t'name' => 'last_name',\n\t\t\t'type' => 'text',\n\t\t\t'required' => true,\n\t\t\t'label' => 'Last Name',\n\t\t\t'split' => 2,\n\t\t\t'max_length' => 128,\n\t\t) );\n\n\t\t$this->add_item( 'message', array(\n\t\t\t'name' => 'message',\n\t\t\t'type' => 'textarea',\n\t\t\t'label' => 'Message',\n\t\t\t'required' => true,\n\t\t\t'split' => 1,\n\t\t\t'attributes' => array(\n\t\t\t\t'rows' => 6,\n\t\t\t),\n\t\t\t'max_length' => 8000,\n\t\t) );\n\n\t\t$this->add_item( 'email', array(\n\t\t\t'name' => 'email',\n\t\t\t'type' => 'text',\n\t\t\t'required' => true,\n\t\t\t'label' => 'Email',\n\t\t\t'split' => 2,\n\t\t\t'max_length' => 128,\n\t\t) );\n\n\t\t$this->add_item( 'phone', array(\n\t\t\t'name' => 'phone',\n\t\t\t'type' => 'text',\n\t\t\t'required' => true,\n\t\t\t'label' => 'Phone',\n\t\t\t'split' => 2,\n\t\t\t'max_length' => 32,\n\t\t) );\n\n\t\t$this->add_item( 'street', array(\n\t\t\t'name' => 'street',\n\t\t\t'type' => 'text',\n\t\t\t'required' => true,\n\t\t\t'label' => 'Street',\n\t\t\t'split' => 2,\n\t\t\t'max_length' => 256,\n\t\t) );\n\n\t\t$this->add_item( 'city', array(\n\t\t\t'name' => 'city',\n\t\t\t'type' => 'text',\n\t\t\t'required' => true,\n\t\t\t'label' => 'City',\n\t\t\t'split' => 2,\n\t\t\t'max_length' => 64,\n\t\t) );\n\n\t\t$this->add_item( 'province', array(\n\t\t\t'name' => 'province',\n\t\t\t'type' => 'text',\n\t\t\t'required' => true,\n\t\t\t'label' => 'Province',\n\t\t\t'split' => 2,\n\t\t\t'max_length' => 64,\n\t\t) );\n\n\t\t$this->add_item( 'postal', array(\n\t\t\t'name' => 'postal',\n\t\t\t'type' => 'text',\n\t\t\t'required' => true,\n\t\t\t'label' => 'Postal',\n\t\t\t'split' => 2,\n\t\t\t'max_length' => 10,\n\t\t) );\n\n\t\t$this->add_item( 'country', array(\n\t\t\t'name' => 'country',\n\t\t\t'type' => 'text',\n\t\t\t'required' => true,\n\t\t\t'label' => 'Country',\n\t\t\t'split' => 2,\n\t\t\t'max_length' => 32,\n\t\t) );\n\n\t\t$this->add_item( 'company', array(\n\t\t\t'name' => 'company',\n\t\t\t'type' => 'text',\n\t\t\t'label' => 'Company Name',\n\t\t\t'required' => true,\n\t\t\t'split' => 2,\n\t\t\t'max_length' => 64,\n\t\t) );\n\t}", "title": "" }, { "docid": "0c51dfce9ab98aabb861d42f4d41ca92", "score": "0.4758583", "text": "public function testBuildEntityPropertyHintTypeMap()\n {\n $this->markTestIncomplete('Not implemented yet');\n }", "title": "" }, { "docid": "a4c0408a181bc742089774e2c8b09374", "score": "0.4758258", "text": "public function __construct()\n {\n $this->data['queries'] = array();\n $this->data['errors'] = array();\n $this->data['warnings'] = array();\n $this->data['time_summary'] = 0; // in milliseconds\n\n $this->data = array(\n 'queries' => array(),\n 'errors' => array(),\n 'warnings' => array(),\n 'time_summary' => 0,\n 'sql' => array(\n 'queries' => array(),\n 'errors' => array(),\n 'time_summary' => 0\n )\n );\n }", "title": "" }, { "docid": "7dcfd84fbba541413c563035a15e9cd5", "score": "0.47515103", "text": "public function testConstructor()\n {\n $property = 'property';\n $targetProperty = 'target';\n $mappingGroup = [\n 'default',\n 'test',\n ];\n $dataTransformer = 'transformer';\n\n $instance = new ObjectPropertyMetadata($property, $targetProperty);\n $this->assertTargetProperty($instance, $targetProperty);\n $this->assertProperty($instance, $property);\n $this->assertMappingGroup($instance);\n $this->assertDataTransformer($instance);\n\n $this->assertNull($instance->getMappedTransformer());\n $this->assertTrue(is_array($instance->getMappingGroup()));\n $this->assertEquals($targetProperty, $instance->getTargetProperty());\n $this->assertEquals($property, $instance->getProperty());\n\n $instance = new ObjectPropertyMetadata(\n $property,\n $targetProperty,\n $mappingGroup\n );\n $this->assertTargetProperty($instance, $targetProperty);\n $this->assertProperty($instance, $property);\n $this->assertMappingGroup($instance, $mappingGroup);\n $this->assertDataTransformer($instance);\n\n $instance = new ObjectPropertyMetadata(\n $property,\n $targetProperty,\n $mappingGroup,\n $dataTransformer\n );\n $this->assertTargetProperty($instance, $targetProperty);\n $this->assertProperty($instance, $property);\n $this->assertMappingGroup($instance, $mappingGroup);\n $this->assertDataTransformer($instance, $dataTransformer);\n }", "title": "" }, { "docid": "ff3bd37b20b2c240c64ce09bc47808af", "score": "0.47492", "text": "protected function setupData()\n {\n return $this->set('status')\n ->set('meta')\n ->set('message');\n }", "title": "" }, { "docid": "ff03ef083223a055ae379f2809ee5cd2", "score": "0.47353858", "text": "public function testConstructSetsDefaultValuesAndAccessibleByMagicGetters()\n {\n // Assert Result\n $this->assertEquals(0, $this->testObject->getId());\n $this->assertEquals(57, $this->testObject->getUserId());\n $this->assertEquals('', $this->testObject->getName());\n $this->assertEquals(null, $this->testObject->getCreatedDate());\n }", "title": "" }, { "docid": "582b2e58445e46d2e120bf35f4a7dc65", "score": "0.47346678", "text": "public function definition()\n {\n $limit = XField::limitLengthNameColumn();\n\n return [\n 'extensible' => $this->faker->randomElement(XField::extensibles()),\n 'name' => $this->faker->unique()->regexify(\"/^[a-z0-9_]{2,{$limit}}$/\"),\n 'type' => $this->faker->randomElement(XField::fieldTypes()),\n 'params' => [],\n 'title' => $this->faker->text(mt_rand(8, 48)),\n 'description' => null,\n 'html_flags' => [],\n 'created_at' => null,\n 'updated_at' => null,\n ];\n }", "title": "" }, { "docid": "eb9af5720526b0f1214e673f394818d6", "score": "0.47334003", "text": "public function __construct(\\stdClass &$fieldData) {\n $this->name = $fieldData->Field;\n $this->collation = $fieldData->Collation;\n $this->comment = $fieldData->Comment;\n $this->defaultValue = $fieldData->Default;\n\n $this->doType($fieldData);\n $this->doKeysAndIndices($fieldData);\n $this->doExtras($fieldData);\n }", "title": "" }, { "docid": "c5ed255f99e79d3e2312933c26c62e9b", "score": "0.47259396", "text": "public function buildExtraFields()\n {\n //====================================================================//\n // Load ExtraFields List\n $this->loadExtraFields();\n //====================================================================//\n // Run All ExtraFields List\n foreach ($this->getExtraTypes() as $fieldId => $fieldType) {\n //====================================================================//\n // Skip Incompatibles Types\n if (empty($this->getSplashType($fieldType))) {\n continue;\n }\n //====================================================================//\n // Create Extra Field Definition\n $this->fieldsFactory()\n ->create($this->getSplashType($fieldType))\n ->identifier($this->encodeType($fieldId))\n ->name($this->getLabel($fieldId))\n ->group(\"Extra\")\n ->addOption('maxLength', '14')\n ->microData(\"http://meta.schema.org/additionalType\", $fieldId)\n ;\n if ($this->isRequired($fieldId)) {\n $this->fieldsFactory()->isRequired();\n }\n if ($this->isReadOnly($fieldId)) {\n $this->fieldsFactory()->isReadOnly();\n }\n if ($this->extraInList) {\n $this->fieldsFactory()->inList($this->extraInList);\n }\n if (in_array($fieldType, array('select', \"checkbox\"), true)) {\n $this->fieldsFactory()\n ->addChoices($this->getChoices($fieldType, $fieldId))\n ;\n }\n }\n }", "title": "" } ]
1686ae4bc0ce588327cf68870b52815c
Gets the public 'nelmio_alice.generator.caller.chainable.configurator_method_call' shared service.
[ { "docid": "e4c6909e2490586da4ed80e8ef140cde", "score": "0.8021267", "text": "protected function getNelmioAlice_Generator_Caller_Chainable_ConfiguratorMethodCallService()\n {\n return $this->services['nelmio_alice.generator.caller.chainable.configurator_method_call'] = new \\Nelmio\\Alice\\Generator\\Caller\\Chainable\\ConfiguratorMethodCallProcessor();\n }", "title": "" } ]
[ { "docid": "55995cca5443bab41f815e2622f03bd9", "score": "0.6467059", "text": "public function getCallConfig();", "title": "" }, { "docid": "88be8e96bbce56d5eb32e1d5ea4169d7", "score": "0.6036535", "text": "protected function getNelmioAlice_FixtureBuilder_Denormalizer_FlagParser_Chainable_ConfiguratorService()\n {\n return $this->services['nelmio_alice.fixture_builder.denormalizer.flag_parser.chainable.configurator'] = new \\Nelmio\\Alice\\FixtureBuilder\\Denormalizer\\FlagParser\\Chainable\\ConfiguratorFlagParser();\n }", "title": "" }, { "docid": "bc76fca1f775de93b6b9270e3f04be2b", "score": "0.59797335", "text": "protected function getNelmioAlice_FixtureBuilder_Denormalizer_Fixture_Specs_Calls_MethodFlagHandler_ConfiguratorFlagHandlerService()\n {\n return $this->services['nelmio_alice.fixture_builder.denormalizer.fixture.specs.calls.method_flag_handler.configurator_flag_handler'] = new \\Nelmio\\Alice\\FixtureBuilder\\Denormalizer\\Fixture\\SpecificationBagDenormalizer\\Calls\\MethodFlagHandler\\ConfiguratorFlagHandler();\n }", "title": "" }, { "docid": "8c5f3f78ba03f171144e3b4ab5544a28", "score": "0.5884007", "text": "protected function getNelmioAlice_Generator_Caller_Chainable_OptionalMethodCallService()\n {\n return $this->services['nelmio_alice.generator.caller.chainable.optional_method_call'] = new \\Nelmio\\Alice\\Generator\\Caller\\Chainable\\OptionalMethodCallProcessor();\n }", "title": "" }, { "docid": "9eca90c896c9cec8e05073a643d48ee2", "score": "0.5765778", "text": "public function __invoke(): ConfigInterface;", "title": "" }, { "docid": "0979dce0875820b9e809517e95db7ae6", "score": "0.5726064", "text": "protected function getPsCheckout_Logger_ConfigurationService()\n {\n return $this->services['ps_checkout.logger.configuration'] = new \\PrestaShop\\Module\\PrestashopCheckout\\Logger\\LoggerConfiguration(${($_ = isset($this->services['ps_checkout.configuration']) ? $this->services['ps_checkout.configuration'] : $this->getPsCheckout_ConfigurationService()) && false ?: '_'});\n }", "title": "" }, { "docid": "f91e004ecf92211da0ae918b130a10c2", "score": "0.5710391", "text": "public function getConfig() { return $this->__call(__FUNCTION__, array()); }", "title": "" }, { "docid": "e440ec1545a27cda5e60425b42a3c3a5", "score": "0.5709411", "text": "public function getServiceConfig()\n {\n return $this->service_config;\n }", "title": "" }, { "docid": "efb14067b5052120566c39247956b48c", "score": "0.5680325", "text": "public function getConfigService()\n {\n return $this->getCommand()->getConfigService();\n }", "title": "" }, { "docid": "1e02450a2d65ebbb356249255ad4e278", "score": "0.5679033", "text": "public function getConfigService()\n {\n return $this->configService;\n }", "title": "" }, { "docid": "07f5433432143a021a34644ef9d965d5", "score": "0.5628738", "text": "protected function getNelmioAlice_Generator_Caller_Chainable_SimpleCallService()\n {\n return $this->services['nelmio_alice.generator.caller.chainable.simple_call'] = new \\Nelmio\\Alice\\Generator\\Caller\\Chainable\\SimpleMethodCallProcessor();\n }", "title": "" }, { "docid": "2fca6ea98de4fb214d409229986b0533", "score": "0.5587305", "text": "protected function getPsCheckout_ConfigurationService()\n {\n return $this->services['ps_checkout.configuration'] = new \\PrestaShop\\Module\\PrestashopCheckout\\Configuration\\PrestaShopConfiguration(${($_ = isset($this->services['ps_checkout.configuration.options.resolver']) ? $this->services['ps_checkout.configuration.options.resolver'] : $this->getPsCheckout_Configuration_Options_ResolverService()) && false ?: '_'});\n }", "title": "" }, { "docid": "8a40cf1c20e2a838afaea8d28e6ab19d", "score": "0.55798405", "text": "protected function getNelmioAlice_Generator_Caller_RegistryService()\n {\n return $this->services['nelmio_alice.generator.caller.registry'] = new \\Nelmio\\Alice\\Generator\\Caller\\CallProcessorRegistry(array(0 => ${($_ = isset($this->services['nelmio_alice.generator.caller.chainable.configurator_method_call']) ? $this->services['nelmio_alice.generator.caller.chainable.configurator_method_call'] : $this->get('nelmio_alice.generator.caller.chainable.configurator_method_call')) && false ?: '_'}, 1 => ${($_ = isset($this->services['nelmio_alice.generator.caller.chainable.method_call_with_reference']) ? $this->services['nelmio_alice.generator.caller.chainable.method_call_with_reference'] : $this->get('nelmio_alice.generator.caller.chainable.method_call_with_reference')) && false ?: '_'}, 2 => ${($_ = isset($this->services['nelmio_alice.generator.caller.chainable.optional_method_call']) ? $this->services['nelmio_alice.generator.caller.chainable.optional_method_call'] : $this->get('nelmio_alice.generator.caller.chainable.optional_method_call')) && false ?: '_'}, 3 => ${($_ = isset($this->services['nelmio_alice.generator.caller.chainable.simple_call']) ? $this->services['nelmio_alice.generator.caller.chainable.simple_call'] : $this->get('nelmio_alice.generator.caller.chainable.simple_call')) && false ?: '_'}));\n }", "title": "" }, { "docid": "68cced0917e71d02c2616f53d1b239be", "score": "0.5516719", "text": "protected function getInstaller_Helper_ConfigService()\n {\n return $this->services['installer.helper.config'] = new \\phpbb\\install\\helper\\config($this->get('filesystem'), $this->get('php_ini'), '../');\n }", "title": "" }, { "docid": "18d3d2c6a6621cbb2b55968db93d7f8c", "score": "0.54980594", "text": "protected function getConfigService()\n {\n if ($this->configService === null) {\n $this->configService = ServiceRegister::getService(\n \\Packlink\\PacklinkPro\\IntegrationCore\\BusinessLogic\\Configuration::CLASS_NAME\n );\n }\n\n return $this->configService;\n }", "title": "" }, { "docid": "e57c3432d23a5768fa0c7b65b01d27ea", "score": "0.54967827", "text": "protected function service__config() {\n $app = $this;\n return new Config($app, $app->fallback__cache('app.config', function() use ($app) {\n return $app->infoHook('app.config', $app);\n }));\n }", "title": "" }, { "docid": "cd46908f4f78d1b269c43e89ce6958cd", "score": "0.54902935", "text": "public function getConfigCalls()\n {\n return $this->configCalls;\n }", "title": "" }, { "docid": "900b210297bf49fc41415d2a3e3cc4ec", "score": "0.54234475", "text": "protected function getConsole_Installer_Command_Config_ShowService()\n {\n return $this->services['console.installer.command.config.show'] = new \\phpbb\\install\\console\\command\\install\\config\\show($this->get('language'), $this->get('installer.helper.iohandler_factory'));\n }", "title": "" }, { "docid": "4a68cbf713097e7e62d35d6913c75d46", "score": "0.54195124", "text": "public static function config()\n {\n return Config::inst()->forClass(get_called_class());\n }", "title": "" }, { "docid": "9e5e9586a72cacb7d37b8cf5fe901ca7", "score": "0.5419336", "text": "protected function getNelmioAlice_Generator_Caller_Chainable_MethodCallWithReferenceService()\n {\n return $this->services['nelmio_alice.generator.caller.chainable.method_call_with_reference'] = new \\Nelmio\\Alice\\Generator\\Caller\\Chainable\\MethodCallWithReferenceProcessor();\n }", "title": "" }, { "docid": "8ef5ac7570ac3d9aa4aad63a10265a63", "score": "0.5390237", "text": "protected static function getFacadeAccessor()\n {\n return 'configurator';\n }", "title": "" }, { "docid": "65f5ec1b670bb8bbc3c6b68140f6c444", "score": "0.5373294", "text": "protected function getConfigService()\n {\n return $this->services['config'] = new \\phpbb\\config\\config(array('rand_seed' => 'installer_seed', 'rand_seed_last_update' => 0));\n }", "title": "" }, { "docid": "79a667c90a308d4f20a4b8e681ba0602", "score": "0.5346655", "text": "protected function getConsole_Updater_Command_Config_ShowService()\n {\n return $this->services['console.updater.command.config.show'] = new \\phpbb\\install\\console\\command\\update\\config\\show($this->get('language'), $this->get('installer.helper.iohandler_factory'));\n }", "title": "" }, { "docid": "a23fd70c88de8c2e1284ad47f88a01c9", "score": "0.5311043", "text": "public function getCallLogger()\n {\n return $this->callLogger;\n }", "title": "" }, { "docid": "daf57bb5902729091c7e1804fc2e38f6", "score": "0.5255277", "text": "public function getServicesConfig()\n {\n return $this->servicesConfig;\n }", "title": "" }, { "docid": "fe0430417e4cacbe032d52ea15171607", "score": "0.523415", "text": "private function getConfigService()\n {\n if ($this->configService === null) {\n $this->configService = ServiceRegister::getService(Configuration::CLASS_NAME);\n }\n\n return $this->configService;\n }", "title": "" }, { "docid": "237736ddd0ba2b83b0aaed72151e5890", "score": "0.5161345", "text": "public static function & GetConfigs ();", "title": "" }, { "docid": "a4a8ba9af2cb6e6b323dfdf3020c2506", "score": "0.51529896", "text": "protected function serviceConfiguration () {\n\t\t$serviceConfiguration = array(\n\t\t\t'useServiceProxy' => TRUE,\n\t\t\t'serviceProxyAuthPath' => $this->conf['serviceProxyAuthPath'],\n\t\t\t'pazpar2Path' => $this->conf['serviceProxyPath']\n\t\t);\n\n\t\treturn $serviceConfiguration;\n\t}", "title": "" }, { "docid": "39974e36dcb845e4ceaf6b6cb0f50872", "score": "0.5151467", "text": "public function getConfiguration() {\n return $this->stockServiceConfig;\n }", "title": "" }, { "docid": "2150a1533a3e19c380bd8d1b11aa4ae5", "score": "0.5113041", "text": "protected function getPsCheckout_Store_Module_ConfigurationService()\n {\n return $this->services['ps_checkout.store.module.configuration'] = new \\PrestaShop\\Module\\PrestashopCheckout\\Presenter\\Store\\Modules\\ConfigurationModule(${($_ = isset($this->services['ps_checkout.express_checkout.configuration']) ? $this->services['ps_checkout.express_checkout.configuration'] : $this->getPsCheckout_ExpressCheckout_ConfigurationService()) && false ?: '_'}, ${($_ = isset($this->services['ps_checkout.paypal.configuration']) ? $this->services['ps_checkout.paypal.configuration'] : $this->getPsCheckout_Paypal_ConfigurationService()) && false ?: '_'}, ${($_ = isset($this->services['ps_checkout.funding_source.provider']) ? $this->services['ps_checkout.funding_source.provider'] : $this->getPsCheckout_FundingSource_ProviderService()) && false ?: '_'});\n }", "title": "" }, { "docid": "99e08cb851d0ca6984cb1de5a88ce95e", "score": "0.51026636", "text": "public function getServiceConfig()\n {\n return [\n 'factories' => [\n 'AsseticBundle\\Configuration' => function (ServiceLocatorInterface $serviceLocator) {\n $configuration = $serviceLocator->get('Configuration');\n\n return new Configuration($configuration['assetic_configuration']);\n }\n ],\n ];\n }", "title": "" }, { "docid": "057d55fffe3b8d65f70016399954b4ec", "score": "0.50717336", "text": "protected function getPsCheckout_Configuration_Options_ResolverService()\n {\n return $this->services['ps_checkout.configuration.options.resolver'] = new \\PrestaShop\\Module\\PrestashopCheckout\\Configuration\\PrestaShopConfigurationOptionsResolver(${($_ = isset($this->services['ps_checkout.shop.provider']) ? $this->services['ps_checkout.shop.provider'] : ($this->services['ps_checkout.shop.provider'] = new \\PrestaShop\\Module\\PrestashopCheckout\\Shop\\ShopProvider())) && false ?: '_'}->getIdentifier());\n }", "title": "" }, { "docid": "e583ce7d52310bdfd0e0c01e0fb10a7e", "score": "0.5051086", "text": "protected function getMethod()\n {\n /** @var \\ParadoxLabs\\Authnetcim\\Model\\Method $method */\n $this->method = $this->methodFactory->getMethodInstance(ConfigProvider::CODE);\n\n return $this->method;\n }", "title": "" }, { "docid": "e52e1092e9c710db88346d9db2bb9fe4", "score": "0.50488734", "text": "public function getServiceConfig ()\r\n\t{\r\n\t\treturn include __DIR__ . '/config/module.service.php';\r\n\t}", "title": "" }, { "docid": "43c5b11878529662f0ccb8143e1baa08", "score": "0.50333405", "text": "protected function getServiceLocator(){\n return $this->ServiceLocator;\n }", "title": "" }, { "docid": "c4206ca6653c570d34821d2d169db99b", "score": "0.50255865", "text": "public function getCall()\n {\n return $this->call;\n }", "title": "" }, { "docid": "20ef4beb26683211ad4b2175948c2672", "score": "0.5024037", "text": "public function config()\r\n {\r\n return helper\\Config::get($this->_name);\r\n }", "title": "" }, { "docid": "10e9c2516713ca2b23a3670a664e9135", "score": "0.50036436", "text": "protected function getPsCheckout_Paypal_ConfigurationService()\n {\n return $this->services['ps_checkout.paypal.configuration'] = new \\PrestaShop\\Module\\PrestashopCheckout\\PayPal\\PayPalConfiguration(${($_ = isset($this->services['ps_checkout.configuration']) ? $this->services['ps_checkout.configuration'] : $this->getPsCheckout_ConfigurationService()) && false ?: '_'}, ${($_ = isset($this->services['ps_checkout.repository.paypal.code']) ? $this->services['ps_checkout.repository.paypal.code'] : ($this->services['ps_checkout.repository.paypal.code'] = new \\PrestaShop\\Module\\PrestashopCheckout\\Repository\\PayPalCodeRepository())) && false ?: '_'});\n }", "title": "" }, { "docid": "51f5e4f23a432db5c45639d3d752abae", "score": "0.4986709", "text": "public function getConfigurator()\n {\n if (!$this->getContainer()->has(Configuration::class)) {\n $this->getContainer()->share(Configuration::class, (new Configuration([], true)));\n }\n\n return $this->getContainer()->get(Configuration::class);\n }", "title": "" }, { "docid": "4f4a9edf77ad402ad636fa47f22fc28e", "score": "0.49843448", "text": "protected function getConsole_Installer_Command_Config_ValidateService()\n {\n return $this->services['console.installer.command.config.validate'] = new \\phpbb\\install\\console\\command\\install\\config\\validate($this->get('language'), $this->get('installer.helper.iohandler_factory'));\n }", "title": "" }, { "docid": "2971c9dc1235c12ddbd78add041bbb75", "score": "0.49697733", "text": "public function __call($name, $key)\n\t{ \n\t\treturn $this->getConfig($name, $key[0], (int)@$key[1]);\n\t}", "title": "" }, { "docid": "5dd6abad2537d4c0fc2b85e17109e90f", "score": "0.49598026", "text": "public function getServiceOptions()\n {\n return $this->service_options;\n }", "title": "" }, { "docid": "a9927c2a5ce519f0b690fcfd3212453a", "score": "0.49528202", "text": "public function getCall() {\n\t\treturn $this->call;\n\t}", "title": "" }, { "docid": "568ea8ebf04e8861a60777d58002f308", "score": "0.49423975", "text": "public function client(): ConfigInterface;", "title": "" }, { "docid": "d14a731d99cfe77717eca983776ec73e", "score": "0.49316302", "text": "public function createConfig()\n {\n return $this->create;\n }", "title": "" }, { "docid": "0600ed271d0e275bcc22b44cb44e9f1c", "score": "0.49303374", "text": "protected function _getConfig()\n {\n return $this->_config;\n }", "title": "" }, { "docid": "0600ed271d0e275bcc22b44cb44e9f1c", "score": "0.49303374", "text": "protected function _getConfig()\n {\n return $this->_config;\n }", "title": "" }, { "docid": "73d47ff70b23e10ebf2244a92f6599bf", "score": "0.4926234", "text": "protected function getConfigurationServiceService()\n {\n return $this->services['App\\\\Service\\\\ConfigurationService'] = new \\App\\Service\\ConfigurationService(($this->services['doctrine.orm.default_entity_manager'] ?? $this->getDoctrine_Orm_DefaultEntityManagerService()), ($this->privates['monolog.logger'] ?? $this->getMonolog_LoggerService()), ($this->privates['config_cache_factory'] ?? ($this->privates['config_cache_factory'] = new \\Symfony\\Component\\Config\\ResourceCheckerConfigCacheFactory())), false, $this->targetDir.'', (\\dirname(__DIR__, 5).'/etc'));\n }", "title": "" }, { "docid": "cb7b823cb7ea58e95d05d5cbc130fc77", "score": "0.4923665", "text": "public function getServiceConfig()\n {\n return [\n 'factories' => [\n 'session' => function () {\n $storage = new SessionStorage();\n $manager = new SessionManager(null, $storage);\n return $manager->rememberMe(604800);\n },\n 'auth_service' => function ($sm) {\n $adapter = new Authentication\\AuthenticationAdapter( $sm->get('dbAdapter') );\n return new AuthenticationService(null, $adapter);\n },\n 'ApplicationServiceErrorHandling' => function($sm) {\n $logger = $sm->get('ExceptionLogger');\n $service = new ExceptionHandler($logger);\n return $service;\n },\n 'ExceptionLogger' => function () {\n $filename = 'exception_log.txt';\n $log = new Logger();\n $writer = new LogWriterStream('./data/logs/' . $filename);\n $log->addWriter($writer);\n\n return $log;\n },\n 'ResetPasswordCache' => function($sm) {\n $c = $sm->get('Config');\n return StorageFactory::factory($c['reset_password_cache']);\n\n },\n 'smtp' => function ($sm) {\n $config = $sm->get('Configuration');\n $options = new SmtpOptions($config['google_smtp']);\n return new Smtp($options);\n },\n ],\n ];\n }", "title": "" }, { "docid": "04656641c2236828aa9d92253905fda5", "score": "0.4922472", "text": "protected function getConsole_Updater_Command_Config_ValidateService()\n {\n return $this->services['console.updater.command.config.validate'] = new \\phpbb\\install\\console\\command\\update\\config\\validate($this->get('language'), $this->get('installer.helper.iohandler_factory'));\n }", "title": "" }, { "docid": "ddc2f7597dafeb6a3a436c8a83af801b", "score": "0.49152276", "text": "protected function getNelmioCors_OptionsProvider_ConfigService()\n {\n return $this->services['nelmio_cors.options_provider.config'] = new \\Nelmio\\CorsBundle\\Options\\ConfigProvider(array(), array('allow_origin' => true, 'allow_credentials' => false, 'allow_headers' => true, 'expose_headers' => array(), 'allow_methods' => array(0 => 'GET', 1 => 'POST', 2 => 'PUT', 3 => 'DELETE', 4 => 'OPTIONS'), 'max_age' => 3600, 'hosts' => array(), 'origin_regex' => false, 'forced_allow_origin_value' => NULL));\n }", "title": "" }, { "docid": "a2bca6bc7ce5162ca4ee7ad1ee34d16a", "score": "0.49058232", "text": "protected function getNelmioAlice_Generator_Caller_SimpleService()\n {\n return $this->services['nelmio_alice.generator.caller.simple'] = new \\Nelmio\\Alice\\Generator\\Caller\\SimpleCaller(${($_ = isset($this->services['nelmio_alice.generator.caller.registry']) ? $this->services['nelmio_alice.generator.caller.registry'] : $this->get('nelmio_alice.generator.caller.registry')) && false ?: '_'}, ${($_ = isset($this->services['nelmio_alice.generator.resolver.value.registry']) ? $this->services['nelmio_alice.generator.resolver.value.registry'] : $this->get('nelmio_alice.generator.resolver.value.registry')) && false ?: '_'});\n }", "title": "" }, { "docid": "c14343e74ec93ee1c2807ec2aa3fee7b", "score": "0.49019215", "text": "public function getServiceLocator()\n {\n \treturn $this->serviceLocator;\n }", "title": "" }, { "docid": "59ab4018942ef08ce0f4856adfa78cbc", "score": "0.48869073", "text": "function get_configuration() {\n return $this->conf_obj;\n }", "title": "" }, { "docid": "6cc8695d87535fd8af00c841bcd55cbb", "score": "0.48805892", "text": "private function getServiceLocator()\n {\n return $this->serviceLocator;\n }", "title": "" }, { "docid": "d008ef2293f9a03bad8dc9081faf4f2b", "score": "0.48749602", "text": "public function service()\n {\n return $this->service;\n }", "title": "" }, { "docid": "d008ef2293f9a03bad8dc9081faf4f2b", "score": "0.48749602", "text": "public function service()\n {\n return $this->service;\n }", "title": "" }, { "docid": "d008ef2293f9a03bad8dc9081faf4f2b", "score": "0.48749602", "text": "public function service()\n {\n return $this->service;\n }", "title": "" }, { "docid": "0372ef38cafaebe09ea159a9377708b0", "score": "0.4872014", "text": "public function getFrontendConfig()\n {\n try {\n // Prepare the output\n $output = [];\n\n // Get request data for each method\n foreach ($this->params as $methodId => $val) {\n $arr = explode('_', $methodId);\n if ($this->methodIsValid($arr, $methodId, $val)) {\n $methodInstance = $this->methodHandler::getStaticInstance($methodId);\n if ($methodInstance && $methodInstance::isFrontend($this, $methodId)) {\n $output[$methodId] = $val;\n $output[$methodId][Connector::KEY_ACTIVE] = $methodInstance::isFrontend($this, $methodId);\n if (isset($val['load_request_data']) && (int) $val['load_request_data'] == 1) {\n $output[$methodId]['api_url'] = Connector::getApiUrl('charge', $this, $methodId);\n $output[$methodId]['request_data'] = $methodInstance::getRequestData(\n $this,\n $this->storeManager,\n $methodId\n );\n }\n }\n }\n }\n\n // Return the formatted config array\n return [\n 'payment' => [\n Core::moduleId() => array_merge(\n $output,\n $this->base\n )\n ]\n ];\n } catch (\\Exception $e) {\n throw new \\Magento\\Framework\\Exception\\LocalizedException(__($e->getMessage()));\n }\n }", "title": "" }, { "docid": "ca95b244a5fdb5707a3d25169bdb1f78", "score": "0.4858509", "text": "protected function _getConfig()\n {\n if (is_null($this->_config)) {\n $this->_config = Mage::getModel('cjcheckout/config', array($this->_paymentMethodCode, Mage::app()->getStore()->getId()));\n }\n return $this->_config;\n }", "title": "" }, { "docid": "a6c3efb9f9cc9491359c9937afdd6177", "score": "0.48284206", "text": "public function configurator($selector) {\n return $this->setProperty('configurator', $selector);\n }", "title": "" }, { "docid": "9da543c69c4858aea45f06b88e4e8a26", "score": "0.4820718", "text": "protected function getter_config()\n\t{\n\t\treturn Configuration::getInstance();\n\t}", "title": "" }, { "docid": "3601636bc5504ab527bf33814be68d63", "score": "0.48152596", "text": "protected function _getConfig()\n {\n return Mage::getSingleton('payment/config');\n }", "title": "" }, { "docid": "3601636bc5504ab527bf33814be68d63", "score": "0.48152596", "text": "protected function _getConfig()\n {\n return Mage::getSingleton('payment/config');\n }", "title": "" }, { "docid": "3601636bc5504ab527bf33814be68d63", "score": "0.48152596", "text": "protected function _getConfig()\n {\n return Mage::getSingleton('payment/config');\n }", "title": "" }, { "docid": "966bbfad4f92af3fdd0ead17af2c840b", "score": "0.48067635", "text": "final public function getConfigurableParams() {\n return $this->_configurableParams;\n }", "title": "" }, { "docid": "2ab36525bf750732756d0ff733cfd672", "score": "0.47853482", "text": "public function getServiceLocator() \r\n { \r\n return $this->serviceLocator; \r\n }", "title": "" }, { "docid": "05b94da5d687c7653fd44c5344f4fa19", "score": "0.477813", "text": "function get_config()\n{\n return Config::getInstance();\n}", "title": "" }, { "docid": "ea0c89b2b1fcbba6c902b8ee5a971a39", "score": "0.47749284", "text": "function &__invoke(...$args) {\n\t\treturn self::toConfig($this->__parent(), ...$args);\n\t}", "title": "" }, { "docid": "a6b9bc186c3a9336836be008a2f0f2bd", "score": "0.47715428", "text": "public function getServiceConfig()\n\t{\n\t\treturn include realpath(sprintf('%s/config/services.config.php', __DIR__));\n\t}", "title": "" }, { "docid": "31cc5fd7b18df83c241c7af284632f59", "score": "0.47691816", "text": "protected function _getConfig()\n {\n return Mage::getSingleton('catalog/config');\n }", "title": "" }, { "docid": "9756f56e6526c4ba85716a1871506a98", "score": "0.47497073", "text": "protected function getSection() {\n return 'config';\n }", "title": "" }, { "docid": "4313b3c32aab8bb026dea973ca5079f7", "score": "0.4737617", "text": "public function getConfigHelper() {\n if (!$this->helper) {\n $this->helper = new ConfigHelper();\n }\n\n return $this->helper;\n }", "title": "" }, { "docid": "10e4691df4dc7465147f68e46fc095ed", "score": "0.47315678", "text": "public function getServiceLocator() \n { \n return $this->serviceLocator; \n }", "title": "" }, { "docid": "ebb10dba2c8d3ac336e9b1e8379dcf54", "score": "0.47305202", "text": "protected function getPsCheckout_ExpressCheckout_ConfigurationService()\n {\n return $this->services['ps_checkout.express_checkout.configuration'] = new \\PrestaShop\\Module\\PrestashopCheckout\\ExpressCheckout\\ExpressCheckoutConfiguration(${($_ = isset($this->services['ps_checkout.configuration']) ? $this->services['ps_checkout.configuration'] : $this->getPsCheckout_ConfigurationService()) && false ?: '_'});\n }", "title": "" }, { "docid": "2bba6b6f4d8f245e36e3290fd370be10", "score": "0.4729887", "text": "private function config()\n {\n return $this->app['config'];\n }", "title": "" }, { "docid": "6b81925889dd971a38840191c5b4aa8d", "score": "0.47234452", "text": "protected function getPhpIniService()\n {\n return $this->services['php_ini'] = new \\bantu\\IniGetWrapper\\IniGetWrapper();\n }", "title": "" }, { "docid": "bee577c1243de508b4f63d58962362f5", "score": "0.47228047", "text": "public function getConfig()\n {\n return $this-config;\n }", "title": "" }, { "docid": "8bb044bda65575a18189438a87c4aaa1", "score": "0.47170317", "text": "public function getServiceLocator()\n {\n return $this->serviceLocator;\n }", "title": "" }, { "docid": "da15bcc3194dab2ca263ad87b87736b0", "score": "0.47134915", "text": "function conf($path_or_array = null, $store = true)\n{\n\tif(!func_num_args()) // getter\n\t{\n\t\treturn System::conf();\n\t}\n\n\treturn System::conf($path_or_array, $store);\n}", "title": "" }, { "docid": "0405f25b20e3bb806fbd12e32bc62641", "score": "0.47097123", "text": "public function getService()\n {\n return $this->service;\n }", "title": "" }, { "docid": "966581d4bf4b32c360d15e3a88f43c66", "score": "0.4706411", "text": "public function config()\n\t{\n\t\treturn $this->config;\n\t}", "title": "" }, { "docid": "461bd79a08d8ef1daad8eb225859e692", "score": "0.47048673", "text": "protected function _getCurlOptions()\n {\n return $this->_cURLOption;\n }", "title": "" }, { "docid": "9c466adeee9f1e8774711f3e269b9a13", "score": "0.46992636", "text": "protected function getPsCheckout_Persistent_ConfigurationService()\n {\n return $this->services['ps_checkout.persistent.configuration'] = new \\PrestaShop\\Module\\PrestashopCheckout\\PersistentConfiguration(${($_ = isset($this->services['ps_checkout.configuration']) ? $this->services['ps_checkout.configuration'] : $this->getPsCheckout_ConfigurationService()) && false ?: '_'});\n }", "title": "" }, { "docid": "b1b880dada481d221c506aed32f62775", "score": "0.46916476", "text": "abstract protected function _getConfig();", "title": "" }, { "docid": "b4b248939129f4cb37d21574a7d356e2", "score": "0.4689658", "text": "public function config() {\n\t\treturn $this->config;\n\t}", "title": "" }, { "docid": "100b2ef9292a6363296dc5af3fe4481c", "score": "0.4688742", "text": "public function config()\n {\n return $this->_config;\n }", "title": "" }, { "docid": "e1a5036f5bb9f4edb366df81d90d1d5f", "score": "0.46863413", "text": "public function getCallView()\n {\n return $this->call_view;\n }", "title": "" }, { "docid": "e1a5036f5bb9f4edb366df81d90d1d5f", "score": "0.46863413", "text": "public function getCallView()\n {\n return $this->call_view;\n }", "title": "" }, { "docid": "94650fa2a0f760f4e2ecc873d1870a70", "score": "0.46849734", "text": "public function getConfig()\n {\n return $this->_config;\n }", "title": "" }, { "docid": "638410c5609506751505cd41d92e25bd", "score": "0.46758527", "text": "public function getCodeAnalClient() {\n return $this->codeAnalClient;\n }", "title": "" }, { "docid": "0655634ce6d7ae0a157810b1dc19a4bf", "score": "0.46704498", "text": "protected function getPsCheckout_Logger_HandlerService()\n {\n return $this->services['ps_checkout.logger.handler'] = ${($_ = isset($this->services['ps_checkout.logger.handler.factory']) ? $this->services['ps_checkout.logger.handler.factory'] : $this->getPsCheckout_Logger_Handler_FactoryService()) && false ?: '_'}->build();\n }", "title": "" }, { "docid": "fae2924bac3c45d1fb56e580f826dac3", "score": "0.46700218", "text": "public function GetServiceConfiguration($request)\n {\n $this->initializeSoapClient();\n $response = $this->soap->{__FUNCTION__}($request);\n\n return $this->processResponse($response);\n }", "title": "" }, { "docid": "53324f8806542b2d6b0019ef2517ffc9", "score": "0.46693802", "text": "public function do_config() {\n return array(\n 'phoneNumber' => config('app.phoneNumber'),\n );\n }", "title": "" }, { "docid": "7963ed0662c1029b19cbc8a4ddf9cc60", "score": "0.4668243", "text": "public function getConfigLocator()\n {\n return $this->configLocator;\n }", "title": "" }, { "docid": "649d70f64827fa1e11f0597ff67547df", "score": "0.46538162", "text": "public function getServiceLocator() {\n\t\treturn $this->serviceLocator;\n\t}", "title": "" }, { "docid": "ec39372bf3b522ac1d2ab65f371ebc94", "score": "0.46512967", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "ec39372bf3b522ac1d2ab65f371ebc94", "score": "0.46512967", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "d1cf6ef13c574e14e7c077b79b075be7", "score": "0.46471554", "text": "public function getConfiguration()\n {\n return self::$config;\n }", "title": "" }, { "docid": "d1cf6ef13c574e14e7c077b79b075be7", "score": "0.46471554", "text": "public function getConfiguration()\n {\n return self::$config;\n }", "title": "" } ]
e1ce9a94185d1b98881bdd30395a6315
Test fetching products from DB, use four different products
[ { "docid": "31f9af72f1dfa80304c47029da00f08f", "score": "0.8294576", "text": "public function testGetMultipleProducts() {\n $conn = $this->getDBConn();\n\n $products = getProducts($conn, array(\"Shoes\", \"T-shirt\", \"Jacket\", \"Pants\"));\n\n $this->assertEquals(4,count($products));\n\n $this->assertEquals(\"T-shirt\",$products[0]->get_name());\n $this->assertEquals(\"Pants\",$products[1]->get_name());\n $this->assertEquals(\"Jacket\",$products[2]->get_name());\n $this->assertEquals(\"Shoes\",$products[3]->get_name());\n\n $this->assertEquals(10.99,$products[0]->get_price_usd());\n $this->assertEquals(14.99,$products[1]->get_price_usd());\n $this->assertEquals(19.99,$products[2]->get_price_usd());\n $this->assertEquals(24.99,$products[3]->get_price_usd());\n\n $conn->close();\n }", "title": "" } ]
[ { "docid": "0cb8b687536ac3038beafd65daeda3fb", "score": "0.7627598", "text": "public function testGetSingleProduct() {\n $conn = $this->getDBConn();\n $products = getProducts($conn, array(\"Shoes\"));\n\n $this->assertEquals(1,count($products));\n\n $this->assertEquals(\"Shoes\",$products[0]->get_name());\n $this->assertEquals(24.99,$products[0]->get_price_usd());\n\n $conn->close();\n }", "title": "" }, { "docid": "258aab84e3d602818e51e8f038af30a7", "score": "0.74833655", "text": "public function testProductList()\n {\n factory(Product::class, 7)->create([\n 'quantity' => rand(2, 8),\n ]);\n\n // create products with quantity 0 or 1\n factory(Product::class, 4)->create([\n 'quantity' => rand(0, 1),\n ]);\n\n // should only return products with quantity > 1\n $this->getJson(route('products.index'))\n ->assertStatus(200)\n ->assertJsonCount(7, 'data');\n }", "title": "" }, { "docid": "fcb823b14137ee2cce9440bb1ef15ac6", "score": "0.7124108", "text": "public function test_can_fetch_products()\n {\n $response = $this->get('v1/products');\n $response\n ->assertStatus(200)\n ->assertJson([\n 'success' => true,\n ]);\n }", "title": "" }, { "docid": "003f21ed083a46d54ebffe3ace0a066d", "score": "0.7120602", "text": "function getProducts() ;", "title": "" }, { "docid": "d1862f69a553d1c1b4cf4815283a54b8", "score": "0.7112939", "text": "public function testGetProducts() {\n // You MUST set $modx as a global variable, or runSnippet will encounter errors!\n // You have to do this for EACH test function when you are testing a Snippet!\n global $modx;\n $modx = self::$modx;\n\n $props = array();\n $props['store_id'] = self::$Store->get('id');\n $props['log_level'] = 4;\n $props['innerTpl'] = '<li>[[+name]]: [[+price]]</li>';\n $props['outerTpl'] = '<ul>[[+content]]</ul>'; \n $props['sort'] = 'price';\n $actual = self::$modx->runSnippet('getProducts', $props);\n $expected = '<ul><li>Southpark Tshirt: 19</li><li>Family Guy Tshirt: 20</li><li>Simpsons Tshirt: 21</li></ul>';\n $this->assertEquals(normalize_string($expected), normalize_string($actual));\n\n\n $props = array();\n $props['store_id'] = self::$Store->get('id');\n $props['log_level'] = 4;\n $props['innerTpl'] = '<li>[[+name]]: [[+price]]</li>';\n $props['outerTpl'] = '<ul>[[+content]]</ul>';\n $props['sort'] = 'RAND()';\n $actual = self::$modx->runSnippet('getProducts', $props);\n $this->assertEquals(3, substr_count(normalize_string($actual),'<li>'));\n\n $props = array();\n $props['store_id'] = self::$Store->get('id');\n $props['log_level'] = 4;\n $props['sku:ne'] = 'FAMILYGUY-TSHIRT';\n $props['innerTpl'] = '<li>[[+name]]: [[+price]]</li>';\n $props['outerTpl'] = '<ul>[[+content]]</ul>';\n $props['sort'] = 'price';\n $actual = self::$modx->runSnippet('getProducts', $props);\n $expected = '<ul><li>Southpark Tshirt: 19</li><li>Simpsons Tshirt: 21</li></ul>';\n $this->assertEquals(normalize_string($expected), normalize_string($actual));\n \n }", "title": "" }, { "docid": "4a10f87eaf59b7a3d2f253cb8854a69b", "score": "0.7091139", "text": "function get_products ( )\n {\n include_once '../models/product.php';\n $prod = new product ( );\n \n if ( $prod->get_products ( ) )\n {\n $row = $prod->fetch ( );\n echo ' { \"result\":1, \"products\": [';\n while ( $row )\n {\n echo '{\"prod_id\": \"'.$row[\"prod_id\"].'\", \"prod_name\": \"'.$row[\"prod_name\"].'\",'\n . '\"prod_description\": \"'.$row[\"prod_description\"].'\", \"prod_barcode\": \"'.$row[\"prod_barcode\"].'\"}';\n \n if ( $row = $prod->fetch ( ) )\n {\n echo ',';\n }\n \n }\n echo ']}';\n }\n else\n {\n echo ' { \"result\":0, \"message\": \"Failed to fetch data from database\"} ';\n }\n \n }", "title": "" }, { "docid": "c6fa1ebf36327327e01d7626850bbb7a", "score": "0.70227176", "text": "public function testReturnsProductsInJsonFormat()\n {\n factory(Product::class, 2)->create();\n // $product1 = Product::findOrFail(1);\n $product1 = Product::first();\n $product2 = Product::latest()->first();\n\n $response = $this->json('GET', 'api/products');\n $response\n ->assertStatus(200)\n ->assertJson([\n [\n 'name' => $product1->name,\n 'sku' => $product1->sku,\n 'quantity' => $product1->quantity,\n 'price' => $product1->price,\n ],\n [\n 'name' => $product2->name,\n 'sku' => $product2->sku,\n 'quantity' => $product2->quantity,\n 'price' => $product2->price,\n ]\n ]);\n }", "title": "" }, { "docid": "692b51e9683268f2a687c139ca626857", "score": "0.7013106", "text": "public function testProducts()\n {\n $response = $this->graphql($this->getQueryString());\n $response->assertStatus(200)\n ->assertJsonCount($this->count, 'data.products.data.*')\n ->assertJsonFragment(['current_page' => 1])\n ->assertJsonFragment(['per_page' => $this->count])\n ->assertJsonStructure([\n 'data' => [\n 'products' => [\n 'data' => [\n '*' => [\n 'id',\n 'source_id',\n 'title',\n 'description',\n 'price',\n 'link',\n 'img',\n 'created_at',\n ],\n ],\n 'total',\n 'per_page',\n 'current_page',\n 'last_page',\n ],\n ],\n ])->assertJson([\n 'data' => [\n 'products' => [\n 'data' => [\n [\n 'source_id' => 1,\n 'category_id' => 4,\n ],\n ],\n ],\n ],\n ]);\n }", "title": "" }, { "docid": "c7d14f7ec04a4ea2df273135be829907", "score": "0.7005779", "text": "public function testGetProducts()\n {\n $token = $this->getToken();\n $response = $this->json('GET', \n '/v1/products', [], \n [\n 'Authorization' => 'Bearer ' . $token,\n ]\n );\n\n $response\n ->seeStatusCode(200)\n ->seeJsonStructure([\n 'total',\n 'current_page',\n 'last_page_url',\n 'next_page_url',\n 'data' => [\n '*' => [\n 'title',\n 'brand',\n 'price',\n 'stock'\n ]\n ]\n ]);\n }", "title": "" }, { "docid": "6eb27ded2195f63dcfb61f509925b187", "score": "0.6971223", "text": "public function testGetDuplicateProduct() {\n $conn = $this->getDBConn();\n\n $products = getProducts($conn, array(\"Shoes\", \"Shoes\"));\n\n $this->assertEquals(1,count($products));\n\n $this->assertEquals(\"Shoes\",$products[0]->get_name());\n $this->assertEquals(24.99,$products[0]->get_price_usd());\n $conn->close();\n }", "title": "" }, { "docid": "cb3231b6e4478ec3f5046de962e42020", "score": "0.69639", "text": "public function testCreateMultipleProducts()\n {\n $codes = ['123456', 'abcdef', '987654'];\n $data = [];\n foreach ($codes as $code) {\n $data[] = [\n 'code' => $code,\n 'name' => 'Product Test',\n 'description' => 'Product Test Desc',\n ];\n }\n\n $added = (new CreateProduct())->executeBulk($data);\n\n $this->assertTrue($added === 3);\n foreach ($codes as $code) {\n $this->seeInDatabase('products', ['code' => $code]);\n }\n }", "title": "" }, { "docid": "fd99b54b41c9f790ae776369023cbc97", "score": "0.6957091", "text": "public function testAdapterFetchPairs()\n {\n $products = $this->_db->quoteIdentifier('zfproducts');\n $product_id = $this->_db->quoteIdentifier('product_id');\n $product_name = $this->_db->quoteIdentifier('product_name');\n\n $prod = 'Linux';\n $result = $this->_db->fetchPairs(\"SELECT $product_id, $product_name FROM $products WHERE $product_id > :id ORDER BY $product_id ASC\", [\":id\" => 1]);\n $this->assertEquals(2, count($result)); // count rows\n $this->assertEquals($prod, $result[2]);\n }", "title": "" }, { "docid": "dbc52e719b23a08ee6ad41786ec5a507", "score": "0.69347", "text": "public function testStoreProductsVariation()\n {\n }", "title": "" }, { "docid": "9fad6ed5f4504928974ebcc3de66448b", "score": "0.6879277", "text": "public function getProducts() {}", "title": "" }, { "docid": "7bde02eac98c704d5190254c69fc14cb", "score": "0.68429244", "text": "public function testproducts(){\n $product = \\App\\Models\\Product::factory(Product::class)->create();\n\n //When user visit the vendors page\n $response = $this->get('/products');\n $response->assertSee($product->product_name);\n }", "title": "" }, { "docid": "987c33c9775976c88d63daf181b5220c", "score": "0.6808213", "text": "public function testGetClientProducts()\n {\n $clientModel = new ClientModel();\n \n $client1 = $this->clients('client1');\n $products1 = $clientModel->getClientProducts($client1->id);\n \n $this->assertEquals('array', gettype($products1));\n $this->assertEquals(0, sizeof($products1)); \n \n $client2 = $this->clients('client3');\n $products2 = $clientModel->getClientProducts($client2->id);\n \n $this->assertEquals('array', gettype($products2));\n $this->assertEquals(3, sizeof($products2));\n }", "title": "" }, { "docid": "c20340ae0b2093bfd11c5cd28344e710", "score": "0.67995316", "text": "public function getProducts();", "title": "" }, { "docid": "c20340ae0b2093bfd11c5cd28344e710", "score": "0.67995316", "text": "public function getProducts();", "title": "" }, { "docid": "58d283a7e1021cc2d107ed6ab1e82878", "score": "0.67867076", "text": "public function getAllProducts()\n {\n $response = $this->get('/products');\n $response->assertStatus(200);\n }", "title": "" }, { "docid": "ea98265075afe07348a1057c77e5613d", "score": "0.6769237", "text": "function testProduct() {\n \n\t\t$productA = $this->objFromFixture('Product', 'productA');\n\t\t$this->assertEquals($productA->dbObject('Amount')->getAmount(), 500.00, 'The price of Product A should be 500.');\n\t\t$this->assertEquals($productA->dbObject('Amount')->getCurrency(), 'NZD', 'The currency of Product A should be NZD.');\n\t}", "title": "" }, { "docid": "c38f9f71124cd6ccdda777637891110d", "score": "0.675974", "text": "public function testAdapterFetchAll()\n {\n $products = $this->_db->quoteIdentifier('zfproducts');\n $product_id = $this->_db->quoteIdentifier('product_id');\n\n $result = $this->_db->fetchAll(\"SELECT * FROM $products WHERE $product_id > :id ORDER BY $product_id ASC\", [\":id\" => 1]);\n $this->assertEquals(2, count($result));\n $this->assertThat($result[0], $this->arrayHasKey('product_id'));\n $this->assertEquals('2', $result[0]['product_id']);\n }", "title": "" }, { "docid": "7e1c3b831a643316caa13cc5846513b7", "score": "0.6711538", "text": "public function test_client_can_list_products()\n {\n $response = $this->json('GET', '/api/products');\n\n $response->assertStatus(200);\n\n $response->assertJsonStructure([\n 'id',\n 'name',\n 'price'\n ]);\n\n $body = $response->decodeResponseJson();\n\n $this->assertDatabaseHas(\n 'products',\n [\n 'id' => $body['id'],\n 'name' => 'Super Product',\n 'price' => '23.30'\n ]\n );\n }", "title": "" }, { "docid": "0cb2f7ec9a55829467603948628a70e3", "score": "0.67025405", "text": "function getProducts(){\n\treturn dbSelect('products');\n}", "title": "" }, { "docid": "cb3208ba6ab1643c98e74b970d54a008", "score": "0.6677941", "text": "public function testProductGetValid()\n {\n $client = static::getInsalesApiClient();\n $data = $client->productsList()->getResponse();\n $response = $client->productGet($data[0]['id']);\n static::checkResponse($response);\n }", "title": "" }, { "docid": "4731b2e7d3c53fbfe591bfb8bafc2624", "score": "0.6675473", "text": "public function testStoreProduct()\n {\n }", "title": "" }, { "docid": "3e7e47a05017c6e94101ac5dc7d9bfd6", "score": "0.6674587", "text": "public function testIndexProductsVariation()\n {\n }", "title": "" }, { "docid": "db06c94f2446732ee8b5ecffa8da7a37", "score": "0.66599315", "text": "public function test () {\n $user = \\App\\User::findOrFail(1);\n //make factory product\n $productFactory = factory(App\\Product::class)->make();\n //make factory productCategory\n $categoryFactory = factory(App\\ProductCategory::class)->make();\n\n\n $product = \\App\\Product::where('user_id',\"=\",\"1\")->inRandomOrder()->first();\n $userUnAuth = \\App\\User::findOrFail(2);\n\n\n $this->addProduct($user,$productFactory);\n $this->searchProducts($user);\n $this->getCategories($user);\n $this->addCategories($user,$categoryFactory);\n $this->editProduct($user,$product);\n $this->editProductUnAuth($userUnAuth,$product);\n $this->updateProduct($user,$product);\n $this->updateProductUnAuth($userUnAuth,$product);\n\n }", "title": "" }, { "docid": "2a0e7e39b737337c4ffec437cc49d56c", "score": "0.66556984", "text": "public function testShowProductsVariation()\n {\n }", "title": "" }, { "docid": "f171c7a97836f1a62b02c99ed70644c6", "score": "0.6653067", "text": "public function findAllProducts();", "title": "" }, { "docid": "a58a60555ee84dfe19eb39a273b1b2d4", "score": "0.6621734", "text": "public function testCompareDatabase()\n {\n $response = $this->json('GET', 'api/products');\n $data = json_decode($response->getContent())->result->data;\n foreach ($data as $product) {\n $arrayCompare = [\n 'id' => $product->id,\n 'name' => $product->name,\n ];\n $this->assertDatabaseHas('products', $arrayCompare);\n }\n }", "title": "" }, { "docid": "1ce41403fea24b595e1a57163359bbf4", "score": "0.6618949", "text": "function getProducts() {\n //This function acts like a model, but instead of querying, it just stores the products\n\n\t$products = array(\"product1\", \"product2\", \"product3\", \"product4\", \"product5\",);\n\n return $products;\n}", "title": "" }, { "docid": "70e8924f52f55a8e0a6d0f9580048beb", "score": "0.6614532", "text": "public function testAdapterFetchOne()\n {\n $products = $this->_db->quoteIdentifier('zfproducts');\n $product_id = $this->_db->quoteIdentifier('product_id');\n $product_name = $this->_db->quoteIdentifier('product_name');\n\n $prod = 'Linux';\n $result = $this->_db->fetchOne(\"SELECT $product_name FROM $products WHERE $product_id > :id ORDER BY $product_id\", [\":id\" => 1]);\n $this->assertEquals($prod, $result);\n }", "title": "" }, { "docid": "7b3b86d1a63636438c724f71d094170a", "score": "0.6614387", "text": "protected function get_products($products)\n {\n }", "title": "" }, { "docid": "7dbe7a3065598f850959cbea208c74bc", "score": "0.66098166", "text": "public function testShowProduct()\n {\n }", "title": "" }, { "docid": "335750121ce8bf5f6ce9af724d83e4ba", "score": "0.6604932", "text": "public static function GetProducts()\r\n {\r\n $sql = 'SELECT * FROM products';\r\n $products = DatabaseHandler::GetAll($sql);\r\n //do something as an inventory objects\r\n\r\n return $products;\r\n }", "title": "" }, { "docid": "87b245ee1c38bb1feda54fc133e4f94a", "score": "0.6598613", "text": "public function products();", "title": "" }, { "docid": "a1eaeed9ee8fd6b51dba4d78dcac412c", "score": "0.6586824", "text": "function getProducts($category, $sort)\r\n{\r\n $db = ConnectToDatabase();\r\n try //must use due to possibility of user abuse (because of the GETS in url)\r\n {\r\n if($category==\"all\") //special case where every product is returned\r\n $query=\"SELECT * FROM Products, Imgs WHERE PId=ProductId ORDER BY $sort\";\r\n else\r\n $query=\"SELECT * FROM Products, Imgs WHERE PId=ProductId AND HeroId='$category' ORDER BY $sort\";\r\n $result = $db -> query($query);\r\n $rows = $result -> rowCount();\r\n if($rows == 0) //if no products were returned, then we'll want to say so\r\n {\r\n echo \"<h3 class='center green bigOutline'>\r\n No products found under that category </h3>\";\r\n }\r\n echo \"<table id='productTable'>\";\r\n while ($row = $result->fetch(PDO::FETCH_ASSOC))\r\n {//iterates through and creates row with info for each product\r\n $image = \"/~wing/\".$row['ImgFile'];\r\n $pid = $row['PId'];\r\n $product = $row['Product'];\r\n $hero = $row['HeroId'];\r\n $price = $row['Price'];\r\n $short = $row['ShortDescr'];\r\n echo <<<ITEM\r\n <tr><td>\r\n <a class='center product' href='/~wing/productDetail?pid=$pid'>\r\n <img class='product' src=\"$image\" alt='product Image'> </a></td>\r\n <td>\r\n <a class='center green bigOutline' style=\"font-size: 30px\" \r\n href='/~wing/productDetail?pid=$pid'> $product </a><br>\r\n <a class='center blue outline' href='/~wing/productDetail?pid=$pid'>\r\n $hero </a></td>\r\n <td>\r\n <div class='black'> $short </div>\r\n <form class=\"center\" action=\"\" method=\"post\">\r\n <p class='red bold italics'> \\$$price <br>\r\n <input type=\"Submit\" value=\"Add to Cart\">\r\n <input type=\"hidden\" name=\"pID\" value=\"$pid\"></p>\r\n </form></td>\r\n </tr>\r\nITEM;\r\n }\r\n echo \"</table>\";\r\n }\r\n catch (PDOException $e) //if mySQL breaks its because users did unexpected things\r\n {\r\n echo \"<h3 class='center green bigOutline'>\r\n Improper search performed.<br> Please stick to the navigation bar </h3>\";\r\n }\r\n $db = null;\r\n}", "title": "" }, { "docid": "c8bb8f7bb440c8eda0f35b7f3a158525", "score": "0.6586096", "text": "public function testGetProductsWithPerPage()\n {\n $token = $this->getToken();\n $response = $this->json('GET', \n '/v1/products?perPage=100', [], \n [\n 'Authorization' => 'Bearer ' . $token,\n ]\n );\n\n $data = json_decode($response->response->getContent());\n\n $this->assertEquals(100, count($data->data));\n\n $response\n ->seeStatusCode(200)\n ->seeJsonStructure([\n 'data' => [\n '*' => [\n 'title',\n 'brand',\n 'price',\n 'stock'\n ]\n ]\n ]);\n }", "title": "" }, { "docid": "dc0f73c5b2eb0bfe093a0e6a1cd17610", "score": "0.6584208", "text": "public function getProducts(){\r\n $dbquery= \"select * from products\";\r\n return $this->query ($dbquery);\r\n }", "title": "" }, { "docid": "40ef126001a170da8dc9af34a7a7e040", "score": "0.65762824", "text": "public function testOneProduct() {\n $this->visit('product/1')\n ->seePageIs('product/1');\n }", "title": "" }, { "docid": "b5fc9a0c8b27a15334fdda3fcb9e4aa3", "score": "0.65659386", "text": "function get_products ( )\n {\n $get_query = \"SELECT *\"\n . \"FROM `miniproject`\";\n \n return $this->query ( $get_query );\n }", "title": "" }, { "docid": "09fb45c350ece781d624a6571ebd0b3c", "score": "0.65460783", "text": "public function getAllProducts();", "title": "" }, { "docid": "9301b8ced9b2b99d9a154bdca3e5a433", "score": "0.65081054", "text": "public function fetchProducts($uri);", "title": "" }, { "docid": "95128c16325078f19f99179a2002f62d", "score": "0.6505652", "text": "public function get_products()\n {\n }", "title": "" }, { "docid": "4ebe9e294209e041335bc8e92ce954ae", "score": "0.6475064", "text": "public function testAdapterFetchRow()\n {\n $products = $this->_db->quoteIdentifier('zfproducts');\n $product_id = $this->_db->quoteIdentifier('product_id');\n\n $result = $this->_db->fetchRow(\"SELECT * FROM $products WHERE $product_id > :id ORDER BY $product_id\", [\":id\" => 1]);\n $this->assertEquals(2, count($result)); // count columns\n $this->assertEquals(2, $result['product_id']);\n }", "title": "" }, { "docid": "850429b0c5eaaf1e01eed0e82f4667d9", "score": "0.6457619", "text": "public function testListProduct()\n {\n $this->browse(function (Browser $browser) {\n $browser->loginAs($this->user)\n ->visit('/admin/products')\n ->assertSee('Product List');\n });\n }", "title": "" }, { "docid": "26e5688aa74d7a923448507b6b5cce16", "score": "0.6449134", "text": "function get_data_perproduct(){\n $query =\"SELECT * FROM product\";\n return run($query);\n}", "title": "" }, { "docid": "44a881fc2ba2a51a4b3fdd2c3533a482", "score": "0.6443101", "text": "public function testGetProducts()\n {\n }", "title": "" }, { "docid": "05527abbf53a412ed21f3222b153b917", "score": "0.64334893", "text": "public function test_can_get_a_product()\n { \n $data =$this->productDataHelper(); \n $response = $this->postJson('v1/products', $data);\n \n $product = Product::first();\n $response = $this->get('v1/products/'.$product->id);\n $response->assertStatus(200)\n ->assertJson([\n 'success' => true,\n ]); \n \n }", "title": "" }, { "docid": "60555eb2daed21fe4b28ac22cc2006ea", "score": "0.642915", "text": "public function testGetByProduct() {\n // Create\n $ph_website = $this->phactory->create('websites');\n $this->phactory->create( 'website_products', array( 'website_id' => $ph_website->website_id ) );\n\n // Get the account\n $accounts = $this->account->get_by_product( self::PRODUCT_ID );\n $account = current( $accounts );\n\n $this->assertContainsOnlyInstancesOf( 'Account', $accounts );\n $this->assertEquals( self::TITLE, $account->title );\n }", "title": "" }, { "docid": "fe7833d7706e92c2125da4e132b3c359", "score": "0.64101595", "text": "public function testGettingRelatedProducts()\n {\n // List of related products that should be returned\n $relatedProducts = [\n 9789510369654, // ePub\n 9789510366431, // MP3\n 9789510366424, // CD\n 9789510407554, // Pocket book\n ];\n\n foreach ($relatedProducts as $relatedProduct) {\n $relation = [\n 'ProductRelationCode' => '06',\n 'ProductIdentifiers' => [\n [\n 'ProductIDType' => '03',\n 'IDValue' => $relatedProduct,\n ],\n ],\n ];\n\n $this->assertContains($relation, $this->groschen->getRelatedProducts());\n }\n\n // Product without any product relations\n $groschen = new Groschen('9789513160753');\n $this->assertCount(0, $groschen->getRelatedProducts()->where('ProductRelationCode', '06'));\n }", "title": "" }, { "docid": "4720b54bf54680487e4c5e1f032cd8d7", "score": "0.64024466", "text": "function getProducts(){\n\tglobal $client,$header,$messages;\n\n\t$zoql = array(\n\t\t\"queryString\"=>\"select Id, Name,SKU,Description,EffectiveEndDate,EffectiveStartDate from Product where EffectiveEndDate > \".date('Y-m-d').\"T00:00:00\"\n\t);\n\t$queryWrapper = array(\n \t\t\"query\"=>$zoql\n );\n\t$result = $client->__soapCall(\"query\", $queryWrapper, null, $header); \n\n\tif($result->result!=null) {\n\n\t\t$messages = $result->result->records;\n\t\techo \"<br>---------------------------------------------------Printing all Products--------------------------------------------------------</br>\";\n\t\t//print_r($messages);\n\t\t\n\t\t\techo \"<ul>\";\n \t\t\techo displayTree($messages);\n \t\techo \"</ul>\";\n\t\techo \"<br>---------------------------------------------------Printing all Prodcuts complete -----------------------------------------------</br>\";\n\t\t//echo $messages[0]->Id;\n\t\tgetProductDetail($messages[0]->Id);\n\t\t//getProductDetail('4028e69634172d0201341ff863e5617a');//Currently hardcoded. Change to RatePlanId from the product\n\t}\n\n}", "title": "" }, { "docid": "58e7d370beacb153d8562e96da46f910", "score": "0.639183", "text": "public function get_on_sale_products();", "title": "" }, { "docid": "fbba8cc824c35e60c079a7fa065089a0", "score": "0.638212", "text": "public function testProductList(){\n\t\t$this->assertTrue(false);\n\t}", "title": "" }, { "docid": "0c684d434a2933f570984f72a156dec7", "score": "0.6376421", "text": "public function testFindProductsForOrder() {\n\t\t$this->assertEmpty($this->{$this->modelClass}->find('productsForOrder', array(\n\t\t\t'shop_order_id' => 'order-1'\n\t\t)));\n\n\t\tCakeSession::write('Auth.User.id', 'sam');\n\t\t$this->assertEmpty($this->{$this->modelClass}->find('productsForOrder', array(\n\t\t\t'shop_order_id' => 'order-1'\n\t\t)));\n\t\tCakeSession::delete('Auth');\n\n\t\t$this->assertEmpty($this->{$this->modelClass}->find('productsForOrder', array(\n\t\t\t'shop_order_id' => 'order-1',\n\t\t\t'user_id' => 'sam'\n\t\t)));\n\n\t\t$expected = array(\n\t\t\t'order-1b',\n\t\t\t'order-1a',\n\t\t);\n\t\t$result = $this->{$this->modelClass}->find('productsForOrder', array(\n\t\t\t'shop_order_id' => 'order-1',\n\t\t\t'admin' => true\n\t\t));\n\t\t$result = Hash::extract($result, '{n}.ShopOrderProduct.id');\n\t\tsort($expected);\n\t\tsort($result);\n\t\t$this->assertEquals($expected, $result);\n\n\t\tCakeSession::write('Auth.User.id', 'bob');\n\t\t$result = $this->{$this->modelClass}->find('productsForOrder', array(\n\t\t\t'shop_order_id' => 'order-1'\n\t\t));\n\t\t$result = Hash::extract($result, '{n}.ShopOrderProduct.id');\n\t\t$this->assertEquals($expected, $result);\n\t}", "title": "" }, { "docid": "d93ade38d6fd6690205d8db1ec49d6b1", "score": "0.6361812", "text": "public function run(Faker\\Generator $faker)\n {\n Product::query()->delete();\n\n for($i=0; $i<10; $i++)\n {\n $product = Product::create([\n 'title' => $faker->word,\n 'ingredients' => $faker->sentence(3),\n 'price' => $faker->randomDigit,\n 'type' => 'pizza',\n 'picture' => $faker->imageUrl($width = 640, $height = 480)\n ]);\n\n $detail = ProductDetail::create([\n 'product_id' => $product->id,\n 'is_selected' => rand(0, 1)\n ]);\n }\n\n for($i=0; $i<10; $i++)\n {\n $product = Product::create([\n 'title' => $faker->word,\n 'ingredients' => $faker->sentence(3),\n 'price' => $faker->randomDigit,\n 'type' => 'discount',\n 'picture' => $faker->imageUrl($width = 640, $height = 480)\n ]);\n\n $detail = ProductDetail::create([\n 'product_id' => $product->id,\n 'show_slider' => rand(0, 1),\n 'is_selected' => rand(0, 1)\n ]);\n }\n\n for($i=0; $i<10; $i++)\n {\n $product = Product::create([\n 'title' => $faker->word,\n 'ingredients' => $faker->sentence(3),\n 'price' => $faker->randomDigit,\n 'type' => 'extra',\n 'picture' => $faker->imageUrl($width = 640, $height = 480)\n ]);\n\n $detail = ProductDetail::create([\n 'product_id' => $product->id,\n 'is_selected' => rand(0, 1)\n ]);\n }\n\n\n }", "title": "" }, { "docid": "723a923c90e583ea5fe6d5baeefb86e9", "score": "0.63496107", "text": "function getProduct();", "title": "" }, { "docid": "723a923c90e583ea5fe6d5baeefb86e9", "score": "0.63496107", "text": "function getProduct();", "title": "" }, { "docid": "8fd6a2c26a2abfebe0a1597b82afbd0d", "score": "0.63380384", "text": "public function testProduitsAjout10(){\n $this->setSession();\n $data = $this->buildData();\n $expected = $this->getProdCount() +1 ;\n $this->post('/my-enterprise/products/add', $data);\n\n $newProduct = $this->Products->get(['id'=>3]);\n\n $this->assertNotEmpty($newProduct->id);\n $this->assertNotNull($newProduct->id);\n $this->assertNotEmpty($newProduct->name);\n $this->assertNotNull($newProduct->name);\n $this->assertNotEmpty($newProduct->price);\n $this->assertNotNull($newProduct->price);\n $this->assertNotEmpty($newProduct['quantity_min_limit']);\n $this->assertNotNull($newProduct['quantity_min_limit']);\n $this->assertNotEmpty($newProduct['quantity_max_limit']);\n $this->assertNotNull($newProduct['quantity_max_limit']);\n $this->assertNotEmpty($newProduct['quantity_available']);\n $this->assertNotNull($newProduct['quantity_available']);\n $this->assertNotEmpty($newProduct['product_category_id']);\n $this->assertNotNull($newProduct['product_category_id']);\n $this->assertNotEmpty($newProduct['picture_id']);\n $this->assertNotNull($newProduct['picture_id']);\n }", "title": "" }, { "docid": "2d7db59b21c0490aa6492c85169eb192", "score": "0.6336439", "text": "public function test_conexion_productos()\n {\n $response = $this->get('/api/listaproducto');\n\n $response->assertStatus(200);\n }", "title": "" }, { "docid": "f813aaa70698eb0f25405f6b1ea37bd5", "score": "0.6327118", "text": "public function getAllProducts()\n {\n $sql=self::$connection->prepare(\" SELECT * FROM products \");\n return $this->select($sql);\n\n }", "title": "" }, { "docid": "7a5d131d0ee661e80b3c3cbc09552aa9", "score": "0.6316545", "text": "public function listAllProducts()\n {\n $this->actingAs(User::find(1));\n\n $response = $this->getJson('/api/products');\n\n $response->assertStatus(200);\n }", "title": "" }, { "docid": "a6d19272977f293e916184f0fa4f3b30", "score": "0.6316186", "text": "public function testCreateProduct() {\n date_default_timezone_set('America/Sao_Paulo');\n $date = date('d-m-Y');\n $mkp = \\App\\MarketPlace::where('name', 'Infocel')->first();\n Product::create([\n 'name' => 'Xiaomi Redmi Note 6 pro',\n 'description' => 'Xiaomi Redmi Note 6 pro dual Android 8.1 Tela 6.26 64GB Camera dupla 12+5MP',\n 'value' => 1.349, 00,\n 'paymentMethod' => 'cartão de crédito',\n 'imagem' => 'xiaomi.jpg',\n 'created' => $date,\n 'market_place_id' => $mkp->id\n ]);\n $this->assertDatabaseHas('products', [\n 'name' => 'Xiaomi Redmi Note 6 pro'\n ]);\n Product::create([\n 'name' => 'Smartphone Motorola One XT1941',\n 'description' => 'Branco 64GB Tela de 5,9\", Dual Chip, Android 8.1, Câmera Traseira Dupla, Processador Octa-Core e 4GB de RAM',\n 'value' => 1.319, 12,\n 'paymentMethod' => 'cartão de crédito',\n 'imagem' => 'motorola.jpg',\n 'created' => $date,\n 'market_place_id' => $mkp->id\n ]);\n $this->assertDatabaseHas('products', [\n 'name' => 'Smartphone Motorola One XT1941'\n ]);\n Product::create([\n 'name' => 'Smartphone Samsung Galaxy J8',\n 'description' => '64GB Dual Chip Android 8.0 Tela 6\" Octa-Core 1.8GHz 4G Câmera 16MP F1.7 + 5MP F1.9 (Dual Cam) - Prata',\n 'value' => 1.124, 10,\n 'paymentMethod' => 'cartão de crédito',\n 'imagem' => 'sansung.png',\n 'created' => $date,\n 'market_place_id' => $mkp->id\n ]);\n $this->assertDatabaseHas('products', [\n 'name' => 'Smartphone Samsung Galaxy J8'\n ]);\n Product::create([\n 'name' => 'Notebook Hp 246 G6',\n 'description' => 'Intel I3-7020u Windows 10 Home HDD 500GB 7200RPM - 3XU35LA',\n 'value' => 2.499, 00,\n 'paymentMethod' => 'cartão de crédito',\n 'imagem' => 'notebook.jpg',\n 'created' => $date,\n 'market_place_id' => $mkp->id\n ]);\n $this->assertDatabaseHas('products', [\n 'name' => 'Notebook Hp 246 G6'\n ]);\n Product::create([\n 'name' => 'Notebook Dell',\n 'description' => 'Core i3-6006U 4GB 1TB Tela 15.6” Windows 10 Inspiron I15-3567-A10P',\n 'value' => 2.279, 00,\n 'paymentMethod' => 'cartão de crédito',\n 'imagem' => 'notebook_dell.jpg',\n 'created' => $date,\n 'market_place_id' => $mkp->id\n ]);\n $this->assertDatabaseHas('products', [\n 'name' => 'Notebook Dell'\n ]);\n Product::create([\n 'name' => 'Notebook Lenovo',\n 'description' => 'Intel® Core™ i3-7020U (2.3GHz; 3MB Cache) - Windows 10 Home - 4GB (soldado) DDR4 2133MHz - 1TB (5400rpm)',\n 'value' => 2.099, 00,\n 'paymentMethod' => 'cartão de crédito',\n 'imagem' => 'notebook_lenovo.jpg',\n 'created' => $date,\n 'market_place_id' => $mkp->id\n ]);\n $this->assertDatabaseHas('products', [\n 'name' => 'Notebook Lenovo'\n ]);\n $mkp1 = \\App\\MarketPlace::where('name', 'fashionModa')->first();\n Product::create([\n 'name' => 'Camiseta Criativa Urbana Fé',\n 'description' => 'Urbana Fé Frases Blusa Religiosa Gospel Blusinha Preta',\n 'value' => 67, 00,\n 'paymentMethod' => 'cartão de crédito',\n 'imagem' => 'blusa_feminina_fe.jpg',\n 'created' => $date,\n 'market_place_id' => $mkp1->id\n ]);\n $this->assertDatabaseHas('products', [\n 'name' => 'Camiseta Criativa Urbana Fé'\n ]);\n Product::create([\n 'name' => 'Camiseta feminina',\n 'description' => 'Camiseta Lacoste Lisa',\n 'value' => 97, 90,\n 'paymentMethod' => 'cartão de crédito',\n 'imagem' => 'blusa_feminina_lacoste.jpg',\n 'created' => $date,\n 'market_place_id' => $mkp1->id\n ]);\n $this->assertDatabaseHas('products', [\n 'name' => 'Camiseta feminina'\n ]);\n Product::create([\n 'name' => 'Camiseta Tshirt Feminina Básica Algodão',\n 'description' => 'Good Vibes Floripa',\n 'value' => 54, 90,\n 'paymentMethod' => 'cartão de crédito',\n 'imagem' => 'blusa_feminina_floripa.jpg',\n 'created' => $date,\n 'market_place_id' => $mkp1->id\n ]);\n $this->assertDatabaseHas('products', [\n 'name' => 'Camiseta Tshirt Feminina Básica Algodão'\n ]);\n Product::create([\n 'name' => 'Calça Ribana Feminina',\n 'description' => 'Tipo Moletom Cintura Alta Moda Insta',\n 'value' => 44, 90,\n 'paymentMethod' => 'cartão de crédito',\n 'imagem' => 'calca_feminina.jpg',\n 'created' => $date,\n 'market_place_id' => $mkp1->id\n ]);\n $this->assertDatabaseHas('products', [\n 'name' => 'Calça Ribana Feminina'\n ]);\n Product::create([\n 'name' => 'Calça Clochard Feminina',\n 'description' => 'Lançamento Blogueiraccenoura',\n 'value' => 49, 90,\n 'paymentMethod' => 'cartão de crédito',\n 'imagem' => 'calca_clochard_feminina .jpg',\n 'created' => $date,\n 'market_place_id' => $mkp1->id\n ]);\n $this->assertDatabaseHas('products', [\n 'name' => 'Calça Clochard Feminina'\n ]);\n Product::create([\n 'name' => 'Calça Jeans Feminina',\n 'description' => 'Cintura Alta Barra V Fenda Luxo Premium',\n 'value' => 74, 90,\n 'paymentMethod' => 'cartão de crédito',\n 'imagem' => 'calca_jeans_feminina .jpg',\n 'created' => $date,\n 'market_place_id' => $mkp1->id\n ]);\n $this->assertDatabaseHas('products', [\n 'name' => 'Calça Jeans Feminina'\n ]);\n }", "title": "" }, { "docid": "9f1a16ad1dafaf90637b12705356d00a", "score": "0.63138723", "text": "public function products() {\n $query = $this->Md->query(\"SELECT * FROM product\");\n\n echo json_encode($query);\n }", "title": "" }, { "docid": "c13ad3b8e6e884c8866da2f31d0d6ca3", "score": "0.63095176", "text": "public function testFrontendPagingAndNavigationManufacturers()\n {\n // Articles with ID's 1001 and 1002 have MultiDimensional variants so they shouldn't have the input[@name='aid']\n $this->clearCache();\n $this->openShop();\n $this->clickAndWait(\"//dl[@id='footerManufacturers']//a[text()='Manufacturer [EN] šÄßüл']\");\n $this->assertEquals(\"%YOU_ARE_HERE%: / %BY_MANUFACTURER% / Manufacturer [EN] šÄßüл\", $this->getText(\"breadCrumb\"));\n $this->assertElementNotPresent(\"itemsPager\");\n\n //top navigation\n $this->selectDropDown(\"sortItems\", \"\", \"li[4]\"); //price asc\n $this->assertEquals(\"Test product 1 [EN] šÄßüл\", $this->getText(\"productList_1\"));\n $this->assertEquals(\"Test product 3 [EN] šÄßüл\", $this->getText(\"productList_2\"));\n $this->assertEquals(\"Test product 2 [EN] šÄßüл\", $this->getText(\"productList_3\"));\n $this->assertEquals(\"Test product 0 [EN] šÄßüл\", $this->getText(\"productList_4\"));\n\n $this->selectDropDown(\"itemsPerPage\", \"2\");\n $this->assertElementPresent(\"//div[@id='itemsPager']//a[text()='1' and @class='page active']\");\n $this->assertElementNotPresent(\"//div[@id='itemsPager']//a[text()='%PREVIOUS%']\");\n $this->assertElementPresent(\"//div[@id='itemsPager']//a[text()='%NEXT%']\");\n $this->assertElementPresent(\"//div[@id='itemsPager']//a[text()='2']\");\n $this->assertElementNotPresent(\"//div[@id='itemsPager']//a[text()='3']\");\n $this->assertElementPresent(\"//ul[@id='productList']/li[1]\");\n $this->assertElementPresent(\"//ul[@id='productList']/li[2]\");\n $this->assertElementNotPresent(\"//ul[@id='productList']/li[3]\");\n $this->clickAndWait(\"//div[@id='itemsPager']//a[text()='2']\");\n $this->assertElementPresent(\"//div[@id='itemsPager']//a[text()='2' and @class='page active']\");\n $this->assertElementPresent(\"//div[@id='itemsPager']//a[text()='%PREVIOUS%']\");\n $this->assertElementNotPresent(\"//div[@id='itemsPager']//a[text()='%NEXT%']\");\n $this->assertElementPresent(\"//div[@id='itemsPager']//a[text()='1']\");\n $this->assertElementNotPresent(\"//div[@id='itemsPager']//a[text()='3']\");\n $this->assertElementPresent(\"//ul[@id='productList']/li[1]\");\n $this->assertElementPresent(\"//ul[@id='productList']/li[2]\");\n $this->assertElementNotPresent(\"//ul[@id='productList']/li[3]\");\n $this->clickAndWait(\"//div[@id='itemsPager']//a[text()='%PREVIOUS%']\");\n $this->assertElementPresent(\"productList_1\");\n $this->clickAndWait(\"//div[@id='itemsPager']//a[text()='%NEXT%']\");\n $this->assertElementPresent(\"productList_1\");\n //bottom navigation\n $this->assertElementPresent(\"//div[@id='itemsPager']//a[text()='2' and @class='page active']\");\n $this->assertElementPresent(\"//div[@id='itemsPagerbottom']//a[text()='2' and @class='page active']\");\n $this->assertElementNotPresent(\"//div[@id='itemsPagerbottom']//a[text()='1' and @class='page active']\");\n $this->assertElementPresent(\"//div[@id='itemsPagerbottom']//a[text()='1']\");\n $this->assertElementPresent(\"//div[@id='itemsPagerbottom']//a[text()='%PREVIOUS%']\");\n $this->assertElementNotPresent(\"//div[@id='itemsPagerbottom']//a[text()='%NEXT%']\");\n\n $this->assertElementPresent(\"productList_1\");\n $this->assertElementNotPresent(\"//ul[@id='productList']/li[3]\");\n $this->clickAndWait(\"//div[@id='itemsPagerbottom']//a[text()='%PREVIOUS%']\");\n $this->assertElementPresent(\"//div[@id='itemsPagerbottom']//a[text()='1' and @class='page active']\");\n $this->assertElementPresent(\"//div[@id='itemsPagerbottom']//a[text()='%NEXT%']\");\n $this->assertElementNotPresent(\"//div[@id='itemsPagerbottom']//a[text()='%PREVIOUS%']\");\n $this->assertElementPresent(\"productList_1\");\n\n $this->assertElementNotPresent(\"//ul[@id='productList']/li[3]\");\n $this->clickAndWait(\"//div[@id='itemsPagerbottom']//a[text()='%NEXT%']\");\n\n $this->assertElementNotPresent(\"productList_3\");\n $this->clickAndWait(\"//div[@id='itemsPagerbottom']//a[text()='%PREVIOUS%']\");\n\n $this->assertElementPresent(\"productList_1\");\n }", "title": "" }, { "docid": "443e6a3b7291125d27424d2654d24141", "score": "0.63050985", "text": "public function testSimpleProducts() : void\n {\n $this->runIndexer();\n\n $skus = ['simple1', 'simple2', 'simple3'];\n $storeViewCodes = ['default', 'fixture_second_store'];\n\n foreach ($skus as $sku) {\n $product = $this->productRepository->get($sku);\n $product->setTypeInstance(Bootstrap::getObjectManager()->create(Simple::class));\n\n foreach ($storeViewCodes as $storeViewCode) {\n $extractedProduct = $this->getExtractedProduct($sku, $storeViewCode);\n $this->validateBaseProductData($product, $extractedProduct, $storeViewCode);\n $this->validateCategoryData($product, $extractedProduct);\n $this->validatePricingData($product, $extractedProduct);\n $this->validateImageUrls($product, $extractedProduct);\n $this->validateAttributeData($product, $extractedProduct);\n }\n }\n }", "title": "" }, { "docid": "cf083b44eca6ca73f41a5e12bdd370c3", "score": "0.6292506", "text": "public function productsAction()\n { \n \t// Change maximum execution time \n set_time_limit(0);\n \n // Prepare the prudsys IREUS Export Controller\n Ireus_Controller_Export::getInstance()\n ->setProductColumns($this->_productsColumns);\n \n // Get products from database\n $collection = Mage::getModel('Catalog/Product')\n ->getCollection()\n ->joinField('qty', 'cataloginventory/stock_item', '*',\n 'product_id=entity_id', '{{table}}.stock_id=1', 'left')\n ->addAttributeToFilter('status',\n Mage_Catalog_Model_Product_Status::STATUS_ENABLED)\n ->addAttributeToFilter('price', array('gt' => 0))\n ->addAttributeToFilter(\n 'visibility', \n array(\n 'in' => array(\n Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH,\n Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG\n )\n )\n )\n ->addAttributeToSelect('small_image');\n foreach($this->_productsColumns as $value\n ) {\n $collection->addAttributeToSelect($value);\n }\n \n // Walk through collection page wise\n $countCollection = clone $collection;\n $count = $countCollection->count();\n unset ($countCollection);\n $i=0;\n do {\n $i++;\n $products = array();\n $pageCollection = clone $collection;\n $pageCollection->setPage($i, self::PAGE_SIZE);\n foreach ($pageCollection as $product\n ) {\n $product_url = $product->getProductUrl();\n $product->setManufacturer($product->getAttributeText('manufacturer'));\n $product->setUrl(self::setSidPlaceholder($product_url));\n $product->setImagesUrl(Mage::helper('Catalog/Image')\n ->init($product,'small_image')\n ->resize(\n Mage::getStoreConfig(self::CONFIG_IMAGE_WIDTH),\n Mage::getStoreConfig(self::CONFIG_IMAGE_HEIGHT)\n )\n ->__toString());\n $product->setAddToCartUrl(self::getAddToCartUrl($product, $product_url));\n \n // Stream result in parts of 10\n $products[] = $product->getData();\n if (count($products) > 9\n ) {\n echo Ireus_Controller_Export::getInstance()\n ->createProductsCsv($products);\n flush();\n $products = array();\n }\n }\n \n // Stream remaining items\n if (count($products) > 0\n ) {\n echo Ireus_Controller_Export::getInstance()\n ->createProductsCsv($products);\n flush();\n }\n\n $count -= $pageCollection->count();\n \n } while($count > 0); \n\n // Delete cached recommendations\n Ireus_Controller_Cache::deleteCache(Mage::getBaseDir('cache') . DIRECTORY_SEPARATOR . 'ireus');\n\n exit;\n }", "title": "" }, { "docid": "11d00bc63c234be12d5dc097bbd59a90", "score": "0.6282024", "text": "function getProductos(){\n if($_GET['action']=='productos'){\n $db = new ShopOnLineDB();\n if(isset($_GET['id'])){\n //muestra 1 solo registro si es que existiera ID\n $response = $db->getProducto($_GET['id']);\n echo json_encode($response,JSON_PRETTY_PRINT);\n }else{ //muestra todos los registros\n $response = $db->getProductos();\n echo json_encode($response,JSON_PRETTY_PRINT);\n }\n }else{\n $this->response(400);\n }\n }", "title": "" }, { "docid": "b8569dbd6b65740993ae55bb2823f9a5", "score": "0.6278828", "text": "public function testAdapterFetchPairsAfterSetFetchMode()\n {\n $products = $this->_db->quoteIdentifier('zfproducts');\n $product_id = $this->_db->quoteIdentifier('product_id');\n $product_name = $this->_db->quoteIdentifier('product_name');\n\n $this->_db->setFetchMode(Zend_Db::FETCH_OBJ);\n $prod = 'Linux';\n $result = $this->_db->fetchPairs(\"SELECT $product_id, $product_name FROM $products WHERE $product_id > :id ORDER BY $product_id ASC\", [\":id\" => 1]);\n $this->assertTrue(is_array($result));\n $this->assertEquals(2, count($result)); // count rows\n $this->assertEquals($prod, $result[2]);\n }", "title": "" }, { "docid": "5ff94135402d07d11ea40149754e4161", "score": "0.62766886", "text": "public function testIndexProduct()\n {\n }", "title": "" }, { "docid": "612dc30f59f95a9737f209f1bb6b3825", "score": "0.6274044", "text": "function getProductBasics() {\n $db = acmeConnect();\n $sql = 'SELECT invName, invId FROM inventory ORDER BY invName ASC';\n $stmt = $db->prepare($sql);\n $stmt->execute();\n $products = $stmt->fetchAll(PDO::FETCH_ASSOC);\n $stmt->closeCursor();\n return $products;\n}", "title": "" }, { "docid": "bb297ce3d1545d12aa1542c3177be282", "score": "0.62701297", "text": "public function getProduct();", "title": "" }, { "docid": "bb297ce3d1545d12aa1542c3177be282", "score": "0.62701297", "text": "public function getProduct();", "title": "" }, { "docid": "bb297ce3d1545d12aa1542c3177be282", "score": "0.62701297", "text": "public function getProduct();", "title": "" }, { "docid": "93e71f9e7909ba7c6b9a1c63dd5b0c0b", "score": "0.62690276", "text": "public function getProductList() {}", "title": "" }, { "docid": "93e71f9e7909ba7c6b9a1c63dd5b0c0b", "score": "0.62690276", "text": "public function getProductList() {}", "title": "" }, { "docid": "93e71f9e7909ba7c6b9a1c63dd5b0c0b", "score": "0.62690276", "text": "public function getProductList() {}", "title": "" }, { "docid": "93e71f9e7909ba7c6b9a1c63dd5b0c0b", "score": "0.62690276", "text": "public function getProductList() {}", "title": "" }, { "docid": "93e71f9e7909ba7c6b9a1c63dd5b0c0b", "score": "0.62690276", "text": "public function getProductList() {}", "title": "" }, { "docid": "5409e515304082f7af6f2c8b9c7eeee7", "score": "0.6268941", "text": "function getProductList() ;", "title": "" }, { "docid": "22703f5b23f10561751aac8a5cc235fe", "score": "0.6265557", "text": "function getCurrentProduct($itemNumber) {\n try {\n $conn = DB::connect();\n $secItem = Security::secureString($itemNumber);\n\n $statement = \"SELECT Product.*, ImgGallery.URL, ProductImg.IsPrimary FROM Product INNER JOIN ProductImg ON ProductImg.ItemNumber = Product.ItemNumber INNER JOIN ImgGallery ON ImgGallery.ImgID = ProductImg.ImgID WHERE Product.ItemNumber = :ItemNumber\";\n $handle = $conn->prepare($statement);\n $handle->bindParam(\":ItemNumber\", $secItem);\n $handle->execute();\n\n $result = $handle->fetchAll( \\PDO::FETCH_ASSOC );\n $conn = DB::close();\n return $result;\n }\n catch(\\PDOException $ex) {\n return print($ex->getMessage());\n }\n}", "title": "" }, { "docid": "7cd22606a8bdaaf25ff677130f2452d2", "score": "0.62629205", "text": "public static function getProducts(){\n $app = Aplicacion::getSingleton();\n $conn = $app->conexionBd();\n $query = sprintf(\"SELECT `id` FROM `producto`\");\n $rs = $conn->query($query);\n $result = false;\n if ($rs) {\n if ($rs->num_rows > 0) {\n while( $row = mysqli_fetch_assoc($rs)) {\n $producto[] = GestionProducto::guardarProducto($row['id']);\n }\n $result = $producto;\n $rs->free();\n }\n } else {\n echo \"Error al consultar en la BD: (\" . $conn->errno . \") \" . utf8_encode($conn->error);\n exit();\n }\n return $result;\n }", "title": "" }, { "docid": "cb9db3dccdbfd7944b523813fd075f41", "score": "0.6262594", "text": "function listArt()\n{\n global $start;\n $select = \"SELECT * FROM products\";\n $request = $start->prepare($select);\n $request->execute();\n return $request->fetchAll();\n}", "title": "" }, { "docid": "cb6c7355c28e80c19ed1588209f71cf2", "score": "0.62599236", "text": "function displayAllProducts(){\r\n $run = Controller::AllProducts();\r\n $run->execute();\r\n while ($row = $run->fetch(PDO::FETCH_ASSOC)){\r\n\r\n $product = new Product($row['id'],$row['name'],$row['category'],\r\n $row['price'],$row['count'],$row['image'],$row['keywords'],$row['description']);\r\n if($row['count'] != 0){\r\n displayProduct($product);\r\n displayCartButton($product);}\r\n\r\n }\r\nreturn true;\r\n}", "title": "" }, { "docid": "051367911b6618683976f403d6814d94", "score": "0.6259114", "text": "public function getOneProduct()\n {\n $response = $this->get('/products/1');\n $response->assertStatus(200);\n }", "title": "" }, { "docid": "82be439361430a6f0e300fddda95fbc3", "score": "0.62538785", "text": "function getAllProducts($gotData){\n $sql=\"SELECT * FROM product\";\n $check=mysqli_query($gotData->con,$sql);\n $gotData->user=(object) null;\n if($check){\n $i=0;\n $gotData->user->totalRows=mysqli_num_rows($check);\n if($gotData->user->totalRows==0){\n $gotData->user->showNothing='<div class=\"row\" align=\"center\" style=\"margin-top: 80px;\">\n \t<div id=\"no_found\"><img src=\"images/not-found.png\" width=\"100px\" alt=\"no found\" /></div>\n \t<br/>\n \t<div style=\"color:gray;\"><h4>No Products</h4></div>\n \t</div>';\n return $gotData;\n }\n while($row=mysqli_fetch_array($check)){\n $gotData->user->product[$i]=(object) null;\n $gotData->user->product[$i]->id=$row['id'];\n $gotData->user->product[$i]->name=$row['name'];\n $gotData->user->product[$i]->s_rate=$row['s_rate'];\n $gotData->user->product[$i]->p_rate=$row['p_rate'];\n $gotData->user->product[$i]->description=$row['description'];\n $gotData->user->product[$i]->taxation=$row['taxation'];\n $gotData->user->product[$i]->product_code=$row['product_code'];\n $gotData->user->product[$i]->hsncode=$row['hsncode'];\n $gotData->user->product[$i]->qty_name=$row['qty_name'];\n $i++;\n }\n return $gotData;\n }\n $gotData->error=true;\n $gotData->errorMessage=\"Try again!\";\n return $gotData;\n}", "title": "" }, { "docid": "824a6566af4f8d008949bbe241acc0bd", "score": "0.6246125", "text": "public function retreiveProducts() {\n\n $url = config('constants.TEST_URL');\n\n $baseurl = $url . 'items';\n\n $client = new Client([\n 'headers' => [\n 'Accept' => 'application/json',\n ],\n 'http_errors' => false\n ]);\n try {\n\n $response = $client->request('GET', $baseurl);\n\n $body = $response->getBody();\n $bodyObj = json_decode($body);\n\n if ($response->getStatusCode() == 200) {\n\n return $body;\n } else {\n\n return $body;\n }\n } catch (RequestException $e) {\n return 'Http Exception : ' . $e->getMessage();\n } catch (Exception $e) {\n return 'Internal Server Error:' . $e->getMessage();\n }\n }", "title": "" }, { "docid": "610ac5826d3feeb1935b6c58d72b52a8", "score": "0.62437594", "text": "protected function _getProducts()\n\t\t{\n\t\t\t$this->Reviews->clear();\n\t\t\t// Uses the products table.\n\t\t\t$this->Reviews->table('products');\n\t\t\t$this->Reviews->select();\n\t\t\t// Returns the results of the products.\n\t\t\treturn $this->Reviews->fetch(true);\n\t\t}", "title": "" }, { "docid": "feda2839be7411cddbb00093aa552503", "score": "0.6233574", "text": "function getAllFeatureProducts(){\n $sql = self::$connection->prepare(\"SELECT * FROM `products`,manufactures,protypes \n WHERE manufactures.manu_id=products.manu_id \n AND protypes.type_id = products.type_id\");\n $sql->execute();//return an object\n $items = array();\n $items = $sql->get_result()->fetch_all(MYSQLI_ASSOC);\n return $items; //return an array\n }", "title": "" }, { "docid": "f8d0f6ecb93d3182681a08436370a81f", "score": "0.6217657", "text": "public function testProductsListValid()\n {\n $client = static::getInsalesApiClient();\n $response = $client->productsList();\n static::checkResponse($response);\n }", "title": "" }, { "docid": "a744f5700d7bc9cc41f099e5bfed9358", "score": "0.62047875", "text": "function get_products(){\n\t\t$products = $this->db->get('product_id, product_name, image, description, price', 'tb_products', 'hidden = 0');\n\t\treturn $products;\n\t}", "title": "" }, { "docid": "eabbd490f4e850910173e59e5b6846e3", "score": "0.61989117", "text": "public function getProducts($data = array()) {\n\t\t\n\t\t$sql = DB::table('product')\n\t\t\t\t->select('product.product_id',DB::raw('(SELECT AVG(rating) AS total FROM sg_review r1 \n\t\t\t\tWHERE r1.product_id = sg_product.product_id AND r1.status = 1 \n\t\t\t\tGROUP BY r1.product_id) AS rating'),DB::raw('(SELECT price FROM sg_product_discount pd2 WHERE pd2.product_id = sg_product.product_id \n\t\t\t\tAND pd2.customer_group_id = 1 AND pd2.quantity = 1 AND ((pd2.date_start = 0000-00-00\n\t\t\t\tOR pd2.date_start < NOW()) \n\t\t\t\tAND (pd2.date_end = 0000-00-00 OR pd2.date_end > NOW())) \n\t\t\t\tORDER BY pd2.priority ASC, pd2.price ASC LIMIT 1) \n\t\t\t\tAS discount'),DB::raw('(SELECT price FROM sg_product_special ps WHERE ps.product_id = sg_product.product_id AND ps.customer_group_id = 1 AND ((ps.date_start = 0000-00-00 OR ps.date_start < NOW()) AND (ps.date_end = 0000-00-00 OR ps.date_end > NOW())) \n\t\t\t\tORDER BY ps.priority ASC\n\t\t\t\t, ps.price ASC LIMIT 1) AS special'))\n\t\t\t\t->leftJoin('product_description','product.product_id','=','product_description.product_id')\n\t\t\t\t->leftJoin('product_to_store','product.product_id','=','product_to_store.product_id')\n\t\t\t\t->where('product_description.language_id',1)\n\t\t\t\t->where('product.status',1)\n\t\t\t\t->where('product.date_available','<=',Carbon::today())\n\t\t\t\t ->where('product_to_store.store_id',config_store_id)\n\t\t\t\t// ->where('product_to_store.store_id',0)\n\t\t\t\t->groupBy('product_description.name')\n\t\t\t\t->groupBy('product.product_id');\n\t\t\t\t// ->limit(4);\n\t\t\t\t// ->get();\n\n\t\tif (isset($data['limit'])) {\n\t\t\t$sql->Limit($data['limit']);\n\t\t}\n\n\t\tif (isset($data['order']) && ($data['order'] == 'DESC')) {\n\t\t\t$sql->OrderBy(\"product_description.name\",\"DESC\");\n\t\t} else {\n\t\t\t$sql->OrderBy(\"product_description.name\",\"ASC\");\n\t\t}\n\n\t\t$query = $sql->get();\n\n\t\t$product_data = array();\n\t\tforeach ($query as $result) {\n\t\t\t$product_data[] = $this->getProduct($result->product_id);\n\t\t}\n\t\treturn $product_data;\n\t}", "title": "" }, { "docid": "3e3d37dc972466016d1c7c064b4559f9", "score": "0.6191181", "text": "public function getAllProducts(){ \n\t\t$sql = \"SELECT * FROM products WHERE status = 1\"; \n\t\t$result = $this->getQueryAll($sql); \n\t\treturn $result; \n\t}", "title": "" }, { "docid": "b01bbcd9c224ef4d21e166b0b9abcc32", "score": "0.6182028", "text": "public function run()\n {\n $products = \n [\n [\n 'name' => 'Eiger Replecmen Double Layer',\n 'vendor_id' => '2',\n 'category' => 'Camping Tools',\n 'picture' => 'uploads/product_pict/6aec7c5b-dd39-4b15-ba8a-00b1ee0e7cbf.jpg',\n 'unit_price' => '15000',\n 'stock' => '1',\n 'description' => 'Double layer tent that can fit up to 3 persons.',\n ],\n [\n 'name' => 'Eiger Mummy 250 - B0451 Sleeping Bad',\n 'vendor_id' => '2',\n 'category' => 'Camping Tools',\n 'picture' => 'uploads/product_pict/103148060_df946ffb-f70d-4f6f-8845-dc7461ab6527_590_590.jpg',\n 'unit_price' => '8000',\n 'stock' => '4',\n 'description' => 'This sleeping bag has a mummy model. Suitable for use in places with a temperature of 5 - 15 ° C and suitable for people with a maximum height of 180 cm.',\n ],\n [\n 'name' => 'Consina Jomson New Mountain Boots',\n 'vendor_id' => '3',\n 'category' => 'Camping Tools',\n 'picture' => 'uploads/product_pict/unnamed.jpg',\n 'unit_price' => '25000',\n 'stock' => '2',\n 'description' => 'Consina Jomson New mountain boots sizes 39 - 43 are suitable for climbing mountains. These mountain boots are water resistant and provide excellent control over the footing, which keeps your feet dry and comfortable.',\n ],\n [\n 'name' => 'Jeep Bromo Toyota FJ40 For 7 People',\n 'vendor_id' => '6',\n 'category' => 'Jeep',\n 'picture' => 'uploads/product_pict/4155998451.jpg',\n 'unit_price' => '800000',\n 'stock' => '3',\n 'description' => 'Rent a jeep to Mount Bromo area with a capacity of 7 people. Include driver, petrol, and parking. Pick up point in Tosari, Pasuruan.',\n ],\n [\n 'name' => 'Jeep Bromo Toyota BJ40 For 5 People',\n 'vendor_id' => '6',\n 'category' => 'Jeep',\n 'picture' => 'uploads/product_pict/213913378.jpg',\n 'unit_price' => '500000',\n 'stock' => '4',\n 'description' => 'Rent a jeep to Mount Bromo area with a capacity of 5 people. Include driver, petrol, and parking. Pick up point in Tosari, Pasuruan.',\n ],\n [\n 'name' => 'Jeep Bromo Toyota FJ40 Exclude Driver',\n 'vendor_id' => '6',\n 'category' => 'Jeep',\n 'picture' => 'uploads/product_pict/sewa-jeep-bromo-1.jpeg',\n 'unit_price' => '300000',\n 'stock' => '6',\n 'description' => 'Rent a jeep to Mount Bromo area with a capacity of 7-9 people. Jeep rental only, not including driver and gasoline. The point of taking a jeep at The Forest Tumpang.',\n ],\n [\n 'name' => 'Private Trip Bromo For 2 People',\n 'vendor_id' => '4',\n 'category' => 'Trip',\n 'picture' => 'uploads/product_pict/l22234.jfif',\n 'unit_price' => '420000',\n 'stock' => '2',\n 'description' => 'Private trip to Mount Bromo and its surroundings for one day. The customers determine the destination from the start to the end by theirself. Include pickup at Ngadisari, entrance tickets, masks, documentation, and meals.',\n ],\n [\n 'name' => 'Open Trip Bromo For 12 People',\n 'vendor_id' => '4',\n 'category' => 'Trip',\n 'picture' => 'uploads/product_pict/l26330.jfif',\n 'unit_price' => '250000',\n 'stock' => '14',\n 'description' => 'Destinations: Penanjakan, Ledok Widodaren, Gunung Batok, Kawah Bromo, Bukit Teletubbies, and souvenir shops. Pick up point at The Forest Tumpang. Free to invite any person.',\n ],\n [\n 'name' => 'Open Trip Semeru For 12-20 People',\n 'vendor_id' => '4',\n 'category' => 'Trip',\n 'picture' => 'uploads/product_pict/Ranu-Kumbolo.jpg',\n 'unit_price' => '650000',\n 'stock' => '3',\n 'description' => 'Open trip to Mount Semeru with 12-20 people. Include transportation, guide, 9x meals, homestay, documentation, first aid kit, tents, and TNBTS insurance.',\n ],\n [\n 'name' => 'Clover Homestay Standard Room',\n 'vendor_id' => '5',\n 'category' => 'Inn',\n 'picture' => 'uploads/product_pict/152143042.jpg',\n 'unit_price' => '100000',\n 'stock' => '6',\n 'description' => 'Standard room measuring 4m x 4m with single bed. There is an outside bathroom as well as a communal kitchen for cooking.',\n ],\n [\n 'name' => 'Clover Homestay Superior Room',\n 'vendor_id' => '5',\n 'category' => 'Inn',\n 'picture' => 'uploads/product_pict/bb703007affc1e68ade676d53fcaef1b.jpg',\n 'unit_price' => '180000',\n 'stock' => '6',\n 'description' => 'Superior room measuring 5m x 5m with twin beds. There is an outside bathroom as well as a communal kitchen for cooking.',\n ],\n [\n 'name' => 'Clover Homestay Deluxe Room',\n 'vendor_id' => '5',\n 'category' => 'Inn',\n 'picture' => 'uploads/product_pict/unnamed (1).jpg',\n 'unit_price' => '250000',\n 'stock' => '2',\n 'description' => 'Deluxe room measuring 5m x 5m with a king bed. There is an en-suite bathroom and a communal kitchen for cooking.',\n ],\n ];\n \n\n DB::table('products')->insert($products);\n }", "title": "" }, { "docid": "8ab965ff0122b084359133b485b452b5", "score": "0.6178566", "text": "function getProdAleatorios() {\n $consulta = \\Base\\PrecioQuery::create()\n ->joinWith('Precio.Producto')\n ->select(\"Producto.IdProd\")\n ->withColumn(\"Producto.IdProd\", 'id_prod')\n ->withColumn(\"Producto.IdProd\", 'ruta')\n ->withColumn(\"Producto.nombre\", 'nombre')\n ->withColumn(\"Producto.descripcion\", 'descripcion')\n ->withColumn(\"Producto.empresa_fab\", 'empresa_fab')\n ->withColumn(\"Producto.iva\", 'iva')\n ->withColumn(\"Precio.valor\", 'precio')\n ->addAscendingOrderByColumn(\"RAND()\")\n ->limit(3)\n ->find();\n $arregloObj = json_decode(json_encode($consulta->toArray()), FALSE);\n \n return $arregloObj;\n \n /*\n $sql = \"SELECT producto.id_prod AS id_prod, nombre, descripcion,empresa_fab,iva, producto.id_prod AS ruta,precio.valor AS precio \"\n . \"FROM producto,precio WHERE producto.id_prod=precio.cod_producto \"\n . \"ORDER BY RAND() \"\n . \"LIMIT 3\";\n return $this->oMySQL->ejecutarConsultaSelect($sql);*/\n }", "title": "" }, { "docid": "92776ea442b8e4cce12846ec591980fe", "score": "0.61731863", "text": "function getAllMco_productos()\n {\n $sql=\"SELECT * FROM mco_productos\";\n return $this->connection->GetAll($sql); \n}", "title": "" }, { "docid": "8e54e7bf87ce35a8830471c81b53bff5", "score": "0.6171468", "text": "public function run()\n {\n $product = new Product([\n 'imagePath'=>'https://lareviewofbooks-org-cgwbfgl6lklqqj3f4t3.netdna-ssl.com/wp-content/uploads/2016/09/paavpdqsbtggtmn4smxs.png',\n 'title'=> 'IT',\n 'description'=>\"Too scary - movie for childeren lol.\",\n 'price'=>200\n ]);\n $product->save();\n $product = new Product([\n 'imagePath'=>'https://upload.wikimedia.org/wikipedia/en/thumb/d/d1/Game_of_Thrones_Season_6.jpeg/220px-Game_of_Thrones_Season_6.jpeg',\n 'title'=> 'Game of Thrones',\n 'description'=>\"You've got this game.\",\n 'price'=>200\n ]);\n $product->save();\n $product = new Product([\n 'imagePath'=>'https://img04.mgo-images.com/image/thumbnail?id=MMVAF76018A477C2826A4EC8747C40B7BE27&ql=70&sizes=310x465',\n 'title'=> 'Avengers Endgame',\n 'description'=>\"One snap with the six stones.\",\n 'price'=>200\n ]);\n $product->save();\n $product = new Product([\n 'imagePath'=>'http://www.gstatic.com/tv/thumb/v22vodart/3542039/p3542039_v_v8_ac.jpg',\n 'title'=> 'Avatar',\n 'description'=>\"Kids know this movie.\",\n 'price'=>200\n ]);\n $product->save();\n\n $product = new Product([\n 'imagePath'=>'http://t0.gstatic.com/images?q=tbn:ANd9GcQhYjUIu2o5v5u3rfJpCq5Cz0Q9WK--XdYxai_N2d0ImohPiIOp',\n 'title'=> 'Titanic',\n 'description'=>\"Even the biggest ship\",\n 'price'=>200\n ]);\n $product->save();\n\n $product = new Product([\n 'imagePath'=>'http://t2.gstatic.com/images?q=tbn:ANd9GcSRyzmDo83KY0dClkpu3VPWZ0tMfzySsKqBO8YAouuFJxwNXMOU',\n 'title'=> 'Godzilla',\n 'description'=>\"The Alpha and the great great great.\",\n 'price'=>200\n ]);\n $product->save();\n }", "title": "" }, { "docid": "c9877d9c5598db3d0573bf6c1e275a46", "score": "0.6166746", "text": "public function run()\n {\n // factory(Products::class,10)->create();\n Products::create([\n \t\"description\" => \"neverra electrolux mediana\",\n \"unit_price\" => 5.99,\n \t\"quantity\" => 150,\n \"provider_id\" => 3,\n \"category_id\" => 4,\n \"tax_id\" => 4,\n ]);\n Products::create([\n \t\"description\" => \"carne\",\n \"unit_price\" => 10.99,\n \t\"quantity\" => 200,\n \"provider_id\" => 6,\n \"category_id\" => 3,\n \"tax_id\" => 4,\n ]);\n Products::create([\n \t\"description\" => \"crema dental 250gr\",\n \"unit_price\" => 3.99,\n \t\"quantity\" => 250,\n \"provider_id\" => 5,\n \"category_id\" => 2,\n \"tax_id\" => 1,\n ]);\n Products::create([\n \t\"description\" => \"camisa amarilla\",\n \"unit_price\" => 5.99,\n \t\"quantity\" => 100,\n \"provider_id\" => 4,\n \"category_id\" => 2,\n \"tax_id\" => 3,\n ]);\n Products::create([\n \t\"description\" => \"camisa verde\",\n \"unit_price\" => 6.99,\n \t\"quantity\" => 100,\n \"provider_id\" => 4,\n \"category_id\" => 2,\n \"tax_id\" => 3,\n ]);\n Products::create([\n \t\"description\" => \"remedio\",\n \"unit_price\" => 10.99,\n \t\"quantity\" => 100,\n \"provider_id\" => 6,\n \"category_id\" => 1,\n \"tax_id\" => 4,\n ]);\n }", "title": "" }, { "docid": "38556d51b4ac871828273b39998d9a0d", "score": "0.616515", "text": "public function testGetProductsWithSearch()\n {\n $token = $this->getToken();\n $response = $this->json('GET', \n '/v1/products?q=et', [], \n [\n 'Authorization' => 'Bearer ' . $token,\n ]\n );\n\n $response\n ->seeStatusCode(200)\n ->seeJsonStructure([\n 'data' => [\n '*' => [\n 'title',\n 'brand',\n 'price',\n 'stock'\n ]\n ]\n ]);\n }", "title": "" }, { "docid": "a045c2e6791a363cbe6ca0160f3c0fd8", "score": "0.61630005", "text": "public function testStoreProductsVariationType()\n {\n }", "title": "" } ]
35236b01484b359c6357b8b5ab1a1f15
Adds a PUT route to the collection This is simply an alias of $this>addRoute('PUT', $route, $handler)
[ { "docid": "a3d8df7391fddf34b223c5eef855cc94", "score": "0.7767976", "text": "public function put($route, $handler)\n {\n $this->addRoute('PUT', $route, $handler);\n }", "title": "" } ]
[ { "docid": "1ef6b5868e0efaa9f63288aad74c8b03", "score": "0.76699877", "text": "public function put(string $route, mixed $handler): void\n {\n $this->addRoute('PUT', $route, $handler);\n }", "title": "" }, { "docid": "a50e2b678348385abeb4aca8a48fb255", "score": "0.73543996", "text": "public function put($uri, $handler)\n {\n $this->container->router->addRoute($uri, $handler, 'PUT');\n }", "title": "" }, { "docid": "6929f37c1bd8a591287aff085e813805", "score": "0.7209105", "text": "public static function put(string $route, $handler, $middleware = null): void\n {\n self::route('PUT', $route, $handler, $middleware);\n }", "title": "" }, { "docid": "f773aa60be298ab7fb8c0dc577290a67", "score": "0.7096931", "text": "public function put($path, $handler, $info = null)\n {\n $this->addRoute([\"PUT\"], null, $path, $handler, $info);\n }", "title": "" }, { "docid": "90adc4251b2fd67356a427c4e1bfe5c0", "score": "0.693942", "text": "public function put(string $path) : RouteInterface;", "title": "" }, { "docid": "364e56165b951b1f93dcdc319003aece", "score": "0.69388264", "text": "public static function put(string $uri, callable $func) : Route\n {\n return self::addRoute($uri, $func, \"PUT\");\n }", "title": "" }, { "docid": "3e75b266cf94da890dfe9244a3a66dd1", "score": "0.6833045", "text": "function put($path, $callback)\n{\n route('put', $path, $callback);\n}", "title": "" }, { "docid": "eb9b834f73b200bd2f12de340751e8b4", "score": "0.6812538", "text": "public function put(string $id, string $path) : RouteInterface;", "title": "" }, { "docid": "66e42bafccc72953d58f4a3b366bfa7c", "score": "0.6774203", "text": "public function put(string $pattern, $callable): Route\n {\n return $this->map(['PUT'], $pattern, $callable);\n }", "title": "" }, { "docid": "68aa089ac7b32ab10f296b58f8c70827", "score": "0.67716557", "text": "public function put ($route, $middleware, $callback);", "title": "" }, { "docid": "261af9614a88cc02a84f61c5854c9a75", "score": "0.6764848", "text": "public function addPut($routeName,$route) {\n return $this->addRoute('PUT', $routeName, $route);\n }", "title": "" }, { "docid": "170ba1b102cbb4704ff8410dfb6bc24e", "score": "0.6761175", "text": "public function put($route, $params = [])\n {\n return $this->addRoute('PUT', $route, $params);\n }", "title": "" }, { "docid": "2e6c7025724869c9b9c1def0f2561ffe", "score": "0.67071694", "text": "function put($route, $function){\n\t\tFrankJunior::add_route('put', $route, $function);\n\t}", "title": "" }, { "docid": "743d609bd620947617c8b84e9b88ca5f", "score": "0.66789675", "text": "public function testPutRequestForExistingStaticRoute(): void\n {\n $_SERVER['REQUEST_METHOD'] = 'PUT';\n\n $router = new \\Mezon\\Router\\Router();\n $router->addRoute('/catalog/', function ($route) {\n return $route;\n }, 'PUT');\n\n $result = $router->callRoute('/catalog/');\n\n $this->assertEquals($result, '/catalog/', 'Invalid extracted route');\n }", "title": "" }, { "docid": "19399cae237287bff5290e9efba1cc70", "score": "0.66701084", "text": "public static function put(string $uri, $action) : Route\n {\n return static::match('PUT', $uri, $action);\n }", "title": "" }, { "docid": "cfbe6e46292682e515495d674f9985b9", "score": "0.6588162", "text": "public static function put($path, $handlerMethod = null)\n {\n return self::factory($path, HttpMethods::PUT, $handlerMethod);\n }", "title": "" }, { "docid": "8e9d2a4fa6861cbc4cf2d9e13920971d", "score": "0.6585195", "text": "public function put(string $url, string $class, string $function): RouteInterface;", "title": "" }, { "docid": "4c773a5e1a2e0be4020eb6921621ff6d", "score": "0.6537773", "text": "public function testGeneratePutRoute()\n {\n $route = $this->router->createPutRoute('/', array($this, 'closure'));\n $this->assertBasicRoute($route, 'PUT');\n }", "title": "" }, { "docid": "e1872c1ba8e01773db05b179498833a2", "score": "0.6523036", "text": "private function _put($route, $params=null) {\n\t\treturn $this->_request($route, \"PUT\", $params);\n\t}", "title": "" }, { "docid": "832dead0f9aa8bbf45fdb4e319ef8be0", "score": "0.64783627", "text": "public function onPut(string $path, $target): ConfigurableRoute;", "title": "" }, { "docid": "d22921eed1b1686b086c25e755e62ea6", "score": "0.64485484", "text": "public function put(string $url, $action): RouteInterface;", "title": "" }, { "docid": "42cdbfc9eba4b9f7fa3d33714d88da42", "score": "0.6395482", "text": "public function put($route, $callback)\n {\n $this->addRoute(\"PUT\", $route, $callback);\n\n return $this;\n }", "title": "" }, { "docid": "3475b987de690203e00e29b28823c460", "score": "0.6358356", "text": "public function put($uri, $controller)\n {\n $this->routes['PUT'][$uri] = $controller;\n }", "title": "" }, { "docid": "3475b987de690203e00e29b28823c460", "score": "0.6358356", "text": "public function put($uri, $controller)\n {\n $this->routes['PUT'][$uri] = $controller;\n }", "title": "" }, { "docid": "23bd51e014eff12debdbdc5754f67298", "score": "0.6323208", "text": "public static function put(string $expression): Route\n {\n return new self($expression, Request::METHOD_PUT);\n }", "title": "" }, { "docid": "de9cb2fd333f122aebec3f84245eb990", "score": "0.6321205", "text": "public function put($uri, $action)\n {\n return $this->addRoute('PUT', $uri, $action);\n }", "title": "" }, { "docid": "de9cb2fd333f122aebec3f84245eb990", "score": "0.6321205", "text": "public function put($uri, $action)\n {\n return $this->addRoute('PUT', $uri, $action);\n }", "title": "" }, { "docid": "e9e3e772b5d49f778d7e4f04b88e4ee5", "score": "0.62872756", "text": "public function put(string $pattern, callable $callback)\n {\n if ($this->requestMethod === \"PUT\") {\n $this->mapRoute($pattern, $callback);\n }\n }", "title": "" }, { "docid": "36b0c562bc22cbb1b4e0e7cf170fe98f", "score": "0.624139", "text": "public function patch($route, $handler)\n {\n $this->addRoute('PATCH', $route, $handler);\n }", "title": "" }, { "docid": "d11253fad6d7bae17f250d01bf796e17", "score": "0.61315596", "text": "public function put($pattern, $options, $callback = null) {\n\t\treturn static::on(array('PUT'), $pattern, $options, $callback);\n\t}", "title": "" }, { "docid": "6f6df9f5e71abeded79072e7852fd9f9", "score": "0.6102667", "text": "public static function put($route, $callback)\n {\n $route = self::url_to_route($route);\n\n self::$put_routes[$route] = $callback;\n }", "title": "" }, { "docid": "0e01298474962feafed0fb1a0fcfa358", "score": "0.60748935", "text": "public function patch(string $route, mixed $handler): void\n {\n $this->addRoute('PATCH', $route, $handler);\n }", "title": "" }, { "docid": "121ae138d7f218f8fa940231c4753b8d", "score": "0.60539925", "text": "public function put($endpoint, \\Closure $action, $localMiddleware =[], $blacklistMiddleware = [])\n {\n $endpoint = $this->_baseURL . $endpoint;\n $this->_routes['PUT'][$endpoint] = [\n 'action' => $action,\n 'endpoint' => $endpoint,\n 'localMiddleware' => $localMiddleware,\n 'blacklistMiddleware' => $blacklistMiddleware\n ];\n }", "title": "" }, { "docid": "35fbcb8e5d246506509b7cfe40e6bb6a", "score": "0.6047579", "text": "public function put(string $path, $callback, ...$args): FrameworkHandler\n {\n return $this->route('put', $path, $callback, ...$args);\n }", "title": "" }, { "docid": "7388a615ce8ae741bc95c7eae4e86852", "score": "0.6016183", "text": "public function put(string $path, ?object $callback, ?object $middleware = NULL): Router\n {\n return $this->add($path, \"PUT\", $callback, $middleware);\n }", "title": "" }, { "docid": "dff87cfceff411aededac64cd113317b", "score": "0.5941837", "text": "public function put($routePattern, $method)\n {\n if ($this->method) {\n // method already set\n return FALSE;\n }\n\n if (($this->action === \"PUT\" || $this->action === \"PATCH\")\n && $this->routeMatcher($routePattern) && !empty($method)\n ) {\n $this->setMethod($method);\n }\n }", "title": "" }, { "docid": "ecae6c42e9babbf3da81c3fa13fa1764", "score": "0.59393376", "text": "public function put($expr, $callback)\n {\n $this->routes[] = new Route($expr, $callback, 'PUT', $this->middlewares);\n $this->middlewares = [];\n }", "title": "" }, { "docid": "bda28a8ad3dfaf240691f97d4234709e", "score": "0.5927444", "text": "function put($uri, $action) {\n return app('router')->put($uri, $action);\n }", "title": "" }, { "docid": "ba8337ec32b0ff9e8e65fc94f733a135", "score": "0.5904496", "text": "public function putAction()\n {\n $this->methodNotAllowed('PUT');\n }", "title": "" }, { "docid": "0edc045d546d453875611bdaf94acf1e", "score": "0.5890893", "text": "public function put($uri, array $options = [])\n\t{\n\t\treturn $this->request($uri, 'put', $options);\n\t}", "title": "" }, { "docid": "e7cb685cc382abd24083c8b13d97a179", "score": "0.5867664", "text": "public function put() : Resource {\n try{\n \n $this->method = 'PUT';\n return $this;\n\n } catch (\\Throwable $t){\n new ErrorTracer($t);\n }\n }", "title": "" }, { "docid": "dde275288f11a04dfd12a4da06e0b6b6", "score": "0.58462054", "text": "public function put($resource, $arOptions);", "title": "" }, { "docid": "19974bfbc0ad33a5f37d91733c52c0e9", "score": "0.5814424", "text": "abstract public function getPutRoutes();", "title": "" }, { "docid": "f41e61165acc531521342f79598cd485", "score": "0.580261", "text": "protected function put($uri, array $options = [])\n {\n return $this->request('PUT', $uri, $options);\n }", "title": "" }, { "docid": "1b9026424e5bf4e36219c52c0a04b77c", "score": "0.57981825", "text": "public function putRoute ($route, $content)\n\n {\n\n\n $this->route->put($route, function ($router) use ($content) {\n\n\n $putParams = array();\n\n parse_str($this->getRequest()->getContent(), $putParams);\n\n return $this->runRoute($content, $putParams, $router->params()->getParams());\n\n\n });\n\n\n }", "title": "" }, { "docid": "f3c4d9d86674b1816e50ec2c69f44d2e", "score": "0.57828027", "text": "public static function put(string $uri, $action = null, array $middleware = []): void\n {\n self::add('put', $uri, $action, $middleware);\n }", "title": "" }, { "docid": "c77ecaa68a2353e91919e7ea61864ea3", "score": "0.5770122", "text": "public function createPutRoute(string $endpointName) : Route\n {\n $route = $this->createGenericRoute($endpointName);\n\n $route\n ->setMethods(['PUT'])\n ->setDefault('_controller', 'FakeRestServerBundle:FakeServerApi:put')\n ;\n\n return $route;\n }", "title": "" }, { "docid": "ec5fcbd9d8c67e1b7f97263cabfaad07", "score": "0.5723361", "text": "public function put(string $routeName, string $name, $action) {\n $this->createRoute($routeName, $name, 'PUT', $action);\n }", "title": "" }, { "docid": "1afcd4ab99ac0266066c242252bd1d5a", "score": "0.5690084", "text": "public function put() {\r\n $this->defaultPut();\r\n }", "title": "" }, { "docid": "63657182ee2a629fe697ed723d02692a", "score": "0.56817776", "text": "public function add($path = null, $handler = null, $info = null)\n {\n $this->addRoute(null, null, $path, $handler, $info);\n }", "title": "" }, { "docid": "d4b438685977e2312dcdf4e2cd2418a8", "score": "0.5659883", "text": "public function put(string $uri, array $params = [], array $options = []): ResponseInterface;", "title": "" }, { "docid": "3ae6cf02b5c6390cfe50e8791a9029bd", "score": "0.56579196", "text": "public static function put($pattern, $action){\n\t\treturn Illuminate\\Routing\\Router::put($pattern, $action);\n\t }", "title": "" }, { "docid": "f82db59e8b0cbb5ee3c8091e70a40df3", "score": "0.56535786", "text": "public function put(string $uri, array $options = []): IResponse;", "title": "" }, { "docid": "35331e0f3f7d64fc8968704352137e27", "score": "0.5626118", "text": "public function add(string $method, string $path, $handler, array $binds = [], array $opts = []): Route;", "title": "" }, { "docid": "65c645f1afbe3c86854cf5dede83ce56", "score": "0.5621738", "text": "public function addRoute(Route $route): void;", "title": "" }, { "docid": "a5adacfde9eb9a3e11984c81a5ff2bc4", "score": "0.5613643", "text": "public function put($path, $params);", "title": "" }, { "docid": "c0c007f462c3899dad96a0059cd584c9", "score": "0.56009364", "text": "public function patch($uri, $handler)\n {\n $this->container->router->addRoute($uri, $handler, 'PATCH');\n }", "title": "" }, { "docid": "dd75e9260e8ae1c710c79a3cd4a8fc1a", "score": "0.5586584", "text": "public function put($path, $params = null);", "title": "" }, { "docid": "6155ccec98fd1d1d39c256f96839c66f", "score": "0.5579854", "text": "public function requirePut() {\n\t\t$args = func_get_args();\n\t\t$this->_requireMethod('Put', $args);\n\t}", "title": "" }, { "docid": "04797e0db148993944ef0c7c22fa0817", "score": "0.55762184", "text": "public function update(Request $request, Route $route)\n {\n //\n }", "title": "" }, { "docid": "e16b969b639e667a793fbe0ce64ba134", "score": "0.556585", "text": "public function addRoute($httpMethod, $routeData, $handler);", "title": "" }, { "docid": "4a9dd0d72ac5e5d93a92a6254be2385a", "score": "0.5564204", "text": "public function edit(Route $route)\n {\n //\n }", "title": "" }, { "docid": "db3ca36a0e8329665d4e8735110f91cb", "score": "0.55315715", "text": "public function putAction()\n {\n $this->_response->setHttpResponseCode(405); // 405 Method Not Allowed\n }", "title": "" }, { "docid": "4ded184a339f03240084a07531b3f3c7", "score": "0.5530242", "text": "public static function getRoutePut($service)\n {\n return self::getRoute($service, 'PUT', 'putAction', array('id' => '[a-zA-Z1-9\\-_]+'));\n }", "title": "" }, { "docid": "b0109277ab0a9dc3f254ec06f5406597", "score": "0.5469473", "text": "public static function put($url = null)\n {\n return new static($url, Request::METHOD_PUT);\n }", "title": "" }, { "docid": "5d3c1dda82988e8f784d66c26d3f625a", "score": "0.545256", "text": "public function any(string $route, mixed $handler): void\n {\n $this->addRoute('*', $route, $handler);\n }", "title": "" }, { "docid": "6a446feb5c2013a69ca30dfa12876c14", "score": "0.5452344", "text": "public function testPutRequestForUnExistingStaticRoute(): void\n {\n $_SERVER['REQUEST_METHOD'] = 'PUT';\n\n $exception = '';\n $router = new \\Mezon\\Router\\Router();\n $router->addRoute('/catalog/', [\n $this,\n 'helloWorldOutput'\n ]);\n\n try {\n $router->callRoute('/catalog/');\n } catch (Exception $e) {\n $exception = $e->getMessage();\n }\n\n $msg = \"The processor was not found for the route /catalog/\";\n\n $this->assertNotFalse(strpos($exception, $msg), 'Invalid error response');\n }", "title": "" }, { "docid": "0f109d297e058ca051e8ea2e01279af5", "score": "0.5436566", "text": "public function addRoute(\n $method,\n $mount = null,\n $path = null,\n $handler = null,\n string $info = null\n ) : void {\n if (!is_array($path)) {\n $path = [$path];\n }\n\n foreach ($path as $thePath) {\n $route = new Route();\n $route->set($method, $mount, $thePath, $handler, $info);\n $this->routes[] = $route;\n }\n }", "title": "" }, { "docid": "809af1ba06ddce63adce906a60a93f10", "score": "0.5434241", "text": "public function options(string $route, mixed $handler): void\n {\n $this->addRoute('OPTIONS', $route, $handler);\n }", "title": "" }, { "docid": "1d11a8dc327b52deb161daed91f9a5eb", "score": "0.54252964", "text": "public function putAction()\n {\n \t\n }", "title": "" }, { "docid": "4f23f2539ba0f4376559f4480fd8f607", "score": "0.53963244", "text": "public function options($route, $handler)\n {\n $this->addRoute('OPTIONS', $route, $handler);\n }", "title": "" }, { "docid": "e60639771f2680dfaec7665bf15f89c1", "score": "0.53889614", "text": "public function routePut($pattern, callable $callback): RouterInterface\n {\n $this->router->routePut($pattern, $callback);\n\n return $this;\n }", "title": "" }, { "docid": "d2cbd345369309ecbe6b130cbcf0cd89", "score": "0.53812563", "text": "public function patch($path, $handler, $info = null)\n {\n $this->addRoute([\"PATCH\"], null, $path, $handler, $info);\n }", "title": "" }, { "docid": "499a0e12e5a70c26dd5b585af7c1796c", "score": "0.5377232", "text": "public static function patch(string $route, $handler, $middleware = null): void\n {\n self::route('PATCH', $route, $handler, $middleware);\n }", "title": "" }, { "docid": "7c5b1acef87488f713f95d358e4bc837", "score": "0.53732175", "text": "public function patch(string $id, string $path) : RouteInterface;", "title": "" }, { "docid": "18ca3f7073da2bbc4bc8d97a097a16d6", "score": "0.53672475", "text": "public function put($args)\n {\n }", "title": "" }, { "docid": "f6a0bccba6a8ec06dc91743df461d5fa", "score": "0.5361558", "text": "public function put($uri = '', $payload = [], $headers = [])\n {\n return $this->request('PUT', $uri, $payload, $headers);\n }", "title": "" }, { "docid": "dd04d627e8ae65ea305859de53d0f16a", "score": "0.53281444", "text": "public function put($url, array $options);", "title": "" }, { "docid": "b28e61906a42028f5306cb8e11626391", "score": "0.531411", "text": "public function put(string $path, $resource, bool $publish = true): AssetsCollection;", "title": "" }, { "docid": "987e6a5a2aadac0491eabda0a0484d77", "score": "0.53100926", "text": "public function any($method = null, $path = null, $handler = null, $info = null)\n {\n $this->addRoute($method, null, $path, $handler, $info);\n }", "title": "" }, { "docid": "253c3954027cd28d3d277ae04b08d25d", "score": "0.53095526", "text": "public function addRoute($route, callable $handler = null) {\n if (!$route instanceof HttpRoute) {\n $route = new HttpRoute($route, $handler);\n }\n\n $this->routes[] = $route;\n return $this;\n }", "title": "" }, { "docid": "defe37109c05f9f84969810f8486d33a", "score": "0.53020096", "text": "public function addRoute(string|array $httpMethod, string $route, mixed $handler): void\n {\n $route = $this->currentGroupPrefix . $route;\n $routeDatas = $this->routeParser->parse($route);\n foreach ((array) $httpMethod as $method) {\n foreach ($routeDatas as $routeData) {\n $this->dataGenerator->addRoute($method, $routeData, $handler);\n }\n }\n }", "title": "" }, { "docid": "ceddf0d1fe71b7156ea08459a16221ea", "score": "0.52873224", "text": "public function put($path, $data = null)\n {\n $data = $this->encodeData($data);\n\n return $this->runRequest($path, 'PUT', $data);\n }", "title": "" }, { "docid": "0b71377067e065c18aa98cecba3fc5e7", "score": "0.52847254", "text": "public function get(string $route, mixed $handler): void\n {\n $this->addRoute('GET', $route, $handler);\n }", "title": "" }, { "docid": "dad2d02c56af559d49b5b133262a6f50", "score": "0.5283372", "text": "function isPut()\r\n\t{\r\n\t\t//\tNotes taken from Slim: https://www.slimframework.com/docs/objects/request.html\r\n\t\t//\t`It is possible to fake or override the HTTP request method. This is useful if, for example, you need to mimic a PUT request using a traditional web browser that only supports GET or POST requests.`\r\n\t\t//\t`There are two ways to override the HTTP request method. You can include a _METHOD parameter in a POST request’s body. The HTTP request must use the application/x-www-form-urlencoded content type.`\r\n\t\t//\tPSEUDO CODE: if (header 'Content-type' == 'application/x-www-form-urlencoded') && get(_METHOD) === 'PUT'\r\n\t\treturn $this->method === 'PUT';\r\n\t}", "title": "" }, { "docid": "7039de69366587474b6236868bd09fff", "score": "0.527726", "text": "function put($url, array $options = [])\n{\n $options['http_method'] = 'PUT';\n return fetch($url, $options);\n}", "title": "" }, { "docid": "d5be2c75460a07f84fa4b95dcd2e1fbd", "score": "0.526316", "text": "public function patch(string $path) : RouteInterface;", "title": "" }, { "docid": "f1031465b34a6574003ec93a9306bd10", "score": "0.5243727", "text": "public function delete($route, $handler)\n {\n $this->addRoute('DELETE', $route, $handler);\n }", "title": "" }, { "docid": "66188de7c3ff5c3227c46af2e63b4f86", "score": "0.52400005", "text": "public static function isPut()\n {\n return $_SERVER[\"REQUEST_METHOD\"] === \"PUT\";\n }", "title": "" }, { "docid": "a1c5df8ac0bb1cd8ea67b930b035086a", "score": "0.523449", "text": "public function put($pattern, $action): self;", "title": "" }, { "docid": "2c4578ddfe38a4b33ef5ee8aee132da3", "score": "0.52307785", "text": "function put($uri = null, $data = array(), $request = array()) {\n\t\t$request = Set::merge(array('method' => 'PUT', 'uri' => $uri, 'body' => $data), $request);\n\t\treturn $this->request($request);\n\t}", "title": "" }, { "docid": "49c77c76bdc4436d99a7d09d16e38571", "score": "0.5213588", "text": "public function delete(string $route, mixed $handler): void\n {\n $this->addRoute('DELETE', $route, $handler);\n }", "title": "" }, { "docid": "fba24c2746316fa4704696a2b5575e2e", "score": "0.52111465", "text": "public static function put($url)\n {\n return new static('PUT', $url);\n }", "title": "" }, { "docid": "c0aedb991d58c1bfdc09011cb0a82201", "score": "0.5201752", "text": "public function put($url, array $headers = array(), $data = null);", "title": "" }, { "docid": "c3fde0c54dcc750f55de92156dd3571b", "score": "0.5188089", "text": "public function put(string $uri, array $data = null)\n {\n return $this->sendRequest(\"put\", $uri, $data);\n }", "title": "" }, { "docid": "f77415c4c06ddcc29231a0fc69f74b8b", "score": "0.5170745", "text": "public function isPut()\n {\n return $this->is('PUT');\n }", "title": "" }, { "docid": "6f9a7decc2921d549110b1bafe0b26ce", "score": "0.5170123", "text": "public function put($data, $options=null){ }", "title": "" }, { "docid": "819835e93d6a677e251f3b80ebe98310", "score": "0.5164964", "text": "public function putAction() {\n\t\t\t$this->_forward('index');\n\t }", "title": "" }, { "docid": "c1a81fe1c7068d16c4cf3a9423619f17", "score": "0.5164111", "text": "public static function update()\n {\n return self::factory('/{id}', HttpMethods::PUT, 'update')\n ->name(self::UPDATE)\n ->description('Updates an existing item identified by {id}, using the posted data');\n }", "title": "" }, { "docid": "f8c45991b4756a7cbec1c7bc19a91677", "score": "0.5154821", "text": "public function get($route, $handler)\n {\n $this->addRoute('GET', $route, $handler);\n }", "title": "" } ]
73d5c8d4ff5d3b555b5484cfda912159
Only select tasks which have a local task variable with the given name matching the given value. The syntax is that of SQL: for example usage: valueLike(%value%)
[ { "docid": "ad6ed8f5e036b874ac82524c10d51179", "score": "0.61964774", "text": "public function taskVariableValueLike(?string $variableName, ?string $variableValue): TaskQueryInterface;", "title": "" } ]
[ { "docid": "950f8dc9b05df8b55402e2a8a43288e1", "score": "0.638733", "text": "public function taskVariableValueLessThanOrEquals(?string $variableName, $variableValue): TaskQueryInterface;", "title": "" }, { "docid": "39b3e9484c055a04f7b178587953ce64", "score": "0.6328953", "text": "public function taskVariableValueEquals(?string $variableName, $variableValue): TaskQueryInterface;", "title": "" }, { "docid": "b9e9858d590132c5e8cf1e56a6e14502", "score": "0.627515", "text": "public function processVariableValueEquals(?string $variableName, $variableValue): TaskQueryInterface;", "title": "" }, { "docid": "1b0ae518cf286723b7e39a54f31d2277", "score": "0.62618", "text": "public function processVariableValueLessThanOrEquals(?string $variableName, $variableValue): TaskQueryInterface;", "title": "" }, { "docid": "0dacc23c29c0da1fa1f05f4d94c8e39a", "score": "0.6253372", "text": "public function matchVariableValuesIgnoreCase(): TaskQueryInterface;", "title": "" }, { "docid": "5e9d7b48a80335a423dd75f78c9ad9b5", "score": "0.6170423", "text": "public function taskVariableValueGreaterThanOrEquals(?string $variableName, $variableValue): TaskQueryInterface;", "title": "" }, { "docid": "f5db16ae3d9c360b24eb0c2892214d0d", "score": "0.6073153", "text": "public function matchVariableNamesIgnoreCase(): TaskQueryInterface;", "title": "" }, { "docid": "15a883f1a53e44265ef025ca407630d5", "score": "0.6042088", "text": "public function processVariableValueGreaterThanOrEquals(?string $variableName, $variableValue): TaskQueryInterface;", "title": "" }, { "docid": "e7946e899bbf7cd94019d330180b2eb3", "score": "0.60294396", "text": "public function processVariableValueNotEquals(?string $variableName, $variableValue): TaskQueryInterface;", "title": "" }, { "docid": "fe8218ec419e35355d24a33cd670bd3e", "score": "0.6005374", "text": "public function scopeFilterByName($query, $value)\n\t{\n\t\tif (filled($value))\n\t\t\t$query->where('outcomescopes.name', 'like', \"%{$value}%\");\n\t}", "title": "" }, { "docid": "9d2e72b899bc6fe6ed3f20647ef127a0", "score": "0.5945891", "text": "public function taskVariableValueNotEquals(?string $variableName, $variableValue): TaskQueryInterface;", "title": "" }, { "docid": "1304fd2ebd9eb18de90276c514b40d90", "score": "0.58367944", "text": "function searchTasks($searchValue){\n $db = tasks_registrationConnect();\n // The SQL statement\n $sql = \"SELECT * FROM tasks WHERE doerName LIKE :searchValue OR taskName LIKE :searchValue\";\n // The next line creates the prepared statement using the acme connection\n $stmt = $db->prepare($sql);\n $searchValue = \"%{$searchValue}%\";\n $stmt->bindValue(':searchValue', $searchValue, PDO::PARAM_STR);\n $stmt->execute();\n $tasks = $stmt->fetchall(PDO::FETCH_ASSOC);\n $stmt->closeCursor();\n return $tasks;\n}", "title": "" }, { "docid": "c6b885d924028e4379a35b3325f6f218", "score": "0.57556766", "text": "public function taskVariableValueGreaterThan(?string $variableName, $variableValue): TaskQueryInterface;", "title": "" }, { "docid": "199eca92a0bc1236b54174c511414b72", "score": "0.5738899", "text": "public function taskVariableValueLessThan(?string $variableName, $variableValue): TaskQueryInterface;", "title": "" }, { "docid": "0449c9ed2b72195a4e274c981dc2f905", "score": "0.57177365", "text": "public function processVariableValueLike(?string $variableName, ?string $variableValue): TaskQueryInterface;", "title": "" }, { "docid": "e177ad8958d4e9aa26902aa746f01b5d", "score": "0.5680382", "text": "public function processVariableValueNotLike(?string $variableName, ?string $variableValue): TaskQueryInterface;", "title": "" }, { "docid": "1f69188dd501c5e8fb1fe7012b8ed097", "score": "0.5491735", "text": "public function processVariableValueLessThan(?string $variableName, $variableValue): TaskQueryInterface;", "title": "" }, { "docid": "9e3130ca640a97c89e418c6ec27849de", "score": "0.54772115", "text": "public function processVariableValueGreaterThan(?string $variableName, $variableValue): TaskQueryInterface;", "title": "" }, { "docid": "b6aed3a3eb7f262cc01dde87dca3a953", "score": "0.5322112", "text": "protected function name($value)\n {\n return $this->builder->where('name', 'like', '%'.$value.'%');\n }", "title": "" }, { "docid": "0e0eed159d4d66e46033321f82f727f4", "score": "0.5318429", "text": "public function name($value) {\n return (!$this->requestAllData($value)) ? $this->builder->where('groups.name', 'like', '%'.$value.'%') : null;\n }", "title": "" }, { "docid": "4b0dc8a9967ee374a5d8d04a315149e6", "score": "0.5224227", "text": "public function orderByCaseExecutionVariable(?string $variableName, ValueTypeInterface $valueType): TaskQueryInterface;", "title": "" }, { "docid": "402196e8fa686dd156b71d6d25c3f436", "score": "0.5175026", "text": "function select_part_value_by_name($name,$value,$exactly)\n\t{\n\t\tif ($this->call(\"SelectElement.SelectPartValueByName?name=\".urlencode($name).\"&value=\".urlencode($value).\"&exactly=\".urlencode($exactly))==\"true\")\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "15192389a54a784be8cc67ac6fb1e888", "score": "0.51734555", "text": "public function orderByTaskVariable(?string $variableName, ValueTypeInterface $valueType): TaskQueryInterface;", "title": "" }, { "docid": "5bc26c1777ce95c5282cecdd35b17aad", "score": "0.5173393", "text": "function taskExists($name)\n{\n $deployer = Deployer::get();\n return $deployer->tasks->has($name);\n}", "title": "" }, { "docid": "7e705e4a97563b01c1e46496e898b421", "score": "0.51611936", "text": "public function orderByCaseInstanceVariable(?string $variableName, ValueTypeInterface $valueType): TaskQueryInterface;", "title": "" }, { "docid": "2b15cadb870cc492f0fe0be5e0a7d947", "score": "0.515192", "text": "public function orderByExecutionVariable(?string $variableName, ValueTypeInterface $valueType): TaskQueryInterface;", "title": "" }, { "docid": "db262ab1a86a4cbb7a9d94c606f51cfe", "score": "0.5132653", "text": "function _search($task_string) {\n\tglobal $api;\n\n\treturn $api->findTask($task_string);\n}", "title": "" }, { "docid": "4d45a2ccc0e190e50d8e853fab417a69", "score": "0.5093113", "text": "public function taskNameLike(?string $nameLike): TaskQueryInterface;", "title": "" }, { "docid": "0bb468ea4fb8643c8fe418a71a88b4a7", "score": "0.50721633", "text": "public function get_where($field=false, $value=false, $limit=false)\n\t{\n\t\tif (empty($field) || empty($value)) {\n\t\t\treturn false;\n\t\t}\n\t\t$auth = Nagios_auth_Model::instance();\n\t\t$auth_objects = $auth->get_authorized_hostgroups();\n\t\tif (empty($auth_objects))\n\t\t\treturn false;\n\t\t$obj_ids = array_keys($auth_objects);\n\t\t$limit_str = sql::limit_parse($limit);\n\t\t$value = '%' . $value . '%';\n\t\t$sql = \"SELECT * FROM hostgroup WHERE LCASE(\".$field.\") LIKE LCASE(\".$this->db->escape($value).\") \".\n\t\t\"AND id IN(\".implode(',', $obj_ids).\") \".$limit_str;\n\t\t$obj_info = $this->db->query($sql);\n\t\treturn count($obj_info) > 0 ? $obj_info : false;\n\t}", "title": "" }, { "docid": "760070b62e377e52e30b8685e1ab53e8", "score": "0.504069", "text": "function _search($task_string) {\n\tglobal $api;\n\n\t$returns = array();\n\t$data = $api->task();\n\tif(!$task_string) return $data;\n\n\tforeach ($data as $task) {\n\t\tif(stripos($task['text'], $task_string) !== false) \n\t\t\t$returns[] = $task;\n\t}\n\treturn $returns;\n}", "title": "" }, { "docid": "909f4bb76d769cc49277074a49f27ca9", "score": "0.4981577", "text": "function select_value_by_name($name,$value)\n\t{\n\t\tif ($this->call(\"SelectElement.SelectValueByName?name=\".urlencode($name).\"&value=\".urlencode($value))==\"true\")\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "c186221e0e1cc8e421259d236f0d0ee1", "score": "0.4944582", "text": "public function orderByProcessVariable(?string $variableName, ValueTypeInterface $valueType): TaskQueryInterface;", "title": "" }, { "docid": "991bf0e113db4261939c188e1b18669b", "score": "0.49168646", "text": "public function hasValue($name);", "title": "" }, { "docid": "2ded25cc48171ee92840fa28b9097e23", "score": "0.4910391", "text": "public function contains($value);", "title": "" }, { "docid": "2ded25cc48171ee92840fa28b9097e23", "score": "0.4910391", "text": "public function contains($value);", "title": "" }, { "docid": "e30de41bac4044d8d0826f3d87b775c7", "score": "0.4887975", "text": "function contains($value);", "title": "" }, { "docid": "f40617ae1233ba3cf51c83be3f3e396b", "score": "0.48652112", "text": "function TEST_WHERE($data)\n\t{\n\t\t$condition = ['name' => $data['name']];\n\t\t$test = $this->project->where($condition);\n\t\t$this->unit->run($test[0]->description, $data['description'], 'PROJECT_WHERE');\n\t}", "title": "" }, { "docid": "1448bcda509f6d53e5bd2d6d24187ac6", "score": "0.47779012", "text": "public function scopeName($query, $name){\n if(trim($name)!= \"\") {\n $query->where('nombre', 'LIKE', \"%$name%\");\n }\n }", "title": "" }, { "docid": "c97de5704c4ca5892eae2723e1f5d9de", "score": "0.47316682", "text": "public function scopeSearchName($query, $name)\n {\n return $query->where('name', 'like', $name);\n }", "title": "" }, { "docid": "4e9e30b3ed847340462523e58098a214", "score": "0.47276586", "text": "public function scopeName($query, $name)\n {\n if(trim($name) != \"\")\n {\n $query->where('atividades.nome','like' ,'%' . $name .'%' );\n }\n }", "title": "" }, { "docid": "7ca1490be1f7a8cb0a2a0405086a3e4d", "score": "0.47218287", "text": "public function scopeSearch($query, $name){\n\n \treturn ($query->where('name', 'LIKE', \"%$name%\"));\n\n }", "title": "" }, { "docid": "ff9c6984b84e4ae75d6af57a33f873df", "score": "0.47124505", "text": "function containsValue($item);", "title": "" }, { "docid": "6ac2ff2e77651218b72e7de4431ab5e2", "score": "0.47076574", "text": "public static function invariable( $value )\r\n {\r\n return in_array( strtolower( $value ), static::$invariable);\r\n }", "title": "" }, { "docid": "1f5e46b6c5b712b4a485b77eb5d5b6ea", "score": "0.4705181", "text": "public function taskNameNotLike(?string $nameNotLike): TaskQueryInterface;", "title": "" }, { "docid": "1c22f8d64261e3e5537f7cff38189442", "score": "0.47007746", "text": "public function scopeSearch(Builder $query, ?string $value = null): Builder\n {\n if (is_null($value)) {\n return $query;\n }\n\n return $query->where($query->qualifyColumn('name'), 'like', \"%{$value}%\");\n }", "title": "" }, { "docid": "60ff297f320cb47383bcfea8bc25df2d", "score": "0.47002107", "text": "function filter_has_var ($type, $variable_name) {}", "title": "" }, { "docid": "f756c0e1f94f60f3d9f96c1fe9377201", "score": "0.46945143", "text": "private function _getWherePRMValueIs($keyname, $value) {\r\n\t\treturn PRMStatistics::filter_array($this->records, $keyname, $value);\r\n\t}", "title": "" }, { "docid": "d050fb3d90684e6d52ee4076ab686e56", "score": "0.4691798", "text": "public function search($value=false, $limit=false)\n\t{\n\t\tif (empty($value)) return false;\n\n\t\t$auth = Nagios_auth_Model::instance();\n\t\t$auth_objects = $auth->get_authorized_hostgroups();\n\t\tif (empty($auth_objects))\n\t\t\treturn false;\n\t\t$obj_ids = array_keys($auth_objects);\n\n\t\t$obj_ids = implode(',', $obj_ids);\n\t\t$limit_str = sql::limit_parse($limit);\n\t\tif (is_array($value) && !empty($value)) {\n\t\t\t$query = false;\n\t\t\t$sql = false;\n\t\t\tforeach ($value as $val) {\n\t\t\t\t$val = '%'.$val.'%';\n\t\t\t\t$query[] = \"SELECT DISTINCT id FROM hostgroup \".\n\t\t\t\t\"WHERE (LCASE(hostgroup_name) LIKE LCASE(\".$this->db->escape($val).\") OR \".\n\t\t\t\t\"LCASE(alias) LIKE LCASE(\".$this->db->escape($val).\")) AND \".\n\t\t\t\t\"id IN (\".$obj_ids.\") \";\n\t\t\t}\n\t\t\tif (!empty($query)) {\n\t\t\t\t$sql = 'SELECT * FROM hostgroup WHERE id IN ('.implode(' UNION ', $query).') ORDER BY hostgroup_name '.$limit_str;\n\t\t\t}\n\t\t} else {\n\t\t\t$value = '%'.$value.'%';\n\t\t\t$sql = \"SELECT DISTINCT * FROM hostgroup \".\n\t\t\t\t\"WHERE (LCASE(hostgroup_name) LIKE LCASE(\".$this->db->escape($value).\") OR \".\n\t\t\t\t\"LCASE(alias) LIKE LCASE(\".$this->db->escape($value).\")) AND \".\n\t\t\t\t\"id IN (\".$obj_ids.\") ORDER BY hostgroup_name \".$limit_str;\n\t\t}\n\t\t$obj_info = $this->db->query($sql);\n\t\treturn $obj_info;\n\t}", "title": "" }, { "docid": "f81dd9270ac29d67bc2d2bcddbf9e3b7", "score": "0.4673118", "text": "public function scopeNombre($query,$name){\n\n // if(trim($name) != \"\") {\n\n $query->where('nom_tipo',\"LIKE\", \"%$name%\");\n\n // }\n }", "title": "" }, { "docid": "b1f207cecd066ebc9571ad8057b3d832", "score": "0.466412", "text": "public static function selected(string $name, $value): bool\n {\n if (app(SpladeCore::class)->isSpladeRequest()) {\n return false;\n }\n\n $instance = Arr::last(static::$instances);\n\n $data = data_get(\n $instance->guardedData() ?: $instance->defaultData(),\n static::dottedName($name)\n );\n\n return is_array($data)\n ? in_array($value, $data, true)\n : $data === $value;\n }", "title": "" }, { "docid": "01ce553b524de430cf9cc4afffcb3c09", "score": "0.46538502", "text": "function filter_match($filter,$name,$value)\n\t{\n $s=explode(\";\",$filter);\n\tforeach ($s as $condition)\n\t\t{\n\t\t$s=explode(\"=\",$condition);\n\t\t# Support for \"NOT\" matching. Return results only where the specified value or values are NOT set.\n\t\t$checkname=$s[0];$filter_not=false;\n\t\tif (substr($checkname,-1)==\"!\")\n\t\t\t{\n\t\t\t$filter_not=true;\n\t\t\t$checkname=substr($checkname,0,-1);# Strip off the exclamation mark.\n\t\t\t}\n\t\tif ($checkname==$name)\n\t\t\t{\n\t\t\t$checkvalues=$s[1];\n\t\t\t\n\t\t\t$s=explode(\"|\",strtoupper($checkvalues));\n\t\t\t$v=trim_array(explode(\",\",strtoupper($value)));\n\t\t\tforeach ($s as $checkvalue)\n\t\t\t\t{\n\t\t\t\tif (in_array($checkvalue,$v))\n\t\t\t\t\t{\n\t\t\t\t\treturn $filter_not ? 1 : 2;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\treturn $filter_not ? 2 : 1;\n\t\t\t}\n\t\t}\n\treturn 0;\n\t}", "title": "" }, { "docid": "ac87a22f685924eecbde59189cce61ee", "score": "0.4650901", "text": "public function getLikeSQL($name, $value)\n {\n if ($this->supports('case_insensitive')) {\n $name = 'UPPER(' . $name . ')';\n $value = strtoupper($value);\n }\n\n return $name . ' LIKE ' . $this->quoted($value);\n }", "title": "" }, { "docid": "a3649290523682d3dcdcdafeca0e83f7", "score": "0.46467176", "text": "public function testScopeByField()\n {\n $query = $this->getRepoMock()->createCurrentQueryBuilder('x')\n ->scopeByField('alias', 'some value')->getCurrentQueryBuilder()->getQuery();\n $this->assertContains('.alias = ?', $query->getSQL());\n $this->assertEquals(1, count($query->getParameters()));\n $this->assertEquals(['some value'], $this->paramValuesToArray($query->getParameters()));\n\n // it should make a like query if argument contains wildcard\n $query = $this->getRepoMock()->createCurrentQueryBuilder('x')\n ->scopeByField('alias', '*some value*')->getCurrentQueryBuilder()->getQuery();\n $this->assertContains('.alias LIKE ?', $query->getSQL());\n $this->assertEquals(1, count($query->getParameters()));\n $this->assertEquals(['%some value%'], $this->paramValuesToArray($query->getParameters()));\n }", "title": "" }, { "docid": "9ab0bbb95c35ccdbb64b43009e1cbdba", "score": "0.4645996", "text": "public function scopeName($query, $name)\n {\n \tif ($name==''){\n \t\treturn $query;\n \t}else{\n \t\treturn $query->where('permissions.name', 'like', '%'.$name.'%');\n \t}\n }", "title": "" }, { "docid": "883c77adba86f5259405d06d7249eaa9", "score": "0.4637196", "text": "public function scopeSearch(Builder $query, string $value): Builder\n {\n return $query->where(static function (Builder $query) use ($value): Builder {\n return $query->where($query->qualifyColumn('name'), 'like', \"{$value}%\")\n ->orWhere($query->qualifyColumn('email'), 'like', \"{$value}%\");\n });\n }", "title": "" }, { "docid": "c2c63b5483475704ad59d219078fa680", "score": "0.46313646", "text": "public function hasTask($name)\n {\n return array_key_exists($name, $this->taskList);\n }", "title": "" }, { "docid": "d8d64eeef0391f21821317bbd68d60b6", "score": "0.46162716", "text": "public function scopeSearchVideoSubCategoryTitle($query, $value)\n {\n return $query->orWhere('video_sub_category.title', 'LIKE', \"%$value%\");\n }", "title": "" }, { "docid": "b69d45e79148bc199d295d8c1e48ae4a", "score": "0.46040717", "text": "public function scopeNamePartial($query, $name)\n {\n if($name)\n {\n return $query->where('name', 'regexp', \"/$name/i\");\n }\n\n return $query;\n }", "title": "" }, { "docid": "caef1f0eda6ea45dc2fa550a0d82e2ad", "score": "0.45904616", "text": "public function taskName(?string $name): TaskQueryInterface;", "title": "" }, { "docid": "32153cda821ecdda432a9579713d7422", "score": "0.45895374", "text": "function getCustomWhereString($column, $value) {\n\t\tif (trim($value) <>'') $result =' AND '. $this->docTable.'.'.$column.' LIKE \"%'.$GLOBALS['TYPO3_DB']->quoteStr(trim($value), $this->docTable).'%\" ';\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "cda9eeaf432a33e1fdb8213392299432", "score": "0.45888028", "text": "public function employee($value) {\n return (!$this->requestAllData($value)) ? $this->builder->where('name', 'like', '%'.$value.'%')->orWhere('nik', 'like', '%'.$value.'%') : null;\n }", "title": "" }, { "docid": "84be040bd3a8457be74b055001adf14f", "score": "0.45782128", "text": "public function scopeName($query, $name) {\n// if (trim($name)) {\n return $query->where(\\DB::raw('CONCAT(Nombres,\" \",ApellidoPaterno,\" \",ApellidoMaterno,\" \")'),'LIKE', '%'.$name.'% LIMIT 10'); \n// }\n }", "title": "" }, { "docid": "df33ef0215cb31323f37a07814b013d4", "score": "0.45761266", "text": "function hasFilter($name, $value, $exclude = FALSE);", "title": "" }, { "docid": "a552f82d642e2224f09bdfb94a3858f9", "score": "0.45617568", "text": "public function scopeSearchVideoCategoryTitle($query, $value)\n {\n return $query->Where('video_category.title', 'LIKE', \"%$value%\");\n }", "title": "" }, { "docid": "86bb003c3ded02deb3b2545a1e8a96a0", "score": "0.45599127", "text": "public function where($key, $cond, $value);", "title": "" }, { "docid": "45695c6092f531ecd334bf25a8705bcb", "score": "0.45565534", "text": "public function scopeNombre($query,$nombre){\n return $query->where('name','LIKE','%'.$nombre.'%');\n }", "title": "" }, { "docid": "48e845ff604e85f79e80953b7ddeb423", "score": "0.455487", "text": "public function getFilterCondition($value,$operator){\n if ($operator == \"=\") {\n $value = \"'%\".$value.\"%'\";\n return \"`\".$this->name.\"` LIKE \".$value.\" \";\n }\n }", "title": "" }, { "docid": "e174012f2123d9e389f902ab0e698f5a", "score": "0.45429128", "text": "public function searchReserva($value){\n\t\t$sql = \"SELECT `IdReserva`, salas.NombreSala `IdMesa`, `CantidadMesas`, `CantidadSillas`, `HoraInicio`, `HoraFin`, detalleconferencia.Fecha,entes.Nombres\n\t\tFROM detalleconferencia , salas ,cuentatotal,entes\n\t\tWHERE detalleconferencia.IdSala = salas.IdSala AND detalleconferencia.IdCuenta = cuentatotal.IdCuenta AND cuentatotal.IdEnte = entes.IdEnte AND entes.Nombres LIKE ?\";\n\t\t$params = array(\"%$value%\");\n echo Database::getRows($sql, $params);\n return false;\n }", "title": "" }, { "docid": "585875fc66373cc4763726dac87e75e3", "score": "0.4539158", "text": "public function scopeSearchByName(Builder $query, $title)\n {\n return $query->whereRaw('match(name) against (? in boolean mode)', [$title]);\n }", "title": "" }, { "docid": "68cd923b75091303877ec33aa40d3bf3", "score": "0.45171797", "text": "function filter_table( $varName, $validValuesList, $tblName, $case_insensitive = false )\n {\n $value = false;\n \n switch ( $tblName )\n {\n case 'g' :\n {\n if ( isset( $_GET[$varName] ) )\n {\n $value = $_GET[$varName];\n }\n break;\n }\n case 'p' :\n {\n if ( isset( $_POST[$varName] ) )\n {\n $value = $_POST[$varName];\n }\n break;\n }\n case 'c' :\n {\n if ( isset( $_COOKIE[$varName] ) )\n {\n $value = $_COOKIE[$varName];\n }\n break;\n }\n case 'r' :\n {\n if ( isset( $_REQUEST[$varName] ) )\n {\n $value = $_REQUEST[$varName];\n }\n break;\n }\n default :\n {\n trigger_error( \"Wrong table in \"\n . __CLASS__ . \"->\" . __FUNCTION__\n , E_USER_ERROR\n );\n }\n } // end switch\n \n if ( $case_insensitive )\n {\n $value = strtolower( $value );\n }\n \n if ( in_array( $value, $validValuesList ) )\n {\n return $value;\n }\n else\n {\n return false;\n }\n }", "title": "" }, { "docid": "4c21223fe3ab5792a2ed4a5cc8db6f30", "score": "0.45044407", "text": "public function searchByParam(Request $request, TaskList $taskList, $param = 'info', $text)\n {\n return $taskList\n ->where($param,\n Operators::LIKE,\n '%'.$text.'%')\n ->get();\n }", "title": "" }, { "docid": "5794b6bc0a3a749e77b5c5d9aa7c4cad", "score": "0.4503354", "text": "function perform_filter($task) {\n\t$term = filter_input(INPUT_POST, $task);\n\tif ($term === NULL) {\n\t\t$term = filter_input(INPUT_GET, $task);\n\t\tif ($term === NULL) {\n $term = 'view';\n\t\t}\n\t}\nreturn $term;\n}", "title": "" }, { "docid": "a31c516b08e9aba63ac9395f7b4ad81b", "score": "0.44915083", "text": "public function taskDefinitionKeyIn(array $taskDefinitionKeys): TaskQueryInterface;", "title": "" }, { "docid": "c64a46573eea4216c2795344ec8b7131", "score": "0.44891074", "text": "public function isSetVar($name){\n\t\t$expr = \"return isset(\".$this->getNames($name).\");\";\n\t\treturn eval($expr);\n\t}", "title": "" }, { "docid": "853c782603c47b26ff4d94026e4315e5", "score": "0.4484207", "text": "public function taskNameNotEqual(?string $name): TaskQueryInterface;", "title": "" }, { "docid": "74c48732b4eda010af59f9317d4b639d", "score": "0.4481432", "text": "public function scopeName($query, $number){\n if(trim($number)!= \"\") {\n $query->where('numero', 'LIKE', \"%$number%\");\n }\n }", "title": "" }, { "docid": "ae8162be73f0e0ec79f1292b7821a7d6", "score": "0.44804284", "text": "function findtasksByString ( $parameters ){\n $query = $parameters [\" query \"];\n $this ->model -> apiResponse = $this ->model -> findtasksByString ( $query );\n $this -> slimApp -> response -> setStatus ( HTTPSTATUS_OK );\n }", "title": "" }, { "docid": "2d7b7dc36359b6d710c3ba2daeac44bf", "score": "0.4476172", "text": "public function scopeSearchVideoAdvertisementTitle($query, $value)\n {\n return $query->Where('title', 'LIKE', \"%$value%\");\n }", "title": "" }, { "docid": "7c3fc78eeecd24ecf0f6d4d916c14ef4", "score": "0.4475131", "text": "function check_consumers_makematch_access($itconsumer_id,$value,$search_id) {\r\n $qry = pg_query_params(\"select techmatcher.makevariablematch($1,$2,$3,$4)\",array($itconsumer_id,'zipcode',(string)$value,$search_id)) or die(pg_errormessage());\r\n //$qry = \"select techmatcher.makevariablematch(\".$itconsumer_id.\", 'zipcode', '\".$value.\"')\";\r\n //$result = pg_query($qry) or die(pg_errormessage());\r\n $rs = pg_fetch_assoc($qry);\r\n if($rs['makevariablematch'] == \"t\") {\r\n // Found\r\n return true;\r\n } else {\r\n // Not Found\r\n return false;\r\n }\r\n}", "title": "" }, { "docid": "1b8771e246b46397aa6f6c59a633ae46", "score": "0.44699103", "text": "function where($column, $andValue);", "title": "" }, { "docid": "4b26a04c695b0cc8c2bd87751c3ede63", "score": "0.44551474", "text": "public function where($key, $value);", "title": "" }, { "docid": "4b26a04c695b0cc8c2bd87751c3ede63", "score": "0.44551474", "text": "public function where($key, $value);", "title": "" }, { "docid": "36ec0b42308e3c6181f56d6d6f09d8f6", "score": "0.44498518", "text": "public function searchProjects($name);", "title": "" }, { "docid": "1b903a0d0b6065dfff507a19511f38d1", "score": "0.4446442", "text": "public function scopeSearchVideoBookTitle($query, $value)\n {\n return $query->orWhere('e_video_book.title', 'LIKE', \"%$value%\");\n }", "title": "" }, { "docid": "c9d3b27815883fda053cab12e5173faf", "score": "0.44443193", "text": "public function where($field, $value) {\r\n\t$this->parseQuery->where($field, $value);\r\n }", "title": "" }, { "docid": "c9d3b27815883fda053cab12e5173faf", "score": "0.44443193", "text": "public function where($field, $value) {\r\n\t$this->parseQuery->where($field, $value);\r\n }", "title": "" }, { "docid": "ddb363795dcfdda90a7fe92bf19657f2", "score": "0.4442875", "text": "function getRestaurantByName2($name){\n global $db;\n\n $expression = '%'.$name.'%';\n\n $stmt = $db->prepare(\"SELECT * FROM restaurant WHERE name LIKE ?\");\n $stmt->execute(array($expression));\n $result = $stmt->fetchAll();\n\n return $result;\n}", "title": "" }, { "docid": "5bc32988cb755a0af27c3eb7ee9b9dad", "score": "0.4439166", "text": "public function scopeSearchVideoBookStatus($query, $value)\n {\n return $query->orWhere('e_video_book.status', 'LIKE', \"%$value%\");\n }", "title": "" }, { "docid": "2ee10c63b0195f00b49a032c8b3ff559", "score": "0.442269", "text": "public function scopeFindByName($query, $name)\n {\n $name = strtolower($name);\n return $query->where(DB::raw(\"CONCAT(`first_name`, ' ', `last_name`)\"), 'LIKE', '%' . $name . '%')->orWhere(\"email\",\"like\",\"%$name%\");\n }", "title": "" }, { "docid": "7924869bf7711aa95a7f658095c93974", "score": "0.44066358", "text": "public function findByName($name,$value, $filterOrder = NULL, $order = 'DESC'){\n $sql = 'SELECT t.* \n FROM '._DB_PREFIX_.$this->nameTable.' as t\n WHERE t.'.$name.'=:name '.(isset($filterOrder)?'ORDER BY '.$filterOrder.' '.$order:''); \n $req = $this->dao->prepare($sql);\n $req->bindValue(':name', $value);\n $req->execute();\n return $this->fecthAssoc_data($req, $this->name);\n }", "title": "" }, { "docid": "70dac85a30e9ebc5bf6c4f4fc314e7c4", "score": "0.44054592", "text": "public function findBy(string $field, $value);", "title": "" }, { "docid": "7248cff6daa278976e7c7dee2ff8aaec", "score": "0.43991578", "text": "protected function search($query, $name, $value, $regex = false, $boolean = 'or')\n {\n $name = $this->qualifyColumn($query, $this->resolveJsonColumn($name));\n\n if ($regex) {\n $query->where($name, 'REGEXP', $value, $boolean);\n } else {\n $query->where($name, 'LIKE', \"%{$value}%\", $boolean);\n }\n }", "title": "" }, { "docid": "e184ba884a31562c0a229223f5483252", "score": "0.4389961", "text": "public function findByValue($node_value)\n\t{\n\t\treturn array_first($this->getNodes(), function($i, NodeInterface $node) use ($node_value)\n\t\t{\n\t\t\treturn $node->getValue() == $node_value;\n\t\t});\n\t}", "title": "" }, { "docid": "d3e2779b855ccf04a5ac67cb77dee1fd", "score": "0.43770245", "text": "public function scopeSearchVideoAdvertisementStatus($query, $value)\n {\n return $query->orWhere('status', 'LIKE', \"%$value%\");\n }", "title": "" }, { "docid": "9c5f432e07a9eff08ba2f648e3bda2e5", "score": "0.43769693", "text": "public function scopeNameOfTypeIn($query, array $arrayValues)\n\t{\n\t\treturn $query->whereHas('inventory', function($query) use ($arrayValues) {\n\t\t\t$query->whereHas('type', function($query) use ($arrayValues) {\n\t\t\t\t$query->nameIn($arrayValues);\n\t\t\t});\n\t\t});\n\t}", "title": "" }, { "docid": "ca078aed9fa25ccfe33f9a25a3be44cd", "score": "0.4376588", "text": "public function scopeEnabled($query, $value = 1)\n {\n return $query->where('enabled', $value);\n }", "title": "" }, { "docid": "c98c3b38217637b44c38540148d9636a", "score": "0.43725953", "text": "public function exists($key , $value){\n $where[$key] = $value;\n return $this->where($where)->find();\n }", "title": "" }, { "docid": "f188a7f55f25fcdc6978586a3d21bb2c", "score": "0.4360152", "text": "function search($value, $key = 'url') {\n $value = addslashes($value);\n $key = addslashes($key);\n /**\n * $arr =array(\n * \tlimit=>1,25,\n * order=>name,-age,mms // -: DESC\n * fields=name,age,email or * //default * if empty\n * search=>array(array(name=\"peter\",id<12,syatus is not_null, ql <> 121),\n * \t\t\t\tarray(email like \"peter%\")\n * \t\t\t\t)\n * \t\t\t\t* inside array is AND condition\n * \t\t\t\t*between array is OR condition\n * or search=>name=\"peter\",id<12,status is not_null, ql <> 121\n * \tstatus=>0,1,2,3, *=all//default =1,\n * \tcount=1 ; return total counts\n * )\n */\n $arr = array('search' => array(\" {$key} like '%{$value}%'\"), 'limit' => 12,);\n $rs = xpTable::load('api')->lists($arr);\n return $rs;\n }", "title": "" }, { "docid": "444c744d644f2b1211f95ce4c85005ae", "score": "0.43598396", "text": "public function whereValueIs($value, $varName = null, Manager $manager = null)\n {\n if ($manager === null) {\n $manager = Manager::instance();\n }\n\n $validator = new ValueValidator($manager, $value, false);\n\n if ($varName) {\n $validator->alias((string) $varName);\n }\n\n return $this->applyToValidator($validator);\n }", "title": "" }, { "docid": "245944c89f70b3cf5af0d9dc0020d1a9", "score": "0.43502665", "text": "function create_where_statement_for_all_hosts($totalAgentsToProcess) {\n\n $whereField = \"\";\n foreach ($totalAgentsToProcess as $value) {\n $value = trim ($value);\n if ($value == \"\") {\n continue;\n }\n\n $value = str_replace(\"___\", \"\\M\", $value);\n $valueArray = explode (\"\\M\", $value);\n\n $hostName = $valueArray[0];\n $portNumber = $valueArray[1];\n $hostName = trim ($hostName, \"'\");\n if ($hostName == \"\") {\n continue;\n }\n if ($whereField != \"\") {\n $whereField = $whereField . \" OR (display_name = '$hostName' AND port = '$portNumber') \\n\";\n }\n else {\n $whereField = \"((display_name = '$hostName' AND port = '$portNumber')\";\n }\n\n }\n if ($whereField != \"\") {\n $whereField = $whereField . \")\";\n }\n return $whereField;\n}", "title": "" } ]
dc74eae641cbe5fe20897be7100ffd43
Constructor method for SupplyOrderRequest
[ { "docid": "dcc1bbbf61beb1ade9b197b8f5d91787", "score": "0.0", "text": "public function __construct(?string $beginModificationDate = null, ?string $endModificationDate = null, ?int $pageNumber = null, ?int $pageSize = null, ?\\SengentoBV\\CdiscountMarketplaceSdk\\Arrays\\CdiscountArrayOfstring $supplyOrderNumberList = null)\n {\n $this\n ->setBeginModificationDate($beginModificationDate)\n ->setEndModificationDate($endModificationDate)\n ->setPageNumber($pageNumber)\n ->setPageSize($pageSize)\n ->setSupplyOrderNumberList($supplyOrderNumberList);\n }", "title": "" } ]
[ { "docid": "34d1be31903633a511fcfc2dea3391b9", "score": "0.67319894", "text": "public function __construct(Order $order)\n {\n //\n $this->order = $order;\n }", "title": "" }, { "docid": "bc2ec2cf2c12ad9e5500c685ebdcbeae", "score": "0.66974616", "text": "public function __construct(Order $order)\n {\n $this->order = $order;\n }", "title": "" }, { "docid": "ba36820556881dca74841d079587d67f", "score": "0.6590715", "text": "public function __construct($orderNo = null)\n {\n $this\n ->setOrderNo($orderNo);\n }", "title": "" }, { "docid": "4a0c0853b86410edc128e9945de05ed2", "score": "0.65835536", "text": "protected function _construct()\n {\n $this->_init(self::MODEL_ORDER, self::RESOURCE_ORDER);\n }", "title": "" }, { "docid": "19f5f11eb6638bc1c6599a28cffa5f1f", "score": "0.6545704", "text": "public function __construct(Order $order)\r\n {\r\n $this->order = $order;\r\n }", "title": "" }, { "docid": "f1b4c7940163d6f947435024f3e1e5e8", "score": "0.6527583", "text": "public function __construct() {\r\n $this->_input = new PartnerAPIMessageOrderSNICertificate();\r\n $this->_output = new PartnerAPIMessageOrderSNICertificateResponse();\r\n }", "title": "" }, { "docid": "5052bce7ee4ea0b229f200caa7ad1ac8", "score": "0.6518407", "text": "public function __construct($orderData)\n {\n $this->orderData = $orderData;\n }", "title": "" }, { "docid": "a4306af7e113fab44ed07fa2d6b349af", "score": "0.6460311", "text": "private function __construct(Order $order){\n\t\t$this->order = $order;\n\t}", "title": "" }, { "docid": "45a33c8601e69b07036d09bb52769eb3", "score": "0.6447242", "text": "public function __construct($order_id)\n {\n $this->_orderID = $order_id;\n }", "title": "" }, { "docid": "a1836fb997abe8794cbefb2296b91c54", "score": "0.64384323", "text": "public function __construct(Order $order)\n {\n $this->order = $order;\n }", "title": "" }, { "docid": "a1836fb997abe8794cbefb2296b91c54", "score": "0.64384323", "text": "public function __construct(Order $order)\n {\n $this->order = $order;\n }", "title": "" }, { "docid": "a1836fb997abe8794cbefb2296b91c54", "score": "0.64384323", "text": "public function __construct(Order $order)\n {\n $this->order = $order;\n }", "title": "" }, { "docid": "a1836fb997abe8794cbefb2296b91c54", "score": "0.64384323", "text": "public function __construct(Order $order)\n {\n $this->order = $order;\n }", "title": "" }, { "docid": "a1836fb997abe8794cbefb2296b91c54", "score": "0.64384323", "text": "public function __construct(Order $order)\n {\n $this->order = $order;\n }", "title": "" }, { "docid": "a1836fb997abe8794cbefb2296b91c54", "score": "0.64384323", "text": "public function __construct(Order $order)\n {\n $this->order = $order;\n }", "title": "" }, { "docid": "a1836fb997abe8794cbefb2296b91c54", "score": "0.64384323", "text": "public function __construct(Order $order)\n {\n $this->order = $order;\n }", "title": "" }, { "docid": "a1836fb997abe8794cbefb2296b91c54", "score": "0.64384323", "text": "public function __construct(Order $order)\n {\n $this->order = $order;\n }", "title": "" }, { "docid": "a1836fb997abe8794cbefb2296b91c54", "score": "0.64384323", "text": "public function __construct(Order $order)\n {\n $this->order = $order;\n }", "title": "" }, { "docid": "a1836fb997abe8794cbefb2296b91c54", "score": "0.64384323", "text": "public function __construct(Order $order)\n {\n $this->order = $order;\n }", "title": "" }, { "docid": "a1836fb997abe8794cbefb2296b91c54", "score": "0.64384323", "text": "public function __construct(Order $order)\n {\n $this->order = $order;\n }", "title": "" }, { "docid": "a1836fb997abe8794cbefb2296b91c54", "score": "0.64384323", "text": "public function __construct(Order $order)\n {\n $this->order = $order;\n }", "title": "" }, { "docid": "a1836fb997abe8794cbefb2296b91c54", "score": "0.64384323", "text": "public function __construct(Order $order)\n {\n $this->order = $order;\n }", "title": "" }, { "docid": "a1836fb997abe8794cbefb2296b91c54", "score": "0.64384323", "text": "public function __construct(Order $order)\n {\n $this->order = $order;\n }", "title": "" }, { "docid": "0ce9fc4b17b0c2411f8bc742f64977d5", "score": "0.64139146", "text": "public function __construct()\n {\n parent::__construct();\n\n /**\n * Check if requested producer account exist, or if user has permission.\n */\n $this->middleware(function ($request, $next) {\n $user = Auth::user();\n $orderId = $request->route('orderId');\n\n if (!$orderId) {\n return $next($request);\n }\n\n $orderItemId = $request->route('orderItemId');\n $orderItem = $order->item($orderItemId);\n if (!$orderItem) {\n $request->session()->flash('error', [trans('admin/messages.request_no_order_item')]);\n return redirect('/account/user');\n }\n\n return $next($request);\n });\n }", "title": "" }, { "docid": "a1f3dfd4a5599184296ca023b6599936", "score": "0.64111745", "text": "public function createOrder()\n {\n $this->apiOrder = new \\AffiliconApiClient\\Models\\Order();\n\n $this->addItnsCallback();\n\n $this->addBillingData();\n\n $this->addShippingData();\n\n $this->addBasicAddressData();\n\n $this->checkoutUrl = $this->getCheckoutUrl();\n }", "title": "" }, { "docid": "5a20630e74d84c370acee9e22063ebb5", "score": "0.6403961", "text": "public function __construct(Request $request, Order $order = null)\n {\n $this->request = $request;\n $this->order = $order ?? new Order(['user_id' => $this->request->user()->id]);\n }", "title": "" }, { "docid": "5b271c1502a836eed65650a86d126990", "score": "0.6397695", "text": "public function __construct($order)\n {\n $this->order = $order;\n }", "title": "" }, { "docid": "5b271c1502a836eed65650a86d126990", "score": "0.6397695", "text": "public function __construct($order)\n {\n $this->order = $order;\n }", "title": "" }, { "docid": "5b271c1502a836eed65650a86d126990", "score": "0.6397695", "text": "public function __construct($order)\n {\n $this->order = $order;\n }", "title": "" }, { "docid": "5b271c1502a836eed65650a86d126990", "score": "0.6397695", "text": "public function __construct($order)\n {\n $this->order = $order;\n }", "title": "" }, { "docid": "5b271c1502a836eed65650a86d126990", "score": "0.6397695", "text": "public function __construct($order)\n {\n $this->order = $order;\n }", "title": "" }, { "docid": "5b271c1502a836eed65650a86d126990", "score": "0.6397695", "text": "public function __construct($order)\n {\n $this->order = $order;\n }", "title": "" }, { "docid": "59aa2c30461563c29a2ad40e30565862", "score": "0.6393517", "text": "public function __construct($_customer_group_id = NULL,$_website = NULL,$_qty = NULL,$_price = NULL)\r\n\t{\r\n\t\tparent::__construct(array('customer_group_id'=>$_customer_group_id,'website'=>$_website,'qty'=>$_qty,'price'=>$_price));\r\n\t}", "title": "" }, { "docid": "8d6a65fcc34374260f88cf754f685b53", "score": "0.6393373", "text": "public function __construct($order,$uuid)\n {\n\n $this->order = $order;\n $this->uuid = $uuid;\n \n }", "title": "" }, { "docid": "1d82b9152fe32a67b02c0d11d6dc7ea0", "score": "0.63591355", "text": "public function __construct($order_id)\n {\n $this->order_id = $order_id;\n }", "title": "" }, { "docid": "9e13b21267b85b6acb572ab7b20a3336", "score": "0.6347389", "text": "public function __construct(XmlShiporder $xmlShiporder)\n {\n $this->xmlShiporder = $xmlShiporder;\n }", "title": "" }, { "docid": "7d5049d30cd047a23e3f268d3089de94", "score": "0.632313", "text": "public function __construct($_setExpressCheckoutRequest = NULL)\r\n\t{\r\n\t\tparent::__construct(array('SetExpressCheckoutRequest'=>$_setExpressCheckoutRequest));\r\n\t}", "title": "" }, { "docid": "36fd1c3cdbf1d04c15a2ec451c5842c4", "score": "0.6315015", "text": "public function __construct($order,$products)\n {\n $this->order = $order;\n $this->products = $products;\n }", "title": "" }, { "docid": "3bc1d2130761f12b727596e7cf9bdd20", "score": "0.62839764", "text": "public function __construct(array $req) {\n $this->req = $req;\n }", "title": "" }, { "docid": "7633a72b694174199d7ee5ed9e6c61c7", "score": "0.62695897", "text": "public function __construct($orders)\n {\n $this->orders=$orders;\n }", "title": "" }, { "docid": "e89e61206cfbaa7beef97c8a8570c3b3", "score": "0.6244526", "text": "public function __construct()\n\t\t{\n\t\t\tparent::__construct(DIDWW_URL_WS,DIDWW_USER,DIDWW_PASS);\n\t\t\t$this->_operacion=\"didww_ordercreate\";\n\t\t\t$this->Param=new paramDIDWWOrderCreate();\n\t\t\t$this->Response=new responseDIDWWOrderCreate();\n\n\t\t}", "title": "" }, { "docid": "7e52c52e1a8e541e4e13152a2c72feb3", "score": "0.6232152", "text": "public function __construct(StoreRequest $store_request)\n {\n $this->store_request = $store_request;\n }", "title": "" }, { "docid": "3efe208b798a9ce6a63764e4ae99dd39", "score": "0.6231427", "text": "public function __construct() {\n //Make sure the default required settings are set\n $this->setOrderType()->setPaymentMethod()->setLanguage();\n }", "title": "" }, { "docid": "b18806f0eb6f34399d4cd0e767826b22", "score": "0.62230366", "text": "public function __construct(array $req)\n {\n $this->req = $req;\n }", "title": "" }, { "docid": "a25cf1c847e6a762aeae83e52348c855", "score": "0.62014985", "text": "public function __construct(?array $supplyOrderLine = null)\n {\n $this\n ->setSupplyOrderLine($supplyOrderLine);\n }", "title": "" }, { "docid": "44587d79316c9a4bb82a73ccc2f7ce60", "score": "0.61637896", "text": "public function __construct( $order ) {\n\t\tparent::__construct();\n\n\t\t$this->order = $order;\n\t}", "title": "" }, { "docid": "2f409f645c3e17f00676d80239ba8d95", "score": "0.6162774", "text": "public function __construct(ProductService $productService, Request $request)\n {\n $this->service = $productService;\n $this->request = $request;\n }", "title": "" }, { "docid": "f7043f05ade0b90747390588e224187b", "score": "0.6161763", "text": "public function __construct( $transaction_request ) {\n\t\tparent::__construct( self::TYPE );\n\n\t\t$this->transaction_request = $transaction_request;\n\t}", "title": "" }, { "docid": "68c03990d879477c3dbfa1a13d9a3b5a", "score": "0.6147922", "text": "public function __construct(array $req) {\n $this->req = $req;\n }", "title": "" }, { "docid": "68c03990d879477c3dbfa1a13d9a3b5a", "score": "0.6147922", "text": "public function __construct(array $req) {\n $this->req = $req;\n }", "title": "" }, { "docid": "68c03990d879477c3dbfa1a13d9a3b5a", "score": "0.6147922", "text": "public function __construct(array $req) {\n $this->req = $req;\n }", "title": "" }, { "docid": "0db239b1995150c0d3b97eaffb15ea01", "score": "0.6146554", "text": "public function __construct(RequestExecutor $requestExecutor){\n parent::__construct();\n $this->RequestExecutor = $requestExecutor;\n }", "title": "" }, { "docid": "63f2b6e6559b17a11c6c95890e3f70c3", "score": "0.61447006", "text": "function __construct($productId=NULL, $orderId=NULL, $status=NULL) {\n\t\tif (func_num_args() > 0) {\n\t\t\t$this->productId = $productId;\n\t\t\t$this->orderId = $orderId;\n\t\t\t$this->status = $status;\n\t\t}\n\t}", "title": "" }, { "docid": "c53dca0e0b5f10c6a3ddf24bf7bb4e7e", "score": "0.6138684", "text": "public function __construct($receiptNumber,$sparePartId,$quantity,$description,$price, $amount)\n {\n global $db_conn;\n $this->connect = $db_conn;\n $this->receiptNumber = $receiptNumber;\n $this->sparePartId = $sparePartId;\n $this->quantity = $quantity;\n $this->description = $description;\n $this->price = $price;\n $this->amount = $amount;\n\n }", "title": "" }, { "docid": "af79be68fd32c80187cee96f5e90f6c6", "score": "0.6135271", "text": "public function __construct($order_id,$product_info,$buyer_name,$buyer_email,$buyer_mobile,$buyer_TRN,$buyer_VAT,$total,$date,$shipping_info,$coupon_code,$payment_status='',$cart='',$seller,$email_template)\n {\n $this->order_id=$order_id;\n $this->product_info=$product_info;\n $this->buyer_name=$buyer_name;\n $this->buyer_email=$buyer_email;\n $this->buyer_mobile=$buyer_mobile;\n $this->buyer_TRN=$buyer_TRN;\n $this->buyer_VAT=$buyer_VAT;\n $this->total=$total;\n $this->date=$date;\n $this->shipping_info=$shipping_info;\n $this->cart=$cart;\n $this->coupon_code=$coupon_code;\n $this->payment_status=$payment_status;\n $this->seller=$seller;\n $this->email_template=$email_template;\n $this->file=$order_id.'.pdf';\n\n\n }", "title": "" }, { "docid": "1db217793aa5c03f6a693734c7c78350", "score": "0.61331403", "text": "public function __construct($product, $quantity, $required)\n {\n $this->product = $product;\n $this->quantity = $quantity;\n $this->required = $required;\n }", "title": "" }, { "docid": "3012e9cd63c60249a7597d7acbd7a7f8", "score": "0.61195767", "text": "public function __construct(array $req)\n {\n $this->req = $req;\n }", "title": "" }, { "docid": "cd2bc38c605d99be24183bd4939efbc9", "score": "0.6118271", "text": "private function _construct()\n {\n\t\tif(\\Cart2Quote\\License\\Model\\License::getInstance()->isValid()) {\n\t\t\t$this->_init('quotation_quote', 'quote_id');\n\t\t}\n\t}", "title": "" }, { "docid": "b0ea9fe44c252aeec43e6cb44466929d", "score": "0.6105089", "text": "public function __construct()\n\t{\n\t\tOrderEntity::setModel(new OrderModel());\n\t}", "title": "" }, { "docid": "1ca4ccda4932baadf20deabeedc572e3", "score": "0.61049145", "text": "public function __construct($order, CartService $cartService)\n {\n $this->cartService = $cartService;\n $this->order = $order;\n }", "title": "" }, { "docid": "197a41d3652c8bc5f30c0324dbcd274a", "score": "0.6072677", "text": "public function _construct()\n {\n $this->_init('preorder/preorder', 'preorder_id');\n }", "title": "" }, { "docid": "96c8aa778f8274b8b0edfef9d3a4e2ac", "score": "0.6064882", "text": "public function __construct($order, $product, $user)\n {\n $this->order = $order;\n $this->product = $product;\n $this->user = $user;\n }", "title": "" }, { "docid": "ba2ca110b162b4917d939a1de7ef0c8c", "score": "0.60607433", "text": "public function __construct($orderResult = null)\n {\n $this\n ->setOrderResult($orderResult);\n }", "title": "" }, { "docid": "7272d718abae5aa1d3280aa3d5f5389e", "score": "0.6053267", "text": "public function __construct() {\n\t\t$this->_request = new Request();\n\t}", "title": "" }, { "docid": "55808411bf2c668e880d760ef7a13213", "score": "0.60501415", "text": "public function __construct()\r\n\t{\r\n\t\tparent::__construct();\r\n\t\tinclude_once(COMMONPATH . 'ebay_direct_pricing_calculator.php');\r\n\t\t$this->add_ship_mode('direct', new Ebay_direct_pricing_calculator());\r\n\t}", "title": "" }, { "docid": "551f4c943c57641addbbf21aa04b7a47", "score": "0.6041504", "text": "public function testCanBeConstructed(): OrderBookRequest\n {\n $request = new OrderBookRequest(CurrencyPair::BTCUSD);\n $this->assertInstanceOf('Bitstamp\\\\PublicApi\\\\Requests\\\\OrderBookRequest', $request);\n\n return $request;\n }", "title": "" }, { "docid": "c679af53048bcc83a32d3764a7138598", "score": "0.6039603", "text": "public function _construct()\n {\n parent::_construct();\n $this->_init('sitewards_deliverydate/quote');\n }", "title": "" }, { "docid": "488c1cd0f9e92183aef4af5b76f5d9af", "score": "0.601892", "text": "public function __construct(Order $order, OrderService $orderService)\n {\n $this->order = $order;\n $this->orderService = $orderService;\n }", "title": "" }, { "docid": "e1ebc214d6ace896f9b80a2dd0cc2d7d", "score": "0.60143864", "text": "public function __construct(array $request)\r\n\t{\r\n\t\t$this->request = $request;\r\n\t}", "title": "" }, { "docid": "b8a35f6d1d8c6be4a0872db4fedd3d37", "score": "0.6014048", "text": "public function __construct()\n\t{\n\t\t$this->setTitle('Order Email Management');\n\t\t$this->setDescription('Order Email Management');\n\n\t\t$this->init('order');\n\t}", "title": "" }, { "docid": "ee3b51499939b417402b2c719cf17888", "score": "0.60106516", "text": "public function __construct($request_inputs = array())\n {\n if(!empty($request_inputs))\n {\n $this->request_inputs = $request_inputs;\n }\n }", "title": "" }, { "docid": "f58bc74ee7556ce15877a065bd19159f", "score": "0.6008971", "text": "public function __construct($sales_order)\n {\n $this->shipping_method_name = $sales_order->line_items->first()->shipping_method->name;\n $this->sales_order = $sales_order;\n }", "title": "" }, { "docid": "3ff62ef1c86ce7e0a3d9d7e715c50c37", "score": "0.60083336", "text": "public function __construct($paymentAction = null, $token = null, $payerID = null, $orderURL = null, $msgSubID = null, array $paymentDetails = array(), $promoOverrideFlag = null, $promoCode = null, \\PayPal\\StructType\\EnhancedDataType $enhancedData = null, $softDescriptor = null, \\PayPal\\StructType\\UserSelectedOptionType $userSelectedOptions = null, $giftMessage = null, $giftReceiptEnable = null, $giftWrapName = null, \\PayPal\\StructType\\BasicAmountType $giftWrapAmount = null, $buyerMarketingEmail = null, $surveyQuestion = null, array $surveyChoiceSelected = array(), $buttonSource = null, $skipBACreation = null, $useSessionPaymentDetails = null, array $coupledBuckets = array(), $clientID = null, $productLine = null)\n {\n $this\n ->setPaymentAction($paymentAction)\n ->setToken($token)\n ->setPayerID($payerID)\n ->setOrderURL($orderURL)\n ->setMsgSubID($msgSubID)\n ->setPaymentDetails($paymentDetails)\n ->setPromoOverrideFlag($promoOverrideFlag)\n ->setPromoCode($promoCode)\n ->setEnhancedData($enhancedData)\n ->setSoftDescriptor($softDescriptor)\n ->setUserSelectedOptions($userSelectedOptions)\n ->setGiftMessage($giftMessage)\n ->setGiftReceiptEnable($giftReceiptEnable)\n ->setGiftWrapName($giftWrapName)\n ->setGiftWrapAmount($giftWrapAmount)\n ->setBuyerMarketingEmail($buyerMarketingEmail)\n ->setSurveyQuestion($surveyQuestion)\n ->setSurveyChoiceSelected($surveyChoiceSelected)\n ->setButtonSource($buttonSource)\n ->setSkipBACreation($skipBACreation)\n ->setUseSessionPaymentDetails($useSessionPaymentDetails)\n ->setCoupledBuckets($coupledBuckets)\n ->setClientID($clientID)\n ->setProductLine($productLine);\n }", "title": "" }, { "docid": "045da1e15c5472a0c2de7b2c2fb2ab60", "score": "0.59913963", "text": "protected function _construct(): void\n {\n $this->_init('LeviathanStudios\\Scheduler\\Model\\ResourceModel\\EventRequest');\n }", "title": "" }, { "docid": "afa199408ebdd4662062928794816325", "score": "0.5989713", "text": "public function __construct($request,$user_id,$flag = self::ADD_CART)\n {\n $this->request = $request;\n $this->user_id=$user_id;\n $this->user = User::find($user_id);\n $this->clientId = $request['current']['person_id'];\n $this->dealId = $this->request['current']['id'];\n $this->flag=$flag;\n\n }", "title": "" }, { "docid": "f8537d96765c6fa4ced46b66ec0f996f", "score": "0.5983084", "text": "public function __construct(){\n $this->cst_id = \"donggle2\";\n $this->custKey = \"122862243e51b6c01663125a5fd7b94c1ff26946a9aea1faa732995d52563309\";\n $this->payple_curl = \"https://cpay.payple.kr\";\n $this->PCD_REFUND_KEY = \"06d3ef3ed1b65bd8f7b747c773b917e40506f2664d0264a2bf6f6f721dd84daf\";\n //$this->cst_id = \"test\";\n //$this->custKey = \"abcd1234567890\";\n //$this->payple_curl = \"https://testcpay.payple.kr\";\n //$this->PCD_REFUND_KEY = \"a41ce010ede9fcbfb3be86b24858806596a9db68b79d138b147c3e563e1829a0\";\n $this->referer = env('APP_URL');\n }", "title": "" }, { "docid": "bc5f56e42accf4ec9b3d193669f33a06", "score": "0.5977323", "text": "function __construct($orders_id, $method, $suppliers_id, $options='', $dimensions='') { \n\n\t\t// # To-Do: Add CONSTANT checks and set defaults if not set\n\n\t\t$this->logfile = '/home/zwave/logs/upsxml.log';\t\n\t\t$this->merchantEmail = STORE_OWNER_EMAIL_ADDRESS;\n\n \t$this->access_key = MODULE_SHIPPING_UPSXML_RATES_ACCESS_KEY;\n\t\t$this->access_username = MODULE_SHIPPING_UPSXML_RATES_USERNAME;\n\t\t$this->access_password = MODULE_SHIPPING_UPSXML_RATES_PASSWORD;\n\n\t\t// # To-do: Grab warehouse location from db and assign appropriate UPS account number and shipping location\n\t\t$supplier_info_query = tep_db_query(\"SELECT * FROM suppliers s WHERE s.suppliers_id = '\" . $suppliers_id . \"'\");\n\t\t$supplier_info = tep_db_fetch_array($supplier_info_query);\n\n\t\t// # Alternative the Shipper Account number depending on shipping warehouse\n\t\tif(is_null($supplier_info['suppliers_shipper_account']) || $supplier_info['suppliers_shipper_account'] == '') {\n\t\t\t$this->access_account_number = MODULE_SHIPPING_UPSXML_RATES_UPS_ACCOUNT_NUMBER;\n\t\t} elseif((!is_null($supplier_info['suppliers_shipper_account']) || $supplier_info['suppliers_shipper_account'] != '') && $supplier_info['suppliers_default'] == '1') { \n\t\t\t$this->access_account_number = $supplier_info['suppliers_shipper_account'];\n\t\t} else {\n\t\t$this->access_account_number = MODULE_SHIPPING_UPSXML_RATES_UPS_ACCOUNT_NUMBER;\n\t\t}\n\n\t\t$this->shipperInfo_address1 = $supplier_info['suppliers_address1'];\n\t\t$this->shipperInfo_address2 = ($supplier_info['suppliers_address2']) ? \"\\n\" .'<AddressLine2>'.$supplier_info['suppliers_address2'].'</AddressLine2>' : '';\n $this->shipperInfo_address3 = ($supplier_info['suppliers_address3']) ? \"\\n\" . '<AddressLine3>'.$supplier_info['suppliers_address3'].'</AddressLine3>' : '';\n\n\t\t$this->shipperInfo_city = ($supplier_info['suppliers_city']) ? $supplier_info['suppliers_city'] : MODULE_SHIPPING_UPSXML_RATES_CITY;\n\t\t$this->shipperInfo_zip = ($supplier_info['suppliers_zip']) ? $supplier_info['suppliers_zip'] : MODULE_SHIPPING_UPSXML_RATES_POSTALCODE;\n\t\t$this->shipperInfo_state = ($supplier_info['suppliers_state']) ? $supplier_info['suppliers_state'] : MODULE_SHIPPING_UPSXML_RATES_STATEPROV;\n\t\t$this->shipperInfo_country = ($supplier_info['suppliers_country']) ? $supplier_info['suppliers_country'] : MODULE_SHIPPING_UPSXML_RATES_COUNTRY;\n\n\t\t$this->shipperInfo_phone = ($supplier_info['suppliers_phone']) ? $supplier_info['suppliers_phone'] : '';\n\t\t$this->tax_id = ($supplier_info['suppliers_taxid']) ? $supplier_info['suppliers_taxid'] : '';\n\t\t\n\n\t\t// # Grab the customer order details from the orders table based on the orders_id passed.\n\t\t$order_query = tep_db_query(\"SELECT o.customers_name, \n\t\t\t\t\t\t\t\t\t\t\to.customers_company,\n\t\t\t\t\t\t\t\t\t\t\to.delivery_name,\n\t\t\t\t\t\t\t\t\t\t\to.delivery_street_address,\n\t\t\t\t\t\t\t\t\t\t\to.delivery_suburb,\n\t\t\t\t\t\t\t\t\t\t\to.delivery_city,\n\t\t\t\t\t\t\t\t\t\t\to.delivery_postcode,\n\t\t\t\t\t\t\t\t\t\t\to.delivery_state,\n\t\t\t\t\t\t\t\t\t\t\to.delivery_country,\n\t\t\t\t\t\t\t\t\t\t\to.customers_telephone,\n\t\t\t\t\t\t\t\t\t\t\to.shipping_method,\n\t\t\t\t\t\t\t\t\t\t\to.customers_email_address,\n\t\t\t\t\t\t\t\t\t\t\to.comments,\n\t\t\t\t\t\t\t\t\t\t\tot.value AS order_total\n\t\t\t\t\t\t\t\t\t FROM \" . TABLE_ORDERS . \" o\n\t\t\t\t\t\t\t\t\t LEFT JOIN \" . TABLE_ORDERS_TOTAL . \" ot ON (ot.orders_id = o.orders_id AND ot.class = 'ot_total')\n\t\t\t\t\t\t\t\t\t WHERE o.orders_id = '\" . $orders_id . \"'\n\t\t\t\t\t\t\t\t\t \");\n\n\t\t$order = tep_db_fetch_array($order_query);\n\n\t\t$this->customer_name = str_replace('&', ' ', $order['customers_name']);\n\t\t$this->delivery_name = str_replace('&', ' ', $order['delivery_name']);\n\t\t$this->company = ($order['customers_company'] ? str_replace('&', ' ', $order['customers_company']) : '-');\n\t\t$this->street_address = str_replace('&', ' ', $order['delivery_street_address']);\n\t\t$this->street_address2 = ($order['delivery_suburb']) ? \"\\n\" .'<AddressLine2>'.str_replace('&', ' ', $order['delivery_suburb']).'</AddressLine2>' : '';\n\n\t\t$this->city = $order['delivery_city'];\n\n\t\t// # Perform country query to grab country code (full name not accepted)\n\t\t$country_query = tep_db_query(\"SELECT countries_iso_code_2 AS country_code FROM \" . TABLE_COUNTRIES . \" WHERE countries_name LIKE '\".$order['delivery_country'].\"' LIMIT 1\");\n\t\t$country = tep_db_fetch_array($country_query);\n\t\t$this->country = $country['country_code'];\n\n\t\t// # Perform state query to grab state code (full name not accepted)\n\t\t$state_query = tep_db_query(\"SELECT zone_code FROM \" . TABLE_ZONES . \" WHERE zone_name LIKE '\".$order['delivery_state'].\"' LIMIT 1\");\n\t\t$state = tep_db_fetch_array($state_query);\n\n\t\t$this->state = $state['zone_code'];\n\n\t\t$this->zip = $order['delivery_postcode'];\n\n\t\tif($this->shipperInfo_country == $this->country) {\n\n\t\t\t// # if US based scrub postal-4 from the code in case it's present\n\t\t\t$this->zip = (strlen($this->zip) > 5) ? substr($this->zip,0,5) : $this->zip;\n\t\t}\n\t\n\n\t\t// # sanitize phone number, including removing periods / dots and other illegal chars\n\t\t// # also remove country US pre-fix and any characters to avoid UPS error 120217 - ShipTo phone number and phone extension together cannot be more than 15 digits long\n\t\t$this->phone = preg_replace('/[^0-9]/i', '', $order['customers_telephone']);\n\n\t\t// # detect phone number length - if less then 10 digits, pass a blank value (to avoid UPS error code 120213\n\t\t$this->phone = (strlen($this->phone) > 9 ? $this->phone : '');\n\n\t\t$this->preferred_method = $order['shipping_method'];\n\n\t\t$this->customer_email = $order['customers_email_address'];\n\n\t\t// # Grab the package weight from the orders_products table and combine into one weight (for single package).\n\t\t// # To-Do: expand on logic to include multiple packages. Will require rewriting query below.\n\n\t\t$package_info_query = tep_db_query(\"SELECT COALESCE(SUM(op.products_weight * op.products_quantity),0) AS products_weight,\n\t\t\t\t\t\t\t\t\t\t\t\t COALESCE(TRUNCATE(SUM(op.final_price * op.products_quantity),2), 0.00) AS products_value,\t\n\t\t\t\t\t\t\t\t\t\t\t\t p.products_separate_shipping\n\t\t\t\t\t\t\t\t\t \t\tFROM \". TABLE_ORDERS .\" o\n\t\t\t\t\t\t\t\t\t\t\tLEFT JOIN \". TABLE_ORDERS_PRODUCTS .\" op ON op.orders_id = o.orders_id\n\t\t\t\t\t\t\t\t\t\t\tLEFT JOIN \". TABLE_PRODUCTS .\" p ON p.products_id = op.products_id\n\t\t\t\t\t\t\t\t\t\t\tWHERE o.orders_id = '\" . $orders_id . \"'\n\t\t\t\t\t\t\t\t\t\t \t\");\n\n\n\t\t$package_info = tep_db_fetch_array($package_info_query);\n\n\n\t\t// # check if its a residential delivery\n\t\t$this->isResidential = (!$order['customers_company']) ? \"\\n\" . '<ResidentialAddress/>' : '';\n\n\t\t$defaultPackageWeight = (number_format((float)$package_info['products_weight'],2) + SHIPPING_BOX_WEIGHT);\n\n\t\t$this->package_weight = (!empty($method[1]) ? $method[1] : $defaultPackageWeight);\n\t\t$this->package_weight = number_format((float)$this->package_weight,2);\n\n\t\t$this->shipment_partialFull = ((float)$this->package_weight >= $defaultPackageWeight) ? 'Full' : 'Partial';\n\t\t\n\t\t$this->unit_length = (defined('SHIPPING_UNIT_LENGTH')) ? SHIPPING_UNIT_LENGTH : 'IN';\n\t\t$this->package_unitof = (defined('SHIPPING_UNIT_WEIGHT')) ? SHIPPING_UNIT_WEIGHT : 'LBS';\n\n\t\t$this->currency = (MODULE_SHIPPING_UPSXML_CURRENCY_CODE) ? MODULE_SHIPPING_UPSXML_CURRENCY_CODE : 'USD';\n\n\t\t// # grab the order totals for international shipments\n\t\t$this->order_subtotal = number_format($package_info['products_value'], 2);\n\t\t$this->order_total = number_format($order['order_total'], 2);\n\n\t\t// # 35 char limit, so we need to decipher a way to dynamically build this, unless we have some static value\n\t\t$this->description_of_goods = 'Z-Wave Wireless Network Equipment';\n\n\t\t$this->seperateBox = ($package_info['products_separate_shipping'] == '1') ? \"\\n\" . '<LargePackageIndicator/>' : '';\n\t\t$this->additional_handling = ($package_info['products_separate_handling']) ? \"\\n\" . '<AdditionalHandling>'.$package_info['products_separate_handling'].'</AdditionalHandling>' : '';\n\n\t\t$this->shipMethod = str_replace('upsxml_UPS ', '', $method[0]);\n\n\t\t// # RESOLVED! - on /admin/upsxml_labels.php there is mapping logic which HAD 'Expedited' (for Amazon) in the str_replace array. This removed ALL instanced of Expedited and broke shipping codes with 'Expedited' in them\n\t\t// # Mmay as well leave this code here just in case. Feel free to remove since we revised 'Expedited' to import as 'Expedited Delivery'\n\n\t\tif($this->shipMethod == 'Worldwide 3 Day Select' || $this->shipMethod == 'Worldwide' || $this->shipMethod == 'Worldwide Saver' || $this->shipMethod == 'Worldwide Expedited Saver') {\n\t\t\t$this->shipMethod = str_replace(array('Worldwide 3 Day Select', 'Worldwide', 'Worldwide Saver', 'Worldwide Expedited Saver'), 'Worldwide Expedited', $this->shipMethod);\n\t\t}\n\n\t\t// # get the label format for desired printer\n\t\t// # to-do: pass in the value dynamically\n\t\t// # $labelformat = strtoupper('zpl');\n\n\t\t$labelformat = strtoupper($options[3]);\n\t\t$this->LabelPrintMethod = $labelformat;\n\t\t$this->LabelImageFormat = $labelformat;\n\t\t$this->LabelImageHeight = '4';\n\t\t$this->LabelImageWidth = '6';\n\t\t\n\t\t// # Service codes\n\n\t\t$this->service_codes = array('01' => 'Next Day Air',\n\t\t\t\t\t\t\t\t\t '02' => '2nd Day Air',\n\t\t\t\t\t\t\t\t\t '03' => 'Ground',\n\t\t\t\t\t\t\t\t\t '07' => 'Worldwide Express',\n\t\t\t\t\t\t\t\t\t '08' => 'Worldwide Expedited',\n\t\t\t\t\t\t\t\t\t '11' => 'Standard',\n\t\t\t\t\t\t\t\t\t '12' => '3 Day Select',\n\t\t\t\t\t\t\t\t\t '13' => 'Next Day Air Saver',\n\t\t\t\t\t\t\t\t\t '14' => 'Next Day Air Early AM',\n\t\t\t\t\t\t\t\t\t '54' => 'Express Plus',\n\t\t\t\t\t\t\t\t\t '59' => '2nd Day Air A.M.',\n\t\t\t\t\t\t\t\t\t '65' => 'Saver',\n\t\t\t\t\t\t\t\t\t 'M2' => 'First Class Mail',\n\t\t\t\t\t\t\t\t\t 'M3' => 'Priority Mail',\n\t\t\t\t\t\t\t\t\t 'M4' => 'Expedited Mail Innovations',\n\t\t\t\t\t\t\t\t\t 'M5' => 'Priority Mail Innovations',\n\t\t\t\t\t\t\t\t\t 'M6' => 'Economy Mail Innovations',\n\t\t\t\t\t\t\t\t\t '82' => 'Today Standard',\n\t\t\t\t\t\t\t\t\t '83' => 'Today Dedicated Courier',\n\t\t\t\t\t\t\t\t\t '84' => 'Today Intercity',\n\t\t\t\t\t\t\t\t\t '85' => 'Today Express',\n\t\t\t\t\t\t\t\t\t '86' => 'Today Express Saver',\n\t\t\t\t\t\t\t\t\t '96' => 'Worldwide Express Freight',\n\t\t\t\t\t\t\t\t\t // # Added SurePost compatibility 12/15/2014\n\t\t\t\t\t\t\t\t\t '92' => 'SurePost',\n\t\t\t\t\t\t\t\t\t '93' => 'SurePost',\n\t\t\t\t\t\t\t\t\t '94' => 'SurePost BPM',\n\t\t\t\t\t\t\t\t\t '95' => 'SurePost Media'\n\t\t\t\t\t\t\t\t\t );\n\n\t\t// # END service codes\n\n\t\t$this->serviceCode = array_search($this->shipMethod, $this->service_codes);\n\n\t\t// # non-standard package options - to be set with each Label\n\n\t\t// # set delivery confirmation - ADD LOGIC TO CHECK VALID SHIP TO OPTIONS!\n\t\t// # EXAMPLE - SERVICE CODE 14 (NEXT DAY AIR A.M.) ISN'T AVAILABLE FOR DELIVERY CONFIRMATION\n\t\t// # reference Appendix P (page 407) of the documentation.\n\t\t// # 1 - Delivery Confirmation || 2 - Delivery Confirmation Signature Required || \n\t\t// # 3 - Delivery Confirmation Adult Signature Required || 4 - USPS Delivery Confirmation\n\n\t\tif($options[0] == 1 && $order['comments'] != 'NO SIGNATURE REQUIRED') {\n\t\t\t$this->delivery_confirmation = \"\\n\".'<DeliveryConfirmation>'.\"\\n\".\n\t\t\t\t\t\t\t\t\t\t\t\t'<DCISType>2</DCISType>'.\"\\n\".\n\t\t\t\t\t\t\t\t\t\t '</DeliveryConfirmation>';\n\t\t} else { \n\t\t\t$this->delivery_confirmation = '';\n\t\t}\n\n\t\t// # To-Do - complete insurance addition.\n\t\t// # create over ride for value passed.\n\n\t\tif($options[1] > 0) { \n\t\t$this->insurance_value = \"\\n\" . '<InsuredValue>' . \"\\n\" . \n\t\t\t\t\t\t\t\t '<Code>02</Code>' . \"\\n\" . \n\t\t\t\t\t\t\t\t '<CurrencyCode>' . $this->currency . '</CurrencyCode>' . \"\\n\" . \n\t\t\t\t\t\t\t\t '<MonetaryValue>'. $options[1] . '</MonetaryValue>' . \"\\n\" . \n\t\t\t\t\t\t\t\t '</InsuredValue>';\n\t\t} else {\n\t\t$this->insurance_value = '';\n\t\t}\n\n\n\t\t// # Notifications \n\n\t\tif($options[2] == '1') {\n\t\t\t// # To-do: Add logic to grab comments - determine if special seperate shipment comments are appropriate.\t\n\t\t\t$comments = '';\n\n\t\t\t// # To-do: determine or circle back to logic to handle notification code for returns. Reference page 276 in docs.\n\t\t\t// # <NotificationCode> = 3 - Receiver Return Notification || 6 - Quantum View Email Notification\n\n\t\t\t$this->notification = \"\\n\".'<Notification>' . \"\\n\" . \n\t\t\t\t\t\t\t\t\t\t'<NotificationCode>6</NotificationCode>' . \"\\n\" .\n\t\t\t\t\t\t\t\t\t\t'<EMailMessage>' . \"\\n\" . \n\t\t\t\t\t\t\t\t\t\t\t'<EMailAddress>'.$this->customer_email.'</EMailAddress>' . \"\\n\" . \n\t\t\t\t\t\t\t\t\t\t\t'<FromEMailAddress>'.$this->merchantEmail.'</FromEMailAddress>' . \n\t\t\t\t\t\t(!empty($comments) ? \"\\n\" . '<Memo>'.$comments.'</Memo>' : '') . \"\\n\" .\n\t\t\t\t\t\t\t\t\t\t'</EMailMessage>' . \"\\n\" . \n\t\t\t\t\t\t\t\t\t'</Notification>';\n\t\t} else {\n\t\t\t$this->notification = '';\n\t\t}\n\n\t\t// # To-do: Create package type selection - default to Customer Supplied for now\n\t\t//$this->package_type_code = ($package_info['products_package_type']) ? $package_info['products_package_type'] : '02';\n\t\n\t\t$this->package_codes = array('01' => 'UPS Letter',\n\t\t\t\t\t\t\t\t\t '02' => 'Customer Supplied',\n\t\t\t\t\t\t\t\t\t '03' => 'Tube',\n\t\t\t\t\t\t\t\t\t '07' => 'PAK',\n\t\t\t\t\t\t\t\t\t '21' => 'UPS Express Box',\n\t\t\t\t\t\t\t\t\t '24' => 'UPS 25KG Box',\n\t\t\t\t\t\t\t\t\t '25' => 'UPS 10KG Box',\n\t\t\t\t\t\t\t\t\t '30' => 'Pallet', \n\t\t\t\t\t\t\t\t\t '2a' => 'Small Express Box', \n\t\t\t\t\t\t\t\t\t '2b' => 'Medium Express Box',\n\t\t\t\t\t\t\t\t\t '2c' => 'Large Express Box',\n\t\t\t\t\t\t\t\t\t '56' => 'Flats',\n\t\t\t\t\t\t\t\t\t '57' => 'Parcels', \n\t\t\t\t\t\t\t\t\t '58' => 'BPM', \n\t\t\t\t\t\t\t\t\t '59' => 'First Class', \n\t\t\t\t\t\t\t\t\t '60' => 'Priority', \n\t\t\t\t\t\t\t\t\t '61' => 'Machinables', \n\t\t\t\t\t\t\t\t\t '62' => 'Irregulars', \n\t\t\t\t\t\t\t\t\t '63' => 'Parcel Post', \n\t\t\t\t\t\t\t\t\t '64' => 'BPM Parcel',\n\t\t\t\t\t\t\t\t\t '65' => 'Media Mail',\n\t\t\t\t\t\t\t\t\t '66' => 'BMP Flat', \n\t\t\t\t\t\t\t\t\t '67' => 'Standard Flat'\n\t\t\t\t\t\t\t\t\t);\n\n\t\t$this->package_type = $method[2];\n\t\t$this->package_type_code = array_search($this->package_type, $this->package_codes);\n\n\t\t// # Dimenional Override support\n\t\t// # To-Do: integrate with existing dimensional support\n\t\t$this->package_height = (float)(!empty($dimensions[0])) ? $dimensions[0] : '';\n\t\t$this->package_width = (float)(!empty($dimensions[1])) ? $dimensions[1] : '';\n\t\t$this->package_length = (float)(!empty($dimensions[2])) ? $dimensions[2] : '';\n\n\n\t\tif($this->package_height > 0 && $this->package_width > 0 && $this->package_length > 0) { \n\n\t\t$this->dimensions = \"\\n\" . '<Dimensions>' . \"\\n\" .\n\t\t\t\t\t\t\t\t\t\t'<UnitOfMeasurement>' . \"\\n\" .\n\t\t\t\t\t\t\t\t\t\t\t'<Code>'.$this->unit_length.'</Code>' . \"\\n\" .\n\t\t\t\t\t\t\t\t\t\t'</UnitOfMeasurement>' . \"\\n\" .\n\t\t\t\t\t\t\t\t\t\t'<Length>'.$this->package_length.'</Length>' . \"\\n\" .\n\t\t\t\t\t\t\t\t\t\t'<Width>'.$this->package_width.'</Width>' . \"\\n\" .\n\t\t\t\t\t\t\t\t\t\t'<Height>'.$this->package_height.'</Height>' . \"\\n\" .\n\t\t\t\t\t\t\t\t\t'</Dimensions>';\n\n\t\t} else { \n\t\t\t$this->dimensions = '';\n\t\t}\n\n\t\t// # END non-standard package options - to be set with each Label\n\n\t}", "title": "" }, { "docid": "20ebc9c9375c922ea6a23cfa903d6e15", "score": "0.59718704", "text": "public function __construct(array $dataOrders)\n {\n //\n $this->dataOrders = $dataOrders;\n }", "title": "" }, { "docid": "2cf72cc0f9a4a665ebff5e4ac2ab92aa", "score": "0.5971116", "text": "public function __construct(Order $order, $withoutSensitiveDetails = false)\n {\n $this->order = $order;\n $this->withoutSensitiveDetails = $withoutSensitiveDetails;\n }", "title": "" }, { "docid": "0cc193e300851eab7c14550f2b980d06", "score": "0.5968296", "text": "public function __construct($product_info,$user_info,$order_info,$seller)\n {\n $this->product_info=$product_info;\n $this->user_info=$user_info;\n $this->order_info=$order_info;\n $this->seller=$seller;\n }", "title": "" }, { "docid": "d4355f130661a52a481bff76a71beb0d", "score": "0.5966105", "text": "public function __construct()\n {\n parent::__construct();\n $this->settings_params = array();\n $this->output_params = array();\n $this->multiple_keys = array(\n \"select_query\",\n );\n $this->block_result = array();\n\n $this->load->library('wsresponse');\n $this->load->model(\"user/customer_model\");\n }", "title": "" }, { "docid": "29b03378d3b3efb969ccc0fa7c9c988c", "score": "0.59615016", "text": "public function __construct(array $request)\n {\n $this->request = $request;\n }", "title": "" }, { "docid": "29b03378d3b3efb969ccc0fa7c9c988c", "score": "0.59615016", "text": "public function __construct(array $request)\n {\n $this->request = $request;\n }", "title": "" }, { "docid": "0ca07b6c800040068a5ee7dcf1e22081", "score": "0.59593296", "text": "public function __construct() {\n \t// Email slug we can use to filter other data.\n\t\t$this->id = 'wc_customer_shipped_order';\n\t\t$this->title = __( 'Order Shipped', 'stj_woocommerceshippedstatus' );\n\t\t$this->description = __( 'An email sent to the customer when an order is shipped.', 'stj_woocommerceshippedstatus' );\n \t// For admin area to let the user know we are sending this email to customers.\n\t\t$this->customer_email = true;\n\t\t$this->heading = __( 'Order Shipped', 'stj_woocommerceshippedstatus' );\n\t\t// translators: placeholder is {blogname}, a variable that will be substituted when email is sent out\n\t\t$this->subject = sprintf( _x( '[%s] Order Shipped', 'default email subject for shipped emails sent to the customer', 'stj_woocommerceshippedstatus' ), '{blogname}' );\n\n \t// Template paths.\n\t\t$this->template_html = 'emails/wc-customer-shipped-order.php';\n\t\t$this->template_plain = 'emails/plain/wc-customer-shipped-order.php';\n\t\t$this->template_base = STJ_WCSS_PATH . 'templates/';\n\n \t// Action to which we hook onto to send the email.\n \tadd_action( 'woocommerce_order_status_pending_to_shipped_notification', array( $this, 'trigger' ) );\n\t\tadd_action( 'woocommerce_order_status_processing_to_shipped_notification', array( $this, 'trigger' ) );\n\t\tadd_action( 'woocommerce_order_status_on-hold_to_shipped_notification', array( $this, 'trigger' ) );\n\n\t\tparent::__construct();\n\t}", "title": "" }, { "docid": "22aa157a95cfe740bdee09f6ccb32331", "score": "0.5949447", "text": "public function __construct(\n $productSalesOrderId,\n $amountApproved,\n $orderQuantity)\n {\n $this->productSalesOrderId = $productSalesOrderId;\n $this->amountApproved = $amountApproved;\n $this->orderQuantity = $orderQuantity;\n }", "title": "" }, { "docid": "3565652c8f99671a43ef691260d442f4", "score": "0.5948079", "text": "public function __construct($_amount = NULL,$_billingAddress = NULL,$_created = NULL,$_currency = NULL,$_custNum = NULL,$_customData = NULL,$_customFields = NULL,$_customerID = NULL,$_description = NULL,$_enabled = NULL,$_failures = NULL,$_lookupCode = NULL,$_modified = NULL,$_next = NULL,$_notes = NULL,$_numLeft = NULL,$_orderID = NULL,$_paymentMethods = NULL,$_priceTier = NULL,$_receiptNote = NULL,$_schedule = NULL,$_sendReceipt = NULL,$_source = NULL,$_tax = NULL,$_taxClass = NULL,$_user = NULL,$_uRL = NULL)\n {\n parent::__construct(array('Amount'=>$_amount,'BillingAddress'=>$_billingAddress,'Created'=>$_created,'Currency'=>$_currency,'CustNum'=>$_custNum,'CustomData'=>$_customData,'CustomFields'=>$_customFields,'CustomerID'=>$_customerID,'Description'=>$_description,'Enabled'=>$_enabled,'Failures'=>$_failures,'LookupCode'=>$_lookupCode,'Modified'=>$_modified,'Next'=>$_next,'Notes'=>$_notes,'NumLeft'=>$_numLeft,'OrderID'=>$_orderID,'PaymentMethods'=>$_paymentMethods,'PriceTier'=>$_priceTier,'ReceiptNote'=>$_receiptNote,'Schedule'=>$_schedule,'SendReceipt'=>$_sendReceipt,'Source'=>$_source,'Tax'=>$_tax,'TaxClass'=>$_taxClass,'User'=>$_user,'URL'=>$_uRL),false);\n }", "title": "" }, { "docid": "f4a99644df3f68208e8ba94c06d97187", "score": "0.5942945", "text": "public function __construct($_doReferenceTransactionRequest = NULL)\r\n\t{\r\n\t\tparent::__construct(array('DoReferenceTransactionRequest'=>$_doReferenceTransactionRequest));\r\n\t}", "title": "" }, { "docid": "981a81730d353d553cc8c5367257b8c5", "score": "0.5933152", "text": "public function __construct($quantity)\n {\n $this->quantity = $quantity;\n }", "title": "" }, { "docid": "8fdc93193aff482d99d353d23ebe7d1e", "score": "0.5930098", "text": "function __construct(){\n\t\tparent::__construct( 'order-status', __( 'Order Status', APP_TD ), APPTHEMES_ORDER_PTYPE, 'side', 'high' );\n\t}", "title": "" }, { "docid": "f188c7c8277ac0cb619926d94a72e3ec", "score": "0.592744", "text": "protected function _construct()\n {\n $this->_init('boleto_remittance_file_order', 'remittance_file_order_id');\n }", "title": "" }, { "docid": "558964af015a8baf51d6365bdb8a5966", "score": "0.59208304", "text": "public function __construct(SaveProductOptionsRequest $request)\n {\n $this->request = $request;\n }", "title": "" }, { "docid": "8968e0041bf5a1d610903f3f8b11538d", "score": "0.5912355", "text": "function __construct($o_id, $username = \"\", $i_list = null, \r\n $order_placed = false, $order_filled = false) {\r\n if($o_id > 0) {\r\n // If they gave a positive ID, get info from the database\r\n $data = getOrderInfo($o_id);\r\n if (!$data) {\r\n throw new Exception(\"Order ID does not exist.\");\r\n }\r\n $this->order_id = $o_id;\r\n $this->username = $data['username'];\r\n $this->placed = true;\r\n $this->filled = $data['filled'];\r\n for ($i = 0; $i < count($data['item_list']); $i++) {\r\n $item_id = $data['item_list'][$i];\r\n $quant = $data['quant_list'][$i];\r\n $this->item_list[$item_id] = $quant;\r\n }\r\n } else {\r\n // If they gave a negative ID, set info from parameters\r\n $this->order_id = -1;\r\n $this->username = $username;\r\n $this->filled = $order_filled;\r\n $this->placed = $order_placed;\r\n if ($i_list != null) {\r\n $this->item_list = $i_list;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "72b7b1edd7753f207a665ad0d518aa57", "score": "0.5907774", "text": "public function _construct()\n {\n $this->_init('qtymgnt/qtymgnt', 'qtymgnt_id');\n }", "title": "" }, { "docid": "e2327dd5c8fae5fd9d1dae8758922bd4", "score": "0.5903645", "text": "public function __construct()\n {\n if (9 == func_num_args()) {\n $this->code = func_get_arg(0);\n $this->priority = func_get_arg(1);\n $this->position = func_get_arg(2);\n $this->customerTaxClassIds = func_get_arg(3);\n $this->productTaxClassIds = func_get_arg(4);\n $this->taxRateIds = func_get_arg(5);\n $this->id = func_get_arg(6);\n $this->calculateSubtotal = func_get_arg(7);\n $this->extensionAttributes = func_get_arg(8);\n }\n }", "title": "" }, { "docid": "eb70a24c60878b1b7cf9d480490129e9", "score": "0.5896383", "text": "protected function _construct()\n {\n $this->_init('sales/order_invoice');\n }", "title": "" }, { "docid": "3e9ad3adf6f79c88dc51cb7749e4e3e1", "score": "0.58773285", "text": "public function __construct(EnquiryWasMade $event)\n {\n $this->order = $event->order;\n $this->items = $event->order->items;\n }", "title": "" }, { "docid": "8f8d43200f63b57c468f179ce411db57", "score": "0.58769083", "text": "public function __construct($order)\n {\n $this->order = Order::with(['payment', 'items', 'address'])->find($order->id);\n }", "title": "" }, { "docid": "00b6b23f3c792ce1ebb4f86a1b74ed1f", "score": "0.587563", "text": "public function __construct($_tRX_ID = NULL,$_mERCHANT_TRANSACTION_ID = NULL)\n {\n parent::__construct(array('TRX_ID'=>$_tRX_ID,'MERCHANT_TRANSACTION_ID'=>$_mERCHANT_TRANSACTION_ID),false);\n }", "title": "" }, { "docid": "a5c2a8c5f8a4b6ba1a336cc727ae85b4", "score": "0.5869945", "text": "public function __construct()\n {\n if (2 == func_num_args()) {\n $this->product = func_get_arg(0);\n $this->options = func_get_arg(1);\n }\n }", "title": "" }, { "docid": "eb4a9b84ac9923aa03d3d6b7643d6fd4", "score": "0.5867693", "text": "public function __construct(ProductFilterRequest $request, AddressService $addressService)\n {\n parent::__construct($request);\n $this->addressService = $addressService;\n }", "title": "" }, { "docid": "3b41b254275c1f784913cfc937fcd5dc", "score": "0.5863501", "text": "public function __construct(OrderInterface $order) {\n $this->order = $order;\n }", "title": "" } ]
fc010c4ed81ae078c3ca25fe4aeab345
Returns the user who created this issue
[ { "docid": "eb49d3a24d144c806daec2205badd07f", "score": "0.0", "text": "function getCreator() {\n\t\tif (null === ($creator = SyndNodeLib::getInstance($this->data['CREATE_NODE_ID'])))\n\t\t\t$creator = SyndNodeLib::getInstance('user_null.null');\n\t\treturn $creator;\n\t}", "title": "" } ]
[ { "docid": "ab2a1a9047ee835a2961007fdecb7e2a", "score": "0.7639298", "text": "public function getCreatedUserId()\n {\n return $this->created_user_id;\n }", "title": "" }, { "docid": "98fdbfb41c3bd1a19819de510245d62f", "score": "0.76342076", "text": "public function getCreatedby()\n {\n return $this->createdby;\n }", "title": "" }, { "docid": "67ff147f5d397a0b110d9d4b573695c6", "score": "0.7607288", "text": "public function getCreatedBy()\n {\n return $this->created_by;\n }", "title": "" }, { "docid": "67ff147f5d397a0b110d9d4b573695c6", "score": "0.7607288", "text": "public function getCreatedBy()\n {\n return $this->created_by;\n }", "title": "" }, { "docid": "67ff147f5d397a0b110d9d4b573695c6", "score": "0.7607288", "text": "public function getCreatedBy()\n {\n return $this->created_by;\n }", "title": "" }, { "docid": "97accbad26a4e4e6db595a94d6d353bb", "score": "0.7579438", "text": "public function getCreatedBy()\n {\n return $this->createdBy;\n }", "title": "" }, { "docid": "97accbad26a4e4e6db595a94d6d353bb", "score": "0.7579438", "text": "public function getCreatedBy()\n {\n return $this->createdBy;\n }", "title": "" }, { "docid": "e3017c1246117440736b8e1f3f0778f7", "score": "0.755455", "text": "public function getCreated_by()\n {\n return $this->created_by;\n }", "title": "" }, { "docid": "59a1b4aac1b2e1ec1877fb18de6e953b", "score": "0.74983037", "text": "public function getCreatedBy() {\n\t\treturn $this->createdBy;\n\t}", "title": "" }, { "docid": "09db5ae550f51fceebcb83d49c91ee9f", "score": "0.7400969", "text": "public function getCreatedBy()\n\t{\n\t\treturn $this->createdBy; \n\n\t}", "title": "" }, { "docid": "7dc467e8d00a014cbf88ff6cdb366258", "score": "0.7377955", "text": "public function getUserCreated()\n {\n return $this->user->username;\n }", "title": "" }, { "docid": "9233a5f61d252d570ead69e26127b48e", "score": "0.7220151", "text": "public function getUserCreated()\n {\n return $this->user1->username;\n }", "title": "" }, { "docid": "60288ddf45961a05d3f4dfa72d624206", "score": "0.7177518", "text": "public function getCreatedBy() : ?string {\n return $this->createdBy;\n }", "title": "" }, { "docid": "48de64790ed90e7a373615de30bf077f", "score": "0.7163766", "text": "public function getCreatedBy(): ?User\n {\n return $this->createdBy;\n }", "title": "" }, { "docid": "e9e31285e274f1524b08c5ff791dd5cb", "score": "0.7153798", "text": "public function getCreateUserId()\n {\n return $this->createUserId;\n }", "title": "" }, { "docid": "411b1d1c20852dab933b2560ef8fb684", "score": "0.7150682", "text": "public function getCreatedBy()\n {\n return $this->hasOne(User::className(), ['id' => 'created_by']);\n }", "title": "" }, { "docid": "411b1d1c20852dab933b2560ef8fb684", "score": "0.7150682", "text": "public function getCreatedBy()\n {\n return $this->hasOne(User::className(), ['id' => 'created_by']);\n }", "title": "" }, { "docid": "411b1d1c20852dab933b2560ef8fb684", "score": "0.7150682", "text": "public function getCreatedBy()\n {\n return $this->hasOne(User::className(), ['id' => 'created_by']);\n }", "title": "" }, { "docid": "b029cd398db40fb6d8f53ca43ecd4672", "score": "0.7144363", "text": "public function creator()\n\t{\n\t\treturn $this->belongsToOne('Hubzero\\User\\User', 'created_by');\n\t}", "title": "" }, { "docid": "b029cd398db40fb6d8f53ca43ecd4672", "score": "0.7144363", "text": "public function creator()\n\t{\n\t\treturn $this->belongsToOne('Hubzero\\User\\User', 'created_by');\n\t}", "title": "" }, { "docid": "b029cd398db40fb6d8f53ca43ecd4672", "score": "0.7144363", "text": "public function creator()\n\t{\n\t\treturn $this->belongsToOne('Hubzero\\User\\User', 'created_by');\n\t}", "title": "" }, { "docid": "d63ca17bd646dc6589183fb2b7b5203a", "score": "0.7141768", "text": "public function getCreatorUsername() : string {\n return $this->creator->getUsername();\n }", "title": "" }, { "docid": "087ba3200dde38ffe4e5bcbda03a41c3", "score": "0.71217847", "text": "public function getCreatedBy ();", "title": "" }, { "docid": "b2f107b6a5bafb853cfbf1a78e00c45f", "score": "0.71151453", "text": "public function getCreatedUser()\n {\n return $this->hasOne(ScrtUser::className(), ['user_id' => 'created_user_id']);\n }", "title": "" }, { "docid": "b2f107b6a5bafb853cfbf1a78e00c45f", "score": "0.71151453", "text": "public function getCreatedUser()\n {\n return $this->hasOne(ScrtUser::className(), ['user_id' => 'created_user_id']);\n }", "title": "" }, { "docid": "b2f107b6a5bafb853cfbf1a78e00c45f", "score": "0.71151453", "text": "public function getCreatedUser()\n {\n return $this->hasOne(ScrtUser::className(), ['user_id' => 'created_user_id']);\n }", "title": "" }, { "docid": "b2f107b6a5bafb853cfbf1a78e00c45f", "score": "0.71151453", "text": "public function getCreatedUser()\n {\n return $this->hasOne(ScrtUser::className(), ['user_id' => 'created_user_id']);\n }", "title": "" }, { "docid": "b2f107b6a5bafb853cfbf1a78e00c45f", "score": "0.71151453", "text": "public function getCreatedUser()\n {\n return $this->hasOne(ScrtUser::className(), ['user_id' => 'created_user_id']);\n }", "title": "" }, { "docid": "b2f107b6a5bafb853cfbf1a78e00c45f", "score": "0.71151453", "text": "public function getCreatedUser()\n {\n return $this->hasOne(ScrtUser::className(), ['user_id' => 'created_user_id']);\n }", "title": "" }, { "docid": "9e6867d584d856d907c975aa62879225", "score": "0.7088734", "text": "public function getCreatedBy()\n {\n return $this->hasOne(User::class, ['id' => 'created_by']);\n }", "title": "" }, { "docid": "9e6867d584d856d907c975aa62879225", "score": "0.7088734", "text": "public function getCreatedBy()\n {\n return $this->hasOne(User::class, ['id' => 'created_by']);\n }", "title": "" }, { "docid": "0afb51073c900ff56681b34d33c07070", "score": "0.7085148", "text": "public function getUserCreated()\n {\n return $this->hasOne(User::class, ['id' => 'created_by']);\n }", "title": "" }, { "docid": "0afb51073c900ff56681b34d33c07070", "score": "0.7085148", "text": "public function getUserCreated()\n {\n return $this->hasOne(User::class, ['id' => 'created_by']);\n }", "title": "" }, { "docid": "0afb51073c900ff56681b34d33c07070", "score": "0.7085148", "text": "public function getUserCreated()\n {\n return $this->hasOne(User::class, ['id' => 'created_by']);\n }", "title": "" }, { "docid": "3eac850932673ae04291390d4e159f3e", "score": "0.70333195", "text": "public function getAuthor()\n {\n return $this->logs()->created()->first()->user ?? null;\n }", "title": "" }, { "docid": "47a84792bdd1c8ff44fab69963d2049c", "score": "0.69818705", "text": "function getCreated_by() {\n\t\treturn $this->data_array['created_by'];\n\t}", "title": "" }, { "docid": "ee20015eb65c90c66805c45e36e02a42", "score": "0.6966403", "text": "public function getCreatedBy(): ?UserInterface\n {\n return $this->createdBy;\n }", "title": "" }, { "docid": "1d57a79323bbc45f3932664c6596c871", "score": "0.6924865", "text": "public function user()\n {\n return $this->owner();\n }", "title": "" }, { "docid": "05a545b9df01c1f9ce4cc6cd3cd70b96", "score": "0.6900897", "text": "public function creator() : User{\n\t\treturn $this->creator;\n\t}", "title": "" }, { "docid": "838e94fc4be53d7b5cdaf693687466ac", "score": "0.68814856", "text": "public function createdBy()\n {\n return $this->hasOne(User::class, 'id', 'created_by');\n }", "title": "" }, { "docid": "19560d94aeb047adb79467ee887927aa", "score": "0.6872806", "text": "public function createdBy()\n {\n return $this->pivotCreatedBy ? : $this->parent->getCreatedByColumn();\n }", "title": "" }, { "docid": "df5b6e818ff94455be742123f44feb5f", "score": "0.68724877", "text": "public function getTopicCreatedBy()\r\n\r\n\t{\r\n\r\n\t\treturn $this->createdBy;\r\n\r\n \t}", "title": "" }, { "docid": "ece0feca368b704b64fb4b24ccc147cb", "score": "0.68606085", "text": "public function creator()\n {\n return $this->hasOne('Mrcore\\Auth\\Models\\User', 'id', 'created_by');\n }", "title": "" }, { "docid": "847b89abfcb175cebad2acf238a3e6cc", "score": "0.6860397", "text": "public function creator()\n {\n return $this->belongsTo($this->getUserClass(), 'created_by');\n }", "title": "" }, { "docid": "f14799016cffaf43166d7c0a5e24222a", "score": "0.68433475", "text": "public function getCreatedBy()\n {\n return $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy;\n }", "title": "" }, { "docid": "d005d8f01e3b50abea156b81b5f09f62", "score": "0.6827959", "text": "public function getCreatedBy()\n {\n return $this->getPropertyValue(PropertyIds::CREATED_BY);\n }", "title": "" }, { "docid": "d24fe91e64c30f2465115885ee9257c3", "score": "0.68256056", "text": "public function getCreateUser()\n {\n return $this->create_user;\n }", "title": "" }, { "docid": "619549531d49b8bad7913a453774c5e1", "score": "0.6789089", "text": "function createdBy() {\n if($this->created_by === false) {\n $this->created_by = new ICreatedByImplementation($this);\n } // if\n \n return $this->created_by;\n }", "title": "" }, { "docid": "7ae00bc8129ad8a92d34c850a9edc17a", "score": "0.6788821", "text": "public function getUserId()\n {\n return \\Drupal::currentUser()->id();\n }", "title": "" }, { "docid": "c54a68095a22b411ce6c576010146165", "score": "0.6777859", "text": "protected function createdUser_access()\n {\n\t\treturn $this->service->account->users->find('id', $this->attributes['created_by'])->first();\n\t}", "title": "" }, { "docid": "d5861ea48f1c3850d3b2255deb5d100d", "score": "0.67675304", "text": "public function getCreatedBy0()\n {\n return $this->hasOne(User::className(), ['id' => 'createdBy']);\n }", "title": "" }, { "docid": "d5861ea48f1c3850d3b2255deb5d100d", "score": "0.67675304", "text": "public function getCreatedBy0()\n {\n return $this->hasOne(User::className(), ['id' => 'createdBy']);\n }", "title": "" }, { "docid": "87ad0566476f05f02ebc666088fdb080", "score": "0.6756557", "text": "public function getCreatedBy()\n {\n if (array_key_exists(\"createdBy\", $this->_propDict)) {\n if (is_a($this->_propDict[\"createdBy\"], \"\\Microsoft\\Graph\\Model\\UserIdentity\") || is_null($this->_propDict[\"createdBy\"])) {\n return $this->_propDict[\"createdBy\"];\n } else {\n $this->_propDict[\"createdBy\"] = new UserIdentity($this->_propDict[\"createdBy\"]);\n return $this->_propDict[\"createdBy\"];\n }\n }\n return null;\n }", "title": "" }, { "docid": "87ad0566476f05f02ebc666088fdb080", "score": "0.6756557", "text": "public function getCreatedBy()\n {\n if (array_key_exists(\"createdBy\", $this->_propDict)) {\n if (is_a($this->_propDict[\"createdBy\"], \"\\Microsoft\\Graph\\Model\\UserIdentity\") || is_null($this->_propDict[\"createdBy\"])) {\n return $this->_propDict[\"createdBy\"];\n } else {\n $this->_propDict[\"createdBy\"] = new UserIdentity($this->_propDict[\"createdBy\"]);\n return $this->_propDict[\"createdBy\"];\n }\n }\n return null;\n }", "title": "" }, { "docid": "6a412574f088eb7b5b4e5c5d3f72075e", "score": "0.6701714", "text": "public function createdUser()\n {\n return $this->belongsTo(User::class, 'created_by');\n }", "title": "" }, { "docid": "4ee5cf227e742cc05c0bb0659398cb10", "score": "0.66969985", "text": "public function user()\n {\n return $this->getCurrentUser();\n }", "title": "" }, { "docid": "beb953a7286540f2f96f9b61552b07b6", "score": "0.6670608", "text": "public function createdBy()\n {\n return $this->belongsTo('App\\User', 'user_created_id', 'id');\n }", "title": "" }, { "docid": "a1a2518d5aa0067bf324d537014be5e0", "score": "0.66484016", "text": "function GetUser()\n\t{\n\t\treturn $this->userId;\n\t}", "title": "" }, { "docid": "0e422a2053a0a8c743cff89729f3306e", "score": "0.662661", "text": "public function getCreatedby0()\n {\n return $this->hasOne(User::className(), ['id' => 'createdby']);\n }", "title": "" }, { "docid": "b2651a5e87822f26a1bbf85ffb3e1e7b", "score": "0.6624253", "text": "public function getUserId()\n {\n return Yii::$app->getUser()->id;\n }", "title": "" }, { "docid": "621f0625afeb9f7f35fbb64c687cac5a", "score": "0.6602354", "text": "public function getUser() {\n\t\treturn get_user_by('id', $this->authorId);\n\t}", "title": "" }, { "docid": "7fca1cd316093e55bf1714e66d592c01", "score": "0.65985686", "text": "public function getUser ()\n {\n return $this->getAuthor();\n }", "title": "" }, { "docid": "f2ee0564bf90a36d37158ee7354514f3", "score": "0.6596401", "text": "protected static function created_by(): mixed\n\t{\n\t\treturn self::$query->created_by;\n\t}", "title": "" }, { "docid": "03c6fd82d2c1e7b0f1e4fe48a35b2304", "score": "0.657678", "text": "public function getUserCreated()\n {\n return $this->user_created;\n }", "title": "" }, { "docid": "f0ea5cb7daa764dee4939934c14c560f", "score": "0.65720403", "text": "public function getCreatedBy()\n {\n return $this->getProperty(\"CreatedBy\", new IdentitySet());\n }", "title": "" }, { "docid": "dfeec518cb00ba3eeecc7025f7660ebe", "score": "0.6567556", "text": "public function creator()\n {\n return $this->belongsTo(User::class, 'created_by', 'id');\n }", "title": "" }, { "docid": "581248de21c9d59974ce597cc813fa71", "score": "0.65558666", "text": "public function getCreator()\n {\n return $this->creator;\n }", "title": "" }, { "docid": "581248de21c9d59974ce597cc813fa71", "score": "0.65558666", "text": "public function getCreator()\n {\n return $this->creator;\n }", "title": "" }, { "docid": "0a1dc355c624916e803f295b43290b3b", "score": "0.65505886", "text": "public function getUserId()\n {\n return $this->userId;\n }", "title": "" }, { "docid": "71f5c41b7c414f1bb75f474cbbd0c20c", "score": "0.65476614", "text": "public function creator()\n\t{\n\t\treturn $this->belongsTo(User::class,'created_by');\n\t}", "title": "" }, { "docid": "30bd6a4c9579ec4c6f4ce0dbeb573be4", "score": "0.6539431", "text": "protected function getRequestedUser()\n {\n return $this->requestedUser;\n }", "title": "" }, { "docid": "cf8c1217fa9ad2a638271d100757b36a", "score": "0.6503461", "text": "public function getCreatedBy()\n {\n if (is_null($this->createdBy)) {\n /** @psalm-var stdClass|array<string, mixed>|null $data */\n $data = $this->raw(self::FIELD_CREATED_BY);\n if (is_null($data)) {\n return null;\n }\n\n $this->createdBy = CreatedByModel::of($data);\n }\n\n return $this->createdBy;\n }", "title": "" }, { "docid": "cf8c1217fa9ad2a638271d100757b36a", "score": "0.6503461", "text": "public function getCreatedBy()\n {\n if (is_null($this->createdBy)) {\n /** @psalm-var stdClass|array<string, mixed>|null $data */\n $data = $this->raw(self::FIELD_CREATED_BY);\n if (is_null($data)) {\n return null;\n }\n\n $this->createdBy = CreatedByModel::of($data);\n }\n\n return $this->createdBy;\n }", "title": "" }, { "docid": "cf8c1217fa9ad2a638271d100757b36a", "score": "0.6503461", "text": "public function getCreatedBy()\n {\n if (is_null($this->createdBy)) {\n /** @psalm-var stdClass|array<string, mixed>|null $data */\n $data = $this->raw(self::FIELD_CREATED_BY);\n if (is_null($data)) {\n return null;\n }\n\n $this->createdBy = CreatedByModel::of($data);\n }\n\n return $this->createdBy;\n }", "title": "" }, { "docid": "7e37e1fe503ed6a9a65d58e2304dfe7d", "score": "0.6502658", "text": "public function getRevisionUser();", "title": "" }, { "docid": "7e37e1fe503ed6a9a65d58e2304dfe7d", "score": "0.6502658", "text": "public function getRevisionUser();", "title": "" }, { "docid": "7e37e1fe503ed6a9a65d58e2304dfe7d", "score": "0.6502658", "text": "public function getRevisionUser();", "title": "" }, { "docid": "7e37e1fe503ed6a9a65d58e2304dfe7d", "score": "0.6502658", "text": "public function getRevisionUser();", "title": "" }, { "docid": "7e37e1fe503ed6a9a65d58e2304dfe7d", "score": "0.6502658", "text": "public function getRevisionUser();", "title": "" }, { "docid": "7e37e1fe503ed6a9a65d58e2304dfe7d", "score": "0.6502658", "text": "public function getRevisionUser();", "title": "" }, { "docid": "7e37e1fe503ed6a9a65d58e2304dfe7d", "score": "0.6502658", "text": "public function getRevisionUser();", "title": "" }, { "docid": "7e37e1fe503ed6a9a65d58e2304dfe7d", "score": "0.6502658", "text": "public function getRevisionUser();", "title": "" }, { "docid": "7e37e1fe503ed6a9a65d58e2304dfe7d", "score": "0.6502658", "text": "public function getRevisionUser();", "title": "" }, { "docid": "c6b39cdda7817556f751b2612b669e13", "score": "0.6501924", "text": "public function get_current_user()\n {\n return $this->get_user_update()->message->from ?? NULL;\n }", "title": "" }, { "docid": "75923257ccf424e915b6634dcf1d5568", "score": "0.64948225", "text": "public function getUserId()\n {\n return $this->userId;\n }", "title": "" }, { "docid": "75923257ccf424e915b6634dcf1d5568", "score": "0.64948225", "text": "public function getUserId()\n {\n return $this->userId;\n }", "title": "" }, { "docid": "75923257ccf424e915b6634dcf1d5568", "score": "0.64948225", "text": "public function getUserId()\n {\n return $this->userId;\n }", "title": "" }, { "docid": "75923257ccf424e915b6634dcf1d5568", "score": "0.64948225", "text": "public function getUserId()\n {\n return $this->userId;\n }", "title": "" }, { "docid": "75923257ccf424e915b6634dcf1d5568", "score": "0.64948225", "text": "public function getUserId()\n {\n return $this->userId;\n }", "title": "" }, { "docid": "75923257ccf424e915b6634dcf1d5568", "score": "0.64948225", "text": "public function getUserId()\n {\n return $this->userId;\n }", "title": "" }, { "docid": "75923257ccf424e915b6634dcf1d5568", "score": "0.64948225", "text": "public function getUserId()\n {\n return $this->userId;\n }", "title": "" }, { "docid": "75923257ccf424e915b6634dcf1d5568", "score": "0.64948225", "text": "public function getUserId()\n {\n return $this->userId;\n }", "title": "" }, { "docid": "75923257ccf424e915b6634dcf1d5568", "score": "0.64948225", "text": "public function getUserId()\n {\n return $this->userId;\n }", "title": "" }, { "docid": "75923257ccf424e915b6634dcf1d5568", "score": "0.64948225", "text": "public function getUserId()\n {\n return $this->userId;\n }", "title": "" }, { "docid": "75923257ccf424e915b6634dcf1d5568", "score": "0.64948225", "text": "public function getUserId()\n {\n return $this->userId;\n }", "title": "" }, { "docid": "75923257ccf424e915b6634dcf1d5568", "score": "0.64948225", "text": "public function getUserId()\n {\n return $this->userId;\n }", "title": "" }, { "docid": "75923257ccf424e915b6634dcf1d5568", "score": "0.64948225", "text": "public function getUserId()\n {\n return $this->userId;\n }", "title": "" }, { "docid": "c21f70371076c113c2c18e3000c5e215", "score": "0.64893305", "text": "public function getOwner()\n {\n return $this->user_id;\n }", "title": "" }, { "docid": "40b130c77775aeb995257d3f75924382", "score": "0.64746493", "text": "public function getCreatedBy()\n {\n if (array_key_exists(\"createdBy\", $this->_propDict)) {\n if (is_a($this->_propDict[\"createdBy\"], \"\\Beta\\Microsoft\\Graph\\Model\\EmailIdentity\") || is_null($this->_propDict[\"createdBy\"])) {\n return $this->_propDict[\"createdBy\"];\n } else {\n $this->_propDict[\"createdBy\"] = new EmailIdentity($this->_propDict[\"createdBy\"]);\n return $this->_propDict[\"createdBy\"];\n }\n }\n return null;\n }", "title": "" }, { "docid": "638b394929d2bbc03582b11a3a12d93e", "score": "0.6473443", "text": "public function created_by()\n {\n return $this->belongsTo('App\\Models\\User', 'created_by_user_id');\n }", "title": "" }, { "docid": "dcdcbd2e1c04af7360ce703b5ed7bad3", "score": "0.6464261", "text": "public function getCreator() {\n\t\t$this->checkDisposed();\n\t\t\t\n\t\tif ($this->_creator === null) {\n\t\t\tif (!$this->_creatorID)\n\t\t\t\t$this->load();\n\t\t\t$this->_creator = User::getByID($this->_creatorID);\n\t\t}\n\t\treturn $this->_creator;\t\n\t}", "title": "" } ]
aba599401623c472b585c189fcdb09a3
Execute an HTTP POST request to BrowserStack API
[ { "docid": "2761a95ac7e67c49682e3ae7068dc161", "score": "0.0", "text": "protected function post($url, $data, $json = TRUE) {\n\n $client = new HTTPClient();\n\n try {\n $res = $client->request('POST', $url, [\n 'form_params' => $data,\n 'read_timeout' => 90, // Check createPreview() notes\n ]);\n }\n catch (BadResponseException $e) {\n return FALSE;\n }\n\n if ($json) {\n return json_decode($res->getBody(), TRUE);\n }\n\n return (string)$res->getBody();\n\n }", "title": "" } ]
[ { "docid": "6e3b7e43fd7196a4c093a1905b9ba4df", "score": "0.73343354", "text": "public function sendPostRequest();", "title": "" }, { "docid": "bc3743897e2f275b5e822dc3f103581a", "score": "0.6820761", "text": "private function post()\n {\n return $this->api->getGuzzleClient()->post($this->url, ['form_params' => $this->args]);\n }", "title": "" }, { "docid": "19769aed5d6b73dcf3ce74f16cbc0258", "score": "0.68016136", "text": "function req_post() {\n \t\t$url = 'http://postexample.com/json.php'; \n \t\techo $this->curl->simple_post($url, false, array(CURLOPT_USERAGENT => true));\n }", "title": "" }, { "docid": "4e845b3d70e260fc677e602a7e1fad1a", "score": "0.67989504", "text": "protected function executePost()\n\t{\n\t\tif (!is_string($this->requestBody)) {\n\t\t\t//$this->buildPostBody();\n\t\t}\n\n\t\tcurl_setopt($this->curlHandle, CURLOPT_POSTFIELDS, $this->requestBody);\n\t\tcurl_setopt($this->curlHandle, CURLOPT_POST, 1);\n\n\t\t$this->doExecute();\n\t}", "title": "" }, { "docid": "866ac060ef3abd0019265a663d36aaf4", "score": "0.67048585", "text": "public function post();", "title": "" }, { "docid": "866ac060ef3abd0019265a663d36aaf4", "score": "0.67048585", "text": "public function post();", "title": "" }, { "docid": "70264bf71f21943d704d301ee18efbdf", "score": "0.6670889", "text": "public function asPostRequest()\n {\n $url = $this->asUrl();\n\n return parent::request('POST', $url, $this->post_data, $this->fqb_access_token, $this->fqb_etag);\n }", "title": "" }, { "docid": "e4d9d53a44917657b628d298167e0336", "score": "0.6631141", "text": "public function makePostRequest(string $url, array $data = [], array $requestHeaders = []): ResponseInterface;", "title": "" }, { "docid": "253466162dd35c41c0554d9f4812583b", "score": "0.65549797", "text": "public function executePost(){\n $data = array(\n 'method'=>'GET',\n 'message' => 'you requested this via POST',\n 'data' => isset($_GET['data']) ? $_GET['data'] : 'You did not pass anything in the \\'data\\' url parameter.',\n 'stuff' => isset($_POST['stuff']) ? $_POST['stuff'] : 'You did not POST anything in the \\'stuff\\' parameter.',\n );\n $this->response->setContent($data); \n }", "title": "" }, { "docid": "7ff4c893722a49af920d3a4349c620ac", "score": "0.64679724", "text": "function os_remote_post( string $url, array $headers = array(), array $data = array(), array $options = array() ) \n{\n\treturn App\\Caller::post($url, $headers, $data, $options);\n}", "title": "" }, { "docid": "e8d29508ca7f225dae1e4f53c6184d12", "score": "0.637938", "text": "public function postAction()\n {\n /** @var \\Zend\\Http\\Request $request */\n $request = $this->getRequest();\n if (!$request->isPost()\n || empty($this->getRequest()->getContent())\n ) {\n $this->getResponse()->setStatusCode(400);\n return new JsonModel(['status' => 'error', 'message' => 'You should do a post, and it should have content']);\n }\n if (!$request->getHeader($this->config['theThingsNetwork']['authHeaderKey'])\n || $request->getHeader($this->config['theThingsNetwork']['authHeaderKey'])->getFieldValue()\n !== $this->config['theThingsNetwork']['authHeaderValue']\n ) {\n $this->getResponse()->setStatusCode(403);\n return new JsonModel(['status' => 'error', 'message' => 'Wrong authentication header']);\n }\n\n $this->logger->info('Post request coming from: ' . $_SERVER['REMOTE_ADDR'] . '; User Agent: ' . $_SERVER['HTTP_USER_AGENT']);\n\n // Validate\n $schemaPath = __DIR__ . '/../../../../data/schema/request.json';\n $validator = new \\JsonSchema\\Validator;\n if (!file_exists($schemaPath)) {\n $this->logger->emerg('Scheme file could not be found: ' . $schemaPath);\n return new JsonModel(['status' => 'error', 'message' => 'Schema file cannot be found']);\n }\n try {\n $requestContent = Json::decode(($request->getContent()));\n } catch (\\Exception $exception) {\n $this->getResponse()->setStatusCode(400);\n $this->logger->err('Request content could not be decoded: ' . $exception->getTraceAsString());\n return new JsonModel(['status' => 'error', 'message' => 'Request content could not be decoded']);\n }\n\n $schema = Json::decode(file_get_contents($schemaPath));\n $validator->validate(\n $requestContent,\n $schema\n );\n\n if (!$validator->isValid()) {\n $this->logger->info(\"JSON does not validate. Violations:\");\n foreach ($validator->getErrors() as $error) {\n $this->logger->info(sprintf(\"[%s] %s\", $error['property'], $error['message']));\n }\n }\n\n $payload = new Payload();\n $payload->setDateCreated(new \\DateTime());\n\n $payload->setContent($request->getContent());\n $payload->setStatus(Payload::STATUS_NEW);\n $this->entityManager->persist($payload);\n $this->entityManager->flush();\n\n $this->createMessage($payload);\n\n return new JsonModel(['status' => 'ok']);\n }", "title": "" }, { "docid": "00d585502288073e748f92428e7f6ef7", "score": "0.63674587", "text": "public function receivePostRequest();", "title": "" }, { "docid": "d9644b4f41e7173d9780d37ae2a427d9", "score": "0.6352134", "text": "function http_post($url, $data = null, array $options = array()) {\n\treturn http_request('POST', $url, $data, $options);\n}", "title": "" }, { "docid": "e210a62e289ba9ae37ea02b5ff108f7a", "score": "0.6315505", "text": "public function post_request(){\n\t $this->_db->post_request($this->_obj,$this->_payload);\n\t}", "title": "" }, { "docid": "fd8b754ea5e44d97ee7ecde0fb3afc7c", "score": "0.6288156", "text": "function bbp_post_request()\n{\n}", "title": "" }, { "docid": "d26661697d30c28fdbcf8bacfc7f283f", "score": "0.62796265", "text": "public static function post()\n {\n $payload = file_get_contents('php://input');\n $payload = json_decode($payload);\n return self::createAuto($payload);\n }", "title": "" }, { "docid": "5323250e2dc472aaf620a0e945f19c61", "score": "0.6256982", "text": "public abstract function post ($url, array $data = array(), array $headers = array());", "title": "" }, { "docid": "409e132043fbb266c3a6ecb6f716191f", "score": "0.6199364", "text": "public function post_send () {\n\t\tif (! isset ($_POST['url'])) {\n\t\t\treturn $this->error ('Missing field: url');\n\t\t}\n\n\t\tif (! isset ($_POST['method'])) {\n\t\t\treturn $this->error ('Missing field: method');\n\t\t}\n\n\t\tRequests::register_autoloader ();\n\n\t\tswitch (strtolower ($_POST['method'])) {\n\t\t\tcase 'get':\n\t\t\t\t$type = Requests::GET;\n\t\t\t\tbreak;\n\t\t\tcase 'head':\n\t\t\t\t$type = Requests::HEAD;\n\t\t\t\tbreak;\n\t\t\tcase 'post':\n\t\t\t\t$type = Requests::POST;\n\t\t\t\tbreak;\n\t\t\tcase 'put':\n\t\t\t\t$type = Requests::PUT;\n\t\t\t\tbreak;\n\t\t\tcase 'patch':\n\t\t\t\t$type = Requests::PATCH;\n\t\t\t\tbreak;\n\t\t\tcase 'delete':\n\t\t\t\t$type = Requests::DELETE;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn $this->error ('Invalid or unsupported request method');\n\t\t}\n\n\t\t$headers = array ();\n\t\tif (is_array ($_POST['headers'])) {\n\t\t\t$headers = $_POST['headers'];\n\t\t}\n\n\t\t$data = array ();\n\t\tif (is_array ($_POST['params'])) {\n\t\t\t$data = $_POST['params'];\n\t\t}\n\t\t$options = array ();\n\n\t\tif (! empty ($_POST['user'])) {\n\t\t\t$options['auth'] = array ();\n\t\t\t$options['auth']['username'] = $_POST['user'];\n\t\t}\n\n\t\tif (! empty ($_POST['pass'])) {\n\t\t\t$options['auth'] = is_array ($options['auth']) ? $options['auth'] : array ();\n\t\t\t$options['auth']['password'] = $_POST['pass'];\n\t\t}\n\n\t\tif (isset ($_POST['body']) && ! empty ($_POST['body'])) {\n\t\t\t$data = $_POST['body'];\n\t\t} else {\n\t\t\t$data = $_POST['params'];\n\t\t}\n\n\t\ttry {\n\t\t\t$res = Requests::request (\n\t\t\t\t$_POST['url'],\n\t\t\t\t$headers,\n\t\t\t\t$data,\n\t\t\t\t$type,\n\t\t\t\t$options\n\t\t\t);\n\t\t} catch (\\Exception $e) {\n\t\t\treturn $this->error ($e->getMessage ());\n\t\t}\n\n\t\tif (! $res->success) {\n\t\t\treturn $this->error ('Request failed');\n\t\t}\n\n\t\t$headers = array ();\n\t\tforeach ($res->headers as $name => $value) {\n\t\t\t$headers[$name] = $value;\n\t\t}\n\n\t\t$out = array (\n\t\t\t'status' => $res->status_code,\n\t\t\t'headers' => $headers,\n\t\t\t'body' => $res->body\n\t\t);\n\t\treturn $out;\n\t}", "title": "" }, { "docid": "9d62492220455cf5ae84fcec9dd8b8ad", "score": "0.6157205", "text": "public function post() {\n\t\t$post = $this->_route->post;\n\n\t\tif ($post === null) {\n\t\t\tthrow new \\Exception('Invalid JSON in POST of POST of 0mq request : ' . $this->_route->input);\n\t\t}\n\t\t$model = $this->__model();\n\n\t\t$container = $this->container('Entity');\n\n\t\t$entity = $model::create($post);\n\n\t\t$entity->save();\n\n\t\t$container['data'] = $entity->to('array');\n\t\t$container['errors'] = $entity->errors();\n\n\t\treturn $container;\n\t}", "title": "" }, { "docid": "055ab950728cc3474d6df1a74ab460b6", "score": "0.6119156", "text": "public function resource_post() {\n $this->set_response(true, REST_Controller::HTTP_OK);\n }", "title": "" }, { "docid": "35754ac2ab932db90691647eef2854d9", "score": "0.61171615", "text": "function http_post($uri, $data, array $query_params=array(), array $headers=array()) {\n $copts = array(\n CURLOPT_POST => TRUE,\n CURLOPT_POSTFIELDS => $data\n );\n\n return $this->request($uri, $query_params, $headers, $copts);\n }", "title": "" }, { "docid": "8b2fa1e60d90ecae5af338bcb4119e95", "score": "0.61080337", "text": "function simplePostRequest( $url, $data, $headers ) {\n\t//url-ify the data for the POST\n\t$fields_string = '';\n\tforeach($data as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }\n\trtrim($fields_string, '&');\n\n\t$ch = curl_init();\n\tcurl_setopt($ch,CURLOPT_URL, $url);\n\tcurl_setopt($ch,CURLOPT_POST, count($data));\n\tcurl_setopt($ch,CURLOPT_POSTFIELDS, json_encode($data));\n\t$curl_response = curl_exec($ch);\n\n\tdebug($curl_response,1);\n\n\tcurl_close($ch);\n\n\treturn $curl_response;\n}", "title": "" }, { "docid": "9fe9ccdffe6a2e3a2c3ec3e8db4f0154", "score": "0.6102471", "text": "public function testPostAction()\n {\n $uri = $this->router->generate('umberfirm__shop__post_shop-group');\n\n $this->client->request(\n 'POST',\n $uri,\n [],\n [],\n [\n 'CONTENT_TYPE' => 'application/json',\n 'HTTP_ACCEPT' => 'application/json',\n ],\n json_encode($this->payload)\n );\n\n $this->assertJsonResponse($this->client->getResponse(), Response::HTTP_CREATED);\n }", "title": "" }, { "docid": "4ace48d0193f0a9786c62c2ca4d74413", "score": "0.60886097", "text": "public function postAction() {\n $this->_helper->json(array('success' => 0, 'message' => 'this is a read only service, POST operation is not allowed'));\n }", "title": "" }, { "docid": "72ecf870ee1bba8add3160e7531a2d00", "score": "0.6085528", "text": "function post($url, $vars = array()) {\n\t\treturn $this->request('POST', $url, $vars);\n\t}", "title": "" }, { "docid": "e90733eb51f45227755c3ec93c53d8a8", "score": "0.60788184", "text": "function call_rest_post($url,$data='')\n\t{\n\t\t$result = $this->curl->simple_post($url , $data , array(CURLOPT_SSL_VERIFYPEER => false, CURLOPT_SSL_VERIFYHOST=> false));\t\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "34d0a8eb2f59e5039fa2106ed0a99bea", "score": "0.60290223", "text": "function post() {\n $result = $this->call_method();\n print $this->encode($result);\n }", "title": "" }, { "docid": "a0f47e27f200eee0d43df885eb375ea3", "score": "0.5992113", "text": "public function post()\n\t{\n\t}", "title": "" }, { "docid": "0cfaa98ef7ff48a0e47d942b2b2f7f9c", "score": "0.597693", "text": "protected function sendPOST()\n {\n // Check if the postData is empty\n if (empty($this->postData))\n throw new \\Exception(\"Post data empty. Run setupPOST() first\");\n\n $x = $this->client->sendPOST(\"https://politicsandwar.com/alliance/id=877&display=bank\",$this->postData, true);\n }", "title": "" }, { "docid": "69382d023a9fd97826e01e07e4c394f4", "score": "0.59713316", "text": "public function actionPost()\n\t{\n // Construct post data into a DOC model array. \n $ands=new CiteANDS();\n $postData=$ands->constructData();\n \n // Convert and construct DOC model into XML using DataCite2_2 and Array2XML.\n $_POST['xml']=$ands->buildDocModelToXml($postData);\n \n // Format get variables required by ANDS API \n $user_id = isset($_POST['user_id'])? $_POST['user_id']:'';\n $app_id = isset($_POST['app_id'])? $_POST['app_id']:'';\n $url = isset($_POST['url'])? $_POST['url']:'';\n $doi = isset($_POST['doi'])? $_POST['doi']:null;\n $action = ($doi)? 'update':'mint'; //activate/deactivate???\n\t\t\n // process data.\n $result = $this->processAPI($user_id, $app_id, $doi, $action, $url);\n \n response($result); //output xml\n\t}", "title": "" }, { "docid": "836920868499b20f43dc4657cff06abe", "score": "0.5951387", "text": "public function apprequest() {\n log_message('info', __METHOD__.'=>START for content_type:'.$_SERVER['CONTENT_TYPE']);\n if (stripos($_SERVER['CONTENT_TYPE'], 'application/json') === 0) {\n $_POST = json_decode(file_get_contents(\"php://input\"), true);\n }\n log_message('info', __METHOD__.'=>data:'. var_export($_POST, true));\n echo json_encode($this->$_POST['action']($_POST['data']));\n }", "title": "" }, { "docid": "2af337a5eb2111b2b57ab536856062f5", "score": "0.59445566", "text": "function Post($endpoint, $params, $headers = array());", "title": "" }, { "docid": "54b492b13148ee66d938fe75fee8e019", "score": "0.5928574", "text": "protected function sendRequest() {\n $this->response = $this->client->request( 'POST', self::PAGE, [\n 'debug' => $this->remotePlusDebug,\n 'version' => $this->remotePlusHttpVersion,\n 'headers' => [ 'Content-Type' => $this->remotePlusContentType,\n 'Authorization' => $this->getAuthenticationHeaderValue( $this->user, $this->pass ), ],\n 'body' => $this->requestBody,\n ] );\n }", "title": "" }, { "docid": "757a29489d96e2fa97bd3b216e5874c8", "score": "0.5918567", "text": "abstract protected function post();", "title": "" }, { "docid": "f86c5bd40cfe889fce0d84f731efce26", "score": "0.58868134", "text": "public function sendToProd_post()\n {\n $data = $_POST;\n $result = $this->manage_workorder_model->sendTo_Prod($data);\n return $this->response($result);\n}", "title": "" }, { "docid": "3a4bca5e5d62e28356d6b067997d920c", "score": "0.5886205", "text": "public function event_post()\n {\n \t$this->response(array('success'=>TRUE),200);\n }", "title": "" }, { "docid": "f36768c694992793635164a957ffc321", "score": "0.58629066", "text": "function post($request)\n {\n }", "title": "" }, { "docid": "39aad084cf3a28b20c4eb802f43b3ed8", "score": "0.58614147", "text": "public function doPost(){ \n }", "title": "" }, { "docid": "9cc434e0c0c60a333edaef8bd32dcb22", "score": "0.5861047", "text": "public function testCreateClientResponseUsingPost()\n {\n }", "title": "" }, { "docid": "cc8f75eb07a44d8929e7093aa39d9937", "score": "0.5859838", "text": "function httpPost($req, $params=array()) {\n\t\t$ch = curl_init($req); \n\t\tcurl_setopt($ch, CURLOPT_POST, true);\n\t\t$access_token = $this->getSession();\n\t\tif ($access_token) {\n\t\t\tcurl_setopt($ch,CURLOPT_HTTPHEADER,array('Authorization: Bearer '.$access_token));\n\t\t}\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\t$qs = http_build_query($params);\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $qs);\n\t\t$response = curl_exec($ch); \n\t\tcurl_close($ch);\n\t\t$response = json_decode($response,true);\n\t\tif (isset($response['error'])) {\n\t\t\texit('AppDotNetPHP<br>Error accessing: <br>'.$req.'<br>Error code: '.$response['error']['code']);\n\t\t} else {\n\t\t\treturn $response;\n\t\t}\n\t}", "title": "" }, { "docid": "2a79c2c1623e8c59d760735018cdacc0", "score": "0.58588386", "text": "function post( $url, $data ) {\n\t// use cURL to make the request (as opposed to file_get_contents), so we can get the response content when the response is not 200\n\n\t// Create a connection\n\t$ch = curl_init( $url );\n\t// Setting our options\n\tcurl_setopt( $ch, CURLOPT_POST, true );\n\tcurl_setopt( $ch, CURLOPT_POSTFIELDS, http_build_query($data) );\n\t// Get the response\n\t$response = curlExecAndFormat( $ch );\n\tcurl_close( $ch );\n\treturn $response;\n}", "title": "" }, { "docid": "0fc61664f374df6855ae462ca214a20c", "score": "0.58432794", "text": "public function createpost(){\n\n \n header(\"Content-Type: application/json\");\n $_POST = json_decode(file_get_contents('php://input'), true);\n $userData = $this->Auth->getUserData($_POST['token']); \n if( $userData ) { //user logged in, token verified\n if ($this->postmodel_check($_POST['postData']) == false) {\n\n //frontend do validation also, So no need to show errors for individual input field \n $this->Errorservice->translateCode(\"INVALID_REQUEST\");\n\n } else {\n\n if( $this->Reddit->post($_POST['postData'],$userData->id) == true ) {\n echo json_encode(array( 'success' => true, 'message' => \"Post submitted sucessfully!\" ));\n } \n\n }\n\n }\n\n }", "title": "" }, { "docid": "2ab515ff56f28c29126e9c7481708b40", "score": "0.5841223", "text": "public function request_post($uri, array $options = array()) {\n $options['method'] = 'POST';\n return $this->request($uri, $options);\n }", "title": "" }, { "docid": "7323c7f311703670e4d9a65fc25bdba9", "score": "0.5840253", "text": "public function execute()\n {\n // Load model.\n /* @var $paymentMethod DirectPost */\n $paymentMethod = $this->_objectManager->create('Concordpay\\Payment\\Model\\Concordpay');\n\n // Get request data.\n $callback = json_decode($this->driver->fileGetContents('php://input'), true);\n $data = [];\n foreach ($callback as $key => $val) {\n $data[$key] = $val;\n }\n\n $paymentMethod->processResponse($data);\n }", "title": "" }, { "docid": "6f02a1ea85e6108a89572160133e424c", "score": "0.58294904", "text": "public function testCreateClientUsingPost()\n {\n }", "title": "" }, { "docid": "5dfba9dbcc923d22cac47d651829b27b", "score": "0.582488", "text": "function ez_post($url, $data, $referer='') {\n $data = http_build_query($data);\n \n // parse the given URL\n $url = parse_url($url);\n \n if ($url['scheme'] != 'http') { \n die('Error: Only HTTP request are supported !');\n }\n \n // extract host and path:\n $host = $url['host'];\n $path = $url['path'];\n \n \n if( !isset($url['port'])) $port = 80;\n else $port = $url['port'];\n // open a socket connection on port 80 - timeout: 30 sec\n\n\n $fp = fsockopen($host, $port, $errno, $errstr, 30);\n \n if ($fp){\n \n // send the request headers:\n fputs($fp, \"POST $path HTTP/1.1\\r\\n\");\n fputs($fp, \"Host: $host\\r\\n\");\n \n if ($referer != '')\n fputs($fp, \"Referer: $referer\\r\\n\");\n \n fputs($fp, \"Content-type: application/x-www-form-urlencoded\\r\\n\");\n fputs($fp, \"Content-length: \". strlen($data) .\"\\r\\n\");\n fputs($fp, \"Connection: close\\r\\n\\r\\n\");\n fputs($fp, $data);\n \n $result = ''; \n while(!feof($fp)) {\n // receive the results of the request\n $result .= fgets($fp, 128);\n }\n }\n else { \n return array(\n 'status' => 'err', \n 'error' => \"$errstr ($errno)\"\n );\n }\n \n // close the socket connection:\n fclose($fp);\n \n // split the result header from the content\n $result = explode(\"\\r\\n\\r\\n\", $result, 2);\n \n $header = isset($result[0]) ? $result[0] : '';\n $content = isset($result[1]) ? $result[1] : '';\n \n // return as structured array:\n return array(\n 'status' => 'ok',\n 'header' => $header,\n 'content' => $content\n );\n}", "title": "" }, { "docid": "d6afa55eca4024f2780decad0ba958d6", "score": "0.5815826", "text": "function PostApi( $dataForm ){\n\t\t//API URL\n\t\t$url = 'http://api.smart-home.com.co/api/LeadForm/';\n\t\t//create a new cURL resource\n\t\t$ch = curl_init($url);\n\t\t//setup request json via POST\n\t\t$data = array(\n\t\t\t\t'name' => $dataForm[ 'nombre' ]\n\t\t\t, 'email' => $dataForm[ 'email' ]\n\t\t\t,\t'phone_number'\t=>\t$dataForm[ 'telefono' ]\n\t\t\t,\t'origin'\t=>\t'pagina.web_location.href'\n\t\t\t,\t'comment'\t=> 'Registro desde Landing page Amaro'\n\t\t\t,\t'projectId'\t=>\t'NFBJyAqCPD1G4QLZUowGG-Q3FM2ad92Mw8WeFrgrqT3YZi5A9nqSep9u3FPmB8wi'\n\t\t\t,\t'locationSourceId'\t=>\t'b81daa2c-ff95-4f25-b8ab-d0c98c5e4fb7'\n\t\t);\n\t\t$payload = json_encode( $data );\n\n\t\t//attach encoded JSON string to the POST fields\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $payload);\n\n\t\t//set the content type to application/json\n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));\n\n\t\t//return response instead of outputting\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n\t\t//execute the POST request\n\t\t$result = curl_exec($ch);\n\t\t// var_dump( $result );\n\n\t\t//close cURL resource\n\t\tcurl_close($ch);\n\n\t}", "title": "" }, { "docid": "410fa5db3f527b5bb5c6b95d3ffa4c7f", "score": "0.58123523", "text": "public function post(string $uri, array $params): ResponseInterface;", "title": "" }, { "docid": "0e204796aafe6cfb2a41bdc1eed67f57", "score": "0.58077204", "text": "function mod_bongo_execute_rest_call($urladdress, $postfields) {\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $urladdress);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS,\n $postfields\n );\n curl_setopt($ch, CURLOPT_POST, 1);\n\n $headers = array();\n $headers[] = 'Content-Type: application/x-www-form-urlencoded';\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($ch);\n if (curl_errno($ch)) {\n print 'Error:' . curl_error($ch);\n }\n curl_close($ch);\n\n return $result;\n}", "title": "" }, { "docid": "684f3b1efcc2d74a54c8c022db1935f8", "score": "0.5807704", "text": "function post($action,$params = array(),$options = array()){\n\t\t$options[\"method\"] = \"POST\";\n\t\treturn $this->_doRequest($action,$params,$options);\n\t}", "title": "" }, { "docid": "04fcc942ab698548f7061001734a8ca1", "score": "0.5794928", "text": "public function testPost()\n {\n $this->get('/api/v1/post/1')->seeStatusCode(200);\n }", "title": "" }, { "docid": "1f20e7c9afabce2dc03c85afb1baf61b", "score": "0.5793806", "text": "public function _post() { }", "title": "" }, { "docid": "f041a1bf27745ea86ab59d112e84e848", "score": "0.5783249", "text": "public function post(array $parameters);", "title": "" }, { "docid": "f041a1bf27745ea86ab59d112e84e848", "score": "0.5783249", "text": "public function post(array $parameters);", "title": "" }, { "docid": "f041a1bf27745ea86ab59d112e84e848", "score": "0.5783249", "text": "public function post(array $parameters);", "title": "" }, { "docid": "f041a1bf27745ea86ab59d112e84e848", "score": "0.5783249", "text": "public function post(array $parameters);", "title": "" }, { "docid": "fe473ea47417df548888e2036e62b09c", "score": "0.5781868", "text": "public function postGet(): void {\n\t\t$this->response = $this->_request::send(\n\t\t\t$_ENV['HOME_URL'] . '/folder1/folder2/my-class/my-aspect?k2=v2',\n\t\t\t['id' => 2, 'methodUsed' => 'POST', 'description' => 'Request with POST method. Use to create data. Response should be the successful of the action.'],\n\t\t\t'POST',\n\t\t\tnull,\n\t\t\t$this->httpCode\n\t\t);\n\t}", "title": "" }, { "docid": "8fe0e0bfacd09a809b1a53870568467b", "score": "0.57714117", "text": "public function postRequest($url, $json)\n {\n $client = new Zend_Http_Client(\n 'http://' . $url,\n array(\n 'maxredirects' => 0,\n 'timeout' => 1)\n );\n $client->setRawData($json, 'application/json')->request('POST');\n $status = $client->getLastResponse();\n if ($status->getStatus() == 400) { // log bad request\n Mage::log(\"Prediction postRequest BadRequest \" . $json);\n };\n }", "title": "" }, { "docid": "c9a74a30b6b569ffb78d39ef0c53b790", "score": "0.577092", "text": "function post(string $url, array $data, string $auth = \"\", string $message = \"\"): SalsahResponse {\n return $this->makeJsonRequest(self::METHOD_POST, $auth, $url, $data, $message);\n }", "title": "" }, { "docid": "69d144a41e4ad23e65d94472251f48ff", "score": "0.57625145", "text": "public function post( $url, $headers = array() ) {\n\n\t\treturn $this->request( 'POST', $url, $headers );\n\t}", "title": "" }, { "docid": "b8add11b37fb59d940181be6a512f14a", "score": "0.57525057", "text": "public function post($url, array $data);", "title": "" }, { "docid": "5927ec36b918a78e0f4b66eafebc84fe", "score": "0.57474184", "text": "function do_post_request($url, $data, $optional_headers = null) {\n\t\t$headers['Content-type']\t\t= 'Content-type: application/x-www-form-urlencoded';\n\t\t$headers['Content-Length']\t\t= 'Content-Length: '.strlen($data);\n\t\t$headers['User-Agent']\t\t\t= 'User-Agent: PHP/TextWise API';\n\t\tif ( $optional_headers != null ) {\n\t\t\t$headers = array_merge($headers, $optional_headers);\n\t\t}\n\n\t\tif ( $this->use_curl ) {\n\t\t\t$result = $this->do_post_request_curl($url, $data, $headers);\n\t\t} else {\n\t\t\t$result = $this->do_post_request_fopen($url, $data, $headers);\n\t\t}\n\t\treturn $result;\n }", "title": "" }, { "docid": "f4cea6af9277ecc1cd40587e02afeb15", "score": "0.57451475", "text": "public static function executePostRequest($url, $postData, $version = Constants::DEFAULT_VERSION)\n\t{\n $url = self::prependURL($url, $version);\n\t\t//set headers\n\t\t$headers = array(\n\t\t\t'X-Client:' . self::getXClient(),\n\t\t\t'Accept:application/json',\n\t\t\t'Content-Type:application/json',\n\t\t\t'Content-Length: ' . strlen($postData),\n\t\t\t'Authorization: Basic '. base64_encode(Yii::$app->session['token'].':')\n\t\t);\n\t\t//init new curl\n\t\t$curl = curl_init();\n\t\t//set curl options\n\t\tcurl_setopt($curl, CURLOPT_URL, $url);\n\t\tcurl_setopt($curl, CURLOPT_RETURNTRANSFER, true);\n\t\tcurl_setopt($curl, CURLOPT_POST, 1);\n\t\tcurl_setopt($curl, CURLOPT_POSTFIELDS,$postData);\n\t\tcurl_setopt($curl, CURLOPT_HTTPHEADER, $headers);\n\t\t//execute curl\n\t\t$response = curl_exec ($curl);\n\t\t//check authorization, logout and redirect to login if unauthorized\n\t\t$httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);\n\t\tif($httpCode == 401)\n\t\t{\n\t\t\tYii::$app->user->logout();\n throw new UnauthorizedHttpException(Constants::UNAUTH_MESSAGE);\n\t\t}\n\t\telse if($httpCode == 403) // Inadequate permissions.\n\t\t{\n\t\t\tthrow new ForbiddenHttpException(Constants::UNAUTH_MESSAGE);\n\t\t}\n\t\telse if ($httpCode == 400){\n throw new BadRequestHttpException();\n }\n\t\tcurl_close ($curl);\n\t\t\n\t\treturn $response;\n\t}", "title": "" }, { "docid": "31e2638e70d8ba949b66aff6e44f63f4", "score": "0.5740236", "text": "public function post() {\n echo 'Hello World!';\n }", "title": "" }, { "docid": "dc5e98befd825ece3b52188f2504c3e4", "score": "0.57362497", "text": "function makePostRequest($url, $data) {\n\n // konfiguration for POST-request\n $options = array(\n 'http' => array(\n 'header' => \"Content-type: application/x-www-form-urlencoded\\r\\n\",\n 'method' => 'POST',\n 'content' => http_build_query($data)\n )\n );\n\n $context = stream_context_create($options);\n\n $result = file_get_contents($url, false, $context);\n\n if ($result === FALSE) {\n // noget gik galt\n die(\"http error, check photon is online\");\n }\n\n return $result;\n }", "title": "" }, { "docid": "1ac942aa08dbd850c2aebba11500f8de", "score": "0.5736217", "text": "protected function httpMethod()\n {\n return 'POST';\n }", "title": "" }, { "docid": "0952e1f8498b654d2de9ff7f8c45d720", "score": "0.57261676", "text": "public function post() {\n if(\\Drupal::currentUser()->isAnonymous()){\n $data['message'] = $this->t(\"Login failed. If you don't have an account register. If you forgot your credentials please reset your password.\");\n $http_code=401;\n }else{\n $data['message'] = $this->t('Login succeeded');\n $data['token'] = $this->generateToken();\n $http_code=200;\n }\n\n // return new ResourceResponse($data);\n return new JsonResponse($data, $http_code);\n\n }", "title": "" }, { "docid": "a7c5643de83e8ed0e5df1f6fa4a5ea8a", "score": "0.57157093", "text": "public function post($url, $headers = array(), $params = array(), $data = NULL)\n {\n return $this->makeRequest($url, 'POST', $headers, $params, $data );\n }", "title": "" }, { "docid": "ceb17141cd5797fe28185cf2a4d8ed2c", "score": "0.5714762", "text": "function post($post_data)\r\n\t{\r\n\t\t$post = $data = null;\r\n\t\tif (isset($this->curl[CURLOPT_POST])) {\r\n\t\t\t$post = $this->curl[CURLOPT_POST];\r\n\t\t}\r\n\t\tif (isset($this->curl[CURLOPT_POSTFIELDS])) {\r\n\t\t\t$data = $this->curl[CURLOPT_POSTFIELDS];\r\n\t\t}\r\n\r\n\t\t//Setup Post\r\n\t\t$this->curl[CURLOPT_POST] = true;\r\n\t\t$this->curl[CURLOPT_POSTFIELDS] = $post_data;\r\n\t\t//Execute\r\n\t\t$ret = $this->Execute();\r\n\r\n\t\t//Reset\r\n\t\tif ($post === null) {\r\n\t\t\tunset($this->curl[CURLOPT_POST]);\r\n\t\t} else {\r\n\t\t\t$this->curl[CURLOPT_POST] = $post;\r\n\t\t}\r\n\t\tif ($data === null) {\r\n\t\t\tunset($this->curl[CURLOPT_POSTFIELDS]);\r\n\t\t} else {\r\n\t\t\t$this->curl[CURLOPT_POSTFIELDS] = $data;\r\n\t\t}\r\n\r\n\t\treturn $ret;\r\n\t}", "title": "" }, { "docid": "276bdaf0c2615e62221716a7e83d419d", "score": "0.56999606", "text": "public function post($url, $data = [])\n {\n return $this->request('POST', $url, $data);\n }", "title": "" }, { "docid": "1b37eea3bdf29c8bc1659dcdebbae51e", "score": "0.5697049", "text": "function post()\n\t\t{\n\t\t}", "title": "" }, { "docid": "3555a1277ae74083fd7f9a1e1cb60161", "score": "0.56956065", "text": "function post($url, $data = '')\n{\n\t\n\t$ch = curl_init();\n\tcurl_setopt($ch, CURLOPT_URL, $url);\n\tcurl_setopt($ch, CURLOPT_POST, 1);\n\tcurl_setopt($ch, CURLOPT_HEADER, 0);\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); \n\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $data); \n\tcurl_setopt($ch, CURLOPT_HTTPHEADER, \n\t\tarray(\n\t\t\t\"Content-type: application/json\"\n\t\t\t)\n\t\t);\n\t\t\n\n\t$response = curl_exec($ch);\n\tif($response == FALSE) \n\t{\n\t\t$errorText = curl_error($ch);\n\t\tcurl_close($ch);\n\t\tdie($errorText);\n\t}\n\t\n\t$info = curl_getinfo($ch);\n\t$http_code = $info['http_code'];\n\t\t\n\tcurl_close($ch);\n\t\n\treturn $response;\n}", "title": "" }, { "docid": "f0a9e724fb2562f3305d4f529d4e501d", "score": "0.56928605", "text": "public function testWithDataWithPost() {\n\n $data = [\n 'test' => 'testing',\n ];\n\n $request = ServerRequestFactory::fromGlobals(['REQUEST_METHOD' => 'POST']);\n $request = $request->withData($data);\n\n $this->assertEquals([], $request->getQueryParams());\n $this->assertEquals($data, $request->getParsedBody());\n }", "title": "" }, { "docid": "662926a9449526e3828a1c37f6c7c899", "score": "0.5684183", "text": "function httpPost($fields,$url)\n\t{\n\t\t$fields['identification_key'] = 'ihrOIZSz1Z44Zf4CSWZAz946ND5KTIgR';\n\n\t\t// Add the parameters to the request.\n\t\t$fields_string = '';\n\t\tforeach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }\n\t\trtrim($fields_string, '&');\n\n\t\t// open connection\n\t\t$ch = curl_init();\n\n\t\t// set the connection options\n\t\tcurl_setopt($ch,CURLOPT_URL, $url);\n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n\t\tcurl_setopt($ch,CURLOPT_POST, count($fields));\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $fields);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n\t\t// execute post\n\t\t$result = curl_exec($ch);\n\t\t$err = curl_errno ( $ch );\n\t\t$errmsg = curl_error ( $ch );\n\t\t$header = curl_getinfo ( $ch );\n\t\t$httpCode = curl_getinfo ( $ch, CURLINFO_HTTP_CODE );\n\n\t\t// close connection\n\t\tcurl_close($ch);\n\n\t\t$response ['content'] = $result;\n\t\t$response ['code'] = $httpCode;\n\n\t\treturn $response;\n\t}", "title": "" }, { "docid": "8385332560f1c0fa1898a6c75ee3c7e6", "score": "0.56750256", "text": "public function get_me_data_post()\n{\n $data = $this->verify_request();\n // Send the return data as reponse\n $status = parent::HTTP_OK;\n $response = ['status' => $status, 'data' => $data];\n $this->response($response, $status);\n}", "title": "" }, { "docid": "f85efb99615509c65d1db568a5008cda", "score": "0.5667747", "text": "function post($url, $parameters = array()) {\n $response = $this->Request($this->host.$url, 'POST', $parameters);\n if ($this->format === 'json' && $this->decode_json) {\n return json_decode($response);\n }\n return $response;\n }", "title": "" }, { "docid": "b0c03966b2213b72c7bdffab9e1fefa9", "score": "0.5667738", "text": "private function ebPostApi($apiUrl, $params)\r\n {\r\n //initialize and setup the curl handler\r\n $header[]=\"Connection:keep-alive\";\r\n $ch = curl_init();\r\n curl_setopt($ch, CURLOPT_URL, $apiUrl);\r\n curl_setopt($ch, CURLOPT_HTTPHEADER,$header);\r\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\n curl_setopt($ch, CURLOPT_POST, count($params));\r\n curl_setopt($ch, CURLOPT_POSTFIELDS, $params);\r\n curl_setopt($ch, CURLOPT_COOKIEFILE,'cookie.txt');\r\n\r\n //execute the request\r\n $result = curl_exec($ch);\r\n\r\n //json_decode the result\r\n $result = @json_decode($result);\r\n\r\n //if everything went great, return the data\r\n return $result;\r\n }", "title": "" }, { "docid": "708c3c9e6a0e4a6dc77f8b3ef492d212", "score": "0.5657357", "text": "public function postAction()\n {\n $this->view->params = $this->_request->getParams();\n\n /** XXX **/\n\n $this->view->message = 'Resource Created';\n $this->_response->created();\n }", "title": "" }, { "docid": "51cfe51e0622c4ee7a920d15bb595b1d", "score": "0.56550986", "text": "protected function httpPost($url, $data)\n {\n $ch = curl_init();\n\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_POST, count($data));\n curl_setopt($ch, CURLOPT_POSTFIELDS, $data);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n $result = curl_exec($ch);\n\n curl_close($ch);\n\n return $result;\n }", "title": "" }, { "docid": "080aaaecd88c55ad8336003b8484a94d", "score": "0.5648948", "text": "static function post(){\n\t}", "title": "" }, { "docid": "53253088331fa580d90b721890ce375f", "score": "0.5641062", "text": "public function testJsonPostRequest()\n {\n $form = $this->getSampleForm();\n $data = $this->getSampleData();\n $request = new Request([], [], [], [], [], [\n 'REQUEST_METHOD' => 'POST',\n 'HTTP_CONTENT_TYPE' => 'application/json',\n ], json_encode(['rocket' => $data]));\n\n $this->requestHandler->handleRequest($form, $request);\n $this->assertEquals($data, $form->getData());\n }", "title": "" }, { "docid": "d8a8c8c773586590a6becaf82853751f", "score": "0.5636763", "text": "public function post()\n {\n if (!$this->security->isLogged()) {\n return $this->security->NotAllowedRequest();\n }\n\n $body = $this->request->getContent()->jsonToArray();\n\n if (empty($body['title']) || empty($body['description'])) {\n $code = 400;\n $message = 'Bad parameters.';\n\n return $this->jsonResponse->create($code, $message);\n }\n\n $user = $this->session->getUser();\n\n $task = $this->repository->create([\n 'user_id' => $user['id'],\n 'title' => $body['title'],\n 'description' => $body['description'],\n 'status' => 1\n ]);\n\n $code = 200;\n $message = 'Success!';\n $data = $task;\n\n return $this->jsonResponse->create($code, $message, $data);\n }", "title": "" }, { "docid": "8812fcd767c03515cd5784e1013829cb", "score": "0.5635008", "text": "public function test_post_success(){\n $this->request->setCallable(\n function ($CI) {\n $model = $this->getDouble(\n 'Product_model', [\n 'createProduct' => 1\n ]\n );\n // use mocked model to be loaded\n $CI->Product_model = $model;\n }\n );\n\n // set data to be sent\n $data = json_encode([\n 'id' => '1',\n 'stock' => '50',\n 'price' => '1000'\n ]);\n\n // set request as JSON\n $this->request->setHeader('Content-type', 'application/json');\n\n // send request\n $output = $this->request('POST', 'api/v1/products/', $data);\n\n // assert response code and message\n $this->assertResponseCode(200);\n $this->assertStringContainsStringIgnoringCase('TRUE', $output);\n\n }", "title": "" }, { "docid": "3e3b65ac64d5d84704a01d027e637f25", "score": "0.56337965", "text": "public function post($url, $payload = '');", "title": "" }, { "docid": "11654ea55221767b56bd08fc793e4e65", "score": "0.563298", "text": "public function testClassicPostRequest()\n {\n $form = $this->getSampleForm();\n $data = $this->getSampleData();\n $request = new Request([], ['rocket' => $data], [], [], [], ['REQUEST_METHOD' => 'POST']);\n\n $this->requestHandler->handleRequest($form, $request);\n $this->assertEquals($data, $form->getData());\n }", "title": "" }, { "docid": "9997bad87ebf018af8df526bc4ca5711", "score": "0.5619682", "text": "public function post_plurk_upload() {\n\t\t\t$ch = $this -> plurk_login();\n\t\t\t\n\t\t\tcurl_setopt($ch, CURLOPT_URL, $this -> action);\n\t\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\t\t\tcurl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0);\n\t\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $this -> data);\n\t\t\t\n\t\t\t$response = curl_exec($ch);\n\t\t\tcurl_close($ch);\n\t\t\t\n\t\t\treturn json_decode($response, true);\n\t\t}", "title": "" }, { "docid": "2280897ebf9725ff7fdf66f0c1673c34", "score": "0.56157655", "text": "public function post(string $url, array $parameters = [], array $headers = [], array $cookies = []): string;", "title": "" }, { "docid": "550e7740d11c069162e2d1e89ac27d59", "score": "0.56121105", "text": "function getPost() {\n $request = file_get_contents('php://input');\n return json_decode($request, true);\n}", "title": "" }, { "docid": "550e7740d11c069162e2d1e89ac27d59", "score": "0.56121105", "text": "function getPost() {\n $request = file_get_contents('php://input');\n return json_decode($request, true);\n}", "title": "" }, { "docid": "11841f6ee2cb1b855b2c5e73cd5f2948", "score": "0.56094986", "text": "public function testAppPost(){\n $uri = 'http://localhost/uw%20simulation/uw-simulation/api/app.php';\n $client = new GuzzleHttp\\Client();\n\n $reqBody = array( \"email\" => \"[email protected]\", \"name\" => \"Second test application\", \"size\" => \"50mb\", \"version\" => \"2.1.2\", \"compatibility\" => \"Android 10+\", \"downloads\" => \"4000000\", \"status\" => \"Published\", \"age group\" => \"12+\", \"date of release\" => \"2021-06-07\", \"logo\" => \"hanif_ui.png\");\n \n $res = $client->request('POST', $uri , ['headers' =>['content-type' => 'application/json'],'body' => json_encode($reqBody), 'auth' => [\n 'Uwsimulation', \n '3n$5tsds'\n ]]);\n $body = $res->getBody();\n\n $bodArr = json_decode((string) $body, true);\n $this->assertEquals('Inserted Successfully', $bodArr['msg']);\n }", "title": "" }, { "docid": "c3605968e2e92119078b5463a15777bc", "score": "0.560316", "text": "function testRunMethodWithParamsPost() {\n\t\t$_SERVER['REQUEST_METHOD'] = 'POST';\n\t\t$_SERVER['REQUEST_URI'] = '/exposeFunc2/123456post';\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": "d33a64c748bebbfc84d0c399d5cb1f2c", "score": "0.56029683", "text": "public function testRunMethodPost() {\n\t\t$moduleStub = $this->getMockForAbstractClass('Simovative\\Framework\\Module\\Module');\n\t\t$factoryStub = $this->getMockBuilder('Simovative\\Framework\\Dependency\\FactoryInterface')->getMock();\n\t\t$this->kernelStub->method('getModules')->willReturn(array(\n\t\t\t$moduleStub \n\t\t));\n\t\t\n\t\t$moduleStub->method('createFactory')\n\t\t\t->willReturn($factoryStub);\n\t\t\n\t\t$moduleStub->expects($this->once())\n\t\t\t->method('registerPostRouters');\n\t\t\n\t\t$moduleStub->expects($this->once())\n\t\t\t->method('registerModuleControllers');\n\t\t\n\t\t$moduleStub->method('createNavigationContainer')\n\t\t\t->willReturn(null);\n\t\t\n\t\t$this->getRequestStub->method('isGet')\n\t\t\t->willReturn(false);\n\t\t\t\n\t\t$this->getRequestStub->method('isPost')\n\t\t\t->willReturn(true);;\n\t\t\t\n\t\t$this->prepareMocksForRunMethod();\n\t\t\n\t\t$responseResult = $this->kernelStub->run($this->getRequestStub);\n\t\t$this->assertInstanceOf('Simovative\\Framework\\Http\\Response\\HttpResponseInterface', $responseResult);\n\t}", "title": "" }, { "docid": "f3ad35b5c5c1d557006e13fa393d93f1", "score": "0.560078", "text": "public function testPermissionBundlePost(): void\n {\n if (!self::$unitTestConfig->hasPostRoute) {\n self::assertTrue(true);\n return;\n }\n\n $data = $this->getPostDataForPermissionBundle();\n if ($data === null) {\n throw new InvalidArgument('Post-Data should not be null!');\n }\n\n $this->sendRequestWithCookie(\n $data->getResourceURI(),\n self::$unitTestConfig->hasSecurityOnPostRoute,\n [$data->getPermissionKey()],\n -1,\n 'POST',\n $data->getPayload()\n );\n self::assertResponseStatusCodeSame(201);\n }", "title": "" }, { "docid": "81a22479f773d094319446980406f79c", "score": "0.5600694", "text": "function curl_post($url, $post) {\n $curl = curl_init();\n curl_setopt($curl, CURLOPT_URL, $url);\n curl_setopt($curl, CURLOPT_POST, TRUE);\n curl_setopt($curl, CURLOPT_POSTFIELDS, $post);\n curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY);\n curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\n $json_response = curl_exec($curl);\n $this->last_response = $json_response;\n curl_close($curl);\n return $json_response;\n }", "title": "" }, { "docid": "613264984485e0348aa3408cdba8f195", "score": "0.55935025", "text": "public function postAction()\n {\n return $this->handleCreateRequest();\n }", "title": "" }, { "docid": "d8bdbdc6fe2e88dde54bb7ab0ce993bf", "score": "0.5593485", "text": "function post($resource, $params = array()) {\n\t\treturn $this->restapi_client->post($resource, $params);\n\t}", "title": "" }, { "docid": "809eb3555ad656a146963064bfcde243", "score": "0.55908287", "text": "public function postAction() {\n\t\t//\n\t}", "title": "" }, { "docid": "b14d2889757337da1eacf701a1513f76", "score": "0.5583847", "text": "public function post()\n\t{\n\t\treturn Request::current()->post();\n\t}", "title": "" }, { "docid": "667c3565a55eaee10c73f97dfb3efe58", "score": "0.55818343", "text": "public function testPostAction()\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": "83c20375958581b1f6a92bf39e642875", "score": "0.5579673", "text": "public function testApiPostRequest()\n {\n\t \t$products = [\n\t\t\t \t\t'product_id' => 1,\n\t\t\t \t\t'qty' => 1 \n\t\t\t \t];\n\n \t$data = [ 'products' => [ $products\t] ];\n \t//dd($data, json_encode($data));\n\t\t\n\t\t$response = $this->json('POST', '/api/totals', $data);\n\n\t\t$response\n ->assertStatus(200)\n ->assertJson([\n 'total' => '3.50',\n ]);\n\n\t}", "title": "" }, { "docid": "1215c4e9e0a2abc70e13391b76d65a9b", "score": "0.55750793", "text": "public function post(){\n }", "title": "" } ]
a954c34f9ed2139675bba9807c451edd
Get the services provided by the provider.
[ { "docid": "09c1c8478754774165baebbb1ea4d32c", "score": "0.0", "text": "public function provides()\n\t{\n\t\treturn array();\n\t}", "title": "" } ]
[ { "docid": "b84d02e013aef38b01e1c2e360553777", "score": "0.7821468", "text": "public function getProvidedServices();", "title": "" }, { "docid": "ca2d696fdac71c9e7491984d260f4897", "score": "0.7603462", "text": "public function getServiceProviders()\n {\n return [\n $this,\n ];\n }", "title": "" }, { "docid": "a50ec3259dd929ba822b60ae3e1231dd", "score": "0.7468642", "text": "public function getServices();", "title": "" }, { "docid": "c2edbab5c1f9b4a638a3c3c6906e9a18", "score": "0.7422228", "text": "public function getServices()\n {\n return $this->services;\n }", "title": "" }, { "docid": "c2edbab5c1f9b4a638a3c3c6906e9a18", "score": "0.7422228", "text": "public function getServices()\n {\n return $this->services;\n }", "title": "" }, { "docid": "c2edbab5c1f9b4a638a3c3c6906e9a18", "score": "0.7422228", "text": "public function getServices()\n {\n return $this->services;\n }", "title": "" }, { "docid": "c2edbab5c1f9b4a638a3c3c6906e9a18", "score": "0.7422228", "text": "public function getServices()\n {\n return $this->services;\n }", "title": "" }, { "docid": "d1aae99b03100ab1a55c9256ac8b0d91", "score": "0.7379467", "text": "public function get_services() {\n\t\treturn $this->services;\n\t}", "title": "" }, { "docid": "218962da3b68fac6e7381e521288168d", "score": "0.73783386", "text": "public function services() { return $this->services; }", "title": "" }, { "docid": "02fbcea0767209ec06af751275a0a65e", "score": "0.72855455", "text": "public function getServices(): array\n {\n return $this->services;\n }", "title": "" }, { "docid": "02fbcea0767209ec06af751275a0a65e", "score": "0.72855455", "text": "public function getServices(): array\n {\n return $this->services;\n }", "title": "" }, { "docid": "a4a4c0a9ec5229d66e2d56dbfe3640d8", "score": "0.7272932", "text": "public static function getServices()\n\t{\n\t\treturn self::$services;\n\t}", "title": "" }, { "docid": "253fe0185b15154c9b35fe893734733e", "score": "0.72581154", "text": "public static function get_services()\n {\n return [\n pages\\Dashboard::class,\n Base\\enqueue::class,\n Base\\SettingsLinks::class,\n Base\\Settings::class,\n Base\\Validator::class,\n Base\\Curl::class,\n Base\\VideoManager::class\n ];\n }", "title": "" }, { "docid": "df1755747257deafcd767b34ba82b250", "score": "0.72533107", "text": "public function getServices()\n\t{\n\t\treturn $this->services;\n\t}", "title": "" }, { "docid": "69f745448a464b5eb133868accd7c28d", "score": "0.71913004", "text": "public function getServices()\n {\n // Get ePrivacy plugin config\n $config = $this->config->get('plugins.eprivacy');\n \n self::$services = $config['services'];\n \n }", "title": "" }, { "docid": "48e3295ee555fa602330ff436f537a11", "score": "0.7185357", "text": "protected function _getServices()\n {\n if (is_null($this->services)) {\n $definitions = $this->_getServiceDefinitions();\n $this->_trigger('services', array('definitions' => &$definitions));\n\n if (empty($definitions)) {\n $definitions = array();\n }\n\n if (!is_array($definitions)) {\n $definitions = (array) $definitions;\n }\n\n $this->services = $definitions;\n }\n\n return $this->services;\n }", "title": "" }, { "docid": "b723535423dcf61f9446182b531e4be8", "score": "0.71539706", "text": "private static function get_services(){\n return [\n Pages\\Admin::class,\n Base\\Enqueuetor::class,\n Base\\SettingsLinkator::class\n ];\n }", "title": "" }, { "docid": "ef6cb4a1d9747c393df596760a2b68e5", "score": "0.7052005", "text": "public static function get_services ()\n {\n return [\n\n Pages\\Dashboard::class,\n Base\\Enqueue::class,\n Base\\SettingsLinks::class,\n Base\\CPTController::class,\n Base\\ExtendComment::class,\n Base\\CustomTaxonomyController::class,\n Base\\MediaWidgetController::class,\n Base\\TestimonialController::class,\n Base\\TemplateController::class,\n Base\\AuthController::class,\n Base\\GutenbergFunctions::class\n ];\n }", "title": "" }, { "docid": "673c006f4f1bd8f4b1b8df965fdc568b", "score": "0.7036701", "text": "public function getAllServices() {\n return array_map(function($id) {\n return $this->getService($id);\n }, $this->reducers);\n }", "title": "" }, { "docid": "41c0da4d16d4344ac0881682fd20f186", "score": "0.70138", "text": "public static function get_services() {\n\t\treturn [\n\t\t\tPages\\Admin::class,\n\t\t\tBase\\Enqueue::class,\n\t\t\tBase\\SettingsLink::class,\n\t\t];\n\t}", "title": "" }, { "docid": "489c39d91ea95c221f74ed90be43f612", "score": "0.6955714", "text": "public static function get_services()\n {\n return [\n Base\\Activate::class,\n Base\\Deactivate::class,\n Base\\Database::class,\n Base\\Enqueue::class,\n Admin\\HooksTableListActions::class,\n Admin\\RegisterHooks::class,\n Admin\\UserActivityRole::class,\n\n ];\n }", "title": "" }, { "docid": "ed4a510c65db06f87046d46e6f4e9a62", "score": "0.6949639", "text": "protected static function getServiceProviders(): array\n {\n return [];\n }", "title": "" }, { "docid": "74bf4d578238e1a839da9883ae090ea1", "score": "0.6922216", "text": "protected function getServices()\n {\n $services = new Hostingcheck_Services();\n return $services;\n }", "title": "" }, { "docid": "14f3e4fcc205b19b47b622fab5c0ac24", "score": "0.69119126", "text": "abstract public function getServiceProviders();", "title": "" }, { "docid": "29df9cc82bc7107bbbee186cef0c63ad", "score": "0.68475986", "text": "public function getServices()\n {\n try {\n return $this->service->orderBy('created_at')->get();\n } catch (\\Exception $e) {\n self::logErr($e->getMessage());\n return new Collection();\n }\n }", "title": "" }, { "docid": "270e5c601dbf1b44b937160a8f3b8c6b", "score": "0.68470985", "text": "public function provides()\n {\n return [Service::class];\n }", "title": "" }, { "docid": "9b52c69873098b7496bd45037b9cc908", "score": "0.675179", "text": "public function getServiceProviders(): array\n {\n return [\n TrustupVersionedPackageServiceProvider::class,\n ServerAuthorizationServiceProvider::class,\n TrustupProAdminCommonServiceProvider::class,\n MongodbServiceProvider::class,\n ClientServiceProvider::class,\n ChargebeeClientProvider::class,\n LaravelModelQueriesServiceProvider::class\n ];\n }", "title": "" }, { "docid": "e83159fd7548f6ab3741644114c8dffd", "score": "0.67089933", "text": "protected function getServices() {\n\t\t\tif (empty($this->setup['services']) || empty($this->setup['serviceList'])) {\n\t\t\t\treturn array();\n\t\t\t}\n\n\t\t\t$serviceList = t3lib_div::trimExplode(',', $this->setup['serviceList']);\n\t\t\t$services = array();\n\n\t\t\tforeach ($serviceList as $name) {\n\t\t\t\t$services[$name] = $this->setup['services'][$name];\n\t\t\t}\n\n\t\t\treturn $services;\n\t\t}", "title": "" }, { "docid": "18fb88e0c2f0b7344b514c430114bbf4", "score": "0.67001957", "text": "public static function ServiceProviders(){\n $services = new ServiceManager( self::$app );\n $services->registerServices(array(\n 'Illuminate\\Events\\EventServiceProvider',\n 'Illuminate\\Database\\DatabaseServiceProvider'\n ));\n }", "title": "" }, { "docid": "d73142854b4bae8512fba2ac953f3071", "score": "0.66222125", "text": "public function getServices(): array\n {\n return [\n ViewFactoryInterface::class => $this->getViewFactory(),\n ];\n }", "title": "" }, { "docid": "cc74889c7e912966c4bcc4f3ee4e846f", "score": "0.66144794", "text": "public function getRegisteredServices()\n {\n return [\n 'invokableClasses' => array_keys($this->invokableClasses),\n 'factories' => array_keys($this->factories),\n 'aliases' => array_keys($this->aliases),\n 'instances' => array_keys($this->instances),\n ];\n }", "title": "" }, { "docid": "06573737fd91f305173e3418bdccd829", "score": "0.65673995", "text": "public function listServices()\n {\n if (!isset($this->serviceList)) {\n $methods = get_class_methods($this);\n $pattern = '/^([a-zA-Z0-9]+)Service$/';\n foreach ($methods as $m) {\n if (preg_match($pattern, $m, $matches)) {\n $this->serviceList[$matches[1]] = $matches[1];\n }\n }\n }\n return $this->serviceList;\n }", "title": "" }, { "docid": "33a43055b88aa413ec3ab8d12d8bd4be", "score": "0.6541237", "text": "public function getServices(): array\r\n {\r\n return array_keys($this->services);\r\n }", "title": "" }, { "docid": "fa2b52f665bb700132e1891bca810a12", "score": "0.65327984", "text": "public function apiGetServices()\n {\n try {\n return $this->service->select('id', app()->getLocale() . '_name as name')->get();\n } catch (\\Exception $e) {\n \\DB::rollBack();\n self::logErr($e->getMessage());\n return array();\n }\n }", "title": "" }, { "docid": "5d9767c30464298b32dbfb4b2be063af", "score": "0.6517301", "text": "private function serviceProviders()\n {\n // $this->app->register('...\\...\\...');\n }", "title": "" }, { "docid": "08d9de1a124ebf48c0ee4fb7e5ad1674", "score": "0.64865273", "text": "public function provides()\n\t{\n\t\t$provides = array();\n\n\t\tforeach ($this->providers as $provider)\n\t\t{\n\t\t\t$instance = $this->app->resolveProviderClass($provider);\n\n\t\t\t$provides = array_merge($provides, $instance->provides());\n\t\t}\n\n\t\treturn $provides;\n\t}", "title": "" }, { "docid": "647fb1b08ac27bf27d4af2bca51d5e10", "score": "0.6461715", "text": "public function provides()\n {\n return [ServiceCheckProviders::class];\n }", "title": "" }, { "docid": "c8cb04ef477254f245bd8147a6220c3f", "score": "0.6460104", "text": "public function provides()\n {\n return [\n 'flysystem.adapterfactory',\n 'flysystem.cachefactory',\n 'flysystem.factory',\n 'flysystem',\n 'flysystem.connection',\n ];\n }", "title": "" }, { "docid": "22dfa556a393ba5770dca121731a567f", "score": "0.64380604", "text": "public function provides()\n {\n return [\n 'digitalocean',\n 'digitalocean.factory',\n ];\n }", "title": "" }, { "docid": "9bd6285b949deeb37597adf5d2a51024", "score": "0.64214486", "text": "public function provides()\n {\n return [\n Factory::class,\n Accounting::class,\n ];\n }", "title": "" }, { "docid": "dbcfbeb7febac6ff4289f6a1c26874f6", "score": "0.63841057", "text": "public function getServices(): array\n {\n /**\n * uses AD7six/php-dsn utility for parsing database DSN\n * @see https://github.com/AD7six/php-dsn\n */\n $dsn = new MysqlDsn(getenv('DATABASE_DSN'));\n $config = [\n 'main' => [\n 'namespace' => '\\CCMBenchmark\\Ting\\Driver\\Mysqli',\n 'master' => [\n 'host' => $dsn->getHost(),\n 'user' => $dsn->getUser(),\n 'password' => $dsn->getPass(),\n 'port' => $dsn->getPort(),\n ],\n ]\n ];\n return [\n ConnectionPool::class => function (ContainerInterface $c) use ($config) {\n $pool = new ConnectionPool;\n $pool->setConfig($config);\n\n return $pool;\n },\n\n MetadataRepository::class => function (ContainerInterface $c) {\n $repository = new MetadataRepository($c->get(SerializerFactory::class));\n $repository->batchLoadMetadata('App\\Model\\Repository', $c->get('app.dir') . '/Model/Repository/*.php');\n\n return $repository;\n },\n\n UnitOfWork::class => function (ContainerInterface $c) {\n return new ChangeloggedIdentityAwareUnityOfWork(\n $c->get(ConnectionPool::class),\n $c->get(MetadataRepository::class),\n $c->get(QueryFactory::class),\n 10\n );\n },\n\n CollectionFactory::class => function (ContainerInterface $c) {\n return new CollectionFactory(\n $c->get(MetadataRepository::class),\n $c->get(UnitOfWork::class),\n $c->get(Hydrator::class)\n );\n },\n\n QueryFactory::class => function (ContainerInterface $c) {\n return new QueryFactory;\n },\n\n SerializerFactory::class => function (ContainerInterface $c) {\n return new SerializerFactory;\n },\n\n Hydrator::class => function (ContainerInterface $c) {\n $hydrator = new Hydrator;\n\n $hydrator->setMetadataRepository($c->get(MetadataRepository::class));\n $hydrator->setUnitOfWork($c->get(UnitOfWork::class));\n\n return $hydrator;\n },\n\n HydratorSingleObject::class => function (ContainerInterface $c) {\n $hydrator = new HydratorSingleObject;\n\n $hydrator->setMetadataRepository($c->get(MetadataRepository::class));\n $hydrator->setUnitOfWork($c->get(UnitOfWork::class));\n\n return $hydrator;\n },\n\n RepositoryFactory::class => function (ContainerInterface $c) {\n return new RepositoryFactory(\n $c->get(ConnectionPool::class),\n $c->get(MetadataRepository::class),\n $c->get(QueryFactory::class),\n $c->get(CollectionFactory::class),\n $c->get(UnitOfWork::class),\n $c->get(Cache::class),\n $c->get(SerializerFactory::class)\n );\n },\n Cache::class => function (ContainerInterface $c) {\n return new VoidCache;\n }\n ];\n }", "title": "" }, { "docid": "cf20d6127b0a1eca5e169e3c21466e0f", "score": "0.6384104", "text": "public function provides()\n {\n return [\n JusBrasilService::class\n ];\n }", "title": "" }, { "docid": "06d60f13f8903193b74abb7ef473de40", "score": "0.63529843", "text": "public function provides()\n {\n return [ChurchSuiteService::class];\n }", "title": "" }, { "docid": "7f13ec275a7ef4d380bcb73b9e5ebc67", "score": "0.63523996", "text": "public function getProviders(): array\n {\n $arr = [];\n\n foreach ($this->getRegisteredProviders() as $providerClass) {\n $arr[] = app($providerClass);\n }\n\n return $arr;\n }", "title": "" }, { "docid": "0d10ebea54001dcdaaff9d33a23428ac", "score": "0.6332431", "text": "protected function registerAvailableServices() {\n $services = $this->config->module->services->toArray();\n foreach ($services as $service) {\n $provider = $this->providersFactory->getProvider($service);\n $provider->register();\n }\n }", "title": "" }, { "docid": "7919ae00e89e150e150541294f657b81", "score": "0.6325062", "text": "public function list()\n {\n return $this->providerService->get();\n }", "title": "" }, { "docid": "126ce6106cbfb4bd60e33e203a44df36", "score": "0.6300141", "text": "protected function getServices(): array\n {\n $result = [];\n\n $availableServices = Service::findBy(['published = ?'], [1], ['order' => 'sorting ASC']);\n foreach ($availableServices as $id => $service) {\n $result[$service->id] = $service;\n }\n\n return $result;\n }", "title": "" }, { "docid": "3cd38544d4a3b1724f183a582fed7bee", "score": "0.62949044", "text": "public function providers()\n {\n //\n }", "title": "" }, { "docid": "933d86735128af5cebf4c1d8dc80e4b6", "score": "0.6281974", "text": "public function getProviders()\n {\n return $this->_providers;\n }", "title": "" }, { "docid": "143f11450e1cb05544beb6bc0803d809", "score": "0.6277632", "text": "abstract protected function registerServiceProviders(): array;", "title": "" }, { "docid": "cd7adfd16c833ad908e58267a2feb097", "score": "0.6276109", "text": "public function provides()\n {\n return [\n Contracts\\GeoIP::class,\n Contracts\\DriverFactory::class,\n Contracts\\GeoIPDriver::class,\n Contracts\\GeoIPCache::class,\n Contracts\\DriverFactory::class,\n ];\n }", "title": "" }, { "docid": "da1597cf104ee6f44e48b94cd873dcdb", "score": "0.6268218", "text": "public function getProviders()\n {\n return $this->providers;\n }", "title": "" }, { "docid": "8e941bf0cb339655342827576049dc1f", "score": "0.62656254", "text": "function getServices()\n\t{\n\t\t$this->_omit = array();\n\t\t$this->_path = $GLOBALS['amfphp']['servicePath'];\n\t\t$services = array_merge($this->_listServices(XINGCLOUD_SERVICE_DIR.__DS__), $this->_listServices(GAME_SERVICE_DIR.__DS__));\n\t\t//Now sort on key\n\t\tksort($services);\n\t\t$out = array();\n\t\tforeach($services as $key => $val)\n\t\t{\n\t\t\tif($key == \"zzz_default\")\n\t\t\t{\n\t\t\t\tforeach($val as $key2 => $val2)\n\t\t\t\t{\n\t\t\t\t\t$out[] = array(\"label\" => $val2[0], \"data\" => $val2[1]);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$children = array();\n\t\t\t\tforeach($val as $key2 => $val2)\n\t\t\t\t{\n\t\t\t\t\t$children[] = array(\"label\" => $val2[0], \"data\" => $val2[1]);\n\t\t\t\t}\n\t\t\t\t$out[] = array(\"label\" => $key, \"children\" => $children, \"open\" => true);\n\t\t\t}\n\t\t}\n\t\treturn $out;\n\t}", "title": "" }, { "docid": "e02ad8707a232afc1c58bdcd4981f559", "score": "0.62571937", "text": "public function listAvailableServices()\n {\n \n #if (count($this->services) == 0)\n #return new \\stdClass ();\n #else\n return $this->services;\n }", "title": "" }, { "docid": "9014f2c94bf9d8aee17b442b494cec47", "score": "0.62556684", "text": "public function provides()\n {\n return [\n 'twitter',\n 'twitter.factory'\n ];\n }", "title": "" }, { "docid": "7e2d6817e153ae0d40aa21b3cf46b774", "score": "0.6248341", "text": "public function provides()\n {\n return [\n 'gitlab.httpclientfactory',\n 'gitlab.authfactory',\n 'gitlab.cachefactory',\n 'gitlab.factory',\n 'gitlab',\n 'gitlab.connection',\n ];\n }", "title": "" }, { "docid": "2800c6f78fcf605cc2114b8dd90f1ae3", "score": "0.6240714", "text": "static function getProvidersList() {\n\t\t$providers = array();\n\t\tforeach(get_declared_classes() as $klass) {\n\t\t\t$reflect = new ReflectionClass($klass);\n\t\t\tif ($reflect->implementsInterface('ServiceProvider')) {\n\t\t\t\t$prop = $reflect->getStaticProperties();\n\t\t\t\t$wname = $prop[\"widgetName\"];\n\t\t\t\t$providers[$wname] = array(\"class\" => $klass, \"icon\" => $prop[\"widgetIcon\"]);\n\t\t\t}\n\t\t}\n\t\treturn $providers;\n\t}", "title": "" }, { "docid": "f3f40736b03553d6a4bbdc672bbf78d5", "score": "0.62380546", "text": "public function getListOfServices()\n {\n try {\n return $this->service->pluck(app()->getLocale() . '_name', 'id');\n } catch (\\Exception $e) {\n \\DB::rollBack();\n self::logErr($e->getMessage());\n return array();\n }\n }", "title": "" }, { "docid": "6dd034de743222048e785cce3a36c607", "score": "0.6225659", "text": "public function provides()\n {\n $provides = $this->provides;\n\n foreach ($this->providers as $provider) {\n $instance = $this->app->resolveProviderClass($provider);\n\n $provides = array_merge($provides, $instance->provides());\n }\n\n $commands = [];\n foreach ($this->commands as $k => $v) {\n if (is_string($k)) {\n $commands[] = $k;\n }\n }\n\n return array_merge(\n $provides,\n array_keys($this->aliases),\n array_keys($this->bindings),\n array_keys($this->share),\n array_keys($this->shared),\n array_keys($this->singletons),\n array_keys($this->weaklings),\n $commands\n );\n }", "title": "" }, { "docid": "0db944f75faac06f00c9e5da161ef2b7", "score": "0.6189049", "text": "function loadServices() {\n\n //Get the services of all active services\n\n return $this->removeInActiveFormatRecords((array) $this->getSessionVar(self::SERVICES));\n }", "title": "" }, { "docid": "6025e50d00e04ec418e3b85d50f77aea", "score": "0.6178606", "text": "protected function getServiceProvider()\n {\n return $this->getContainer()->get('metagist.controller.serviceprovider');\n }", "title": "" }, { "docid": "e6c7cc250a163ce165ea8455e9807f90", "score": "0.6177777", "text": "public function provides()\n {\n return [ZipkinService::class];\n }", "title": "" }, { "docid": "7b5818c670aed4be0d6f6a443d6da440", "score": "0.617775", "text": "public function listServices()\n {\n if (!isset($this->serviceList)) {\n $this->serviceList = array();\n $services = $this->findAllServices();\n foreach ($services as $name => $s) {\n $this->serviceList[$name] = sprintf(\n 'Service [%s]: %s',\n $name,\n $s->describe()\n );\n }\n }\n return $this->serviceList;\n }", "title": "" }, { "docid": "4694895daa1180f2d3da1b032f5a64a7", "score": "0.6174101", "text": "public function provides()\n\t{\n\t\treturn array(\n\t\t\t'Aimeos\\Shop\\Base\\Aimeos', 'Aimeos\\Shop\\Base\\I18n', 'Aimeos\\Shop\\Base\\Context',\n\t\t\t'Aimeos\\Shop\\Base\\Config', 'Aimeos\\Shop\\Base\\Locale', 'Aimeos\\Shop\\Base\\View',\n\t\t\t'Aimeos\\Shop\\Base\\Support', 'Aimeos\\Shop\\Base\\Shop',\n\t\t\t'Aimeos\\Shop\\Command\\AccountCommand', 'Aimeos\\Shop\\Command\\ClearCommand',\n\t\t\t'Aimeos\\Shop\\Command\\SetupCommand', 'Aimeos\\Shop\\Command\\JobsCommand',\n\t\t);\n\t}", "title": "" }, { "docid": "b18e05ce67906c923de9be63b48da8e0", "score": "0.61718875", "text": "private function registerServiceProviders()\n {\n foreach ($this->providers as $provider) {\n $this->app->register($provider);\n }\n }", "title": "" }, { "docid": "25abdc50540d2552b16474bbba1a2d7f", "score": "0.6168405", "text": "function getServices()\n {\n return include __DIR__.'/../../config/nest-services.conf.php';\n }", "title": "" }, { "docid": "525d48e453d824cbcd9ac30955341f88", "score": "0.6164367", "text": "public function registerServiceProviders()\n\t{\n\t\tforeach ($this->getServiceProviders() as $provider)\n\t\t{\n\t\t\t$this->app->register($provider);\n\t\t}\n\t}", "title": "" }, { "docid": "efe85ea03e9120350dc9b5aa93f178a9", "score": "0.6159832", "text": "private function loadDefaultServices()\r\n {\r\n $services = new ArrayObject();\r\n $dbService = new DbService();\r\n if (isset($this->config['services']['DbService'])) {\r\n $dbService->configure($this->config['services']['DbService']);\r\n \r\n }\r\n $this->injector->registerService($dbService);\r\n $services[] = $dbService;\r\n\r\n\t\t$service = new TypeManager();\r\n if (isset($this->config['services']['TypeManager'])) {\r\n $service->configure(ifset($this->config['services'], 'TypeManager', array()));\r\n }\r\n $this->injector->registerService($service);\r\n $services[] = $service;\r\n \r\n $service = new SearchService();\r\n if (isset($this->config['services']['SearchService'])) {\r\n $service->configure($this->config['services']['SearchService']);\r\n }\r\n $this->injector->registerService($service);\r\n $services[] = $service;\r\n\r\n $authService = new AuthService();\r\n if (isset($this->config['services']['AuthService'])) {\r\n $authService->configure($this->config['services']['AuthService']);\r\n }\r\n $this->injector->registerService($authService);\r\n $services[] = $authService;\r\n\r\n $authComponent = new AuthComponent();\r\n if (isset($this->config['services']['AuthComponent'])) {\r\n $authComponent->configure($this->config['services']['AuthComponent']);\r\n }\r\n $this->injector->registerService($authComponent);\r\n $services[] = $authComponent;\r\n\r\n $tasksService = new ScheduledTasksService();\r\n $this->injector->registerService($tasksService);\r\n $services[] = $tasksService;\r\n \r\n $accessService = new AccessService();\r\n $this->injector->registerService($accessService);\r\n $services[] = $accessService;\r\n \r\n $cacheService = new CacheService();\r\n\t\t$this->injector->registerService($cacheService);\r\n $services[] = $cacheService;\r\n \tif (isset($this->config['services']['CacheService'])) {\r\n $cacheService->configure($this->config['services']['CacheService']);\r\n }\r\n\r\n\t\t$service = new VersioningService();\r\n\t\t$this->injector->registerService($service);\r\n $services[] = $service;\r\n \tif (isset($this->config['services']['VersioningService'])) {\r\n $service->configure($this->config['services']['VersioningService']);\r\n }\r\n\r\n return $services;\r\n }", "title": "" }, { "docid": "91675ba07f310e358d66fb57463622c7", "score": "0.61493087", "text": "public function getProviders()\n\t{\n\t\treturn $this->providers;\n\t}", "title": "" }, { "docid": "91675ba07f310e358d66fb57463622c7", "score": "0.61493087", "text": "public function getProviders()\n\t{\n\t\treturn $this->providers;\n\t}", "title": "" }, { "docid": "3305c745e658e96d8897d6aa7276d103", "score": "0.6143187", "text": "public function getServicos()\n {\n return $this->servicos;\n }", "title": "" }, { "docid": "850339ac1a856f0a71cbceceee6f7c40", "score": "0.61399984", "text": "public function provides()\n {\n return ['lada.redis', 'lada.cache', 'lada.invalidator', 'lada.handler'];\n }", "title": "" }, { "docid": "7334b2ebe920de8c5dc2c602c8b87ce1", "score": "0.6133649", "text": "public function getProviders()\n {\n $providers = Arr::get($this->getGeneral(), 'providers', []);\n $routeId = array_search(RouteProvider::class, $providers);\n unset($providers[$routeId]);\n\n return array_merge($this->constructors, $providers);\n }", "title": "" }, { "docid": "a1b23f728a699318fa09b8a0e76e0b24", "score": "0.6120339", "text": "public function provides()\n {\n return [\n Webinar::class,\n //Meeting::class,\n ];\n }", "title": "" }, { "docid": "3b8f1ed61bcdec2c8d4f549229dc73ff", "score": "0.6100064", "text": "public function provides()\n\t{\n\t\treturn array(\"SentryManager\");\n\t}", "title": "" }, { "docid": "7f9605faa3d64aa9d1cba099725b47aa", "score": "0.6096568", "text": "public function loadServiceProvider() : void\n {\n foreach (config('cart.services') as $services) {\n /** @var ServiceProviderContract */\n (new $services)->register($this->app);\n }\n }", "title": "" }, { "docid": "4f232b88eb20ef9954a5f0942727079c", "score": "0.6084051", "text": "public function provides()\n {\n return [\n Payment\\FactoryContract::class,\n Payout\\FactoryContract::class,\n ];\n }", "title": "" }, { "docid": "2222c61e9cfae0628929491be8feec35", "score": "0.60639846", "text": "public function getRegisteredProviders(): array\n {\n return $this->providers;\n }", "title": "" }, { "docid": "5fb634cec399b845bf32dc1e1b472c51", "score": "0.6055515", "text": "public function provides()\n {\n return ['orange-sms', 'orange-sms-client', SMSClient::class, SMS::class];\n }", "title": "" }, { "docid": "18c25c5f0383165a923cd83577ee4aa4", "score": "0.6049583", "text": "public function provides() {\n\t\treturn array();\n\t}", "title": "" }, { "docid": "89398c41c9396c82e11e079559354f00", "score": "0.6036962", "text": "public function provides()\n {\n return [\n CacheManager::class,\n EntityManagerInterface::class,\n EntityManager::class,\n ClassMetadataFactory::class,\n DriverMapper::class,\n AuthManager::class,\n ];\n }", "title": "" }, { "docid": "69df219ba14b71152ef18ec6037b5efe", "score": "0.6029014", "text": "protected function getProviders()\n\t{\n\t\tif (!empty($folder = $this->config->get('auto-provider.providers_folder_path'))) {\n\t\t\t// List of all files in directory\n\t\t\t$files = $this->file->files($folder);\n\n\t\t\tforeach ($files as $file) {\n\t\t\t\t$fileInfo = pathinfo($file);\n\n\t\t\t\tif ($fileInfo['extension'] == 'php') {\n\t\t\t\t\t$this->addProvider($fileInfo['filename']);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->addProvidersToManifest();\n\t\t}\n\n\t\treturn $this->providers;\n\t}", "title": "" }, { "docid": "ce6c42167e7af7e3a9b3a0331a789fb7", "score": "0.60280883", "text": "public function provides()\n {\n return [IntegrationServiceInterface::class];\n }", "title": "" }, { "docid": "8a6eb68e1974d32d63cdeaceb46ae51e", "score": "0.6027098", "text": "public function fetchProviders()\n {\n $entityManager = $this->managerRegistry->getManager();\n $providers = $entityManager->getRepository('AppBundle:Provider')->findAll();\n return $providers;\n }", "title": "" }, { "docid": "be84695fc2bda7c5c2986d6f4ba597a5", "score": "0.6024537", "text": "public function provides()\n {\n return [\n 'Royalcms\\Component\\Bus\\Dispatcher',\n 'Royalcms\\Component\\Contracts\\Bus\\Dispatcher',\n 'Royalcms\\Component\\Contracts\\Bus\\QueueingDispatcher',\n ];\n }", "title": "" }, { "docid": "047bd830a8b5d97ce306b1faa493e337", "score": "0.60192496", "text": "public function getServicesList(){\n return $this->_get(1);\n }", "title": "" }, { "docid": "95813d07852c4ecb8d5885ced09cb2ea", "score": "0.60149306", "text": "public function provides()\n {\n return [\n BroadcasttManager::class,\n BroadcasttFactory::class,\n BroadcasttClient::class,\n ];\n }", "title": "" }, { "docid": "8c109a015e15b2ec9656675d11c52c1e", "score": "0.60140777", "text": "public function provides()\n {\n return [\n 'paypal',\n 'paypal.factory',\n 'paypal.connection',\n ];\n }", "title": "" }, { "docid": "11966db13af169ff50b8f5488c397223", "score": "0.6014057", "text": "public static function getAllServices()\n {\n try {\n // CommonComponent::activityLog(\"GET_STATE\", GET_STATE, 0, HTTP_REFERRER, CURRENT_URL);\n $allservices = [];\n $allservices[0] = 'Services (ALL)';\n $roleId = Auth::User()->lkp_role_id;\n $allservice = DB::table('lkp_services');\n $allservice->orderBy('service_name', 'asc');\n $allservice->where('is_active', '1');\n $allservice = $allservice->lists('service_name', 'id');\n foreach ($allservice as $id => $servicename) {\n $allservices[$id] = $servicename;\n }\n return $allservices;\n } catch (Exception $ex) {\n\n }\n }", "title": "" }, { "docid": "b937e0c2f16910fe2515bad06d91b8d6", "score": "0.60091466", "text": "public function provides()\n {\n return array(\n 'App\\Repositories\\Contracts\\Registration',\n 'App\\Repositories\\Contracts\\RegistrationInpatient',\n 'App\\Repositories\\Contracts\\Doctor',\n 'App\\Repositories\\Contracts\\RoomCare',\n 'App\\Repositories\\Contracts\\Policlinic',\n );\n }", "title": "" }, { "docid": "81b08e288299b179581f03ed6f452e40", "score": "0.6000648", "text": "private function loadServiceProvider()\n {\n \\Tiga\\Framework\\Facade\\Facade::setFacadeContainer($this);\n\n // Available Provider\n $providers = $this['config']->get('provider');\n\n $providers = array_unique($providers);\n\n foreach ($providers as $provider) {\n $instance = new $provider($this);\n $instance->register();\n }\n\n // Aliases\n $aliases = $this['config']->get('alias');\n\n $aliases = array_unique($aliases);\n\n $aliasMapper = \\Tonjoo\\Almari\\AliasMapper::getInstance();\n\n $aliasMapper->classAlias($aliases);\n }", "title": "" }, { "docid": "a5de448b9538100ce3291ba40a7009fa", "score": "0.59993094", "text": "public function provides()\n {\n return array();\n }", "title": "" }, { "docid": "a5de448b9538100ce3291ba40a7009fa", "score": "0.59993094", "text": "public function provides()\n {\n return array();\n }", "title": "" }, { "docid": "a5de448b9538100ce3291ba40a7009fa", "score": "0.59993094", "text": "public function provides()\n {\n return array();\n }", "title": "" }, { "docid": "a5de448b9538100ce3291ba40a7009fa", "score": "0.59993094", "text": "public function provides()\n {\n return array();\n }", "title": "" }, { "docid": "a5de448b9538100ce3291ba40a7009fa", "score": "0.59993094", "text": "public function provides()\n {\n return array();\n }", "title": "" }, { "docid": "a5de448b9538100ce3291ba40a7009fa", "score": "0.59993094", "text": "public function provides()\n {\n return array();\n }", "title": "" }, { "docid": "a5de448b9538100ce3291ba40a7009fa", "score": "0.59993094", "text": "public function provides()\n {\n return array();\n }", "title": "" }, { "docid": "a5de448b9538100ce3291ba40a7009fa", "score": "0.59993094", "text": "public function provides()\n {\n return array();\n }", "title": "" }, { "docid": "a5de448b9538100ce3291ba40a7009fa", "score": "0.59993094", "text": "public function provides()\n {\n return array();\n }", "title": "" }, { "docid": "a5de448b9538100ce3291ba40a7009fa", "score": "0.59993094", "text": "public function provides()\n {\n return array();\n }", "title": "" } ]
72b7c7a5275a70e6f220f7ed0cc59d77
/ GET Form Variables
[ { "docid": "909d418b912f3c91b7bd3b3ccdc677b9", "score": "0.0", "text": "function processForm() {\n\t$jobUserName = $_POST[\"job-username\"];\n\t$jobCategory = $_POST[\"job-usercategory\"];\n\t$jobUserContact = $_POST[\"job-usercontactno\"];\n\t$jobUserEmail = $_POST[\"job-useremail\"];\n\t\n\tif (empty($jobUserName) || empty($jobCategory) || empty($jobUserContact) || empty($jobUserEmail)) {\n\t\techo \"<h4 class='errMsg'>Please give all the details.</h4>\";\n\t\treturn;\n\t}\n\t\n\tif (!empty($jobUserName) && !preg_match(\"/^[a-zA-Z ]*$/\",$jobUserName)) {\n\t\techo \"<h4 class='errMsg'>Name field allowed only letters and white space.</h4>\";\n\t\treturn;\n\t}\n\t\n\tif (!empty($jobUserContact) && !preg_match(\"/^\\d{10}$/\",$jobUserContact)) {\n\t\techo \"<h4 class='errMsg'>Please give your 10 digit mobile contact number.</h4>\";\n\t\treturn;\n\t}\n\t\n\tif (!empty($jobUserEmail) && !filter_var($jobUserEmail, FILTER_VALIDATE_EMAIL)) {\n\t\techo \"<h4 class='errMsg'>Please give valid email id.</h4>\";\n\t\treturn;\n\t}\n\t\n\tif($_FILES['job-userresume']['error'] == 4) {\n\t\techo \"<h4 class='errMsg'>Please upload your resume.</h4>\";\n\t\treturn;\n\t}\n\t\n\t/* GET File Variables */ \n\t$tmpName = $_FILES['job-userresume']['tmp_name']; \n\t$fileType = $_FILES['job-userresume']['type']; \n\t$fileName = $_FILES['job-userresume']['name'];\n\t$fileSize = $_FILES[\"job-userresume\"][\"size\"];\n\t$fileFormat = pathinfo($fileName,PATHINFO_EXTENSION);\n\t\n\tif (empty($fileFormat) || ($fileFormat != \"doc\" && $fileFormat != \"docx\")) {\n\t\techo \"<h4 class='errMsg'>Sorry, only .doc and .docx format files are allowed.</h4>\";\n\t\treturn;\n\t}\n\t\n\tif ($fileSize > 400000) {\n\t\techo \"<h4 class='errMsg'>Sorry, file size is large, only below 400kb size are allowed.</h4>\";\n\t\treturn;\n\t}\n\t\n\t$mail_sent = mail_attachment($jobUserName, $jobCategory, $jobUserContact, $jobUserEmail);\n\t\n\techo $mail_sent ? \"<h4 class='msg'>We have received your request, we will contact you soon...</h4>\" : \"<h4 class='errMsg'>Something went wrong, please try again...</h4>\";\n\n}", "title": "" } ]
[ { "docid": "5a7db1fbce5db319a0dff55ceec09416", "score": "0.6871259", "text": "function print_gets_for_form() {\n $retval = '';\n foreach ($_GET as $key => $val) {\n $arr_flag = is_array($val);\n if (!$arr_flag) {\n $val = array($val);\n }\n foreach ($val as $value) {\n $retval .= \"<input type=hidden name='\" . escape_html($key);\n if ($arr_flag) {\n $retval .= \"[]\";\n }\n $retval .= \"' value='\" . escape_html($value) . \"'/>\\n\";\n }\n }\n return $retval;\n}", "title": "" }, { "docid": "0d925005c4f2a74fe4e899274c324d36", "score": "0.68693113", "text": "function zbase_request_query_inputs()\r\n{\r\n\treturn isset($_GET) ? $_GET : [];\r\n}", "title": "" }, { "docid": "49608ae72cb589fae5082d2d4a8f21b7", "score": "0.6852788", "text": "private function getGetParams()\n {\n if (!empty($_GET['qs'])) {\n $qs = json_decode(urldecode(rawurldecode($_GET['qs'])), true);\n foreach ($qs as $key => $value) {\n $this->userInput[$key] = $value;\n }\n }\n }", "title": "" }, { "docid": "fcc8f89ef94c39c477fa3dc8a8876bfb", "score": "0.6781839", "text": "function getFormVars()\n{\n if (isset($_REQUEST[\"ChunkID\"])) $this->ChunkID = $_REQUEST[\"ChunkID\"];\n else $this->ChunkID = 0;\n $this->ChunkName = stripslashes($_REQUEST[\"ChunkName\"]);\n $this->Title = stripslashes($_REQUEST[\"Title\"]);\n $this->Chunk = stripslashes($_REQUEST[\"Chunk\"]);\n $this->Perms = $_REQUEST[\"Perms\"];\n}", "title": "" }, { "docid": "057eace15b0be3ae49456ee427e58878", "score": "0.67320126", "text": "public function test_form_values_are_extracted_properly_from_request_params()\n\t{\n\t\t$_GET = array(\n\t\t\t'search' => array(\n\t\t\t\t'q' => 'what is the meaning of Liff?',\n\t\t\t)\n\t\t);\n\t\t$req = new Aptivate_Request('GET', '/fake-test-script.php',\n\t\t\t'/fake-test-url');\n\t\t$form = new Aptivate_Form('search', (object)array('q' => ''), $req);\n\t\t$query = $form->currentValue('q');\n\t\t$this->assertEquals('what is the meaning of Liff?', $query);\n\t}", "title": "" }, { "docid": "45748ac549fe2470153495c755355b3e", "score": "0.66598433", "text": "public function getFormValue();", "title": "" }, { "docid": "d6e3f7d77a3adbbec8a9270876f3e45f", "score": "0.65998024", "text": "public function getFormSubmitValues();", "title": "" }, { "docid": "4c24b00b79c27779faadde196665dc41", "score": "0.65506405", "text": "public static function getParamsFromRequest()\n {\n }", "title": "" }, { "docid": "e013fade78158e73055c5f6877bd2313", "score": "0.64193743", "text": "public static function getGetVars() {\n\n/* This function loops through the $_GET\n array and extracts all variables that \n match the pattern passed. All values \n are cleaned using trim and strip slashes\n if magic_quotes are on. */\n \n $args = func_get_args();\n\t\n\tswitch (count($args)) {\n\n\t\tcase 0: \n\t\t\t\t$pattern = \"^[[:alnum:][:space:][:punct:]]+$\"; // just about anything ok\n\t\t\t\tbreak;\n\n\t\tcase 1: \n\t\t\t\t$pattern = $args[0];\n\t\t\t\tbreak;\n }\n \n if (!$_GET) {\n // echo \"The GET Array is empty<BR>\";\n return FALSE;\n }\n \n foreach ($_GET as $key => $value) {\n \n if (preg_match(\"/$pattern/\", \"$key\") && $value != \"\" && $key != \"Submit\") {\n \n // Trim data\n $key = trim($key);\n $value = trim($value);\n \n // Strip slashes if magic quotes in effect\n if (get_magic_quotes_gpc()) {\n $key = stripslashes($key);\n $value = stripslashes($value);\n }\n\n // enter into the post vars to be returned\n \n $getvars[\"$key\"] = $value;\n \n } // End of if loop\n } // End of foreach loop\n \n if (!$getvars) { return FALSE; }\n else { return $getvars; }\n\n}", "title": "" }, { "docid": "ed15ea00c952ac2a9df9772241acb1aa", "score": "0.64108014", "text": "function get_params() {\n global $_POST;\n\n if (! empty($_POST[$this->item])) {\n $this->data=$_POST[$this->item];\n }\n return;\n }", "title": "" }, { "docid": "4aa283ad0780f9b6b15f7fc44d5c7028", "score": "0.6399382", "text": "public function formAttributes();", "title": "" }, { "docid": "abb4adbf643ea7d67745b94076ae5b45", "score": "0.6351488", "text": "function getRequestValue($name, $method = 1){\n\t$value = '';\n\tif($method == 1){\n\t\t$value = isset($_GET[$name]) == true ? $_GET[$name] : \"\";\n\t}else{\n\t\t$value = isset($_POST[$name]) == true ? $_POST[$name] : \"\";\n\t}\n\treturn $value;\n}", "title": "" }, { "docid": "e7c88d00a06b882b8452a3b7ee0ce33d", "score": "0.6335866", "text": "function vars_for_forms(){\n\t\t\tglobal $wp_query;\n\t\t\t$toReturn = \"\";\n\t\t\tforeach($wp_query->query_vars as $key=>$value){\n\t\t\t\t// Append appropriate custom var\n\t\t\t\tforeach($this->filteredByDateVars as $customVar){\n\t\t\t\t\tif($key == $customVar){\n\t\t\t\t\t\t$toReturn .= \"<input type='hidden' value='$value' name='$key'/>\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif($key == \"m\"){\n\t\t\t\t\t$toReturn .= \"<input type='hidden' value='$value' name='m'/>\";\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $toReturn;\n\t\t}", "title": "" }, { "docid": "c79e94bebc02c9f9ac280e4cee6ccf0c", "score": "0.6328204", "text": "function retrieveGet($var_name){\n\tif(array_key_exists($var_name, $_GET)){\n\t\t// strip any HTML or PHP tags from the form variable\n\t\treturn strip_tags($_GET[$var_name]);\n\t}else{\n\t\treturn null;\n\t}\n}", "title": "" }, { "docid": "db59b0039d09d8e18c9e9cca590d4f90", "score": "0.63193685", "text": "function fc_get_form_value($name, $default = ''){\n\tglobal $wp_query;\n\t$p = $_POST;\n\t$g = $_GET;\n\tif(empty($p)) $p = $_SESSION['old_post'];\n\tif(empty($g)) $g = $_SESSION['old_get'];\n\tif(is_array($p) && isset($p[$name]))\n\t\t$value = $p[$name];\n\telseif(is_array($g) && isset($g[$name]))\n\t\t$value = $g[$name];\n\telseif(isset($wp_query->query_vars[$name]))\n\t\t$value = $wp_query->query_vars[$name];\n\telse\n\t\t$value = $default;\n\treturn $value;\n}", "title": "" }, { "docid": "bfeb12f2c7b69aba26891e67a66681ef", "score": "0.6266882", "text": "public function getParamsSave(){\n // z formularza edycji\n $this->form->id = getFromRequest('id');\n $this->form->author = getFromRequest('author');\n $this->form->email = getFromRequest('email');\n }", "title": "" }, { "docid": "d534ac452bc6869b92b8d9203a4454a7", "score": "0.625603", "text": "protected function readFormParameters() {\n\t\tif (isset($_POST['avatarType'])) $this->avatarType = $_POST['avatarType'];\n\t\tif (!empty($_POST['disableAvatar'])) $this->disableAvatar = 1;\n\t\tif (isset($_POST['disableAvatarReason'])) $this->disableAvatarReason = StringUtil::trim($_POST['disableAvatarReason']);\n\t}", "title": "" }, { "docid": "b31d694567fcf82fceb81670633c506d", "score": "0.62516224", "text": "function getValue($key) {\n\t$value = $_GET[$key];\n\tif (empty($value)){\n\t\t$value = $_POST[$key];\n\t}\n\treturn $value; \n}", "title": "" }, { "docid": "b85632adc74bf78c8dfab6e763b148ef", "score": "0.6224219", "text": "private function GETVarsRule() {\r\n\r\n }", "title": "" }, { "docid": "7f48d6d3310037f0966d900c1688d3d2", "score": "0.6220155", "text": "function retrieve_form_settings()\n\t\t{\n\t\t\tif ($this->interactivity)\n\t\t\t{\n\t\t\t\t$res = Array();\n\t\t\t\t$this->agent_values = get_var('wf_agent_'.$this->agent_type, array('POST','GET'),$value);\n\t\t\t\tforeach ($this->bo_agent->get(2) as $name => $value)\n\t\t\t\t{\n\t\t\t\t\t$res[$name] = (isset($this->agents_values[$name]))? $this->agents_values[$name] : $value;\n\t\t\t\t}\n\t\t\t\t//store theses values in the bo_object(without saving the values)\n\t\t\t\t//htmlentites will be made by the bo's set function\n\t\t\t\t$this->bo_agent->set($res);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "5478aaae8c6b2fb61fd5c2c83241d0cb", "score": "0.62063897", "text": "public function getVars(){\n\t\tforeach($_GET as $sKey => $sVal){\n\t\t\t$sVal = urldecode($sVal);\n\t\t\t$_GET[$sKey] = trim($sVal);\n\t\t}\n\t\treturn $_GET;\n\t}", "title": "" }, { "docid": "b40344cb8bb06ecd8e1c33355b079160", "score": "0.6206374", "text": "abstract function getForm();", "title": "" }, { "docid": "cb41634b7d19d0d06d368fe6c8213b91", "score": "0.61992455", "text": "public function getPostParams();", "title": "" }, { "docid": "b2ea275b41b736905d1090a2da8da04b", "score": "0.6195494", "text": "abstract protected function getRequestParameters();", "title": "" }, { "docid": "b2ea275b41b736905d1090a2da8da04b", "score": "0.6195494", "text": "abstract protected function getRequestParameters();", "title": "" }, { "docid": "390f287ae1ec6654a32880dc7ec875fb", "score": "0.6195304", "text": "public static function allGet()\n {\n try {\n if (isset($_GET)) {\n $form = [];\n foreach ($_GET as $name => $value) {\n if (self::isJson($value)) {\n $value = json_decode($value);\n foreach ($value as $n => $v) {\n $form[$n] = $v;\n }\n } else {\n $form[$name] = $value;\n }\n }\n return $form;\n } else {\n return null;\n }\n } catch (Exception $e) {\n die($e);\n }\n }", "title": "" }, { "docid": "7aa5fa38e8baf4eec497f58c07d0eb44", "score": "0.6185873", "text": "public function getParameter();", "title": "" }, { "docid": "7aa5fa38e8baf4eec497f58c07d0eb44", "score": "0.6185873", "text": "public function getParameter();", "title": "" }, { "docid": "7aa5fa38e8baf4eec497f58c07d0eb44", "score": "0.6185873", "text": "public function getParameter();", "title": "" }, { "docid": "384afc662575a46a97dab3cbbb6057bf", "score": "0.6174982", "text": "public static function getAllValues()\n {\n return $_POST + $_GET;\n }", "title": "" }, { "docid": "8ab7e52efd99c44b65e72f09f2e98223", "score": "0.6142512", "text": "public function getInput()\n {\n if ($_SERVER['REQUEST_METHOD'] == 'GET') {\n\n return $_GET;\n\n } else if ($_SERVER['REQUEST_METHOD'] == 'POST') {\n\n return $_POST;\n\n } else {\n return [];\n }\n }", "title": "" }, { "docid": "e2a0cc87f605295b6fe096d32dec8da5", "score": "0.61332655", "text": "public function getParameters()\n {\n return $_REQUEST;\n }", "title": "" }, { "docid": "e06e9c39fa3bb71440fe61e27b638c42", "score": "0.6123405", "text": "public function transaction_formGetFormParms ()\t{\n\t\treturn '';\n\t}", "title": "" }, { "docid": "3f0d712c93a87fa46dcf6fe3a56cb6f5", "score": "0.6103392", "text": "public static function getRequestVars(){\r\n\t\t\t\treturn self :: $requestVars;\r\n\t\t\t}", "title": "" }, { "docid": "7c8063bb9baaea916703978e001987a8", "score": "0.6099105", "text": "public function filterFormAction()\n {\n return Request::url().'?'.http_build_query(Input::query());\n }", "title": "" }, { "docid": "652e88bea45cfe1e4bb06f7a63b619d3", "score": "0.6096225", "text": "private function getPostParams()\n {\n if (isset($_POST) && count($_POST) > 0) {\n foreach ($_POST as $key => $value) {\n $this->userInput[$key] = $value;\n }\n }\n }", "title": "" }, { "docid": "7c5eaa5b1069f53cf02a8ff719a9638b", "score": "0.6083746", "text": "public function getAllFields()\n {\n \t$aryFields = $_REQUEST;\n \tforeach ($this->aryPathFields as $key => $value) {\n \t\t$aryFields[$key] = $value;\n \t}\n \treturn $aryFields;\n }", "title": "" }, { "docid": "cf2375f29d124d0ef70509fc9faad613", "score": "0.60788095", "text": "function populateGETValue()\n\t{\n\t\tglobal $CFG;\n\t\tif(isset($CFG['feature']['rewrite_mode']) and ($CFG['feature']['rewrite_mode']=='clean'))\n\t\t\t{\n\t\t\t\tif($CFG['site']['query_string'])\n\t\t\t\t\t{\n\t\t\t\t\t\t$query_string = getCleanUrl($CFG['site']['query_string']);\n\t\t\t\t\t\t/*while(strpos($query_string, '//'))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$query_string = str_replace('//', '/', $query_string);\n\t\t\t\t\t\t\t}*/\n\t\t\t\t\t\tif(strpos($query_string, '/')===0)\n\t\t\t\t\t\t\t$query_string = substr($query_string, 1);\n\t\t\t\t\t\tif(strrpos($query_string, '/')==strlen($query_string)-1)\n\t\t\t\t\t\t\t$query_string = substr($query_string, 0, strlen($query_string)-1);\n\n\t\t\t\t\t\t$query_string_arr = explode('/', $query_string);\n\t\t\t\t\t\tfor($i=0;$i<sizeof($query_string_arr);$i = $i+2)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$_REQUEST[$query_string_arr[$i]] = $_GET[$query_string_arr[$i]] = isset($query_string_arr[$i+1])?urldecode(str_replace('%25', '%', $query_string_arr[$i+1])):'';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t}", "title": "" }, { "docid": "6c8a9f76c19550ce223d47666e786498", "score": "0.60727304", "text": "public function processVars()\n\t{\n\t\t// Get a JURI instance for the Request URL.\n\t\t$uri = new Uri($this->app->get('uri.Request'));\n\n\t\t// Initialise params array.\n\t\t$params = array();\n\n\t\t// Iterate over the reserved parameters and look for them in the POST variables.\n\t\tforeach (Request::getReservedParameters() as $k)\n\t\t{\n\t\t\tif ($this->_input->get->getString('oauth_' . $k, false))\n\t\t\t{\n\t\t\t\t$params['OAUTH_' . strtoupper($k)] = trim($this->_input->get->getString('oauth_' . $k));\n\t\t\t}\n\t\t}\n\n\t\t// Make sure that any found oauth_signature is not included.\n\t\tunset($params['signature']);\n\n\t\t// Ensure the parameters are in order by key.\n\t\tksort($params);\n\n\t\treturn $params;\n\t}", "title": "" }, { "docid": "c4c3d1c04e76f4320bedbb034a08315a", "score": "0.605525", "text": "public function valiteForm();", "title": "" }, { "docid": "17e5e334715064977d70611f079abb66", "score": "0.60460234", "text": "function httpGetVars($name, $default='', $validsarray = false) {\n //edit: use tep function for this instead\n // get \"Get\" variable\n if (isset($_GET[$name]))\n $value = $_GET[$name];\n else\n $value = $default;\n\n // check against valid values\n if (is_array($validsarray))\n if (!in_array($value, $validsarray, true))\n $value = $default;\n\n return $value;\n }", "title": "" }, { "docid": "1e326905ffd5ad6aea84b1367411c379", "score": "0.6026155", "text": "public function getPostVariables();", "title": "" }, { "docid": "4ae931ec36e24c5a38ef4a58c292533b", "score": "0.6016626", "text": "public function getRequestPageVars() {\n\t\t\n\t\t$requestVars = array (\n\t\t\t'pid' => '',\n\t\t\t'lang' => '',\n\t\t\t'tid' =>''\n\t\t);\n\t\t$returnVars = array();\n\t\t\n\t\tforeach ($requestVars as $key => $value) {\n\t\t\t$returnVars[$key] = trim(urldecode($_REQUEST[$key]));\n\t\t}\n\t\t\n\t\t// Variablen nachbearbeiten\n\t\t$returnVars['pageID'] = intval($returnVars['pid']);\n\t\t$returnVars['templateID'] = intval($returnVars['tid']);\n\t\t\n\t\t$returnVars['pageLang'] = preg_replace('/^[^a-z0-9_-]+$/i', '', $returnVars['lang']);\n\t\t\n\t\treturn $returnVars;\n\t}", "title": "" }, { "docid": "4065e46864519f382de301a51d09ed2a", "score": "0.6013339", "text": "public function inputAll()\n {\n $input = [];\n\n foreach ($_GET as $key => $value) {\n $input[$key] = $value;\n }\n\n foreach ($_POST as $key => $value) {\n $input[$key] = $value;\n }\n\n return $input;\n }", "title": "" }, { "docid": "25adb26897de21568f6e8bd1c2045812", "score": "0.60089564", "text": "function getVariable($variableName)\n{\nif (isset($_GET[$variableName])) {\n$return = $_GET[$variableName];\n} elseif (isset($_POST[$variableName])) {\n$return = $_POST[$variableName];\n} else {\nreturn NULL;\n}\nreturn $return;\n}", "title": "" }, { "docid": "b84e9278146bff609500ff5544ae6d57", "score": "0.60081714", "text": "function parse_params(){\n\n\n$params=array();\n\n\tif(!empty($_POST)){\n\t$params=array_merge($params,$_POST);\n}\n\nif(!empty($_GET)){\n\t$params=array_merge($params,$_GET);\n}\n\n\n\treturn $params;\n}", "title": "" }, { "docid": "e06ffa168360dcbea44dca74dca0e1ae", "score": "0.59954756", "text": "function zbase_request_query_input($key, $default = null)\r\n{\r\n\treturn isset($_GET[$key]) ? $_GET[$key] : $default;\r\n}", "title": "" }, { "docid": "1c38e3de29591b6edd66f1f4570aaa2d", "score": "0.59843147", "text": "protected function processURL()\n {\n // if url has form=...\n $paramForm = isset($_GET['form']) ? $_GET['form'] : null;\n $paramCForm = isset($_GET['cform']) ? $_GET['cform'] : null;\n\n if (!$paramForm)\n return;\n\n // add the form in FormRefs\n if ($paramForm)\n {\n \tif($this->isInFormRefLibs($paramForm))\n\t \t{\n\t $xmlArr[\"ATTRIBUTES\"][\"NAME\"] = $paramForm;\n\t $xmlArr[\"ATTRIBUTES\"][\"SUBFORMS\"] = $paramCForm ? $paramCForm : \"\";\n\t $formRef = new FormReference($xmlArr);\n\t $this->formRefs->set($paramForm, $formRef);\n\t if ($paramCForm)\n\t {\n\t \tif($this->isInFormRefLibs($paramCForm))\n\t \t{\n\t\t $xmlArr[\"ATTRIBUTES\"][\"NAME\"] = $paramCForm;\n\t\t $xmlArr[\"ATTRIBUTES\"][\"SUBFORMS\"] = \"\";\n\t\t $cformRef = new FormReference($xmlArr);\n\t\t $this->formRefs->set($paramCForm, $cformRef);\n\t \t}\n\t }\n \t}\n }\n\n // check url arg as fld:name=val\n $getKeys = array_keys($_GET);\n $paramFields = null;\n foreach ($getKeys as $key)\n {\n if (substr($key, 0, 4) == \"fld:\")\n {\n $fieldName = substr($key, 4);\n $fieldValue = $_GET[$key];\n $paramFields[$fieldName] = $fieldValue;\n }\n }\n\n if (!$paramFields)\n return;\n\n $paramForm = $this->prefixPackage($paramForm);\n $formObj = Openbizx::getObject($paramForm);\n $formObj->setRequestParams($paramFields);\n }", "title": "" }, { "docid": "df0783d88c7717fafb15769884db87d7", "score": "0.5983696", "text": "public function getParamsEdit(){\n // z widoku listy osób\n $this->form->id = getFromRequest('id');\n }", "title": "" }, { "docid": "3bf83c3f0be2cf9fa98b57d512347fb1", "score": "0.59757894", "text": "function getForm($name=null, $type=null, $defval=null, $delete=false) {}", "title": "" }, { "docid": "01904d0b5158c364f85ee627c997e97c", "score": "0.5973932", "text": "private function GetAllVars($rm_var = '')\n\t{\n\t\t$get_vars = '';\n\t\tforeach($_GET as $key => $val) {\n\t\t\tif ($key != $rm_var) {\n\t\t\t\t$get_vars.= \"$key=\".htmlspecialchars($val).\"&amp;\";\n\t\t\t}\n\t\t}\n\t\treturn $get_vars;\n\t}", "title": "" }, { "docid": "21ffb35c438f93db0a10accc645b8481", "score": "0.5972795", "text": "public function parse_request() {\n\t\tglobal $wp;\n\n\t\t// Map query vars to their keys, or get them if endpoints are not supported.\n\t\tforeach ( $this->get_query_vars() as $key => $var ) {\n\t\t\tif ( isset( $_GET[ $var ] ) ) { // WPCS: input var ok, CSRF ok.\n\t\t\t\t$wp->query_vars[ $key ] = sanitize_text_field( wp_unslash( $_GET[ $var ] ) ); // WPCS: input var ok, CSRF ok.\n\t\t\t} elseif ( isset( $wp->query_vars[ $var ] ) ) {\n\t\t\t\t$wp->query_vars[ $key ] = $wp->query_vars[ $var ];\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1544d73a9928bef82fc01cb563ea03f7", "score": "0.5964911", "text": "protected function ReadQuery()\n\t{\n\t\tif (isset($_GET['h'])) $this->params['hash'] = $_GET['h'];\n\t\tif (isset($_GET['f'])) $this->params['path'] = $_GET['f'];\n\t\tif (isset($_GET['prefix'])) $this->params['prefix'] = $_GET['prefix'];\n\t}", "title": "" }, { "docid": "e4ca92512af7f8e0465e9759954380f1", "score": "0.59648263", "text": "public\tfunction hidden_fields()\n {\n \t\n\tif($_POST)\n\t$HTTP_POST_VARS = $_POST;\n\t\n\tif($_GET)\n\t$HTTP_POST_VARS = $_GET;\n\t\n\tif($_REQUEST)\n\t$HTTP_POST_VARS = $_REQUEST;\n\t\n\t\n\tif (!empty($HTTP_POST_VARS)) \n\t{\n\t\t\n\t\t\n\t\treset($HTTP_POST_VARS);\n\t\t\n\t\t$hflds = \"\";\n\t\twhile (list($k,$v)=each($HTTP_POST_VARS)) \n\t\t{\n\t\t\t ${$k}=$v;\n\t\t\t\tif(is_array($v))\n\t\t\t{\n\t\t\t\t\t$v=implode(\",\",$v);\n\t\t\t\t$hflds .= '<input type=\"hidden\" name=\"'.$k.'\" value=\"'.htmlentities($v,ENT_QUOTES).'\">';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$hflds .= '<input type=\"hidden\" name=\"'.$k.'\" value=\"'.htmlentities($v,ENT_QUOTES).'\">';\n\t\t\t}\n\t\t\t\t\n\t\t}\t\n\t\treturn $hflds;\n\t}//end if hidden fields\n }", "title": "" }, { "docid": "b32da18d267fdf0afa302819aba0752a", "score": "0.59596324", "text": "public static function get($input){\n if(isset($_POST[$input])){\n return self::sanitize($_GET[$input]);\n }elseif(isset($_GET[$input])){\n return self::sanitize($_GET[$input]);\n \n }\n }", "title": "" }, { "docid": "40acc6f8d65e72de48406de2d5792d47", "score": "0.59548193", "text": "private function getParams(){\n\n //Assign url query parameters\n foreach($_GET as $key=>$value){\n $this->params[$key] = $value;\n }\n\n }", "title": "" }, { "docid": "67fdc55d51fea21f8a7a7a916029fe8d", "score": "0.59506744", "text": "function getpost2globals()\n\t{\n\t\tforeach ($_REQUEST as $key => $value) \n\t\t{\n\t\t\tglobal $$key;\n\t\t\t$$key = $_REQUEST[$key];\t\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\tOTRA MANERA\n\t\t\n\t\tforeach ($_GET as $key => $value) \n\t\t{\n\t\t\tglobal $$key;\n\t\t\t$$key = $_GET[$key];\t\n\t\t}\n\t\tforeach ($_POST as $key => $value) \n\t\t{\n\t\t\tglobal $$key;\n\t\t\t$$key = $_POST[$key];\t\n\t\t}\n\t*/\n\t\t}", "title": "" }, { "docid": "7b3f733c04eeb71fc675199cda0c1853", "score": "0.59397274", "text": "function getValue($variable)\n{\n return isset($_GET[$variable]) ? filter_input(INPUT_GET, $variable, FILTER_SANITIZE_STRING) : \"\";\n}", "title": "" }, { "docid": "a3475b3b0cbd1c7d6705693fc3bc0e58", "score": "0.59318453", "text": "function GETPOST($paramname, $check='', $method=0)\n{\n if (empty($method)) $out = isset($_GET[$paramname])?$_GET[$paramname]:(isset($_POST[$paramname])?$_POST[$paramname]:'');\n elseif ($method==1) $out = isset($_GET[$paramname])?$_GET[$paramname]:'';\n elseif ($method==2) $out = isset($_POST[$paramname])?$_POST[$paramname]:'';\n elseif ($method==3) $out = isset($_POST[$paramname])?$_POST[$paramname]:(isset($_GET[$paramname])?$_GET[$paramname]:'');\n\n if (!empty($check))\n {\n // Check if numeric\n if ($check == 'int' && ! preg_match('/^[\\.,0-9]+$/i',trim($out))) $out='';\n // Check if alpha\n //if ($check == 'alpha' && ! preg_match('/^[ =:@#\\/\\\\\\(\\)\\-\\._a-z0-9]+$/i',trim($out))) $out='';\n if ($check == 'alpha' && preg_match('/\"/',trim($out))) $out=''; // Only \" is dangerous because param in url can close the href= or src= and add javascript functions\n }\n\n return $out;\n}", "title": "" }, { "docid": "2d86b95fd3cb5d7c7bdbe572a4180386", "score": "0.59284383", "text": "public abstract function getValueFromRequest();", "title": "" }, { "docid": "9908c5d6c2c8e6ca599f0d6a947ab30a", "score": "0.59281766", "text": "public function requestVars()\n {\n return ArrayLib::array_merge_recursive($this->getVars, $this->postVars);\n }", "title": "" }, { "docid": "0019e43db42f5338c4763381cdbc0583", "score": "0.5923294", "text": "public function getFormParams()\n {\n return $this->_formParams;\n }", "title": "" }, { "docid": "67f64909d3921b6f450fca96f92a7dfc", "score": "0.59200853", "text": "private function initGET(){\n\tif (isset($_GET['tbAssuntoId'])){\n\t\t$this->tbAssuntoId = $_GET['tbAssuntoId'];\n\t}\n\tif (isset($_GET['tbAssuntoNome'])){\n\t\t$this->tbAssuntoNome = $_GET['tbAssuntoNome'];\n\t}\n}", "title": "" }, { "docid": "e0de10fc76fe647f487d57bbda23cc27", "score": "0.59182787", "text": "function get_exposed_input() {\n // Fill our input either from $_GET or from something previously set on the\n // view.\n if (empty($this->exposed_input)) {\n $this->exposed_input = $_GET;\n // unset items that are definitely not our input:\n foreach (array('page', 'q') as $key) {\n if (isset($this->exposed_input[$key])) {\n unset($this->exposed_input[$key]);\n }\n }\n\n // If we have no input at all, check for remembered input via session.\n\n // If filters are not overridden, store the 'remember' settings on the\n // default display. If they are, store them on this display. This way,\n // multiple displays in the same view can share the same filters and\n // remember settings.\n $display_id = ($this->display_handler->is_defaulted('filters')) ? 'default' : $this->current_display;\n\n if (empty($this->exposed_input) && !empty($_SESSION['views'][$this->name][$display_id])) {\n $this->exposed_input = $_SESSION['views'][$this->name][$display_id];\n }\n }\n\n return $this->exposed_input;\n }", "title": "" }, { "docid": "4d951ffc7845efd2555828aaa15cde1a", "score": "0.59165543", "text": "function getParams();", "title": "" }, { "docid": "91889897af98cf41c06884d1a7a33fe6", "score": "0.5915216", "text": "function getInputValues($name){\n if(isset($_POST[$name])){\n echo $_POST[$name];\n }\n }", "title": "" }, { "docid": "fb633cf9c90f0c130184965c574d2d06", "score": "0.5914199", "text": "function get_input($name, $type = 'post', $end = 'none') {\n\n\t\tif(strtolower($type) == 'post') {\n\n\t\t\t$val = (isset($_POST[$name])) ? $_POST[$name] : \"\";\n\n\t\t} else {\n\t\t\n\t\t\t$val = (isset($_GET[$name])) ? $_GET[$name] : \"\";\n\n\t\t}\n\n\t\tif($end != 'none' && is_numeric($end)) {\n\n\t\t\treturn substr($val, 0, $end);\n\n\t\t} else {\n\n\t\t\treturn $val;\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "4793fd0e0f33761b2f643aff739dfca6", "score": "0.5905112", "text": "public function setInputvars() {\n\n $this->campaignName = (null == $this->dispatcher->getParam(\"campaignName\")) ?\n \\HC\\Merch\\Models\\Page::DEFAULT_PAGE_CAMPAIGN : $this->dispatcher->getParam(\"campaignName\");\n\n $this->languageCode = (null == $this->dispatcher->getParam(\"languageCode\")) ?\n (!$this->session->has('languageCode')) ? \\HC\\Merch\\Models\\Page::DEFAULT_PAGE_LANG : $this->session->get('languageCode') : $this->dispatcher->getParam(\"languageCode\");\n\n $this->region = (null == $this->dispatcher->getParam(\"regionName\")) ? NULL :\n $this->dispatcher->getParam(\"regionName\");\n\n $this->country = (null == $this->dispatcher->getParam(\"countryName\")) ? null :\n $this->dispatcher->getParam(\"countryName\");\n\n $this->city = (null == $this->dispatcher->getParam(\"cityName\")) ? null :\n $this->dispatcher->getParam(\"cityName\");\n }", "title": "" }, { "docid": "be48bb5ed6596c4952195c45100657f1", "score": "0.5899553", "text": "public function getFormField($varName, $defaultValue='')\n {\n if (array_key_exists($varName, $_REQUEST)) {\n return $_REQUEST[$varName];\n } else {\n return $defaultValue;\n }\n }", "title": "" }, { "docid": "a747c69218163e6dce5fba65eb593702", "score": "0.58828104", "text": "function dataplus_get_querystring_vars() {\n $list = dataplus_get_querystring_list();\n\n $vals = array();\n\n foreach ($list as $l => $v) {\n $var = optional_param($l, null, $v);\n\n if (!is_null($var)) {\n $vals[$l] = $var;\n }\n }\n\n return $vals;\n}", "title": "" }, { "docid": "5ed08b55db4af414522b9121ad1bdb6b", "score": "0.5878641", "text": "function startForm()\n {\n if ($this->_formMethod == \"get\") {\n $this->values = $_GET;\n } else {\n $this->values = $_POST;\n }\n echo \"<form action='' method='{$this->_formMethod}'>\";\n }", "title": "" }, { "docid": "d02f9ded6004877cb5fdfc8edd87a828", "score": "0.58561844", "text": "public function getFormState();", "title": "" }, { "docid": "b8186ca4de18fa113b7e42c7d5c78b48", "score": "0.58437455", "text": "abstract public function getRequestAttributes();", "title": "" }, { "docid": "af702a7d6914f4909a09d4a4ab094c35", "score": "0.5839439", "text": "public static function getRequestVariable($key){}", "title": "" }, { "docid": "0089f49b82bca4c98c40d60547989f2c", "score": "0.58381873", "text": "public function getRequest();", "title": "" }, { "docid": "0089f49b82bca4c98c40d60547989f2c", "score": "0.58381873", "text": "public function getRequest();", "title": "" }, { "docid": "0089f49b82bca4c98c40d60547989f2c", "score": "0.58381873", "text": "public function getRequest();", "title": "" }, { "docid": "0089f49b82bca4c98c40d60547989f2c", "score": "0.58381873", "text": "public function getRequest();", "title": "" }, { "docid": "0089f49b82bca4c98c40d60547989f2c", "score": "0.58381873", "text": "public function getRequest();", "title": "" }, { "docid": "0089f49b82bca4c98c40d60547989f2c", "score": "0.58381873", "text": "public function getRequest();", "title": "" }, { "docid": "0089f49b82bca4c98c40d60547989f2c", "score": "0.58381873", "text": "public function getRequest();", "title": "" }, { "docid": "0089f49b82bca4c98c40d60547989f2c", "score": "0.58381873", "text": "public function getRequest();", "title": "" }, { "docid": "a9362825103cfcd23a2447a85203ac6f", "score": "0.58365583", "text": "static function getIncomingParams(){\n $params = array();\n \n // collect parameters from URL request\n $paramsURL = $_SERVER['QUERY_STRING'];\n if( !empty($paramsURL) ){\n $splitted_params = explode(\"&\",$paramsURL);\n foreach($splitted_params as $param){\n $parts = explode(\"=\", $param);\n $params[$parts[0]] = @$parts[1];\n }\n }\n \n // collect parameters from file uploads\n if( !empty($_FILES) ){\n foreach($_POST as $key=>$val){\n $params[$key] = $val;\n }\n foreach($_FILES as $name=>$file){\n $params[$name] = $file; \n }\n }\n\n return $params;\n }", "title": "" }, { "docid": "5fb57ae7a2751178277715c84e84e99c", "score": "0.58289564", "text": "public function testGetFormVariables()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "bb947763093a8281210529a80a0e9513", "score": "0.58285993", "text": "public function getParameter($name);", "title": "" }, { "docid": "8bf88552a0876e74019a6842f1bb6ffa", "score": "0.58262753", "text": "function getvar($var) {\n\tglobal $$var;\n\t\n\tif (isset($_POST[$var])) {\n\t $$var = $_POST[$var];\n\t} else {\n\t $$var = $_GET[$var];\n\t}\n}", "title": "" }, { "docid": "6690615caab9c4243b95c5e5fb7a13ac", "score": "0.5819319", "text": "function get_var($name, $default = 'none') {\n return (isset($_GET[$name])) ? $_GET[$name] : ((isset($_POST[$name])) ? $_POST[$name] : $default);\n}", "title": "" }, { "docid": "2ff1ad67f7da66de1f4198735435aa17", "score": "0.5818055", "text": "public function get_post_vars() {\n\t\t\t\n\t\t$this->id = (isset($_POST['id']) ? $_POST['id'] : '');\n\t\t$this->name = (isset($_POST['name']) ? $_POST['name'] : '');\n\t\t$this->address = (isset($_POST['address']) ? $_POST['address'] : '');\n\t\t$this->city = (isset($_POST['city']) ? $_POST['city'] : '');\n\t\t$this->state = (isset($_POST['state']) ? $_POST['state'] : '');\n\t\t$this->zip = (isset($_POST['zip']) ? $_POST['zip'] : '');\n\t\t$this->phone = (isset($_POST['phone']) ? $_POST['phone'] : '');\n\t\t$this->email = (isset($_POST['email']) ? $_POST['email'] : '');\n\t\t$this->url = (isset($_POST['url']) ? $_POST['url'] : '');\n\t\t$this->description = (isset($_POST['description']) ? $_POST['description'] : '');\n\t\t$this->latitude = (isset($_POST['latitude']) ? $_POST['latitude'] : '');\n\t\t$this->longitude = (isset($_POST['longitude']) ? $_POST['longitude'] : '');\n\t\t\t\n\t}", "title": "" }, { "docid": "0a6019b2549ef18fde2b2d1855e7ad78", "score": "0.58067733", "text": "function zbase_request_inputs()\r\n{\r\n\treturn \\Request::all();\r\n}", "title": "" }, { "docid": "ed46aba10b69721d312f6e7be11b14ec", "score": "0.58055055", "text": "public static function values() {\r\n return array(\r\n self::INPUT_GET,\r\n self::INPUT_POST,\r\n self::INPUT_COOKIE,\r\n self::INPUT_SERVER,\r\n self::INPUT_ENV,\r\n self::INPUT_SESSION,\r\n self::INPUT_REQUEST\r\n );\r\n }", "title": "" }, { "docid": "490e22f576453a7c09abbe3fecf6bb03", "score": "0.5798727", "text": "function getarg($key){\n global $args;\n $res=(isset($_POST[$key])) ? $_POST[$key] :\n (\n (isset($_GET[$key])) ? $_GET[$key] :\n (\n (isset($args[$key])) ? $args[$key] : null\n )\n );\n return $res;\n}", "title": "" }, { "docid": "342c649f06840f39310c9c7f268a8efb", "score": "0.5796218", "text": "public function getRequestParams() {\n }", "title": "" }, { "docid": "b613447a3baba349d5d2db427282cdfa", "score": "0.57947785", "text": "function _GetFrm(){\n\t\t// Cargo desde el formulario\n\t\t$id = $_POST['id_color'];\n\t\t$this->Registro['id_color'] = $id;\n\t\t$this->Registro['nombre_color'] = $_POST['nombre_color'];\n\t}", "title": "" }, { "docid": "db22303a5e5aee6805034b366b766958", "score": "0.5793176", "text": "function ControlOnLoad(){\n $this->camefrom = $this->Request->ToString(\"FROMPAGE\", \"\");\n $this->packagefrom = $this->Request->ToString(\"FROMPACKAGE\", \"\");\n $this->former_query = $this->Request->ToString(\"FORMER_QUERY\", \"\");\n\n }", "title": "" }, { "docid": "b19f9b35a3ece5da6ea81808a0572b76", "score": "0.57916975", "text": "function get_post($name){\n\t\t\tif(isset($_POST[$name])){\n\t\t\t\treturn $_POST[$name];\n\t\t\t}else{\n\t\t\t\treturn $_GET[$name];\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "448b87eca049119b3fdddd81347d0a73", "score": "0.57887805", "text": "public function RequestValues() {\r\n\r\n // Iterate through all of this objects parameter names\r\n foreach ($this->columnNames as &$column) {\r\n // If a GET or POST variable has the same name, set the\r\n // corresponding parameter value of this object.\r\n if (isset($_REQUEST[$column])) {\r\n $this->SetValue($column, $_REQUEST[$column]);\r\n }\r\n }\r\n\r\n // If 'deleterecord' is set, display a basic delete form.\r\n if (isset($_REQUEST['deleterecord'])) $this->Display_delete_form();\r\n\r\n // if the 'deleterecord_forsure' value is set, delete the record.\r\n if (isset($_REQUEST['deleterecord_forsure'])) $this->Delete_record();\r\n }", "title": "" }, { "docid": "ad1c52b13a75ddad1a28322f9e8a61c8", "score": "0.57805747", "text": "function get_input($name, $xss_clean = false){\n if(isset($_GET[$name]) && $name != null){\n if($xss_clean){\n return Security::xssFilter($_GET[$name]);\n } else {\n return $_GET[$name];\n }\n }\n return null;\n}", "title": "" }, { "docid": "1e4af673ce53468e931e39e577ec0dae", "score": "0.57758224", "text": "public function params() {\n $new_params = array_merge($_GET, $_POST);\n $params = array();\n foreach($new_params as $k => $v) {\n if($k != \"url\") {\n $params[$k] = $v;\n }\n }\n return $params;\n }", "title": "" }, { "docid": "ace35def49412177777b5b31fe77c2a0", "score": "0.57737464", "text": "function getInputValue($name){\r\n if (isset($_POST[$name])) {\r\n echo $_POST[$name];\r\n }\r\n }", "title": "" }, { "docid": "bcc8fe3c0776ec541317323e1b0025d0", "score": "0.5762931", "text": "public function getSubmitValue();", "title": "" }, { "docid": "4fce39fe3a75e8ddfe61ff35a8b63fad", "score": "0.5757974", "text": "function parse_form($g,$p){\n#ejem: parse_form($_GET, $_POST);\n\tglobal $in, $cmd;\n\tif(!empty($g)){\n\t\t$tvars = count($g);\n\t\t$vnames = array_keys($g);\n\t\t$vvalues = array_values($g);\n\t}elseif(!empty($p)){\n\t\t$tvars = count($p);\n\t\t$vnames = array_keys($p);\n\t\t$vvalues = array_values($p);\n\t}\n\tfor($i=0;$i<$tvars;$i++){\n\t\tif($vnames[$i]=='cmd'){$cmd=$vvalues[$i];}\n\t\t$in[$vnames[$i]]=$vvalues[$i];\n\t}\n}", "title": "" } ]
a7d245105618687a63d05cf2aede0940
Sets the compliantUserCount property value. Number of compliant users.
[ { "docid": "f8fb2512a1cb7d785221ae0b1eceda52", "score": "0.7701866", "text": "public function setCompliantUserCount(?int $value): void {\n $this->getBackingStore()->set('compliantUserCount', $value);\n }", "title": "" } ]
[ { "docid": "062098c0924959422baadca5f300eca4", "score": "0.6810537", "text": "public function setUserCount($value) {\n\t\t$this->_userCount = (int) $value;\n\t}", "title": "" }, { "docid": "8828a5dac0560abaf862a5a457a4dbd6", "score": "0.67527384", "text": "public function setNonCompliantUserCount(?int $value): void {\n $this->getBackingStore()->set('nonCompliantUserCount', $value);\n }", "title": "" }, { "docid": "a79392b26022ac31634b83532e8a8db0", "score": "0.65656406", "text": "public function setNotApplicableUserCount(?int $value): void {\n $this->getBackingStore()->set('notApplicableUserCount', $value);\n }", "title": "" }, { "docid": "58c3fb294beb05fb80b4beddbca70516", "score": "0.63174987", "text": "public function setSuccessfulUsersCount(?int $value): void {\n $this->getBackingStore()->set('successfulUsersCount', $value);\n }", "title": "" }, { "docid": "e1b99ec5f70f7516c3bb068cad04fe6e", "score": "0.62837756", "text": "public function setCompliantDeviceCount(?int $value): void {\n $this->getBackingStore()->set('compliantDeviceCount', $value);\n }", "title": "" }, { "docid": "6dc723a5574c47e45c014241cb6f5af6", "score": "0.62480146", "text": "public function setConflictUserCount(?int $value): void {\n $this->getBackingStore()->set('conflictUserCount', $value);\n }", "title": "" }, { "docid": "af100285b4ed68d6d2e3afb17f659086", "score": "0.6068421", "text": "public function setErrorUserCount(?int $value): void {\n $this->getBackingStore()->set('errorUserCount', $value);\n }", "title": "" }, { "docid": "be994397f317b7b7465d990d466c5b87", "score": "0.5867645", "text": "public function setFailedUsersCount(?int $value): void {\n $this->getBackingStore()->set('failedUsersCount', $value);\n }", "title": "" }, { "docid": "db2303bdf0e47a1bd4f79ca01c1eccc6", "score": "0.5857098", "text": "public function setTotalUsersCount(?int $value): void {\n $this->getBackingStore()->set('totalUsersCount', $value);\n }", "title": "" }, { "docid": "2fb484fd443ed3f9e839ac5cbffda947", "score": "0.5793579", "text": "public function setUnknownUserCount(?int $value): void {\n $this->getBackingStore()->set('unknownUserCount', $value);\n }", "title": "" }, { "docid": "98602edbac1b488098593af4a2b80f7e", "score": "0.5742879", "text": "public function setApplicableDeviceCount(?int $value): void {\n $this->getBackingStore()->set('applicableDeviceCount', $value);\n }", "title": "" }, { "docid": "b4a331883e99025bca085ce53ea2d239", "score": "0.5740638", "text": "public function setUnprocessedUsersCount(?int $value): void {\n $this->getBackingStore()->set('unprocessedUsersCount', $value);\n }", "title": "" }, { "docid": "dbacfd03d9bf6ff590d2db9cae52c996", "score": "0.5717333", "text": "public function setRemediatedUserCount(?int $value): void {\n $this->getBackingStore()->set('remediatedUserCount', $value);\n }", "title": "" }, { "docid": "9e1b7d725344943fea61ce7dc36b413f", "score": "0.56607324", "text": "public function setUserCount($userCount)\n {\n $this->userCount = $userCount;\n\n return $this;\n }", "title": "" }, { "docid": "2001b1f038db9b5a25a6b9d2519671c3", "score": "0.56457186", "text": "public function getUserCount(): int\n {\n return $this->user_count;\n }", "title": "" }, { "docid": "903529defca183810b8761ab325a5af0", "score": "0.5624384", "text": "public function setNonCompliantDeviceCount(?int $value): void {\n $this->getBackingStore()->set('nonCompliantDeviceCount', $value);\n }", "title": "" }, { "docid": "a9488f2c4b100aa42e8333a5c7d4f2e7", "score": "0.5616783", "text": "public function testGetUserCount()\n {\n $this->setRequestParameter(\"iStart\", 0);\n $this->setRequestParameter(\"oxid\", 'newstest');\n $oNewsletter = oxNew('Newsletter_selection');\n $this->assertEquals(1, $oNewsletter->getUserCount());\n\n $oDB = oxDb::getDb();\n $sDelete = \"delete from oxobject2group where oxobjectid='_testUserId'\";\n $oDB->Execute($sDelete);\n $this->setRequestParameter(\"iStart\", 0);\n $this->setRequestParameter(\"oxid\", 'newstest');\n $oNewsletter = oxNew('Newsletter_selection');\n $this->assertEquals(0, $oNewsletter->getUserCount());\n }", "title": "" }, { "docid": "da3563354a60affc4f70f669d83aa4c9", "score": "0.5605585", "text": "public function setNotApplicableDeviceCount(?int $value): void {\n $this->getBackingStore()->set('notApplicableDeviceCount', $value);\n }", "title": "" }, { "docid": "9a715ccb05d09009277cbc1e931ab5ae", "score": "0.5560153", "text": "public function count(): int\n {\n return count($this->users);\n }", "title": "" }, { "docid": "423aa1386934bc230bc8f60e647ba073", "score": "0.55354387", "text": "public function setSharedIPadMaximumUserCount(?int $value): void {\n $this->getBackingStore()->set('sharedIPadMaximumUserCount', $value);\n }", "title": "" }, { "docid": "fa7109f591d264bb26317e782a8812c7", "score": "0.54774034", "text": "public function setFailureCount(int $count) : void\n\t{\n\t\tif(!is_int($count))\n\t\t\tthrow new UserIncorrectDatatypeException('setFailureCount()', 1, 'integer', $count);\n\t\tif($count < 0)\n\t\t\tthrow new UserNegativeValueException('setFailureCount()', $count);\n\t\t$db = User::getDB();\n\t\t$query = $db->prepare('UPDATE users SET failureCount=:count WHERE id=:id');\n\t\t$query->bindValue(':count', $count, PDO::PARAM_INT);\n\t\t$query->bindValue(':id', $this->id, PDO::PARAM_INT);\n\t\t$query->execute();\n\t\t$this->failureCount = $count;\n\t}", "title": "" }, { "docid": "43b65d34453e9de6b11abb51ee505295", "score": "0.5457282", "text": "public function count()\n {\n return count($this->users);\n }", "title": "" }, { "docid": "43b65d34453e9de6b11abb51ee505295", "score": "0.5457282", "text": "public function count()\n {\n return count($this->users);\n }", "title": "" }, { "docid": "ce3ca7e4d4bf49fc1ec8e42472da2e9e", "score": "0.5399994", "text": "public function compliant_count()\n {\n return $this->db->count_all(\"contact_us\");\n }", "title": "" }, { "docid": "8f6fac7e1fce91981d8b372b976d40cc", "score": "0.53636986", "text": "public function getUserCount()\n {\n return $this->userCount;\n }", "title": "" }, { "docid": "29aa1ca06271c07994a4c16c274dfd90", "score": "0.5361117", "text": "public function countUsers() {\n\t\t$users = self::loadUsers();\n\n\t\treturn count($users);\n\t}", "title": "" }, { "docid": "0f103cb4914650a33d774e8517260d3a", "score": "0.53560334", "text": "public function setCount($count)\n {\n $this->count = (int) $count;\n }", "title": "" }, { "docid": "a9bf69f9957cacd6b7d248476ca5afc9", "score": "0.53493774", "text": "public function getNbUsers()\n {\n return $this->nb_users;\n }", "title": "" }, { "docid": "281b8eced0f1e55394133131c22ddc6a", "score": "0.53257847", "text": "public function user_count() {\n return $this->_preload_counts(\n 'user_count',\n 'Neoform\\User\\Site',\n 'site_id'\n );\n }", "title": "" }, { "docid": "d54824554b6c452a6a1a71022ad18642", "score": "0.530335", "text": "public function getCountUsers()\n\t{\n\t\treturn count($this->users);\n\t}", "title": "" }, { "docid": "a5b1adcf81a7f600cbdaa5ee4aaa53c5", "score": "0.52872896", "text": "public function getCompliantUserCount(): ?int {\n $val = $this->getBackingStore()->get('compliantUserCount');\n if (is_null($val) || is_int($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'compliantUserCount'\");\n }", "title": "" }, { "docid": "17188402561bd4f739b91b223cf31b39", "score": "0.52867925", "text": "public function getNumUsers()\n {\n return $this->num_users;\n }", "title": "" }, { "docid": "17188402561bd4f739b91b223cf31b39", "score": "0.52867925", "text": "public function getNumUsers()\n {\n return $this->num_users;\n }", "title": "" }, { "docid": "31c14de689f96517fff9e2a2f9921aaa", "score": "0.52812", "text": "public function setCount($count) {\n $this->count = $count;\n }", "title": "" }, { "docid": "04212f859d5ae136558704b1100f7f7c", "score": "0.52684534", "text": "public function setCount(int $count): void\n {\n $this->count = $count;\n }", "title": "" }, { "docid": "895fa70b0a9fa3adb4fda551e8e10d33", "score": "0.5264113", "text": "public function setSuccessfulObjectsProvisioningCount($val)\n {\n $this->_propDict[\"successfulObjectsProvisioningCount\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "593c0a18ff612622b46aeb4a2dd3463e", "score": "0.5259445", "text": "public function count()\n {\n $userObj = new user();\n $userId = $_SESSION['user_id'];\n $userType = $userObj->getUserType($userId);\n try {\n /*\n * Getting the user type\n */\n $userTypeCode = R::getCell(\"SELECT DISTINCT type FROM credentials WHERE user='$userId' LIMIT 1\");\n /*\n * Counting notifications dedicated to user types\n */\n $notificationUL = R::getAll(\"SELECT DISTINCT id FROM notification WHERE privacy='1' AND dedicated='$userTypeCode' AND status='0'\");\n /*\n * Counting notification dedicated to the logged in user\n */\n $notificationPNP = R::getAll(\"SELECT DISTINCT id FROM notification WHERE privacy='2' AND dedicated='$userId' AND status='0'\");\n $this->count = count($notificationUL) + count($notificationPNP);\n if ($this->count > 0) {\n $this->head = \"You have \" . $this->count . \" notifications!\";\n }\n } catch (Exception $e) {\n error_log(\"NOTIFICATION(count):\" . $e);\n }\n }", "title": "" }, { "docid": "81d5f3070295fcd8545e5be6dc34031b", "score": "0.5210196", "text": "public function count() {\n\t\treturn User::count();\n\t}", "title": "" }, { "docid": "03b6b9ffc0ac11d3144ef0b86f1681f8", "score": "0.5201724", "text": "public function updateAffiliationCount($affiliated_users) {\n $dm = $this->container->get('doctrine.odm.mongodb.document_manager');\n $users_array = array();\n $time = new \\DateTime(\"now\");\n //loop for the affiliated users\n foreach($affiliated_users as $affiliated_user) {\n $affiliation_count = $affiliated_user->getCount();\n $users_array[] = $affiliated_user->getEmail();\n $new_count = $affiliation_count + 1;\n $affiliated_user->setCount($new_count);\n $affiliated_user->setUpdatedAt($time);\n $dm->persist($affiliated_user); \n }\n $dm->flush();\n return $users_array;\n }", "title": "" }, { "docid": "8e7957f08c1b9d83f67ced55a456ea52", "score": "0.5200715", "text": "public function setCount($value)\n {\n return $this->set('Count', $value);\n }", "title": "" }, { "docid": "8e7957f08c1b9d83f67ced55a456ea52", "score": "0.5200715", "text": "public function setCount($value)\n {\n return $this->set('Count', $value);\n }", "title": "" }, { "docid": "8e7957f08c1b9d83f67ced55a456ea52", "score": "0.5200715", "text": "public function setCount($value)\n {\n return $this->set('Count', $value);\n }", "title": "" }, { "docid": "3febacd88afe203fc5c0121625f63fc8", "score": "0.51831573", "text": "public function setCount($count)\r\n\t{\r\n\t\t$this->_count = $count;\r\n\t}", "title": "" }, { "docid": "28e00c9ebf88258d0a382a96d1076d72", "score": "0.51721364", "text": "public function setUnclassifiedConversationsCount($var)\n {\n GPBUtil::checkInt64($var);\n $this->unclassified_conversations_count = $var;\n\n return $this;\n }", "title": "" }, { "docid": "8f47178412768de8df4734ac9e41bd8e", "score": "0.5169268", "text": "public function countUsers() {\n return User::count();\n }", "title": "" }, { "docid": "851b4fe2c6973e686d953d95f0d52a8a", "score": "0.51690644", "text": "public function setCount($count)\n {\n $this->count = $count;\n }", "title": "" }, { "docid": "8aeda2ded0d3539b82e0496a6407cdcc", "score": "0.5168642", "text": "public function count($number = 1, $user = false)\n\t{\n\t\t$this->phpconsole->count($number, $user);\n\t}", "title": "" }, { "docid": "aa727e7a746ae1f314622578518cc88a", "score": "0.515465", "text": "public function getUserCount()\n {\n // TODO: Add offline users?\n return $this->users->count();\n }", "title": "" }, { "docid": "941b86444045e20ed204527d62f983cd", "score": "0.5153209", "text": "public function setDeviceImpactedCount(?int $value): void {\n $this->getBackingStore()->set('deviceImpactedCount', $value);\n }", "title": "" }, { "docid": "c3e31c86dbe39c311258cb92ecdad4df", "score": "0.51411295", "text": "public function setCount($value)\n {\n return $this->set(self::COUNT, $value);\n }", "title": "" }, { "docid": "d57d9901891f82040c125609ca3c6cb3", "score": "0.51258546", "text": "public function getUserCount() {\n\t\treturn $this->_userCount;\n\t}", "title": "" }, { "docid": "2c2180e60c8b635489693811b29d96d9", "score": "0.51141703", "text": "function update_doc_count() {\n\t\tbp_docs_update_doc_count( bp_loggedin_user_id(), 'user' );\n\t}", "title": "" }, { "docid": "0b96721993d8e84bdc9d3674555d0d80", "score": "0.5109296", "text": "function count_users() {\n\n\t\treturn $this -> db -> count_all(\"AllUsers\");\n\n\t}", "title": "" }, { "docid": "d27f8f167040a58b2d8bc37a68029973", "score": "0.51079553", "text": "public function setSubscriberCount($value)\n {\n $this->_subscriberCount = $value;\n return $this;\n }", "title": "" }, { "docid": "4c897dd6629bbe0a98c2ef0c0479de7f", "score": "0.510112", "text": "public function get_result_user_count() {\n if (is_null($this->result_user_count)) {\n $this->result_user_count = count($this->result_users);\n }\n return $this->result_user_count;\n }", "title": "" }, { "docid": "d6de18b34ac223a5168975d950d1c44d", "score": "0.50778824", "text": "public function setCouponAvailableCount($value)\n {\n return $this->set(self::coupon_available_count, $value);\n }", "title": "" }, { "docid": "f75691b2c8486ae76e1229f1aa6e000f", "score": "0.50638586", "text": "public function count()\n {\n return $this->getUserJar()->count();\n }", "title": "" }, { "docid": "b2863704f2ddf8ff1c62046ac865232a", "score": "0.5052546", "text": "public function testCount()\n {\n $users = $this->repository->count();\n $this->assertEquals(4, $users);\n }", "title": "" }, { "docid": "9efdea39b126e2fbb49f9410308566dc", "score": "0.5021975", "text": "public function setSuccessfulLinksProvisioningCount($val)\n {\n $this->_propDict[\"successfulLinksProvisioningCount\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "dfe4fbe6c3ff120ae2ba34a64bbec14d", "score": "0.5020928", "text": "public static function getNumUsers() {\n return self::$numUsers;\n }", "title": "" }, { "docid": "ea23f25c454d0995b785c3f77c56d0f1", "score": "0.5015988", "text": "public function count()\n {\n return 5;\n }", "title": "" }, { "docid": "3ee5369c942cfb95713cb68006de61ec", "score": "0.5013837", "text": "public function setCount($value)\n {\n $this->_count = $value;\n return $this;\n }", "title": "" }, { "docid": "87e1abb9bd5a401ba56edbb80f5c7f5c", "score": "0.5013613", "text": "private function countUserOnSelected($majorName) {\n try {\n return sizeof($this->orderedMajor[$majorName]);\n } catch(Exception $e) {\n return 0;\n }\n }", "title": "" }, { "docid": "15e9b27044e77791be46624bdd25713a", "score": "0.5010519", "text": "function calcNumActiveUsers() {\n /* Calculate number of USERS at site */\n $sql = $this->connection->query(\"SELECT * FROM \" . TBL_ACTIVE_USERS);\n $this->num_active_users = $sql->rowCount();\n }", "title": "" }, { "docid": "f3cd4999ae432db9bbe791ae74211d95", "score": "0.4981013", "text": "public function getUsersCountAttribute(): int\n {\n return $this->roles->sum(function (Role $role) {\n return $role->users->count();\n });\n }", "title": "" }, { "docid": "01b3da55bfc448d10420a61855c9d3f6", "score": "0.49765515", "text": "public function setSiteCount(?int $value): void {\n $this->getBackingStore()->set('siteCount', $value);\n }", "title": "" }, { "docid": "f5fee50bc07e137408ef0963b2a307d0", "score": "0.49747145", "text": "public function setCount($value)\n {\n return $this->setParameter('count', $value);\n }", "title": "" }, { "docid": "ba1de41e60c0a3d9ed7939cd9920821f", "score": "0.4974181", "text": "public function updateMemberCount()\r\n {\r\n $memberCount = $this->_getSocialForumMemberModel()->countSocialForumMembers(array('social_forum_id' => $this->get('social_forum_id')));\r\n $this->set('member_count', $memberCount);\r\n }", "title": "" }, { "docid": "d9eb15815e9e6c0572a1cbd90d242b83", "score": "0.4952745", "text": "public function totalUsers(): int\n {\n return $this->user->getRepo()->count();\n }", "title": "" }, { "docid": "dd386d915d12fe013902e0b2e1053786", "score": "0.49516794", "text": "public function count15()\n {\n $user = User::find(1);\n $user->reputation += 15;\n $user->save();\n return redirect('/pertanyaan');\n }", "title": "" }, { "docid": "d52a2d92db5d20f884f2b546ab9799fe", "score": "0.49459195", "text": "public function totalUsers()\n {\n return $this->count();\n }", "title": "" }, { "docid": "1870dad1c01875e90fbbb46747b8b6ec", "score": "0.49427262", "text": "public function setNumUsers($var)\n {\n GPBUtil::checkUint32($var);\n $this->num_users = $var;\n\n return $this;\n }", "title": "" }, { "docid": "316184b293ebad96d9f4d22f441aa45d", "score": "0.49355608", "text": "public function testUserSeedCountTest()\n {\n //$this->assertTrue(true);\n $users = User::All();\n $userCount = $users->count();\n //dd($userCount);\n $this->assertIsInt($userCount);\n $this->assertLessThanOrEqual(50,$userCount);\n }", "title": "" }, { "docid": "98e7fb30193d2fe8972e33eddbdc81f5", "score": "0.49221188", "text": "public function setManagedDeviceCount(?int $value): void {\n $this->getBackingStore()->set('managedDeviceCount', $value);\n }", "title": "" }, { "docid": "fe56bc20e89105cadbdfa53e965c14de", "score": "0.49192113", "text": "public function getEnabledUsersCount(): int {\n if (($count = $this->cache->get_value('stats_user_count')) == false) {\n $count = $this->db->scalar(\"SELECT count(*) FROM users_main WHERE Enabled = '1'\");\n $this->cache->cache_value('stats_user_count', $count, 0);\n }\n return $count;\n }", "title": "" }, { "docid": "08565d31fcb0e64505779180587e0424", "score": "0.48951146", "text": "public function setNumberOfSubscribers($number_of_subscribers){\r\n if(intval($number_of_subscribers) <0 || intval($number_of_subscribers) >999999) {\r\n throw new CourseException(\"Invalid number of subscribers\");\r\n }\r\n //otherwise set number of subscribers\r\n $this->_number_of_subscribers = $number_of_subscribers;\r\n }", "title": "" }, { "docid": "65e0ba0de213cb6052d45bbed7801d4e", "score": "0.48950297", "text": "public function getCountUser()\n {\n return $this->db->table(\"users\")->countAll();\n }", "title": "" }, { "docid": "1ac97635010ca6e05917ea912c89af7d", "score": "0.48895523", "text": "public function setConflictDeviceCount(?int $value): void {\n $this->getBackingStore()->set('conflictDeviceCount', $value);\n }", "title": "" }, { "docid": "ae26e308bace25559dc48c0addf5f82d", "score": "0.48876426", "text": "public function CountUsersAsAssessmentManager() {\n\t\t\tif ((is_null($this->intId)))\n\t\t\t\treturn 0;\n\n\t\t\treturn User::CountByGroupAssessmentListAsAssessmentManager($this->intId);\n\t\t}", "title": "" }, { "docid": "a75c5ddf2f2c104b584d4b7874db9262", "score": "0.48846224", "text": "function setAcceptCountRequests($acceptCountRequest);", "title": "" }, { "docid": "562907271b25c48223921c771aba10d4", "score": "0.48843962", "text": "public function setCount($var)\n {\n GPBUtil::checkInt32($var);\n $this->count = $var;\n }", "title": "" }, { "docid": "7729102921c47132609229eac2889fa6", "score": "0.48824066", "text": "public function setVoterCount(int $voterCount): void\n {\n $this->voterCount = $voterCount;\n }", "title": "" }, { "docid": "d4c683159babf181d29ebd91770012f0", "score": "0.4869409", "text": "public function getUserCount()\n\t{\n\t\ttry {\n\t\t\t$db = Factory::getDatabase($this->getJname());\n\n\t\t\t$query = $db->getQuery(true)\n\t\t\t\t->select('count(*)')\n\t\t\t\t->from('#__users');\n\n\t\t\t$db->setQuery($query);\n\t\t\t//getting the results\n\t\t\treturn $db->loadResult();\n\t\t} catch (Exception $e) {\n\t\t\tFramework::raise(LogLevel::ERROR, $e, $this->getJname());\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "80c9819267f9f0a7c81d17d5bd13405f", "score": "0.48490545", "text": "private function getCountOfUsers() {\n $query = db_select('users', 'f')\n ->fields(NULL, array('uid'));\n $result = $query->execute()->fetchAll();\n return count($result);\n }", "title": "" }, { "docid": "55531dadb1061c85d765ddf4c35e4c31", "score": "0.4831197", "text": "public function countUsers($conditions){\n $count = Yii::app()->db->createCommand(array(\n 'select' => array('count(*) as num'),\n 'from' => 'tbl_users t1, tbl_users_profiles t2',\n 'where' => ($conditions),\n ))->queryAll();\n\n return $count[0]['num'];\n }", "title": "" }, { "docid": "06b6fcff99519a0ba2df1189a3ec1596", "score": "0.4821238", "text": "public function setErrorDeviceCount(?int $value): void {\n $this->getBackingStore()->set('errorDeviceCount', $value);\n }", "title": "" }, { "docid": "cf6d7804c5c0f406aade72a39fb55ae0", "score": "0.48162594", "text": "public function numberOfParticipationsInAPurchasingFair(User $user);", "title": "" }, { "docid": "081d52e3ae1871499aefffc784f726e4", "score": "0.481475", "text": "public function set(User $user)\n {\n if ($user->hadStatus(['4a'])) {\n return $user->school->pic->count() < 2 || $user->school->implementations->count() < 1;\n }\n }", "title": "" }, { "docid": "4210a6ecc53e9b7a9002190add65e7a9", "score": "0.4814606", "text": "function setPageCount($count)\n {\n $count=intval($count);\n\n if($count > 0)\n $this->_pagecount=$count;\n }", "title": "" }, { "docid": "5989340f72aadd6d24497eae2c39bfad", "score": "0.48078394", "text": "public function count() {\n $this->count = TRUE;\n }", "title": "" }, { "docid": "a5035f8ec37c1e2e1eb8b1b89aad2e73", "score": "0.48011625", "text": "public function testSearchRolesWithUserCount()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "b0558007ea674402f555cd0751267160", "score": "0.4800559", "text": "public function count()\n {\n $requests = UserRequest::where('requested_user', auth()->id())->get();\n $user_list = [];\n\n // Add total users to list\n foreach($requests as $request){\n // Get user returns array, get first find of array\n array_push($user_list, User::where('id', $request[\"user_id\"])->get()[0]);\n }\n\n return response()->json(count($user_list), 200);\n }", "title": "" }, { "docid": "3f2c51ebe1ed8b0a8bc773d55880110b", "score": "0.47949463", "text": "public function setIncompleteJobCount(?int $value): void {\n $this->getBackingStore()->set('incompleteJobCount', $value);\n }", "title": "" }, { "docid": "54ff2374642a7fe9299c5e0e84be3b0e", "score": "0.47731212", "text": "public function setPageCount(?int $value): void {\n $this->getBackingStore()->set('pageCount', $value);\n }", "title": "" }, { "docid": "8ab69484c6c663d963d1e067147c919d", "score": "0.47644517", "text": "public function setRowCount($nbrows)\n {\n $this->nbrows = filter_var($nbrows, FILTER_VALIDATE_INT, ['options' => ['min_range' => 1, 'default' => 100]]);\n }", "title": "" }, { "docid": "becaccf70ca18f069ddf717507b2e1ba", "score": "0.47636342", "text": "public function setContactsCount($count) {\n if (!is_int($count) || $count < 0 || $count > 30000) {\n throw new InvalidArgumentException(\"\\\"contacts\\\" is no integer or its value is invalid\");\n }\n $this->contacts = $count;\n }", "title": "" }, { "docid": "7f27fb43b7f8b03ca572c8aa2f4d0628", "score": "0.4759454", "text": "public function setRegistrationCount($val)\n {\n $this->_propDict[\"registrationCount\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "87b8b3951766abd5eda6fcafc9fb4c5e", "score": "0.4757686", "text": "public function setTotalCount($value)\n\t{\n\t\t$this->_totalCount = $value;\n\t}", "title": "" }, { "docid": "6b24ddc115648d63858a01ad9c64fc23", "score": "0.47537827", "text": "public function countNonDeletedUsers(): int\n {\n $amount = $this->createQueryBuilder('u')\n ->select('count(u.id)')\n ->getQuery()\n ->getSingleScalarResult();\n \n return intval($amount);\n }", "title": "" }, { "docid": "e0fb1b88a37ce55cb3ac8bb83ae79903", "score": "0.4750482", "text": "public function getUserCount($filter = array()) {\n\n\t\tif($this->users === null) $this->_loadUserData();\n\n\t\tif(!count($filter)) return count($this->users);\n\n\t\t$count = 0;\n\t\t$this->_constructPattern($filter);\n\n\t\tforeach($this->users as $user => $info) {\n\t\t\t$count += $this->_filter($user, $info);\n\t\t}\n\n\t\treturn $count;\n\t}", "title": "" } ]
18c405b9f55bb07530f91e4d1343790b
Sets a new name
[ { "docid": "9af294495ff787167607f6efeeb1e54e", "score": "0.0", "text": "public function setName($name)\n {\n $this->name = $name;\n return $this;\n }", "title": "" } ]
[ { "docid": "58f1c65d29b0bacb6b1064198c0ec692", "score": "0.8530702", "text": "public function SetName ($name);", "title": "" }, { "docid": "ebab65a1cb5573af2917e3f197ec7c40", "score": "0.8507479", "text": "public function set_name($new_name) {\r\n\t\t$this->name = strtoupper($new_name);\r\n\t}", "title": "" }, { "docid": "8f74a5116cf80f4b8151ecbebf06b43c", "score": "0.8393234", "text": "function set_name($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "0c8dc1ae6d6df64c8376b805c2678452", "score": "0.8385239", "text": "public function setName($name) {\n\t\t$this->_name = $name;\n\t}", "title": "" }, { "docid": "2b5ddec42637a2ed00979f33e9b910ce", "score": "0.837219", "text": "public function setName($name) {\r\n\t\t$this->name = $name;\r\n\t}", "title": "" }, { "docid": "67e6e4174f79bcab1e7b1f673be968c7", "score": "0.83621806", "text": "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "67e6e4174f79bcab1e7b1f673be968c7", "score": "0.83621806", "text": "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "67e6e4174f79bcab1e7b1f673be968c7", "score": "0.83621806", "text": "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "67e6e4174f79bcab1e7b1f673be968c7", "score": "0.83621806", "text": "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "67e6e4174f79bcab1e7b1f673be968c7", "score": "0.83621806", "text": "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "67e6e4174f79bcab1e7b1f673be968c7", "score": "0.83621806", "text": "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "67e6e4174f79bcab1e7b1f673be968c7", "score": "0.83621806", "text": "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "67e6e4174f79bcab1e7b1f673be968c7", "score": "0.83621806", "text": "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "ac0d8fd0b30eac6b00ae4fa8ee52e2cc", "score": "0.8360488", "text": "public function setName( string $name ) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "61426b383e4fd4663da0836202556050", "score": "0.83385897", "text": "public function set_name($name);", "title": "" }, { "docid": "7f7043487fdebe2ccfe0ec24665282e9", "score": "0.8325072", "text": "public function setName($name){\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "7f7043487fdebe2ccfe0ec24665282e9", "score": "0.8325072", "text": "public function setName($name){\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "99051444ef342a07d47cfd36fad364bf", "score": "0.83156055", "text": "public function setName($name)\n {\n $this->_name = $name;\n }", "title": "" }, { "docid": "950adf0f7af01843eb2e9f49ff54bb3c", "score": "0.83080304", "text": "public function setName($name) \n {\n $this->_name = $name; \n }", "title": "" }, { "docid": "98bcdd0c730ecdf25e325b4d743f3b25", "score": "0.8306873", "text": "public function setName($name)\n {\n $this->_name = $name;\n }", "title": "" }, { "docid": "98bcdd0c730ecdf25e325b4d743f3b25", "score": "0.8306873", "text": "public function setName($name)\n {\n $this->_name = $name;\n }", "title": "" }, { "docid": "98bcdd0c730ecdf25e325b4d743f3b25", "score": "0.8306873", "text": "public function setName($name)\n {\n $this->_name = $name;\n }", "title": "" }, { "docid": "98bcdd0c730ecdf25e325b4d743f3b25", "score": "0.8306873", "text": "public function setName($name)\n {\n $this->_name = $name;\n }", "title": "" }, { "docid": "ad1e85ad83794d6d78f084e5ec921916", "score": "0.8301521", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "7ced859b4a366e5f07274046413e5429", "score": "0.8288949", "text": "private function setName($name) {\n if (is_string($name)) {\n $this->name = $name;\n }\n }", "title": "" }, { "docid": "6f3a03d1164985316ad7716873b23749", "score": "0.8279843", "text": "public function setName($name)\n\t{\n\t\t$this->_name = $name;\n\t}", "title": "" }, { "docid": "6f3a03d1164985316ad7716873b23749", "score": "0.8279843", "text": "public function setName($name)\n\t{\n\t\t$this->_name = $name;\n\t}", "title": "" }, { "docid": "239747259e2706e42ded281e92a9bc07", "score": "0.82763", "text": "public function setName($name){\n $this->_name = $name;\n }", "title": "" }, { "docid": "f22f450542024d74089a134d3a448b7c", "score": "0.82715493", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "f22f450542024d74089a134d3a448b7c", "score": "0.82715493", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "f22f450542024d74089a134d3a448b7c", "score": "0.82715493", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "f22f450542024d74089a134d3a448b7c", "score": "0.82715493", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "f22f450542024d74089a134d3a448b7c", "score": "0.82715493", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "f22f450542024d74089a134d3a448b7c", "score": "0.82715493", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "be2ce27ef605083fe3364fce3c147c36", "score": "0.8264964", "text": "function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "2ae69472698c639a0980f116f156bf49", "score": "0.8264429", "text": "protected function setName(string $name)\r\n\t{\r\n\t\t$this->name = $name;\r\n\t}", "title": "" }, { "docid": "b24d3e5f0f412f8360aefc0320fb9ed3", "score": "0.8263753", "text": "public function setName($name) {\n\t\t$this->_name = (string)$name;\n\t}", "title": "" }, { "docid": "5f62264550f107d3f176ff41a219e135", "score": "0.82578695", "text": "protected function setName(string $name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "85fe09cf25316766135f2227186bd7cd", "score": "0.82564104", "text": "function setName($value) {\n $this->name = $value;\n }", "title": "" }, { "docid": "97a50c127b0b8e17d27d12dbd1aa0a82", "score": "0.825416", "text": "public function setName($name){\n \n $this->name = $name;\n \n }", "title": "" }, { "docid": "ebf75473c7371d94e8c46aea8cb85fa3", "score": "0.8253735", "text": "public function setName($name) \n {\n $this->name = $name;\n }", "title": "" }, { "docid": "65542b583217c55d5ba1814577d8b460", "score": "0.8247722", "text": "public function setName($name)\r\n {\r\n $this->name = $name;\r\n }", "title": "" }, { "docid": "701530ab3e85c1a61960a9d342ad34ff", "score": "0.824557", "text": "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "701530ab3e85c1a61960a9d342ad34ff", "score": "0.824557", "text": "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "701530ab3e85c1a61960a9d342ad34ff", "score": "0.824557", "text": "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "701530ab3e85c1a61960a9d342ad34ff", "score": "0.824557", "text": "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "701530ab3e85c1a61960a9d342ad34ff", "score": "0.824557", "text": "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "701530ab3e85c1a61960a9d342ad34ff", "score": "0.824557", "text": "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "701530ab3e85c1a61960a9d342ad34ff", "score": "0.824557", "text": "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "1b7be860a133ac1bb6fae30c5bf44e82", "score": "0.82418126", "text": "public function setName(string $name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "4e131b2302d6c56eada534a04e9b4649", "score": "0.8232573", "text": "public function setName(string $name)\n\t{\n\t\t$this->name=$name; \n\t\t$this->keyModified['name'] = 1; \n\n\t}", "title": "" }, { "docid": "1a9d521fefebe53811f2440ae90310af", "score": "0.82220954", "text": "function setName($value) {\n $this->name = $value;\n }", "title": "" }, { "docid": "53e644421352f3c645297ad50cd01cca", "score": "0.82201576", "text": "public function setName( $name ) {\n\t\t$this->mName = $name;\n\t}", "title": "" }, { "docid": "b1f6fc21d556b6484721b5432ff07e85", "score": "0.8211843", "text": "public function setName(string $name)\n\t{\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "f77441b08d2ec59ae63d6b102acbc3e2", "score": "0.82075596", "text": "public function setName ($name){\n\t\tif($name){\n\t\t\t$this->Item['name'] = substr($name, 0,100);\n\t\t}\n\t}", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.81983507", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "c819dcc8018b321cece5cd54cab740fe", "score": "0.81951535", "text": "public function setName($name)\n {\n $this->_name = (string)$name;\n }", "title": "" }, { "docid": "a0a124815b89b77aae3b816063f26b33", "score": "0.8181759", "text": "protected function setName($value)\n\t{\n\t\t$this->name = $value;\n\t}", "title": "" }, { "docid": "a0a124815b89b77aae3b816063f26b33", "score": "0.8181759", "text": "protected function setName($value)\n\t{\n\t\t$this->name = $value;\n\t}", "title": "" }, { "docid": "20d6dee52a093c2641bd17a34d4e63b1", "score": "0.81707084", "text": "public function setName($name)\n {\n $this->setValue('name', $name);\n }", "title": "" }, { "docid": "b842e3106a95f9cad51b4f4578b7a333", "score": "0.816607", "text": "public function setName( $name )\n\t{\n\t\t$this->setAttribute( \"name\", $name );\n\t}", "title": "" }, { "docid": "b842e3106a95f9cad51b4f4578b7a333", "score": "0.816607", "text": "public function setName( $name )\n\t{\n\t\t$this->setAttribute( \"name\", $name );\n\t}", "title": "" }, { "docid": "e3be645af1441c8dd74be80918936382", "score": "0.8160537", "text": "public function setName( $name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "e11eac55caea620b6660d39f0afafa29", "score": "0.81577957", "text": "public function setName(string $name) {\n\n $this->name = $name;\n\n }", "title": "" }, { "docid": "73fdd179ae237d79225889a8be302d90", "score": "0.81472933", "text": "public function setName($name)\n {\n $this->name = $name;\n\n \n }", "title": "" }, { "docid": "e92e8f28da18194a10ce9b80717d5d33", "score": "0.8146493", "text": "function setName($newName){\n $this->name = \"Glittery \" . $newName;\n }", "title": "" }, { "docid": "50a0f5323e2fb8107cd98675783d4a08", "score": "0.8138236", "text": "public static function setName($name)\n\t{\n\t\tself::$name = $name;\n\t}", "title": "" }, { "docid": "f0fd84b1aa38111ffff8a1e35b721521", "score": "0.8130826", "text": "public function setName($name){\n $this->__set('name',$name);\n }", "title": "" }, { "docid": "a5ab069184d29d9a9a5acca766aee2b2", "score": "0.8127139", "text": "public function setName($value)\r\n {\r\n $this->name = $value;\r\n }", "title": "" }, { "docid": "a5ab069184d29d9a9a5acca766aee2b2", "score": "0.8127139", "text": "public function setName($value)\r\n {\r\n $this->name = $value;\r\n }", "title": "" }, { "docid": "4e2aa9c876b352d92e7abf596df11a07", "score": "0.8124598", "text": "protected function _setName($name, $value) {}", "title": "" } ]
629ac10445d98caae3fc6f986427edf5
Retrieve identities, filtered by various parameters
[ { "docid": "a16102209d435e6b1907acfdfbda46b3", "score": "0.0", "text": "public function get(array $identity = [], bool $linked = false, int $afterIdentityId = null, int $limit = 50, $extraFields = false) {\n\t\t$select = $this->db->select()\n\t\t\t->from('identities')\n\t\t\t->join('identity_values', 'identities.identity_id = identity_values.identity_id', ['value'], Zend\\Db\\Sql\\Select::JOIN_LEFT)\n\t\t\t->join('identity_fields', 'identity_fields.field_id = identity_values.field_id', ['key'], Zend\\Db\\Sql\\Select::JOIN_LEFT);\n\n\t\tif (!$extraFields) {\n\t\t\t$select->columns(['identity_id', 'ethereum_address']);\n\t\t}\n\n\t\tif ($linked) {\n\t\t\t$select->where(\"ethereum_address != ''\");\n\t\t}\n\n\t\tforeach ($identity as $key => $value) {\n\t\t\tswitch ($key) {\n\t\t\t\tcase 'identity_id':\n\t\t\t\tcase 'ethereum_address':\n\t\t\t\tcase 'identity_code':\n\t\t\t\t\t$select->where(['identities.' . $key => $value]);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$select->where(['identity_fields.key' => $key]);\n\t\t\t\t\t$select->where(['identity_values.value' => $value]);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif ($afterIdentityId) {\n\t\t\t$select->where->greaterThan('identities.identity_id', $afterIdentityId);\n\t\t}\n\n\t\t$select->limit($limit);\n\n\t\t$results = Db::query($select);\n\t\t$idents = $results->toArray();\n\n\t\tforeach ($idents as &$ident) {\n\t\t\tunset($ident['key']);\n\t\t\tunset($ident['value']);\n\n\t\t\t$select = $this->db->select()\n\t\t\t\t->from('identity_values')\n\t\t\t\t->join('identity_fields', 'identity_fields.field_id = identity_values.field_id', Zend\\Db\\Sql\\Select::SQL_STAR, Zend\\Db\\Sql\\Select::JOIN_INNER)\n\t\t\t\t->where(['identity_id' => $ident['identity_id']]);\n\t\t\t$selectResults = Db::query($select)->toArray();\n\t\t\tforeach ($selectResults as $selectResult) {\n\t\t\t\t$ident[$selectResult['key']] = $selectResult['value'];\n\t\t\t}\n\t\t}\n\n\t\treturn $idents;\n\t}", "title": "" } ]
[ { "docid": "a3b895f53969f9b6ed1b6762964395fb", "score": "0.63760084", "text": "public function getIdentifiers();", "title": "" }, { "docid": "e8f2e74bf5ec73817550d0ee7332b82b", "score": "0.60812306", "text": "function list_identities($sql_add = '', $formatted = false)\n {\n $result = array();\n\n $sql_result = $this->db->query(\n \"SELECT * FROM \".$this->db->table_name('identities', true).\n \" WHERE `del` <> 1 AND `user_id` = ?\".\n ($sql_add ? \" \".$sql_add : \"\").\n \" ORDER BY `standard` DESC, `name` ASC, `email` ASC, `identity_id` ASC\",\n $this->ID);\n\n while ($sql_arr = $this->db->fetch_assoc($sql_result)) {\n if ($formatted) {\n $ascii_email = format_email($sql_arr['email']);\n $utf8_email = format_email(rcube_utils::idn_to_utf8($ascii_email));\n\n $sql_arr['email_ascii'] = $ascii_email;\n $sql_arr['email'] = $utf8_email;\n $sql_arr['ident'] = format_email_recipient($ascii_email, $sql_arr['name']);\n }\n\n $result[] = $sql_arr;\n }\n\n return $result;\n }", "title": "" }, { "docid": "485fabe65780397258beaf9fc795188d", "score": "0.6022585", "text": "public function getIdentifiers()\n {\n // extract capture identifers.\n return array_merge(\n // capture uuid\n $this->get('$.uuid'),\n // capture social ids from profiles plural\n $this->get('$.profiles[*].identifier'),\n // engage social id\n $this->get('$.profile.identifier')\n );\n }", "title": "" }, { "docid": "f31b1c1f0decb6b5dd1e3a7c2acec1d7", "score": "0.5892513", "text": "function idsForIdentifier($identifier, $identifierType=null, $login=false, $coId=null) {\n $ret = array();\n \n // First pull the identifier record\n \n $args = array();\n $args['conditions']['Identifier.identifier'] = $identifier;\n if($login) {\n $args['conditions']['Identifier.login'] = true;\n }\n $args['conditions']['Identifier.status'] = StatusEnum::Active;\n $args['contain'] = false;\n \n if($coId != null) {\n // Only pull records associated with this CO ID\n \n $args['joins'][0]['table'] = 'co_people';\n $args['joins'][0]['alias'] = 'CoPerson';\n $args['joins'][0]['type'] = 'LEFT';\n $args['joins'][0]['conditions'][0] = 'Identifier.co_person_id=CoPerson.id';\n $args['joins'][1]['table'] = 'org_identities';\n $args['joins'][1]['alias'] = 'OrgIdentity';\n $args['joins'][1]['type'] = 'LEFT';\n $args['joins'][1]['conditions'][0] = 'Identifier.org_identity_id=OrgIdentity.id';\n $args['conditions']['OR']['CoPerson.co_id'] = $coId;\n \n $CmpEnrollmentConfiguration = ClassRegistry::init('CmpEnrollmentConfiguration');\n \n if($CmpEnrollmentConfiguration->orgIdentitiesPooled()) {\n $args['conditions']['OR'][] = 'OrgIdentity.co_id IS NULL';\n } else {\n $args['conditions']['OR']['OrgIdentity.co_id'] = $coId;\n }\n }\n \n if($identifierType) {\n $args['conditions']['Identifier.type'] = $identifierType;\n }\n \n // We might get more than one record, especially if no CO ID and/or type was specified.\n \n $ids = $this->Identifier->find('all', $args);\n \n if(!empty($ids)) {\n foreach($ids as $i) {\n if(isset($i['Identifier']['co_person_id'])) {\n // The identifier is attached to a CO Person, return that ID.\n \n $ret[] = $i['Identifier']['co_person_id'];\n } else {\n // Map the org identity to a CO person. We might pull more than one.\n // In this case, it's OK since they come back to the same org person.\n \n $args = array();\n $args['conditions']['CoOrgIdentityLink.org_identity_id'] = $i['Identifier']['org_identity_id'];\n $args['fields'][] = 'CoOrgIdentityLink.co_person_id';\n $args['contain'] = false;\n \n if($coId != null) {\n $args['joins'][0]['table'] = 'co_people';\n $args['joins'][0]['alias'] = 'CoPerson';\n $args['joins'][0]['type'] = 'INNER';\n $args['joins'][0]['conditions'][0] = 'CoOrgIdentityLink.co_person_id=CoPerson.id';\n $args['conditions']['CoPerson.co_id'] = $coId;\n }\n \n $links = $this->CoOrgIdentityLink->find('list', $args);\n \n if(!empty($links)) {\n foreach(array_values($links) as $v) {\n $ret[] = $v;\n }\n } else {\n // We don't want to throw an error here because we don't want a single\n // OrgIdentity without a corresponding CoPerson to prevent other CoPeople\n // from being returned.\n// throw new InvalidArgumentException(_txt('er.cop.unk'));\n }\n }\n }\n } else {\n throw new InvalidArgumentException(_txt('er.id.unk'));\n }\n \n return $ret;\n }", "title": "" }, { "docid": "874f1582cf13ad844f8c57b0ba4c6db5", "score": "0.585187", "text": "public static function listIdentifiers(){ return parent::listIdentifiers(); }", "title": "" }, { "docid": "bf54db95a15db9471f648bd847ebce4d", "score": "0.5837111", "text": "public function getIdentification();", "title": "" }, { "docid": "64d9f8103d54b76b2c0359457e29d065", "score": "0.5818191", "text": "public function getIdentifiers(EntityManager $em);", "title": "" }, { "docid": "016c8103c5c626ca2b1509c89988fb6d", "score": "0.5741569", "text": "public function getIds();", "title": "" }, { "docid": "5f4ba8e7c413e4e8b844555e0e864e2d", "score": "0.57369083", "text": "public function getAllIds();", "title": "" }, { "docid": "0fc86a13e844d368822af52f79abc99e", "score": "0.57287073", "text": "public function getInfo($_id_list = array()) {\n $_id_list = array_filter($_id_list);\n \n// $this->mongo_db->select($select);\n $this->mongo_db->where_in('account_id', $_id_list);\n\n $result = $this->mongo_db->get($this->table_name);\n $nickname_list = array();\n $count = count($result);\n\n for ($i = 0; $i < $count; $i++) {\n $nickname_list[(string) $result[$i]['account_id']] = $result[$i];\n }\n return $nickname_list;\n }", "title": "" }, { "docid": "cd03b69ad1bbb611649a7af2aeafec11", "score": "0.56566", "text": "public function fetchCustomerProfileIds();", "title": "" }, { "docid": "9b02ffda1b1c7f6230f2baef8b4d5da3", "score": "0.56481975", "text": "abstract protected function fetchEntryIds(array $filter): array;", "title": "" }, { "docid": "56f99a2e01e0d33f0031a64a35ebf691", "score": "0.563392", "text": "public function searchId();", "title": "" }, { "docid": "de952faa74776cdd91dff7b76a85d96e", "score": "0.5610828", "text": "function getIds() {\n $data = $this->conn->getIds();\n die(\"{data : \" . json_encode($data) . \"}\");\n }", "title": "" }, { "docid": "e8bdaf1b155ac2f991eda9e10fc189ae", "score": "0.5582605", "text": "public function getAuthIdentityFields();", "title": "" }, { "docid": "74ceef98e312b0401108ff75e8e8778e", "score": "0.5566996", "text": "function getByIdList( $userIdList );", "title": "" }, { "docid": "55b8f04cf33da2e977bbb9a39f31c9e5", "score": "0.5540757", "text": "function idInUse ($idNum) {\n return (R::findOne('students', 'studID=? AND session=?', array($idNum, $_SESSION['session'])));\n}", "title": "" }, { "docid": "ab6200b7e291c2c099be01e1eeaa01da", "score": "0.553093", "text": "private function extractIDs() {\r\n\t\t$ids = array();\r\n\t\tforeach (self::$idFields as $fieldName) {\r\n\t\t\t$ids[$fieldName] = $this->$fieldName;\r\n\t\t}\r\n\t\treturn($ids);\r\n\t}", "title": "" }, { "docid": "0c86bbed64d2ac238fff419b4e09abd3", "score": "0.55060035", "text": "public function getUniqueIdentification(array $exclude = []);", "title": "" }, { "docid": "8d571b1c4bd05c5693793ef3632b2900", "score": "0.54651535", "text": "public function getIdentities() {\n }", "title": "" }, { "docid": "3c4b6657f571b31ac429faf5b1b2e2d2", "score": "0.54646987", "text": "function queryInteractionss($conn, $id) {\n // AND id_interaction IN (6416, 2318, 9043, 5871, 1326, 207, 23162, 4296, 4216, 409)';\n\n $queryx = 'SELECT DISTINCT id, id_interaction FROM interactions WHERE id IN ('. htmlspecialchars(implode($id, ','),ENT_QUOTES, \"UTF-8\") .')\n AND id_interaction IN ('. htmlspecialchars(implode($id, ','),ENT_QUOTES, \"UTF-8\") .')';\n\n $rows = query($conn, $queryx);\n\n return $rows;\n}", "title": "" }, { "docid": "0126a456254a0e5aab52443219239645", "score": "0.5456638", "text": "function getTeachersInCourseIds()\n{\n $table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);\n $joinStatement = ' JOIN ' . Database::get_main_table(TABLE_MAIN_USER) . ' ON login_user_id = user_id';\n return Database::select(\n 'login_user_id', $table . $joinStatement,\n array(\n 'where' => array(\n 'c_id IS NOT NULL AND status = ?' => array(\n COURSEMANAGER\n )\n )\n )\n );\n}", "title": "" }, { "docid": "8ee37b3434c5facaf222117a1308862e", "score": "0.5441055", "text": "public function ids() {\n\t\t$q = $this->query();\n\t\t$q->select(ArCreditCardCode::aliasproperty('id'));\n\t\treturn $q->find()->toArray();\n\t}", "title": "" }, { "docid": "bcc08b821a83527c19b061cbaab6b557", "score": "0.5436776", "text": "public function findAuthorized(array $ids = null): iterable;", "title": "" }, { "docid": "06e41f5ccf7351a1f6de35f879804ad0", "score": "0.5431321", "text": "public function identifications()\n {\n return $this->hasMany(Identification::class);\n }", "title": "" }, { "docid": "ee8532c0cdb9e8ca06c61680c6e1690f", "score": "0.5414454", "text": "function getAssociateIDs($sqlOrderBY = \"\", $bypassFilter=false) {\n\t\n\t\t$arrReturn = array();\n\t\tif(!$bypassFilter) {\n\t\t\t$sqlOrderBY = $this->MySQL->real_escape_string($sqlOrderBY);\n\t\t}\n\t\t\n\t\tif($this->intTableKeyValue != \"\") {\n\t\t\t$result = $this->MySQL->query(\"SELECT * FROM \".$this->strAssociateTableName.\" WHERE \".$this->strTableKey.\" = '\".$this->intTableKeyValue.\"' \".$sqlOrderBY);\n\t\t\twhile($row = $result->fetch_assoc()) {\n\t\t\t\t$arrReturn[] = $row[$this->strAssociateKeyName];\n\t\t\t}\n\t\t}\n\t\n\t\treturn $arrReturn;\n\t\n\t}", "title": "" }, { "docid": "983b98df54a6cce69e09c12451ae1b1d", "score": "0.53931487", "text": "public function getIdpList() : array;", "title": "" }, { "docid": "e3cd5c35d6096abc9fa77701377e6997", "score": "0.539252", "text": "function usuarios_cuentas_ids_get()\n {\n \t$this->db->select('cuentas_id');\n \t$this->db->where('usuarios_id',$this->session->userdata('id'));\n \t$cuentas_ids = $this->db->get('usuarios_cuentas')->result();\n \t\n \t$ids=array();\n \tforeach($cuentas_ids as $cuenta)\n \t\t$ids[]=$cuenta->cuentas_id;\n \t\n \tif(!in_array($this->session->userdata('cuentas_id'),$ids))\n \t\t$ids[]=$this->session->userdata('cuentas_id');\n \t\n \treturn $ids;\n }", "title": "" }, { "docid": "3d0db54e5192fef3a000031796b658b0", "score": "0.53866607", "text": "public function userIdList(){\n $usuariosAsignados = DB::table('teatros')\n ->select('user_id')\n ->whereNotNull('user_id')\n ->pluck('user_id');\n\n return DB::table('users')->where('role_id',3)->whereNotIn('id',$usuariosAsignados)->get(['id','email']);\n }", "title": "" }, { "docid": "56e9a5fb798ad408e038722989586053", "score": "0.53830224", "text": "public function getUserIdentifiers()\n {\n return $this->user_identifiers;\n }", "title": "" }, { "docid": "2b5d757e764521acc38137ecf975a0a4", "score": "0.53800875", "text": "function _get_user_array($identity)\n\t{\t\n\t\t$this->CI->db->select('id AS user_id, ' . $this->identity_column);\n\t\t$this->CI->db->where($this->identity_column, $identity);\n\t\t$query = $this->CI->db->get($this->table);\n\n\t\tif ($query->num_rows() == 1)\n\t\t\treturn $query->row_array();\n\t\telse\n\t\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "fb0ecffe7705ebbe8259318fed232d7c", "score": "0.53637975", "text": "public function getIdentities()\n {\n $identities = [];\n foreach ($this->getItems() as $item) {\n $identities = array_merge($identities, $item->getIdentities());\n }\n \n return $identities;\n }", "title": "" }, { "docid": "f34b0e06751711b8d4401a1d8d5de06b", "score": "0.5358024", "text": "function getUserIdsByInterest($interest) {\n\t\t$result =& $this->retrieve('\n\t\t\tSELECT ui.user_id\n\t\t\tFROM user_interests ui\n\t\t\t\tINNER JOIN controlled_vocab_entry_settings cves ON (ui.controlled_vocab_entry_id = cves.controlled_vocab_entry_id)\n\t\t\tWHERE cves.setting_name = ? AND cves.setting_value = ?',\n\t\t\tarray('interest', $interest)\n\t\t);\n\n\t\t$returner = array();\n\t\twhile (!$result->EOF) {\n\t\t\t$row = $result->GetRowAssoc(false);\n\t\t\t$returner[] = $row['user_id'];\n\t\t\t$result->MoveNext();\n\t\t}\n\t\t$result->Close();\n\t\treturn $returner;\n\n\t}", "title": "" }, { "docid": "07d3bbd845c208b1244e1543ed03c7a4", "score": "0.53302824", "text": "function identifiant()\r\n\t\t{\r\n\t\t}", "title": "" }, { "docid": "1427ee1da893c8228b2782aae04ccd80", "score": "0.53188825", "text": "public function getIdentifiers()\n {\n return array();\n }", "title": "" }, { "docid": "bdee37d53bc4660723cec2a818daae9c", "score": "0.5312241", "text": "public function getSecurityIdentities(): array\n {\n return $this->sids;\n }", "title": "" }, { "docid": "620efb78d92070f9213281fe564e7ac6", "score": "0.53064305", "text": "public function getIdentity()\n {\n $result = array();\n\n $payload = '';\n\n $data = $this->sendRequest(self::FUNCTION_GET_IDENTITY, $payload);\n\n $payload = unpack('c8uid/c8connected_uid/c1position/C3hardware_version/C3firmware_version/v1device_identifier', $data);\n\n $result['uid'] = IPConnection::implodeUnpackedString($payload, 'uid', 8);\n $result['connected_uid'] = IPConnection::implodeUnpackedString($payload, 'connected_uid', 8);\n $result['position'] = chr($payload['position']);\n $result['hardware_version'] = IPConnection::collectUnpackedArray($payload, 'hardware_version', 3);\n $result['firmware_version'] = IPConnection::collectUnpackedArray($payload, 'firmware_version', 3);\n $result['device_identifier'] = $payload['device_identifier'];\n\n return $result;\n }", "title": "" }, { "docid": "862133641f01c1e079ff263ed9960be4", "score": "0.53039324", "text": "abstract public function getIncidents();", "title": "" }, { "docid": "428a55b6a3b9af59d66dfad3b949aed1", "score": "0.5302336", "text": "public function matchIdentifiableAttributes()\n {\n $dbh = $this->_getStore();\n\n // get identifiable attributes for this entity\n $stmt = $dbh->prepare(\"SELECT ida.attribute_id, ap.name, ap.singlevalue FROM idattributes ida\n LEFT JOIN attributeproperties ap ON (ida.attribute_id = ap.attributeproperty_id)\n WHERE entity_id=:entity_id ORDER BY ida.aorder\");\n $stmt->execute(\n array(':entity_id' => $this->_getEntityidId())\n );\n\n // @note This only deals with single attribute value\n // @todo this exception must only show if none of the identifiable attributes are in the metadata\n // throw new Exception('AccountLinking - Missing required identifiable attribute '.$row['name']);\n //only deal with single values (eg, take first element of array)\n\n // @todo Check if IDP gives identifiable attributes AT ALL (should be at least one!). Otherwise throw error back to IDP\n $count = 0;\n while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {\n SimpleSAML_Logger::debug('AccountLinker: Checking for attribute \\''.$row['name'].'\\'');\n if (isset($this->_attributes[$row['name']])) {\n $count++;\n //$stmt2 = $dbh->prepare(\"SELECT a.account_id, a.attributeproperty_id\n //FROM attributes a WHERE a.value=:attribute_value AND a.attributeproperty_id=:attribute_id\");\n $stmt2 = $dbh->prepare(\"SELECT at.account_id, at.attributeproperty_id FROM attributes at LEFT JOIN accounts ac ON (at.account_id = ac.account_id) WHERE at.value=:attribute_value AND at.attributeproperty_id=:attribute_id AND ac.entityid_id=:entityid_id\");\n $stmt2->execute(array(\n ':attribute_value' => $this->_attributes[$row['name']][0],\n ':attribute_id' => $row['attribute_id'],\n ':entityid_id' => $this->_getEntityidId()\n ));\n $return = $stmt2->fetch(PDO::FETCH_NUM);\n\n if (!empty($return)) {\n $stmt3 = $dbh->prepare(\"SELECT name FROM attributeproperties WHERE attributeproperty_id=:attribute_id\");\n $stmt3->execute(array(':attribute_id' => $return[1]));\n $attribute_name = $stmt3->fetchColumn();\n SimpleSAML_Logger::debug('AccountLinker: Found match on attribute \\''.$attribute_name .'\\' for account id '. $return[0]);\n $this->_accountId = $return[0];\n return $this->_accountId;\n }\n }\n SimpleSAML_Logger::debug('AccountLinker: Attribute \\''.$row['name'].'\\' not found in metadata/datastore');\n }\n\n if ($count === 0) {\n $error = 'Could not find any of the attributes to determine who you are';\n SimpleSAML_Logger::debug('AccountLinker: EXCEPTION '.$error);\n #throw new Exception('AccountLinking '.$error );\n $this->_handleException();\n }\n\n return false;\n }", "title": "" }, { "docid": "6b9365055519a815d313865ce231ee9a", "score": "0.5299135", "text": "public function getIdentities()\n {\n $identities = [];\n foreach ($this->getItems() as $item) {\n $identities = array_merge($identities, $item->getIdentities());\n }\n return $identities;\n }", "title": "" }, { "docid": "ec2b77335aeab458ae86915f62fcd4d8", "score": "0.52873546", "text": "public function getIndividuals();", "title": "" }, { "docid": "d1b19ada990b5825d33d2747aea8e3c2", "score": "0.52727395", "text": "public function getAllIds() {\n $sql = \"SELECT id FROM snips\"\n .\" ORDER BY id\"\n ;\n $q = $this->getPdo()->prepare($sql);\n if (!$q->execute()) {\n throw new Exception('Fehler bei '.$sql);\n }\n $rows = $q->fetchAll(PDO::FETCH_ASSOC);\n $result = array();\n foreach ($rows as $row) {\n $result[] = $row['id'];\n }\n return $result;\n }", "title": "" }, { "docid": "3df2ce123f53dca3a643eef86dcccaf8", "score": "0.52642125", "text": "private function retrievePermissionIds(){\n \t$id = $this->getId();\n \t$perms = NewDao::getInstance()->select('user_permissions',array('permission_id'),array('user_id'=>$id),false,$this->isDebug());\n \tforeach ($perms as $per) $this->_permission_ids[]=$per['permission_id'];\n }", "title": "" }, { "docid": "1ef6ec0dff5372499c0986525e06db36", "score": "0.52632", "text": "public function filtersOnID()\n {\n $regexp = '/^(.*\\.)?(\"|`)?ID(\"|`)?\\s?(=|IN)/';\n\n foreach ($this->getWhereParameterised($parameters) as $predicate) {\n if (preg_match($regexp ?? '', $predicate ?? '')) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "0667c8f0940c2e1d80ea3b8b88510c5e", "score": "0.5246652", "text": "public static function getIdentityKeys()\n {\n return array('id');\n }", "title": "" }, { "docid": "4fde6f53a430c2f0edd30d9cf05f9357", "score": "0.52349865", "text": "public function retrieveAllIds()\n {\n return $this->getIdsByCriteria(new Criteria());\n }", "title": "" }, { "docid": "f9a50ee32ebb25372e1e58fe0d7877b7", "score": "0.5232434", "text": "public function getIdentity();", "title": "" }, { "docid": "f9a50ee32ebb25372e1e58fe0d7877b7", "score": "0.5232434", "text": "public function getIdentity();", "title": "" }, { "docid": "7f1fe2eecb6f109d1482c3323dac4f16", "score": "0.5229873", "text": "function getIdentificationCodes() {\n\t\t$identificationCodeDao = DAORegistry::getDAO('IdentificationCodeDAO');\n\t\treturn $identificationCodeDao->getByPublicationFormatId($this->getId());\n\t}", "title": "" }, { "docid": "1577d75ddf317dbc98997fced14853ca", "score": "0.5220625", "text": "public function getIdentity()\n {\n $ret = array();\n\n $payload = '';\n\n $data = $this->sendRequest(self::FUNCTION_GET_IDENTITY, $payload);\n\n $payload = unpack('c8uid/c8connected_uid/c1position/C3hardware_version/C3firmware_version/v1device_identifier', $data);\n\n $ret['uid'] = IPConnection::implodeUnpackedString($payload, 'uid', 8);\n $ret['connected_uid'] = IPConnection::implodeUnpackedString($payload, 'connected_uid', 8);\n $ret['position'] = chr($payload['position']);\n $ret['hardware_version'] = IPConnection::collectUnpackedArray($payload, 'hardware_version', 3);\n $ret['firmware_version'] = IPConnection::collectUnpackedArray($payload, 'firmware_version', 3);\n $ret['device_identifier'] = $payload['device_identifier'];\n\n return $ret;\n }", "title": "" }, { "docid": "a7ebb63841ac108a2ad9560fe282420d", "score": "0.5219209", "text": "public function getMemberIds($uuid);", "title": "" }, { "docid": "cf65a40dc96ebe971443242c5b8204ff", "score": "0.52132803", "text": "function queryInteractions($conn, $id) {\n // AND Id2 IN ('. htmlspecialchars(implode($id, ','), END_QUOTES, \"UTF-8\") .')';\n \n $queryx = 'SELECT DISTINCT id, id_interaction FROM interactions WHERE id IN ('. htmlspecialchars(implode($id, ','),ENT_QUOTES, \"UTF-8\") .')\n AND id_interaction IN ('. htmlspecialchars(implode($id, ','),ENT_QUOTES, \"UTF-8\") .')';\n \n $rows = query($conn, $queryx);\n \n return $rows;\n }", "title": "" }, { "docid": "fb15041ea683555a2281d23ea2885046", "score": "0.52083373", "text": "public function getSessionIdUsers()\n {\n //default we have no error\n $this->error = false;\n //sent message to stores\n foreach ($this->vendor_ids as $key => $value) {\n if($value['user_id'] && is_numeric($value['user_id'])){\n array_push($this->vendor_user_ids, $value['user_id']);\n }\n }\n //get all sessionIds belongs to vendor own user_id\n $url = 'http://hypertester.ir/serverHypernetShowUnion/getJchatSessionIdsByVendorOwnerIds.php';\n // start get card info\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($vendorOwnerSessionIds = ['vedorOwnerIds' => $this->vendor_user_ids]));\n // curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $result = curl_exec($ch);\n if (curl_errno($ch)) {\n $error_msg = curl_error($ch);\n $this->error = true;\n curl_close($ch);\n return;\n }\n curl_close($ch);\n $content = json_decode($result);\n return $content;\n }", "title": "" }, { "docid": "2a80fe5def736f19918c57cbde7d0c36", "score": "0.52072793", "text": "public static function fetch()\n {\n $identity = \\Dsc\\System::instance()->get('auth')->getIdentity();\n if (empty($identity->id))\n {\n return array();\n }\n \n $items = (new static)->setState('filter.user', (string) $identity->id )->getItems();\n \n return $items;\n }", "title": "" }, { "docid": "9dcb2602f03040bbe64b722c124f255e", "score": "0.5203129", "text": "public function getIdentifiers() : array\n {\n $this->checkStructuredData();\n return $this->structured_data->getIdentifiers();\n }", "title": "" }, { "docid": "b54b327520dafeddfb4a5838e3a5ddc1", "score": "0.5203102", "text": "public function getIdentities()\n {\n $identities = [];\n foreach ($this->getItems() as $item) {\n $identities = array_merge($identities, $item->getIdentities());\n }\n\n return $identities;\n }", "title": "" }, { "docid": "780bf783c98f53cc9b25e524109ac892", "score": "0.519877", "text": "public function users_to_query()\n {\n // It can be used e.g. by user_loader->get_avatar() to load the avatar image\n return [$this->get_data(\"poster_id\")];\n }", "title": "" }, { "docid": "c552102bf84f87e5df826ec4ab63d33b", "score": "0.5197725", "text": "public function queryAll(){\n\t\t$sql = 'SELECT * FROM django_openid_auth_useropenid';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "title": "" }, { "docid": "d82e3612b62a9fd1b5735a5c359523f9", "score": "0.5169963", "text": "public function actionGetByIds() {\n return $this->threadRESTService->getByIds(explode(',', $this->getArgs()['ids']));\n }", "title": "" }, { "docid": "47040bf91768bd965e09fac4705bcc32", "score": "0.5168805", "text": "function make_filter_for_ids($ids)\n{\n return make_filter_for_multivalued_criteria(\"id\", $ids);\n}", "title": "" }, { "docid": "efdbb586552ece315580c86d681e4a35", "score": "0.5157394", "text": "protected function db_id_in() {\n\t\tglobal $wpdb;\n\n\t\treturn [ $wpdb->prepare( \"\n\t\t\tSELECT user_id\n\t\t\tFROM {$wpdb->usermeta}\n\t\t\tWHERE ({$wpdb->usermeta}.meta_key = %s AND {$wpdb->usermeta}.user_id = {$wpdb->users}.ID)\",\n\t\t\t$wpdb->get_blog_prefix( get_current_blog_id() ) . 'capabilities'\n\t\t) ];\n\t}", "title": "" }, { "docid": "18a2b8ac424f8baa1f3b37922664dd8e", "score": "0.5155136", "text": "public function findAllUsersIndexedById() {\n\t\t$users = $this->findAllUsers();\n\n\t\t$users_by_id = array();\n\t\tforeach($users as $row) {\n\t\t\t$id = $row[$this->alias]['id'];\n\t\t\t$users_by_id[$id] = $row;\n\t\t}\n\n\t\treturn $users_by_id;\n\t}", "title": "" }, { "docid": "3c54d5983d4ec9b009d3c4479791e492", "score": "0.5144354", "text": "public function search()\n {\n $sql = \"select login_id name from `$this->table`\";\n $sth = MyDb::pdo()->prepare($sql);\n //var_dump($sth);\n $sth->execute();\n\n return $sth->fetchAll();\n }", "title": "" }, { "docid": "2fbc68af6ebbd9679598eda3a4120113", "score": "0.5135981", "text": "function get_visible_clients() {\n $all_customers = get_all_documents('clients', array());\n $customers = array();\n switch ($_SESSION['user_priv']) {\n case 'Administrator':\n foreach ($all_customers as $doc) {\n $customers[htmlentities($doc['customer_name'])] = $doc['_id'];\n }\n break;\n case 'Employee' || 'Customer':\n $doc = get_one_value(\n 'users',\n array('user_login' => $_SESSION['user_login']),\n 'can_see_clients'\n );\n $can_see_clients = $doc['can_see_clients'];\n if (gettype($customers) == 'string') {\n $can_see_clients = split(', ', $customers);\n\t }\n foreach ($all_customers as $doc) {\n if (in_array($doc['_id'], $can_see_clients)) {\n $customers[htmlentities($doc['customer_name'])] = $doc['_id'];\n } \n }\n break;\n default:\n die(\"WTF!? How'd you get here?\");\n }\n return $customers;\n}", "title": "" }, { "docid": "8f9798d19ad6ba372351267d14930ee4", "score": "0.51101905", "text": "public function loadpublicid(){\n return match_id::all();\n }", "title": "" }, { "docid": "3bcfb82cdae62b675976c76559c5285d", "score": "0.509982", "text": "public function listIdentities()\n\t{\n\t\ttry {\n\t\t\t$result = $this->_sesClient->listIdentities([\n\t\t\t\t'IdentityType' => 'EmailAddress'\n\t\t\t]);\n\t\t} catch (AwsException $e) {\n\t\t\tYii::$app->session->setFlash('error', $e->getMessage());\n\t\t}\n\n\t\t/** @var Result $result */\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "ed8dffa3afd84989a7fb728a4cfdce64", "score": "0.50969243", "text": "public function identityClients()\n {\n $Clients = \"SELECT `clients`.`lastName`, `clients`.`firstName`, `clients`.`birthDate`, `clients`.`card`, `clients`.`cardNumber`, `cards`.`cardTypesId`, `cardtypes`.`type` FROM `clients` LEFT JOIN `cards` \n ON `clients`.`cardNumber` = `cards`.`cardNumber` \n LEFT JOIN `cardTypes` \n ON `cards`.`cardTypesID` = `cardTypes`.`id` \n ORDER BY `lastName`\";\n $identityClients = $this->getDb()->prepare($Clients);\n $identityClients->execute();\n $resultidentityClients = $identityClients->fetchAll(PDO::FETCH_ASSOC);\n if (!empty($resultidentityClients)) {\n return $resultidentityClients;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "4689ff47e608faaf36f245509073674e", "score": "0.50934607", "text": "public function byIdentification($identifier);", "title": "" }, { "docid": "7a0b97580490f118cf9b89accb492e7c", "score": "0.50924", "text": "function get_all_ids_per_user($cu_id) {\n\t\t$cloudrequest_list = array();\n\t\t$query = \"select cr_id from \".$this->_db_table.\" where cr_cu_id=\".$cu_id.\" order by cr_id DESC\";\n\t\t$db=htvcenter_get_db_connection();\n\t\t$rs = $db->Execute($query);\n\t\tif (!$rs)\n\t\t\t$this->_event->log(\"get_all_ids_per_user\", $_SERVER['REQUEST_TIME'], 2, \"cloudrequest.class.php\", $db->ErrorMsg(), \"\", \"\", 0, 0, 0);\n\t\telse\n\t\twhile (!$rs->EOF) {\n\t\t\t$cloudrequest_list[] = $rs->fields;\n\t\t\t$rs->MoveNext();\n\t\t}\n\t\treturn $cloudrequest_list;\n\n\t}", "title": "" }, { "docid": "32d61fee6c9177fad4f78a1a70113b00", "score": "0.5090984", "text": "function getPeople(){\n \ttry{\n \t\tTransactionManager::startTransaction(null,true);\n \t\t$personRoleObjs = PersonRole::find(array(\"roleId\"=>$this->id));\n \t\t$personIds = array();\n \t\tforeach ($personRoleObjs as $personRoleObj){\n \t\t\t$personIds[] = $personRoleObj->getAttribute(\"personId\");\n \t\t}\n \t\tTransactionManager::commitTransaction();\n \t}catch (\\Exception $e){\n \t\tTransactionManager::abortTransaction();\n \t\tthrow $e;\n \t}\n \treturn Person::find(array(\"id\"=>array(self::OPERATOR_IN=>$personIds)));\n }", "title": "" }, { "docid": "822baea0a8332a01ad42c23e01090690", "score": "0.5084365", "text": "public function userIdFiltering(&$filter)\n {\n // Enter your code here\n }", "title": "" }, { "docid": "16995b3c063c528253cbed0cee25fcce", "score": "0.5078782", "text": "public function filterById($id);", "title": "" }, { "docid": "113396973a774732e7b917876e331cf6", "score": "0.5078023", "text": "public function getContactIds() {\r\n $id = \\Drupal::request()->query->get('id');\r\n $call=$this->core->createCall($this->connector(),'Contact','get',array('return'=>'display_name, email, phone, street_address, city, postal_code, id', 'id' => $id,),array());\r\n $this->core->executeCall($call);\r\n return $call->getReply();\r\n }", "title": "" }, { "docid": "bef741370ba69e3072b0a2858ba29cf5", "score": "0.50715286", "text": "public function fetchUsersIncidents($id) \n {\n \t$sql = \"SELECT * \n\t\t\t\tFROM incidents i\n\t\t\t\tLEFT JOIN user_incident ui ON ui.incident_id = i.id\n\t\t\t\tWHERE ui.user_id =$id\n\t\t\t\tAND i.status != 1\n\t\t\t\tLIMIT 0 , 30\";\n \t$rows = $this->getDbTable()->getAdapter()->fetchAll($sql);\n \t$models = array();\n \tforeach($rows as $row) {\n \t\t$models[] = $this->find($row['id']);\n \t}\n \treturn $models;\n }", "title": "" }, { "docid": "a22ab85a9b578d5bff896b4407e919eb", "score": "0.5055821", "text": "public function getActiveIds() {\n\t\t$ids = $this->find('list', array(\n\t\t\t'fields' => array(\n\t\t\t\t$this->alias . '.id', $this->alias . '.id'\n\t\t\t),\n\t\t\t'conditions' => array(\n\t\t\t\t$this->alias . '.active' => 1\n\t\t\t)\n\t\t));\n\n\t\treturn $ids;\n\t}", "title": "" }, { "docid": "57b4d1bfad78882d1eb36ab114d2cb79", "score": "0.5055444", "text": "function get_all_ids() {\n\t\t$cloudrequest_list = array();\n\t\t$query = \"select cr_id from \".$this->_db_table.\" order by cr_id DESC\";\n\t\t$db=htvcenter_get_db_connection();\n\t\t$rs = $db->Execute($query);\n\t\tif (!$rs)\n\t\t\t$this->_event->log(\"get_all_ids\", $_SERVER['REQUEST_TIME'], 2, \"cloudrequest.class.php\", $db->ErrorMsg(), \"\", \"\", 0, 0, 0);\n\t\telse\n\t\twhile (!$rs->EOF) {\n\t\t\t$cloudrequest_list[] = $rs->fields;\n\t\t\t$rs->MoveNext();\n\t\t}\n\t\treturn $cloudrequest_list;\n\n\t}", "title": "" }, { "docid": "525514d3d74efe0ed4d3f6cbf17a6908", "score": "0.50449854", "text": "abstract protected function findAccountId($attributes);", "title": "" }, { "docid": "72c8496b7715fe7c2485c53150acd116", "score": "0.5043993", "text": "public function listId() {\n\t\treturn $this->division->all()->pluck('id')->all();\n\t}", "title": "" }, { "docid": "08cc560aa2cec7c4eb31dd7011cde829", "score": "0.5043079", "text": "public function ident();", "title": "" }, { "docid": "fa9a3845e38af4a4b6af46749aed22bd", "score": "0.5038926", "text": "function identifyUser($params_array, $config_path = SETTINGS_PATH) {\n global $conn;\n $table_name = 'user_properties';\n $birth_date = $params_array['birth_date'];\n $birthplace = $params_array['birthplace'];\n $result_primary = performQueryFetch(\"SELECT user_id FROM $table_name \n WHERE birth_date='$birth_date' AND birthplace='$birthplace';\", $config_path);\n // TODO: Inner select\n if ($result_primary) {\n $firstname = $params_array['firstname'];\n $middlename = $params_array['middlename'];\n $lastname = $params_array['lastname'];\n $result_secondary = performQueryFetch(\"SELECT user_id FROM $table_name \n WHERE firstname='$firstname' AND middlename='$middlename' \n AND lastname='$lastname';\", $config_path);\n return $result_secondary ? true : false;\n } else {\n return false;\n }\n}", "title": "" }, { "docid": "c225564741c2e3d6f4f95720d808b390", "score": "0.5036691", "text": "public function loadIdList() {\r\n $documentIds = $this->db->fetchCol(\"SELECT d.id \" . $this->fromClause . $this->getCondition() . $this->getOrder() . $this->getOffsetLimit(), $this->model->getConditionVariables());\r\n return $documentIds;\r\n }", "title": "" }, { "docid": "f80684bd619be436e57227e43caf9a98", "score": "0.5013194", "text": "public function getIDList()\r\n\t{\r\n\t\t//Fetch the users from the database\r\n $result[0] = 0;\r\n\t\t$statement = \"SELECT id FROM users\";\r\n\t\t$stmt = $this->db->connection->prepare($statement);\r\n\t\t$stmt->execute();\r\n $res = $stmt->get_result();\r\n $i = 0;\r\n while($row = $res->fetch_assoc()){\r\n $result[$i] = $row['id'];\r\n $i++;\r\n }\r\n\t\t$stmt->close();\r\n\t\t\r\n\t\t//Return the list\r\n\t\treturn $result;\r\n\t}", "title": "" }, { "docid": "1fb0d98e1b77864e7bfa1e7327b78be2", "score": "0.5002989", "text": "public static function identifiers()\n {\n return static::collection()->identifiers();\n }", "title": "" }, { "docid": "df883c85adebb8ef6c4f9356fee6bb20", "score": "0.49977094", "text": "public function getIdentity()\n {\n if (null === ($response = $this->_getResponse(self::URI_TYPE_AUTH_IDENT))) {\n $url = $this->_compileAuthIdentUri();\n $ch = curl_init();\n \n if (false === $ch) {\n throw new \\Exception(\"Failed to initialize $url\");\n }\n \n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_TIMEOUT, $this->getRequestTimeout());\n $content = trim(curl_exec($ch));\n \n if (false === $content) {\n throw new \\Exception(curl_error(), curl_errno());\n }\n \n $statusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n curl_close($ch);\n \n if (isset($this->_authResponse[$statusCode])) {\n $response = $this->_authResponse[$statusCode];\n } else {\n $response = $this->_authResponse[0];\n }\n \n $response = (array)json_decode($content, true) + $response;\n \n if (!(isset($response['response'])\n && isset($response['response']['identity'])\n && $response['response']['identity'])\n ){\n $message = \"Invalid response\";\n \n if (isset($response['response'])) {\n $response = $response['response'];\n if (isset($response['errors'])) {\n if (isset($response['errors']['message'])) {\n $message = $response['errors']['message'];\n } else if (isset($response['errors']['reason'])) {\n $message = $response['errors']['reason'];\n }\n }\n if (isset($response['code'])) {\n $statusCode = $response['code'];\n }\n }\n \n throw new \\Exception($message, $statusCode);\n }\n \n $this->_stashResponse($response, self::URI_TYPE_AUTH_IDENT);\n }\n \n return $response;\n }", "title": "" }, { "docid": "cc9f3946217ef50535f36755255fcce7", "score": "0.49961555", "text": "function sidora_incoming_links_list_administered_by($pids) {\n $object_values_build = \"\";\n foreach($pids as $pid) {\n $object_values_build .= ' <info:fedora/' . $pid . '>';\n }\n $query = 'select ?object ?adminBy from <#ri> where {\n ?object <http://oris.si.edu/2017/01/relations#isAdministeredBy> ?adminBy\n VALUES ?object { ' . $object_values_build . '}\n }';\n $results = sidora_incoming_links_direct_query($query);\n $to_return = array();\n foreach($results as $result) {\n $to_return[$result['object']['value']] = $result['adminBy']['value'];\n }\n return $to_return;\n}", "title": "" }, { "docid": "de906c138ff54986076a4704577ecccb", "score": "0.49951476", "text": "public static function getAccessableAssignmentids() {\r\n global $DB;\r\n//$placeholders = array();\r\n list($inorequalsql, $placeholders) = $DB->get_in_or_equal(array_keys(enrol_get_my_courses()), SQL_PARAMS_NAMED);\r\n return array_keys($DB->get_records_sql(\"SELECT {codehandin}.id FROM {assign}, {codehandin} \"\r\n . \"WHERE {assign}.id = {codehandin}.id \"\r\n . \"AND {assign}.course \" . $inorequalsql, $placeholders)); // =2\"\r\n }", "title": "" }, { "docid": "54274767e257ec9f07c29231a12c2ac4", "score": "0.49929973", "text": "function skillsoft_get_participants($skillsoftid) {\r\n\tglobal $CFG, $DB;\r\n\r\n\t//Get students\r\n\t$sql = \"SELECT DISTINCT u.id, u.id\r\n\t\t\tFROM {user} u,\r\n\t\t\t{lesson_au_tracks} a\r\n\t\t\tWHERE a.skillsoftid = '?' and\r\n\t\t\tu.id = a.userid\";\r\n\t$params = array($skillsofid);\r\n\r\n\t$students = $DB->get_records_sql($sql,$params);\r\n\r\n\t//Return students array (it contains an array of unique users)\r\n\treturn ($students);\r\n\r\n\r\n\treturn false;\r\n}", "title": "" }, { "docid": "00b24b193b7d826f3b9f9efca0397b0b", "score": "0.49923176", "text": "function get_all_active_ids_per_user($cu_id) {\n\t\t$cloudrequest_list = array();\n\t\t$query = \"select cr_id from \".$this->_db_table.\" where (cr_cu_id=\".$cu_id.\" and cr_status>0 and cr_status<4) or (cr_cu_id=\".$cu_id.\" and cr_status=8) order by cr_id DESC\";\n\t\t$db=htvcenter_get_db_connection();\n\t\t$rs = $db->Execute($query);\n\t\tif (!$rs)\n\t\t\t$this->_event->log(\"get_all_ids_per_user\", $_SERVER['REQUEST_TIME'], 2, \"cloudrequest.class.php\", $db->ErrorMsg(), \"\", \"\", 0, 0, 0);\n\t\telse\n\t\twhile (!$rs->EOF) {\n\t\t\t$cloudrequest_list[] = $rs->fields;\n\t\t\t$rs->MoveNext();\n\t\t}\n\t\treturn $cloudrequest_list;\n\n\t}", "title": "" }, { "docid": "9c07d2dc02c1c987fcd627d32798ed79", "score": "0.4990628", "text": "function identifiers($args, $request) {\n\t\t$submission = $this->getSubmission();\n\t\t$representationDao = Application::getRepresentationDAO();\n\t\t$representation = $representationDao->getById(\n\t\t\t$request->getUserVar('representationId'),\n\t\t\t$submission->getId()\n\t\t);\n\t\timport('controllers.tab.pubIds.form.PublicIdentifiersForm');\n\t\t$form = new PublicIdentifiersForm($representation);\n\t\t$form->initData($request);\n\t\treturn new JSONMessage(true, $form->fetch($request));\n\t}", "title": "" }, { "docid": "57a29db0acfca3f3d623507e0935f8b1", "score": "0.49857223", "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\n $idsSelect->columns($this->getResource()->getIdFieldName(), 'main_table');\n return $this->getConnection()->fetchCol($idsSelect);\n }", "title": "" }, { "docid": "24daf7f1ec906af5efe09b1184ae1548", "score": "0.49830934", "text": "public function ids() {\n\t\t$q = $this->query();\n\t\t$q->select(StateCode::aliasproperty('id'));\n\t\treturn $q->find()->toArray();\n\t}", "title": "" }, { "docid": "b0b30dcb877be0c6a078ce61822270b8", "score": "0.4982026", "text": "public function testLookupByIds(): void\n {\n $response = $this->client->userLookup()\n ->findByIdOrUsername(self::$idsToLookup)\n ->performRequest();\n\n assertTrue(is_object($response) && property_exists($response, 'data'));\n self::logUsers($response->data);\n }", "title": "" }, { "docid": "61134e79559b5fd6b9432b7850e90327", "score": "0.49716187", "text": "public function getIds(){\r\n\t\tif(array_key_exists('ids',$this->params)){\r\n\t\t\treturn $this->params['ids'];\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "b0409e53f225350b2685cc04b7bc426d", "score": "0.49697116", "text": "protected function getAllIds()\n {\n return null;\n }", "title": "" }, { "docid": "d069681d0635e757bf03f355c8f5cad3", "score": "0.4963521", "text": "public function getHandledIds(): array;", "title": "" }, { "docid": "21feb3d58d303fb8c9de7c6882cbff10", "score": "0.49605793", "text": "public function findAllIds(){\n\n $pdo = (new Database())->getPdo();\n $result = $pdo->query(\"SELECT id\n FROM products\");\n \n return $result->fetchAll();\n }", "title": "" }, { "docid": "f0f8a820c612c490757d9a38312f4583", "score": "0.49579033", "text": "public static function getIdList(): array\n {\n return Author::find()\n ->select(['name'])\n ->indexBy('id')\n ->asArray()\n ->column();\n }", "title": "" }, { "docid": "e24feabef7886f8659f361316676ec9e", "score": "0.49578628", "text": "public function yieldIdentities(Request $request): Generator;", "title": "" }, { "docid": "cd994605f90e1d221517c79d3d7d623e", "score": "0.49564233", "text": "public function get_ids($index){return $this->ids[$index];}", "title": "" }, { "docid": "931b4362230881e5d378766341839758", "score": "0.49529317", "text": "public function getIncludeUserIds()\n {\n return array();\n }", "title": "" }, { "docid": "7caddeba4197d50987ce25a43faf7939", "score": "0.4948091", "text": "public function getIds(array $objects): array;", "title": "" } ]
d24c9b3aac9c4dc5a81a7fb9d017a0ea
/ MagpieFromSimplePie::get_items () MagpieFromSimplePie::get_item: returns a single MagpieRSS format array equivalent to a SimplePie_Item object from which this object was constructed.
[ { "docid": "b1b21a327778964ac855802d3b6a57e7", "score": "0.63674587", "text": "function get_item () {\n\t\tif (is_array($this->items)) :\n\t\t\t$ret = reset($this->items);\n\t\telse :\n\t\t\t$ret = NULL;\n\t\tendif;\n\t\treturn $ret;\n\t}", "title": "" } ]
[ { "docid": "4cb46dfcc4f8e11b97ff83a0972210b3", "score": "0.6905099", "text": "public function getItems(): array;", "title": "" }, { "docid": "4cb46dfcc4f8e11b97ff83a0972210b3", "score": "0.6905099", "text": "public function getItems(): array;", "title": "" }, { "docid": "4cb46dfcc4f8e11b97ff83a0972210b3", "score": "0.6905099", "text": "public function getItems(): array;", "title": "" }, { "docid": "4cb46dfcc4f8e11b97ff83a0972210b3", "score": "0.6905099", "text": "public function getItems(): array;", "title": "" }, { "docid": "4cb46dfcc4f8e11b97ff83a0972210b3", "score": "0.6905099", "text": "public function getItems(): array;", "title": "" }, { "docid": "70c50f1d5e924983a793b49d5e09d453", "score": "0.6748334", "text": "function getItems(){\n return array(new Item(), new Item(), new Item(), new Item(), new Item(), new Item(), new Item(), new Item());\n }", "title": "" }, { "docid": "a698b0a9926bdf36cae96603aaa48487", "score": "0.6733939", "text": "public function getItems();", "title": "" }, { "docid": "a698b0a9926bdf36cae96603aaa48487", "score": "0.6733939", "text": "public function getItems();", "title": "" }, { "docid": "a698b0a9926bdf36cae96603aaa48487", "score": "0.6733939", "text": "public function getItems();", "title": "" }, { "docid": "a698b0a9926bdf36cae96603aaa48487", "score": "0.6733939", "text": "public function getItems();", "title": "" }, { "docid": "a698b0a9926bdf36cae96603aaa48487", "score": "0.6733939", "text": "public function getItems();", "title": "" }, { "docid": "a698b0a9926bdf36cae96603aaa48487", "score": "0.6733939", "text": "public function getItems();", "title": "" }, { "docid": "a698b0a9926bdf36cae96603aaa48487", "score": "0.6733939", "text": "public function getItems();", "title": "" }, { "docid": "7d5ea10324f2946dba26504559d18fc8", "score": "0.67280924", "text": "public function getItems() {\n return $this->data['items'];\n }", "title": "" }, { "docid": "aca0e8ede416b26afc0b84249b07f097", "score": "0.67106587", "text": "public function getItem(): array\n {\n return $this->item;\n }", "title": "" }, { "docid": "6f2362211dc89a1c5990aa7c44f87433", "score": "0.66870564", "text": "function getItems();", "title": "" }, { "docid": "6f2362211dc89a1c5990aa7c44f87433", "score": "0.66870564", "text": "function getItems();", "title": "" }, { "docid": "212be1e4f4f09dbbb7146437bc2d52af", "score": "0.66409767", "text": "function getItems(){\n\t\t$this->_readItems();\n\t\treturn $this->_items;\n\t}", "title": "" }, { "docid": "19038ccf0f5fe3cb90fde638623b5524", "score": "0.6589073", "text": "function get_items () {\n\t\treturn $this->items;\n\t}", "title": "" }, { "docid": "a960163fb1edb6ea7765316ad04baead", "score": "0.6584224", "text": "public function fonGetItems()\n {\n $this->ItemDb = \"items\";\n \n // Webshop Artikel/Item id as columname in your database.\n $this->Id = \"id\";\n \n // Webshop Artikel/Item name as columname in your database.\n $this->Name = \"name\";\n \n // Webshop Artikel/Item price as columname in your database.\n $this->Price = \"price\";\n \n // Webshop artikel/item link (to an img) as columname in your database.\n $this->Link = \"link\";\n \n // Webshop artikel/item class, enter classname that handles the properties of your webshop items.\n $this->ItemClass = 'FonItem';\n \n // Webshop artikel/item class, how many likes an item has.\n $this->Likes = \"likes\";\n \n \n /* Do not edit code past here */\n \n \n $sql = \"SELECT $this->Id, $this->Name, $this->Price, $this->Link, $this->Likes FROM $this->ItemDb\";\n $result = $this->db->query($sql);\n \n $items = array();\n \n if ($result->num_rows > 0)\n {\n while ($row=$result->fetch_assoc())\n {\n $items[] = new $this->ItemClass($row[$this->Id], $row[$this->Name], $row[$this->Price], $row[$this->Link], $row[$this->Likes]);\n }\n return $items;\n }\n else\n {\n Debug::writeToLogFile(\"database of webshop items is producing a fault\");\n }\n }", "title": "" }, { "docid": "ef51f15914b17cc5f2f9a52f3238d265", "score": "0.65648264", "text": "private function getItemsArray(){\n\t\treturn $this->items_array;\n\t}", "title": "" }, { "docid": "ddc8f63a72deb38dbd3706478af0f24d", "score": "0.65578705", "text": "abstract public function get_items();", "title": "" }, { "docid": "39792aacdbf20ddb0d1f760e374f3463", "score": "0.6515597", "text": "public function getItems(): array\n {\n return $this->_items ?? [] ;\n }", "title": "" }, { "docid": "9c6e01ef76b83ad4845185f33dd38f48", "score": "0.6484818", "text": "function getItems() {\n\t\treturn $this->items;\n\t}", "title": "" }, { "docid": "15a328170e74e091fb2ec82516901115", "score": "0.64470327", "text": "public function getItems(): array\n {\n return [\n (object) ['id' => 1, 'title' => 'first item title', 'text' => 'first item text'], \n (object) ['id' => 2, 'title' => 'second item title', 'text' => 'second item text'], \n (object) ['id' => 3, 'title' => 'third item title', 'text' => 'third item text'], \n (object) ['id' => 4, 'title' => 'fourth item title', 'text' => 'fourth item text'], \n ];\n }", "title": "" }, { "docid": "87f50e9b7a5b92bcd3bfae9a1d5dcebd", "score": "0.64083403", "text": "public function getItems(): array\n {\n return $this->items;\n }", "title": "" }, { "docid": "87f50e9b7a5b92bcd3bfae9a1d5dcebd", "score": "0.64083403", "text": "public function getItems(): array\n {\n return $this->items;\n }", "title": "" }, { "docid": "87f50e9b7a5b92bcd3bfae9a1d5dcebd", "score": "0.64083403", "text": "public function getItems(): array\n {\n return $this->items;\n }", "title": "" }, { "docid": "7b50147ace8a6f2223b8dc6131bdf281", "score": "0.6363391", "text": "public function getItems()\n {\n return (isset($this->schema['items'])) ? $this->schema['items'] : [];\n }", "title": "" }, { "docid": "936eefbc0144b177cd2ca869a1385d3b", "score": "0.63249767", "text": "public function getAPIItem()\n\t{\n\t\t$dataArr = array();\n\t\tif(isset($_REQUEST['item_id']) && $_REQUEST['item_id']!='')\n\t\t{\n\t\t\t$sql = \"select item_name,hsn_code,item_type,igst_tax_rate,csgt_tax_rate,sgst_tax_rate,cess_tax_rate from \".TAB_PREFIX.\"master_item where item_name like '%\".$this->sanitize($_REQUEST['item_id']).\"%' or hsn_code like '%\".$this->sanitize($_REQUEST['item_id']).\"%'\";\n\t\t\t$dataArr['msg'] = '200';\n\t\t\t$dataArr['status'] = '200';\n\t\t\t$dataArr['data'] = $this->get_results($sql);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$dataArr['msg'] = '401';\n\t\t\t$dataArr['status'] = 'Item ID not passed';\n\t\t}\n\t\treturn $dataArr;\n\t}", "title": "" }, { "docid": "574075d016e378dea2dced64b42a824b", "score": "0.6311734", "text": "public function getItems()\n {\n return $this->items;\n }", "title": "" }, { "docid": "574075d016e378dea2dced64b42a824b", "score": "0.6311734", "text": "public function getItems()\n {\n return $this->items;\n }", "title": "" }, { "docid": "574075d016e378dea2dced64b42a824b", "score": "0.6311734", "text": "public function getItems()\n {\n return $this->items;\n }", "title": "" }, { "docid": "574075d016e378dea2dced64b42a824b", "score": "0.6311734", "text": "public function getItems()\n {\n return $this->items;\n }", "title": "" }, { "docid": "574075d016e378dea2dced64b42a824b", "score": "0.6311734", "text": "public function getItems()\n {\n return $this->items;\n }", "title": "" }, { "docid": "574075d016e378dea2dced64b42a824b", "score": "0.6311734", "text": "public function getItems()\n {\n return $this->items;\n }", "title": "" }, { "docid": "574075d016e378dea2dced64b42a824b", "score": "0.6311734", "text": "public function getItems()\n {\n return $this->items;\n }", "title": "" }, { "docid": "574075d016e378dea2dced64b42a824b", "score": "0.6311734", "text": "public function getItems()\n {\n return $this->items;\n }", "title": "" }, { "docid": "574075d016e378dea2dced64b42a824b", "score": "0.6311734", "text": "public function getItems()\n {\n return $this->items;\n }", "title": "" }, { "docid": "574075d016e378dea2dced64b42a824b", "score": "0.6311734", "text": "public function getItems()\n {\n return $this->items;\n }", "title": "" }, { "docid": "574075d016e378dea2dced64b42a824b", "score": "0.6311734", "text": "public function getItems()\n {\n return $this->items;\n }", "title": "" }, { "docid": "6c8a3d099c6037925616c8e60bea23fc", "score": "0.6292105", "text": "public function items(): array;", "title": "" }, { "docid": "6c8a3d099c6037925616c8e60bea23fc", "score": "0.6292105", "text": "public function items(): array;", "title": "" }, { "docid": "fcb38267bb1dc4ae09a69c8f5abdbb3f", "score": "0.62833863", "text": "public function getItems(){\n return $this->_items;\n }", "title": "" }, { "docid": "9a24ae4c925dfe4379d36afd1806c9f8", "score": "0.62804043", "text": "public function getItems()\n\t{\n\t\treturn $this->items;\n\t}", "title": "" }, { "docid": "5ea74a1109137e1a1972e8996839d266", "score": "0.6275195", "text": "public function getItems() {\r\n return $this->items;\r\n }", "title": "" }, { "docid": "f7c03bcce18d3ce2d3cd7be4b5b43b1c", "score": "0.62746805", "text": "public function get_item(){\n\t\treturn $this->item;\n\t}", "title": "" }, { "docid": "9134a37b8f2cc9730795ad896280db0e", "score": "0.626388", "text": "public function getItems() {\n return $this->items;\n }", "title": "" }, { "docid": "9134a37b8f2cc9730795ad896280db0e", "score": "0.626388", "text": "public function getItems() {\n return $this->items;\n }", "title": "" }, { "docid": "5b1ac9e1f56d8ce2264a12e43ad3aaaa", "score": "0.6248454", "text": "public function get()\n\t{\n\t\treturn $this->items;\n\t}", "title": "" }, { "docid": "2e12161c172d9d33c3652758a0562437", "score": "0.6222382", "text": "public function getItems()\n {\n return $this->_items;\n }", "title": "" }, { "docid": "2e12161c172d9d33c3652758a0562437", "score": "0.6222382", "text": "public function getItems()\n {\n return $this->_items;\n }", "title": "" }, { "docid": "b736f61773426aa309683625f64928d4", "score": "0.62190133", "text": "function starred_items() {\n\t\t$feed_xml = $this->starred_items_raw();\n\t\tif ($this->errors_exist()) return array();\n\t\treturn $this->_parse_entries($feed_xml);\n\t}", "title": "" }, { "docid": "7d2f9c6223fcf681bee6ae863fa00743", "score": "0.61894256", "text": "public function get() {\n\t\treturn $this->items;\n\t}", "title": "" }, { "docid": "1f83cddb027b08d4c55bf98d1c1d143e", "score": "0.6162871", "text": "protected function getItems()\n {\n $items = [\n 'rows' => Items::find()->orderBy('id')->asArray()->all(),\n ];\n\n Yii::$app->redis->set('data', json_encode($items));\n\n return $items;\n }", "title": "" }, { "docid": "f1252c262fa4e8faa83f3bf8c2a163d3", "score": "0.6143548", "text": "public function getItems()\n {\n return $this->Items;\n }", "title": "" }, { "docid": "a8ad6031d5f510e441910bd2f9c09d5a", "score": "0.6126395", "text": "public function getItems(): ItemsCollection;", "title": "" }, { "docid": "18f9bbea235989e43001da01d6fd0968", "score": "0.61172867", "text": "protected function getItems() : \\ArrayObject\n {\n return $this->entries;\n }", "title": "" }, { "docid": "11dd9f3d147e3cd9f73d317e964f10be", "score": "0.6115714", "text": "public function getItemsList(){\n return $this->_get(2);\n }", "title": "" }, { "docid": "e353c2521bc1e744d4daa324e07dd7b6", "score": "0.610288", "text": "function getContent($item)\n\t{\n\t\tApp::import('Lib', 'ContentStream.CsConfigurator');\n\t\t$config = CsConfigurator::getConfig();\n\t\t\n\t\tif (empty($item['type']) || empty($item['foreign_key']))\n\t\t\treturn array();\n\t\t\n\t\tif (!isset($config['streams'][$item['type']])) {\n\t\t\ttrigger_error('CsItem::getContent() - Found a item of an unknown type `'.$item['type'].'`.');\n\t\t\treturn $item;\n\t\t}\n\t\t\n\t\t$stream_config = $config['streams'][$item['type']];\n\t\t$Model = ClassRegistry::init($stream_config['model']);\n\t\t$item['__title'] = $stream_config['title'];\n\t\t\n\t\tif (!$Model) {\n\t\t\ttrigger_error('CsItem::getContent() - Model `'.$stream_config['model'].'` couldīn be initialized.');\n\t\t\treturn $item;\n\t\t}\n\t\t\n\t\t$data = array();\n\t\tif (method_exists($Model, 'findContentStream'))\n\t\t{\n\t\t\t$data = $Model->findContentStream($item['foreign_key']);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$Model->recursive = -1;\n\t\t\t$data = $Model->findById($item['foreign_key']);\n\t\t}\n\n\t\tif (empty($data) || !is_array($data))\n\t\t\treturn $item;\n\n\t\treturn $item+$data;\n\t}", "title": "" }, { "docid": "245fb9fe9e3587f8bb1302ce3e62fe39", "score": "0.6086225", "text": "public function getItemsForExport() {\r\n\t\t$db = JFactory::getDbo();\r\n\t\t$query = $db->getQuery(true);\r\n\r\n\t\t// Select icons\r\n\t\t$query->select('*');\r\n\r\n\t\t// From the icon table\r\n\t\t$query->from('#__smarticons');\r\n\r\n\t\t$icons = $this->_getList($query);\r\n\r\n\t\t//Select categories\r\n\t\t$query = $db->getQuery(true);\r\n\t\t$query->select('id, title, alias, description');\r\n\r\n\t\t// From the icon table\r\n\t\t$query->from('#__categories');\r\n\r\n\t\t//Limit results only to our extension\r\n\t\t$query->where('extension = \\'com_smarticons\\'');\r\n\r\n\t\t$categories = $this->_getList($query);\r\n\r\n\t\t$result = array();\r\n\t\t$result['icons'] = $icons;\r\n\t\t$result['categories'] = $categories;\r\n\r\n\t\treturn $result;\r\n\t}", "title": "" }, { "docid": "d0e2749b1444a924539e98dd50b22aa4", "score": "0.608592", "text": "public function getItems()\n\t{\n\t\t$items = parent::getItems();\n\n\t\treturn $items;\n\t}", "title": "" }, { "docid": "35d564c85060ebb9a45961583d081181", "score": "0.6066783", "text": "protected function getArrayableItems(\n $items\n )\n {\n }", "title": "" }, { "docid": "daa103a0a44875be9c2cadfe2166628e", "score": "0.60663295", "text": "public function getItemDetails($itemId){\n $this->SetLocale( 'uk' );\n $keyId = $this->config['ASSOCIATES_KEY_ID'] ;\n $secretKey = $this->config['ASSOCIATES_SECRET_KEY'] ;\n $associateId = $this->config['ASSOCIATES_ID'];\n $result = array();\n //$advAPI = new AdvertizeAPI( $keyId, $secretKey, $associateId );\n $result = $this->ItemLookup( $itemId );\n echo \"<pre>\";\n print_r($result->Items);\n echo \"</pre>\";\n exit;\n\n $items = $items->Items->Item;\n $result['GalleryURL'] = (string)$items['MediumImage']->URL;\n if( isset($items['ItemAttributes']) ){\n $package_dimensions = get_object_vars($items['ItemAttributes']->PackageDimensions);\n $height = $package_dimensions['Height'];\n $length = $package_dimensions['Length'];\n $weight = $package_dimensions['Weight'];\n $width = $package_dimensions['Width'];\n $result['Height'] = $height;\n $result['Length'] = $length;\n $result['Weight'] = $weight;\n $result['Width'] = $width;\n }\n else{\n $result['Height'] = '';\n $result['Length'] = '';\n $result['Weight'] = '';\n $result['Width'] = '';\n }\n return $result;\n }", "title": "" }, { "docid": "2247bf069e784b34e5226d72d9a8cc21", "score": "0.6064198", "text": "public function getItems()\n {\n // Get a storage key.\n $store = $this->getStoreId();\n\n // Try to load the data from internal storage.\n if(isset($this->cache[$store])) {\n return $this->cache[$store];\n }\n\n // Load the list items.\n $query = $this->_getListQuery();\n $items = $this->_getList($query, $this->getStart(), $this->getState('list.limit'));\n\n // Check for a database error.\n if($this->_db->getErrorNum()) {\n $this->setError($this->_db->getErrorMsg());\n return false;\n }\n/*\n $pruleCustomers = $pruleCustomerGroups = $pruleProducts = $pruleProductCats = array();\n\n foreach ($items as $item)\n {\n if($item->recipient == 'customer') {\n\t$pruleCustomers[] = (int) $item->id;\n }\n else { // customer_group\n\t$pruleCustomerGroups[] = (int) $item->id;\n }\n\n if($item->target == 'product' || $item->target == 'bundle') {\n\t$pruleProducts[] = (int) $item->id;\n }\n else { // product_cat\n\t$pruleProductCats[] = (int) $item->id;\n }\n }\n\n if(!empty($pruleCustomers)) {\n $query->select('name')\n\t ->from('#__users')\n\t ->join('#__ketshop_prule_recipient ON id = item_id')\n\t ->where('prule_id IN('.implode(',', $pruleCustomers).')');\n $db->setQuery($query);\n }\n\n if(!empty($pruleCustomerGroups)) {\n }\n\n if(!empty($pruleProducts)) {\n }\n\n if(!empty($pruleProductCats)) {\n }\n*/\n $db = JFactory::getDbo();\n $query = $db->getQuery(true);\n\n //Place for each item the name of the linked recipients according to \n //their type (customer, customer_group) into an array. \n foreach($items as $item) {\n $query->clear();\n if($item->recipient == 'customer') {\n\t$query->select('name')\n\t ->from('#__users')\n\t ->join('LEFT', '#__ketshop_prule_recipient ON id = item_id')\n\t ->where('prule_id='.$item->id);\n }\n else { // customer_group\n\t$query->select('title')\n\t ->from('#__usergroups')\n\t ->join('LEFT', '#__ketshop_prule_recipient ON id = item_id')\n\t ->where('prule_id='.$item->id);\n }\n\n $db->setQuery($query);\n $recipients = $db->loadColumn();\n $item->recipients = $recipients;\n\n\n //Same than above but for products.\n $query->clear();\n if($item->target == 'product' || $item->target == 'bundle') {\n\t$query->select('name')\n\t ->from('#__ketshop_product')\n\t ->join('LEFT', '#__ketshop_prule_target ON id = item_id')\n\t ->where('prule_id='.$item->id);\n }\n else { // product_cat\n\t$query->select('title')\n\t ->from('#__categories')\n\t ->join('LEFT', '#__ketshop_prule_target ON id = item_id')\n\t ->where('prule_id='.$item->id);\n }\n\n $db->setQuery($query);\n $targets = $db->loadColumn();\n $item->targets = $targets;\n }\n\n // Add the items to the internal cache.\n $this->cache[$store] = $items;\n\n return $this->cache[$store];\n }", "title": "" }, { "docid": "83a7a31969bb9773b6f9be1042970cf9", "score": "0.606329", "text": "public function getItems(): ItemsInterface;", "title": "" }, { "docid": "2722ea8aa8ade830093291f44529d1e5", "score": "0.6029004", "text": "public function getItemsList(){\n return $this->_get(3);\n }", "title": "" }, { "docid": "9911d2f6670ff95196ee00cff7a83078", "score": "0.60111916", "text": "public function get($item);", "title": "" }, { "docid": "631dc73c5a0340c2e90cb74aa353b027", "score": "0.6008683", "text": "public function getItems(): ?array\n {\n return $this->items;\n }", "title": "" }, { "docid": "cdcf4e2b95aac7ee300772a71764000c", "score": "0.59810823", "text": "public function getItems()\n\t{\n return parent::getItems();\n }", "title": "" }, { "docid": "ab9b37f25cd6f339ba4ce1ee4f243ace", "score": "0.59793437", "text": "public function getItemsList(){\n return $this->_get(4);\n }", "title": "" }, { "docid": "68aa0c85ebed95a605f2cd963ba0b6bb", "score": "0.59669304", "text": "protected function getItemsArray()\n {\n $items = [];\n foreach ($this->items as $item) {\n $items[] = [\n 'description' => $item->description,\n 'amount' => $item->amount,\n ];\n }\n\n return $items;\n }", "title": "" }, { "docid": "09cf865c74a2d09cdf7d98d95fd2fc57", "score": "0.59657496", "text": "public function get_data( $item = null ) {\n\t\treturn self::_get_items( $this->_data, $item );\n\t}", "title": "" }, { "docid": "fdefab5fbbca83f7dc00f4c1d502e3c5", "score": "0.5959205", "text": "public function getPrimaryItemData(array $item): array;", "title": "" }, { "docid": "cadf7477ec5edc377b724e0a39a642ba", "score": "0.5939454", "text": "public function items();", "title": "" }, { "docid": "cadf7477ec5edc377b724e0a39a642ba", "score": "0.5939454", "text": "public function items();", "title": "" }, { "docid": "cadf7477ec5edc377b724e0a39a642ba", "score": "0.5939454", "text": "public function items();", "title": "" }, { "docid": "840caf15ea9d239ca23e44246ce46078", "score": "0.5935248", "text": "public function getItems()\n {\n return collect($this->items);\n }", "title": "" }, { "docid": "2df03c33498f4448ec5953381f795b6b", "score": "0.59343404", "text": "public function getItem();", "title": "" }, { "docid": "14353879423d282942c30b476ed2c7bf", "score": "0.5932815", "text": "function get_all_items()\n{\n\t$items = [];\n\ttry {\n\t\t$conn = get_connection();\n\t\t$stmt = $conn->query('SELECT * FROM item');\n\n\t\twhile ($row = $stmt->fetch()) {\n\t\t\t$id = intval($row['item_id']);\n\t\t\t$categories = get_categories_of_item($id);\n\t\t\t$labels = get_labels_of_item($id);\n\t\t\t$images = get_images_of_item($id);\n\n\t\t\t$items[] = [\n\t\t\t\t'id' => $id,\n\t\t\t\t'name' => $row['name'],\n\t\t\t\t'description' => $row['description'],\n\t\t\t\t'retailPrice' => floatval($row['retail_price']),\n\t\t\t\t'ref' => $row['ref'] === 'NULL' ? '' : $row['ref'],\n\t\t\t\t'barcode' => $row['barcode'] === 'NULL' ? '' : $row['barcode'],\n\t\t\t\t'gender' => $row['gender'],\n\t\t\t\t'stock' => intval($row['stock']),\n\t\t\t\t'outstanding' => intval($row['outstanding']) === 0 ? FALSE : TRUE,\n\t\t\t\t'isNew' => intval($row['is_new']) === 0 ? FALSE : TRUE,\n\t\t\t\t'published' => intval($row['published']) === 0 ? FALSE : TRUE,\n\t\t\t\t'dischargeDate' => $row['discharge_date'],\n\t\t\t\t'webDirection' => $row['web_direction'] === 'NULL' ? '' : $row['web_direction'],\n\t\t\t\t'images' => $images,\n\t\t\t\t'categories' => $categories,\n\t\t\t\t'labels' => $labels\n\t\t\t];\n\t\t}\n\t} catch (PDOException $e) {\n\t\t$message = \"Error al tratar de consultar la informacion de los productos: {$e->getMessage()}\";\n\t\twrite_error($message);\n\t}\n\n\treturn $items;\n}", "title": "" }, { "docid": "722cbcf89a011ae3d808fe9d4b84bc13", "score": "0.5924139", "text": "public function getItem()\n {\n return $this->item;\n }", "title": "" }, { "docid": "722cbcf89a011ae3d808fe9d4b84bc13", "score": "0.5924139", "text": "public function getItem()\n {\n return $this->item;\n }", "title": "" }, { "docid": "722cbcf89a011ae3d808fe9d4b84bc13", "score": "0.5924139", "text": "public function getItem()\n {\n return $this->item;\n }", "title": "" }, { "docid": "722cbcf89a011ae3d808fe9d4b84bc13", "score": "0.5924139", "text": "public function getItem()\n {\n return $this->item;\n }", "title": "" }, { "docid": "722cbcf89a011ae3d808fe9d4b84bc13", "score": "0.5924139", "text": "public function getItem()\n {\n return $this->item;\n }", "title": "" }, { "docid": "722cbcf89a011ae3d808fe9d4b84bc13", "score": "0.5924139", "text": "public function getItem()\n {\n return $this->item;\n }", "title": "" }, { "docid": "722cbcf89a011ae3d808fe9d4b84bc13", "score": "0.5924139", "text": "public function getItem()\n {\n return $this->item;\n }", "title": "" }, { "docid": "722cbcf89a011ae3d808fe9d4b84bc13", "score": "0.5924139", "text": "public function getItem()\n {\n return $this->item;\n }", "title": "" }, { "docid": "f9f009ebcd3eb9b556f626882483b993", "score": "0.5923688", "text": "function _getItemAll()\r\n\t{\r\n\t\treturn $this->_getItemInfo(0, 0);\r\n\t}", "title": "" }, { "docid": "1aac6614023ac70231d6aa83d1af032b", "score": "0.59134954", "text": "public function &_get_items()\n {\n return $this->_get_feeds_for_weblinks();\n }", "title": "" }, { "docid": "b1f511d48cd67f87ac5f9d8c8a059cb5", "score": "0.58976513", "text": "public static function items()\n {\n return [];\n }", "title": "" }, { "docid": "ef4dcd5da34a16b7db20bfb199e968dc", "score": "0.5876306", "text": "public function getItem($item_id);", "title": "" }, { "docid": "b4fb114069441c90f91a845544fcbfac", "score": "0.58744216", "text": "public function getItem()\n\t{\n\t\tif(empty($this->_item))\n\t\t{\n\t\t\t$this->__call('getInfo',array());\n\t\t}\n\t\t\n\t\treturn parent::getItem();\n\t}", "title": "" }, { "docid": "25791b4ea87b7389b8567efa13f5bc5b", "score": "0.5871459", "text": "function all_items() {\n\t\t$unread_xml = $this->all_items_raw();\n\t\tif ($this->errors_exist()) return array();\n\t\treturn $this->_parse_entries($unread_xml);\t\n\t}", "title": "" }, { "docid": "50c6c4c95d005778051cc2c99d4cc569", "score": "0.5864653", "text": "private function getItems(){\n $WPData = $this->simpleXML->children ( $this->namespace [\"wp\"] );\n $this->post_id = $WPData->post_id;\n $this->post_name = $WPData->post_name;\n $this->type = $WPData->post_type;\n $this->comment_status = $WPData->comment_status;\n $this->image_url = $WPData->attachment_url;\n $this->time=(string)$WPData->post_date;\n // Fetch the Content to be Used\n $Content = $this->simpleXML->children ( $this->namespace [\"content\"] );\n\n $this->content = ( string ) trim ( $Content->encoded );\n $this->category = $this->simpleXML->category;\n // Comments\n $Comments = $WPData->comment;\n\n foreach ( $Comments as $items ) {\n\n $data = array (\n\n \"author\" => ( string ) trim ( $items->comment_author ),\n \"email\" => $items->comment_author_email,\n \"url\" => $items->author_url,\n \"date\" => $items->comment_date,\n \"modified\"=>date( 'Y-m-d H:i:s', time()),\n \"content\" => ( string ) trim ( $items->comment_content ),\n \"approved\" =>(int) $items->comment_approved,\n \"parent\"=>0\n );\n array_push ( $this->comments, $data );\n }\n }", "title": "" }, { "docid": "94ca292b64847acb737623cb279d9d51", "score": "0.5857383", "text": "public function extractItems();", "title": "" }, { "docid": "e1f52563c50e3df7845d4a19a72c6b66", "score": "0.58393157", "text": "public function getItem() {\n\t\treturn $this->_item;\n\t}", "title": "" }, { "docid": "93c2e504c5e3ae844a1b331a2ce0c73f", "score": "0.5834418", "text": "function get($item)\r\n {\r\n // Create a new query object.\r\n $db = JFactory::getDBO();\r\n $query = $db->getQuery(true);\r\n\r\n $array = array();\r\n\r\n\t\t// Select the required fields from the table.\r\n\t\t$query->select(\r\n\t\t\t$this->getState(\r\n\t\t\t\t'list.select',\r\n\t\t\t\t'tags.tag'\r\n\t\t\t)\r\n\t\t);\r\n\r\n // From the albums table\r\n $query->from('#__hwdms_tags AS tags');\r\n\r\n // Join over the categories.\r\n $query->join('LEFT', '#__hwdms_tag_map AS map ON tags.id = map.tag_id');\r\n\r\n $query->where($db->quoteName('map.element_id').' = '.$db->quote($item->id));\r\n $query->where($db->quoteName('map.element_type').' = '.$db->quote($this->elementType));\r\n\r\n $db->setQuery($query);\r\n $rows = $db->loadObjectList();\r\n\r\n //$tags = JArrayHelper::toObject($rows);\r\n $tags = $rows;\r\n return $tags;\r\n }", "title": "" }, { "docid": "33080f7c13a2e1cfa77c8e497a9e2f94", "score": "0.581722", "text": "public function getItems()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$items = parent::getItems();\n\t\t\treturn $items;\n\t\t}\n\t\tcatch(Exception $e)\n {\n Gm_ceilingHelpersGm_ceiling::add_error_in_log($e->getMessage(), __FILE__, __FUNCTION__, func_get_args());\n }\n\t}", "title": "" }, { "docid": "0a8e23f9b1dc10b601f6eacd2c8c6a58", "score": "0.58169496", "text": "public function getItems()\n {\n return $this->_itemCollection;\n }", "title": "" } ]
90ef6cfde6cf80946561bd5a7a56cb38
Full name of the person. This field should only be used when separate first and last names are not available. restrictions: optional, required if separate first and last names are not available
[ { "docid": "c3626264da36da9fc50ead99d6e62199", "score": "0.0", "text": "public function getFullName();", "title": "" } ]
[ { "docid": "9356890135bd0a498b32dcf08f0759bc", "score": "0.78809106", "text": "private function full_name() {\n return $this->first_name . \" \" . $this->last_name;\n }", "title": "" }, { "docid": "b8c901b681969e7f2fd5c8818e39aedd", "score": "0.78750205", "text": "public function getFullname()\n\t{\n\t\treturn trim($this->first_name.' '.$this->last_name);\n\t}", "title": "" }, { "docid": "0c35d853099efab478773ac6274b13cc", "score": "0.7860742", "text": "function get_full_name()\n\t{\n\t\treturn trim($this->first_name . ' ' . $this->last_name);\n\t}", "title": "" }, { "docid": "c9ae1563e1c4e3d9f813345052582ea1", "score": "0.78454185", "text": "function getFullName() {\n\t\treturn $this->getData('firstName') . ' ' . ($this->getData('middleName') != '' ? $this->getData('middleName') . ' ' : '') . $this->getData('lastName');\n\t}", "title": "" }, { "docid": "da67a75a405e10c699496f511a4fa5d5", "score": "0.7781077", "text": "public function formatFullName()\n\t{\n\t\t$parts = array_filter(array(trim(''.$this->salutation->value),\n\t\t\ttrim(''.$this->firstname->value),\n\t\t\ttrim(''.$this->lastname->value)));\n\t\treturn(join(' ', $parts));\n\t}", "title": "" }, { "docid": "d9bd504c004edf90ab550eac1d5067e2", "score": "0.77765864", "text": "public function get_full_name() {\n $parts = array(\n $this->first_name,\n $this->last_name\n );\n\n return implode(' ', array_filter($parts));\n }", "title": "" }, { "docid": "10964c3866638c357f6d4a6ccfa736b7", "score": "0.7698745", "text": "function get_full_name(){\n\t\t\treturn $this->first_name . \" \" . $this->last_name;\n\t\t}", "title": "" }, { "docid": "485688154a4968dd452cba4aa6ffc5e7", "score": "0.76891804", "text": "public function getFullName() {\n if( ! $this->first_name || ! $this->last_name) {\n return null;\n }\n else {\n return \"{$this->first_name} {$this->last_name}\";\n }\n }", "title": "" }, { "docid": "e19e786c53cf352a71a9cc7776bb837d", "score": "0.76489264", "text": "public function fullName()\n {\n return trim($this->first_name . ' ' . $this->last_name);\n }", "title": "" }, { "docid": "ddd9208986679279b3da815ad34daee8", "score": "0.76462877", "text": "public function getFullname()\n {\n return $this->getFirstname() . ' ' . $this->getLastname();\n }", "title": "" }, { "docid": "4e8cc67455a570fe74d2411121688aad", "score": "0.7592254", "text": "public function getShortFullName()\n { \n return $this->last_name ? ($this->last_name .' '. ($this->first_name ? mb_substr($this->first_name, 0, 1).'.'.($this->patron_name ? mb_substr($this->patron_name, 0, 1).'.' : '') : '')) : $this->name; \n }", "title": "" }, { "docid": "1c9c18288d16d042663882fc4448cfef", "score": "0.7548859", "text": "public function getFullName()\n {\n if (empty($this->middleInitial)) {\n return $this->firstName . ' ' . $this->lastName;\n } else {\n return $this->firstName . ' ' . $this->middleInitial . '. ' . $this->lastName;\n }\n }", "title": "" }, { "docid": "798b6e11d232e7029a345a527447f2b1", "score": "0.75397336", "text": "public function getFullName()\n { \n return $this->last_name ? ($this->last_name .' '. ($this->first_name ? $this->first_name.' '.($this->patron_name ? $this->patron_name: '') : '')) : $this->name; \n }", "title": "" }, { "docid": "af4a8dadaff8ddbf057866397f214b0a", "score": "0.74905014", "text": "public function getFullname();", "title": "" }, { "docid": "7eed60f483b892f3dadd0b9339968e97", "score": "0.7469071", "text": "public function fullName();", "title": "" }, { "docid": "6545ef9db865a540f9521a26900ff9c3", "score": "0.74624985", "text": "public function fullName() {\n return $this->first_name . ' ' . $this->last_name;\n }", "title": "" }, { "docid": "2bff5844f8a0053c18ab0277908ac0b0", "score": "0.74560136", "text": "public function getFullName()\n {\n return ucfirst($this->firstName) . ' ' . ucfirst($this->lastName);\n }", "title": "" }, { "docid": "8020716accdf4b968fe1c9dd68a9a032", "score": "0.74493736", "text": "public function fullName()\n {\n return $this->first_name . ' ' . $this->last_name;\n }", "title": "" }, { "docid": "ff87ed23f9d48dda5f8c93d59933e751", "score": "0.7439465", "text": "public function getFullName()\n {\n $fullName = $this->first_name . ' ';\n if(!empty($this->middle_initial)) {\n $fullName .= $this->middle_initial . '. ';\n }\n $fullName .= $this->last_name;\n if(!empty($this->suffix)) {\n $fullName .= ' ' . $this->suffix . '.';\n }\n\n return $fullName;\n }", "title": "" }, { "docid": "6dfe3cd624dcce258009964c53d140d9", "score": "0.74262744", "text": "public function getFullNameAttribute() {\n return ucfirst($this->first_name) . ' ' . ucfirst($this->last_name);\n }", "title": "" }, { "docid": "f93ccc15c116fc0869fcc2d6d0654970", "score": "0.74176246", "text": "public function fullname(): string\n {\n return $this->first_name . ' ' . $this->last_name;\n }", "title": "" }, { "docid": "62b632e63118cfb81e2af402ceb7cd02", "score": "0.7392293", "text": "public function getFullNameAttribute()\n { \n if ($this->last_name !== null) {\n return $this->first_name . ' ' . $this->last_name;\n }\n return $this->first_name;\n }", "title": "" }, { "docid": "8c4ad0170f14f3a55e2b453f520b61dc", "score": "0.73813814", "text": "public function getNameFullAttribute() {\n $pieces = [];\n $pieces[] = $this->name_first;\n if($this->name_middle !== null && !empty(trim($this->name_middle))) {\n $pieces[] = $this->name_middle;\n }\n if($this->name_prefix !== null && !empty(trim($this->name_prefix))) {\n $pieces[] = $this->name_prefix;\n }\n $pieces[] = $this->name_last;\n\n return implode(' ', $pieces);\n }", "title": "" }, { "docid": "049417079cf0e38c76c9dc0982c8bca2", "score": "0.7375417", "text": "public function fullName()\n {\n return $this -> first_name . ' ' . $this -> last_name;\n }", "title": "" }, { "docid": "35c002517ba67a601e32352ae940c70d", "score": "0.73525304", "text": "public function getWholeName(){return $this->first_name.\" \".$this->last_name;}", "title": "" }, { "docid": "7fa5e42d4a2a9b80ad5616c0b2edbc1d", "score": "0.73456675", "text": "public function getFullname()\n {\n return $this->getValue('fullname');\n }", "title": "" }, { "docid": "2eb0f6303022421e4a2ab14bc3eba77b", "score": "0.73253983", "text": "public function getFullName() {\r\n\t\treturn $this->getFirstname() . ' ' . $this->getLastname();\r\n\t}", "title": "" }, { "docid": "59aeca1b3f9873b334695e157f957aa9", "score": "0.73234856", "text": "public function getFullNameAbr()\n { \n return $this->last_name ? (mb_substr($this->first_name, 0, 1) . ($this->first_name ? mb_substr($this->first_name, 0, 1).($this->patron_name ? mb_substr($this->patron_name, 0, 1) : '') : '')) : mb_substr($this->name, 0, 1);\n }", "title": "" }, { "docid": "4e275c154d97fa39c553df74488ae398", "score": "0.7316812", "text": "public function getFullName()\n {\n return $this->first_name . ' ' . $this->last_name;\n }", "title": "" }, { "docid": "61fa908e5308129794a3d33d2ce6b6d8", "score": "0.7310482", "text": "public function fullName()\n {\n return \"{$this->first_name} {$this->last_name}\";\n }", "title": "" }, { "docid": "84c8bfec069dd801e737a86040d1d0d5", "score": "0.731047", "text": "public function getFullName()\n {\n return $this->first_name . \" \" . $this->last_name;\n }", "title": "" }, { "docid": "82f0cf4578323d3c25493b639c7ec9b1", "score": "0.7308393", "text": "public function get_full_name(){\n return $this->user_data['fname'].' '.$this->user_data['lname'];\n }", "title": "" }, { "docid": "6e672dd459eb4a565f551a903ce4913a", "score": "0.73012257", "text": "public function getFullnameAttribute()\n {\n return $this->attributes['first_name'].' '.$this->attributes['last_name'];\n }", "title": "" }, { "docid": "000e758e8745479fce67913009c615f4", "score": "0.7299702", "text": "public function getFullnameAttribute()\n {\n return ucfirst($this->firstname) . ' ' . ucfirst($this->lastname);\n }", "title": "" }, { "docid": "91196bcc138256391ebe5b82c53098ae", "score": "0.7287523", "text": "public function getFullName()\n {\n return sprintf(\n '%s %s',\n $this->getFirstName(),\n $this->getLastName()\n );\n }", "title": "" }, { "docid": "f4a6aaa75d6c0d053a5f350d9c2fb8f9", "score": "0.72577024", "text": "public function get_fullname(){\n return \"$this->first_name $this->last_name\";\n }", "title": "" }, { "docid": "f3582dd01e5f8a75665d711707eff5ba", "score": "0.724614", "text": "public function getFullName() {\n\t\tif($this->first_name && $this->last_name) {\n\t\t\treturn $this->first_name . ' ' . $this->last_name;\n\t\t} else if($this->handle) {\n\t\t\treturn sprintf('@%s', $this->handle);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "582e5ed6f97835e1b7b75b8db0103f63", "score": "0.7244326", "text": "public function getFullName()\n {\n return sprintf('%s %s', $this->getFirstName(), $this->getLastName());\n }", "title": "" }, { "docid": "7442286d8afe65205d59437a1872f75e", "score": "0.72415024", "text": "public function NameFull() {\n\t$sFull = $this->GetFieldValue('NameFull');\n\tif ($sFull == '') {\n\t return $this->NameString();\n\t} else {\n\t return $sFull;\n\t}\n }", "title": "" }, { "docid": "273b8a0e587c5c7e8303e43d14401d28", "score": "0.72382504", "text": "public function getFullName(): string\n {\n return $this->properFirstName() .' '.$this->properMiddleName() .' '.$this->properLastName();\n }", "title": "" }, { "docid": "e5f4732fac15fe84e1a2c18019986535", "score": "0.7230091", "text": "function full_name(){\n return \"$this->first_name\" . \" \" . $this->last_name . \"\\n\";\n }", "title": "" }, { "docid": "295632f79a07e2370cc923e0f14c70e0", "score": "0.72297114", "text": "public function getFullNameAttribute()\n {\n $fullname = sprintf('%s %s%s', $this->first_name, $this->mi ? $this->mi . '. ' : '', $this->last_name);\n\n return trim($fullname);\n }", "title": "" }, { "docid": "c8fd230bb91275b48a1f3603f74cab92", "score": "0.7226047", "text": "public function getFullName(){\n return $this->first_name .\" \". $this->last_name;\n }", "title": "" }, { "docid": "97e61b2fa6420eefd3f3db1ec87351f2", "score": "0.7223149", "text": "public function getFullNameAttribute()\n {\n return Str::title($this->first_name . ' ' . $this->last_name);\n }", "title": "" }, { "docid": "40bbfa277468441d28c1f4897e8e272d", "score": "0.7215302", "text": "public function getFullName()\n {\n return $this->getFirstname() . ' ' . $this->getLastname();\n }", "title": "" }, { "docid": "40bbfa277468441d28c1f4897e8e272d", "score": "0.7215302", "text": "public function getFullName()\n {\n return $this->getFirstname() . ' ' . $this->getLastname();\n }", "title": "" }, { "docid": "5739131a767f0f094f977c9106cfa257", "score": "0.72097397", "text": "public function getFullName() {\n return $this->getFirstname() . ' ' . $this->getLastname();\n }", "title": "" }, { "docid": "1e21c8c8bd5849e4b2f3cb3c0e38eebb", "score": "0.71888727", "text": "public function full_name() {\n if(isset($this->ime) && isset($this->prezime)) {\n return $this->ime . \" \" . $this->prezime;\n } else {\n return \"\";\n }\n }", "title": "" }, { "docid": "de32845091090feed998ef1c76a6beea", "score": "0.7139778", "text": "public function getFullName() {\n return $this->getFirstName() . ' ' . $this->getLastname();\n }", "title": "" }, { "docid": "32268d033b758ddfa2bb367fc3ddea75", "score": "0.7138146", "text": "public function fullName()\n {\n $firstName = $this->getRandomKey('firstName');\n $lastName = $this->getRandomKey('lastName');\n\n return \"{$firstName} {$lastName}\";\n }", "title": "" }, { "docid": "df1d4b49d90cdef0fee6d8e227b49c5e", "score": "0.7134202", "text": "public function getFullname(): string {\n return \"$this->fname $this->lname\";\n }", "title": "" }, { "docid": "51b6f707a91dbb3f59fb4f594e658fef", "score": "0.71278", "text": "public function getFullNameAttribute()\n {\n return $this->attributes['first_name'] . ' ' . $this->attributes['last_name'];\n }", "title": "" }, { "docid": "51b6f707a91dbb3f59fb4f594e658fef", "score": "0.71278", "text": "public function getFullNameAttribute()\n {\n return $this->attributes['first_name'] . ' ' . $this->attributes['last_name'];\n }", "title": "" }, { "docid": "d5878eb9a7a109f884e2d82f6137c418", "score": "0.7122618", "text": "function getUserFirstName() {\n $givenname = $this->info['lis_person_name_given'];\n $familyname = $this->info['lis_person_name_family'];\n $fullname = $this->info['lis_person_name_full'];\n if ( strlen($givenname) > 0 ) return $givenname;\n if ( strlen($familyname) > 0 ) return $familyname;\n return $this->getUserName();\n }", "title": "" }, { "docid": "761d59d86a4e908ba3b4e0d3693a6d76", "score": "0.71206427", "text": "public function getFullName()\n {\n return $this->firstName . \" \" . $this->lastName;\n }", "title": "" }, { "docid": "761d59d86a4e908ba3b4e0d3693a6d76", "score": "0.71206427", "text": "public function getFullName()\n {\n return $this->firstName . \" \" . $this->lastName;\n }", "title": "" }, { "docid": "d1d308d2e71f279bbcfe4a21a32a8b20", "score": "0.7117796", "text": "public function getFullNameAttribute()\n {\n return $this->name.($this->preposition == null ? '' : ' '.$this->preposition).' '.$this->last_name;\n }", "title": "" }, { "docid": "bc501d76742b46606b23644350effe01", "score": "0.711482", "text": "public function getFullName()\r\n {\r\n return $this->_firstName . ' ' . $this->_lastName;\r\n }", "title": "" }, { "docid": "3457164d94339ca6777b1733fe6185f1", "score": "0.7110688", "text": "public function getFullname() {\n $fullname = $this->getPrename() . ' ' . $this->getName();\n if (empty($fullname) || $fullname == \" \") {\n return __(\"Unbekannt\");\n }\n return $fullname;\n }", "title": "" }, { "docid": "667bba79d16047f509d73f5ab501fdd8", "score": "0.70982766", "text": "public function getFullNameAttribute()\n {\n return ucfirst($this->first) . ' ' . ucfirst($this->middle) . ' ' . ucfirst($this->last);\n }", "title": "" }, { "docid": "7fac24352e7419dedb9cedf84a6535a0", "score": "0.7084016", "text": "function getFullname($first_name,$last_name)\n {\n return \"Ten cua ban la : \" .$first_name .\" \".$last_name;\n }", "title": "" }, { "docid": "87356f31f143f4d71fe6cdeaff3c7a60", "score": "0.7074511", "text": "public function getRealNameAttribute()\n {\n return $this->name_first.' '.$this->name_last;\n }", "title": "" }, { "docid": "dae000a42737ee6e5374c059da53481f", "score": "0.706917", "text": "public function getShortName() {\n return trim(ucwords(trim($this->firstName)) . ' ' . strtoupper(substr(trim($this->lastName), 0, 1))) . '.';\n }", "title": "" }, { "docid": "efd1cba48aea7bbd3b31003cdea73be1", "score": "0.70641583", "text": "public function fullname(): string {\n\t\t\t\n\t\t\treturn $this->customer->firstName . ' ' . $this->customer->lastName;\n\t\t}", "title": "" }, { "docid": "124bc48e3f625c5bf43e2168e46e21dc", "score": "0.7050695", "text": "public function getDisplayNameAttribute()\n {\n if ($this->first_name && $this->last_name) {\n return $this->first_name.' '.$this->last_name;\n } else if ($this->first_name) {\n return $this->first_name;\n } else if ($this->last_name) {\n return $this->last_name;\n } else {\n return explode('@', $this->email)[0];\n }\n }", "title": "" }, { "docid": "97e4ca2f921ac036eefe9ae380a81bdf", "score": "0.70416", "text": "public function formatContactName()\n {\n \t$parts = array_filter(array(\n \t\ttrim(''.$this->firstname->value),\n\t\t trim(''.$this->lastname->value)\n\t ));\n \treturn(join(' ', $parts));\n }", "title": "" }, { "docid": "74dd6e02d4339f713d37f54d542ef4df", "score": "0.70304316", "text": "public function getFirstname();", "title": "" }, { "docid": "74dd6e02d4339f713d37f54d542ef4df", "score": "0.70304316", "text": "public function getFirstname();", "title": "" }, { "docid": "d474d106876e866a90ee07fd7eeaab96", "score": "0.70220244", "text": "public function full_name(){\n //Outside the class: $variable-> //Inside the class: $this->\n return $this->first_name . \" \" .$this->last_name;\n }", "title": "" }, { "docid": "b0b25dfd4c9723ba0979e618559ec19b", "score": "0.70129716", "text": "function getRecipientFullName($lastFirst = false) {\n\t\t$firstName = $this->getData('recipientFirstName');\n\t\t$middleName = $this->getData('recipientMiddleName');\n\t\t$lastName = $this->getData('recipientLastName');\n\t\tif ($lastFirst) {\n\t\t\treturn \"$lastName, \" . \"$firstName\" . ($middleName != ''?\" $middleName\":'');\n\t\t} else {\n\t\t\treturn \"$firstName \" . ($middleName != ''?\"$middleName \":'') . $lastName;\n\t\t}\n\t}", "title": "" }, { "docid": "e890a8e96dd23715b046743b14c10a95", "score": "0.6980069", "text": "function get_full_author_name() {\n $fname = get_the_author_meta( 'first_name' );\n $lname = get_the_author_meta( 'last_name' );\n $full_name = '';\n\n if( empty( $fname ) ){\n $full_name = $lname;\n } elseif( empty( $lname ) ){\n $full_name = $fname;\n } else {\n //both first name and last name are present\n $full_name = \"{$fname} {$lname}\";\n }\n\n return $full_name;\n}", "title": "" }, { "docid": "ca1cfc24f2ba8b6565334e8beb26a389", "score": "0.69763917", "text": "public function properLastName(): string\n {\n return Str::ucfirst(Str::lower($this->attributes['last_name']));\n }", "title": "" }, { "docid": "97382c15f416e80017b1c91eb255eb2e", "score": "0.6975686", "text": "public function getName()\n\t{\n\t\treturn implode(' ', array($this->_options['first_name'], $this->_options['last_name']));\n\t}", "title": "" }, { "docid": "40aa95a9220c836078e2b8136da7b61a", "score": "0.697252", "text": "public function getFullName() {\n return $this->user->first_name . ' ' . $this->user->last_name;\n }", "title": "" }, { "docid": "f5171b531ebac6c2778702cc5e916bc1", "score": "0.6968049", "text": "public function get_full_name()\n {\n // First check if the user is in the database\n $name_from_database = $this->personRepository->getFullNameByUniqname($this->get_uniqname());\n if ($name_from_database) {\n return $name_from_database;\n }\n\n // If not, retrieve the full name with LDAP.\n $ldap_entry = $this->get_ldap_entry();\n\n // Check if the user has shared their full name; if so, return it.\n if( array_key_exists('displayname', $ldap_entry)) {\n return $ldap_entry['displayname'][0];\n }\n return \"\";\n }", "title": "" }, { "docid": "b3d69747bbefd898b65954502e50b5fe", "score": "0.6966905", "text": "function getFullName() {\r\n return $this->firstName . \" \" . $this->lastName;\r\n }", "title": "" }, { "docid": "69e92ff0cfc3be7e638197a511a883bc", "score": "0.695822", "text": "public function edd_slg_username_by_fname_lname( $first_name = '', $last_name = '' ) {\n\t\t\n\t\t//Initilize username\n\t\t$username\t= '';\n\t\t\n\t\tif( !empty( $first_name ) ) {//If firstname is not empty\n\t\t\t$username\t.= $first_name;\n\t\t}\n\t\tif( !empty( $last_name ) ) {//If lastname is not empty\n\t\t\t$username\t.= '_' . $last_name;\n\t\t}\n\t\t\n\t\treturn $username;\n\t}", "title": "" }, { "docid": "0a94052c4d4e12e9b1d1796789a9813e", "score": "0.6957641", "text": "public function getFullNameAttribute()\n {\n return \"{$this->first_name} {$this->last_name}\";\n }", "title": "" }, { "docid": "0a94052c4d4e12e9b1d1796789a9813e", "score": "0.6957641", "text": "public function getFullNameAttribute()\n {\n return \"{$this->first_name} {$this->last_name}\";\n }", "title": "" }, { "docid": "0a94052c4d4e12e9b1d1796789a9813e", "score": "0.6957641", "text": "public function getFullNameAttribute()\n {\n return \"{$this->first_name} {$this->last_name}\";\n }", "title": "" }, { "docid": "aac5dd1cb9271effa125c6ec08a32119", "score": "0.69564205", "text": "public function getFullName() {\n\t\treturn $this->name . ' ' . $this->surname;\n\t}", "title": "" }, { "docid": "a7f0349b3ea721148f49b3238ed0e31f", "score": "0.69411016", "text": "public function getFullNameAttribute(): string\n {\n return $this->first_name.' '.$this->last_name;\n }", "title": "" }, { "docid": "4253223c47c16b1d1fe5afb78249c9a9", "score": "0.69407076", "text": "function get_fullname($firstname='', $lastname='', $default='') {\n\n if ( zen_not_null($firstname) && zen_not_null($lastname) ) {\n\t\t$name = $firstname . \" \" . $lastname;\n } elseif ( zen_not_null($firstname) ) {\n\t\t$name = $firstname;\n } elseif ( zen_not_null($lastname) ) {\n\t\t$name = $lastname;\n } else {\n \t$name = $default;\n }\n\n return zen_output_string_protected($name);\n}", "title": "" }, { "docid": "072a20aa4ed71617a8a4acf5e3055605", "score": "0.6937793", "text": "public function getUserFullNameAttribute()\n\t{\n\t\treturn \"{$this->first_name} {$this->last_name}\";\n\t}", "title": "" }, { "docid": "8a679457b1a8965f1e9a451922241302", "score": "0.6932725", "text": "public function getFullNameAttribute()\n {\n return \"{$this->first_name} {$this->middle_name} {$this->last_name}\";\n }", "title": "" }, { "docid": "2e0b4a5f8e24bb8032cfe5016ce03afb", "score": "0.6931505", "text": "public function getFullNameAttribute()\n {\n return $this->first_name . ' ' . $this->last_name;\n }", "title": "" }, { "docid": "7afb8f7c0df83529fb1bcd2c39429480", "score": "0.69278115", "text": "public function getFirstNameAttribute()\n {\n return explode(' ', $this->name)[0];\n }", "title": "" }, { "docid": "fe9349d79e320beb11966906ec16a43e", "score": "0.6926358", "text": "public function properFirstName(): string\n {\n return Str::ucfirst(Str::lower($this->attributes['first_name']));\n }", "title": "" }, { "docid": "8e6c6c98180865af28efef43f4473b41", "score": "0.6920614", "text": "public function getFullNameAttribute()\n {\n if ($this->private && (Auth::guest() || !Auth::user()->permission('administration'))) {\n return trans('tinyissue.anonymous');\n }\n\n return $this->attributes['firstname'] . ' ' . $this->attributes['lastname'];\n }", "title": "" }, { "docid": "3588598d887502dd1817ffbb3f84f679", "score": "0.69106287", "text": "public function getFirstname()\n {\n return ucfirst($this->firstname);\n }", "title": "" }, { "docid": "7276f4c285acb55ee5b042ddc05df395", "score": "0.6888511", "text": "public function get_full_name() : string {\n return $this->fullname;\n }", "title": "" }, { "docid": "11acaf228bd3bfbdf3c95e89b4dfd45a", "score": "0.68858063", "text": "public function get_first_name()\n {\n // First check if the user is in the database\n $person = $this->personRepository->findByUniqname(self::get_uniqname());\n if (is_array($person)) {\n if (count($person) == 1) {\n $person = $person[0];\n }\n }\n if ($person){\n return $person->getFirstName();\n }\n\n // Then guess the first name from the LDAP entry\n $name_array = explode(\" \", $this->get_full_name());\n return $name_array[0];\n }", "title": "" }, { "docid": "ccc14851248ff5a5f1edd847f7595b04", "score": "0.68829584", "text": "public function getFullName(){\n return $this-> firstName . \" \" . $this-> lastName .\" \". $this->phoneNumber; \n }", "title": "" }, { "docid": "d2428aa48ce3d6776c525b770d6033f3", "score": "0.687904", "text": "public function getFullNameAttribute(): string\n {\n return \"{$this->first_name} {$this->last_name}\";\n }", "title": "" }, { "docid": "d7d6fd0dc686817dc4df34b92be024c0", "score": "0.686989", "text": "public function getFullname()\n {\n return $this->fullname;\n }", "title": "" }, { "docid": "1bae2d9f3f0ad9e78a4864c3dd5c5681", "score": "0.6868202", "text": "public function getGivenName()\n {\n return $this->getFirstName();\n }", "title": "" }, { "docid": "1c8c542431a4c480149e75363a239d6b", "score": "0.68674415", "text": "public function getFirstNameAttribute()\n {\n $name_pieces = explode(\" \", $this->billing_name);\n\n return $name_pieces[0];\n }", "title": "" }, { "docid": "9ec5055e84d991a6b86c9e30edf0b990", "score": "0.6866831", "text": "public function getFullName(){\n $employeeDetail=$this->userAccessConnection->userEmployee;\n if($employeeDetail){\n $full_name=$employeeDetail->first_name.\" \".$employeeDetail->last_name;\n }\n else{\n $full_name=$userDetail['full_name']=$this->name;\n }\n return $full_name;\n }", "title": "" }, { "docid": "0cf05adeb250322b14205982436e57d5", "score": "0.68663067", "text": "public function name()\n {\n return implode(' ', array_filter(array($this->getFirstName(), $this->getLastName()), function ($a) {\n return $a;\n }));\n }", "title": "" }, { "docid": "22ee34ae797848f0c8a11639daa975c6", "score": "0.6866047", "text": "public function getFullName($full = false)\n {\n $username = $this->email;\n \n if (!empty($this->firstName)) {\n \n $username = $this->firstName;\n \n if (!empty($this->lastName) && $full) {\n $username = $this->lastName . ' ' . $this->firstName;\n }\n }\n \n return $username;\n }", "title": "" }, { "docid": "398086e13e4873b01039b73da7eadde5", "score": "0.6865968", "text": "function short_name($user)\n{\n return substr(strtoupper($user['first_name']), 0, 1) . '. ' . ucwords($user['last_name']);\n}", "title": "" } ]
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "5755ac75aa5b1cab23e43735bf105864", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n //\n $category_name = $request->category_name;\n $level = $request->level;\n $parent_id = $request->parent_id;\n $QTY = $request->QTY;\n\n Category::where('id', $id)->update([\n 'category_name' => $category_name,\n 'level' => $level,\n 'parent_id' => $parent_id,\n 'QTY' => $QTY\n ]);\n }", "title": "" } ]
[ { "docid": "98a92f5f221512e805209e68c21a2f41", "score": "0.7233934", "text": "public function update($resource, $id, $data);", "title": "" }, { "docid": "259a6a29a43bf9b88ecc1eb3eee3041e", "score": "0.6983865", "text": "public function updateResource($resourceType, $resourceId, $record);", "title": "" }, { "docid": "c5e38f3d50e186dc31a1c1e3191e33a9", "score": "0.6737491", "text": "public function update(Request $request, Resource $resource)\n {\n $this->validate($request, [\n 'name' => 'required|string|max:255',\n 'desc' => 'required|string',\n 'cover' => 'image',\n 'photos.*' => 'image'\n ]);\n\n $resource->update($request->only('name', 'desc'));\n\n if ($request->hasFile('cover')) {\n if ($resource->cover()) {\n $resource->cover()->update(['cover' => 0]);\n }\n $resource->uploadPhoto($request->file('cover'), \"$resource->name cover\", 1);\n }\n\n if ($request->has('photos')) {\n foreach ($request->photos as $key => $photo) {\n $resource->uploadPhoto($photo, \"$resource->name photo\");\n }\n }\n\n return redirect('/home')->with(['status' => 'Device successfully updated']);\n }", "title": "" }, { "docid": "5356d72880be7a8e7291a3812494f44a", "score": "0.6497332", "text": "public function update(Request $request, storage $storage)\n {\n //\n }", "title": "" }, { "docid": "7f0fded4aa42dd4d661965974fccb688", "score": "0.633203", "text": "function requestUpdate($resourceName);", "title": "" }, { "docid": "9df920f81c47ce1493ae744241672b2f", "score": "0.621871", "text": "function updateResource($model)\n {\n }", "title": "" }, { "docid": "1d81eeba25152205b32aee461040c8af", "score": "0.61980325", "text": "function updateResource($id, $data)\n\t{\n\t\tif(empty($id)) \n throw new App_Db_Exception_Table('Resource ID is not specified');\n\t\t\n $this->validateResource($data, $id);\n\t\t$this->db_update($this->_table, $this->getDbFields($data), array('id'=>$id));\n\t}", "title": "" }, { "docid": "a0575945e98b4f0b6ff629994e5f1060", "score": "0.6160171", "text": "public function update($resourceType, $id, array $queryParams = [], $meta = null);", "title": "" }, { "docid": "19cf522850f8d1f010d9f193ff0ee265", "score": "0.6097188", "text": "public function updateResourceData($resource, HungerGames $data){\n $this->createGameResource($resource, $data);\n }", "title": "" }, { "docid": "f25a192098a47b98f8a7c2af33a1dd2b", "score": "0.60695535", "text": "function updating_resource(Model $resource, Authenticatable $user = null)\n { \n return crud_event(\\Core\\Crud\\Events\\UpdatingResource::class, $resource, $user);\n }", "title": "" }, { "docid": "17ac23b2fa28e090182571ed20ffe721", "score": "0.6047541", "text": "public function update(Request $request, $resource, $id)\n {\n $original = $this->model->find($id);\n $model = $original->update($request->all());\n Cache::flush();\n $fields = $this->getModelAttributes();\n return redirect()->route('admin.resource.show', [\n 'resource' => $this->modelName,\n 'id' => $id\n ]);\n }", "title": "" }, { "docid": "e76e30799c75f7561fa2d246f6bd2a57", "score": "0.59457475", "text": "public function applyResource(Resource $resource): void;", "title": "" }, { "docid": "eaee54943a52f02e9d836bade5ff0c75", "score": "0.5940387", "text": "public function updateStream($path, $resource, Config $config)\n {\n }", "title": "" }, { "docid": "23ff4e035f19244ecf2ecfc892af99e2", "score": "0.5933373", "text": "function updated_resource(Model $resource, Authenticatable $user = null)\n { \n return crud_event(\\Core\\Crud\\Events\\UpdatedResource::class, $resource, $user);\n }", "title": "" }, { "docid": "d9e868d7c27c54e84b68cd0b04675e55", "score": "0.5932773", "text": "function eh_update_resource($type, $resource, $params)\n\t{\n\t\t$url\t\t= eh_get_api_url().\"resources/\".$type.\"/\".$resource.\"/set\";\n\t\t$info\t\t= explode(\"\\n\", eh_fetch_data($url, $params));\n\t\tif(strpos($info[0], 'negative') !== false)\n\t\t{\n\t\t\treturn $info[0];\n\t\t}\n\t\treturn $info;\n\t}", "title": "" }, { "docid": "daedbb0f657251ba1f1dfe05df9672c1", "score": "0.5882872", "text": "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n \n // STEP 1: Update or insert this identity as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\"); \n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\", \n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords(); \n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\", \n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n } \n }", "title": "" }, { "docid": "5f4fa67168957ecd78198365cfd74bd9", "score": "0.58413416", "text": "public function update(Request $request)\n {\n try {\n $validator = Validator::make($request->all(), [\n 'name' => 'required',\n ]);\n\n if ($validator->fails()) {\n $response = [\n 'msg' => $validator->errors->all(),\n 'status' => 0,\n ];\n }\n $data = [];\n if($request->image) {\n $image = ImageUploadHelper::imageupload($request, 'image');\n $data['image'] = $image;\n $data['name'] = $request->name;\n } else {\n $data['name'] = $request->name;\n }\n $resource = Resource::where('id', $request->id)->update($data);\n \n if ($resource) {\n $response = [\n 'msg' => 'Resource Edit Successfully',\n 'status' => 1,\n ];\n } else {\n $response = [\n 'msg' => 'Oops! Something went wrong',\n 'status' => 0,\n ];\n }\n } catch (\\Exception $e) {\n $response = [\n 'msg' => $e->getMessage() . \" \" . $e->getFile() . \" \" . $e->getLine(),\n 'status' => 0,\n ];\n }\n\n return response()->json($response);\n }", "title": "" }, { "docid": "e13311a6d3d6df9928a268f0dfeef488", "score": "0.58188903", "text": "public function update(EquipoStoreRequest $request, $id)\n {\n $equipo = Equipo::find($id);\n $equipo->fill($request->all())->save();\n if($request->file('foto_equipo')){\n $path = Storage::disk('public')->put('images/equipos', $request->file('foto_equipo'));\n $equipo->fill(['foto_equipo' => asset($path)])->save();\n }\n return redirect()->route('equipos.index')->with('info', 'Equipo actualizado con éxito');\n }", "title": "" }, { "docid": "6bad782d5097f353b6d7ab6700de6bd2", "score": "0.57929045", "text": "public function putAction()\n {\n $id = $this->_getParam('id', 0);\n\n $this->view->id = $id;\n $this->view->params = $this->_request->getParams();\n $this->view->message = sprintf('Resource #%s Updated', $id);\n $this->_response->ok();\n }", "title": "" }, { "docid": "4594dc168aa13c6fef27f370ea295688", "score": "0.5791139", "text": "public function update(Request $request, $id)\n {\n $stock = Stock::findOrFail($id);\n $stock->title = $request->title;\n $stock->caption = $request->caption;\n $stock->location_id = $request->location_id;\n $stock->type = $request->type;\n if ($request->img != null) {\n\n if (file_exists(public_path('') . $stock->img)) {\n unlink(public_path('') . $stock->img);\n }\n\n $imageName = \"/uploads\" . \"/\" . time() . '.' . $request->img->extension();\n\n $request->img->move(public_path('uploads/'), $imageName);\n $stock->img = $imageName;\n }\n $stock->save();\n\n return redirect('/stock/list');\n }", "title": "" }, { "docid": "b5cccc3771870667a9ee2e74c567e04f", "score": "0.57888407", "text": "public function put($resource, $id = 0, $data = NULL) {\n $data = $this->request('PUT', SPOTIFY_API_ENDPOINT, '/' . $resource . '/' . $id . '', 'application/json', $data, array());\n return $data;\n }", "title": "" }, { "docid": "1fc7ff41b62020f266925c1d4d0429db", "score": "0.57780296", "text": "public function update()\n {\n $this->objectWriteNot(\"update\");\n }", "title": "" }, { "docid": "07bb2e794095f53c3ada145c00d6e27c", "score": "0.5771757", "text": "public function update($id)\n {\n return $this->_resourcePersistence->store($id);\n }", "title": "" }, { "docid": "b7efc8833e2707d2c41ccbb075ab62b4", "score": "0.5750833", "text": "public function updateExisting();", "title": "" }, { "docid": "eaf18f66946228a152f8b83c6b49e31e", "score": "0.5749277", "text": "public function update($id, $data) {}", "title": "" }, { "docid": "10a5238440cd234bf32137b5c2bdb8ca", "score": "0.574078", "text": "public function updateAction () {\n\t\t$this->validateHttpMethod(\"PUT\");\n\t\t\n\t}", "title": "" }, { "docid": "286908b8496df6848f6d30646fd1773f", "score": "0.5705515", "text": "public function updateStream($path, $resource, $config = [])\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "632a0e357db115573e3d55d2e9207359", "score": "0.570358", "text": "public function putAction()\n\t{\n\n\t\t\t\n\t\t$this->view->id = $id;\n\t\t$this->view->params = $this->_request->getParams();\n\t\t$this->view->message = sprintf('Resource #%s Updated', $id);\n\t\t$this->_response->ok();\n\n\t}", "title": "" }, { "docid": "8759752add8b6db67fed4d69cb0208e8", "score": "0.568281", "text": "public function update()\n\t{\n\t\tparent::update();\n\t\t$this->write();\n\t}", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5676235", "text": "public function update($data);", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5676235", "text": "public function update($data);", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5676235", "text": "public function update($data);", "title": "" }, { "docid": "14c153b0cb8091e3ce492801115cea2c", "score": "0.5675357", "text": "public function update(Request $request, $id)\n {\n $name = $request->name;\n $description = $request->description;\n $amount = $request->amount;\n $category_id = $request->category_id;\n $photo = $request->photo;\n $has_discount = $request->has_discount;\n $product = new Product();\n $product->name = $name;\n $product->description = $description;\n $product->amount = $amount;\n $product->category_id = $category_id;\n $product->has_discount = ($has_discount === \"true\" || $has_discount === \"1\") ? 1: 0;\n\n\n $product_db = Product::find($id);\n $product_db->name = $product->name;\n $product_db->description = $product->description;\n $product_db->amount = $product->amount;\n $product_db->category_id = $product->category_id;\n $product_db->has_discount = $product->has_discount;\n\n if($product_db->save()) {\n if ($request->hasFile('photo')) {\n $image = $request->file('photo');\n $fileName = time() . '.' . $image->getClientOriginalExtension();\n \n $img = \\Image::make($image->getRealPath());\n $img->resize(250, 250, function ($constraint) {\n $constraint->aspectRatio(); \n });\n \n $img->stream(); // <-- Key point\n \n //dd();\n $full_url = 'images/1/smalls'.'/'.$fileName;\n \\Storage::disk('public')->put($full_url, $img);\n\n $product_db->photos = $full_url;\n $product_db->save();\n }\n $product_db->category = $product_db->category;\n return $product_db;\n }\n }", "title": "" }, { "docid": "6b91824bf8c51c5e05fd48e2728329bf", "score": "0.5675306", "text": "public function update(Request $request, $id)\n {\n try{\n $obj = Obj::where('id',$id)->first();\n\n /* delete file request */\n if($request->get('deletefile')){\n\n if(Storage::disk('public')->exists($obj->image)){\n Storage::disk('public')->delete($obj->image);\n }\n redirect()->route($this->module.'.show',[$id]);\n }\n\n $this->authorize('update', $obj);\n /* If file is given upload and store path */\n if(isset($request->all()['file'])){\n $file = $request->all()['file'];\n $path = Storage::disk('public')->putFile('category', $request->file('file'));\n $request->merge(['image' => $path]);\n }\n\n $obj = $obj->update($request->except(['file'])); \n flash('('.$this->app.'/'.$this->module.') item is updated!')->success();\n return redirect()->route($this->module.'.show',$id);\n }\n catch (QueryException $e){\n $error_code = $e->errorInfo[1];\n if($error_code == 1062){\n flash('Some error in updating the record')->error();\n return redirect()->back()->withInput();\n }\n }\n }", "title": "" }, { "docid": "8d0a97cdf24a3e49996a055c1d6f9ee9", "score": "0.5673924", "text": "public function put($data);", "title": "" }, { "docid": "8576d995f0ad5fb05e24f4249f91de06", "score": "0.5624156", "text": "public function update() {\n $this->save();\n }", "title": "" }, { "docid": "7a0daf096da3d4426382a1e223faf321", "score": "0.56133175", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->stream($path, $resource, $config, 'update');\n }", "title": "" }, { "docid": "7a0daf096da3d4426382a1e223faf321", "score": "0.56133175", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->stream($path, $resource, $config, 'update');\n }", "title": "" }, { "docid": "61fd60c4351f42e6fbc02b50ebca8bc2", "score": "0.56085217", "text": "public function update(Request $request, $id)\n {\n $resource = Resources::where('id', $id)->first();\n $resource->name = $request->name;\n $resource->category_id = (int)$request->category_id;\n $resource->location = $request->location;\n $resource->description = $request->description;\n $resource->icon = $request->icon;\n return json_encode($resource->save());\n }", "title": "" }, { "docid": "861587caf58c3f620dbafce99fe22615", "score": "0.5604896", "text": "public function update($id, $request);", "title": "" }, { "docid": "ecb354cb7b6b47a575835c7db1ad90b5", "score": "0.5601152", "text": "public function updateStreamAsync($path, $resource, Config $config);", "title": "" }, { "docid": "096b7dba1f9fc21e9dc73bbc8b007ad4", "score": "0.5584712", "text": "abstract public function update($id, $request);", "title": "" }, { "docid": "a2a8c7ed3b85cbbe7e79548fb9edbe73", "score": "0.55815935", "text": "public function update(Request $request, $id)\n {\n $request->validate([\n 'title' => 'required',\n ]);\n $data = $request->input();\n if (($request['img'])){\n $folder = 'products/'. date('Y') . '/'. date('m');\n\n $data['img'] = $request->file('img')->store('images/'. $folder);\n\n }\n $item = Product::find($id);\n $item ->update($data);\n return redirect()->route('admin.products.index')->with('success', 'Изменения сохранены');\n }", "title": "" }, { "docid": "7aa2abed7c854f7758eb73c29122e0bf", "score": "0.5579484", "text": "public function update(StorePhotos $request, $id)\n {\n // Grab the inventory item so we can update it\n $image = Images::findOrFail($id);\n\n $image->fill($request->validated());\n \n return (new ImagesResource($image))\n ->response()\n ->setStatusCode(201);\n }", "title": "" }, { "docid": "29aad1545f3bd950877d86ff51dcbf21", "score": "0.55706763", "text": "public function update(Request $request, $id)\n {\n $registro = Producto::find($id);\n $valores = $request ->all(); //recupero todos los datos del formulario\n $img = $request -> file('imagen');\n if(!is_null($img) ){\n $imagen = $request -> file('imagen')-> store('public/imagenes'); //obtengo la imagen del input y la guardi en el storage\n $url_replace = str_replace('storage','public', $registro->imagen); //reemplazo la url para eliminar del storage\n $url_N= Storage::url($imagen); //almaceno la nueva imagen en el storage\n Storage::delete($url_replace);\n $url = Storage::url($imagen);\n $valores['imagen'] = $url;\n }\n $registro ->fill($valores);\n $registro ->save();\n return redirect('/dashBoard/productos');\n }", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.5568501", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.5568501", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.5562276", "text": "public function update($id, $data);", "title": "" }, { "docid": "fb222032c6bacfdf3f59fba2c85e8ff3", "score": "0.5558366", "text": "public function update(StoreProduct $request, $id)\n {\n $params = request()->except(['_token']);\n if ($request->hasFile('photo')) {\n $path = $request->file('photo')->store('images');\n $params['photo'] = $path;\n }\n Product::where('id', $id)\n ->update($params);\n\n return redirect()->route('admin.products.show');\n }", "title": "" }, { "docid": "1d5bf70b6f6ee925cb3f92ebbf7df49a", "score": "0.555386", "text": "public function update(Request $request, $id)\n {\n //\n $slider = SliderImage::find($id);\n if(request()->hasFile('photo')){\n Storage::disk('public')->delete('slider_image/'.$slider->slider_image);\n $image = request()->file('photo');\n $imageName = time() . '_' . $image->getClientOriginalName();\n $image->storeAs('slider_image', $imageName, 'public');\n\n $slider->slider_image = $imageName;\n $slider->updated_by = Auth::user()->name;\n $slider->save();\n toast('Slider Image Updated Successfully!','success');\n return redirect()->back();\n }\n\n }", "title": "" }, { "docid": "4c0ab51ecbeaff3788498a88d8e05dde", "score": "0.5541675", "text": "public function update($id) {\n \n }", "title": "" }, { "docid": "db6cffbe49713220724fc0e32ce7122e", "score": "0.55388093", "text": "public function update(Request $request, $id)\n {\n $this->validateData($request); //ตรวจสอบข้อมูลก่อนการแก้ไข\n Networkedstorage::find($id)->update($request->all()); //ค้นหาและแก้ไขข้อมูลในตาราง networked_storages\n return redirect('/networkedstorage')->with('success','แก้ไขข้อมูลสำเร็จแล้ว');\n }", "title": "" }, { "docid": "516873632753a11d0fca6446f9d7fead", "score": "0.5538502", "text": "public function update(Request $request, $id)\n {\n $modif=Image::find($id);\n if ($request->images== null){ \n }else{ \n Storage::delete('public/images/original/'.$modif->images);\n Storage::delete('public/images/thumbnails/'.$modif->images);\n $img=$request->images;\n $renom=time().$img->hashName();\n $img->store('/public/images/original/');\n $resized=ImageIntervention::make($img)->resize(109,108);\n $resized->save();\n Storage::put('/public/images/thumbnails/'.$renom, $resized);\n $modif->images=$renom;\n }\n\n $modif->images=$renom;\n $modif->save();\n return redirect('/insta');\n }", "title": "" }, { "docid": "5f6cc4993e197be08863357458931587", "score": "0.5535595", "text": "public function update(Request $request, int $id)\n {\n\n $request->validate($this->page_validate());\n $product = Product::findOrFail($id);\n $data = $request->all();\n $data['image'] = $product->image;\n $data = array_merge($data, $this->slug($request));\n\n if ($request->file('image'))\n {\n _file_delete($data['image']);\n $data['image'] = $this -> upload( $request , 'products' );\n }\n\n $product->update($data);\n\n return redirect(route('admin.product.index'))->with(_sessionmessage());\n }", "title": "" }, { "docid": "ab9b7d4682e0b792e27aad8d2e440b2e", "score": "0.5520878", "text": "public function update(Request $request, $id)\n {\n\n $requestData = $request->all();\n if ($request->hasFile('Imagen')) {\n\n $producto = producto::findOrFail($id);\n\n Storage::delete('public/'.$producto->Imagen);\n\n $requestData['Imagen'] = $request->file('Imagen')\n ->store('uploads', 'public');\n }\n\n $producto = producto::findOrFail($id);\n $producto->update($requestData);\n\n return redirect('productos')->with('flash_message', 'producto Actualizado!');\n }", "title": "" }, { "docid": "014b2b761d95ca9c270fcc41c92d3964", "score": "0.55106175", "text": "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'trash' => 'required',\n 'price' => 'required|integer',\n // 'image' => 'required'\n ]);\n\n if ($validator->fails()) {\n return redirect('admin/trash/' . $id . '/edit')\n ->withErrors($validator);\n } else {\n $trash = Trash::find($id);\n\n $trash->trash = request('trash');\n $trash->price = request('price');\n\n if (!$request->file('image')) {\n $image = request('imagePath');\n } else {\n $image = base64_encode(file_get_contents(request('image')));\n $client = new Client();\n $res = $client->request('POST', 'https://freeimage.host/api/1/upload', [\n 'form_params' => [\n 'key' => '6d207e02198a847aa98d0a2a901485a5',\n 'action' => 'upload',\n 'source' => $image,\n 'format' => 'json'\n ]\n ]);\n\n $get = $res->getBody()->getContents();\n $data = json_decode($get);\n $trash->image = $data->image->display_url;\n }\n\n $trash->save();\n alert::success('message', 'Trash Updated');\n return redirect('admin/trash');\n }\n }", "title": "" }, { "docid": "84d0339c9496a4a023b54955b36002eb", "score": "0.55093104", "text": "public function updateSingle($request, $response, $args);", "title": "" }, { "docid": "a0c8aa8d43f7dbc67d52effeb5ceff30", "score": "0.5501085", "text": "public function update(Request $request, Producto $producto)\n {/*\n $producto->update($request->only(['nombreProducto', 'precio']));\n\n*/\n $producto->nombreProducto = $request->nombreProducto ?? $producto->nombreProducto;\n $producto->stock = $request->stock ?? $producto->stock;\n $producto->url = $request->url ?? $producto->url;\n $producto->precio = $request->precio ?? $producto->precio;\n $producto->save();\n return new ProductoResource($producto);\n }", "title": "" }, { "docid": "013212daa4ecab2fd83de19a4cffe83e", "score": "0.5500338", "text": "public function saveTransactionResource($resource)\n\t{\n\t\t$path = $this->getTransactionResourcePath($resource->getHash());\n\t\t$this->filesystem()->put($path, serialize($resource));\n\t}", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.5497986", "text": "public function update($id);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.5497986", "text": "public function update($id);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.5497986", "text": "public function update($id);", "title": "" }, { "docid": "9eefb21d2c4fee1ef44fdb5073e1ab9d", "score": "0.5497755", "text": "public function update(Request $request, $id)\n {\n $slider=Headerslider::find($id);\n $validator=$request->validate([\n 'image'=>'required|mimes:png,jpg|max:1024'\n ]);\n if($validator==false)\n {\n return redirect()->back();\n }\n if(File::exists(public_path('/storage/images/'.$slider->image)))\n {\n File::delete(public_path('/storage/images/'.$slider->image));\n }\n $filename=rand().'.'.$request->image->extension();\n $request->image->storeAs('public/images/sliders',$filename);\n $request->image=$filename;\n $slider->update([\n 'image'=>$request->image\n ]);\n return redirect('/admin-user/slider');\n }", "title": "" }, { "docid": "3df93bb518efe3cbaf727ca9ad9328a0", "score": "0.5491892", "text": "public function testUpdateAProduct()\n {\n $prod = $this->generateProducts()->first();\n $this->seeInDatabase('products', ['name' => $prod->name]);\n\n $params = [\n 'name' => 'Google Pixel XL',\n 'description' => 'The best phone on the market',\n 'price' => 699.99,\n ];\n\n $response = $this->json('PUT', \"/products/{$prod->id}\", $params);\n $this->seeInDatabase('products', [\n 'name' => $params['name'],\n 'description' => $params['description'],\n 'price' => $params['price'],\n ]);\n }", "title": "" }, { "docid": "1e04073b58a998da6e0122e24cd1be12", "score": "0.54886335", "text": "public function update(Request $request, $id)\n {\n\n\n $datostrabajos=request()->except(['_token','_method']);\n\n\n if ($request->hasFile('Foto')) {\n\n\n$trabajo= Trabajos::findOrFail($id);\n\nStorage::delete('public/'. $trabajo->Foto);\n\n$datostrabajos['Foto']=$request->file('Foto')->store('uploads','public');\n\n\n }\n\n Trabajos::where('id','=',$id)->update($datostrabajos);\n\n //$trabajo= Trabajos::findOrFail($id);\n\n //return view('trabajos.edit',compact('trabajo'));\n\nreturn redirect('trabajos')->with('Mensaje','Trabajo modificado con éxito');\n }", "title": "" }, { "docid": "abf7a5c8e18b23e0935566a6ec214c56", "score": "0.5487076", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product -> name = $request -> name;\n $product -> price = $request -> price;\n $product -> description = $request -> description;\n\n $product -> update();\n\n Session::put('update', 'The product has been updated');\n\n return redirect('/resource');\n }", "title": "" }, { "docid": "1e8339e3233595b2c1df533b2987741b", "score": "0.5481764", "text": "public function update( Request $request, $id );", "title": "" }, { "docid": "a338906322949bb1be1e0e7a003a46e3", "score": "0.54793674", "text": "public function update(ProductUpdateRequest $request, $id)\n {\n\n $product=Product::findOrFail($id);\n\n $data=$request->all();\n $data['admin_vendor_id']=Auth::user()->id;\n $data['is_featured']=$request->input('is_featured',0);\n $size=$request->input('size');\n\n if ($request->hasFile('file')) {\n $uploadedFile = $request->file('file')->store('backend/product');\n $data['photo'] = $uploadedFile;\n }\n\n $status=$product->fill($data)->save();\n if($status){\n request()->session()->flash('success','Product Successfully updated');\n }\n else{\n request()->session()->flash('error','Please try again!!');\n }\n return redirect()->route('product.index');\n }", "title": "" }, { "docid": "8a8a5b40d30a661682ea39e7d25ae1ed", "score": "0.5471957", "text": "public function put()\n {\n /** @var \\Tacit\\Model\\Persistent $modelClass */\n $modelClass = static::$modelClass;\n\n $criteria = $this->criteria(func_get_args());\n\n /** @var \\Tacit\\Model\\Persistent $item */\n $item = $modelClass::findOne($criteria, [], $this->app->container->get('repository'));\n\n if (null === $item) {\n throw new NotFoundException($this);\n }\n\n try {\n /** @var \\Tacit\\Model\\Persistent $newItem */\n $newItem = new $modelClass();\n $data = array_replace_recursive(\n $newItem->toArray(),\n $this->app->request->post(null, [])\n );\n \n $data = $this->putBeforeSet($data);\n \n $item->fromArray($data, Collection::getMask($item));\n $item->save();\n } catch (OperationalException $e) {\n $e->next($this);\n } catch (ModelValidationException $e) {\n throw new UnacceptableEntityException($this, 'Resource validation failed', $e->getMessage(), $e->getMessages(), $e);\n } catch (Exception $e) {\n throw new ServerErrorException($this, 'Error updating resource', $e->getMessage(), null, $e);\n }\n\n $this->respondWithItem($item, new static::$transformer());\n }", "title": "" }, { "docid": "c71ca30825c84517c03b65e7df4230aa", "score": "0.5467961", "text": "function update($record)\n { \n ////DEBUG\n return; \n ////END DEBUG \n\t\t$this->rest->initialize(array('server' => REST_SERVER));\n $this->rest->option(CURLOPT_PORT, REST_PORT);\n $retrieved = $this->rest->put('/SuppliesAPI/item/id' . $record['id'], $record);\n }", "title": "" }, { "docid": "c0bda952d3e806da6a09fbad44c10c87", "score": "0.54666626", "text": "public function edit(storage $storage)\n {\n //\n }", "title": "" }, { "docid": "90755391b8e7c7b31e24f046029b9f4b", "score": "0.5465489", "text": "public function update($data) {\n\n }", "title": "" }, { "docid": "aa1f77aee84ae3a416c76923d1a56559", "score": "0.5460719", "text": "public function update($object)\n {\n }", "title": "" }, { "docid": "9043981d5738f7df4a3238c2fe116872", "score": "0.54606944", "text": "public function update($id,Request $request)\n {\n $file = $request->file('file');\n $extension = $file->getClientOriginalExtension();\n Storage::disk('local')->put($file->getFilename().'.'.$extension, File::get($file));\n $entry = Fileentry::find($id);\n $entry->original_mime_type = $file->getClientMimeType();\n $entry->original_filename = $file->getClientOriginalName();\n $entry->filename = $file->getFilename().'.'.$extension;\n\n $entry->save();\n }", "title": "" }, { "docid": "b249f46520a6b9be14d03dabf94d1d39", "score": "0.54552335", "text": "public function update(Request $request, $id)\n {\n //\n // dd($request);\n $user = User::find($id);\n $user->fill($request->all());\n if($request->hasFile('image')){\n $path = $request->file('image')->store('user');\n $file = Storage::delete($user->image);\n $user->image = $path;\n // dd(\"yey\",$user);\n }\n // dd(\"stop\",$user);\n $user->update();\n\n return redirect()->route('users.index');\n }", "title": "" }, { "docid": "68958d739424a9622fdca778a3822d3a", "score": "0.5448328", "text": "public function update(StoreProduct $request, Product $product)\n {\n if($request->has('thumbnail')) {\n $name = basename($request->thumbnail->getClientOriginalName());\n $name = $name;\n $path = $request->thumbnail->move('productimages/', $name, 'public');\n }\n\n $product->name = $request->product_name;\n $product->price = $request->price;\n $product->desc = $request->desc;\n $product->quantity = $request->qty;\n $product->discount = $request->discount;\n $product->tax = $request->tax;\n $product->category_id = $request->category_id[0];\n $product->brand_id = $request->select_pharmacy[0];\n\n $image = ProductImage::where('image_id', '=', $product->id)->first();\n $image->image_path = $path;\n \n $product->save();\n $image->save();\n\n Session::flash('success', 'Product has been successfully updated!');\n\n return redirect()->route('admin.products.create', compact('product'));\n }", "title": "" }, { "docid": "b2886e9f73a0cf99ca3dd4d1756441e5", "score": "0.54479766", "text": "public function set(ResourceInterface $resource);", "title": "" }, { "docid": "9af94672d7f031c4cda0a455d6a11422", "score": "0.54418725", "text": "public function update(Request $request, $id)\n {\n $product = Product::findOrFail($id);\n $product->title = $request->title;\n $product->sku = $this->generateSKU();\n// if($request->input('slug')){\n// $product->slug = make_slug($request->input('slug'));\n// }else{\n// $product->slug = make_slug($request->input('title'));\n// }\n $product->slug = $this->makeSlug($request->slug);\n $product->status = $request->status;\n $product->price = $request->price;\n $product->discount_price = $request->discount_price;\n $product->description = $request->description;\n\n $product->meta_desc = $request->meta_desc;\n $product->meta_title = $request->meta_title;\n $product->meta_keywords = $request->meta_keywords;\n $product->user_id = Auth::id();\n\n $product->save();\n\n $photos = explode(',', $request->input('photo_id')[0]);\n\n\n $product->photos()->sync($photos);\n\n Session::flash('success', 'successfuly Edit product');\n return redirect('/administrator/products');\n\n }", "title": "" }, { "docid": "cb8621b723dc6fb774a0ae33c7eda6ca", "score": "0.54417723", "text": "public function update(StoreProductRequest $request, int $id)\n {\n $input = $request->only('title', 'description', 'price', 'category_id');\n Auth::user()->company->products()->find($id)->update($input);\n if ($request->hasFile('media')) {\n $files = $request->file('media');\n $this->productRepo->addMedia($files, $id);\n }\n return redirect(route('showMyProducts'));\n }", "title": "" }, { "docid": "98ab15cbe0428e7a24c838d3819e2bf9", "score": "0.54390645", "text": "public function update($id, Request $request, Product $product)\n {\n \t$productupdate = Product::find($id);\n\n if($request->hasFile('photo'))\n {\n\n @unlink(public_path().'/upload/product'.$productupdate->photo);\n \n $file = $request->file('photo');\n $path = public_path().'/upload/product';\n $filename = time().'.'.$file->getClientOriginalExtension();\n }\n if($file->move($path, $filename))\n {\n $productupdate->photo = $filename;\n }\n\n \t$productupdate->update($request->all());\n \treturn back();\n }", "title": "" }, { "docid": "fb30184e0b309716563a37352db2582d", "score": "0.54377544", "text": "public function put($data)\n {\n }", "title": "" }, { "docid": "fb30184e0b309716563a37352db2582d", "score": "0.54377544", "text": "public function put($data)\n {\n }", "title": "" }, { "docid": "c955211aedc76478d1650fdab80c5cff", "score": "0.5429076", "text": "public function updatedProductById(Request $request, $id);", "title": "" }, { "docid": "5bafa084b714ad3beb62cc8123d05421", "score": "0.5427777", "text": "public function update(UpdateProductRequest $request, $id)\n {\n\n $data = Product::findOrFail($id);\n $data->update([\n 'name' => serialize($request->name),\n 'price' => $request->price,\n 'category_id' => $request->category_id,\n 'currency_id' => $request->currency_id,\n 'image' => Helper::UpdateImage($request, 'uploads/category/', 'image', $data->image)\n ]);\nif ($data)\n Alert::success(trans('backend.updateFash'))->persistent(trans('backend.close2'));\n\n return redirect()->route('product.index');\n }", "title": "" }, { "docid": "628f6fb199b5a72e6e84a33d9c6f9a5e", "score": "0.54259896", "text": "public function update(Request $request, $id)\n {\n $request->validate([\n 'picture' => 'image|sometimes|max:1999'\n\n ]);\n\n if($request->hasFile('picture')){\n // Get filename with the extension\n $filenameWithExt = $request->file('picture')->getClientOriginalName();\n // Get just filename\n $filename = pathinfo($filenameWithExt, PATHINFO_FILENAME);\n // Get just ext\n $extension = $request->file('picture')->getClientOriginalExtension();\n // Filename to store\n $fileNameToStore= $filename.'_'.time().'.'.$extension;\n // Upload Image\n $path = $request->file('picture')->storeAs('public/picture', $fileNameToStore);\n } else {\n $fileNameToStore = 'noimage.jpg';\n }\n\n $product= Product::find($id);\n $product->product_name = $request->product_name;\n $product->supplier_id = $request->supplier_id;\n $product->cat_id = $request->cat_id;\n $product->status = $request->status;\n $product->user_id = 1;\n $product->picture = $fileNameToStore;\n $product->alert_quantity = $request->alert_quantity;\n $product->sale_price = $request->sale_price;\n $product->purches_price = $request->purches_price;\n $product->profit = $request->profit;\n\n\n $product->save();\n\n return redirect('/product');\n }", "title": "" }, { "docid": "d3fa7e7b7a7e3977da33f1e0093d5f5b", "score": "0.5425142", "text": "public function resourceHasBeenUpdated();", "title": "" }, { "docid": "f078dcf8f707bde762a227c61968e661", "score": "0.5424023", "text": "public function update($id, array $data){\n $product = Product::find($id);\n if(!empty($data['image'])){\n $titleShort = Str::slug(substr($data['title'], 0, 20));\n $data['image'] = UploadHelper::update('image', $data['image'], $titleShort.'-'. time(), 'images/products', $product->image); \n }else{\n $data['image'] = $product->image;\n }\n if (is_null($product))\n return null;\n\n $product->update($data);\n return $this->getByID($product->id);\n }", "title": "" }, { "docid": "06b935ea46fe7f6ab5cf585a11f5279e", "score": "0.5423811", "text": "public function update(ValidateProductInformation $request, Product $product)\n {\n $data = $request->all();\n $data['slug'] = str_slug($data['name']);\n $path = $product->image;\n if($request->file('image')!=null){\n $path = $request->file('image')->store('public/products');\n }\n\n $data['image'] = $path;\n $product->update($data);\n return redirect('/products');\n }", "title": "" }, { "docid": "a8a0978e247663271949812bb1f0e921", "score": "0.5420669", "text": "public function update(Request $request, $id)\n {\n $id = $request->id;\n if($request->hasFile('image')){\n Product::where('id',$id)->update([\n 'title'=>$request->title,\n 'textarea'=>$request->textarea,\n 'quantity'=>$request->quantity,\n 'price' =>$request->price,\n 'offer_price'=>$request->offer_price,\n 'status'=>$request->status,\n 'created_at' => Carbon::now(),\n ]);\n $path = $request->file('image')->store('imagestore');\n Product::find($id)->update([\n 'image'=> $path\n ]);\n return redirect()->route('product.index')->with('success',' Update Succesfully');\n }\n else{\n Product::where('id',$id)->update([\n 'title'=>$request->title,\n 'textarea'=>$request->textarea,\n 'quantity'=>$request->quantity,\n 'price' =>$request->price,\n 'offer_price'=>$request->offer_price,\n 'status'=>$request->status,\n 'created_at' => Carbon::now(),\n ]);\n return redirect()->route('product.index')->with('success','Update Succesfully');\n } \n\n }", "title": "" }, { "docid": "66743027520aa87b03d09a35564488ce", "score": "0.54197395", "text": "public function update(Request $request, $id)\n {\n $products = Product::find($id);\n\n $products->name = $request->name;\n $products->description = $request->description;\n $products->price = $request->price;\n $products->quantity = $request->quantity;\n\n $products->cat_id = $request->cat_id;\n if($request->hasFile('image')){\n\n $image = $request->file('image');\n $filename = time() . '.' . $image->getClientOriginalExtension();\n $location = public_path('uploads/images/' . $filename);\n Image::make($image)->save($location);\n\n $oldfilename = $products->image;\n //update the db\n $products->image = $filename;\n //delete the old image \n Storage::delete($oldfilename);\n }\n $products->save();\n\n if (isset($request->tags)) {\n $products->tags()->sync($request->tags);\n } else {\n $products->tags()->sync(array());\n }\n \n Session::flash('success', 'This post was successfully saved.');\n return redirect::route('product',$products->id);\n\n }", "title": "" }, { "docid": "97031ad94f3ce077f62b44e5b800499e", "score": "0.5409767", "text": "public function update(Request $request, $id)\n {\n $encrypt_decrypt = encrypt_decrypt('decrypt',$id);\n if($encrypt_decrypt === false){\n abort(403);\n }else{\n $this->validate($request, [\n 'name' => 'required',\n 'detail' => 'required',\n 'price' => 'required|numeric',\n 'in_stock' => 'required|numeric',\n ]);\n\n\n $product = Product::find($encrypt_decrypt);\n $product->name = $request->input('name');\n $product->detail = $request->input('detail');\n $product->price = $request->input('price');\n $product->in_stock = $request->input('in_stock');\n if($request->hasFile('file')){\n @unlink($product->photo);\n $filename = time().'.'.$request->file('file')->getClientOriginalExtension();\n $product->photo = 'public/img/product/new-product/' . $filename;\n $request->file('file')->move(public_path('public/img/product/new-product'), $filename);\n }\n $product->save();\n \n return redirect()->route('products.index')\n ->with('success','product updated successfully');\n }\n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5405712", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5405712", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5405712", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5405712", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5405712", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5405712", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5405712", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5405712", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5405712", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5405712", "text": "public function update($id)\n {\n \n }", "title": "" } ]
97a74a7c2810d0cc9724a9e216f57150
Handle an incoming request.
[ { "docid": "7bcfd422330daff3308cab0b914f3d4e", "score": "0.0", "text": "public function handle($request, Closure $next)\n {\n\t\tif($request->user()->hasRole('Super Admin') || ($request->user()->admin == 1 && $request->user()->get_permission_for_this_page_link('tickets.create'))){\n\t\t\treturn $next($request);\n\t\t}\n\t\tabort(403,'Not Authorized');\n\n \n }", "title": "" } ]
[ { "docid": "e999a8977676b42fb4dcf9f93d8e3d7b", "score": "0.81929845", "text": "abstract public function handleRequest();", "title": "" }, { "docid": "a0583c2455a7c431c0ab0c2f58a33f8f", "score": "0.8147294", "text": "public function handleRequest();", "title": "" }, { "docid": "8e88e687cee7691fe7ef10b35259e0d3", "score": "0.7912899", "text": "public function handle($request);", "title": "" }, { "docid": "be007838a1a829df6d4182da35bc5777", "score": "0.78047335", "text": "function handleRequest();", "title": "" }, { "docid": "e99b331fa927679b536422403a669c56", "score": "0.7783401", "text": "public function handleRequest(): void\n {\n php_sapi_name() === 'cli' ? $this->cliRequest() : $this->webRequest();\n }", "title": "" }, { "docid": "ddf40f51f454f0028da4b929484f8f7f", "score": "0.7688898", "text": "abstract protected function handle_request( \\Aura\\Router\\Route $route );", "title": "" }, { "docid": "f7982700c787270307fd9e750f48d054", "score": "0.74936295", "text": "public function handle($request)\n {\n }", "title": "" }, { "docid": "5c5edfda3d49679cda7f33444b93f379", "score": "0.74842393", "text": "public function actionHandleRequest()\n {\n if (craft()->request->isPostRequest) {\n $this->actionHandleWebmention();\n } else\n if (craft()->request->isGetRequest) {\n craft()->userSession->setError(Craft::t(\"\"));\n craft()->userSession->setNotice(Craft::t(\"\"));\n $this->renderEndpoint();\n }\n }", "title": "" }, { "docid": "a7d55b9e09264d636982afb3b83478a5", "score": "0.72912866", "text": "public function handle(): void\n {\n if (!($this->request instanceof Request) || !($this->response instanceof Response)) {\n return;\n }\n\n try {\n $this->createRequestLogEntry();\n } catch (Throwable $error) {\n $this->logger->error($error->getMessage());\n }\n }", "title": "" }, { "docid": "b2349320d89df0337d29ae62b3bdf399", "score": "0.72269356", "text": "public function handleRequest()\n {\n echo 42;\n }", "title": "" }, { "docid": "cd88dfaf2e7f2d6598cfbd05ef01b0f7", "score": "0.71932566", "text": "public function handleRequest()\n {\n // Create the request very early so the ResourceManagement has a chance to grab it:\n $this->httpRequest = ServerRequest::fromGlobals();\n\n $this->boot();\n $this->resolveDependencies();\n\n $this->middlewaresChain->onStep(function (ServerRequestInterface $request) {\n $this->httpRequest = $request;\n });\n $this->httpResponse = $this->middlewaresChain->handle($this->httpRequest);\n\n $this->sendResponse($this->httpResponse);\n $this->bootstrap->shutdown(Bootstrap::RUNLEVEL_RUNTIME);\n $this->exit->__invoke();\n }", "title": "" }, { "docid": "33e80f93d9a76532e14fc11aa548f8f5", "score": "0.71808434", "text": "public function handle(ServerRequestInterface $request);", "title": "" }, { "docid": "0d3746093fcc325571c97cb27eac1584", "score": "0.7119473", "text": "public function handleRequest()\n {\n $urlData = $this->getUrlData();\n// diebug($urlData);\n // Set the Controller.\n $this->controller = $urlData['controller'] ? ucfirst($urlData['controller'] . 'Controller') : $this->controller;\n\n // Set the Method.\n $this->method = $urlData['method'] ?: $this->method;\n\n // Set the ID.\n $this->id = $urlData['id'] ?: $this->id;\n\n // Set the Plugin if requested.\n $this->plugin = $urlData['plugin'] ? ucfirst($urlData['plugin']) : null;\n\n // Set paths for plugin if exists.\n if (!empty($this->plugin)) {\n $this->setPluginPaths($this->plugin);\n }\n\n // Initialize Controller.\n $this->controller = $this->controllerPath . $this->controller;\n $this->controller = new $this->controller();\n\n // Set parameters to either the array values or an empty array.\n $this->params = !empty($urlData['params']) ? unserialize($urlData['params']) : $this->params;\n\n // Call the chosen method on the chosen controller, passing\n // in the parameters array (or empty array if above was false).\n call_user_func_array(array($this->controller, $this->method), array($this->id, $this->params));\n }", "title": "" }, { "docid": "336a0f247375e273089d2824ef517924", "score": "0.70878834", "text": "protected function handleRequest() {\n\t\t$action = $this->getAction();\n\t\tif (\n\t\t\tempty($action)\n\t\t\t|| !in_array($action, $this->availableActions)\n\t\t\t// @TODO: papa\n\t\t\t// || $action == 'DummyDelete'\n\t\t) {\n\t\t\t$this->errorMessageContainer = new CoreFormValidationMessageContainer();\n\t\t\t$this->errorMessageContainer->addMessage('invalidAction');\n\t\t}\n\t\telse {\n\t\t\t$this->runRequestHandler();\n\t\t\tif (\n\t\t\t\tempty($this->errorMessageContainer)\n\t\t\t\t|| !$this->errorMessageContainer->isAnyErrorMessage()\n\t\t\t) {\n\t\t\t\t$this->logAction($action);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e7cac5828d5e9b53c0ea1ae01732e463", "score": "0.7082263", "text": "public function handleRequest()\n {\n $op = isset($_GET['op'])?$_GET['op']:NULL;\n try\n {\n if(!$op || $op == 'list')\n {\n $this->listUsers();\n } elseif($op == 'new')\n {\n $this->saveUser();\n } elseif($op == 'edit')\n {\n $this->editUser();\n } elseif($op == 'delete')\n {\n $this->deleteUser();\n } elseif($op == 'show')\n {\n $this->showUser();\n } else\n {\n $this->showError(\"Page not found\", \"Page for operation \".$op.\" was not found!\");\n }\n } catch (Exception $e)\n {\n $this->showError(\"Application error\", $e->getMessage());\n }\n }", "title": "" }, { "docid": "a0eecc9b8203232354b70465d22835bb", "score": "0.6996957", "text": "public function handleRequest() {\n\t\t\n\t\t\n\t\t// Adding new item in process\n\t\t$action = $this->getParam('action');\n\t\tif (!is_null($action)) {\n\t\t\tswitch ($action) {\n\t\t\t\tcase 'addmovie':\n\t\t\t\t\t$this->doAddMovie();\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 'addadultmovie':\n\t\t\t\t\t$this->doAddAdultMovie();\n\t\t\t\t\tbreak;\n\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Fetch in process\n\t\t$source = $this->getParam('source');\n\t\tif (!is_null($source)) {\n\t\t\n\t\t\tswitch ($source) {\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Handle request from the fetch classes\n\t\t\t\t */\n\t\t\t\tcase 'webfetch':\n\t\t\t\t\t$searchTitle = $this->getParam('searchTitle',true);\n\t\t\t\t\t$searchSite = $this->getParam('fetchsite',true);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tif ((!is_null($searchTitle)) && (!is_null($searchSite))) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Check if search string is an item ID\n\t\t\t\t\t\tif (!is_null($this->getParam('searchIsId',true))) {\n\t\t\t\t\t\t\t$this->doFetchItem($searchSite, $searchTitle);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Show the search results\n\t\t\t\t\t\t\t$this->doFetchSiteResults($searchSite, $searchTitle);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Show the selected fetched item\n\t\t\t\t\t\t$site = $this->getParam('site');\n\t\t\t\t\t\t$itemId = $this->getParam('fid');\n\t\t\t\t\t\t$this->doFetchItem($site, $itemId);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tcase 'xml':\n\t\t\t\t\t\n\t\t\t\t\tif (!is_null($this->getParam('xmlCancel',true))) {\n\t\t\t\t\t\t$this->doXmlCancel();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$this->doXmlImport();\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\t\n\t}", "title": "" }, { "docid": "e5d6336ca794a975c9b073e8013dfb50", "score": "0.69617707", "text": "public function requestHandler()\n\t{\n\t\t$this->library('common');\n\t\t$this->common->getParams();\n\t\t$sMethod = ($this->common->getParam('req') != \"\" ) ? $this->common->getParam('req') : \"\";\n\t\t$this->$sMethod();\n\t}", "title": "" }, { "docid": "385346d8bfd3b78071c06534f37b5af8", "score": "0.69452083", "text": "public function handleRequest($request)\n {\n $this->algorithm->getHost($this->hostInstances)->handleRequest($request);\n }", "title": "" }, { "docid": "353955e61e34044b19922526cf693923", "score": "0.6940116", "text": "public function handleRequest() {\n\t\t\n\t\t// Check for user in session\n\t\tif ( !isset($_SESSION['user']) ) {\n\t\t\t$this->redirectTo(\"login\", $_REQUEST);\n\t\t} \n\t}", "title": "" }, { "docid": "d793c313365a37861d9a502f17b919fb", "score": "0.6834916", "text": "public function handle_requests() : void\n\t{\n\t\t/* middleware on the way in - request */\n\t\t$this->_request = ci('router')->handle_requests($this->_request);\n\t}", "title": "" }, { "docid": "bdd2b412103d8b82858e26f0573a46a0", "score": "0.6822616", "text": "public function handle(Request $request = null, $type = self::MASTER_REQUEST, $raw = false);", "title": "" }, { "docid": "cdf5b3a9a2d47212d242839ec90d47a0", "score": "0.6821514", "text": "public function handle(Request $request = null)\n {\n try {\n if (!$request) {\n $request = new Request();\n }\n\n $this->_handleRequest($request);\n\n } catch (\\Exception $e) {\n $this->_handleException($e);\n }\n }", "title": "" }, { "docid": "442e17f50705b2aa6f1e7c3b9a1fa541", "score": "0.67979586", "text": "public function process(HttpRequest $request, callable $handler);", "title": "" }, { "docid": "a64bba9d2b169f42116cfbb1484a9c87", "score": "0.67969805", "text": "public function handle(Request $request): Response;", "title": "" }, { "docid": "cc0949b3443d7d119b23c788bc33f6dd", "score": "0.67911977", "text": "function route($request) {\n\t\t// Ensure slim library is available\n\t\trequire_once('lib/pkp/lib/vendor/autoload.php');\n\n\t\t$sourceFile = sprintf('api/%s/%s/index.php', $this->getVersion(), $this->getEntity());\n\n\t\tif (!file_exists($sourceFile)) {\n\t\t\t$dispatcher = $this->getDispatcher();\n\t\t\t$dispatcher->handle404();\n\t\t}\n\n\t\tif (!defined('SESSION_DISABLE_INIT')) {\n\t\t\t// Initialize session\n\t\t\tSessionManager::getManager();\n\t\t}\n\n\t\t$this->_handler = require ('./'.$sourceFile);\n\t\t$this->_handler->getApp()->run();\n\t}", "title": "" }, { "docid": "bbb88cf9e4265e78aaa072506de81b3e", "score": "0.6771083", "text": "public function handleRequest() {\r\n // Ask the RequestController to get requested data.\r\n\r\n \ttry {\t\r\n\t $requestController = new RequestController();\r\n\t $response = $requestController->controlThatRequest();\r\n\t\r\n\t if (empty($response)) {\r\n\t \tthrow new InvalidArgumentException(\"Invalid input url, or the request server is down\"); \r\n\t }\r\n\t \r\n } catch (Exception $e) {\r\n \t$response = json_encode(array(\"error\" => \"{$e->getMessage()}\", \"trace\" => \"{$e->getTraceAsString()}\"));\r\n }\r\n \r\n return $response;\r\n }", "title": "" }, { "docid": "784101ef2e4bbd42d7498bee82e268fd", "score": "0.67644745", "text": "public function requestHandle() {\n\t\t$config = new ConfigService();\n\n\t\ttry {\n\t\t\t$this->handle($config);\n\t\t} catch(\\Exception $e) {\n\t\t\theader('HTTP/1.1 500 Internal Server Error');\n\t\t\theader('Content-Type: text/plain');\n\t\t\tif($config && $config->get('debug')) {\n\t\t\t\techo 'An internal error occured: '.get_class($e).PHP_EOL.PHP_EOL;\n\t\t\t\tif($e->getMessage()) {\n\t\t\t\t\techo 'Message: '.$e->getMessage().PHP_EOL.PHP_EOL;\n\t\t\t\t}\n\t\t\t\techo 'Stack trace:'.PHP_EOL.$e->getTraceAsString().PHP_EOL.PHP_EOL;\n\t\t\t\techo 'Lorry platform in debug mode.';\n\t\t\t} else {\n\t\t\t\techo 'An internal error occured.'.PHP_EOL;\n\t\t\t\techo 'We have been notified and will be looking into this.';\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "53625dc9df3adc54e54d0cd4924e702f", "score": "0.6745518", "text": "public function handle ()\n\t{\n\t\tif ($this->requireAuthentication) {\n\t\t\t$authenticateResponse = $this->verifyAuthentication();\n\t\t\tif ($authenticateResponse instanceof Response) {\n\t\t\t\t$this->respond($response);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t$request_method = $_SERVER['REQUEST_METHOD'];\n\n\t\t$body = [\n\t\t\t'data' => NULL,\n\t\t\t'files' => []\n\t\t];\n\t\t$queries = [];\n\t\t$parameters = [];\n\n\t\t//Get body data and files only from requests with body\n\t\tif($request_method == 'POST' OR $request_method == 'PUT'){\n\t\t\t$body = $this->parseBody();\n\t\t}\n\n\t\tif (isset($_GET)) {\n\t\t\t$queries = $_GET;\n\t\t}\n\t\t\n\t\tif (isset($this->callbacks['before'])) {\n\t\t\t$this->callbacks['before']($queries, $body['data'], $body['files']);\n\t\t}\n\n\t\tswitch ($request_method) {\n\t\t\tcase 'POST':\n\t\t\t\t$response = $this->callbacks['post']($queries, $body['data'], $body['files']);\n\t\t\t\tbreak;\n\n\t\t\tcase 'GET':\n\t\t\t\t$response = $this->callbacks['get']($queries);\n\t\t\t\tbreak;\n\n\t\t\tcase 'PUT':\n\t\t\t\t$response = $this->callbacks['put']($queries, $body['data'], $body['files']);\n\t\t\t\tbreak;\n\n\t\t\tcase 'DELETE':\n\t\t\t\t$response = $this->callbacks['delete']($queries);\n\t\t\t\tbreak;\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\tdefault:\n\t\t\t\t//Not supported\n\t\t\t\t$response = new Response();\n\t\t\t\t$response->setStatus(501, 'Not Implemented');\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif (isset($this->callbacks['after'])) {\n\t\t\t$this->callbacks['after']($queries, $body['data'], $body['files']);\n\t\t}\n\n\t\t$this->respond($response);\n\t}", "title": "" }, { "docid": "62cba941775f3a952420b79f6f9c051f", "score": "0.67223036", "text": "function handleRequest() {\n switch ($_SERVER['REQUEST_METHOD']) {\n case \"POST\":\n if(isset($_POST) && isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {\n $this->uploadImage($_FILES['image_file']);\n }\n break;\n case \"DELETE\":\n if (isset($_GET['id'])) {\n $id = $_GET['id'];\n settype($id, \"integer\");\n $this->delete($id);\n }\n break;\n }\n }", "title": "" }, { "docid": "4419c8719651b11678c604cf295a341d", "score": "0.671933", "text": "public function processInbound($path, Request $request);", "title": "" }, { "docid": "5a2c7ff69ffc488e0823fc85efe5cb49", "score": "0.6715765", "text": "protected function dispatch_request() {\n\t\t$path = $this->request->url->get( PHP_URL_PATH );\n\t\t$route = $this->router->match( $path, $this->request->server->get() );\n\t\tif ( ! $route ) {\n\t\t\tthrow new NotFoundException( $path );\n\t\t}\n\n\t\t$this->handle_request( $route );\n\t}", "title": "" }, { "docid": "d6a358ae11898f446c6939e352011cd6", "score": "0.67106014", "text": "public function handleRequest()\n {\n $this->loadErrorHandler();\n // If enabled, send the X-Powered-By header to identify this site as running MODX, per discussion in #12882\n if ($this->modx->getOption('send_poweredby_header', null, true)) {\n $version = $this->modx->getVersionData();\n header(\"X-Powered-By: MODX {$version['code_name']}\");\n }\n $this->sanitizeRequest();\n $this->modx->invokeEvent('OnHandleRequest');\n if (!$this->modx->checkSiteStatus()) {\n header($_SERVER['SERVER_PROTOCOL'] . ' 503 Service Unavailable');\n if (!$this->modx->resourceIdentifier = $this->modx->getOption('site_unavailable_page', null, 1)) {\n $this->modx->resource = $this->modx->newObject('modDocument');\n $this->modx->resource->template = 0;\n $this->modx->resource->content = $this->modx->getOption('site_unavailable_message');\n $this->modx->resourceIdentifier = 0;\n }\n $this->getIdRequestHandler();\n } else {\n $this->checkPublishStatus();\n $this->modx->resourceIdentifier = $this->handler->getResourceIdentifier();\n }\n\n $this->modx->beforeRequest();\n $this->modx->invokeEvent(\"OnWebPageInit\");\n\n if (!is_object($this->modx->resource) && !($this->modx->resource = $this->handler->getResource($this->modx->resourceIdentifier))) {\n\n $this->modx->sendErrorPage();\n }\n\n return $this->prepareResponse();\n }", "title": "" }, { "docid": "6cf6bd138c52a3150abd202999c391f9", "score": "0.6645277", "text": "public function run()\n {\n // if($this->invalidRequest($this->request)){\n // $this->dispatch405();\n // }\n\n # URI Not Exist : 404\n if (is_null($this->current_route)) {\n $this->dispatch404();\n }\n\n $this->dispatch($this->current_route);\n }", "title": "" }, { "docid": "7056cc04893b97b27fc90a6f4a2a8673", "score": "0.66304815", "text": "protected function handle_request(){\n global $wp;\n $connect = $wp->query_vars['connect'];\n\n if ($connect == 'hotmart') {\n $act_response = HotmembersConnectHotmart::act($_POST);\n $this->send_response($act_response);\n }\n elseif ($connect == 'eduzz') {\n $act_response = HotmembersConnectEduzz::act($_POST);\n $this->send_response($act_response);\n }\n else {\n $this->send_response('Not connecting with neither hotmart nor eduzz');\n }\n }", "title": "" }, { "docid": "0ec31b9e89582ca13676b8c4447e4d3f", "score": "0.65948725", "text": "public function handleRequest()\r\n {\r\n if ($this->hasRenderer()) {\r\n $renderer = $this->getRenderer();\r\n if ($renderer == null) {\r\n throw new Adept_Exception('Renderer not found');\r\n }\r\n $renderer->handleRequest($this);\r\n }\r\n }", "title": "" }, { "docid": "627208f476ade177639ff93ed14b7035", "score": "0.6576084", "text": "public function handle(Request $request)\n {\n // $this->clear();\n \n return $this->next($request->all());\n }", "title": "" }, { "docid": "9ae884541cd876ba816d6d0c319d7da1", "score": "0.65442115", "text": "private static function handle($request) {\n\t\t$request = simplexml_load_string($request);\n\n\t\t$className = ((string) $request->className);\n\t\t$methodName = ((string) $request->methodName);\n\n\t\t$parameters = array();\n\t\tforeach ($request->params->param as $p)\n\t\t\t$parameters[] = ((string) $p);\n\t\t$answer = self::invoke($className,$methodName,$parameters);\n\t\t\n\t\tif (is_array($answer))\n\t\t\treturn self::displayArray($answer);\n\t\t\t\n\t\treturn $answer;\n\t}", "title": "" }, { "docid": "5e6c3bd220fd948640e3eb58ac8b3bc3", "score": "0.65258706", "text": "public function handle_request()\n {\n global $emps, $smarty, $ss, $key;\n\n $emps->page_property('ited', true);\n $this->context_id = $emps->p->get_context($this->ref_type, $this->ref_sub, $this->ref_id);\n\n if ($key == 'ajax') {\n return $this->handle_ajax();\n }\n\n $smarty->assign(\"form\", $this->form_name);\n\n if ($this->immediate_add) {\n $emps->loadvars();\n $smarty->assign(\"fastadd\", 1);\n $key = \"\";\n $ss = \"\";\n $smarty->assign(\"def_addfast\", $emps->clink(\"part=add\"));\n $emps->loadvars();\n }\n\n if ($emps->auth->credentials($this->credentials) || $this->override_credentials) {\n if ($ss && !isset($_REQUEST['action_kill'])) {\n $this->handle_detail_mode();\n } else {\n $this->handle_list_mode();\n }\n } else {\n $emps->deny_access(\"AdminNeeded\");\n }\n }", "title": "" }, { "docid": "5b8ca21d554ae5fce04034b7b847b3d1", "score": "0.65229267", "text": "public function processRequest($request){\n return $this->application->dispatch($request);\n }", "title": "" }, { "docid": "8fcc624182440e33ff2346a3044cca69", "score": "0.65178096", "text": "public function handleRequest()\n {\n $renderer = new FeedRenderer($this->feed->getTitle(), $this->feed->getDesc(), $this->feed->getItems());\n switch ($this->request->output) {\n case 'html':\n $renderer->printHTML();\n break;\n case 'rss':\n $renderer->printRSS($this->feed->feed->asXML());\n break;\n case 'text':\n $renderer->printText();\n break;\n default:\n break;\n }\n }", "title": "" }, { "docid": "ffdc0c8ebd2f26ff574db351e8e77250", "score": "0.6502493", "text": "public function run(request &$request, response &$response);", "title": "" }, { "docid": "67e1efc87f2f0a2f38e692a34c5d440e", "score": "0.6488943", "text": "public function processRequest()\r\n {\r\n switch ($this->requestMethod) {\r\n case 'GET':\r\n if ($this->categorytId) {\r\n $response = $this->categoryService->getCategory($this->categorytId);\r\n } else {\r\n $response = $this->categoryService->getAllCategories();\r\n };\r\n break;\r\n case 'POST':\r\n $response = $this->categoryService->createCategoryFromRequest();\r\n break;\r\n case 'PUT':\r\n $response = $this->categoryService->updateCategoryFromRequest($this->categorytId);\r\n break;\r\n case 'DELETE':\r\n $response = $this->categoryService->deleteCategory($this->categorytId);\r\n break;\r\n default:\r\n $response = $this->notFoundResponse();\r\n break;\r\n }\r\n header($response['status_code_header']);\r\n if ($response['body']) {\r\n echo $response['body'];\r\n }\r\n }", "title": "" }, { "docid": "ff9b2e8fab7596bd07e2009b7f52bcaf", "score": "0.64804894", "text": "private function processRequest() {\n\t\t\n\t\tif(is_null(self::$routes)) { // Route array is not set\n\t\t\t$route = $this->getRouteFn(self::$base_request);\n\t\t\tif(is_callable($route)) {\n\t\t\t\t$routes[self::$base_request] = $route; // Build a single $routes array\n\t\t\t}\n\t\t} else {\n\t\t\t$routes = self::$routes;\n\t\t}\n\t\t\n\t\tif(is_array($routes) and array_key_exists(self::$base_request, $routes)) {\n\t\t\t\n\t\t\t// Autoset some magic\n\t\t\t$magic = array(\n\t\t\t\t'post'\t\t\t=> $_POST ? $_POST : NULL,\n\t\t\t\t'get'\t\t\t=> $_GET ? $_GET : NULL,\n\t\t\t\t'request'\t\t=> $_REQUEST ? $_REQUEST : NULL,\n\t\t\t\t'safe_post'\t\t=> $_POST ? safe_html($_POST) : NULL,\n\t\t\t\t'safe_get'\t\t=> $_GET ? safe_html($_GET) : NULL,\n\t\t\t\t'safe_request'\t=> $_REQUEST ? safe_html($_REQUEST) : NULL,\n\t\t\t\t'auth_token' \t=> self::getAuthToken()\n\t\t\t);\n\n\t\t\tif(count(self::$vars) > 0) {\n\t\t\t\tself::$vars = array_merge(self::$vars, $magic);\n\t\t\t} else {\n\t\t\t\tself::$vars = $magic;\n\t\t\t}\n\t\t\t\n\t\t\t// Only call a valid route fn\n\t\t\tif(!self::$prevented_route and is_callable($routes[self::$base_request])) {\n\t\t\t\t$routes[self::$base_request]($this);\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\t$this->issue404();\n\t\t\t$this->request = $this->request_array;\n\t\t}\n\t\t\n\t\tif($this->template == 404) {\n\t\t\tself::$route = 404;\n\t\t}\n\t\tself::setCond('404', $this->template == 404); // is_404 binding\n\t\t\n\t\tif(self::$vars['pre_doctitle']) {\n\t\t\t$stock_doctitle = self::$vars['doctitle'];\n\t\t\tself::$vars['doctitle'] = self::$vars['pre_doctitle'];\n\t\t\tif($stock_doctitle) {\n\t\t\t\t self::$vars['doctitle'] .= ' - ' . $stock_doctitle;\n\t\t\t}\n\t\t}\n\t\t\n\t\tself::$template_used = $this->template;\n\t\t\n\t}", "title": "" }, { "docid": "d3b6b65c3c3e98328290c70eed31d0f3", "score": "0.64640313", "text": "public function handle(Request $request)\n {\n try {\n $route = $this->parse($request);\n $response = $this->run($route);\n } catch (\\Exception $e) {\n $response = $this->makeExceptionResponse($e);\n }\n\n return $response;\n }", "title": "" }, { "docid": "9dbffc11b4ca6b46af6b92b116f839ab", "score": "0.6446436", "text": "public function onRequest(ConnectionInterface $incoming)\n {\n $this->handledRequests++;\n\n $handler = new RequestHandler($this->socketPath, $this->loop, $this->output, $this->slaves, $this->maxExecutionTime);\n $handler->handle($incoming);\n }", "title": "" }, { "docid": "4157f3855e80d91087f33423f46dae3d", "score": "0.6434097", "text": "public function handleRequest()\n {\n \\XLite\\Core\\Request::getInstance()->category_id = intval(\\XLite\\Core\\Request::getInstance()->category_id);\n\n parent::handleRequest();\n }", "title": "" }, { "docid": "9bc4fe1e6769a2e5319d8d0cfac7c0f7", "score": "0.64205116", "text": "public function processRequest()\n {\n\t\t$this->getConnection();\n\t\t\n\t\t// Check the request method.\n switch ($this->requestMethod) {\n case 'GET':\n\t\t\t\t// If the customer ID been mentioned then show the numbers related to else show all the numbers.\n if ($this->customerId) {\n $response = $this->getCustomerPhoneNumbers($this->customerId);\n } else {\n $response = $this->getAllPhoneNumbers();\n };\n break;\n case 'PUT':\n\t\t\t\t// If the request method is updating and the phone number been mentioned then activate it.\n\t\t\t\tif ($this->$phoneNumber) {\n $response = $this->activatePhoneNumber($this->phoneNumber);\n }\n break;\n default:\n\t\t\t\t// No response if the details are not correct.\n $response = $this->notFound();\n break;\n }\n\t\t\n\t\t// Return the details as Json data.\n header($response['status_code_header']);\n if ($response['body']) {\n echo($response['body']);\n }\n }", "title": "" }, { "docid": "6efe4d6ed02ebd72f70eceaf60670587", "score": "0.6405181", "text": "public function processRequest(Request $request)\n {\n $response = '';\n if ($request->method == 'GET') {\n switch ($request->request) {\n case '/contact':\n $response = Router::get($request->request, 'HomeController@contact');\n break;\n case '/about':\n $response = Router::get($request->request, 'HomeController@about');\n break;\n case '/create_client':\n $response = Router::get($request->request, 'ClientController@create_view');\n break;\n case '/create_ticket':\n $response = Router::get($request->request, 'TicketController@create_view');\n break;\n case '/test':\n $response = Router::get($request->request, 'HomeController@test');\n break;\n case '/register':\n $response = Router::get($request->request, 'UserController@register');\n break;\n case '/login':\n $response = Router::get($request->request, 'UserController@login');\n break;\n case '/view_tickets':\n $response = Router::get($request->request, 'TicketController@view_user_tickets');\n break;\n case '/':\n case '':\n default:\n $response = Router::get($request->request, 'HomeController@index');\n break;\n }\n }\n echo $response;\n }", "title": "" }, { "docid": "db2504ccb24b596fc55d947e1ce6be91", "score": "0.6385614", "text": "public function process($request = null)\n {\n \\Hybrid_Endpoint::process();\n }", "title": "" }, { "docid": "dee3c6d85e85d535dadda471d2f16704", "score": "0.6368526", "text": "public function process(Request $request): Response;", "title": "" }, { "docid": "d27ecc74de58e2bc455464b3233df90c", "score": "0.6349055", "text": "private function run()\n {\n $method = $_SERVER['REQUEST_METHOD'];\n if (isset($_POST) && !empty($_POST) && $method === 'POST') {\n $this->request = $_POST;\n } elseif (isset($_GET) && !empty($_GET) && $method === 'GET') {\n $this->request = $_GET;\n } else {\n $input = file_get_contents('php://input');\n if (isset($input) && !empty($input)) {\n $this->request = $input;\n }\n }\n }", "title": "" }, { "docid": "ab2a83ed4930392aa6dd9b63a2573eae", "score": "0.63378453", "text": "public function handleRequest()\n\t{\n\t\t$this->user_data = $this->core->user()->init();\n\n\t\t# temporarily putting this here while I figure out where to actually put this\n\t\tswitch ($this->core->request('do'))\n\t\t{\n\t\t\tcase 'process':\n\t\t\t{\n\t\t\t\tdefine('REQUEST_TYPE', 'process');\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 'ajax':\n\t\t\t{\n\t\t\t\tdefine('REQUEST_TYPE', 'ajax');\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault:\n\t\t\t\tdefine('REQUEST_TYPE', 'init');\n\t\t\t\tbreak;\n\t\t}\n\n\t\t# same for this\n\t\tif (isset($_SESSION['user_name']))\n\t\t{\n\t\t\t$this->core->output->user = TRUE;\n\t\t}\n\n\t\t$MODULE = $this->core->request('mod');\n\t\t$AREA \t= $this->core->request('area');\n\n\t\tif ( !$MODULE )\n\t\t{\n\t\t\tif ( !include_once IBB_ROOT_PATH . \"/app/\" . $this->core->request('app'). \"/modules/defaultMod.php\" )\n\t\t\t{\n\t\t\t\tthrow new Exception( 'Could not find default module!' );\n\t\t\t}\n\t\t}\n\n\t\tif ( !$AREA )\n\t\t{\n\t\t\tif ( !include_once IBB_ROOT_PATH . \"/app/\".$this->core->request('app').\"/modules/\".$MODULE.\"/defaultArea.php\" )\n\t\t\t{\n\t\t\t\tthrow new exception( 'Could not find default area!' );\n\t\t\t}\n\t\t}\n\n\t\tif ( !include_once IBB_ROOT_PATH . \"/app/\".$this->core->request('app').\"/modules/$MODULE/$AREA.php\" )\n\t\t{\n\t\t\tthrow new Exception( 'Failed to load class!' );\n\t\t}\n\n\t\t# ew\n\t\t$this->core->hotfixAddRequest('mod', $MODULE);\n\t\t$this->core->hotfixAddRequest('area', $AREA);\n\n\t\t# safe from nasty attempts to load something the user SHOULDNT and that isn't protected\n\t\t# this line just looks dumb tbh, how to make it look more... professional?\n\t\t$bootup = $this->core->request('app') . '_' . $MODULE . '_' . $AREA;\n\n\t\t$this->handle = new $bootup;\n\n\t\t/* Set path... */\n\t\t$this->core->output->setMasterTemplate( IBB_ROOT_PATH . '/app/'.$this->core->request('app').'/tpl/', 'default.xhtml');\n\n\t\tif (REQUEST_TYPE == 'process')\n\t\t{\n\t\t\t$this->handle->process();\n\n\t\t\tif ($this->core->DB()->results['areadata']['onprocess_class'])\n\t\t\t{\n\t\t\t\theader('Location: ' . $this->core->settings('core_url')\n\t\t\t\t\t\t\t\t\t. BasicFriendlyURL::toFURL( $_POST['action'], $_POST['subaction'], $bootup ));\n\t\t\t}\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->handle->init();\n\t\t}\n\n\t\t$this->core->output->goGoPowerRanger();\n\n\t\t# my dignity\n\t\t# please\n\t\t# don't look\n\t\t# want to keep my dignity\n\t\t# IT'S TEMPORARY BUT I NEED TO UPLOAD IT SORRY.\n\n//\t\tif (is_int(self::$core->request('action')))\n//\t\t{\n//\t\t\tself::$core->DB()->query('boardname', 'SELECT name FROM ibb_boards WHERE id='.self::$core->request('action'));\n//\t\t\tself::$core->hotfixAddRequest('action', self::$core->DB()->results['boardname'][0]['name']);\n//\t\t}\n//\n//\t\t$subac = (self::$core->request('subaction') ? '&subaction='.self::$core->request('subaction') : '');\n//\n//\t\t$url = 'app='.$app.'&mod='.$module.'&area='.$area.'&action='.self::$core->request('action') .\n//\t\t\t$subac;\n//\n//\t\t# class to turn a url into a furl here\n//\t\tif (self::$core->DB()->results['areadata']['onprocess_class'] == 'boards_boardpage_view')\n//\t\t{\n//\t\t\treturn 'index.php?/'.self::$core->request('action').'/'.\n//\t\t\t(self::$core->request('subaction') ? self::$core->request('subaction') : '');\n//\t\t}\n//\t\telseif (self::$core->DB()->results['areadata']['onprocess_class'] == 'main_front_view')\n//\t\t{\n//\t\t\treturn 'index.php';\n//\t\t}\n//\t\t# temp\n//\t\treturn 'index.php?'.$url;\n//\t}\n//\n//\n//\t\ttry {\n//\t\t\tClassHandler::Execute( $this->core->request('app'), REQUEST_TYPE);\n//\t\t} catch (Exception $e) {\n//\t\t\tthrow new Exception($e);\n//\t\t}\n\n\t}", "title": "" }, { "docid": "cbbb848d1f746e56db81c2afd06220f5", "score": "0.63373476", "text": "public function handle(RequestInterface $request): ResponseInterface;", "title": "" }, { "docid": "94a16c06065b63b4bbe82436e0b44e58", "score": "0.6321521", "text": "public function processRequest() {\r\n $this->server->service($GLOBALS['HTTP_RAW_POST_DATA']);\r\n }", "title": "" }, { "docid": "5c8873fec6f3c673178c7c0a4c6f2c48", "score": "0.63189584", "text": "public function handleRequests(Request $request)\n {\n $data = $request->all();\n\n $method = $request->method();\n\n $mount = $request->get('mount');\n\n $function = $request->get('function');\n\n $user = [\n 'identifier' => 'alex',\n 'groups' => ['group_1', 'group_2'],\n 'is_admin' => true\n ];\n\n switch ($mount) {\n case 'group':\n $filestashService = new FilestashService(new GroupFS(new Local(config('irisit_filestash.mounts.group.root'))));\n return $filestashService->call($user, $method, $function, $data);\n\n case 'user' :\n $filestashService = new FilestashService(new UserFS(new Local(config('irisit_filestash.mounts.user.root'))));\n return $filestashService->call($user, $method, $function, $data);\n\n case 'share':\n $filestashService = new FilestashService(new ShareFS());\n return $filestashService->call($user, $method, $function, $data);\n }\n\n return abort(404);\n }", "title": "" }, { "docid": "d1022b979cbda314582d6901a7e00925", "score": "0.6315709", "text": "function _handleRequest()\n {\n // Delegate to the correct template matching method\n switch($this->method)\n {\n case \"GET\" : return $this->_GET();\n break;\n case \"POST\" : return $this->_POST();\n break;\n case \"DELETE\" : return $this->_DELETE();\n break;\n default : throw new \\Exception(\"Unsupported header type for resource: Message\");\n break;\n }\n }", "title": "" }, { "docid": "f9bca26591ea09f3454527b8c30268c4", "score": "0.6313998", "text": "public abstract function Execute(Request $request);", "title": "" }, { "docid": "4418b86cbb39022bf9dba2ef9bf26eb9", "score": "0.6308562", "text": "public function dispatch()\n {\n // disable error reporting?\n if ($this->hide_errors) error_reporting(0);// prevents messing up the response\n $this->input = file_get_contents('php://input');\n\n // record request\n L('rpc request: '.$this->input);\n\n $json_errors = [\n JSON_ERROR_NONE => '',\n JSON_ERROR_DEPTH => 'The maximum stack depth has been exceeded',\n JSON_ERROR_CTRL_CHAR => 'Control character error, possibly incorrectly encoded',\n JSON_ERROR_SYNTAX => 'Syntax error'\n ];\n // set header if not already sent...\n if (headers_sent() === FALSE) header('Content-type: application/json');\n // any request at all?\n if (trim($this->input) === '') {\n $this->returnError(null, -32600);\n $this->respond();\n }\n // decode request...\n $this->input = json_decode($this->input, true);\n if($this->input === NULL) {\n $this->returnError(null, -32700, 'JSON parse error: '.$json_errors[json_last_error()] );\n $this->respond();\n }\n // batch?\n if (($batch = self::interpretBatch($this->input)) !== FALSE) {\n foreach($batch as $request) {\n $this->process($request);\n }\n $this->respond();\n }\n // process request\n $this->process($this->input);\n $this->respond();\n }", "title": "" }, { "docid": "b09a80fbc113377c6b04b26c2a954df5", "score": "0.6294756", "text": "public function requestHandler() {\n $op = isset($_GET['op']) ? $_GET['op'] : NULL;\n try {\n if (!$op) $this->listOfBanners();\n else {\n switch ($op) {\n case \"list\":\n $this->listOfBanners();\n break;\n case \"new\":\n $this->saveBanner();\n break;\n case \"delete\":\n $this->deleteBanner();\n break;\n case \"update\":\n $this->updateBanner();\n break;\n case \"show\":\n $this->showItem(); \n break;\n case \"signout\":\n $this->signout();\n break;\n case \"getBanner\":\n $this->getIframe();\n break;\n case \"showBanner\":\n $this->showBanner();\n break;\n case \"search\":\n $this->searchBanner();\n break;\n default:\n $this->showError(\"Page not found\", \"Page for operation \" . $op . \" was not found!\");\n break;\n }\n }\n } catch (Exception $e) {\n $this->showError(\"Application error\", $e->getMessage());\n }\n }", "title": "" }, { "docid": "982954f347372e739225f1cf5c4ee2ce", "score": "0.6292515", "text": "private function processRequest() {\n $this->splitUrl();\n\n if (!$this->url_controller) {\n $this->redirectHome();\n }\n\n if (file_exists( $filename = APP . 'controller/' . $this->url_controller . '.php')) {\n\n $controllerClass = $this->realControllerClassName();\n $controllerAction = $this->realActionName();\n\n // Validación del método: existe el método en el controlador?\n if (method_exists($controllerClass, $controllerAction)) {\n\n if (!empty($this->url_params)) {\n\n // Invocar al método pasándole los parámetros enviados via URL\n call_user_func_array(array($controllerClass, $controllerAction), $this->url_params);\n } else {\n\n // Si no se enviaron parámetros, simplemente se invoca el método sin especificar ningún parámetro\n $controllerClass->{$controllerAction}();\n }\n\n } else {\n\n $controllerClass->index();\n }\n\n } else {\n header('location: ' . URL . 'not_found');\n exit;\n }\n\n }", "title": "" }, { "docid": "bee2a061d0db459aed217343e9e1bd63", "score": "0.6280785", "text": "public /*void*/ function handleRequest() {\n\t\tif(isset($_GET['reputation'])) {\n\n\t\t\t// Get the reputation of the user in each the application\n\t\t\t$request = new Request(\"InteractionRequestHandler\", UPDATE);\n\t\t\t$request->addArgument(\"application\", APPLICATION_NAME);\n\t\t\tif(isset($_GET['isData'])){\n\t\t\t\t$request->addArgument(\"producer\", $_GET['predicate'].$_GET['author']);\n\t\t\t} else {\n\t\t\t\t$request->addArgument(\"producer\", $_GET['author']);\t\n\t\t\t}\t\t\t\t\n\t\t\t$request->addArgument(\"consumer\", $_SESSION['user']->id);\n\t\t\t$request->addArgument(\"start\", time());\n\t\t\t$request->addArgument(\"end\", time());\n\t\t\t$request->addArgument(\"predicate\", $_GET['predicate']);\n\t\t\t$request->addArgument(\"feedback\", $_GET['reputation']/10);\n\n// \t\t\ttry {\n\t\t\t\t$responsejSon = $request->send();\n\t\t\t\t$responseObject = json_decode($responsejSon);\n\t\t\t\t\n\t\t\t\tif($responseObject->status != 200) {\n\t\t\t\t\t$this->error = $responseObject->description;\n\t\t\t\t} else {\n\t\t\t\t\t$this->success = _(\"Thank you for your contribution!\");\n\t\t\t\t}\n// \t\t\t} catch (Exception $e) {\n// \t\t\t\t$this->error = \"Une erreur interne est survenue, veuillez réessayer plus tard...\";\n// \t\t\t}\n\t\t}\t\n\t\t\n\t\tparent::handleRequest();\n\t\t\n\t}", "title": "" }, { "docid": "468404f4b39cf5470361c5e69e644403", "score": "0.6268625", "text": "public function handleHttpRequest(HttpRequestInterface $request, HttpResponseInterface $response);", "title": "" }, { "docid": "e9e212471193ebefe4ae8e16f7f01716", "score": "0.626858", "text": "abstract public function handle($response);", "title": "" }, { "docid": "86b2e9ee9caa21e82aa1b3d2b2741ddb", "score": "0.62529093", "text": "function handleGETRequest() {\n if (connectToDB()) {\n if (array_key_exists('countTuples', $_GET)) {\n handleCountRequest();\n }\n\n if (array_key_exists('displayOutput', $_GET)) {\n handleDisplayOutputReq();\n }\n\n disconnectFromDB();\n }\n }", "title": "" }, { "docid": "5b3dbfa8dea19c14de6969a3f22fb44b", "score": "0.6242129", "text": "public function route(Request $httpRequest);", "title": "" }, { "docid": "5b3dbfa8dea19c14de6969a3f22fb44b", "score": "0.6242129", "text": "public function route(Request $httpRequest);", "title": "" }, { "docid": "8fa2c6fe1286d769f0db422754739ee6", "score": "0.6237734", "text": "public function run() : void {\n\t\ttry {\n\t\t $this->dispatcher->dispatch(new KernelRequestEvent($this->HTTPRequest));\n\n $route = $this->router->getCurrentRoute();\n $response = $this->dispatch($route);\n\t\t} catch (NotFoundException $exception) {\n\t\t $response = new JSONResponse();\n\t\t\t$response::notFound();\n\t\t} catch (NotAuthorizedException $exception) {\n $response = new JSONResponse();\n\t\t $response::notAuthorized();\n } catch (InternalErrorException $exception) {\n $response = new JSONResponse();\n\t\t $response::internalError();\n } catch ( Exception $exception) {\n if ($this->configuration->get('app.debug')) {\n throw $exception;\n }\n\n $response = new JSONResponse();\n $response::internalError();\n }\n\n\t\t$response->sendOutput();\n\t}", "title": "" }, { "docid": "024982f5d6eb3bbb48ee901a45290ee8", "score": "0.6236507", "text": "public function Execute( $request );", "title": "" }, { "docid": "19832fbed2f1ae5307b3dbb7afc18fdb", "score": "0.62302244", "text": "public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)\n {\n }", "title": "" }, { "docid": "c6bf58ee94f4a2de7e36e1fb31035447", "score": "0.622947", "text": "public function handle() {\n\n\t\t$type = array_shift($this->request);\n\t\tif($type == '') {\n\n\t\t\t$type = 'web';\n\t\t}\n\n\t\tif(isset($this->typeMapping[$type])) {\n\n\t\t\t$type = $this->typeMapping[$type];\n\t\t}\n\n\t\tdefine('TARGET_NAMESPACE', $type);\n\n\t\t$baseConst = strtoupper($type) . '_BASE_PATH';\n\t\tif(!defined($baseConst)) {\n\n\t\t\tdefine($baseConst, PATH_ROOT . DS . $type);\n\t\t}\n\n\t\t$controllerName = $type . \"\\\\Controller\";\n\n\t\t$controller = new $controllerName;\n\t\t$controller->setRequest($this->request, $this->data);\n\t\t$controller->handle();\n\t}", "title": "" }, { "docid": "df41797bfa079f010cd8ca9a0497df13", "score": "0.6223413", "text": "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n return $this->router->dispatch($request);\n }", "title": "" }, { "docid": "aa337c1ea3186aa4b4fa1f64979302eb", "score": "0.6209288", "text": "public function run($req);", "title": "" }, { "docid": "11c80db53d7744469a78890569aa9dc8", "score": "0.62091154", "text": "public function handle(Request $request)\n\t{\n\t\t// execute response\n\t\t$response = $this->next($request);\n\n\t\t// check for presence of callback param\n\t\t// if we have one lets replace response content with a function executing the \n\t\t// current response content\n\t\tif ($callback = $request->getVar('callback', null))\n\t\t{\n\t\t\t$response->headers->set('content-type', 'application/javascript');\n\t\t\t$response->setContent(sprintf('%s(%s);', $callback, $response->getContent()));\n\t\t}\n\n\t\t// return response\n\t\treturn $response;\n\t}", "title": "" }, { "docid": "005a74cd17630293c27a07b4ad3948f2", "score": "0.61983174", "text": "function handleGETRequest() {\n if (connectToDB()) {\n if (array_key_exists('displayTripRequest', $_GET)){\n handleDisplayTripRequest();\n } else if (array_key_exists('aggGroupBy', $_GET)){\n handleGroupByRequest();\n }else if (array_key_exists('aggHaving', $_GET)){\n handleHavingRequest();\n } else if (array_key_exists('nestedAggRequest', $_GET)){\n handleNestedAggRequest();\n }else if (array_key_exists('dividing', $_GET)){\n handleDivisionRequest();\n }\n disconnectFromDB();\n }\n }", "title": "" }, { "docid": "ad8610a83c623be7de42ccf6d24126e8", "score": "0.6196837", "text": "public function handleRequest(){\n\t\t/*\n\t\t$quests = Content::find(array('id'=>$_GET['quest']));\n\t\t\n\t\tif(empty($quests)){\n\t\t\tthrow new Exception(\"There is no such category!\");\n\t\t}\n\t\t*/\n\t\t\n\t\t// Fetch all the quests:\n\t\t$quests = Content::find(array('quest'));\n\t\t\n\t\t// Fetch all the products in this category:\n\t\t$content = Content::find(array('content'));\n\t\t\n\t\t// $categories and $products are both arrays with objects\n\t\t\n\t\t/*render('home',array(\n\t\t\t'title'\t\t=> 'Explorer Quests',\n\t\t\t'quests'\t=> $quests,\n\t\t\t'content'\t=> $content\n\t\t));*/\t\t\n\t}", "title": "" }, { "docid": "c2419a737ebe0fe22955e8c94d414fb5", "score": "0.61891574", "text": "public function handleRequests() {\n\t\t$n = isset($_SERVER[\"REQUEST_URI\"]) ? $_SERVER[\"REQUEST_URI\"] : \"\";\n\t\t$xpl = explode(\"/\", trim($n,\"/\")); // make array and drop prepending or trailing slashes\n\n\t\t$section \t= count($xpl) > 0 && $xpl[0] != \"\" ? array_shift($xpl) : \"home\"; // $n was empty\n\t\t$action \t= count($xpl) > 0 ? array_Shift($xpl) : \"index\";\t\t\t\t // $n only contained a section\n\n\t\t//hack\n\t\tif(count($xpl) > 0) {\n\t\t\t$_REQUEST[$section.\"Id\"] = $xpl[0];\n\t\t} \n\n\n\t\t$class \t= \"WW_Controller_\".ucfirst($section);\n\t\t$method\t= $action.\"Action\"; \n\n\t\tif(class_exists($class)) {\n\t\t\t$controller = new $class($this->output, $xpl);\n\t\t\tif(method_exists($controller, $method)) {\n\t\t\t\t$controller->{$method}();\t\n\t\t\t}else{\n\t\t\t\t$controller->indexAction();\n\t\t\t}\n\t\t}else{\n\t\t\t$controller = new WW_Controller_Default($this->output, $xpl);\n\t\t\t$controller->showTemplate($section, $action);\n\t\t}\n\t}", "title": "" }, { "docid": "cf9c9cfffd480890f344f6655678959b", "score": "0.61887085", "text": "public function handle(Request $request) : Response\n {\n return $this[KernelContract::class]->handle($request);\n }", "title": "" }, { "docid": "beacc6dbb1f981bc975712646c047ec9", "score": "0.61723065", "text": "public function onHttpRequest(\n \\Psr\\Http\\Message\\ServerRequestInterface $request)\n {\n // Treat request path as command.\n $command = $request->getUri()->getPath();\n // Params validation is up to you.\n $params = $request->getQueryParams();\n \n // Log command with its params.\n $this->_logger->info(sprintf('Received command %s', $command), $params);\n switch ($command) {\n case '/ping':\n return new \\React\\Http\\Response(200, [], 'pong');\n case '/stop':\n $this->_stop();\n return new \\React\\Http\\Response(200);\n case '/seen':\n $context = $this->_rtc->markDirectItemSeen($params['threadId'], $params['threadItemId']);\n return new \\React\\Http\\Response($context !== false ? 200 : 503);\n case '/message':\n return $this->_handleClientContext($this->_rtc->sendTextToDirect($params['threadId'], $request->getParsedBody()['text']));\n \n default:\n $this->_logger->warning(sprintf('Unknown command %s', $command), $params);\n // If command is unknown, reply with 404 Not Found.\n return new \\React\\Http\\Response(404);\n }\n }", "title": "" }, { "docid": "138f14c741027bf212cceef8302941ef", "score": "0.61667997", "text": "public function handle() {\n\n\t\t// overwrite the 404 error page returncode\n\t\theader(\"HTTP/1.0 200 OK\");\n\n\n\t\tif($_SERVER['REQUEST_METHOD'] == 'GET') {\n\t\t\t $method='get';\n\t\t}elseif($_SERVER['REQUEST_METHOD'] == 'PUT') {\n\t\t\t $method='put';\n\t\t\t parse_str(file_get_contents(\"php://input\"),$put_vars);\n\t\t}elseif($_SERVER['REQUEST_METHOD'] == 'POST') {\n\t\t\t $method='post';\n\t\t}else{\n\t\t\techo('internal server error: method not supported');\n\t\t\texit();\n\t\t}\n\n\t\t// preprocess url\n\t\t$url=$_SERVER['PHP_SELF'];\n\t\t$url = str_replace(\"server.php\", \"v1\", $url);\n\t\t\n\t\tif(substr($url,(strlen($url)-1))<>'/') $url.='/';\n\t\t$ex=explode('/',$url);\n\n\t\t// eventhandler\n\t\tif(count($ex)==2){\n\t\t\tH01_GUI::showtemplate('apidoc');\n\n\n\t\t// CONFIG\n\t\t// apiconfig - GET - CONFIG\n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='config') and (count($ex)==4)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$this->apiconfig($format);\n\n\n\t\t// personsearch - GET - PERSON/DATA\t\t\t\tparameter als url parameter\n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='person') and (strtolower($ex[3])=='data') and (count($ex)==5)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$username=$this->readdata('name','text');\n\t\t\t$country=$this->readdata('country','text');\n\t\t\t$city=$this->readdata('city','text');\n\t\t\t$description=$this->readdata('description','text');\n\t\t\t$pc=$this->readdata('pc','text');\n\t\t\t$software=$this->readdata('software','text');\n\t\t\t$longitude=$this->readdata('longitude','float');\n\t\t\t$latitude=$this->readdata('latitude','float');\n\t\t\t$distance=$this->readdata('distance','float');\n\n\t\t\t$attributeapp=$this->readdata('attributeapp','text');\n\t\t\t$attributekey=$this->readdata('attributekey','text');\n\t\t\t$attributevalue=$this->readdata('attributevalue','text');\n\n\t\t\t$page=$this->readdata('page','int');\n\t\t\t$pagesize=$this->readdata('pagesize','int');\n\t\t\tif($pagesize<1 or $pagesize>100) $pagesize=10;\n\t\t\t$this->personsearch($format,$username,$country,$city,$description,$pc,$software,$longitude,$latitude,$distance,$attributeapp,$attributekey,$attributevalue,$page,$pagesize);\n\n\t\t// personget - GET - PERSON/DATA/frank\t\t \n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='person') and\t(strtolower($ex[3])=='data') and (count($ex)==6)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$username=addslashes($ex[4]);\n\t\t\t$this->personget($format,$username);\n\t\t\n\t\t// personaccountbalance - GET - PERSON/BALANCE\t\t \n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='person') and\t(strtolower($ex[3])=='balance') and (count($ex)==5)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$this->persongetbalance($format);\n\n\t\t// personget - GET - PERSON/SELF\t\t \n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='person') and\t(strtolower($ex[3])=='self') and (count($ex)==5)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$this->personget($format);\n\n\t\t// personedit - POST - PERSON/SELF\t\t \n\t\t}elseif(($method=='post') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='person') and\t(strtolower($ex[3])=='self') and (count($ex)==5)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$longitude=$this->readdata('longitude','float');\n\t\t\t$latitude=$this->readdata('latitude','float');\n\t\t\t$country=$this->readdata('country','text');\n\t\t\t$city=$this->readdata('city','text');\n\t\t\t$this->personedit($format,$longitude,$latitude,$country,$city);\n\n\t\t// personcheck - POST - PERSON/CHECK\t\t \n\t\t}elseif(($method=='post') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='person') and\t(strtolower($ex[3])=='check') and (count($ex)==5)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$login=$this->readdata('login','text');\n\t\t\t$passwd=$this->readdata('password','text');\n\t\t\t$this->personcheck($format,$login,$passwd);\n\n\t\t// personadd - POST - PERSON/ADD\t\t \n\t\t}elseif(($method=='post') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='person') and\t(strtolower($ex[3])=='add') and (count($ex)==5)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$login=$this->readdata('login','text');\n\t\t\t$passwd=$this->readdata('password','text');\n\t\t\t$firstname=$this->readdata('firstname','text');\n\t\t\t$lastname=$this->readdata('lastname','text');\n\t\t\t$email=$this->readdata('email','text');\n\t\t\t$this->personadd($format,$login,$passwd,$firstname,$lastname,$email);\n\n\t\t// persongetea - GET - PERSON/ATTRIBUTES/frank/parley/key\t\t \n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='person') and\t(strtolower($ex[3])=='attributes') and (count($ex)==8)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$username= addslashes($ex[4]);\n\t\t\t$app= addslashes($ex[5]);\n\t\t\t$key= addslashes($ex[6]);\n\t\t\t$this->personattributeget($format,$username,$app,$key);\n\n\t\t// persongetea - GET - PERSON/ATTRIBUTES/frank/parley \n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='person') and\t(strtolower($ex[3])=='attributes') and (count($ex)==7)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$username= addslashes($ex[4]);\n\t\t\t$app= addslashes($ex[5]);\n\t\t\t$key= '';\n\t\t\t$this->personattributeget($format,$username,$app,$key);\n\n\t\t// persongetea - GET - PERSON/ATTRIBUTES/frank\n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='person') and\t(strtolower($ex[3])=='attributes') and (count($ex)==6)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$username= addslashes($ex[4]);\n\t\t\t$app= '';\n\t\t\t$key= '';\n\t\t\t$this->personattributeget($format,$username,$app,$key);\n\n\t\t// persondeleteea - POST - PERSON/DELETEATTRIBUTE/app/key\n\t\t}elseif(($method=='post') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='person') and\t(strtolower($ex[3])=='deleteattribute') and (count($ex)==7)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$app= addslashes($ex[4]);\n\t\t\t$key= addslashes($ex[5]);\n\t\t\t$this->personattributedelete($format,$app,$key);\n\n\t\t// personsetea - POST - PERSON/SETATTRIBUTE/app/key\n\t\t}elseif(($method=='post') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='person') and\t(strtolower($ex[3])=='setattribute') and (count($ex)==7)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$app= addslashes($ex[4]);\n\t\t\t$key= addslashes($ex[5]);\n\t\t\t$value=$this->readdata('value','text');\n\t\t\t$this->personattributeset($format,$app,$key,$value);\n\n\n\n\t\t// FAN\n\t\t//fanget - GET - FAN/DATA/\"contentid\" - page,pagesize als url parameter, \n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='fan') and (strtolower($ex[3])=='data') and (count($ex)==6)){\t\t\t\t\t\t \n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$content=addslashes($ex[4]);\n\t\t\t$page=$this->readdata('page','int');\n\t\t\t$pagesize=$this->readdata('pagesize','int');\n\t\t\tif($pagesize<1 or $pagesize>100) $pagesize=10;\n\t\t\t$this->fanget($format,$content,$page,$pagesize);\n\n\t\t//isfan - GET - FAN/STATUS/\"contentid\"\t\n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='fan') and (strtolower($ex[3])=='status') and (count($ex)==6)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$content=addslashes($ex[4]);\n\t\t\t$this->isfan($format,$content);\n\t\t\n\t\t//addfan - POST - FAN/ADD/\"contentid\"\t\n\t\t}elseif(($method=='post') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='fan') and (strtolower($ex[3])=='add') and (count($ex)==6)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$content=addslashes($ex[4]);\n\t\t\t$this->addfan($format,$content);\n\t\t\n\t\t//removefan - POST - FAN/REMOVE/\"contentid\"\t\n\t\t}elseif(($method=='post') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='fan') and (strtolower($ex[3])=='remove') and (count($ex)==6)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$content=addslashes($ex[4]);\n\t\t\t$this->removefan($format,$content);\n\n\n\n\t\t// FRIEND\n\t\t//friendget - GET - FRIEND/DATA/\"personid\" - page,pagesize als url parameter, \n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='friend') and (strtolower($ex[3])=='data') and (count($ex)==6)){\t\t\t\t\t\t \n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$username=addslashes($ex[4]);\n\t\t\t$page=$this->readdata('page','int');\n\t\t\t$pagesize=$this->readdata('pagesize','int');\n\t\t\tif($pagesize<1 or $pagesize>100) $pagesize=10;\n\t\t\t$this->friendget($format,$username,$page,$pagesize);\n\n\t\t//friendinvite - POST - FRIEND/INVITE/\"username\"/\t message als url parameter\t\n\t\t}elseif(($method=='post') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='friend') and (strtolower($ex[3])=='invite') and (count($ex)==6)){\t\t\t\t\t \n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$username=addslashes($ex[4]);\n\t\t\t$message=$this->readdata('message','text');\n\t\t\t$this->friendinvite($format,$username,$message);\n\n\t\t//friendapprove - POST - FRIEND/APPROVE/\"username\"/\t\t \n\t\t}elseif(($method=='post') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='friend') and (strtolower($ex[3])=='approve') and (count($ex)==6)){\t\t\t\t\t \n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$username=addslashes($ex[4]);\n\t\t\t$this->friendapprove($format,$username);\n\n\t\t//frienddecline - POST - FRIEND/DECLINE/\"username\"/\t\t \n\t\t}elseif(($method=='post') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='friend') and (strtolower($ex[3])=='decline') and (count($ex)==6)){\t\t\t\t\t \n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$username=addslashes($ex[4]);\n\t\t\t$this->frienddecline($format,$username);\n\t\n\t\t//friendcancel - POST - FRIEND/CANCEL/\"username\"/\t\t \n\t\t}elseif(($method=='post') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='friend') and (strtolower($ex[3])=='cancel') and (count($ex)==6)){\t\t\t\t\t \n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$username=addslashes($ex[4]);\n\t\t\t$this->friendcancel($format,$username);\n \n\t\t//friendcancelinvitation - POST - FRIEND/CANCEL/\"username\"/\t\t \n\t\t}elseif(($method=='post') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='friend') and (strtolower($ex[3])=='cancelinvitation') and (count($ex)==6)){\t\t\t\t\t \n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$username=addslashes($ex[4]);\n\t\t\t$this->friendcancelinvitation($format,$username);\n\n\t\t//friendsentinvitations - GET - FRIEND/SENTINVITATIONS/\t\t \n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='friend') and (strtolower($ex[3])=='sentinvitations') and (count($ex)==5)){\t\t\t\t\t \n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$page=$this->readdata('page','int');\n\t\t\t$pagesize=$this->readdata('pagesize','int');\n\t\t\tif($pagesize<1 or $pagesize>100) $pagesize=10;\n\t\t\t$this->friendsentinvitations($format,$page,$pagesize);\n\t\n\t\t//friendreceivedinvitations - GET - FRIEND/RECEIVEDINVITATIONS/\t\t \n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='friend') and (strtolower($ex[3])=='receivedinvitations') and (count($ex)==5)){\t\t\t\t\t \n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$page=$this->readdata('page','int');\n\t\t\t$pagesize=$this->readdata('pagesize','int');\n\t\t\tif($pagesize<1 or $pagesize>100) $pagesize=10;\n\t\t\t$this->friendreceivedinvitations($format,$page,$pagesize);\n\n\n\t\t// MESSAGE\n\t\t//messagefolders\t- GET - MESSAGE/\t\t\n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='message') and (count($ex)==4)){\t\t\t\t \n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$this->messagefolders($format);\n\n\t\t//messagelist - GET - MESSAGE/\"folderid\"/\t page,pagesize als url parameter\n\t\t}elseif((($method=='get') and strtolower($ex[1])=='v1') and (strtolower($ex[2])=='message') and (count($ex)==5)){\t\t\t\t\t\t\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$folder= (int) addslashes($ex[3]);\n\t\t\t$filter=$this->readdata('status','text');\n\t\t\t$page=$this->readdata('page','int');\n\t\t\t$pagesize=$this->readdata('pagesize','int');\n\t\t\tif($pagesize<1 or $pagesize>100) $pagesize=10;\n\t\t\t$this->messagelist($format,$folder,$page,$pagesize,$filter);\n\n\t\t// messagesend\t- POST - MESSAGE/\"folderid\"\n\t\t}elseif(($method=='post') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='message') and (strtolower($ex[3])=='2') and (count($ex)==5)){\t\t\t\t\t\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$touser=$this->readdata('to','text');\n\t\t\t$subject=$this->readdata('subject','text');\n\t\t\t$message=$this->readdata('message','text');\n\t\t\t$this->messagesend($format,$touser,$subject,$message);\n\n\t\t// messageget - GET - MESSAGE/\"folderid\"/\"messageid\"\t \n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='message') and (count($ex)==6)){\t\t\t\t\t\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$folder= (int) addslashes($ex[3]);\n\t\t\t$message= (int) addslashes($ex[4]);\n\t\t\t$this->messageget($format,$folder,$message);\n\n\n\t\t// ACTIVITY\n\t\t// activityget - GET ACTIVITY\t page,pagesize als urlparameter\n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1')and (strtolower($ex[2])=='activity') and (count($ex)==4)){\t\t\t\t\t \n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$page=$this->readdata('page','int');\n\t\t\t$pagesize=$this->readdata('pagesize','int');\n\t\t\tif($pagesize<1 or $pagesize>100) $pagesize=10;\n\t\t\t$this->activityget($format,$page,$pagesize);\n\n\t\t// activityput - POST ACTIVITY\n\t\t}elseif(($method=='post') and (strtolower($ex[1])=='v1')and (strtolower($ex[2])=='activity')\tand (count($ex)==4)){\t\t\t\t\t\t\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$message=$this->readdata('message','text');\n\t\t\t$this->activityput($format,$message);\n\n\n\t\t// CONTENT\n\t\t// contentcategories - GET - CONTENT/CATEGORIES\n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='content') and (strtolower($ex[3])=='categories') and (count($ex)==5)){\t\t\t\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$this->contentcategories($format);\n\t\t\n\t\t// contentlicense - GET - CONTENT/LICENSES\n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='content') and (strtolower($ex[3])=='licenses') and (count($ex)==5)){\t\t\t\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$this->contentlicenses($format);\n\n\t\t// contentdistributions - GET - CONTENT/DISTRIBUTIONS\n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='content') and (strtolower($ex[3])=='distributions') and (count($ex)==5)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$this->contentdistributions($format);\n\n\t\t// contentdependencies - GET - CONTENT/DISTRIBUTIONS\n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='content') and (strtolower($ex[3])=='dependencies') and (count($ex)==5)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$this->contentdependencies($format);\n\n\t\t// contenthomepage - GET - CONTENT/HOMPAGES\n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='content') and (strtolower($ex[3])=='homepages') and (count($ex)==5)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$this->contenthomepages($format);\n\n\n\t\t// contentlist - GET - CONTENT/DATA - category,search,sort,page,pagesize\n\t\t}elseif((($method=='get') and strtolower($ex[1])=='v1') and (strtolower($ex[2])=='content') and (strtolower($ex[3])=='data') and (count($ex)==5)){\t\t\t\t\t\t\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$contents=$this->readdata('categories','text');\n\t\t\t$searchstr=$this->readdata('search','text');\n\t\t\t$searchuser=$this->readdata('user','text');\n\t\t\t$external=$this->readdata('external','text');\n\t\t\t$distribution=$this->readdata('distribution','text');\n\t\t\t$license=$this->readdata('license','text');\n\t\t\t$sortmode=$this->readdata('sortmode','text');\n\t\t\t$page=$this->readdata('page','int');\n\t\t\t$pagesize=$this->readdata('pagesize','int');\n\t\t\tif($pagesize<1 or $pagesize>100) $pagesize=10;\n\t\t\t$this->contentlist($format,$contents,$searchstr,$searchuser,$external,$distribution,$license,$sortmode,$page,$pagesize);\n\n\t\t// contentget - GET - CONTENT/DATA/\"id\"\n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='content') and (strtolower($ex[3])=='data') and (count($ex)==6)){\t\t\t\t\t\t \n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$id= addslashes($ex[4]);\n\t\t\t$this->contentget($format,$id);\n\n\t\t// contentdownload - GET - CONTENT/DOWNLOAD/\"id\"/\"item\"\n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='content') and (strtolower($ex[3])=='download') and (count($ex)==7)){\t\t\t\t\t\t \n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$id= addslashes($ex[4]);\n\t\t\t$item= addslashes($ex[5]);\n\t\t\t$this->contentdownload($format,$id,$item);\n\n\t\t// getrecommendations - GET - CONTENT/RECOMMENDATIONS/\"id\"\n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='content') and (strtolower($ex[3])=='recommendations') and (count($ex)==6)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$id= addslashes($ex[4]);\n\t\t\t$page=$this->readdata('page','int');\n\t\t\t$pagesize=$this->readdata('pagesize','int');\n\t\t\t$this->contentrecommendations($id,$format,$page,$pagesize);\n\n\n\t\t// contentvote - POST - CONTENT/VOTE/\"id\" - good/bad als url parameter \n\t\t}elseif((($method=='post') and strtolower($ex[1])=='v1') and (strtolower($ex[2])=='content') and (strtolower($ex[3])=='vote') and (count($ex)==6)){\t\t\t\t\t\t\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$id= addslashes($ex[4]);\n\t\t\t$vote=$this->readdata('vote','text');\n\t\t\t$this->contentvote($format,$id,$vote);\n\n\t\t// contentpreviewdelete - POST - CONTENT/DELETEPREVIEW/\"contentid\"/\"previewid\"\t \n\t\t}elseif((($method=='post') and strtolower($ex[1])=='v1') and (strtolower($ex[2])=='content') and (strtolower($ex[3])=='deletepreview') and (count($ex)==7)){\t\t\t\t\t\t\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$contentid= addslashes($ex[4]);\n\t\t\t$previewid= addslashes($ex[5]);\n\t\t\t$this->contentpreviewdelete($format,$contentid,$previewid);\n\n\t\t// contentpreviewupload - POST - CONTENT/UPLOADPREVIEW/\"contentid\"/\"previewid\"\t \n\t\t}elseif((($method=='post') and strtolower($ex[1])=='v1') and (strtolower($ex[2])=='content') and (strtolower($ex[3])=='uploadpreview') and (count($ex)==7)){\t\t\t\t\t\t\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$contentid= addslashes($ex[4]);\n\t\t\t$previewid= addslashes($ex[5]);\n\t\t\t$this->contentpreviewupload($format,$contentid,$previewid);\n\n\t\t// contentdownloaddelete - POST - CONTENT/DELETEDOWNLOAD/\"contentid\"\t \n\t\t}elseif((($method=='post') and strtolower($ex[1])=='v1') and (strtolower($ex[2])=='content') and (strtolower($ex[3])=='deletedownload') and (count($ex)==6)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$contentid= addslashes($ex[4]);\n\t\t\t$this->contentdownloaddelete($format,$contentid);\n\n\t\t// contentdownloadupload - POST - CONTENT/UPLOADDOWNLOAD/\"contentid\"\t \n\t\t}elseif((($method=='post') and strtolower($ex[1])=='v1') and (strtolower($ex[2])=='content') and (strtolower($ex[3])=='uploaddownload') and (count($ex)==6)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$contentid= addslashes($ex[4]);\n\t\t\t$this->contentdownloadupload($format,$contentid);\n\n\t\t// contentadd - POST - CONTENT/ADD\n\t\t}elseif((($method=='post') and strtolower($ex[1])=='v1') and (strtolower($ex[2])=='content') and (strtolower($ex[3])=='add') and (count($ex)==5)){\t\t\t\t\t\t\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$this->contentadd($format);\n\n\t\t// contentedit - POST - CONTENT/EDIT/\"contentid\"\t \n\t\t}elseif((($method=='post') and strtolower($ex[1])=='v1') and (strtolower($ex[2])=='content') and (strtolower($ex[3])=='edit') and (count($ex)==6)){\t\t\t\t\t\t\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$contentid = addslashes($ex[4]);\n\t\t\t$this->contentedit($format,$contentid);\n\n\t\t// contentdelete - POST - CONTENT/DELETE/\"contentid\"\t \n\t\t}elseif((($method=='post') and strtolower($ex[1])=='v1') and (strtolower($ex[2])=='content') and (strtolower($ex[3])=='delete') and (count($ex)==6)){\t\t\t\t\t\t\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$contentid= addslashes($ex[4]);\n\t\t\t$this->contentdelete($format,$contentid);\n\t\t\n\n\n\t\t// KNOWLEDGEBASE\n\n\t\t// knowledgebaseget - GET - KNOWLEDGEBASE/DATA/\"id\"\n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='knowledgebase') and (strtolower($ex[3])=='data') and (count($ex)==6)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$id= addslashes($ex[4]);\n\t\t\t$this->knowledgebaseget($format,$id);\n\n\t\t// knowledgebaselist - GET - KNOWLEDGEBASE/DATA - category,search,sort,page,pagesize\n\t\t}elseif((($method=='get') and strtolower($ex[1])=='v1') and (strtolower($ex[2])=='knowledgebase') and (strtolower($ex[3])=='data') and (count($ex)==5)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$contents=$this->readdata('content','text');\n\t\t\t$searchstr=$this->readdata('search','text');\n\t\t\t$sortmode=$this->readdata('sortmode','text');\n\t\t\t$page=$this->readdata('page','int');\n\t\t\t$pagesize=$this->readdata('pagesize','int');\n\t\t\tif($pagesize<1 or $pagesize>100) $pagesize=10;\n\t\t\t$this->knowledgebaselist($format,$contents,$searchstr,$sortmode,$page,$pagesize);\n\n\n\t\t// EVENT\n\n\t\t// eventget - GET - EVENT/DATA/\"id\"\n\t\t}elseif(($method=='get') and (strtolower($ex[1])=='v1') and (strtolower($ex[2])=='event') and (strtolower($ex[3])=='data') and (count($ex)==6)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$id= addslashes($ex[4]);\n\t\t\t$this->eventget($format,$id);\n\n\t\t// eventlist - GET - EVENT/DATA - type,country,startat,search,sort,page,pagesize\n\t\t}elseif((($method=='get') and strtolower($ex[1])=='v1') and (strtolower($ex[2])=='event') and (strtolower($ex[3])=='data') and (count($ex)==5)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$type=$this->readdata('type','int');\n\t\t\t$country=$this->readdata('country','text');\n\t\t\t$startat=$this->readdata('startat','text');\n\t\t\t$searchstr=$this->readdata('search','text');\n\t\t\t$sortmode=$this->readdata('sortmode','text');\n\t\t\t$page=$this->readdata('page','int');\n\t\t\t$pagesize=$this->readdata('pagesize','int');\n\t\t\tif($pagesize<1 or $pagesize>100) $pagesize=10;\n\t\t\t$this->eventlist($format,$type,$country,$startat,$searchstr,$sortmode,$page,$pagesize);\n\n\n\t\t// eventadd - POST - EVENT/ADD\n\t\t}elseif((($method=='post') and strtolower($ex[1])=='v1') and (strtolower($ex[2])=='event') and (strtolower($ex[3])=='add') and (count($ex)==5)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$this->eventadd($format);\n\n\t\t// eventedit - POST - EVENT/EDIT/\"eventid\"\t \n\t\t}elseif((($method=='post') and strtolower($ex[1])=='v1') and (strtolower($ex[2])=='event') and (strtolower($ex[3])=='edit') and (count($ex)==6)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$eventid= addslashes($ex[4]);\n\t\t\t$this->eventedit($format,$eventid);\n\n\t\t// eventdelete - POST - EVENT/DELETE/\"eventid\"\t \n\t\t}elseif((($method=='post') and strtolower($ex[1])=='v1') and (strtolower($ex[2])=='event') and (strtolower($ex[3])=='delete') and (count($ex)==6)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$eventid= addslashes($ex[4]);\n\t\t\t$this->eventdelete($format,$eventid);\n\n\n\t\t// COMMENTS\n\n\t\t// commentsget - GET - COMMENTS/GET\n\t\t}elseif((($method=='get') and strtolower($ex[1])=='v1') and (strtolower($ex[2])=='comments') and (strtolower($ex[3])=='data') and (count($ex)==8)){\n\t\t\t$type= addslashes($ex[4]);\n\t\t\t$content= addslashes($ex[5]);\n\t\t\t$content2= addslashes($ex[6]);\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$page=$this->readdata('page','int');\n\t\t\t$pagesize=$this->readdata('pagesize','int');\n\t\t\tif($pagesize<1 or $pagesize>2000) $pagesize=10;\n\t\t\t$this->commentsget($format,$type,$content,$content2,$page,$pagesize);\n\n\t\t// commentsadd - POST - COMMENTS/ADD\t \n\t\t}elseif((($method=='post') and strtolower($ex[1])=='v1') and (strtolower($ex[2])=='comments') and (strtolower($ex[3])=='add') and (count($ex)==5)){\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$type=$this->readdata('type','int');\n\t\t\t$content=$this->readdata('content','int');\n\t\t\t$content2=$this->readdata('content2','int');\n\t\t\t$parent=$this->readdata('parent','int');\n\t\t\t$subject=$this->readdata('subject','text');\n\t\t\t$message=$this->readdata('message','text');\n\t\t\t$this->commentsadd($format,$type,$content,$content2,$parent,$subject,$message);\n\n\t\t// commentvote - GET - COMMENTS/vote\t \n\t\t}elseif((($method=='post') and strtolower($ex[1])=='v1') and (strtolower($ex[2])=='comments') and (strtolower($ex[3])=='vote') and (count($ex)==6)){\n\t\t\t$id = addslashes($ex[4]);\n\t\t\t$score = $this->readdata('vote','int');\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$this->commentvote($format,$id,$score);\n\n\n\t\t// FORUM\n\n\t\t}elseif(strtolower($ex[1])=='v1' and strtolower($ex[2])=='forum'){\n\t\t\t$functioncall=strtolower($ex[3]);\n\t\t\t$subcall=strtolower($ex[4]);\n\t\t\t$argumentcount=count($ex);\n\t\t\t// list - GET - FORUM/LIST\n\t\t\tif($method=='get' and $functioncall=='list' and $argumentcount==4){\n\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t$page=$this->readdata('page','int');\n\t\t\t\t$pagesize=$this->readdata('pagesize','int');\n\t\t\t// TOPIC section\n\t\t\t}elseif($functioncall=='topic'){\n\t\t\t\t// list - GET - FORUM/TOPIC/LIST\n\t\t\t\tif($method=='get' and $subcall=='list' and $argumentcount==10){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$forum=$this->readdata('forum','int');\n\t\t\t\t\t$search=$this->readdata('search','text');\n\t\t\t\t\t$description=$this->readdata('description','text');\n\t\t\t\t\t$sortmode=$this->readdata('sortmode','text');\n\t\t\t\t\t$page=$this->readdata('page','int');\n\t\t\t\t\t$pagesize=$this->readdata('pagesize','int');\n\t\t\t\t// add - POST - FORUM/TOPIC/ADD\n\t\t\t\t}elseif($method=='post' and $subcall=='add' and $argumentcount==5){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$subject=$this->readdata('subject','text');\n\t\t\t\t\t$content=$this->readdata('content','text');\n\t\t\t\t\t$forum=$this->readdata('forum','int');\n\t\t\t\t}\n\t\t\t}\n\n\t\t// BUILDSERVICE\n\n\n\t\t}elseif(strtolower($ex[1])=='v1' and strtolower($ex[2])=='buildservice' and count($ex)>4){\n\t\t\t$functioncall=strtolower($ex[4]);\n\t\t\t$argumentcount=count($ex);\n\t\t\t// PROJECT section\n\t\t\tif(strtolower($ex[3]=='project')){\n\t\t\t\t// create - POST - PROJECT/CREATE\n\t\t\t\tif($method=='post' and $functioncall=='create' and $argumentcount==6){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$name=$this->readdata('name','text');\n\t\t\t\t\t$version=$this->readdata('version','text');\n\t\t\t\t\t$license=$this->readdata('license','text');\n\t\t\t\t\t$url=$this->readdata('url','text');\n\t\t\t\t\t$developers=$this->readdata('developers','text');\n\t\t\t\t\t$summary=$this->readdata('summary','text');\n\t\t\t\t\t$description=$this->readdata('description','text');\n\t\t\t\t\t$requirements=$this->readdata('requirements','text');\n\t\t\t\t\t$specfile=$this->readdata('specfile','text');\n\t\t\t\t\t\n\t\t\t\t\t$this->buildserviceprojectcreate($format,$name,$version,$license,$url,$developers,$summary,$description,$requirements,$specfile);\n\t\t\t\t// get - GET - PROJECT/GET/\"project\"\n\t\t\t\t}elseif($method=='get' and $functioncall=='get' and $argumentcount==7){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$projectID=$ex[5];\n\t\t\t\t\t\n\t\t\t\t\t$this->buildserviceprojectget($format,$projectID);\n\t\t\t\t// delete - POST - PROJECT/DELETE/\"project\"\n\t\t\t\t}elseif($method=='post' and $functioncall=='delete' and $argumentcount==7){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$projectID=$ex[5];\n\t\t\t\t\t\n\t\t\t\t\t$this->buildserviceprojectdelete($format,$projectID);\n\t\t\t\t// edit - POST - ROJECT/EDIT/\"project\"\n\t\t\t\t}elseif($method=='post' and $functioncall=='edit' and $argumentcount==7){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$projectID=$ex[5];\n\t\t\t\t\t$name=$this->readdata('name','text');\n\t\t\t\t\t$version=$this->readdata('version','text');\n\t\t\t\t\t$license=$this->readdata('license','text');\n\t\t\t\t\t$url=$this->readdata('url','text');\n\t\t\t\t\t$developers=$this->readdata('developers','text');\n\t\t\t\t\t$summary=$this->readdata('summary','text');\n\t\t\t\t\t$description=$this->readdata('description','text');\n\t\t\t\t\t$requirements=$this->readdata('requirements','text');\n\t\t\t\t\t$specfile=$this->readdata('specfile','text');\n\t\t\t\t\t$this->buildserviceprojectedit($format,$projectID,$name,$version,$license,$url,$developers,$summary,$description,$requirements,$specfile);\n\t\t\t\t// listall - GET - PROJECT/LIST\n\t\t\t\t}elseif($method=='get' and $functioncall=='list' and $argumentcount==6){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$page=$this->readdata('page','int');\n\t\t\t\t\t$pagesize=$this->readdata('pagesize','int');\n\t\t\t\t\t$this->buildserviceprojectlist($format,$page,$pagesize);\n\t\t\t\t// generatespecfile - GET - PROJECT/UPLOADSOURCE\n\t\t\t\t}elseif($method=='post' and $functioncall=='uploadsource' and $argumentcount==7){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$projectID=$ex[5];\n\t\t\t\t\t$this->buildserviceprojectuploadsource($format,$projectID);\n\t\t\t\t}else{\n\t\t\t\t\t$this->reportapisyntaxerror('buildservice/project');\n\t\t\t\t}\n\t\t\t// REMOTEACCOUNTS section\n\t\t\t}elseif(strtolower($ex[3])=='remoteaccounts'){\n\t\t\t\tif($method=='get' and $functioncall=='list' and $argumentcount==6){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$page=$this->readdata('page','int');\n\t\t\t\t\t$pagesize=$this->readdata('pagesize','int');\n\t\t\t\t\t$this->buildserviceremoteaccountslist($format,$page,$pagesize);\n\t\t\t\t}elseif($method=='post' and $functioncall=='add' and $argumentcount==6){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$type=$this->readdata('type','int');\n\t\t\t\t\t$typeid=$this->readdata('typeid','text');\n\t\t\t\t\t$data=$this->readdata('data','text');\n\t\t\t\t\t$login=$this->readdata('login','text');\n\t\t\t\t\t$password=$this->readdata('password','text');\n\t\t\t\t\t$this->buildserviceremoteaccountsadd($format,$type,$typeid,$data,$login,$password);\n\t\t\t\t}elseif($method=='post' and $functioncall=='edit' and $argumentcount==7){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$id=$ex[5];\n\t\t\t\t\t$data=$this->readdata('data','text');\n\t\t\t\t\t$login=$this->readdata('login','text');\n\t\t\t\t\t$password=$this->readdata('password','text');\n\t\t\t\t\t$this->buildserviceremoteaccountsedit($format,$id,$login,$password,$data);\n\t\t\t\t}elseif($method=='get' and $functioncall=='get' and $argumentcount==7){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$id=$ex[5];\n\t\t\t\t\t$this->buildserviceremoteaccountsget($format,$id);\n\t\t\t\t}elseif($method=='post' and $functioncall=='remove' and $argumentcount==7){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$id=$ex[5];\n\t\t\t\t\t$this->buildserviceremoteaccountsremove($format,$id);\n\t\t\t\t}else{\n\t\t\t\t\t$this->reportapisyntaxerror('buildservice/remoteaccounts');\n\t\t\t\t}\n\t\t\t// BUILDSERVICES section\n\t\t\t}elseif(strtolower($ex[3]=='buildservices')){\n\t\t\t\tif($method=='get' and $functioncall=='list' and $argumentcount==6){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$page=$this->readdata('page','int');\n\t\t\t\t\t$pagesize=$this->readdata('pagesize','int');\n\t\t\t\t\t$this->buildservicebuildserviceslist($format,$page,$pagesize);\n\t\t\t\t}elseif($method=='get' and $functioncall=='get' and $argumentcount==7){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$buildserviceID=$ex[5];\n\t\t\t\t\t$this->buildservicebuildservicesget($format,$buildserviceID);\n\t\t\t\t}else{\n\t\t\t\t\t$this->reportapisyntaxerror('buildservice/buildservices');\n\t\t\t\t}\n\t\t\t// JOBS section\n\t\t\t}elseif(strtolower($ex[3]=='jobs')){\n\t\t\t\t// getbuildcapabilities - GET - JOBS/GETBUILDCAPABILITIES\n\t\t\t\tif($method=='get' and $functioncall=='list' and $argumentcount==7){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$projectID=$ex[5];\n\t\t\t\t\t$page=$this->readdata('page','int');\n\t\t\t\t\t$pagesize=$this->readdata('pagesize','int');\n\t\t\t\t\t$this->buildservicejobslist($format,$projectID,$page,$pagesize);\n\t\t\t\t// create - POST - JOBS/CREATE/\"project\"/\"buildsevice\"/\"target\"\n\t\t\t\t}elseif($method=='post' and $functioncall=='create' and $argumentcount==9){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$projectID=$ex[5];\n\t\t\t\t\t$buildserviceID=$ex[6];\n\t\t\t\t\t$target=$ex[7];\n\t\t\t\t\t$this->buildservicejobscreate($format,$projectID,$buildserviceID,$target);\n\t\t\t\t// cancel - POST - JOBS/CANCEL/\"buildjob\"\n\t\t\t\t}elseif($method=='post' and $functioncall=='cancel' and $argumentcount==7){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$buildjobID=$ex[5];\n\t\t\t\t\t$this->buildservicejobscancel($format,$buildjobID);\n\t\t\t\t// get - GET - JOBS/GET/\"buildjob\"\n\t\t\t\t}elseif($method=='get' and $functioncall=='get' and $argumentcount==7){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$buildjobID=$ex[5];\n\t\t\t\t\t$this->buildservicejobsget($format,$buildjobID);\n\t\t\t\t// getoutput - GET - JOBS/GETOUTPOT/\"buildjob\"\n\t\t\t\t}elseif($method=='get' and $functioncall=='getoutput' and $argumentcount==7){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$buildjobID=$ex[5];\n\t\t\t\t\t$this->buildservicejobsgetoutput($format,$buildjobID);\n\t\t\t\t}else{\n\t\t\t\t\t$this->reportapisyntaxerror('buildservice/jobs');\n\t\t\t\t}\n\t\t\t// PUBLISHING section\n\t\t\t}elseif(strtolower($ex[3]=='publishing')){\n\t\t\t\t// getpublishingcapabilities - GET - PUBLISHING/GETPUBLISHINGCAPABILITIES\n\t\t\t\tif($method=='get' and $functioncall=='getpublishingcapabilities' and $argumentcount==6){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$page=$this->readdata('page','int');\n\t\t\t\t\t$pagesize=$this->readdata('pagesize','int');\n\t\t\t\t\t$this->buildservicepublishinggetpublishingcapabilities($format,$page,$pagesize);\n\t\t\t\t// getpublisher - GET - PUBLISHING/GETPUBLISHER\n\t\t\t\t}elseif($method=='get' and $functioncall=='getpublisher' and $argumentcount==7){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$publisherID=$ex[5];\n\t\t\t\t\t$this->buildservicepublishinggetpublisher($format,$publisherID);\n\t\t\t\t// publishtargetresult - POST - PUBLISHING/PUBLISHTARGETRESULT/\"buildjob\"/\"publisher\"\n\t\t\t\t}elseif($method=='post' and $functioncall=='publishtargetresult' and $argumentcount==8){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$buildjobID=$ex[5];\n\t\t\t\t\t$publisherID=$ex[6];\n\t\t\t\t\t$this->buildservicepublishingpublishtargetresult($format,$buildjobID,$publisherID);\n\t\t\t\t// savefields - POST - PUBLISHING/SAVEFIELDS/\"project\"\n\t\t\t\t}elseif($method=='post' and $functioncall=='savefields' and $argumentcount==7){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$projectID=$ex[5];\n\t\t\t\t\t$fields=$this->readdata('fields','array');\n\t\t\t\t\t$this->buildservicepublishingsavefields($format,$projectID,$fields);\n\t\t\t\t// getfields - GET - PUBLISHING/GETFIELDS/\"project\"\n\t\t\t\t}elseif($method=='get' and $functioncall=='getfields' and $argumentcount==7){\n\t\t\t\t\t$format=$this->readdata('format','text');\n\t\t\t\t\t$projectID=$ex[5];\n\t\t\t\t\t$this->buildservicepublishinggetfields($format,$projectID);\n\t\t\t\t}else{\n\t\t\t\t\t$this->reportapisyntaxerror('buildservice/publishing');\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t$this->reportapisyntaxerror('buildservice');\n\t\t\t}\n\n\n\t\t}else{\n\t\t\t$format=$this->readdata('format','text');\n\t\t\t$txt='please check the syntax. api specifications are here: http://www.freedesktop.org/wiki/Specifications/open-collaboration-services'.\"\\n\";\n\t\t\t$txt.=$this->getdebugoutput();\n\t\t\techo($this->generatexml($format,'failed',999,$txt));\n\t\t}\n\t\texit();\n\t}", "title": "" }, { "docid": "dd39f3709c045315aa264cb608a891da", "score": "0.6151748", "text": "public function handle($input);", "title": "" }, { "docid": "0536bf32ea80e352561e1cb566e434d0", "score": "0.61438483", "text": "public function handleRequest(Request $request): Response\n {\n\n }", "title": "" }, { "docid": "f965108bd5473bb410c2723524b5bf1e", "score": "0.6137545", "text": "public function handle(Request $request): Response\n {\n try {\n // Fetch JSON from application config and resolve routes from it\n $routes = Helpers::jsonFileToArray($this->config::get('custom-routes'));\n\n /*\n * Add some resolvers so the Router would work; higher priorities will be checked first, so the lower ones\n * provide fallback\n */\n $router = (new Router())\n ->registerResolver(new DefaultRouteResolver(), 1)\n ->registerResolver(new CustomRouteResolver($routes), 2);\n\n // Resolve given URI --> If route is unresolved $router will throw an Exception\n $route = $router->resolve($request->server->get('REQUEST_URI'));\n\n // Extract significant data from returned Route\n if ($route instanceof Route) {\n $instance = $route->getController()->setApplication($this);\n $action = $route->getAction();\n $params = $route->getParams();\n\n // Make parameters available for the Controller via Request\n foreach ($params as $key => $value) {\n $request->attributes->set($key, $value);\n }\n\n // Get some response from the Controller\n $response = $instance->{$action}($request);\n } else {\n\n $response = new Response('', Response::HTTP_NOT_FOUND);\n\n }\n } catch (\\Exception $e) {\n\n // If anything went wrong in meantime, return an error response\n $response = new Response($e, Response::HTTP_NOT_FOUND);\n }\n\n // Add a header to enable Cross-Origin Resource Sharing\n return self::onBeforeSend($response);\n\n }", "title": "" }, { "docid": "eed1cb68fe2ef47303bbf4ce529a5cd9", "score": "0.6117414", "text": "public function handleRequest()\n {\n $sequence = $this->bootstrap->buildRuntimeSequence();\n $sequence->invoke($this->bootstrap);\n\n $objectManager = $this->bootstrap->getObjectManager();\n /** @var LoggerInterface $logger */\n $logger = $objectManager->get(PsrLoggerFactoryInterface::class)->get('systemLogger');\n\n $logger->debug('Running sub process loop.');\n echo \"\\nREADY\\n\";\n\n try {\n while (true) {\n $commandLine = trim(fgets(STDIN));\n $trimmedCommandLine = trim($commandLine);\n $logger->info(sprintf('Received command \"%s\".', $trimmedCommandLine), LogEnvironment::fromMethodName(__METHOD__));\n if ($commandLine === \"QUIT\\n\") {\n break;\n }\n /** @var Request $request */\n $request = $objectManager->get(RequestBuilder::class)->build($trimmedCommandLine);\n $response = new Response();\n if ($this->bootstrap->isCompiletimeCommand($request->getCommand()->getCommandIdentifier())) {\n echo \"This command must be executed during compiletime.\\n\";\n } else {\n $objectManager->get(Dispatcher::class)->dispatch($request, $response);\n $response->send();\n\n $this->emitDispatchedCommandLineSlaveRequest();\n }\n echo \"\\nREADY\\n\";\n }\n\n $logger->debug('Exiting sub process loop.');\n $this->bootstrap->shutdown(Bootstrap::RUNLEVEL_RUNTIME);\n exit($response->getExitCode());\n } catch (\\Exception $exception) {\n $this->handleException($exception);\n }\n }", "title": "" }, { "docid": "2ab19d4cac256c5f5b188525940a9430", "score": "0.6112977", "text": "abstract protected function handle(RequestData $data, RequestData $extradata): Response;", "title": "" }, { "docid": "205032ed839ca8e90374d0b16fabc645", "score": "0.6093761", "text": "public function handle(Request $request)\n {\n // Call Authlete's /api/auth/revocation API.\n $response = $this->callRevocationApi($request);\n\n // 'action' in the response denotes the next action which the\n // implementation of revocation endpoint should take.\n $action = $response->getAction();\n\n // The content of the response to the client application.\n $content = $response->getResponseContent();\n\n // Dispatch according to the action.\n switch ($action)\n {\n case RevocationAction::$INVALID_CLIENT:\n // 401 Unauthorized\n return ResponseUtility::unauthorized(self::$CHALLENGE, $content);\n\n case RevocationAction::$INTERNAL_SERVER_ERROR:\n // 500 Internal Server Error\n return ResponseUtility::internalServerError($content);\n\n case RevocationAction::$BAD_REQUEST:\n // 400 Bad Request\n return ResponseUtility::badRequest($content);\n\n case RevocationAction::$OK:\n // 200 OK\n return ResponseUtility::okJavaScript($content);\n\n default:\n // 500 Internal Server Error.\n // This should never happen.\n return $this->unknownAction('/api/auth/revocation');\n }\n }", "title": "" }, { "docid": "77ac45b6406dc37313f5eba4cb4ba53c", "score": "0.6090287", "text": "public function received(Request $request)\n {\n }", "title": "" }, { "docid": "d1b2a9c68eb3adf21eca41ab3ee251f0", "score": "0.60893977", "text": "abstract public function request();", "title": "" }, { "docid": "d48d367feeb524405dd5136e17a7d79c", "score": "0.6078398", "text": "function handle_it() {\n\t\t\tAA_G404D_F && ISCLOG::ti();\n\t\t\t//AA_G404D && ISCLOG::epx( array( 'SERVER'=>$_SERVER, 'REQUEST'=>$_REQUEST ) );\n\n\t\t\t// status code\n\t\t\t$this->sc = (int) ( isset( $_SERVER['REDIRECT_STATUS'] ) && (int) $_SERVER['REDIRECT_STATUS'] !== 200 ) ? $_SERVER['REDIRECT_STATUS'] : ( ! isset( $_REQUEST['error'] ) ? 404 : $_REQUEST['error'] );\n\n\t\t\t// set server protocol and check version\n\t\t\tif ( ! in_array( $_SERVER['SERVER_PROTOCOL'], array( 'HTTP/1.1', 'HTTP/1.0' ), true ) ) {\n\n\t\t\t\t// use 1.0 since this is indicative of a malicious request\n\t\t\t\t$this->protocol = 'HTTP/1.0';\n\n\t\t\t\t// 505 HTTP Version Not Supported\n\t\t\t\t$this->sc = 505;\n\t\t\t}\n\n\t\t\t//AA_G404D && ISCLOG::epx( $_SERVER, get_object_vars( $this ) );\n\n\t\t\t// description of status code\n\t\t\t$this->reason = get_status_header_desc( $this->sc );\n\n\t\t\t// requested uri\n\t\t\t$this->uri = esc_attr( stripslashes( $_SERVER['REQUEST_URI'] ) );\n\n\n\t\t\t// request_method or UNKNOWN\n\t\t\tif ( in_array( $_SERVER['REQUEST_METHOD'], array( 'GET', 'PUT', 'HEAD', 'POST', 'OPTIONS', 'TRACE' ), true ) ) {\n\t\t\t\t$this->req_method = $_SERVER['REQUEST_METHOD'];\n\t\t\t}\n\n\n\t\t\t// set error message\n\t\t\tif ( ! in_array( $this->sc, array( 402, 409, 425, 500, 505 ), true ) ) {\n\t\t\t\t$asc = array(\n\t\t\t\t\t400 => 'Your browser sent a request that this server could not understand.',\n\t\t\t\t\t401 => 'This server could not verify that you are authorized to access the document requested.',\n\t\t\t\t\t403 => 'You don\\'t have permission to access %U% on this server.',\n\t\t\t\t\t404 => 'We couldn\\'t find <abbr title=\"%U%\">that uri</abbr> on our server, though it\\'s most certainly not your fault.',\n\t\t\t\t\t405 => 'The requested method %M% is not allowed for the URL %U%.',\n\t\t\t\t\t406 => 'An appropriate representation of the requested resource %U% could not be found on this server.',\n\t\t\t\t\t407 => 'An appropriate representation of the requested resource %U% could not be found on this server.',\n\t\t\t\t\t408 => 'Server timeout waiting for the HTTP request from the client.',\n\t\t\t\t\t410 => 'The requested resource %U% is no longer available on this server and there is no forwarding address. Please remove all references to this resource.',\n\t\t\t\t\t411 => 'A request of the requested method GET requires a valid Content-length.',\n\t\t\t\t\t412 => 'The precondition on the request for the URL %U% evaluated to false.',\n\t\t\t\t\t413 => 'The requested resource %U% does not allow request data with GET requests, or the amount of data provided in the request exceeds the capacity limit.',\n\t\t\t\t\t414 => 'The requested URL\\'s length exceeds the capacity limit for this server.',\n\t\t\t\t\t415 => 'The supplied request data is not in a format acceptable for processing by this resource.',\n\t\t\t\t\t416 => 'Requested Range Not Satisfiable',\n\t\t\t\t\t417 => 'The expectation given in the Expect request-header field could not be met by this server. The client sent <code>Expect:</code>',\n\t\t\t\t\t422 => 'The server understands the media type of the request entity, but was unable to process the contained instructions.',\n\t\t\t\t\t423 => 'The requested resource is currently locked. The lock must be released or proper identification given before the method can be applied.',\n\t\t\t\t\t424 => 'The method could not be performed on the resource because the requested action depended on another action and that other action failed.',\n\t\t\t\t\t426 => 'The requested resource can only be retrieved using SSL. Either upgrade your client, or try requesting the page using https://',\n\t\t\t\t\t501 => '%M% to %U% not supported.',\n\t\t\t\t\t502 => 'The proxy server received an invalid response from an upstream server.',\n\t\t\t\t\t503 => 'The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.',\n\t\t\t\t\t504 => 'The proxy server did not receive a timely response from the upstream server.',\n\t\t\t\t\t506 => 'A variant for the requested resource <code>%U%</code> is itself a negotiable resource. This indicates a configuration error.',\n\t\t\t\t\t507 => 'The method could not be performed.\tThere is insufficient free space left in your storage allocation.',\n\t\t\t\t\t510 => 'A mandatory extension policy in the request is not accepted by the server for this resource.',\n\t\t\t\t);\n\n\t\t\t\t$this->msg = ( array_key_exists( $this->sc, $asc ) ? str_replace( array( '%U%', '%M%' ), array( $this->uri, $this->req_method ), $asc[ $this->sc ] ) : 'Error' );\n\n\t\t\t\tunset( $asc );\n\t\t\t}\n\n\n\t\t\t// send headers\n\t\t\t@header( \"{$this->protocol} {$this->sc} {$this->reason}\", 1, $this->sc );\n\t\t\t@header( \"Status: {$this->sc} {$this->reason}\", 1, $this->sc );\n\n\t\t\t// Always close connections\n\t\t\t@header( 'Connection: close', 1 );\n\n\t\t\tif ( in_array( $this->sc, array( 400, 403, 405 ), true ) || $this->sc > 499 ) {\n\n\t\t\t\t// Method Not Allowed\n\t\t\t\tif ( $this->sc === 405 ) {\n\t\t\t\t\t@header( 'Allow: GET,HEAD,POST,OPTIONS,TRACE', 1, 405 );\n\t\t\t\t}\n\n\n\t\t\t\techo \"<!DOCTYPE HTML PUBLIC \\\"-//IETF//DTD HTML 2.0//EN\\\">\\n<html><head>\\n<title>\" . esc_html( $this->sc . ' ' . $this->reason ) . \"</title>\\n</head>\\n\";\n\t\t\t\techo \"<body>\\n<h1>\" . esc_html( $this->reason ) . \"</h1>\\n<p>\" . esc_html( $this->msg ) . \"<br />\\n</p>\\n</body></html>\";\n\n\n\t\t\t\t// die here and now, skip loading template\n\t\t\t\tAA_G404D_F && ISCLOG::ti();\n\t\t\t\tdie();\n\t\t\t}\n\n\n\t\t\tAA_G404D_F && ISCLOG::ti();\n\t\t}", "title": "" }, { "docid": "3dae74f38b38beca5cb68cc78481db3c", "score": "0.6073858", "text": "public function handle()\n {\n\n $payload = request()->all();\n $method = $this->eventToMethod($payload['type']);\n\n if ( method_exists($this, $method) ) {\n $this->$method($payload);\n return response('Webhook Handled!');\n }\n\n return response('Webhook NOT Handled!');\n\n }", "title": "" }, { "docid": "215b794e2432a0c42ff3a5f80ac90b30", "score": "0.60688746", "text": "function handleGETRequest() {\n if (connectToDB()) {\n if (array_key_exists('countTuples', $_GET)) {\n handleCountRequest();\n } else if (array_key_exists('displayTuples', $_GET)) {\n handleDisplayRequest();\n } else if (array_key_exists('selection', $_GET)) {\n handleSelectionRequest();\n } else if (array_key_exists('projection', $_GET)) {\n handleProjectionRequest();\n } else if(array_key_exists('join', $_GET)){\n handleJoinRequest(); \n } \n else if(array_key_exists('having', $_GET)){\n handleHavingRequest(); \n }\n\n disconnectFromDB();\n }\n }", "title": "" }, { "docid": "244415b0bf48af1dd4f886e5a38ac04a", "score": "0.60680276", "text": "abstract public function execute(Request $request);", "title": "" }, { "docid": "8ff0b3496b0aebb55749bc76ce157b19", "score": "0.6060185", "text": "abstract function handle(Request $request, \\Closure $next, $guard = null);", "title": "" }, { "docid": "95a2a1697f5503ce2919922939679edd", "score": "0.60519624", "text": "public function process(Zend_Controller_Request_Abstract $request) {\n parent::process($request);\n \n //This function processes request pertaining to this page\n $this->processGet();\n }", "title": "" }, { "docid": "3a41af8d11352a6b639b4f83881cf7ba", "score": "0.60513556", "text": "function cgi_entry()\n{\n global $config;\n $config['request'] = Normal::request();\n return Normal::response(\n handler($config['request'])\n );\n}", "title": "" }, { "docid": "324e7f52ce374e0755fdb658bd09dc0b", "score": "0.6048739", "text": "public function handle()\n {\n switch ($this->request->path()) {\n case 'update/license':\n $this->handleLicenseUpdate();\n break;\n\n case 'update/addon':\n $this->handleAddonUpdate();\n break;\n\n case 'update/subscription':\n $this->handleSubscriptionUpdate();\n break;\n }\n\n return \\response()->json(array('success' => true));\n }", "title": "" }, { "docid": "11bd795e063768916ce5c71096411663", "score": "0.60428774", "text": "public function run()\n {\n $this->dispatcher->dispatch(Http\\Request::createFromGlobals(), Configure::read('url_suffix'));\n\n $handler = $this->dispatcher->fetchHandler();\n\n if (empty($handler)) {\n throw new Exception('handler does not found');\n }\n\n try {\n $reflection = new ReflectionFunction($handler);\n $output = $reflection->invoke($this->dispatcher->fetchParams());\n $this->response->send($output);\n } catch (ReflectionException $e) {\n Debugger::handleException($e);\n }\n }", "title": "" }, { "docid": "214dc77c3e8f2e07cc9be98fd0a445c1", "score": "0.6042398", "text": "public function execute( Request $request, Response $response );", "title": "" }, { "docid": "8bd2f4eec7111186d4992a1ed71b9a4b", "score": "0.60377157", "text": "public function run() {\n session_start();\n\n // match requested url to routes\n $route = $this->router->match($_SERVER['REQUEST_METHOD'], $_SERVER['REQUEST_URI']);\n if ($route === false) {\n throw new NotFoundException(\"404 Not Found\");\n }\n $name = $route['name'];\n\n // create Request object\n $body = file_get_contents('php://input');\n $cookie = $_COOKIE;\n $session = $_SESSION;\n $request = new Request($route['method'], $route['path'], $route['fragment'],\n $route['params'], $_GET, $_POST, $body, $cookie, $session);\n\n return $this->process($name, $request);\n }", "title": "" }, { "docid": "65719df111cffda459ebc9670c42e805", "score": "0.60108554", "text": "public function handleInput(&$request) { \n\n $vd = new ViewDescriptor();\n // imposto la pagina\n \n $vd->setVista($request['page']); \n \n if (isset($request[\"cmd\"])) {\n \n switch ($request[\"cmd\"]) {\n \n case 'login':\n \n $username = $request['user'];\n $password = $request['password'];\n\t\t $this->login($vd, $username, $password);\n \n \t\t\n if ($this->loggedIn()) {\n $user = UserFactory::instance()->cercaUtentePerId($_SESSION[self::user], $_SESSION[self::role]);\n \n }\n\t\t\t\t\t\n break;\n case 'logout':\n $this->logout($vd);\n break;\n \n default : \n $this->showLoginPage();\n \n \tbreak;\n\t\t\t}\n } else {\n \n if ($this->loggedIn()) {\n //utente autenticato\n //imposta la pagina principale dell'utente\n $user = UserFactory::instance()->cercaUtentePerId($_SESSION[self::user], $_SESSION[self::role]);\n $this->showHomeUtente($vd);\n } else {\n // utente non autenticato\n $this->showLoginPage($vd);\n }\n }\n // richiamo la vista\n require 'view/master.php';\n }", "title": "" }, { "docid": "d22d458cb6e3c032b88a7a902d526f06", "score": "0.60096157", "text": "public function handle($response);", "title": "" }, { "docid": "dc10d6f6451832dd5bc06e630255f3c1", "score": "0.6006508", "text": "public function processRequest()\n {\n try {\n parent::processRequest();\n } catch (Exception $e) {\n echo \"Error: {$e->getMessage()}\";\n\n // It's important to re-throw the exception, so the system can\n // take timely measures.\n throw $e;\n }\n }", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "c64f7c03336d8bb1826efe6dd7a1b2f5", "score": "0.0", "text": "public function show($id)\n {\n\n $vanban = $this->vanbanRepository->find($id);\n if (empty($vanban)) {\n abort(404);\n }\n\n return view(\n 'pages.admin.' . config('view.admin') . '.vanbans.edit',\n [\n 'isNew' => false,\n 'vanban' => $vanban,\n ]\n );\n }", "title": "" } ]
[ { "docid": "cc12628aa1525caac0bf08e767bd6cb4", "score": "0.7593495", "text": "public function view(ResourceInterface $resource);", "title": "" }, { "docid": "d57b314bf807713f346bc35fb937529e", "score": "0.6845801", "text": "public function render() {\n $this->_template->display($this->resource_name);\n }", "title": "" }, { "docid": "87649d98f1656cc542e5e570f7f9fd1f", "score": "0.6616427", "text": "public function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t\t$this->setHeaderData();\n\t\t\tparent::display($resource_name, $cache_id, $compile_id);\n\t\t}", "title": "" }, { "docid": "9579e337a5325a82370abb431f646b6f", "score": "0.6490299", "text": "public function show($id)\n\t{\n\t\t//\n\t\t$resource = \\App\\Resource::find($id);\n\t\treturn view('deleteResource', array( 'resource' => $resource) );\n\t}", "title": "" }, { "docid": "989918b39caf8ede67ab11ef4dc4a651", "score": "0.63472325", "text": "public function editresourceAction() {\n\t\t$resourceid = $this->_request->getParam('resourceid');\n\t\t$srlink = new StudentResourceLink();\n\t\t$select = $srlink->select()->where($srlink->getAdapter()->quoteInto('auto_id = ?', $resourceid));\n\t\t$rows = $srlink->fetchAll($select);\n\t\t$therow = null;\n\t\tforeach ($rows as $row) {\n\t\t\t$therow=$row;\n\t\t}\n\t\t//print_r($therow);\n\t\t$this->view->resourcelink = $therow;\n\t\t\n\t\t$mediabankUtility = new MediabankUtility();\n\t\tob_start();\n\t\t$mediabankUtility->curlDownloadResource($therow['mid'],false);\n\t\t$content = ob_get_contents();\n\t\tob_end_clean();\n\t\t$this->view->content = $content;\t\t\n\t\t$this->view->redirect_to = $_SERVER[\"HTTP_REFERER\"];\n\t\tStudentResourceService::prepStudentResourceView($this, $this->_request, $therow->loid);\n\t\tif($therow['category']=='Summary') //summary has been stripped out since a summary exists; add it back in if this one is a summary\n\t\t\t$this->view->studentResourceCategories[6]='Summary';\n\t}", "title": "" }, { "docid": "d6d98993d2a40a3cba09832ef9953f69", "score": "0.6216249", "text": "public function lookup($resource);", "title": "" }, { "docid": "6244aaaaf59fb15467858bc417084ebc", "score": "0.62105983", "text": "protected function makeDisplayFromResource()\n\t{\n\t\tif($this->activeResource instanceof SimpleXMLElement)\n\t\t{\n\t\t\treturn $this->activeResource->asXml();\n\t\t}else{\n\t\t\treturn $this->activeResource;\n\t\t}\n\t}", "title": "" }, { "docid": "3ee4a64030fd6d594c526bf49945971f", "score": "0.6198528", "text": "public function show($id)\n {\n $res = Resource::find($id);\n return view('resource.show')->withResource($res);\n }", "title": "" }, { "docid": "48b723515995fb4178256251ea323c04", "score": "0.61824137", "text": "public function show($id) {\n $resource = static::$resource::findOrFail($id);\n return view($this->getView('show'), [static::$varName[0] ?? $this->getResourceName() => $resource]);\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": "b6106194998deb4acb00d89d1984bf4b", "score": "0.6155446", "text": "public function displayAction()\n {\n $params = $this->router->getParams();\n if (isset($params[0]) && $firewall = Firewalls::findFirst(intval($params[0]) ? $params[0] : ['name=:name:', 'bind' => ['name' => $params[0]]])) {\n $this->tag->setTitle(__('Firewalls') . ' / ' . __('Display'));\n $this->view->setVars([\n 'firewall' => $firewall,\n 'content' => Las::display($firewall->name)\n ]);\n\n // Highlight <pre> tag\n $this->assets->addCss('css/highlightjs/arta.css');\n $this->assets->addJs('js/plugins/highlight.pack.js');\n $this->scripts = ['$(document).ready(function() { $(\"pre\").each(function(i, e) {hljs.highlightBlock(e)}); });'];\n }\n }", "title": "" }, { "docid": "c232a532d32e3f8e5c41e20db4331be5", "score": "0.60641253", "text": "function display($aTemplate = null) {\r\n\t\t$this->fetch ( $aTemplate, true );\r\n\t}", "title": "" }, { "docid": "88951f8df99fd6c0e333e72b145dfb04", "score": "0.6063686", "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('Square_Model_Item i')\n ->leftJoin('i.Square_Model_Country c')\n ->leftJoin('i.Square_Model_Grade g')\n ->leftJoin('i.Square_Model_Type t')\n ->where('i.RecordID = ?', $input->id);\n $result = $q->fetchArray();\n if (count($result) == 1) {\n $this->view->item = $result[0]; \n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404); \n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input'); \n }\n }", "title": "" }, { "docid": "3fb44335bf5e5dca76ae4c41be3fee5d", "score": "0.5995527", "text": "public function action_show()\n\t{\n\t\t$id = Coder::instance()->short_url($this->request->param('id'), TRUE);\n\n\t\tif (is_numeric($id) === FALSE)\n\t\t{\n\t\t\tHTTP::redirect(Route::get('default')->uri());\n\t\t}\n\t\t\n\t\t$user = ORM::factory('User', $id);\n\t\t$manager = Manager::factory('User', $user);\n\t\t\n\t\t$manager->show();\n\n\t\t$this->view_container = $manager->get_views_result('container');\n\t\t$this->view_content = $manager->get_views_result('content');\n\t}", "title": "" }, { "docid": "9a28e42aa633511a42cb70db3b7fcc26", "score": "0.5986619", "text": "public function show($id)\n\t{\n\t\ttry {\n\t\t if ( \\Auth::check() && \\Auth::user()->hasPaid() )\n {\n $resource = \\Resource::find($id);\n $path_to_image = app('path.protected_images') .'/'.$resource->image;\n //Read image path, convert to base64 encoding\n $imgData = base64_encode(file_get_contents($path_to_image));\n //Format the image SRC: data:{mime};base64,{data};\n $src = 'data: '.mime_content_type($path_to_image).';base64,'.$imgData;\n\n return \\View::make('resources.view')->with([\n 'resource' => $resource,\n 'img' => $src\n ]);\n\n } else {\n\n \\App::abort(404);\n }\n\n } catch (\\Exception $e) {\n\n \\Log::warning( $e->getMessage() );\n }\n\t}", "title": "" }, { "docid": "66bedfeb611b91813c98a7e106a95902", "score": "0.5966627", "text": "private function displayImageResource($image) {\n if($image) {\n if($image->getExtension() == 'jpg' || $image->getExtension() == 'jpeg') {\n header('Content-Type: image/jpeg');\n imagejpeg($image->getResource(), null, 100);\n }\n else if($image->getExtension() == 'png') {\n header('Content-Type: image/png');\n imagepng($image->getResource(), null, 9);\n }\n else if($image->getExtension() == 'gif') {\n header('Content-Type: image/gif');\n imagegif($image->getResource(), null, 100);\n }\n }\n }", "title": "" }, { "docid": "41ab5aeaf4ec45d330f185763e2d3cee", "score": "0.5962972", "text": "public function show()\n {\n echo $this->render();\n }", "title": "" }, { "docid": "df778faf9f0b4d88cab1a7ccf83e7502", "score": "0.59093356", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n $url = $em->getRepository('KtIoWebInterfaceBundle:Url')->find($id);\n\n if (!$url)\n throw $this->createNotFoundException();\n\n // TODO check we own this url\n return $this->render(\n 'KtIoWebInterfaceBundle:Url:show.html.twig',\n array('url' => $url)\n );\n }", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "ecdc5dd9611d1734404c92d923029a39", "score": "0.5881492", "text": "public function show($id)\n {\n echo self::routeNamed();\n }", "title": "" }, { "docid": "461e196dfe64422deb4a744c50eb5d8d", "score": "0.587919", "text": "public function show($id) {\n //view/edit page referred to as one entity in spec\n }", "title": "" }, { "docid": "f004693e692e26b7ab9f8de37189afc1", "score": "0.58711755", "text": "private function displayResources()\n\t\t{\n\t\t\t$html = '';\n\t\t\t$html .= '<div class=\"resources\" >'.\"\\n\";\n\t\t\t$html .= '\t<h4>Resources ~ '.$this->challenge['challengeResourceHeading'].'</h4>'.\"\\n\";\n\t\t\tforeach($this->resources as $resource)\n\t\t\t{\n\t\t\t\t$html .= '\t<p class=\"resource-link\"><a href=\"http://'.$resource['resourceLink'].'\">'.$resource['resourceTitle'].'</a></p>'.\"\\n\";\n\t\t\t}\n\t\t\n\t\t\treturn $html;\n\t\t}", "title": "" }, { "docid": "4294ddbd744676190ac0b1e7d92632e0", "score": "0.58634454", "text": "public function show() {\r\n echo $this->init()->getView();\r\n }", "title": "" }, { "docid": "d138cb59b6d8df8768f135975e4445ad", "score": "0.58409727", "text": "public function show()\n\t{\n\t\t//\n\n\t}", "title": "" }, { "docid": "ad2fe33fedb796826d1b96c32859495c", "score": "0.5838473", "text": "public function resourceDesktop()\n {\n $resourceTypes = $this->em->getRepository('ClarolineCoreBundle:Resource\\ResourceType')->findAll();\n\n return $this->templating->render(\n 'ClarolineCoreBundle:Tool\\desktop\\resource_manager:resources.html.twig',\n array('resourceTypes' => $resourceTypes, 'maxPostSize' => ini_get('post_max_size'))\n );\n }", "title": "" }, { "docid": "2f33e89741ba0a19b898dc9a1f9026fc", "score": "0.5811495", "text": "public function showResource($value, bool $justOne = false);", "title": "" }, { "docid": "6e1ccfc29048f24d0efc88d6b8257171", "score": "0.5811056", "text": "public function show($name)\n\t{\n\t\t//\n\n\t}", "title": "" }, { "docid": "ef3fb32b359d85e91687f25572082d98", "score": "0.57948667", "text": "public function display()\r\n {\r\n\r\n echo $this->get_display();\r\n\r\n }", "title": "" }, { "docid": "f7584132221ad89383b2964e2bd53fe5", "score": "0.57916236", "text": "public function show(Request $request, $id)\n {\n \n if($request->session()->exists('resources') && isset($request->session()->get('resources')[$id])){\n $resource = $request->session()->get('resources')[$id];\n \n $data = [];\n $data['resource']= $resource;\n return view('resource.show', $data);\n }\n return redirect('resource');\n }", "title": "" }, { "docid": "7dd625db5c11766539ede97b10e391c8", "score": "0.57885426", "text": "public function viewAction($resourceId)\n {\n try {\n // Call to the resource service to get the resource\n $resourceResource = $this->get(\n 'asker.exercise.exercise_resource'\n )->getContentFullResource($resourceId, $this->getUserId());\n\n return new ApiGotResponse($resourceResource, array(\"details\", 'Default'));\n\n } catch (NonExistingObjectException $neoe) {\n throw new ApiNotFoundException(ResourceResource::RESOURCE_NAME);\n }\n }", "title": "" }, { "docid": "e871bf67c885c4b595a1f5cc980d032e", "score": "0.5787194", "text": "public function show()\n {\n \n \n }", "title": "" }, { "docid": "ea3e059853b58df5488fa70a7fd54c3b", "score": "0.5782477", "text": "protected function addResourceShow($name, $base, $controller)\n {\n $uri = $this->getResourceUri($name) . '/{' . $base . '}';\n return $this->get($uri, $this->getResourceAction($name, $controller, 'show'));\n }", "title": "" }, { "docid": "59b26eccbeb80415b27d312ada1ffed8", "score": "0.5781528", "text": "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "title": "" }, { "docid": "b5cf19a61f4df8b352f4c5245148ed8c", "score": "0.57745427", "text": "public function show()\n\t{\n\t\t// Set user states\n\t\t$this->setUserStates();\n\n\t\t// Set pagination\n\t\t$this->setPagination();\n\n\t\t// Set rows\n\t\t$this->setRows();\n\n\t\t// Set filters\n\t\t$this->setFilters();\n\n\t\t// Set toolbar\n\t\t$this->setToolbar();\n\n\t\t// Set menu\n\t\t$this->setMenu();\n\n\t\t// Set Actions\n\t\t$this->setListActions();\n\n\t\t// Render\n\t\t$this->render();\n\t}", "title": "" }, { "docid": "39114f16312ac4920577af8887aaf740", "score": "0.57743496", "text": "public function display()\r\n {\r\n echo $this->fetch();\r\n }", "title": "" }, { "docid": "fcc9864a64202f3261f4537601857f07", "score": "0.5769528", "text": "public function show($nombre, $resourceType, $resourceName)\n {\n //gets the resource\n switch ($resourceType) {\n case (\"manga\"):\n $resource = Manga::where(\"name\", $resourceName)->first();\n break;\n case (\"novel\");\n $resource = Novel::where(\"name\", $resourceName)->first();\n break;\n default:\n abort(404);\n break;\n }\n //gets the comments for the resource\n $commentsFound = $resource->comments()->get();\n $commented = !is_null(Auth::user()->comments()->where(\"commentable_id\", $resource->id)->first());\n //creates a register of the interaction\n $resource->users()->attach(Auth::user());\n return view(\"user.show\", compact(\"resource\", \"commentsFound\", \"commented\", \"resourceType\"));\n }", "title": "" }, { "docid": "4be578329f20a5696732db0fd60d5d80", "score": "0.5768978", "text": "public function executeShow()\n {\n $this->headline = HeadlinePeer::getHeadlineFromStripTitle($this->getRequestParameter('headlinestriptitle'));\n $this->forward404Unless($this->headline);\n }", "title": "" }, { "docid": "a3e57330d7cd59896b945f16d0e12a89", "score": "0.5756713", "text": "public function display()\n {\n echo $this->render();\n }", "title": "" }, { "docid": "a3e57330d7cd59896b945f16d0e12a89", "score": "0.5756713", "text": "public function display()\n {\n echo $this->render();\n }", "title": "" }, { "docid": "f18ebc5f8b08ddef340fa4f0d3eeea2f", "score": "0.5751132", "text": "public static function show() {\n\t\treturn static::$instance->display();\n\t}", "title": "" }, { "docid": "e3b51ebfe04703c114ab39fc729ba43b", "score": "0.5749091", "text": "public function show(Entry $entry)\n {\n //\n }", "title": "" }, { "docid": "e6492f335ada5179a4fe15779fa54555", "score": "0.5746491", "text": "public function show($id)\n\t{\n\t\t//\t\n\t}", "title": "" }, { "docid": "fd30d754eb9c55abae27d57dff32abdc", "score": "0.57409096", "text": "public function resourcethumbnailAction()\r\n {\r\n $request = $this->getRequest();\r\n $response = $this->getResponse();\r\n\r\n $id = (int) $request->getQuery('id');\r\n $w = (int) $request->getQuery('w');\r\n $h = (int) $request->getQuery('h');\r\n $hash = $request->getQuery('hash');\r\n\r\n $realHash = DatabaseObject_ResourceImage::GetImageHash($id, $w, $h);\r\n\r\n // disable autorendering since we're outputting an image\r\n $this->_helper->viewRenderer->setNoRender();\r\n\r\n $image = new DatabaseObject_ResourceImage($this->db);\r\n if ($hash != $realHash || !$image->load($id)) {\r\n // image not found\r\n $response->setHttpResponseCode(404);\r\n return;\r\n }\r\n\r\n try {\r\n $fullpath = $image->createResourceThumbnail($w, $h);\r\n }\r\n catch (Exception $ex) {\r\n $fullpath = $image->getFullPath();\r\n }\r\n\r\n $info = getImageSize($fullpath);\r\n\r\n $response->setHeader('content-type', $info['mime']);\r\n $response->setHeader('content-length', filesize($fullpath));\r\n echo file_get_contents($fullpath);\r\n }", "title": "" }, { "docid": "a7cd1d7ce30dda2ea0273ce031cff516", "score": "0.5725927", "text": "public function displayReferenceAction()\n {\n \t$reference_id = Extended\\reference_request::displayReference( Auth_UserAdapter::getIdentity ()->getId (), $this->getRequest()->getparam('reference_req_id'), \\Extended\\feedback_requests::VISIBILITY_CRITERIA_DISPLAYED);\n \tif($reference_id)\n \t{\n \t\n \t\t$this->view->reference_visible=$reference_id;\n \t\techo Zend_Json::encode( 1 );\n \t}\n \tdie;\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": "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": "8f565ce0db5c2b58c1bd4bea7cb05683", "score": "0.5720744", "text": "public function showAction(Ressource $ressource, SessionConcours $session = null)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'session' => $session,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "cfff8a1202fcfae7e44ab0c4fb351586", "score": "0.570918", "text": "public function showAction()\n {\n $em = $this->getDoctrine()->getManager();\n $id = $_GET['id'];\n $entity = $em->getRepository('BackendBundle:Concepto')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Concepto entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BackendBundle:Concepto:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "560ae0fd472bad5f1d21beeed5dfbbdd", "score": "0.57012135", "text": "public function show(){}", "title": "" }, { "docid": "b19fae7378b33f825e4ee1e7d8aef94a", "score": "0.5699814", "text": "public function display($templateName=null)\n {\n echo $this->get($templateName);\n }", "title": "" }, { "docid": "7b283ba1c0546a155efc95a44dd0f9cf", "score": "0.56981397", "text": "public function show(Response $response)\n {\n //\n }", "title": "" }, { "docid": "0465b5fe008a3153a8a032fca67abfed", "score": "0.56937706", "text": "public function show() { }", "title": "" }, { "docid": "5df2376bef8dd69621a6ce7e2afd0bf4", "score": "0.56856436", "text": "abstract public function show($id);", "title": "" }, { "docid": "5df2376bef8dd69621a6ce7e2afd0bf4", "score": "0.56856436", "text": "abstract public function show($id);", "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": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "ad16b929211e2129c391d58474e79b76", "score": "0.0", "text": "public function store(ContractorRequest $request)\n {\n $contractor = new Contractor;\n $contractor->name = $request->name;\n $contractor->description = $request->description;\n $contractor->status = $request->status;\n $contractor->save();\n\n return redirect('contractors/create')->with('message', 'Contratista creado satisfactoriamente !');\n }", "title": "" } ]
[ { "docid": "6fd12939ad43e0b8465f714deb95dc17", "score": "0.68325156", "text": "protected function storeResources()\n {\n try {\n $this->storage->get('version');\n } catch (\\Exception $e) {\n $this->storeVersion();\n }\n\n $resources = $this->resources(['format' => 'json']);\n $this->storage->put('resources', $resources);\n }", "title": "" }, { "docid": "d0bfac5fb1dbb1b2eafc131014133a72", "score": "0.67544043", "text": "public function store()\n\t{\n $this->resourceForm->validate(Input::all());\n $resource = Resource::create(\n Input::only('id_number', 'first_name', 'last_name', 'time_zone', 'extension_num', 'extension_pin', 'primary_phone', 'secondary_phone', 'active')\n );\n return Redirect::to('resources');\n\t}", "title": "" }, { "docid": "53b23500f551bbef6ad4a65447665f8a", "score": "0.6527683", "text": "public function store() {}", "title": "" }, { "docid": "35ea40baf62f42e40aaed808f3011b13", "score": "0.64787066", "text": "public function store()\n {\n if (!$this->id) {\n $this->insertObject();\n } else {\n $this->updateObject();\n }\n }", "title": "" }, { "docid": "14f9113e10ab16db8b93522fa5bed4d4", "score": "0.6436744", "text": "public function store() {\n // TODO: Implement store() method.\n }", "title": "" }, { "docid": "26fc32d420262b338412a368e56f3c24", "score": "0.64273345", "text": "protected function store() {\n if (count($this->storage) > 0) {\n set_transient($this->hash, $this->storage, self::$expire);\n } else {\n delete_transient($this->hash);\n }\n }", "title": "" }, { "docid": "6cd571f4466b5901b43a82652b434634", "score": "0.64145803", "text": "public function store(CreateRequest $request)\n {\n Resource::create($request->only(['name', 'type','resource_starts','resource_ends','exclude_weekends']));\n\n return redirect(route('resources.index'))->withSuccess('Resource created!');\n }", "title": "" }, { "docid": "635cb61885cca5673270994e1d7049ef", "score": "0.64108855", "text": "public function store()\n {\n return $this->sendResponse(\n new $this->resource($this->model->create($this->request->all())),\n 'successfully created.',\n true,\n 201\n );\n }", "title": "" }, { "docid": "8f52d18a0b337a866245dca6174b31f7", "score": "0.6383452", "text": "public function store()\n {\n $data = request()->validate([\n 'name' => 'required|unique:storage_locations',\n 'nickname' => 'nullable',\n 'description' => 'required',\n 'storage_type_id' => 'exists:storage_types,id'\n ]);\n\n $location = StorageLocation::create($data);\n\n session()->flash('flash', ['message' => 'Storage Location added successfully!', 'level' => 'success']);\n\n return redirect(route('storage.locations.index'));\n }", "title": "" }, { "docid": "e6a2ecff8be90a692566c0ac3bcd7773", "score": "0.6366602", "text": "public function store()\r\n\t\t{\r\n\t\t\t//\r\n\t\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": "" } ]
dd1c43699c4db33060dd7ff3f3200ba5
Create simpletest database, then create database tables and FormRecord child classes for testing
[ { "docid": "b40fe82ab9292f5a8880273dd29dc7e4", "score": "0.7826795", "text": "function setUp() {\n\t\t\n\t\t$this->dbh = new Database();\n\t\t\n\t\t$this->dbh->createDatabase( \"simpletest\" );\n\t\t\n\t\tFormRecord::init( $this->dbh );\n\t}", "title": "" } ]
[ { "docid": "378523a1eb7d213ef1fb5cd64f8a421d", "score": "0.7077859", "text": "protected function setupTestDbData()\n {\n $db = Yii::$app->getDb();\n\n // Structure :\n\n $db->createCommand()->createTable('subscription', [\n 'id' => 'pk',\n 'userId' => 'integer not null',\n 'name' => 'string not null',\n 'braintreeId' => 'string not null',\n 'braintreePlan' => 'string not null',\n 'quantity' => 'integer not null',\n 'trialEndAt' => 'timestamp null default null',\n 'endAt' => 'timestamp null default null',\n 'createdAt' => 'timestamp null default null',\n 'updatedAt' => 'timestamp null default null',\n ])->execute();\n\n $db->createCommand()->createTable('user', [\n 'id' => 'pk',\n 'username' => 'string',\n 'email' => 'string',\n 'braintreeId' => 'string',\n 'paypalEmail' => 'string',\n 'cardBrand' => 'string',\n 'cardLastFour' => 'string',\n 'trialEndAt' => 'timestamp null default null',\n ])->execute();\n\n $db->createCommand()->insert('user', [\n 'username' => 'John Doe',\n 'email' => '[email protected]',\n ])->execute();\n }", "title": "" }, { "docid": "b92d4a6b7ab590f69a32c34bf73ce2b1", "score": "0.69204915", "text": "public function setUp() : void {\n\t\tparent::setUp();\n\t\t\n\t\ttry {\n\t\t\t$this->db = new Driver(Settings::fromArray([]));\n\t\t\t$this->db->create();\n\n\t\t\t$this->schema = new Schema('test');\n\n\t\t\t$this->schema->field1 = new IntegerField(true);\n\t\t\t$this->schema->field2 = new StringField(255);\n\n\t\t\t$this->table = new Table($this->db, $this->schema);\n\t\t\t$this->table->getLayout()->create();\n\t\t}\n\t\tcatch (PrivateException$e) {\n\t\t\t$this->markTestSkipped('MySQL PDO driver is not available.');\n\t\t}\n\t}", "title": "" }, { "docid": "0fdd588d229a33069198a878a1779a75", "score": "0.6909454", "text": "public function setupDatabase() {\n\t\tif (!method_exists($this, 'getDataSet'))\n\t\t\treturn;\n\t\t\n\t\t$this->dbTestCase = new DbTestCase();\n\t\t\n\t\t$this->dbTestCase->setTestCase($this);\n\t\t\n\t\t$this->dbTestCase->setUp();\n\t\t\n\t}", "title": "" }, { "docid": "3b54d6434e4f833829b994bad66d4d8c", "score": "0.68560624", "text": "public static function setUpBeforeClass()\n {\n self::$db = new DatabaseQueryBuilder([\n \"dsn\" => \"sqlite::memory:\",\n \"table_prefix\" => \"mos_\",\n \"debug_connect\" => true,\n ]);\n\n self::$db->connect();\n self::$db->createTable(\n \"User\",\n [\n \"id\" => [\"integer\", \"primary key\", \"not null\"],\n \"acronym\" => [\"integer\"],\n \"password\" => [\"string\"],\n ]\n )->execute();\n }", "title": "" }, { "docid": "5181684941263d954318c84e6721547f", "score": "0.67874026", "text": "public static function setUpBeforeClass () {\n\t\tif (getenv('TRAVIS')) {\n\t\t\t$pdo = new PDO('mysql:dbname=simplecrud_test;host=127.0.0.1;charset=UTF8', 'travis', '');\n\t\t} else {\n\t\t\t$pdo = new PDO('mysql:dbname=simplecrud_test;host=localhost;charset=UTF8', 'root', '');\n\t\t}\n\n\t\t$db = new Manager($pdo, new EntityFactory(['autocreate' => true]));\n\n\t\t$db->execute('SET FOREIGN_KEY_CHECKS=0;');\n\t\t$db->execute('TRUNCATE posts;');\n\t\t$db->execute('TRUNCATE categories;');\n\t\t$db->execute('TRUNCATE tags;');\n\t\t$db->execute('TRUNCATE tags_in_posts;');\n\t\t$db->execute('SET FOREIGN_KEY_CHECKS=1;');\n\n\t\tself::$db = $db;\n\t}", "title": "" }, { "docid": "2392df650d9e7525375af89c5faba1ee", "score": "0.67386216", "text": "function setup_orm()\r\n{\r\n\tTestProject::createTable();\r\n}", "title": "" }, { "docid": "fc598c29033f86065f7d955dae6c8019", "score": "0.67050666", "text": "protected function setUpDatabase(): void\n {\n $this->getConnection();\n\n $this->createTables();\n $this->truncateTables();\n\n if (!empty($this->fixtures)) {\n $this->insertFixtures($this->fixtures);\n }\n }", "title": "" }, { "docid": "6dc25d2e58676f5d6bb63870d6c2510c", "score": "0.6644591", "text": "public function createDatabase(){\n\n\t\t$modulesModel = new SpItemPricing();\n\t\t$modulesModel->createTable();\n\t\t\n\t\t$modulesModel = new SpItem();\n\t\t$modulesModel->createTable();\n\t\t\n\t\t$modulesModel = new SpProject();\n\t\t$modulesModel->createTable();\n\t\t\n\t\t$modulesModel = new SpBill();\n\t\t$modulesModel->createTable();\n\t\t\n\t\t$modulesModel = new SpItemsTypes();\n\t\t$modulesModel->createTable();\n\t\t$modulesModel->createDefault();\n\t\t\n\t\t$message = 'success';\n\t\treturn $message;\n\t}", "title": "" }, { "docid": "440c66c46b2eceef38d1b3e230d53090", "score": "0.66096175", "text": "protected function setUp()\n\t {\n\t\t$this->db = new MySQLdatabase($GLOBALS[\"DB_HOST\"], $GLOBALS[\"DB_DBNAME\"], $GLOBALS[\"DB_USER\"], $GLOBALS[\"DB_PASSWD\"]);\n\t\t$this->db->exec(\"SET NAMES 'UTF8'\");\n\n\t\t$typeOfRecordsString = \"(\\\"\" . implode(\"\\\",\\\"\", $this->_typesOfRecords) . \"\\\")\";\n\n\t\t$this->db->execUntilSuccessful(\n\t\t \"CREATE TABLE IF NOT EXISTS `\" . $this->_logname . \"log` (\" .\n\t\t \"`id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,\" .\n\t\t \"`client` text NOT NULL,\" .\n\t\t \"`date` datetime NOT NULL,\" .\n\t\t \"`typeOfRecord` ENUM\" . $typeOfRecordsString . \" NOT NULL,\" .\n\t\t \"`amount` decimal(64,18) NOT NULL,\" .\n\t\t \"`record` longtext NOT NULL,\" .\n\t\t \"`startingBalance` boolean NOT NULL,\" .\n\t\t \"INDEX `client` (`client`(40)),\" .\n\t\t \"INDEX `date` (`date`),\" .\n\t\t \"INDEX `typeOfRecord` (`typeOfRecord`)\" .\n\t\t \") ENGINE=InnoDB DEFAULT CHARSET=utf8;\"\n\t\t);\n\n\t\t$this->db->execUntilSuccessful(\n\t\t \"CREATE TABLE IF NOT EXISTS `\" . $this->_logname . \"fulllog` (\" .\n\t\t \"`id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,\" .\n\t\t \"`client` text NOT NULL,\" .\n\t\t \"`date` datetime NOT NULL,\" .\n\t\t \"`typeOfRecord` ENUM\" . $typeOfRecordsString . \" NOT NULL,\" .\n\t\t \"`amount` decimal(64,18) NOT NULL,\" .\n\t\t \"`record` longtext NOT NULL,\" .\n\t\t \"INDEX `client` (`client`(40)),\" .\n\t\t \"INDEX `date` (`date`),\" .\n\t\t \"INDEX `typeOfRecord` (`typeOfRecord`)\" .\n\t\t \") ENGINE=InnoDB DEFAULT CHARSET=utf8;\"\n\t\t);\n\n\t\tparent::setUp();\n\t }", "title": "" }, { "docid": "28c0841e9c48c2d7b50d7f20ddbf4cf7", "score": "0.6598297", "text": "protected function setupTestDbData()\n {\n $db = \\Yii::$app->getDb();\n\n /* Create table with columns. */\n $db->createCommand()->createTable($this->tableName, $this->tableColumns)->execute();\n\n $rows = [];\n foreach (range(1, $this->rowsToGenerate) as $item) {\n $rows[] = [\n 'Product ' . $item,\n 100 + $item,\n '2017-12-12 00:00:00'\n ];\n }\n\n /* Populate table with rows. */\n $db->createCommand()->batchInsert(\n $this->tableName,\n array_diff(array_keys($this->tableColumns), ['id']),\n $rows\n )->execute();\n }", "title": "" }, { "docid": "a9354b0e7cc4ecc96c4a1e0befb61f61", "score": "0.6548369", "text": "public function setUp()\n {\n $this->crud->setModel(Game::class);\n $this->crud->setRoute('admin/games');\n $this->crud->setEntityNameStrings('sudoku', 'sudoku');\n $this->crud->setDefaultPageLength(10);\n $this->crud->enableExportButtons();\n $this->crud->allowAccess(['list', 'create', 'delete', 'show']);\n\n // Declare form field\n $this->declareFromField();\n\n // Column shows in table\n $this->declareTableColumn();\n }", "title": "" }, { "docid": "f1ff3e617afa401ddc0da82147844463", "score": "0.65447366", "text": "public function setUp() {\n\t\t$this->test_schema['database'] = $GLOBALS['database'];\n\t\t$this->test_table = new Grubby_Table($this->test_schema);\n\t\t\n\t\t$this->test_table->dropTable();\n\t\t$this->test_table->createTable();\n\t\t\n\t\t// populate grubby_test with initial data\n\t\tforeach ($this->initial_data as $row) {\n\t\t\t$this->test_table->create($row);\n\t\t}\n\t}", "title": "" }, { "docid": "fbad00abe8e47f6526deadb9b9ab3a4a", "score": "0.6536273", "text": "public function setupDatabase();", "title": "" }, { "docid": "ab3672fb15db8c5cc670dcd1c4a02770", "score": "0.65180105", "text": "public function createDatabase(){\n\t\t\n\t\t$anticorpsModel = new Anticorps();\n\t\t$anticorpsModel->createTable();\n\t\t\n\t\t$isotypeModel = new Isotype();\n\t\t$isotypeModel->createTable();\n\t\t\n\t\t$sourceModel = new Source();\n\t\t$sourceModel->createTable();\n\t\t\n\t\t$tissusModel = new Tissus();\n\t\t$tissusModel->createTable();\n\t\t\n\t\t$message = 'success';\n\t\treturn $message;\n\t}", "title": "" }, { "docid": "775f649014000b877ba7f1176e0ea93a", "score": "0.6460751", "text": "public function setUpDatabase()\n {\n \n // setup connection\n $conf = $this->getConf();\n $adminConf = $conf->getResource('db','admin');\n \n \n $db = Db::connection('setup');\n \n $dbConf = array(\n 'class' => 'PostgresqlPersistent',\n 'dbhost' => $adminConf['dbhost'],\n 'dbport' => $adminConf['dbport'],\n 'dbname' => 'postgresql', // erst mal auf die def datenbank connecten\n 'dbuser' => $adminConf['dbuser'],\n 'dbpwd' => $adminConf['dbpwd'],\n //'dbschema' => 'bc_app_projects',\n 'quote' => 'single'\n );\n \n $setupCon = new LibDbPostgresql($dbConf);\n \n \n \n $sql = <<<SQL\nCREATE DATABASE buiznodes\n WITH OWNER = buiznodes\n ENCODING = 'UTF8'\n TABLESPACE = pg_default\n LC_COLLATE = 'de_DE.UTF-8'\n LC_CTYPE = 'de_DE.UTF-8'\n CONNECTION LIMIT = -1;\nSQL;\n \n }", "title": "" }, { "docid": "67708a65920bda92be45b7e1d0af3fc2", "score": "0.6456522", "text": "protected function setUp()\n {\n try {\n $schema = \\Yana\\Files\\XDDL::getDatabase('check');\n $this->db = new \\Yana\\Db\\FileDb\\Connection($schema);\n $this->object = new \\Yana\\Forms\\QueryBuilder($this->db);\n\n } catch (\\Exception $e) {\n $this->markTestSkipped(\"Unable to connect to database\");\n }\n }", "title": "" }, { "docid": "827e8ffadfe85d0946b9bb5f5e25e805", "score": "0.64371955", "text": "protected function setUp()\n {\n $this->fm = new FileMaker($GLOBALS['DB_FILE'], $GLOBALS['DB_HOST'], $GLOBALS['DB_USER'], $GLOBALS['DB_PASSWD']);\n //$this->fm->newPerformScriptCommand('sample', \"create sample data\", 50)->execute();\n $this->record = $this->fm->newFindAnyCommand('sample')->execute()->getFirstRecord();\n }", "title": "" }, { "docid": "14d1d3675da0ce72f96334bfef38a737", "score": "0.6428357", "text": "public function testCreateTable()\n\t{\n\t\t$this->db->exec(file_get_contents(QTEST_DIR.'/db_files/sqlite.sql'));\n\n\t\t//Check\n\t\t$dbs = $this->db->get_tables();\n\n\t\t$this->assertTrue(in_array('TEST1', $dbs));\n\t\t$this->assertTrue(in_array('TEST2', $dbs));\n\t\t$this->assertTrue(in_array('NUMBERS', $dbs));\n\t\t$this->assertTrue(in_array('NEWTABLE', $dbs));\n\t\t$this->assertTrue(in_array('create_test', $dbs));\n\t\t$this->assertTrue(in_array('create_join', $dbs));\n\t\t$this->assertTrue(in_array('create_delete', $dbs));\n\t}", "title": "" }, { "docid": "b21e2341901accb1fb6f24d2eb34e0f8", "score": "0.6419729", "text": "public function testDatabase()\n {\n /*$this->getConnection();\n $this->assertDatabaseMissing('users', ['email' => '[email protected]']);\n $this->assertDatabaseHas('products', ['id' => '1']);\n $this->seed();*/\n }", "title": "" }, { "docid": "e3057b157787cb54c6b3a71f60eec10d", "score": "0.6388535", "text": "protected function setUp() {\n # Connect to the database\n $this->object = new PDO($this->dsn, $this->username, $this->password);\n \n # Create the temporary table\n $this->object->exec(\"CREATE TEMPORARY TABLE UnitTest (\n RowID int(10) unsigned NOT NULL AUTO_INCREMENT,\n BinaryValue varbinary(12) DEFAULT NULL,\n StringValue varchar(255) DEFAULT NULL,\n IntegerValue int(11) DEFAULT NULL,\n FloatValue double DEFAULT NULL,\n BlobValue mediumblob,\n DateTimeValue datetime DEFAULT NULL,\n LastModified timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n PRIMARY KEY (RowID))\");\n \n # Insert some records\n $statement = $this->object->prepare(\"INSERT INTO UnitTest\n (BinaryValue, StringValue, IntegerValue, FloatValue, BlobValue,\n DateTimeValue)\n VALUES(:binaryValue, :stringValue, :integerValue, :floatValue,\n :blobValue, :dateTimeValue)\");\n foreach($this->data as $row)\n {\n $statement->execute($row);\n }\n \n $this->object->commit();\n }", "title": "" }, { "docid": "1bcc4fa2b88f3ef647a9d6f8a9985111", "score": "0.6379386", "text": "protected function setUp()\n {\n $this->primeDatabase();\n }", "title": "" }, { "docid": "1bcc4fa2b88f3ef647a9d6f8a9985111", "score": "0.6379386", "text": "protected function setUp()\n {\n $this->primeDatabase();\n }", "title": "" }, { "docid": "050b79325ad06c0614514d3a25e8c535", "score": "0.6368707", "text": "public function setupDatabaseSchema()\n {\n $this->schema->createUsersTable();\n $this->schema->createEmojisTable();\n $this->schema->createKeywordsTable();\n }", "title": "" }, { "docid": "3ca72d071b9afd02a06780e74791c10e", "score": "0.6366342", "text": "public function setUp()\n\t{\n\t\t// connection locking issues\n\t\t$this->db = Query('test_sqlite');\n\t\t$this->db->table_prefix = 'create_';\n\t}", "title": "" }, { "docid": "0fdddfb109cb96d627bb1d7aad85121b", "score": "0.6357853", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n User::truncate();\n Institution::truncate();\n Collab::truncate();\n\n $usersQuantity = 10;\n $institutionsQuantity = 18;\n $collabsQuantity = 250;\n\n factory(User::class, $usersQuantity)->create();\n factory(Institution::class, $institutionsQuantity)->create();\n factory(Collab::class, $collabsQuantity)->create();\n }", "title": "" }, { "docid": "1d37ce8fb5fc9af8d07128c5913034a6", "score": "0.6344774", "text": "protected function setupTestDatabase(): void\n {\n $manager = new MySqlManager([\n 'host' => getenv('DB_HOST'),\n 'port' => getenv('DB_PORT'),\n 'user' => getenv('DB_USER'),\n 'pass' => getenv('DB_PASS'),\n 'schema' => getenv('DB_SCHEMA'),\n 'charset' => getenv('DB_CHARSET'),\n 'sockets' => [\n 'rw' => null,\n 'ro' => null\n ]\n ]);\n\n // Use the test database wrapper which extends the base with\n // testing utilities like truncate() and loadData()\n container()->setService('Mini\\Database\\Database', $manager);\n }", "title": "" }, { "docid": "e2cabe3dfa77672d4eafcfb067c18ea9", "score": "0.633281", "text": "protected function setUp() {\n\t\t$this->sql = new $GLOBALS['SQLSOLUTION_TEST_USER_CLASS'];\n\n\t\tsqlsolution_unlink_sqlite($this->sql);\n\n\t\t$this->sql->SQLQueryString = 'CREATE TABLE sqlsolution (\n\t\t\tfirst INT NOT NULL,\n\t\t\tPRIMARY KEY (first))';\n\t\t$this->sql->RunQuery(__FILE__, __LINE__);\n\t}", "title": "" }, { "docid": "5cacac2ef37afa0fbff53e851626ee09", "score": "0.631997", "text": "public function setUp()\n {\n TestConfiguration::setupDatabase(); \n }", "title": "" }, { "docid": "851e334fc79045f3525d5d17f8f833bc", "score": "0.6308657", "text": "protected function createDatabaseStructure(): void\n {\n $statements = [\n 'USE tempdb;',\n \"IF EXISTS (SELECT * FROM information_schema.tables WHERE table_name = 'albums') DROP TABLE albums;\",\n 'CREATE ' . ' TABLE albums ('\n . ' albumid INTEGER PRIMARY KEY NOT NULL,'\n . ' title NVARCHAR(160) NOT NULL,'\n . ' votes INTEGER NULL,'\n . ' lastview DATETIME NULL,'\n . ' isfree BIT NOT NULL,'\n . ' collect DECIMAL(12, 2) NOT NULL DEFAULT 0)'\n . ';',\n ];\n $this->executeStatements($statements);\n }", "title": "" }, { "docid": "83a3c67c43282f1a988783be2f361265", "score": "0.63022447", "text": "public function setUp()\n {\n parent::setUp();\n\n $capsule = new Capsule(null);\n $capsule->addConnection([\n 'driver' => 'sqlite',\n 'database' => ':memory:',\n 'charset' => 'utf8',\n 'prefix' => '',\n 'fetch' => PDO::FETCH_CLASS\n ]);\n $capsule->setFetchMode(PDO::FETCH_CLASS);\n\n $capsule->setAsGlobal();\n $capsule->bootEloquent();\n\n $this->db = $capsule;\n\n $this->createTables();\n $this->createDummyData();\n }", "title": "" }, { "docid": "a15e24f384f0d54c42edc2f894335e52", "score": "0.6282027", "text": "private function createTables() {\n if($this->config->getDatabase() != null){\n $modelPath = $this->packageCorePath.'model/';\n $this->modx->addPackage($this->config->getLowCaseName(), $modelPath, $this->config->getDatabase()->getPrefix());\n\n $manager = $this->modx->getManager();\n $this->modx->log(modX::LOG_LEVEL_INFO, 'Creating tables:');\n\n foreach($this->config->getDatabase()->getTables() as $table){\n $manager->createObjectContainer($table);\n }\n }\n }", "title": "" }, { "docid": "4f65bcffceda814b16df5fdee9c85430", "score": "0.6257123", "text": "private function creations() {\r\n\r\n // db\r\n $this->objects['db'] = new SQLite3('database.db');\r\n $this->objects['db']->enableExceptions(true);\r\n\r\n // test\r\n $this->objects['test'] = \"test \";\r\n\r\n }", "title": "" }, { "docid": "1a89bc9084c46a5733d27343763abd7c", "score": "0.62417895", "text": "protected function setUp() {\n $this->table = new \\Reliq\\Table('test', array(\n 'driver' => 'mysql',\n 'columns' => array(\n 'name',\n 'email',\n 'password'\n )\n ));\n $this->table2 = new \\Reliq\\Table('test_2', array(\n 'driver' => 'mysql',\n 'columns' => array(\n 'name',\n 'email',\n 'password'\n )\n ));\n $this->manager = \\Reliq\\Managers\\SelectManager::factory($this->table);\n\n }", "title": "" }, { "docid": "52c94bdeb386fca7d93a5d832880a59b", "score": "0.62144554", "text": "protected function setUpDatabase()\n {\n $this->app['db']->connection()->getSchemaBuilder()->create('customers', function (Blueprint $table) {\n $table->increments('id');\n $table->string('name');\n $table->timestamps();\n });\n \\Artisan::call('migrate', ['--force' => true]);\n }", "title": "" }, { "docid": "c1cedf5aa0283663025b1b3816073a39", "score": "0.6205569", "text": "protected function setupDatabase()\n {\n $this->app['config']->set('database.default', 'sqlite');\n $this->app['config']->set('database.connections.sqlite.database', ':memory:');\n\n $migrations = [\n \\Tests\\Migrations\\CreateUsersTable::class,\n \\Tests\\Migrations\\CreatePostsTable::class,\n \\Tests\\Migrations\\CreateCommentsTable::class,\n ];\n\n foreach ($migrations as $class) {\n (new $class())->up();\n }\n }", "title": "" }, { "docid": "4061e5cd097dba45f09236ddbbc4e282", "score": "0.61690074", "text": "public function run()\n {\n factory(Education::class, 10)->create();\n factory(School::class, 10)->create();\n factory(User::class, 10)->create();\n factory(Candidate::class, 10)->create();\n }", "title": "" }, { "docid": "b6d50ce8e60b9e2170301273b1a8d445", "score": "0.6138105", "text": "function createDb() {\n $db = $this->db(true);\n\n $db->query('\n CREATE TABLE addresses (\n latlng string,\n address string,\n PRIMARY KEY (latlng)\n );\n ');\n\n $db->query('\n CREATE TABLE scrobbles (\n user string,\n timestamp string,\n artist string,\n track string,\n PRIMARY KEY (user, timestamp)\n );\n ');\n\n $db->query('\n CREATE TABLE locations (\n user string,\n startTimestamp string,\n endTimestamp string,\n latitude string,\n longitude string,\n hasScrobbles boolean,\n PRIMARY KEY (user, startTimestamp, endTimestamp)\n );\n ');\n\n $db->query('\n CREATE TABLE tags (\n artist string,\n tag string,\n PRIMARY KEY (artist)\n );\n ');\n }", "title": "" }, { "docid": "44d4df3842e48f77de90094b5f529fd0", "score": "0.61368674", "text": "protected function setUp() {\n $this->object = new Database;\n }", "title": "" }, { "docid": "0bafbdda02d8dee28f9cdff8a464535d", "score": "0.61242104", "text": "function create() {\n\t\tlist($Schema, $table) = $this->_loadSchema();\n\t\t$this->__create($Schema, $table);\n\t}", "title": "" }, { "docid": "8e7dd9468c046c5ddc1736a52f62f3c7", "score": "0.611055", "text": "protected function setUpDatabase()\n {\n include_once __DIR__ . '/../database/migrations/2016_09_02_000000_create_roles_table.php';\n include_once __DIR__ . '/../database/migrations/2016_09_02_000001_create_role_user_table.php';\n (new \\CreateRolesTable())->up();\n (new \\CreateRoleUserTable())->up();\n }", "title": "" }, { "docid": "3671e16399f9b8273a9707475316e15b", "score": "0.6107381", "text": "public function run()\n {\n Schema::disableForeignKeyConstraints();\n\n User::truncate();\n Book::truncate();\n Transaction::truncate();\n\n\n factory(User::class, 1000)->create();\n factory(Book::class, 300)->create();\n factory(Transaction::class, 1000)->create();\n\n Schema::enableForeignKeyConstraints();\n }", "title": "" }, { "docid": "a036fca2eea468a6971d1b039880e7b7", "score": "0.61018157", "text": "protected function setUp() {\n parent::setUp();\n $this->set_up_tables();\n }", "title": "" }, { "docid": "b0eabc2955b770b2a75fa4be6b37cee4", "score": "0.6099977", "text": "protected function setUp() {\n copy(dirname(__FILE__) . \"/../shortlyTest.db\", dirname(__FILE__) . \"/../test.db\");\n MyDB::getInstance(dirname(__FILE__) . \"/../test.db\"); \n }", "title": "" }, { "docid": "23730d03bc0c73e1ca9a8a687ec22e9f", "score": "0.6093752", "text": "protected function _setupDatabaseSchema()\n {\n $this->_setupContext();\n \t\n \t$env = sfContext::getInstance()->getConfiguration()->getEnvironment();\n \tchdir(sfConfig::get('sf_root_dir'));\n \n $cmd = 'symfony propel:insert-sql --no-confirmation --env='.$env;\n shell_exec($cmd);\n }", "title": "" }, { "docid": "d963676f800241c847c6a057b32c0a13", "score": "0.6092106", "text": "public function setUp()\n {\n parent::setUp();\n factory('App\\User', 'admin', 1)->create();\n factory(Category::class, 'parent', self::NUMBER_RECORD_CREATE)->create();\n factory(Category::class, self::NUMBER_RECORD_CREATE)->create();\n }", "title": "" }, { "docid": "0da3d1b24870386e47539754deaf6ae1", "score": "0.60915476", "text": "function setUp()\n\t{\n\t\tglobal $config;\n\t\tDb::init($config);\n\t\t$this->db = Db::get_instance();\n\t\t$this->sql = SqlObject::get_instance();\n\t}", "title": "" }, { "docid": "0b1211cb4e1ff2d1d27f8ce793a8d1d8", "score": "0.6087525", "text": "public static function initialiseDB(){}", "title": "" }, { "docid": "72128e73a82d65915687ce9ac6752048", "score": "0.60841393", "text": "protected function setUp(): void\n {\n $this->setupTestDatabase();\n }", "title": "" }, { "docid": "3371fe97a40af52aed47e93dd82d46ec", "score": "0.60766596", "text": "private function setUpDatabase()\n {\n $app['path.base'] = __DIR__ . '/..';\n\n $this->app['config']->set('cache.default', 'array');\n $this->app['config']->set('database.default', 'sqlite');\n $this->app['config']->set('database.connections.sqlite.database', ':memory:');\n\n // Relative to 'vendor/orchestra/testbench/fixture'\n $migratePath = '../../../../tests/migrations';\n\n /** @var \\Illuminate\\Contracts\\Console\\Kernel $artisan */\n $artisan = $this->app->make('Illuminate\\Contracts\\Console\\Kernel');\n $artisan->call('migrate', [\n '--database' => 'sqlite',\n '--path' => $migratePath,\n ]);\n }", "title": "" }, { "docid": "d2f1759de27ff7a83831ff196b16bbc1", "score": "0.6075348", "text": "protected function setUp() {\n\t\t$this->object = new ModelData('testtable');\n\t\t$this->object->field(new CharField('first_field'));\n\t\t$this->object->field(new CharField('second_field'));\n\n\t\t$this->object->data = array(\n\t\t\tarray('id' => 12, 'first_field' => \"test string one\", 'second_field' => 'some string one'),\n\t\t\tarray('id' => 34, 'first_field' => \"test string two\", 'second_field' => 'some string two'),\n\t\t\tarray('id' => 76, 'first_field' => \"test string three\", 'second_field' => 'some string three'),\n\t\t);\n\t}", "title": "" }, { "docid": "f3bb12203db7c68dec3db40687579d88", "score": "0.6069501", "text": "public function setUp()\n {\n $this->em = EntityManager::create(self::$connectionOptions, self::$config);\n $tool = new SchemaTool($this->em);\n $classes = array(\n $this->em->getClassMetadata('Domain\\Entity\\TimeSheet'),\n $this->em->getClassMetadata('Domain\\Entity\\TimeSheetStatusChange'),\n $this->em->getClassMetadata('Domain\\Entity\\User'),\n );\n $tool->createSchema($classes);\n }", "title": "" }, { "docid": "c9982c0995bd630d32cadb03ea46077e", "score": "0.606861", "text": "public function setUp()\n {\n parent::setUp();\n\n $this->setUpDatabase();\n }", "title": "" }, { "docid": "454dce26fefc2bff9b58da8c87df2352", "score": "0.6066102", "text": "public function setUp_TestTable()\n {\n $this->query->execSQL( \"DROP TABLE IF EXISTS {$this->table};\" );\n $this->query->execSQL( \"\n CREATE TABLE {$this->table} ( {$this->column_list} );\n \" );\n }", "title": "" }, { "docid": "de120573e3c905835e22d841e2c42c9e", "score": "0.6064318", "text": "public static function createAllTables() {\n $database = DataContext::getDatabase();\n $database->setAlterTable(true);\n\n // Build all the tables here.\n \n }", "title": "" }, { "docid": "9ff0a65a2056e025b217369a7a594e0e", "score": "0.6059024", "text": "protected function setUp()\n {\n CliWriter::echoInfo(\"Loading \" . __FILE__);\n $this->__init();\n $this->__createMySqlPdo();\n $this->__createMySqlDatabase();\n $this->__createDatabaseInterface();\n $this->__di->setDbHandler($this->__mySqlPdo);\n }", "title": "" }, { "docid": "53649efbbf63514746f70d717d914fbf", "score": "0.605095", "text": "public function setUp(): void\n {\n parent::setUp();\n\n $this->getDriver()->rollbackTransaction();\n\n $this->dbal = new DatabaseManager(new DatabaseConfig());\n $this->dbal->addDatabase(\n new Database(\n 'default',\n '',\n $this->getDriver()\n )\n );\n\n $this->logger = new TestLogger();\n $this->getDriver()->setLogger($this->logger);\n\n if (self::$config['debug']) {\n $this->logger->display();\n }\n\n $this->logger = new TestLogger();\n $this->getDriver()->setLogger($this->logger);\n\n if (self::$config['debug']) {\n $this->logger->display();\n }\n\n $this->orm = new ORM(\n (new Factory(\n $this->dbal,\n RelationConfig::getDefault(),\n null,\n new DoctrineCollectionFactory()\n ))->withCollectionFactory('array', new ArrayCollectionFactory()),\n new Schema([])\n );\n }", "title": "" }, { "docid": "96d6c8be221036ba7a769bc65502d266", "score": "0.60435516", "text": "public function testSetUp() {\n \t$iniFile = dirname(dirname(dirname(dirname(__FILE__)))) . '/testfiles/test_config.ini';\n \t$this->object = new DbAccess();\n \t$this->object->config(0, $iniFile);\n \t$testFilePath = dirname(dirname(dirname(dirname(__FILE__)))) . '/testfiles/test.sql';\n\t\t//create test database\n//\t\t$mysqli = new mysqli(\"localhost\", \"root\", \"root\");\n//\t\t$mysqli->query(\"CREATE DATABASE airymvc_unit_test\");\n//\t\t$mysqli->select_db(\"airymvc_unit_test\");\n//\t\t$query = file_get_contents($testFilePath);\n//\t\t$mysqli->multi_query($query);\n }", "title": "" }, { "docid": "df49b2bf00e177572ec0fbca0f34577e", "score": "0.60309947", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n DB::table('experiences')->truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n factory(Experience::class, 50)->create();\n }", "title": "" }, { "docid": "617e026aa88dc8b9726d03ff6a934322", "score": "0.6029498", "text": "public function testIfCreatingModelWorks() : void\n {\n\n // Lvd.\n $createClass = PRZESLIJMI_SHORTQUERY_ENGINES['mySql']['createQuery'];\n $readClass = PRZESLIJMI_SHORTQUERY_ENGINES['mySql']['readQuery'];\n $updateClass = PRZESLIJMI_SHORTQUERY_ENGINES['mySql']['updateQuery'];\n $deleteClass = PRZESLIJMI_SHORTQUERY_ENGINES['mySql']['deleteQuery'];\n\n // Preapare fields.\n $fields = [\n 'pk' => ( new IntField('pk') )->setPrimaryKey(true),\n 'full_name' => ( new VarCharField('full_name') ),\n ];\n\n // Preapare relations.\n $relations = [\n 'deeper' => ( new HasOneRelation('deeper') )\n ->setModelFrom('Clean\\\\Nice\\\\Namespace\\\\Core\\\\TestModel')\n ->setFieldFrom('pk')\n ->setModelTo('Clean\\\\Nice\\\\Namespace\\\\Core\\\\DeepModel')\n ->setFieldTo('pk')\n ];\n\n // Create Model.\n $model = new Model();\n $model->setName('test');\n $model->setDatabases('test');\n $model->setNamespace('Clean\\\\Nice\\\\Namespace');\n $model->setInstanceClassName('Test');\n $model->setCollectionClassName('Tests');\n $model->addField($fields['pk']);\n $model->addField($fields['full_name']);\n $model->addRelation($relations['deeper']);\n\n $this->assertEquals('test', $model->getName());\n $this->assertEquals([ 'test' ], $model->getDatabases());\n $this->assertEquals('\\'test\\'', $model->getDatabasesAsString());\n $this->assertEquals('test', $model->getDatabase());\n $this->assertEquals('test', $model->getDatabase('test'));\n $this->assertEquals('mySql', $model->getEngine());\n $this->assertEquals('mySql', $model->getEngine('test'));\n $this->assertEquals('mySql', $model->getEngine('test'));\n $this->assertInstanceOf($createClass, $model->newInsert());\n $this->assertInstanceOf($updateClass, $model->newUpdate());\n $this->assertInstanceOf($readClass, $model->newSelect());\n $this->assertInstanceOf($deleteClass, $model->newDelete());\n $this->assertEquals('Clean\\\\Nice\\\\Namespace', $model->getNamespace());\n $this->assertEquals('Clean', $model->getNamespace(0, 1));\n $this->assertEquals('Nice\\\\Namespace', $model->getNamespace(1, 2));\n $this->assertEquals('Test', $model->getInstanceClassName());\n $this->assertEquals('Tests', $model->getCollectionClassName());\n $this->assertEquals('Clean\\\\Nice\\\\Namespace', $model->getClass('namespace'));\n $this->assertEquals('Clean\\\\Nice\\\\Namespace\\\\Core', $model->getClass('namespaceCore'));\n $this->assertEquals('Clean\\\\Nice\\\\Namespace\\\\Core\\\\TestModel', $model->getClass('modelClass'));\n $this->assertEquals('TestModel', $model->getClass('modelClassName'));\n $this->assertEquals('Clean\\\\Nice\\\\Namespace\\\\Test', $model->getClass('instanceClass'));\n $this->assertEquals('Test', $model->getClass('instanceClassName'));\n $this->assertEquals('TestCore', $model->getClass('instanceCoreClassName'));\n $this->assertEquals('Clean\\\\Nice\\\\Namespace\\\\Tests', $model->getClass('collectionClass'));\n $this->assertEquals('Tests', $model->getClass('collectionClassName'));\n $this->assertEquals('TestsCore', $model->getClass('collectionCoreClassName'));\n $this->assertEquals('Namespace', $model->getClass('parentClassName'));\n $this->assertEquals($fields, $model->getFields());\n $this->assertEquals($fields['pk'], $model->getFieldByName('pk'));\n $this->assertEquals($fields['pk'], $model->getFieldByNameIfExists('pk'));\n $this->assertEquals(null, $model->getFieldByNameIfExists('pk_nonexisting'));\n $this->assertEquals($fields['pk'], $model->getPrimaryKeyField());\n $this->assertEquals($fields['pk'], $model->getPkField());\n $this->assertEquals(array_keys($fields), $model->getFieldsNames());\n $this->assertEquals([ 'getPk', 'getFullName' ], $model->getFieldsGettersNames());\n $this->assertEquals([ 'setPk', 'setFullName' ], $model->getFieldsSettersNames());\n $this->assertEquals($relations, $model->getRelations());\n $this->assertEquals($relations['deeper'], $model->getRelationByName('deeper'));\n $this->assertEquals([ 'deeper' ], $model->getRelationsNames());\n }", "title": "" }, { "docid": "de74fc913d37a4ae308415a6e091432e", "score": "0.6025036", "text": "private function setup_database() {\n global $db;\n //Install the tables\n\n if (!$this->installTables()) {\n trigger_error(\"Cannot create Tables\", E_USER_ERROR);\n }\n }", "title": "" }, { "docid": "0d9f6972cf4800115e7515041d275e29", "score": "0.6024577", "text": "public static function setupDB() : void\n\t{\n\t\t$db = User::getDB();\n\t\t//Call any registered preSetup callbacks, passing them the open db connection\n\t\tUser::processEventHandlers('preSetup', $db);\n\t\t//Create 'users' table...\n\t\t$query = $db->prepare(User::config('db_users_table_schema'));\n\t\t$query->execute();\n\t\t//Create 'usersPending' table...\n\t\t$query = $db->prepare(User::config('db_userspending_table_schema'));\n\t\t$query->execute();\n\t\t//Create 'usersChangeEmail' table...\n\t\t$query = $db->prepare(User::config('db_userschangeemail_table_schema'));\n\t\t$query->execute();\n\t\t//Create 'usersSessions' table...\n\t\t$query = $db->prepare(User::config('db_userssessions_table_schema'));\n\t\t$query->execute();\n //Create 'viewUsers' view...\n $db->query(User::config('db_users_view_schema'));\n\t\t//Call any registered postSetup callbacks, passing them the open db connection\n\t\tUser::processEventHandlers('postSetup', $db);\n\t}", "title": "" }, { "docid": "50ac9b4cc6b050dd2c669c90350412bc", "score": "0.6014897", "text": "protected function setUp()\n {\n $forceCreateTables = false;\n\n if ( ! isset(static::$_sharedConn)) {\n static::$_sharedConn = TestUtil::getConnection();\n\n if (static::$_sharedConn->getDriver() instanceof \\Doctrine\\DBAL\\Driver\\PDOSqlite\\Driver) {\n $forceCreateTables = true;\n }\n }\n\n if (isset($GLOBALS['DOCTRINE_MARK_SQL_LOGS'])) {\n if (in_array(static::$_sharedConn->getDatabasePlatform()->getName(), array(\"mysql\", \"postgresql\"))) {\n static::$_sharedConn->executeQuery('SELECT 1 /*' . get_class($this) . '*/');\n } else if (static::$_sharedConn->getDatabasePlatform()->getName() == \"oracle\") {\n static::$_sharedConn->executeQuery('SELECT 1 /*' . get_class($this) . '*/ FROM dual');\n }\n }\n\n if ( ! $this->_em) {\n $this->_em = $this->_getEntityManager();\n $this->_schemaTool = new \\Doctrine\\ORM\\Tools\\SchemaTool($this->_em);\n }\n\n $classes = array();\n\n foreach ($this->_usedModelSets as $setName => $bool) {\n if ( ! isset(static::$_tablesCreated[$setName])/* || $forceCreateTables*/) {\n foreach (static::$_modelSets[$setName] as $className) {\n $classes[] = $this->_em->getClassMetadata($className);\n }\n\n static::$_tablesCreated[$setName] = true;\n }\n }\n\n if ($classes) {\n $this->_schemaTool->createSchema($classes);\n }\n\n $this->_sqlLoggerStack->enabled = true;\n }", "title": "" }, { "docid": "6e97a3a23281d8ce5386dfe6b5dfa40e", "score": "0.60113925", "text": "public function setupDatabase()\n {\n foreach($this->db_structure as $key => $value){\n switch ($key) {\n case 'tables':\n foreach($value as $table_name => $table_fields){\n\n // minimum 2 fields in table requirement\n if(count($table_fields) < 2){\n return 'Missing table fields for ' . $table_name;\n }\n\n // form query for creating table\n $this->create_table($table_name);\n\n // form query for creating table fields\n $this->create_table_fields($table_fields);\n\n // execute query\n return $this->run_query();\n }\n break;\n\n default:\n # code...\n break;\n }\n }\n }", "title": "" }, { "docid": "07eca97b1c14541264a116eeaa314e9b", "score": "0.60083884", "text": "function createTables()\n {\n $this->createUserTable();\n $this->createConversationTable();\n $this->createPostTable();\n $this->createShortcutTable();\n $this->createParticipantTable();\n }", "title": "" }, { "docid": "29df9a3f20f4f3039321522874d75c58", "score": "0.6008078", "text": "public function setUp() :void\n {\n parent::setUp();\n\n Document::create($this->document_data);\n\n $this->assertDatabaseHas((new Document())->getTable(),\n $this->document_data\n );\n }", "title": "" }, { "docid": "0b92c5fd6d6297f6f93e1e1042146e61", "score": "0.6002624", "text": "abstract protected function set_up_tables();", "title": "" }, { "docid": "0b92c5fd6d6297f6f93e1e1042146e61", "score": "0.6002624", "text": "abstract protected function set_up_tables();", "title": "" }, { "docid": "9dd7509afe278bf136ad02bf779820f8", "score": "0.60011625", "text": "public function test_start() {\n $db = new DB();\n $db->statement('CREATE DATABASE IF NOT EXISTS test');\n $this->assertEquals('',$db->getErrorMsg());\n }", "title": "" }, { "docid": "0863845461cd2127ce1cec5ed7c4f6ce", "score": "0.5998237", "text": "protected function setUp()\n\t{\n\t\tparent::setUp();\n\n\t\t$options = array(\n\t\t\t'driver' => 'sqlite',\n\t\t\t'database' => ':memory:',\n\t\t\t'prefix' => 'ws_'\n\t\t);\n\n\t\t$driver = JDatabaseDriver::getInstance($options);\n\n\t\t$pdo = new PDO('sqlite::memory:');\n\t\t$pdo->exec(file_get_contents(JPATH_TESTS . '/schema/ws.sql')) or die(print_r($pdo->errorInfo()));\n\n\t\tTestReflection::setValue($driver, 'connection', $pdo);\n\t\tJFactory::$database = $driver;\n\t\tJFactory::$application = $this->getMockWeb();\n\n\t\t$type = 'general';\n\t\t$testInput = new JInput;\n\t\t$testMock = MockWebServiceApplicationWeb::create($this);\n\t\t$this->_instance = new WebServiceControllerV1JsonBaseCreate($type, $testInput, $testMock);\n\t}", "title": "" }, { "docid": "5eb5815544ee5545a909cf8d535e0a3a", "score": "0.59919983", "text": "protected function setUp(): void\n {\n parent::setUp();\n $this->dropTables()->createTables();\n }", "title": "" }, { "docid": "620bfa96665e711a2a29406127921cb0", "score": "0.5990364", "text": "protected function setUp()\n {\n $target = new \\Yana\\Db\\NullConnection($this->connection->getSchema(), \\Yana\\Db\\DriverEnumeration::MYSQL);\n $this->object = new \\Yana\\Db\\Export\\QueryFactory($this->connection, $target);\n }", "title": "" }, { "docid": "c312d8a36a1cbaac149b5fb063adcdf9", "score": "0.5990271", "text": "protected function setUp()\r\n {\r\n $this->app = (new KerosApp())->getApp();\r\n $sql = file_get_contents(AppTestCase::$dbDataFileLocation);\r\n AppTestCase::$db->exec($sql);\r\n }", "title": "" }, { "docid": "3ec3b9fe8947b63384f85b2d42fbe49e", "score": "0.5986727", "text": "public function run()\n {\n factory(Setting::class, 15)->create();\n factory(Vehicle::class, 15)->create();\n factory(Rental::class, 15)->states('forCreate')->create();\n }", "title": "" }, { "docid": "4b122f7010152fd988d6fd4a67737882", "score": "0.5979265", "text": "protected function setUpDatabase(): void\n {\n $this->resetDatabase();\n }", "title": "" }, { "docid": "a4465ff77548a9725a66dceba2ed87c9", "score": "0.5972953", "text": "public function setUp()\n\t{\n\t\t\\Hubzero\\Database\\Relational::setDefaultConnection($this->getMockDriver());\n\t}", "title": "" }, { "docid": "44009b816a87cc02ef9aa9ddded1f96a", "score": "0.5971499", "text": "public function setUp()\r\n {\n $db = Zend_Registry::get('db');\r\n TestConfiguration::setupDatabase($db);\r\n }", "title": "" }, { "docid": "a74aeb45fccf2cf9ce9d04c187561db5", "score": "0.59704477", "text": "public function setUp()\n {\n parent::setUp();\n $app = new Application();\n $app->register(new DoctrineServiceProvider(), array(\n 'db.options' => array(\n 'driver' => 'pdo_sqlite',\n 'memory' => true,\n ),\n ));\n $this->conn = $app['db'];\n $this->userManager = new UserManager($app['db'], $app);\n $this->migrator = new MigrateV1ToV2($this->conn);\n\n // Set up v1 schema.\n $this->conn->executeUpdate(file_get_contents(__DIR__ . '/files/v1-sqlite.sql'));\n }", "title": "" }, { "docid": "5d4829b32317a80634fb8bd4dcf6aa1b", "score": "0.5962675", "text": "public function setUp()\n {\n parent::setUp();\n\n $this->schema = $this->app[ 'db' ]->connection()->getSchemaBuilder();\n $this->runTestMigrations();\n\n $this->beforeApplicationDestroyed( function () {\n $this->rollbackTestMigrations();\n } );\n }", "title": "" }, { "docid": "c56038db0e1dfecc5dc81b4d26b9ff22", "score": "0.59625113", "text": "private function setUpDatabaseFixture(): void\n {\n $fixture = file_get_contents(__DIR__ . '/Database/fixture.sql');\n $this->database->query($fixture);\n }", "title": "" }, { "docid": "9065572fb790ff6950ab0eaf8a4f7141", "score": "0.5962087", "text": "private static function create_tables()\n {\n }", "title": "" }, { "docid": "2a27a9771a955e1c281ae42a6a797bec", "score": "0.59590495", "text": "protected function setUp()\n {\n $this->object = new Tables;\n }", "title": "" }, { "docid": "835fa9bab9511256822afd0236185f94", "score": "0.5957052", "text": "protected function setUp(): void {\n if( in_array ( 'pdo_mysql', get_loaded_extensions() ) ) {\n $dsn = \"mysql:host=localhost;dbname=topmafia;charset=utf8\";\n $opt = array(\n \\PDO::ATTR_ERRMODE => \\PDO::ERRMODE_EXCEPTION,\n \\PDO::ATTR_DEFAULT_FETCH_MODE => \\PDO::FETCH_ASSOC\n );\n try {\n $this->_db_conn = new \\PDO( $dsn, \"topmafia\", \"topmafia\", $opt );\n } catch ( PDOException $pdoe ) {}\n } \n }", "title": "" }, { "docid": "c261264895526fbc7517be0dee865d99", "score": "0.5951716", "text": "public function run()\n {\n factory(categorie::class)->create();\n factory(localite::class)->create();\n factory(localite::class)->create(['nom'=>\"Bobo\"]);\n factory(domaine::class)->create();\n factory(structure::class)->create();\n factory(structure::class)->create([\"nom\"=>\" Pathfinder International\"]);\n factory(secteur::class)->create();\n factory(secteur::class)->create(['nom'=>'publique']);\n }", "title": "" }, { "docid": "2a6f5393de487667307a9a1ca03559c7", "score": "0.59437674", "text": "public final function setUp() {\n\t\t// run the default abstract setUp() method from parent first\n\t\tparent::setUp();\n\n\n\t\t// create and insert a Profile to own the test strainFavorite\n\t\t$password = \"abc123\";\n\t\t$salt = bin2hex(random_bytes(32));\n\t\t$hash = hash_pbkdf2(\"sha512\", $password, $salt, 262144, 128);\n\t\t$activation = bin2hex(random_bytes(16));\n\t\t$this->profile = new Profile(null, \"profileUserName\", \"profileEmail\", $hash, $salt, $activation);\n\t\t$this->profile -> insert($this->getPDO());\n\n\t\t// create and insert a Strain to Favorite the test strainFavorite\n\t\t$this->strain = new Strain(null, \"dankestbud\", \"Sativa\", \"32.5\", \"0.8\", \"some good stuff 10/10\");\n\t\t$this->strain->insert($this->getPDO());\n\n\t}", "title": "" }, { "docid": "eb8ac991ba76254a2e42acc01ce23152", "score": "0.5942038", "text": "public function run()\n {\n factory(User::class, 10)->create();\n factory(blogpost::class, 25)->create();\n factory(categorie::class, 25)->create();\n factory(tag::class, 25)->create();\n }", "title": "" }, { "docid": "5822a07ebece50f0df4ab478f49a6ea0", "score": "0.5941305", "text": "public function setUp()\n {\n $this->di = new \\Anax\\DI\\DIFactoryConfig(\"diTest.php\");\n $this->create = new CreateUserForm($this->di);\n }", "title": "" }, { "docid": "47c407569e6af35c2b09a5115bf6b72a", "score": "0.59375393", "text": "protected function setUp() {\r\n\t\t//use test db - otherwise tests will run on the frameworks normal database\r\n\t\tvDb::loadTestDb();\r\n\t\t//$this->object = new ctg_run_checklist_item;\r\n\t\tprint_ln(__METHOD__.\" starting.\");\r\n\t\t$this->clean_up_db();\r\n\t\tprint_ln(__METHOD__.\" complete.\");\r\n\t}", "title": "" }, { "docid": "c48af4b246f82d56111f4469516ed2bf", "score": "0.59350586", "text": "protected function setUp() {\n $this->object = new DbTest;\n }", "title": "" }, { "docid": "afcc247b40c2a7ff867a1e567850082d", "score": "0.59337777", "text": "public function testConstructorSetsCorrectDatabaseObject()\n\t{\n\t\t$dbo = TestReflection::getValue($this->fixture, '_db');\n\t\t$this->assertInstanceOf('JDatabaseDriver', $dbo);\n\t}", "title": "" }, { "docid": "7cfca3efb725dab7998b0804df5e7a6b", "score": "0.5928954", "text": "public function setUp() {\r\n $this->modx = FiTestHarness::_getConnection();\r\n $fiCorePath = $this->modx->getOption('formit.core_path',null,$this->modx->getOption('core_path',null,MODX_CORE_PATH).'components/formit/');\r\n require_once $fiCorePath.'model/formit/formit.class.php';\r\n $this->formit = new FormIt($this->modx);\r\n /* set this here to prevent emails/headers from being sent */\r\n $this->formit->inTestMode = true;\r\n /* make sure to reset MODX placeholders so as not to keep placeholder data across tests */\r\n $this->modx->placeholders = array();\r\n }", "title": "" }, { "docid": "736387572dd2bb23f255efc61f2c52e1", "score": "0.59280473", "text": "public function testDatabase()\n\t{\n\t\t $this->assertDatabaseHas('tasks_collection', [\n\t\t 'name' => 'task1'\n\t\t]);\n\t}", "title": "" }, { "docid": "67a8292a1b25628c4ea161e871d07be3", "score": "0.59278893", "text": "public function run()\n {\n factory(\\App\\Table::class, 32)\n ->create()\n ->each(function (\\App\\Table $table) {\n factory(\\App\\User::class, 4)->create([\n 'table_id' => $table->id,\n ]);\n });\n }", "title": "" }, { "docid": "43a05d864d48cff888cfabca7d6eb407", "score": "0.59276515", "text": "public function setUp() {\n // Set up the dummy database connections\n ORM::set_db(new MockPDO('sqlite::memory:'));\n ORM::set_db(new MockDifferentPDO('sqlite::memory:'), self::ALTERNATE);\n\n // Enable logging\n ORM::configure('logging', true);\n ORM::configure('logging', true, self::ALTERNATE);\n ORM::configure('caching', true);\n ORM::configure('caching', true, self::ALTERNATE);\n }", "title": "" }, { "docid": "9b38b528c88de983c03050519f4f3cf2", "score": "0.5926801", "text": "protected function setUp()\n {\n $this->o = new ActiveRecordField;\n $this->cols = array(\n 'adapter_type' => 'mysql',\n 'type' => 'VARCHAR',\n 'size' => 100,\n 'null' => 'YES',\n 'key' => 'PK',\n 'key_name' => 'PRIMARY',\n 'default' => '',\n 'extra' => 'auto_increment'\n );\n }", "title": "" }, { "docid": "f115f9467e5f37dfd18dccafd46fd07f", "score": "0.59243625", "text": "public function setup()\n {\n $drop_old_users_table = \"DROP TABLE IF EXISTS users\";\n mysql_query($drop_old_users_table);\n $create_user_table = \"CREATE TABLE users(id INT NOT NULL AUTO_INCREMENT,name VARCHAR(255) NOT NULL,email VARCHAR(255) NOT NULL,password VARCHAR(255)NOT NULL,primary key(id));\";\n mysql_query($create_user_table);\n echo 'Successfully created table users<br/>';\n //setup the table notes\n $drop_old_notes_table = \"DROP TABLE IF EXISTS notes\";\n mysql_query($drop_old_notes_table);\n $create_notes_table = \"CREATE TABLE notes(id INT NOT NULL AUTO_INCREMENT,title VARCHAR(255) NOT NULL,name VARCHAR(255) NOT NULL,content VARCHAR(255)NOT NULL,created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,primary key(id));\";\n mysql_query($create_notes_table);\n echo 'Successfully created table notes<br/>';\n echo 'Done<br/>';\n }", "title": "" }, { "docid": "dcc1f4ad8d974cbcc30d4ec73f316bff", "score": "0.5921764", "text": "public final function setUp() {\n\t\t//run the default setUp() method first --beep\n\t\tparent::setUp();\n\n\t\t//create and insert a Profile to own the test Employ\n\t\t$password = \"abc123\";\n\t\t$salt = bin2hex(random_bytes(16));\n\t\t$hash = hash_pbkdf2(\"sha512\", $password, $salt, 262144);\n\n\t\t$this->profile = new Profile(null, \"Loren\", \"[email protected]\", \"5057303164\", \"0000000000000000000000000000000000000000000000000000000000004444\", \"00000000000000000000000000000022\",\"a\", $hash, $salt);\n\t\t$this->profile->insert($this->getPDO());\n\n\t\t$pdoProfile = Profile::getProfileByProfileId($this->getPDO(), $this->profile->getProfileId());\n\n\t\t//create and insert a Company to own the test Employ\n\t\t$this->company = new Company(null, $pdoProfile->getProfileId(), \"Terry's Tacos\", \"[email protected]\", \"5052345678\", \"12345\", \"2345\", \"attn: MR taco\", \"345 Taco Street\", \"taco street 2\", \"Albuquerque\", \"NM\", \"87654\", \"We are a Taco truck description\", \"Tacos, Tortillas, Burritos\",\"848484\", 0);\n\t\t$this->company->insert($this->getPDO());\n\t}", "title": "" }, { "docid": "7ba895ca7ed92d172215da9b7df2c720", "score": "0.590993", "text": "public function test_database() {\n\t\t\n\t\tif(IN_PRODUCTION) die('This method can not be run while in poduction.');\n\t\t\n\t\tif(REMOTE_DB) die('This method can not be run on the remote database.');\n\t\t\n\t\t/*\n\t\tIf running simpletest from this example controller, a copy of SimpleTest \n\t\tneeds to be downloaded and put in the following location.\n\t\t*/\n\t\t$simpletest_path = DOC_ROOT.\"shared/vendors/simpletest/autorun.php\";\n\t\t\n\t\tif(file_exists($simpletest_path)) {\n\t\t\tinclude($simpletest_path);\n\t\t}\n\t\telse {\n\t\t\tdie('simpletest could not be located at '.$simpletest_path);\n\t\t}\n\t\t\n\t\t# Run tests\n\t\t$test = New DB_Test();\n\t\t\t\n\t}", "title": "" }, { "docid": "883dfa2c33713231c053bd8515ffcd5a", "score": "0.5905336", "text": "protected function setUpTable()\n {\n $pdo = $this->getConnection()->getConnection();\n \n $pdo->exec('set sql_mode = \"\"');\n\n $sql = \"CREATE TABLE IF NOT EXISTS guestbook (\n id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY,\n content VARCHAR(50) NOT NULL,\n user VARCHAR(50) NOT NULL,\n created_date DATETIME NOT NULL\n )\";\n\n $pdo->exec($sql);\n \n $pdo->exec('TRUNCATE TABLE guestbook');\n }", "title": "" }, { "docid": "c83655d4134e692604968a99eb569e42", "score": "0.58992976", "text": "public function setup()\n {\n CRUD::setModel(\\App\\Models\\SubmissionFormDetail::class);\n CRUD::setRoute(config('backpack.base.route_prefix') . '/submissionformdetail');\n CRUD::setEntityNameStrings('submissionformdetail', 'submission_form_details');\n }", "title": "" }, { "docid": "b525b586063d927db671c30f5462e195", "score": "0.5890722", "text": "public function setUp() {\n $this->clientKohanaDb = new ClientKohanaDb(new Database());\n }", "title": "" } ]
d30e4155923737b5a7cdb1b2531f1d72
/////////////////////////////////////////// ///// MAIN SCRIPT & CSS INCLUDES ////////// /////////////////////////////////////////// global script enqueuing
[ { "docid": "3ba34dc787325a9d9c1b67c236430a4f", "score": "0.0", "text": "function ag_admin_scripts() {\n\twp_enqueue_style('ag_admin', AG_URL . '/css/admin.css', 999, AG_VER);\n\twp_enqueue_style('ag_settings', AG_URL . '/settings/settings_style.css', 999, AG_VER);\t\n\t\n\t// chosen\n\twp_enqueue_style( 'lcwp-chosen-style', AG_URL.'/js/chosen/chosen.css', 999);\n\t\n\t// lcweb switch\n\twp_enqueue_style( 'lc-switch', AG_URL.'/js/lc-switch/lc_switch.css', 999);\n\t\n\t// colorpicker\n\twp_enqueue_style( 'ag-colpick', AG_URL.'/js/colpick/css/colpick.css', 999);\n\t\n\t\n\twp_enqueue_script('jquery-ui-sortable');\n\twp_enqueue_script('jquery-ui-slider');\n\t\n\t\n\t// lightbox and thickbox\n\tif(function_exists('wp_enqueue_media')) {\n\t\twp_enqueue_media();\t\n\t}\n\twp_enqueue_style('thickbox');\n\twp_enqueue_script('thickbox');\n\t\n\twp_enqueue_style('ag_fontawesome', AG_URL . '/css/font-awesome/css/font-awesome.min.css', 999, '4.7.0');\n}", "title": "" } ]
[ { "docid": "a83cce7431991001fa0d2cf1dc8057c1", "score": "0.7126979", "text": "public function enqueueScripts() {\n\t\t// We don't want any plugin adding notices to our screens. Let's clear them out here.\n\t\tremove_all_actions( 'admin_notices' );\n\t\tremove_all_actions( 'all_admin_notices' );\n\n\t\t// Scripts.\n\t\taioseo()->helpers->enqueueScript(\n\t\t\t'aioseo-vendors',\n\t\t\t'js/chunk-vendors.js'\n\t\t);\n\t\taioseo()->helpers->enqueueScript(\n\t\t\t'aioseo-common',\n\t\t\t'js/chunk-common.js'\n\t\t);\n\t\taioseo()->helpers->enqueueScript(\n\t\t\t'aioseo-connect-script',\n\t\t\t'js/connect.js'\n\t\t);\n\n\t\t// Styles.\n\t\t$rtl = is_rtl() ? '.rtl' : '';\n\t\taioseo()->helpers->enqueueStyle(\n\t\t\t'aioseo-vendors',\n\t\t\t\"css/chunk-vendors$rtl.css\"\n\t\t);\n\t\taioseo()->helpers->enqueueStyle(\n\t\t\t'aioseo-common',\n\t\t\t\"css/chunk-common$rtl.css\"\n\t\t);\n\t\t// aioseo()->helpers->enqueueStyle(\n\t\t// 'aioseo-connect-style',\n\t\t// \"css/connect$rtl.css\"\n\t\t// );\n\t\t// aioseo()->helpers->enqueueStyle(\n\t\t// 'aioseo-connect-vendors-style',\n\t\t// \"css/chunk-connect-vendors$rtl.css\"\n\t\t// );\n\n\t\twp_localize_script(\n\t\t\t'aioseo-connect-script',\n\t\t\t'aioseo',\n\t\t\taioseo()->helpers->getVueData()\n\t\t);\n\t}", "title": "" }, { "docid": "4f4dc83752742d7f524ed58f57d60c9c", "score": "0.7052057", "text": "function _as_scripts() {\n\twp_enqueue_style( '_as-style', get_stylesheet_uri() );\n\n\twp_enqueue_script( '_as-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true );\n\n\twp_enqueue_script( '_as-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );\n\t\n\twp_enqueue_script( 'smooth-scroll', get_template_directory_uri() . '/js/smooth-scroll.js', array(), '0.1', true );\n\n\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\twp_enqueue_script( 'comment-reply' );\n\t}\n}", "title": "" }, { "docid": "70feee2964dca61eb7da23f470bdb5bb", "score": "0.70482844", "text": "function harmony_scripts() {\n\t\t// Enqueue styles\n\t\twp_enqueue_style( 'harmony-style', get_stylesheet_uri() );\n\t\t// Enqueue scripts\n\t\twp_enqueue_script('jquery');\n\t\twp_enqueue_script('harmony-mainjs', HARMONY_THEME_DIR . '/lib/js/min/main.min.js', array('jquery'),'', true );\n\n\t\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\t\twp_enqueue_script( 'comment-reply' );\n\t\t}\n\t}", "title": "" }, { "docid": "a65997cc869c6baedb36cfbeed5121e9", "score": "0.6972406", "text": "function tc_scripts() {\r\n\t \t//record for debug\r\n\t \ttc__f('rec' , __FILE__ , __FUNCTION__, __CLASS__ );\r\n\r\n\t wp_enqueue_script( 'jquery' );\r\n\r\n\t wp_enqueue_script( 'jquery-ui-core' );\r\n\r\n\t wp_enqueue_script( 'bootstrap' ,TC_BASE_URL . 'inc/js/bootstrap.min.js' ,array( 'jquery' ),null, $in_footer = true);\r\n\t \r\n\t //tc scripts\r\n\t wp_enqueue_script( 'tc-scripts' ,TC_BASE_URL . 'inc/js/tc-scripts.min.js' ,array( 'jquery' ),null, $in_footer = true);\r\n\r\n\t //holder image\r\n\t wp_enqueue_script( 'holder' ,TC_BASE_URL . 'inc/js/holder.js' ,array( 'jquery' ),null, $in_footer = true);\r\n\r\n\t //modernizr (must be loaded in wp_head())\r\n\t wp_enqueue_script( 'modernizr' ,TC_BASE_URL . 'inc/js/modernizr.min.js' ,array( 'jquery' ),null, $in_footer = false);\r\n\r\n\t }", "title": "" }, { "docid": "f3fcb0875c979d86c692b61e47f249f4", "score": "0.69172955", "text": "function block__javascript_tool_includes() { \n // https://varvy.com/pagespeed/defer-loading-javascript.html\n //echo '<script src=\"js/idle_refresh_plainjs.js\" type=\"text/javascript\" language=\"javascript\"></script>';\n echo '<script src=\"js/idle_refresh_jquery.js\" type=\"text/javascript\" language=\"javascript\"></script>';\n //echo '<script src=\"js/handler-save1a.js\" type=\"text/javascript\" language=\"javascript\"></script>';\n }", "title": "" }, { "docid": "45cb904da92b5b68dfb2cf82ba020b4f", "score": "0.6913709", "text": "public function enqueue_scripts() {\n\t\t// wp_enqueue_script('infinite-scroll-script', plugins_url('includes/js/infinite-scroll.pkgd.min.js', BRANZEL_GOOGLEAPI__FILE__), array( 'jquery' ), Branzel_GoogleAPI::version, false );\n\t\twp_enqueue_script('lightgallery-script', plugins_url('includes/js/lightgallery.min.js', BRANZEL_GOOGLEAPI__FILE__), array( 'jquery' ), Branzel_GoogleAPI::version, false );\n\t\twp_enqueue_script('lightgallery-all-script', plugins_url('includes/js/lightgallery-all.min.js', BRANZEL_GOOGLEAPI__FILE__), array( 'jquery', 'lightgallery-script' ), Branzel_GoogleAPI::version, false );\n\t\twp_enqueue_script('mousewheel-script', 'https://cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js', array( 'jquery' ), '3.1.13', false );\n\t\t\n\t\twp_enqueue_script('masonry-script', plugins_url('includes/js/masonry.pkgd.min.js', BRANZEL_GOOGLEAPI__FILE__), array( 'jquery' ), Branzel_GoogleAPI::version, false );\n\t\twp_enqueue_script('imagesloaded-script', plugins_url('includes/js/imagesloaded.pkgd.min.js', BRANZEL_GOOGLEAPI__FILE__), array( 'jquery' ), Branzel_GoogleAPI::version, false );\n\t}", "title": "" }, { "docid": "5823fb3d438a14491d7cd229cbf1e05c", "score": "0.6912011", "text": "public function scripts() {\n\t\t// Styles.\n\t\t$my_css_ver = gmdate( 'ymd-Gis', filemtime( plugin_dir_path( __FILE__ ) . '/css/additional.min.css' ) );\n\t\twp_enqueue_style(\n\t\t\t'conversions-additional-css',\n\t\t\tplugin_dir_url( __FILE__ ) . 'css/additional.min.css',\n\t\t\tarray(),\n\t\t\t$my_css_ver\n\t\t);\n\t}", "title": "" }, { "docid": "7ef58de508f43275e24f032552693019", "score": "0.6910942", "text": "function scripts()\n{\n $cssFilePath = glob(get_template_directory() . '/css/main.min.*');\n $cssFileURI = get_template_directory_uri() . '/css/' . basename($cssFilePath[0]);\n wp_enqueue_style('site_main_css', $cssFileURI);\n\n // include the javascript file\n $jsFilePath = glob(get_template_directory() . '/js/script.min.*.js');\n $jsFileURI = get_template_directory_uri() . '/js/' . basename($jsFilePath[0]);\n\n wp_enqueue_script('site_main_js', $jsFileURI, null, null, true);\n}", "title": "" }, { "docid": "e5cf44b9720f0ae2b2a5ec54c5204227", "score": "0.6891339", "text": "function echo_scripts() {\n\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\twp_enqueue_script( 'comment-reply' );\n\t}\n\n\t// if ( is_singular() && wp_attachment_is_image() ) {\n\t// \twp_enqueue_script( 'echo-keyboard-image-navigation', get_template_directory_uri() . '/assets/vendor/js/keyboard-image-navigation.js', array( 'jquery' ), '20160412', true );\n\t// }\n\n // wp_enqueue_script( 'echo-vendors', get_template_directory_uri() . '/assets/js/vendors.js', array(), '20160412', true );\n\twp_enqueue_script( 'echo-script', get_template_directory_uri() . '/assets/' . latestMedia()['js'], array('jquery'), '20170326', true );\n\n\twp_localize_script( 'echo-vendors', 'screenReaderText', array(\n\t\t'expand' => __( 'expand child menu', 'echo' ),\n\t\t'collapse' => __( 'collapse child menu', 'echo' ),\n\t) );\n}", "title": "" }, { "docid": "db2d1732e7c2222c38450e604575e793", "score": "0.68875015", "text": "function underConstructionEnqueueScripts()\n\t{\n\t\twp_enqueue_script('scriptaculous');\n\t\twp_enqueue_script('underConstructionJS');\n\t}", "title": "" }, { "docid": "62d5752a0ff81dc44c7a8518901f97dc", "score": "0.6881261", "text": "function ecomm_scripts_styles() {\n\t\t/*\n\t\t\tEnqueue Scripts\n\t\t\twp_enqueue_script('script-name', get_template_directory_uri() . '/js/script-name.js', array('jquery'), null, true);\n\n\t\t\tEnqueue Stylesheet\n\t\t\twp_enqueue_style('style-name', get_template_directory_uri() . '/style-name.css', false, null);\n\t\t*/\n\t\twp_enqueue_script('ip-script', get_template_directory_uri() . '/js/theme.min.js', array('jquery'), null, true);\n\t\twp_enqueue_style( 'font-awesome', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css', false, null );\n\t\twp_enqueue_style( 'google-fonts', 'https://fonts.googleapis.com/css?family=Montserrat:400,400i,500,500i,600,600i,700,700i,800,800i,900,900i', false, null );\n\t\twp_enqueue_style('ip-style', get_template_directory_uri() . '/css/global.css', false, null);\n\t\twp_localize_script( 'ip-script', 'ajax_call', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) );\n\t}", "title": "" }, { "docid": "602718b53e1d23fbd2bd5d80d4f0022c", "score": "0.687384", "text": "function gp_load_style_scripts() {\n\t\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\t\twp_enqueue_script( 'comment-reply' );\n\t\t}\n\n\t wp_register_script('modernizr', get_template_directory_uri().'/js/modernizr-2.6.2.min.js','1.0', 'all');\n\t\twp_register_script('gumby', get_template_directory_uri().'/js/gumby.min.js','1.0', 'all', true);\n\t\twp_register_script('maps', get_template_directory_uri().'/js/maps.js','1.0', 'all', true);\n\t wp_enqueue_script( 'modernizr');\n\t wp_enqueue_script( 'jquery' );\n\t wp_enqueue_script( 'gumby' );\n\t wp_enqueue_script( 'maps' );\n\n\t\twp_register_style('gumby', get_template_directory_uri().'/css/gumby.css','1.0', 'all');\n\t\twp_register_style('gumby', get_template_directory_uri().'/css/font-awesome.min.css','2.0', 'all');\n\n\t wp_enqueue_style( 'gumby' );\n\t\twp_enqueue_style( 'style', get_stylesheet_uri() );\n\n\t}", "title": "" }, { "docid": "00a58f6c29aef1acf2b4bc2c69737db7", "score": "0.68724036", "text": "function hail_scripts() {\n\twp_enqueue_style( 'hail-style', get_stylesheet_uri() );\n\t\n\twp_enqueue_style( 'hail-bootstraap_style', get_template_directory_uri().'/css/bootstrap.min.css' );\n\n\twp_enqueue_script( 'hail-bootstraap-min-js', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), '3.3.6', true );\n\t\n\twp_enqueue_script( 'hail-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true );\n\n\twp_enqueue_script( 'hail-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );\n\n\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\twp_enqueue_script( 'comment-reply' );\n\t}\n}", "title": "" }, { "docid": "51b755eb597170b53d1e8bd3d3f133a6", "score": "0.6868761", "text": "public function enqueue_all(){\n wp_enqueue_script('fr-global-scripts', FAVORITE_RECIPES_URL . 'dist/global.js?2', array(), true);\n wp_enqueue_style('fr-global-styles', FAVORITE_RECIPES_URL . 'dist/global.css', '1.00' , 'all');\n wp_localize_script( 'fr-global-scripts', 'WP', [\n 'userId' => get_current_user_id(),\n ] );\n wp_enqueue_script('fr-account-page-script', FAVORITE_RECIPES_URL . 'dist/account-page.js', array(), true);\n wp_enqueue_style('fr-account-page-styles', FAVORITE_RECIPES_URL . 'dist/account-page.css', '1.00' , 'all');\n\n }", "title": "" }, { "docid": "a89506ac62d8ce7750ca7243af1fc7f2", "score": "0.6863135", "text": "function identity_load_theme_scripts() {\r\n\tglobal $is_IE;\r\n\r\n\t\r\n\twp_enqueue_script('jquery.visible', get_template_directory_uri().'/js/jquery.visible.js',false,false,true);\t\r\n\t\r\n\twp_enqueue_script('prof.common', get_template_directory_uri().'/js/prof.common.js',false,false,true);\t\t\r\n\twp_enqueue_script('retina', get_template_directory_uri().'/js/retina.js', '', '', true);\t\t\r\n\t\r\n\t\t\r\n\t\t\r\n\twp_enqueue_script('scripts-top', get_template_directory_uri().'/js/identity/scripts-top.js', '', '', true);\r\n\t\r\n\twp_enqueue_script('scripts-bottom', get_template_directory_uri().'/js/identity/scripts-bottom.js', '', '', true);\r\n\twp_enqueue_script('bootstrap.min', get_template_directory_uri().'/js/identity/bootstrap.min.js', '', '', true);\r\n\twp_enqueue_script('jquery.isotope.min', get_template_directory_uri().'/js/identity/jquery.isotope.min.js', '', '', true);\r\n\twp_enqueue_script('jquery.sticky', get_template_directory_uri().'/js/identity/jquery.sticky.js', '', '', true);\r\n\twp_enqueue_script('jquery.nicescroll.min', get_template_directory_uri().'/js/identity/jquery.nicescroll.min.js', '', '', true);\r\n\twp_enqueue_script('jquery.flexslider.min', get_template_directory_uri().'/js/identity/jquery.flexslider.min.js', '', '', true);\r\n\twp_enqueue_script('jquery.validate.min', get_template_directory_uri().'/js/identity/jquery.validate.min.js', '', '', true);\r\n\twp_enqueue_script('mapsgoogle', '//maps.googleapis.com/maps/api/js?sensor=false', '', '', true);\r\n\twp_enqueue_script('gmap-settings', get_template_directory_uri().'/js/identity/gmap-settings.js', '', '', true);\t\r\n\twp_enqueue_script('script', get_template_directory_uri().'/js/identity/script.js', '', '', true);\t\t\r\n\t\t\r\n\t\r\n \twp_enqueue_script('numinate', get_template_directory_uri().'/js/numinate.js', '', '', true); \r\n \r\n \r\n\tif ( $is_IE ) {\r\n\t\twp_enqueue_script('html5','http://html5shim.googlecode.com/svn/trunk/html5.js',false,false,true);\r\n\t}\r\n\r\n}", "title": "" }, { "docid": "2192a2296f5569ef2b9c9e849043007f", "score": "0.6856026", "text": "function ff_base_scripts() {\n\t\t// Get the theme data.\n\t\t$the_theme = wp_get_theme();\n\t\twp_enqueue_style( 'ff_base-styles', get_stylesheet_directory_uri() . '/assets/css/theme.min.css', array(), $the_theme->get( 'Version' ) );\n\t\twp_enqueue_script( 'jquery');\n\t\twp_enqueue_script( 'popper-scripts', get_template_directory_uri() . '/assets/js/popper.min.js', array(), true);\n\t\twp_enqueue_script( 'ff_base-scripts', get_template_directory_uri() . '/assets/js/theme.min.js', array(), $the_theme->get( 'Version' ), true );\n\t\twp_enqueue_script( 'ff_base-custom-scripts', get_template_directory_uri() . '/assets/js/custom.min.js', array(), true );\n\t\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\t\twp_enqueue_script( 'comment-reply' );\n\t\t}\n\t}", "title": "" }, { "docid": "3609f7c55b93d8db3bff40ed232c8268", "score": "0.6854261", "text": "function cj_base_scripts() {\n\twp_enqueue_style( 'cj-base-style', get_stylesheet_uri(), array(), _S_VERSION );\n\twp_style_add_data( 'cj-base-style', 'rtl', 'replace' );\n//\twp_enqueue_style ('theme-style', get_template_directory_uri() .'/inc/boostrap-grid.css');\n\n\n\n\twp_enqueue_script( 'jquery' );\n\twp_enqueue_script( 'cj-base-navigation', get_template_directory_uri() . '/js/navigation.js', array(), _S_VERSION, true );\n\twp_enqueue_script( 'cj-base-main-js', get_template_directory_uri() . '/js/main.js', array(), _S_VERSION, true );\n\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\twp_enqueue_script( 'comment-reply' );\n\t}\n}", "title": "" }, { "docid": "356e8895569845fd27b682881cd42ef1", "score": "0.6850487", "text": "function tmf_enqueue_general_scripts() {\n\n\t\t//TMF CUSTOM JS REGISTER\n\t\twp_register_script('jquery.nicescroll.js', get_stylesheet_directory_uri() . '/js/jquery.nicescroll.js', 'jquery', NULL, FALSE);\n\t\twp_register_script('tmfcustomjs', get_stylesheet_directory_uri() . '/js/tmfcustom.js?ver=5', 'jquery', NULL, FALSE);\n\n\t // TMF CUSTOM JS ENQUEUE\n\t\tif (! is_page_template( 'pricingt.php' ) || ! is_page_template( 'agendag.php' )) {\n\t\twp_enqueue_script('jquery.nicescroll.js');\n\t\twp_enqueue_script('tmfcustomjs?ver=5');\n\t\t}\n\t}", "title": "" }, { "docid": "554b818751300fb760a3d746797f8b16", "score": "0.684627", "text": "public function load_scripts() {\r\n \r\n //wp_enqueue_style( 'vc-extend-style', plugin_dir_url( __FILE__ ) . '/css/vc-extend.css');\r\n \r\n }", "title": "" }, { "docid": "113436e2d82d4c9519efe24fb2d4fe63", "score": "0.6826809", "text": "function cg_starter_scripts() {\n\t// theme style.css file\n\twp_enqueue_style( 'cg-starter-style', get_stylesheet_uri() );\n\t\n\t// threaded comments\n\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\twp_enqueue_script( 'comment-reply' );\n\t}\n\t// vendor scripts\n//\twp_enqueue_script(\n//\t\t'vendor',\n//\t\tget_template_directory_uri() . '/assets/vendor/newscript.js',\n//\t\tarray('jquery')\n//\t);\n\t// theme scripts\n//\twp_enqueue_script(\n//\t\t'theme-init',\n//\t\tget_template_directory_uri() . '/assets/theme.js',\n//\t\tarray('jquery')\n//\t);\n}", "title": "" }, { "docid": "76efee08e588c2e4143253fa761a933b", "score": "0.68186855", "text": "public function scripts() {\n\t\t$screen = get_current_screen();\n\n\t\tif ( 'agenda' === $screen->id ) {\n\t\t\twp_enqueue_script( 'jquery-ui-core' );\n\t\t\twp_enqueue_script( 'jquery-ui-datepicker' );\n\n\t\t\twp_enqueue_style( 'jquery-ui-agenda-styles', plugins_url( 'assets/css/agenda-jquery-ui-styles.css', plugin_dir_path( dirname( __FILE__ ) ) ), array(), '' );\n\t\t\twp_enqueue_script( 'agenda-calendar', plugins_url( 'assets/js/agenda-admin-metabox.js', plugin_dir_path( dirname( __FILE__ ) ) ), array( 'jquery' ), '', true );\n\t\t}\n\n\t\tif ( 'agenda-categoria' === $screen->taxonomy ) {\n\t\t\twp_enqueue_style( 'wp-color-picker' );\n\t\t\twp_enqueue_script( 'wp-color-picker' );\n\t\t\twp_enqueue_script( 'agenda-taxonomy', plugins_url( 'assets/js/agenda-taxonomy.js', plugin_dir_path( dirname( __FILE__ ) ) ), array( 'jquery', 'wp-color-picker' ), '', true );\n\t\t}\n\t}", "title": "" }, { "docid": "0ff84eba236d84ca350ec5f9ebcd6ae8", "score": "0.6814579", "text": "public function etc_register_scripts() {\n\t\twp_register_style( 'etc-admin-style', plugin_dir_url( __FILE__ ) . 'includes/etc-admin-style.css' );\n\t\t// Default style for the cookies advertising message\n\t// wp_register_style( 'etc-style', plugin_dir_url( __FILE__ ) . 'includes/etc-style.css' );\n\t\t// Script to assign a color picker to plugin color choosers. Enqueued in footer with a WP color picker dependency\n\t\twp_register_script( 'etc-script', plugin_dir_url( __FILE__ ) . 'includes/etc-admin.js', array( 'wp-color-picker' ), false, true );\n\t\t// Script to set the cookie to hide the cookies message\n\t\twp_register_script( 'js-cookie-script', plugin_dir_url( __FILE__ ) . 'includes/js-cookie.js', array(), false, true );\n\n\t// wp_register_script( 'etc-script-front', plugin_dir_url( __FILE__ ) . 'includes/etc-front.js', 'jquery-core', false, true );\n\t}", "title": "" }, { "docid": "5249d1824a4050ed7ba73db742db1424", "score": "0.6811569", "text": "function enqueue_scripts() {\n\t$handle = 'hm-juicer-load-more';\n\t$dependencies = [ 'jquery', 'underscore', 'hm-juicer-scripts' ];\n\n\tif ( function_exists( 'Asset_Loader\\\\autoenqueue' ) ) {\n\t\t/**\n\t\t * Developent mode. Use Asset Loader to manage Webpack assets.\n\t\t */\n\n\t\t$manifest = dirname( __DIR__ ) . '/build/dev/asset-manifest.json';\n\n\t\t// JS.\n\t\tAsset_Loader\\autoenqueue( $manifest, 'load_more', [\n\t\t\t'handle' => $handle,\n\t\t\t'scripts' => $dependencies,\n\t\t] );\n\n\t} else {\n\t\t/**\n\t\t * Production mode. Use standard WordPress enqueueing for built assets.\n\t\t */\n\n\t\t// JS.\n\t\twp_enqueue_script(\n\t\t\t$handle,\n\t\t\tplugins_url( '/build/prod/' . $handle . '.js', dirname( __FILE__ ) ),\n\t\t\t$dependencies,\n\t\t\t'1.0.0',\n\t\t\ttrue\n\t\t);\n\t}\n}", "title": "" }, { "docid": "24d3ffe5147388e20eb2a489e1910a60", "score": "0.6809371", "text": "function _rappid_scripts() {\r\n\r\n\t// load bootstrap css\r\n\twp_enqueue_style( '_rappid-bootstrap', get_template_directory_uri() . '/includes/resources/bootstrap/css/bootstrap.min.css' );\r\n\r\n\t// load Font Awesome css\r\n\twp_enqueue_style( '_rappid-font-awesome', get_template_directory_uri() . '/includes/css/font-awesome.min.css', false, '4.1.0' );\r\n\r\n\t// load _rappid styles\r\n\twp_enqueue_style( '_rappid-style', get_stylesheet_uri() );\r\n\r\n\t// load bootstrap js\r\n\twp_enqueue_script('_rappid-bootstrapjs', get_template_directory_uri().'/includes/resources/bootstrap/js/bootstrap.min.js', array('jquery') );\r\n\r\n\t// load bootstrap wp js\r\n\twp_enqueue_script( '_rappid-bootstrapwp', get_template_directory_uri() . '/includes/js/bootstrap-wp.js', array('jquery') );\r\n\r\n\twp_enqueue_script( '_rappid-knob', get_template_directory_uri() . '/includes/js/jquery.knob.min.js', array('jquery') );\r\n\r\n\twp_enqueue_script( '_rappid-skip-link-focus-fix', get_template_directory_uri() . '/includes/js/skip-link-focus-fix.js', array(), '20130115', true );\r\n\r\n\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\r\n\t\twp_enqueue_script( 'comment-reply' );\r\n\t}\r\n\r\n\tif ( is_singular() && wp_attachment_is_image() ) {\r\n\t\twp_enqueue_script( '_rappid-keyboard-image-navigation', get_template_directory_uri() . '/includes/js/keyboard-image-navigation.js', array( 'jquery' ), '20120202' );\r\n\t}\r\n\r\n}", "title": "" }, { "docid": "21d7d3ea128b1825893d5dd6feed02d4", "score": "0.68077666", "text": "function cromulent_scripts() {\n\t\t// Get the theme data.\n\t\t$the_theme = wp_get_theme();\n\t\twp_enqueue_style( 'cromulent-styles', get_stylesheet_directory_uri() . '/css/theme.min.css', array(), $the_theme->get( 'Version' ) );\n\t\twp_enqueue_script( 'jquery' );\n\t\twp_enqueue_script( 'cromulent-scripts', get_template_directory_uri() . '/js/theme.min.js', array(), $the_theme->get( 'Version' ), true );\n\t\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\t\twp_enqueue_script( 'comment-reply' );\n\t\t}\n\t}", "title": "" }, { "docid": "05989b68734382c503097a4099e2a848", "score": "0.68045396", "text": "function tapny_scripts() {\n\t// Load our main stylesheet.\n\twp_enqueue_style( 'tapny-style', get_stylesheet_uri());\n\n\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {}\n\tif ( is_singular() && wp_attachment_is_image() ) {}\n\tif ( is_active_sidebar( 'sidebar-3' ) ) {}\n\tif ( is_front_page() && 'slider' == get_theme_mod( 'featured_content_layout' ) ) {}\n\n\twp_enqueue_script( 'jquery' );\n\twp_enqueue_script( 'tapny-script', get_template_directory_uri() . '/js/main.js', array( 'jquery' ) );\n}", "title": "" }, { "docid": "aac48296679202d7bd3d1289b3afddd0", "score": "0.6800513", "text": "function dockenbush_scripts() {\n\twp_enqueue_style( 'dockenbush-style', get_stylesheet_uri() );\n\n\twp_enqueue_script( 'sl-core-js', get_template_directory_uri() . '/js/compiled.js', array(), true, $in_footer = false );\n\t\n}", "title": "" }, { "docid": "bb11841af7b6e9aeeaa4a15f5cba2e23", "score": "0.6796232", "text": "function citadel_scripts() {\n\t\t// Get the theme data\n\t\t$the_theme = wp_get_theme();\n\t\t$theme_version = $the_theme->get( 'Version' );\n\n\t\t$css_version = $theme_version . '.' . filemtime( get_template_directory() . '/style.css' );\n\t\twp_enqueue_style( 'citadel-framework', get_template_directory_uri() . '/citadel-framework.css', array(), $css_version );\n\t\twp_enqueue_style( 'citadel-styles', get_template_directory_uri() . '/style.css', array('citadel-framework'), $css_version );\n\t\twp_enqueue_style( 'citadel-print-styles', get_template_directory_uri() . '/print.css', array(), $css_version );\n\n\t\twp_enqueue_script( 'jquery' );\n\n\t\t$js_version = $theme_version . '.' . filemtime( get_template_directory() . '/js/scripts.js' );\n\t\twp_enqueue_script( 'citadel-scripts', get_template_directory_uri() . '/js/scripts.js', array(), $js_version, true );\n\t}", "title": "" }, { "docid": "15097e9a9faefa6fd4796f826d2b18d4", "score": "0.6785983", "text": "function config_page_scripts() {\n\t\t\tif ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) {\n\t\t\t\t$css_ext = '.css';\n\t\t\t\t$js_ext = '.js';\n\t\t\t} else {\n\t\t\t\t$css_ext = '.min.css';\n\t\t\t\t$js_ext = '.min.js';\n\t\t\t}\n\n\t\t\twp_enqueue_script( 'wpseo-local-global-script', plugins_url( 'js/wp-seo-local-global'.$js_ext, dirname( __FILE__ ) ), array( 'jquery' ), WPSEO_LOCAL_VERSION, true );\n\t\t\tglobal $pagenow, $post;\n\t\t\tif ( ( $pagenow == 'admin.php' && isset( $_GET['page'] ) && $_GET['page'] == 'wpseo_local' ) || ( in_array( $pagenow, array( 'post.php', 'post-new.php' ) ) && $post->post_type == 'wpseo_locations' ) ) {\n\t\t\t\twp_enqueue_script( 'jquery-chosen', plugins_url( 'js/chosen.jquery.min.js', dirname( __FILE__ ) ), array( 'jquery' ), WPSEO_LOCAL_VERSION, true );\n\t\t\t\twp_enqueue_style( 'jquery-chosen-css', plugins_url( 'styles/chosen'.$css_ext, dirname( __FILE__ ) ), WPSEO_LOCAL_VERSION );\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "51695c2980b4e9e826a42da7bec262bf", "score": "0.67836773", "text": "public function callScripts()\n {\n $handlers = $this->bucket->getEnqueueCss();\n foreach ($handlers as $handler) {\n if ($this->bucket->isRegistered($handler, true)) {\n $css = $this->bucket->getStylesheet($handler);\n $css->call();\n } else {\n wp_enqueue_style($handler);\n }\n }\n foreach ($this->bucket->getEnqueueJs() as $handler) {\n if ($this->bucket->isRegistered($handler, false)) {\n $js = $this->bucket->getJavascript($handler);\n $js->call();\n } else {\n wp_enqueue_script($handler);\n }\n }\n }", "title": "" }, { "docid": "58e9e9859385c00404a3eb4ca11c014e", "score": "0.6777621", "text": "public function onRun(): void\n {\n $this->addScript(tpl_assets('js/plugin/flot/jquery.flot.cust.min.js'));\n $this->addScript(tpl_assets('js/plugin/flot/jquery.flot.resize.min.js'));\n $this->addScript(tpl_assets('js/plugin/flot/jquery.flot.time.min.js'));\n $this->addScript(tpl_assets('js/plugin/flot/jquery.flot.tooltip.min.js'));\n\n # Vector Maps Plugin: Vectormap engine, Vectormap language\n $this->addScript(tpl_assets('js/plugin/vectormap/jquery-jvectormap-1.2.2.min.js'));\n $this->addScript(tpl_assets('js/plugin/vectormap/jquery-jvectormap-world-mill-en.js'));\n\n # Full Calendar\n $this->addScript(tpl_assets('js/plugin/fullcalendar/jquery.fullcalendar.min.js'));\n\n # PAGE RELATED SCRIPTS\n $this->addScript('assets/js/index.js');\n }", "title": "" }, { "docid": "dc14c2d901d3cb89b9e4bda4d1d8ff44", "score": "0.6768753", "text": "function superiocity_enqueue_scripts() {\n\tif ( ! is_admin() ) {\n\t\twp_register_script(\n\t\t\t'superiocity-main',\n\t\t\tget_bloginfo( 'template_url' ) . '/javascript/main.min.js',\n\t\t\tfalse,\n\t\t\t'20150113',\n\t\t\tfalse\n\t\t);\n\n\t\twp_enqueue_script( 'jquery' );\n\t\twp_enqueue_script( 'superiocity-main' );\n\n\t\twp_register_style(\n\t\t\t'font-awesome',\n\t\t\tget_stylesheet_directory_uri() . '/css/font-awesome-4.7.0/css/font-awesome.min.css',\n\t\t\tfalse\n\t\t);\n\n\t\twp_enqueue_style( 'font-awesome' );\n\t}\n}", "title": "" }, { "docid": "3e9a78f087517fbf2b1f12c370234c76", "score": "0.6757888", "text": "function enqueuing_admin_scripts(){\n wp_enqueue_style('fs-admin-css', get_stylesheet_directory_uri().'/dist/css/admin.min.css');\n wp_enqueue_script('fs-admin-script', get_stylesheet_directory_uri().'/dist/js/admin.js', array('jquery'));\n}", "title": "" }, { "docid": "6195d47d48a41ebd6e06554f1d314932", "score": "0.6749616", "text": "function cucina_scripts() {\n\twp_enqueue_style( 'cucina-style', get_stylesheet_uri(), array(), CUCINA_VERSION );\n\n\twp_enqueue_script( 'imagesloaded', get_template_directory_uri() . '/js/imagesloaded.js', array(), '3.1.8', true );\n\n\twp_enqueue_script( 'cucina', get_template_directory_uri() . '/js/cucina.js', array( 'masonry', 'imagesloaded', 'jquery' ), CUCINA_VERSION, true );\n\n\twp_enqueue_script( 'cucina-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );\n\n\t// Only load if Jetpack is active and version is >= 3.4\n\tif ( defined( 'JETPACK__VERSION' ) && version_compare( JETPACK__VERSION, '3.4', '>=' ) ) {\n\t\twp_enqueue_script( 'museum-jetpack-fix', get_template_directory_uri() . '/js/jetpack-infscroll-fix.js', array(), CUCINA_VERSION, true );\n\t}\n\n\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\twp_enqueue_script( 'comment-reply' );\n\t}\n}", "title": "" }, { "docid": "2984f8aeb877de7c74a145c426776ba2", "score": "0.67461073", "text": "private function register_scripts_and_styles()\n {\n if(is_admin()) {\n $this->load_script(PLUGIN_NAME, '/' . PLUGIN_SLUG . '/js/admin.js', array('jquery'), null, true); // handle, src, deps, version, in_footer\n $this->load_style(PLUGIN_NAME, '/' . PLUGIN_SLUG . '/css/admin.css'); // handle, src, deps, version, media\n } else {\n $this->load_script(PLUGIN_NAME, '/' . PLUGIN_SLUG . '/js/widget.js', array('jquery'), null, true);\n $this->load_style(PLUGIN_NAME, '/' . PLUGIN_SLUG . '/css/widget.css');\n }\n }", "title": "" }, { "docid": "944446fd5185ebe6cae6d7cdd051b110", "score": "0.67423743", "text": "function _s_scripts() {\n wp_enqueue_style( '_s-style', get_stylesheet_uri() );\n\n wp_enqueue_script( '_s-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true );\n\n wp_enqueue_script( '_s-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );\n\n if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n wp_enqueue_script( 'comment-reply' );\n }\n}", "title": "" }, { "docid": "fcd605e103eb81cbc547363801f56e60", "score": "0.6741312", "text": "function enqueue() {\r\n\t\t\tglobal $current_screen, $admin_page_suffix;\r\n\t\t\twp_enqueue_script( 'wp-smpro-queue' );\r\n\t\t\twp_enqueue_script( 'wp-smpro-alert' );\r\n\r\n\t\t\twp_enqueue_style( 'wp-smpro-style' );\r\n\t\t\twp_enqueue_style( 'wp-smpro-alert-style' );\r\n\r\n\t\t}", "title": "" }, { "docid": "851aea7161dd6f43571ac814fced2c7e", "score": "0.6738296", "text": "function childtheme_script_manager() {\n // wp_register_script template ( $handle, $src, $deps, $ver, $in_footer );\n // registers modernizr script, stylesheet local path, no dependency, no version, loads in header\n wp_register_script('modernizr-js', get_stylesheet_directory_uri() . '/js/modernizr.js', false, false, false);\n // registers fitvids script, local stylesheet path, yes dependency is jquery, no version, loads in footer\n wp_register_script('fitvids-js', get_stylesheet_directory_uri() . '/js/jquery.fitvids.js', array('jquery'), false, true);\n // registers misc custom script, local stylesheet path, yes dependency is jquery, no version, loads in footer\n wp_register_script('custom-js', get_stylesheet_directory_uri() . '/js/custom.js', array('jquery'), false, true);\n // registers flexslider script, local stylesheet path, yes dependency is jquery, no version, loads in footer\n wp_register_script('flexslider-js', get_stylesheet_directory_uri() . '/flexslider/jquery.flexslider-min.js', array('jquery'), false, true);\n // registers flexslider styles, local stylesheet path\n wp_register_style('flexslider-css', get_stylesheet_directory_uri() . '/flexslider/flexslider.css');\n // registers weloveiconfonts.com icon font styles\n wp_register_style('icon-fonts-css', 'http://weloveiconfonts.com/api/?family=entypo');\n\n // enqueue the scripts for use in theme\n wp_enqueue_script ('modernizr-js');\n wp_enqueue_script ('fitvids-js');\n wp_enqueue_style ('icon-fonts-css');\n\n if ( is_front_page() ) {\n wp_enqueue_script ('flexslider-js');\n wp_enqueue_style ('flexslider-css');\n }\n\n //always enqueue this last, helps with conflicts\n wp_enqueue_script ('custom-js');\n\n}", "title": "" }, { "docid": "6a0fa28969eeea51116412ac9f331caa", "score": "0.6738069", "text": "function aw_include_script() {\n \n if ( ! did_action( 'wp_enqueue_media' ) ) {\n wp_enqueue_media();\n }\n \n wp_enqueue_script( 'awscript', get_stylesheet_directory_uri() . '/js/quary.js', array('jquery'), null, false );\n }", "title": "" }, { "docid": "0e08f8fc928f3f4823fae0197d3730b3", "score": "0.6736472", "text": "static function load_scripts(){\r\n\t\t$screen = get_current_screen();\r\n\t\t$screen_id = $screen->id;\r\n\t\t$page_id = !empty( $_REQUEST['page'] ) ? $_REQUEST['page'] : '';\r\n\t\tif( in_array( $screen_id, learn_press_get_screens() ) || in_array( $page_id, learn_press_get_admin_pages() ) ) {\r\n\t\t\tself::add_style( 'learn-press-global', learn_press_plugin_url( 'assets/css/global-style.css' ) );\r\n\t\t\tself::add_style( 'learn-press-admin', learn_press_plugin_url( 'assets/css/admin/admin.css' ), array( 'learn-press-global' ) );\r\n\t\t\tself::add_style( 'learn-press-icons', learn_press_plugin_url( 'assets/css/icons.css' ) );\r\n\r\n\t\t\t//self::add_script( 'learn-press-ui', learn_press_plugin_url( 'assets/js/ui.js' ) );\r\n\t\t\tself::add_script( 'learn-press-admin', learn_press_plugin_url( 'assets/js/admin/admin.js' ) );\r\n\t\t\tself::add_script( 'modal-search-items', learn_press_plugin_url( 'assets/js/admin/modal-search-items.js' ), array( 'jquery' ) );\r\n\t\t}\r\n\t\tif( in_array( $screen_id, array( 'lp_order', 'order', 'edit-lp_order' ) ) ){\r\n\t\t\tself::add_style( 'learn-press-order', learn_press_plugin_url( 'assets/css/admin/meta-box-order.css' ) );\r\n\t\t\tself::add_script( 'learn-press-order', learn_press_plugin_url( 'assets/js/admin/meta-box-order.js' ), array( 'backbone', 'wp-util' ) );\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "984438af241bd3c953e8a3de16004947", "score": "0.6729432", "text": "public function enqueue_scripts() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Csbn_Events_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Csbn_Events_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/csbn-events-public.js', array( 'jquery' ), $this->version, false );\n\n\t}", "title": "" }, { "docid": "e9e24af7efe8f4158047ed4fdf64cb9f", "score": "0.67274934", "text": "public function load_admin_styles_and_scripts(){\n\t\t\twp_enqueue_script( self::$text_domain . '_js_main', plugins_url( 'main.js', __FILE__ ), array( 'jquery' ), null, true );\n\t\t}", "title": "" }, { "docid": "88b6ff4a01cd04bc7d75e86a1c416e99", "score": "0.67261094", "text": "public static function enqueue_styles_and_scripts() {\n\t\tstatic $scripts_loaded = false;\n\t\tif ( $scripts_loaded ) {\n\t\t\treturn;\n\t\t}\n\t\twp_register_style( 'ees-my-events', EE_WPUSERS_URL . 'assets/css/ees-espresso-my-events.css', array( 'espresso_default' ), EE_WPUSERS_VERSION );\n\t\twp_register_script( 'ees-my-events-js', EE_WPUSERS_URL . 'assets/js/ees-espresso-my-events.js', array( 'espresso_core' ), EE_WPUSERS_VERSION, true );\n\t\twp_enqueue_style( 'ees-my-events' );\n\t\twp_enqueue_script( 'ees-my-events-js' );\n\t}", "title": "" }, { "docid": "9ed7cd798aaa927e4cf5b0a02a946ffb", "score": "0.6724972", "text": "public function enqueue_scripts_and_styles() {\n\t\t\t// common scripts and styles\n\t\t\t$this->enqueue_common_scripts_and_styles();\n\r\n\t\t\twp_enqueue_script( 'wpa-my-results' );\n\t\t}", "title": "" }, { "docid": "55d2de40ab257f7ff3a4a730ac4c2f8a", "score": "0.67159027", "text": "function hey_enqueue_scripts() {\n\t\twp_deregister_script( 'wp-embed' );\n\n\t\tif ( ! is_admin() ) {\n\t\t\twp_deregister_style( 'bodhi-svgs-attachment' );\n\t\t}\n\n\t\t// Enqueue the main Stylesheet.\n\t\t$style_main = hey_cache_bust_script( '/css/app.css' );\n\t\twp_enqueue_style( 'main', $style_main['url'], false, $style_main['version'] );\n\n\t\tif ( ! is_admin() ) {\n\t\t\t// Deregister the jquery version bundled with WordPress.\n\t\t\twp_deregister_script( 'jquery' );\n\t\t\t// CDN hosted jQuery placed in the header, as some plugins require that jQuery is loaded in the header.\n\t\t\twp_enqueue_script( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js', array(), '2.1.0' );\n\t\t}\n\n\t\t// \"Load on demand\"-scripts\n\t\t$scrollmagic = hey_cache_bust_script( '/js/min/scrollmagic-build-min.js' );\n\t\t$threejs = hey_cache_bust_script( '/js/plugins/min/three-min.js' );\n\t\t$d3js = hey_cache_bust_script( '/js/min/d3-build-min.js' );\n\n\t\t// Setup data passed to app\n\t\t$data = array(\n\t\t\t'ajax_url' => admin_url( 'admin-ajax.php' ),\n\t\t\t'scripts' => array(\n\t\t\t\t'threejs' => $threejs['url'] . '?v=' . $threejs['version'],\n\t\t\t\t'scrollmagic' => $scrollmagic['url'] . '?v=' . $scrollmagic['version'],\n\t\t\t\t'd3' => $d3js['url'] . '?v=' . $d3js['version'],\n\t\t\t\t'co2data' => get_template_directory_uri() . '/assets/data/co2data.json',\n\t\t\t)\n\t\t);\n\n\t\t// Load app\n\t\t$app_script = hey_cache_bust_script( '/js/min/app-min.js' );\n\t\twp_enqueue_script( 'app', $app_script['url'], array( 'jquery' ), $app_script['version'], true );\n\t\twp_localize_script( 'app', 'data', $data );\n\n\n\t}", "title": "" }, { "docid": "1591e02fa819f93ac2a974d93470418f", "score": "0.6714906", "text": "function pa_scripts() {\n /**\n * The build task in Grunt renames production assets with a hash\n * Read the asset names from assets-manifest.json\n */\n // global $knowledgebase;\n //\n // $assets = array(\n // 'css' => '/assets/css/main.css',\n // 'print' => '/assets/css/print.css',\n // 'js' => '/assets/js/scripts.js',\n // 'modernizr' => '/assets/vendor/modernizr/modernizr.js',\n // 'fitvids' => '/assets/vendor/fitvids/jquery.fitvids.js',\n // );\n\n //wp_enqueue_style('roots_css', get_template_directory_uri() . $assets['css'], false, null);\n //if (is_single() && $knowledgebase['print']) {\n //wp_enqueue_style('print_css', get_template_directory_uri() . $assets['print'], false, null, 'print');\n //}\n // if (is_single() && comments_open() && get_option('thread_comments')) {\n // wp_enqueue_script('comment-reply');\n // }\n\n //wp_enqueue_script('modernizr', get_template_directory_uri() . $assets['modernizr'], array(), null, true);\n //wp_enqueue_script('jquery');\n //wp_enqueue_script('roots_js', get_template_directory_uri() . $assets['js'], array(), null, true);\n //wp_enqueue_script('fitvids', get_template_directory_uri() . $assets['fitvids'], array(), null, true);\n}", "title": "" }, { "docid": "b4a7840fc53fd445c0046db9848c65c4", "score": "0.6711656", "text": "function globmob_scripts() {\n\n // Glyphicons\n if( !is_admin() ) {\n wp_enqueue_style( 'glyphicons-halflings-css', get_stylesheet_directory_uri() . '/css/halflings.css' );\n }\n\n // Ajax loop loading\n if( is_page('Resources') || is_tax() ) {\n wp_register_script('ajax-loop-resource', get_stylesheet_directory_uri() . '/js/ajax-loop-resource.js', array('jquery'), NULL);\n wp_enqueue_script('ajax-loop-resource');\n wp_localize_script( 'ajax-loop-resource', 'ajax_loop_vars', array('template_path' => get_stylesheet_directory_uri()) );\n }\n\n}", "title": "" }, { "docid": "4bb9d14fa0966aaa049f515e70d3b2e1", "score": "0.67107165", "text": "public function load_scripts_and_styles() {\n\n\t\t// Enqueue scripts required for the ajax refresh functionality\n\t\twp_enqueue_script( \n\t\t\t'quotescollection', // handle\n\t\t\tfamousquotescollection_url( 'js/famous-quotes.js' ), // source\n\t\t\tarray('jquery'), // dependencies\n\t\t\tself::PLUGIN_VERSION, // version\n\t\t\tfalse // load in header, because quotecollectionTimer() has to be loaded before it's called\n\t\t\t);\n\t\twp_localize_script( 'quotescollection', 'quotescollectionAjax', array(\n\t\t\t// URL to wp-admin/admin-ajax.php to process the request\n\t\t\t'ajaxUrl' => admin_url( 'admin-ajax.php' ),\n\t \n\t\t\t// generate a nonce with a unique ID \"myajax-post-comment-nonce\"\n\t\t\t// so that you can check it later when an AJAX request is sent\n\t\t\t'nonce' => wp_create_nonce( 'quotescollection' ),\n\n\t\t\t'nextQuote' => $this->refresh_link_text,\n\t\t\t'loading' => __('Loading...', 'famous-quotes-collection'),\n\t\t\t'error' => __('Error getting quote', 'famous-quotes-collection'),\n\t\t\t'autoRefreshMax' => $this->auto_refresh_max,\n\t\t\t'autoRefreshCount' => 0\n\t\t\t)\n\t\t);\n\t\t// Enqueue styles for the front end\n\t\tif ( !is_admin() ) {\n\t\t\twp_register_style( \n\t\t\t\t'quotescollection', \n\t\t\t\tfamousquotescollection_url( 'css/famous-quotes.css' ), \n\t\t\t\tfalse, \n\t\t\t\tself::PLUGIN_VERSION \n\t\t\t\t);\n\t\t\twp_enqueue_style( 'quotescollection' );\n\t\t}\n\t}", "title": "" }, { "docid": "89eef4ddd32565dcc72c0962d322591c", "score": "0.67096984", "text": "function setup_scripts() {\n // Styles\n wp_enqueue_style('main-style', ASSETS_PATH.'css/main.css', array(), null);\n\n // Scripts\n wp_enqueue_script('main-script', ASSETS_PATH.'js/main.js', array('jquery'), null, true);\n\n /* array with elements to localize in scripts */\n $script_localization = array(\n 'ajax_url' => admin_url( 'admin-ajax.php' ),\n 'home_url' => get_home_url()\n );\n wp_localize_script('main-script', 'script_loc', $script_localization);\n}", "title": "" }, { "docid": "89f78b9de0d3999abd0f540d29be5a2c", "score": "0.67078876", "text": "public function load_scripts() {\n\t\tif ( $this->is_in_page() ) {\n\t\t\tWDEV_Plugin_Ui::load( wp_defender()->get_plugin_url() . 'shared-ui/', false );\n\t\t\twp_enqueue_style( 'wp-defender' );\n\t\t\twp_enqueue_script( 'wp-defender' );\n\t\t\twp_enqueue_script( 'wd-highlight' );\n\t\t\twp_enqueue_script( 'wd-confirm' );\n\t\t}\n\t}", "title": "" }, { "docid": "df1a80997b629c2cf329be8fcc180c8d", "score": "0.6701386", "text": "function ql_add_scripts()\n{\n\n\t$template_url = get_bloginfo('template_url');\n\t\n\twp_register_style('eye-colorpicker', $template_url .'/js/colorpicker/colorpicker.css');\n\twp_register_style('jq-ui', $template_url .'/css/jquery/jquery.ui.css');\n\n\twp_register_script('eye-colorpicker', $template_url .'/js/colorpicker/jquery.colorpicker.js', array('jquery'));\n\twp_register_script('nouislider', $template_url .'/js/jquery.nouislider.js', array('jquery'));\n\t\n\twp_register_script('ql-scripts', $template_url . '/js/scripts.js', array('jquery'));\n\twp_register_script('ql-admin', $template_url . '/js/admin.js', array('jquery', 'eye-colorpicker', 'plupload-html5', 'plupload-flash', 'nouislider'));\n\t\n\tif ( ql_is_personalizing() )\n\t{\n\t\n\t\twp_enqueue_style('eye-colorpicker');\n\t\twp_enqueue_style('jq-ui');\n\t\n\t\t$vars = array(\n\t\t\t'ajaxurl' => admin_url('admin-ajax.php'),\n\t\t\t'siteurl' => get_bloginfo('url'),\n\t\t\t'upload_nonce' => wp_create_nonce('quicklaunch-upload-file'),\n\t\t\t'save_nonce' => wp_create_nonce('quicklaunch-save-personalization')\n\t\t);\n\t\twp_localize_script('ql-admin', 'QLAdmin', $vars);\n\t\twp_enqueue_script('ql-admin');\n\t\twp_enqueue_script('jquery-ui-dialog');\n\t\t\n\t}\n\telse\n\t{\n\t\t\n\t\t$vars = array(\n\t\t\t'ajaxurl' => admin_url('admin-ajax.php'),\n\t\t\t'reg_email_nonce' => wp_create_nonce('quicklaunch-register-email')\n\t\t);\n\t\twp_localize_script('ql-scripts', 'QL', $vars);\n\t\twp_enqueue_script('ql-scripts');\n\t\t\n\t}\n\t\n\tif ( is_admin() && basename($_SERVER['PHP_SELF']) == 'admin.php' && $_GET['page'] == 'ql-email-list' )\n\t{\n\t\twp_enqueue_script('common');\n\t}\n\n}", "title": "" }, { "docid": "5c8f58edf97909348ffab81effe56f83", "score": "0.670084", "text": "public static function custom_scripts() {\n // Defining the directories\n $dir = get_stylesheet_directory_uri();\n $public = $dir . '/public/';\n $vendor = $dir . '/vendor/';\n\n // Vendor Scripts\n wp_enqueue_script('jquery', $vendor . 'js/jquery.min.js', array(), '20140323', true);\n wp_enqueue_script('underscore', $vendor . 'js/underscore.min.js', array(), '20140323', true);\n // wp_enqueue_script('knockout', $vendor . 'js/knockout.min.js', array(), '20140323', true);\n wp_enqueue_script('bootstrap', $vendor . 'js/bootstrap.min.js', array(), '20140323', true);\n\n // Main Script\n wp_enqueue_script('q-main-js', $public . 'js/main.js', array('jquery'), '20140323', true);\n }", "title": "" }, { "docid": "f896285527f0225164e68a220497bd1c", "score": "0.67000914", "text": "static public function enqueue_scripts()\n {\n wp_enqueue_style( CHILD_THEME_NAME, FL_CHILD_THEME_URL . '/style.css' , array(), '1.0.0', 'all' );\n wp_enqueue_style( 'dashicons' );\n // wp_dequeue_style( 'foundation-icons' );\n // wp_dequeue_style( 'font-awesome' );\n // Take out the default lightbox\n // wp_dequeue_script('jquery-magnificpopup');\n // wp_dequeue_style('jquery-magnificpopup');\n\n }", "title": "" }, { "docid": "394dad1ff8037e1f6a4de4bfbae999cf", "score": "0.66959417", "text": "function quietus_styles_and_scripts() {\n\twp_enqueue_style( 'quietus-style', get_template_directory_uri() . '/css/main.css', array(), null );\n\twp_enqueue_script( 'quietus-scripts', get_template_directory_uri() . '/js/main.js', array(), null, true );\n}", "title": "" }, { "docid": "a6d5c2cea64f6b568c135b9a2f417551", "score": "0.6695336", "text": "function hg_load_scripts() {\r\n\t\r\n\t/*\r\n\t\tmodernizr\r\n\t */\r\n\twp_enqueue_script( \r\n\t\t'modernizr', \r\n\t\t'//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js', \r\n\t\tarray(), \r\n\t\tHG_VERSION \r\n\t);\r\n\r\n\t/*\r\n\t\tjQuery\r\n\t */\r\n\twp_enqueue_script( \r\n\t\t'ac-jquery', \r\n\t\t'//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js', \r\n\t\tarray(), \r\n\t\tHG_VERSION \r\n\t);\r\n\r\n\t/*\r\n\t\tScripts essenciais minificados em\r\n\t\tum arquivo unico e essenciais para \r\n\t\to funcionamento do lado cliente\r\n\t */\r\n\twp_enqueue_script( \r\n\t\t'scripts', \r\n\t\tget_stylesheet_directory_uri() . '/scripts.js', \r\n\t\tarray(), \r\n\t\tHG_VERSION,\r\n\t\ttrue \r\n\t);\r\n\t\r\n}", "title": "" }, { "docid": "3d6dd059722dcfbcc54672734f4c56ec", "score": "0.6694741", "text": "function scripts() {\n\t/**\n\t * If WP is in script debug, or we pass ?script_debug in a URL - set debug to true.\n\t */\n\t$debug = ( defined( 'SCRIPT_DEBUG' ) && true === SCRIPT_DEBUG ) || ( isset( $_GET['script_debug'] ) ) ? true : false; // phpcs:ignore\n\n\t/**\n\t * If we are debugging the site, use a unique version every page load so as to ensure no cache issues.\n\t */\n\t$version = wp_get_theme()->get( 'Version' );\n\n\t/**\n\t * Should we load minified files?\n\t */\n\t$suffix = ( true === $debug ) ? '' : '.min';\n\n\t/**\n\t * Global variable for IE.\n\t */\n\tglobal $is_IE;\n\n\t$web_font_url = apply_filters( 'twinty_web_font_url', '//fonts.googleapis.com/css?family=IBM+Plex+Serif:400,400i,700,700i|Montserrat:300,600' );\n\n\t// Load parent theme stylesheet\n\twp_enqueue_style( 'twentynineteen-style', get_template_directory_uri() . '/style.css' );\n\n\t// Fonts stylesheets.\n\twp_enqueue_style( 'twinty-web-font', $web_font_url, [], $version );\n\n\t// Theme stylesheets & scripts.\n\twp_enqueue_style( 'twinty-style', get_stylesheet_directory_uri() . '/style' . $suffix . '.css', [], $version );\n\twp_add_inline_style( 'twinty-style', twintynineteen_custom_header_image() );\n}", "title": "" }, { "docid": "17bb4014e05775e120a2b3909e6e8561", "score": "0.6692319", "text": "public function enqueue_scripts() {\n\n\t\tif ( ! get_option( RD_DTM_Settings::RD_DTM_SLUG ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Madatory for all sites.\n\t\twp_register_script(\n\t\t\tself::PROCESSOR_SLUG,\n\t\t\tplugins_url( self::JS_FILE, __FILE__ ),\n\t\t\t$this->depends,\n\t\t\tself::VERSION,\n\t\t\ttrue\n\t\t);\n\t\twp_enqueue_script( self::PROCESSOR_SLUG );\n\n\t}", "title": "" }, { "docid": "01ac379c4d86183eadc2fc7ad0849213", "score": "0.6691849", "text": "public function enqueueScripts() {\n\t\t\t// wp_enqueue_script( 'js', BESTBUG_RPPRO_URL . '/assets/js/script.js', array( 'jquery' ), '1.0', true );\n\t\t}", "title": "" }, { "docid": "d1443f4ae1b78515f03d6ad37e3ac07d", "score": "0.66869247", "text": "function include_scripts() {\n\n\twp_enqueue_style( 'style', get_stylesheet_uri() );\n\n\t//wp_enqueue_style('slider-css', get_template_directory_uri() . '/slick/slick.css');\n\n wp_enqueue_script('isotope', 'https://unpkg.com/isotope-layout@3/dist/isotope.pkgd.min.js', array('jquery'), null, true);\n\n\twp_enqueue_script('bootstrap', get_template_directory_uri() .'/assets/js/bootstrap.min.js', array('jquery'), null, true);\n\n\twp_enqueue_script('main-scripts', get_template_directory_uri() .'/assets/js/main.js', array('jquery'), null, true);\n\n\t//wp_enqueue_script('slider-js', get_template_directory_uri() . '/slick/slick.min.js', array('jquery'), null, true);\n}", "title": "" }, { "docid": "aba10d3ff62b951325ccceca9ba0c5cc", "score": "0.6683381", "text": "function assets() {\n\t// new css\n\twp_enqueue_style( 'base/css', get_template_directory_uri() . '/dist/css/index.css', false, null) ;\n\n\t// conditionally load as needed for comments\n\tif (is_single() && comments_open() && get_option('thread_comments')) {\n\t\twp_enqueue_script( 'comment-reply' );\n\t}\n\n\t// new js\n\twp_enqueue_script( 'base/js', get_template_directory_uri() . '/dist/js/index.js', ['jquery'], null, true );\n\t// put new js file here...\n}", "title": "" }, { "docid": "48dfe85b254fff3715b56926bb779d97", "score": "0.66787124", "text": "public function enqueueScriptsPro() {\n\t\t// We don't want any plugin adding notices to our screens. Let's clear them out here.\n\t\tremove_all_actions( 'admin_notices' );\n\t\tremove_all_actions( 'all_admin_notices' );\n\n\t\t// Scripts.\n\t\taioseo()->helpers->enqueueScript(\n\t\t\t'aioseo-vendors',\n\t\t\t'js/chunk-vendors.js'\n\t\t);\n\t\taioseo()->helpers->enqueueScript(\n\t\t\t'aioseo-common',\n\t\t\t'js/chunk-common.js'\n\t\t);\n\t\taioseo()->helpers->enqueueScript(\n\t\t\t'aioseo-connect-pro-script',\n\t\t\t'js/connect-pro.js'\n\t\t);\n\n\t\t// Styles.\n\t\t$rtl = is_rtl() ? '.rtl' : '';\n\t\taioseo()->helpers->enqueueStyle(\n\t\t\t'aioseo-vendors',\n\t\t\t\"css/chunk-vendors$rtl.css\"\n\t\t);\n\t\taioseo()->helpers->enqueueStyle(\n\t\t\t'aioseo-common',\n\t\t\t\"css/chunk-common$rtl.css\"\n\t\t);\n\t\t// aioseo()->helpers->enqueueStyle(\n\t\t// 'aioseo-connect-pro-style',\n\t\t// \"css/connect-pro$rtl.css\"\n\t\t// );\n\t\t// aioseo()->helpers->enqueueStyle(\n\t\t// 'aioseo-connect-pro-vendors-style',\n\t\t// \"css/chunk-connect-pro-vendors$rtl.css\"\n\t\t// );\n\n\t\twp_localize_script(\n\t\t\t'aioseo-connect-pro-script',\n\t\t\t'aioseo',\n\t\t\taioseo()->helpers->getVueData()\n\t\t);\n\t}", "title": "" }, { "docid": "14883b6e7839b9dc08a3b02b37ad94fb", "score": "0.66738415", "text": "function virtualemployee_common_scripts()\n {\n wp_enqueue_style('virtualemployee-style', get_stylesheet_uri());\n // Load main jQuery file\n wp_enqueue_script('jquery');\n\t // Load Bootstrap files.\n\t \n wp_enqueue_style('virtualemployee-bootstrap-min-css', get_template_directory_uri().'/css/bootstrap.min.css');\n wp_enqueue_style('virtualemployee-magnific-popup-css', get_template_directory_uri().'/css/magnific-popup.css'); \n wp_enqueue_style('virtualemployee-style-css', get_template_directory_uri().'/css/style.css'); \n wp_enqueue_style('virtualemployee-flag-css', get_template_directory_uri().'/css/flags.css'); \n wp_enqueue_style('virtualemployee-animate-css', get_template_directory_uri().'/css/animate.css'); \n\t\twp_enqueue_script('virtualemployee-bootstrap-js', get_template_directory_uri().'/js/bootstrap.min.js');\n\t\t\n }", "title": "" }, { "docid": "ee3d05048032eb6624899b0253543eef", "score": "0.66735655", "text": "function galaxy_scriptss() \n\t{\n\t\t\n\t\twp_enqueue_style( 'galaxy-child-style', get_stylesheet_directory_uri() . '/style.css' );\n\t wp_enqueue_style( 'galaxy-child-custom-style', get_stylesheet_directory_uri() . '/css/custom.min.css' );\n\t wp_enqueue_script( 'galaxy-child-custom-js', get_stylesheet_directory_uri() . '/js/custom.min.js' );\n\t \n\t}", "title": "" }, { "docid": "43642977171c2e34af64b7c20dd41f3b", "score": "0.66734606", "text": "static function wp_enqueue_scripts() {\n\t\t// Leaflet CSS\n\t\tif (self::$options->engine == 'leaflet')\n\t\t\twp_enqueue_style('mappress-leaflet', self::$baseurl . '/css/leaflet/leaflet.css', null, '1.4.0');\n\n\t\t// Mappress CSS from plugin directory\n\t\twp_enqueue_style('mappress', self::$baseurl . '/css/mappress.css', null, self::$version);\n\n\t\t// Mappress CSS from theme directory\n\t\tif ( @file_exists( get_stylesheet_directory() . '/mappress.css' ) )\n\t\t\t$file = get_stylesheet_directory_uri() . '/mappress.css';\n\t\telseif ( @file_exists( get_template_directory() . '/mappress.css' ) )\n\t\t\t$file = get_template_directory_uri() . '/mappress.css';\n\n\t\tif (isset($file))\n\t\t\twp_enqueue_style('mappress-custom', $file, array('mappress'), self::$version);\n\n\t\t// Load scripts in header\n\t\tif (!self::is_footer())\n\t\t\tself::load();\n\t}", "title": "" }, { "docid": "e273d80444b9b6ad614babc0a6833f3e", "score": "0.66699797", "text": "public function enqueue_scripts(){}", "title": "" }, { "docid": "a5376739f261afaece1aea731dedece8", "score": "0.6667144", "text": "public function enqueue_scripts() {\n\t\t\twp_enqueue_script(\n\t\t\t\t'cherry-handler-js',\n\t\t\t\tesc_url( Cherry_Core::base_url( 'assets/js/min/cherry-handler.min.js', __FILE__ ) ),\n\t\t\t\tarray( 'jquery' ),\n\t\t\t\t$this->module_version,\n\t\t\t\ttrue\n\t\t\t);\n\n\t\t\twp_enqueue_style(\n\t\t\t\t'cherry-handler-css',\n\t\t\t\tesc_url( Cherry_Core::base_url( 'assets/css/cherry-handler-styles.min.css', __FILE__ ) ),\n\t\t\t\tarray(),\n\t\t\t\t$this->module_version,\n\t\t\t\t'all'\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "565c01f3100b4fb7574b12168a35fc4f", "score": "0.66639674", "text": "public function enqueue_scripts() {\n // Use minified libraries if SCRIPT_DEBUG is turned off\n $suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';\n\n //only load the scripts on store page for optimization\n if ( dokan_is_store_page() ) {\n wp_enqueue_style( 'dokan-magnific-popup' );\n wp_enqueue_style( 'dsr-styles', plugins_url( 'assets/css/style' . $suffix . '.css', __FILE__ ), false, date( 'Ymd' ) );\n\n wp_enqueue_script( 'dsr-scripts', plugins_url( 'assets/js/script' . $suffix . '.js', __FILE__ ), array( 'jquery', 'dokan-popup' ), false, true );\n wp_enqueue_style( 'dsr-scripts', plugins_url( 'assets/css/script' . $suffix . '.css', __FILE__ ), false );\n }\n\n if ( dokan_is_store_listing() ) {\n wp_enqueue_style( 'dsr-styles', plugins_url( 'assets/css/style' . $suffix . '.css', __FILE__ ), false, date( 'Ymd' ) );\n }\n }", "title": "" }, { "docid": "39f6090157da831fd7a6184ec9d67c22", "score": "0.66619784", "text": "function frontpage_scripts() {\n\t//todo:\n\n\t$stylesheet_dir = get_stylesheet_directory_uri();\n\t$use_production_assets = genesis_get_option('bfg_production_on');\n\t$use_production_assets = !empty($use_production_assets);\n\t$src = $use_production_assets ? '/build/js/trans-header.min.js' : '/build/js/trans-header.js';\n\twp_enqueue_script( 'rva-trans-header', $stylesheet_dir . $src, array('jquery'), null, true );\n\n\t//wp_enqueue_script( 'rva-trans-header', get_stylesheet_directory_uri() . '/js/trans-header.js', array( 'jquery' ), '1.0', true );\n\t\n\trva_load_more_posts();\n\n}", "title": "" }, { "docid": "844034904a1bd6fe9d1404a1d7ac6aaa", "score": "0.66583836", "text": "function cah_starter_scripts() {\r\n\twp_enqueue_style( 'cah-starter-style', get_stylesheet_uri() );\r\n\r\n\twp_enqueue_script('jquery');\r\n\r\n\twp_enqueue_script( 'cah-starter-navigation', get_template_directory_uri() . '/public/js/navigation.js', array(), '20151215', true );\r\n\r\n\twp_enqueue_script( 'cah-starter-skip-link-focus-fix', get_template_directory_uri() . '/public/js/skip-link-focus-fix.js', array(), '20151215', true );\r\n\r\n\t// wp_enqueue_script( 'responsive-menu-fix', get_template_directory_uri() . '/public/js/menu-fix.js', array('jquery'), '20170518', true);\r\n\r\n\t// UCF Header bar\r\n\twp_enqueue_script( 'cahweb-starter-ucfhb-script', '//universityheader.ucf.edu/bar/js/university-header.js', array(), '20151215', true );\r\n\r\n\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\r\n\t\twp_enqueue_script( 'comment-reply' );\r\n\t}\r\n}", "title": "" }, { "docid": "3c30c225cea7b22388c67211806cfb6a", "score": "0.6655623", "text": "function ith_scripts() {\n wp_enqueue_style( 'ith-style', get_stylesheet_uri() );\n\n wp_enqueue_script( 'ith-main', get_template_directory_uri() . '/js/common.js', array(), '', true);\n\n if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n wp_enqueue_script( 'comment-reply' );\n }\n}", "title": "" }, { "docid": "5c79a2d72fce694e877130cbc736af91", "score": "0.6654603", "text": "public function _load_scripts_and_styles() {\r\n\t\twp_enqueue_style('happyfox_admin', plugins_url('/css/happyfox.css', __FILE__));\r\n\t\twp_enqueue_style('colorbox', plugins_url('/css/colorbox.css', __FILE__));\r\n\t\twp_enqueue_style('happyfox_pagination', plugins_url('/css/jqpagination.css', __FILE__));\r\n\t\twp_enqueue_script('happyfox_admin', plugins_url('/js/happyfox.js', __FILE__), array('jquery'));\r\n\t\twp_enqueue_script('colorbox', plugins_url('/js/jquery.colorbox-min.js', __FILE__), array('jquery'));\r\n\t\twp_enqueue_script('happyfox_pagination', plugins_url('/js/jquery.jqpagination.min.js', __FILE__), array('jquery'));\r\n\t}", "title": "" }, { "docid": "44decc7fec1de79a8c2b2789dc151635", "score": "0.66488343", "text": "function bimber_enqueue_front_scripts() {\n\t// Prevent CSS|JS caching during updates.\n\t$version = bimber_get_theme_version();\n\n\t$parent_uri = trailingslashit( get_template_directory_uri() );\n\t$child_uri = trailingslashit( get_stylesheet_directory_uri() );\n\n\twp_enqueue_script( 'jquery' );\n\n\tif ( is_singular() && get_option( 'thread_comments' ) ) {\n\t\twp_enqueue_script( 'comment-reply' );\n\t}\n\n\t/**\n\t * Head scripts.\n\t */\n\n\twp_enqueue_script( 'modernizr', $parent_uri . 'js/modernizr/modernizr-custom.min.js', array(), '3.3.0', false );\n\n\t/**\n\t * Footer scripts.\n\t */\n\n\tif ( bimber_is_masonry_template() ) {\n\t\twp_enqueue_script( 'isotope', $parent_uri . 'js/isotope/isotope.pkgd.min.js', array( 'jquery' ), '3.0.1', true );\n\t}\n\n\t// Postion sticky polyfill.\n\twp_enqueue_script( 'stickyfill', $parent_uri . 'js/stickyfill/stickyfill.min.js', array( 'jquery' ), '1.3.1', true );\n\n\t// Enqueue input::placeholder polyfill for IE9.\n\twp_enqueue_script( 'jquery-placeholder', $parent_uri . 'js/jquery.placeholder/placeholders.jquery.min.js', array( 'jquery' ), '4.0.1', true );\n\n\t// Conver dates into fuzzy timestaps.\n\twp_enqueue_script( 'jquery-timeago', $parent_uri . 'js/jquery.timeago/jquery.timeago.js', array( 'jquery' ), '1.5.2', true );\n\tbimber_enqueue_timeago_i10n_script( $parent_uri );\n\n\t// Enqueue matchmedia polyfill.\n\twp_enqueue_script( 'match-media', $parent_uri . 'js/matchMedia/matchMedia.js', array(), null, true );\n\n\t// Enqueue matchmedia addListener polyfill (media query events on window resize) for IE9.\n\twp_enqueue_script( 'match-media-add-listener', $parent_uri . 'js/matchMedia/matchMedia.addListener.js', array( 'match-media' ), null, true );\n\n\t// Enqueue <picture> polyfill, <img srcset=\"\" /> polyfill for Safari 7.0-, FF 37-, etc.\n\twp_enqueue_script( 'picturefill', $parent_uri . 'js/picturefill/picturefill.min.js', array( 'match-media' ), '2.3.1', true );\n\n\t// Scroll events.\n\twp_enqueue_script( 'jquery-waypoints', $parent_uri . 'js/jquery.waypoints/jquery.waypoints.min.js', array( 'jquery' ), '4.0.0', true );\n\n\t// GifPlayer.\n\t//if ( is_single() ) {\n\t\twp_enqueue_script( 'libgif', $parent_uri . 'js/libgif/libgif.js', array(), null, true );\n\t//}\n\n\t// Media queries in javascript.\n\twp_enqueue_script( 'enquire', $parent_uri . 'js/enquire/enquire.min.js', array( 'match-media', 'match-media-add-listener' ), '2.1.2', true );\n\n\tif ( bimber_is_ajax_search_enabled() ) {\n\t\twp_enqueue_script( 'jquery-ui-autocomplete' );\n\t}\n\n\twp_enqueue_script( 'bimber-front', $parent_uri . 'js/front.js', array( 'jquery', 'enquire' ), $version, true );\n\n\t// If child theme is activated, we can use this script to override theme js code.\n\tif ( $parent_uri !== $child_uri ) {\n\t\twp_enqueue_script( 'bimber-child', $child_uri . 'modifications.js', array( 'bimber-front' ), null, true );\n\t}\n\n\t// Prepare js config.\n\t$config = array(\n\t\t'ajax_url' => admin_url( 'admin-ajax.php' ),\n\t\t'timeago' => bimber_get_theme_option( 'posts', 'timeago', 'standard' ) === 'standard' ? 'on' : 'off',\n\t\t'sharebar' => bimber_get_theme_option( 'post', 'sharebar', 'standard' ) === 'standard' ? 'on' : 'off',\n\t\t'i18n' => array(\n\t\t\t'menu' => array(\n\t\t\t\t'go_to' => esc_html_x( 'Go to', 'Menu', 'bimber' ),\n\t\t\t),\n\t\t\t'newsletter' => array(\n\t\t\t\t'subscribe_mail_subject_tpl' => esc_html_x( 'Check out this great article: %subject%', 'Newsletter', 'bimber' ),\n\t\t\t),\n\t\t\t'bp_profile_nav' => array(\n\t\t\t\t'more_link'\t=> esc_html_x( 'More', 'BuddyPress Profile Link', 'bimber' ),\n\t\t\t),\n\t\t),\n\t\t'comment_types'\t => array_keys( bimber_get_comment_types() ),\n\t\t'auto_load_limit' => bimber_get_theme_option( 'posts', 'auto_load_max_posts' ),\n\t\t'auto_play_videos' => bimber_get_theme_option( 'posts', 'auto_play_videos' ),\n\t\t'setTargetBlank' => bimber_get_theme_option( 'posts', 'set_target_blank' ),\n\t\t'useWaypoints' => bimber_get_theme_option( 'posts', 'page_waypoints' ),\n\t);\n\n\twp_localize_script( 'bimber-front', 'bimber_front_config', wp_json_encode( $config ) );\n\t// we fill the below with HTML later, empty string is to make sure we have the variable\n\t$data = array();\n\twp_localize_script( 'bimber-front', 'bimber_front_microshare', wp_json_encode( $data ) );\n}", "title": "" }, { "docid": "37b1bca28b5a47a5f808960c215e6c33", "score": "0.66463464", "text": "public function scripts(){\n\t\t//wp_register_script('component-header_fixed', $this->directory_uri . '/assets/dist/js/headerFixed.js', ['jquery'], false, true);\n\n\t\t/*wp_localize_script('component-header_fixed', 'wbHeaderFixed', array(\n\t\t\t'company_name' => $company,\n\t\t\t'address' => $address,\n\t\t\t'mail' => $mail,\n\t\t\t'tel' => $tel,\n\t\t) );\n\t\twp_enqueue_script('component-header_fixed');*/\n\t}", "title": "" }, { "docid": "891d1686ab936d049c83ef5b355e2677", "score": "0.6645979", "text": "function calsboilerplate_underscores_scripts() {\n\twp_enqueue_style( 'calsboilerplate_underscores-style', get_stylesheet_uri() );\n\n\twp_enqueue_script( 'calsboilerplate_underscores-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true );\n\n\twp_enqueue_script( 'calsboilerplate_underscores-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );\n\n\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\twp_enqueue_script( 'comment-reply' );\n\t}\n}", "title": "" }, { "docid": "0dea0b0a3b5aab0c52572f75793e5b19", "score": "0.6642485", "text": "public function enqueueScripts() {\n\t \n\t\t\tforeach($this->getScripts() as $script) {\n\t\t\t\t\n\t\t\t\t$script = is_array($script) ? $script : ['file' => $script];\n\t\t\t\t\n\t\t\t\tif ( $script['file'] = $this->getScriptPath( ! empty( $script['file'] ) ? $script['file'] : '' ) ) {\n\t\t\t\t\t\t\n \t\t\t\t$info = pathinfo( $script['file'] );\n \t\t\t\t\n \t\t\t\t$extension = ! empty( $info['extension'] ) ? $info['extension'] : ( ! empty( $script['type'] ) ? $script['type'] : false );\n \t\t\t\t\n \t\t\t\t$theme = wp_get_theme();\n \t\t\t\t$version = $theme->get('Version') ? $theme->get('Version') : '1.0.0';\n \t\t\t\t\n \t\t\t\tswitch( $extension ) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase 'css' :\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t$script = array_merge(array(\n\t\t\t\t\t\t\t\t'dependencies' => array(),\n\t\t\t\t\t\t\t\t'version' => $version,\n\t\t\t\t\t\t\t\t'media' => 'all',\n\t\t\t\t\t\t\t\t'enqueue' => true\n\t\t\t\t\t\t\t), $script, array(\n\t\t\t\t\t\t\t\t'handle' => ! empty( $script['handle'] ) ? $script['handle'] : $info['filename']\n\t\t\t\t\t\t\t));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif( wp_style_is( $script['handle'], 'registered' ) ) {\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\twp_deregister_style( $script['handle'] );\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\twp_register_style(\n\t\t\t\t\t\t\t\t$script['handle'], \n\t\t\t\t\t\t\t\t$script['file'], \n\t\t\t\t\t\t\t\t$script['dependencies'], \n\t\t\t\t\t\t\t\t$script['version'], \n\t\t\t\t\t\t\t\t$script['media']\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif( $script['enqueue'] ) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\twp_enqueue_style($script['handle']);\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\t\n\t\t\t\t\t\tdefault :\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t$script = array_merge(array(\n\t\t\t\t\t\t\t\t'dependencies' => array(),\n\t\t\t\t\t\t\t\t'version' => $version,\n\t\t\t\t\t\t\t\t'in_footer' => true,\n\t\t\t\t\t\t\t\t'localize' => false,\n\t\t\t\t\t\t\t\t'enqueue' => true\n\t\t\t\t\t\t\t), $script, array(\n\t\t\t\t\t\t\t\t'handle' => ! empty( $script['handle'] ) ? $script['handle'] : $info['filename']\n\t\t\t\t\t\t\t));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif( wp_script_is( $script['handle'], 'registered' ) ) {\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\twp_deregister_script( $script['handle'] );\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\twp_register_script(\n\t\t\t\t\t\t\t\t$script['handle'], \n\t\t\t\t\t\t\t\t$script['file'], \n\t\t\t\t\t\t\t\t$script['dependencies'], \n\t\t\t\t\t\t\t\t$script['version'], \n\t\t\t\t\t\t\t\t$script['in_footer']\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif( $script['localize'] ) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\twp_localize_script($script['handle'], $script['localize']['name'], $script['localize']['data']);\n\t\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\tif( $script['enqueue'] ) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\twp_enqueue_script($script['handle']);\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\t\n\t\t\t\t\t}\n \t\t\t\t\n }\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "85f22c416707d8772564cf6864356dca", "score": "0.66401815", "text": "function neatline_queueInThemeEditionAssets()\n{\n queue_js('_constructInThemeEdition', 'javascripts');\n}", "title": "" }, { "docid": "4b9e9511eb96f3f2eeff551980393e8d", "score": "0.6639819", "text": "function maeve_scripts() {\n\twp_enqueue_style( 'maeve-style', get_stylesheet_uri() );\n\n\twp_enqueue_script( 'maeve-script', get_template_directory_uri() . '/js/script.js', array('jquery'), '20151215', true );\n\n}", "title": "" }, { "docid": "16fb61c338dcbf6bfef3122b2e6a7123", "score": "0.6637308", "text": "public function enqueue_scripts() {\n\t\twp_enqueue_script( 'calculators-scripts', get_stylesheet_directory_uri() . '/scripts/calculators.js', array( 'jquery' ), $this->version, true );\n\t\twp_enqueue_script( 'admissions-scripts', get_stylesheet_directory_uri() . '/scripts/admissions.js', array( 'jquery' ), $this->version, true );\n\t}", "title": "" }, { "docid": "c5177ee7b16bf850f6c93df18e229a4e", "score": "0.6637065", "text": "function wp_load_main_script() {\n\n\t/*=== Load Custom Scripts First so they initialize first over other scripts ===*/\n\n\twp_enqueue_script('_s-scripts', get_stylesheet_directory_uri() . '/js/scripts.js', '', '', true);\n\n}", "title": "" }, { "docid": "92226b7258299f75409ded9e29e8ff46", "score": "0.66370475", "text": "function aitAdminEnqueueScriptsAndStyles()\n{\n\taitAddScripts(array(\n\t\t'ait-googlemaps-api' => array('file' => 'http://maps.google.com/maps/api/js?sensor=false&amp;language=en', 'deps' => array('jquery')),\n\t\t'ait-jquery-gmap3' => array('file' => THEME_JS_URL . '/libs/gmap3.min.js', 'deps' => array('jquery', 'ait-googlemaps-api')),\n\t));\n}", "title": "" }, { "docid": "d9fef26ca8e275234759f984a3e587f5", "score": "0.66340214", "text": "public static function add_assets()\n {\n wp_enqueue_script('vg-infinite-js', plugin_dir_url(__FILE__) . 'assets/js/main.js');\n wp_enqueue_style('vg-infinite-css', plugin_dir_url(__FILE__) . 'assets/css/main.css');\n wp_localize_script('vg-infinite-js', 'fetch_remaining_post', array(\n 'ajaxurl' => admin_url('admin-ajax.php'),\n 'vg_post_count' => self::get_post_count()\n ));\n }", "title": "" }, { "docid": "4ec503f76c42c22f5d21fd24ba333a52", "score": "0.663141", "text": "public function site_enqueue_scripts(){\n\n\t\t\twp_register_style( 'content-builder-theme-css', $this->builder->ajaxUrl.'?action=css', false, $this->builder->version );\n\t\t\twp_enqueue_style( 'content-builder-theme-css');\n\t\t\twp_register_script('content-builder-theme-js', plugin_dir_url(__FILE__).'theme/theme.js', false, $this->builder->version );\n\t\t\twp_enqueue_script( 'content-builder-theme-js' );\n\n\t\t}", "title": "" }, { "docid": "3874588a75e012027d4678b810efc349", "score": "0.66306734", "text": "function xyz_scripts_styles() {\n\t// styles. Maybe register them first, not sure yet.\n\twp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );\n\twp_enqueue_style( 'xyz-style', get_stylesheet_uri() );\n\t// wp_enqueue_style( 'wpb-google-fonts', 'https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i', false );\n\n\t// Register Scripts\n\twp_register_script( 'bootstrapjs', get_stylesheet_directory_uri() . \"/js/bootstrap.min.js\", array('jquery'), '3.3.7', true );\n\twp_register_script( 'slick-carousel', get_stylesheet_directory_uri() . \"/js/slick.min.js\", array('jquery'), '1.6', true );\n\twp_register_script( 'xyz-js', get_stylesheet_directory_uri() . \"/js/xyz-main.js\", array('jquery'), false, true );\n\n\t// Enqueue scripts. Only load what script(s) are needed. Conditional statement if wish.\n\twp_enqueue_script( 'bootstrapjs' );\n\twp_enqueue_script( 'xyz-js' );\n\t// wp_enqueue_script( 'slick-carousel' );\n\n}", "title": "" }, { "docid": "78eccbcb72603aa54c603d87937b4039", "score": "0.6628731", "text": "function samu_scripts() {\n\t// Enqueue theme stylesheet.\n\twp_enqueue_style( 'samu-style', get_template_directory_uri() . '/style.css', array(), wp_get_theme()->get( 'Version' ) );\n\t\n\t// Enqueue your script (example)\n\twp_enqueue_script( 'samu-script', get_template_directory_uri() . '/assets/js/script.js', array( 'jquery' ), wp_get_theme()->get( 'Version' ), true );\n\t\n}", "title": "" }, { "docid": "2112e5a980cdc8e5e895f2d9a8f11ce4", "score": "0.6628604", "text": "function scriptsSystem() {\n\n\twp_enqueue_script( 'jquery', get_stylesheet_directory_uri() . '/js/jquery-3.2.1.min.js', array( 'jquery' ), '3.2.1', true );\n\twp_enqueue_script( 'bootstrap', get_stylesheet_directory_uri() . '/js/bootstrap.min.js' );\n\twp_enqueue_script( 'swiper', get_stylesheet_directory_uri() . '/js/swiper.min.js' );\n\t// wp_enqueue_script( 'filter-blog', get_stylesheet_directory_uri() . '/js/filter-blog.js' );\n\t// wp_enqueue_script( 'lightbox', get_stylesheet_directory_uri() . '/js/ekko-lightbox.min.js' );\n\t// wp_enqueue_script( 'jquery-lazy', get_stylesheet_directory_uri() . '/js/jquery.lazy.min.js' );\n\twp_enqueue_script( 'cookies', get_stylesheet_directory_uri() . '/js/cookies-enabler.js' );\n\twp_enqueue_script( 'init', get_stylesheet_directory_uri() . '/js/init.js' );\n\n\n}", "title": "" }, { "docid": "b72bec68b7ce4a8700f28aadd18ae426", "score": "0.66284657", "text": "public static function addScriptsFramework(){\r\n\t\t\r\n\t\tUniteFunctionsWPUG::addMediaUploadIncludes();\r\n\t\t\t\t\r\n\t\twp_enqueue_script( 'jquery' );\r\n\t\t\r\n\t\t//add jquery ui\r\n\t\twp_enqueue_script(\"jquery-ui\");\r\n\t\twp_enqueue_script(\"jquery-ui-dialog\");\r\n\t\t\r\n\t\tHelperUG::addStyle(\"jquery-ui.structure.min\",\"jui-smoothness-structure\",\"css/jui/new\");\r\n\t\tHelperUG::addStyle(\"jquery-ui.theme.min\",\"jui-smoothness-theme\",\"css/jui/new\");\r\n\t\t\r\n\t\tif(function_exists(\"wp_enqueue_media\"))\r\n\t\t\twp_enqueue_media();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3242f9c6b478c4ae10663d7e223da299", "score": "0.6626218", "text": "function enqueue_theme_scripts() {\n\tif (!is_admin()) {\n\t\tglobal $jsPath, $theLayout;\n\t\t// wp_register_script( $handle, $src, $deps, $ver, $in_footer );\n\t\t\n\t\t// Modernizr (enables HTML5 elements & feature detects)\n\t\twp_deregister_script( 'modernizr' );\n\t\twp_register_script( 'modernizr', $jsPath.'libs/modernizr-1.6.min.js', '', '1.6');\n\t\twp_enqueue_script( 'modernizr' );\n\t\t\n\t\t// jQuery\n\t\twp_deregister_script( 'jquery' );\n\t\twp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js', array(), '1.6.2');\n\t\twp_enqueue_script( 'jquery' );\n\t\t\n\t\t// swfobject\n\t\twp_deregister_script( 'swfobject' );\n\t\twp_register_script( 'swfobject', $jsPath.'libs/swfobject.js', array(), '2.2');\n\t\twp_enqueue_script( 'swfobject' );\n\t\t\n\t\t// Cufon fonts for headings\n\t\t//if ($theLayout['heading_font']['cufon']) {\n\t\t\t// Cufon YUI\n\t\t\twp_deregister_script( 'cufon' );\n\t\t\twp_register_script( 'cufon', $jsPath.'libs/cufon-yui.js', '', '1.09');\n\t\t\twp_enqueue_script( 'cufon' );\n\t\t//}\n\t\t\n\t\t// DD Smooth Menu (main menu drop downs) \n\t\twp_deregister_script( 'ddsmoothmenu' );\n\t\twp_register_script( 'ddsmoothmenu', $jsPath.'libs/ddsmoothmenu.js', array('jquery'), '1.5', true);\n\t\twp_enqueue_script( 'ddsmoothmenu' );\n\n\t\t// Colorbox (lightbox)\n\t\twp_deregister_script( 'colorbox' );\n\t\twp_register_script( 'colorbox', $jsPath.'libs/jquery.colorbox-min.js', array('jquery'), '1.3.16', true);\n\t\twp_enqueue_script( 'colorbox' );\n\t\t\n\t\t// Overlabel\n\t\twp_deregister_script( 'overlabel' );\n\t\twp_register_script( 'overlabel', $jsPath.'libs/jquery.overlabel.min.js', array('jquery'), '1.0', true);\n\t\twp_enqueue_script( 'overlabel' );\n\t\t\n\t}\n}", "title": "" }, { "docid": "f9c8da092076437487a6ba30a240479c", "score": "0.6619508", "text": "function onefourthree_scripts() {\n\n\t/*\n\t * Enqueue Scripts\n\t */\n\twp_enqueue_style( 'style-name', get_stylesheet_uri() );\n\t// jQuery\n\twp_enqueue_script( 'jquery' );\n\n\twp_enqueue_script( 'app', get_template_directory_uri() . '/javascripts/app.js', array( 'jquery' ), '6.0', true );\n\twp_enqueue_script( 'html5shim', get_template_directory_uri() . '/javascripts/vendor/html5shim.js', array( 'jquery' ), '6.0', true );\n}", "title": "" }, { "docid": "788f0887d7dda664de8d2dbb8263d3d0", "score": "0.6619348", "text": "function engine_commerce_scripts() {\n\twp_enqueue_script( 'jquery' );\n\n wp_enqueue_style( 'gh-starter-theme-style', get_template_directory_uri() . '/public/styles/main.css', false, filemtime(get_stylesheet_directory() . '/public/styles/main.css'));\n\n\twp_register_script('sticky-kit-js', get_template_directory_uri() . '/public/scripts/jquery.sticky-kit.min.js', false, filemtime( get_stylesheet_directory().'/public/scripts/jquery.sticky-kit.min.js' ), true);\n\twp_enqueue_script('sticky-kit-js');\n\n\twp_register_script('flickity-js', get_template_directory_uri() . '/public/scripts/flickity.pkgd.min.js', false, filemtime( get_stylesheet_directory().'/public/scripts/flickity.pkgd.min.js' ), true);\n\twp_enqueue_script('flickity-js');\n\n wp_register_script('aos-js', get_template_directory_uri() . '/public/scripts/aos.js', false, filemtime( get_stylesheet_directory().'/public/scripts/aos.js' ), true);\n wp_enqueue_script('aos-js');\n\n\twp_register_script('global-js', get_template_directory_uri() . '/public/scripts/main.js', false, filemtime( get_stylesheet_directory().'/public/scripts/main.js' ), true);\n\twp_enqueue_script('global-js');\n}", "title": "" }, { "docid": "91701960f8046f9fa638e250c4014e00", "score": "0.6619065", "text": "public function actionEnqueueScripts()\n {\n $js_uri = get_theme_file_uri( '/assets/dist/scripts/' );\n $js_dir = get_theme_file_path( '/assets/dist/scripts/' );\n\n $js_files = $this->getJsFiles();\n foreach ( $js_files as $handle => $data ) {\n $src = $js_uri . $data['file'];\n $version = sophia()->getAssetVersion( $js_dir . $data['file'] );\n $deps = $data['deps'];\n $in_foot = $data['in_foot'];\n\n wp_enqueue_script( $handle, $src, $deps, $version, $in_foot );\n }\n }", "title": "" }, { "docid": "99a3ec6711b05267fdd3eabecb075b72", "score": "0.6615574", "text": "public function scripts()\n {\n // Load jQuery\n wp_enqueue_script( \"jquery\" );\n\n // jQuery cookie, used to add a cookie so visitors can hide the popup\n wp_enqueue_script( \"apc_jquery_cookie\", plugins_url( '/js/jquery.cookie.js', __FILE__ ), array( 'jquery' ) );\n\n // The ajax request so the plugin works with caching plugins\n wp_enqueue_script( \"abc_script\", plugins_url( '/js/script.js', __FILE__ ), array( 'jquery' ) );\n }", "title": "" }, { "docid": "11f882e7fdd8af95f828486f4a0d93d0", "score": "0.6613981", "text": "function enqueue_styles_and_scripts()\n\t{\n\t\t// ENQUEUE JQUERY\n\t\twp_enqueue_script( 'jquery' );\n\t\t\n\t\t// ENQUEUE STYLE\n\t\t// wp_enqueue_style( 'slider-style', $this->plugin_url . '/slider.css' );\n\t\t\n\t\t// ENQUEUE PLUGIN-NAME.JS SCRIPT\n\t\twp_enqueue_script( \n\t\t\t$this->plugin_slug, \n\t\t\t$this->plugin_url . '/' . $this->plugin_slug . '.js',\n\t\t\tarray( 'jquery' ),\n\t\t\t$this->plugin_version\n\t\t);\n\t\t\n\t\t// ENQUEUE TOUCHWIPE SCRIPT\n\t\twp_enqueue_script( \n\t\t\t'touchwipe', \n\t\t\t$this->plugin_url . '/scripts/jquery.touchwipe.min.js',\n\t\t\tarray( 'jquery' ),\n\t\t\t$this->plugin_version\n\t\t);\n\t\t\n\t\t// PASS PLUGIN SETTINGS TO THE SCRIPT\n\t\t$a_ajax_vars = array(\n\t\t\t'settings' => $this->get_settings_array(),\n\t\t);\t\t\n\t\twp_localize_script(\n\t\t\t$this->plugin_slug, \n\t\t\t$this->plugin_namespace . 'ajax_vars', \n\t\t\t$a_ajax_vars\n\t\t);\n\t}", "title": "" }, { "docid": "89856c23f59c75fefc5ce5560a10bd25", "score": "0.66133404", "text": "public function enqueue_styles_script()\n {\n if (AWM_JQUERY_LOAD) {\n wp_enqueue_script('jquery-ui-datepicker');\n wp_enqueue_style('jquery-ui-awm');\n }\n wp_enqueue_style('awm-global-style');\n wp_enqueue_script('awm-global-script');\n wp_enqueue_script('awm-public-script');\n }", "title": "" }, { "docid": "c42998d4cadda638555363cd9d6fa435", "score": "0.66119564", "text": "public function enqueue_scripts() {\n\t\t// wp_register_script( 'featured-topics-js', $fs_careers->installed_url . '/assets/js/fs-careers.js', array( 'jquery', 'chosen-js' ), filemtime( $fs_careers->installed_dir . '/assets/js/fs-careers.js' ), false );\n\t}", "title": "" }, { "docid": "144f4dc5a87dc05174a1d60b0a60af60", "score": "0.6611563", "text": "function expire_frontend_scripts() {\n\t\tif ( is_singular() ) {\n\t\t\twp_enqueue_script( 'comment-reply' );\n\t\t}\n\n\t\texpire_fonts_dependency();\n\n\t\twp_enqueue_style( 'expire-main-css', get_stylesheet_uri(), array( 'expire-google-fonts', 'expire-icon-font', 'wp-mediaelement' ), expire_theme_version() );\n\n\t\t// Styles from options - appends styles to $custom_css variable.\n\t\t$custom_css = '';\n\t\tinclude_once( get_stylesheet_directory() . '/inc/dynamic-css.php' );\n\t\twp_add_inline_style( 'expire-main-css', $custom_css );\n\n\t\twp_enqueue_script( 'expire-custom', EXPIRE_TEMPPATH . '/assets/js/custom.js', array( 'jquery', 'imagesloaded', 'wp-mediaelement' ), expire_theme_version(), true );\n\n\t}", "title": "" }, { "docid": "859cca3500da429a040fb29620ce2772", "score": "0.6607879", "text": "function quindo_scripts_and_styles() {\n if (WP_ENV === 'production')\n $quindo_file_suffix = '.min';\n global $wp_styles; // call global $wp_styles variable to add conditional wrapper around ie stylesheet the WordPress way\n if (!is_admin()) {\n\n // Deregister Scripts\n wp_deregister_script('jquery');\n\n // Register Scripts\n wp_enqueue_script('jquery', (\"//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js\"), false, false, true);\n wp_enqueue_script('global', (get_bloginfo(\"template_url\").\"/_/js/pro/global\".$quindo_file_suffix.\".js?\".filemtime(get_template_directory().\"/_/js/pro/global\".$quindo_file_suffix.\".js\")), false, false, true);\n\n // Register Styles\n wp_enqueue_style( 'application', get_bloginfo(\"template_url\").\"/_/css/application\".$quindo_file_suffix.\".css?\".filemtime(get_template_directory().\"/_/css/application\".$quindo_file_suffix.\".css\") );\n }\n}", "title": "" }, { "docid": "f460883e89655aad9aa6b40612dd71ad", "score": "0.6607403", "text": "function themerex_tribe_events_frontend_scripts() {\n\t\tglobal $wp_styles;\n\t\t$wp_styles->done[] = 'tribe-events-custom-jquery-styles';\n\t\tthemerex_enqueue_style( 'tribe-style', themerex_get_file_url('css/tribe-style.css'), array(), null );\n\t}", "title": "" }, { "docid": "2ba0959591ebca2c3799cdecb4934554", "score": "0.66036564", "text": "public function backend_scripts()\n {\n\tglobal $post;\n\t \n\t// jquery ui\n\twp_deregister_script('jquery-ui');\n\twp_register_script('jquery-ui','http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.min.js',array('jquery')); // CDN\n\twp_enqueue_script('jquery-ui');\n\twp_enqueue_style( 'jquery-ui', 'http://code.jquery.com/ui/1.8.4/themes/start/jquery-ui.css'); // CDN\n\t\n\tif( $post->post_type == self::LESSON ){\n\t \n\t wp_enqueue_script('custom-lesson-box', AFR_LS_PLUGIN_URL . '/js/custom-lesson-box.js');\n\t wp_enqueue_style('jquery-ui-custom', AFR_LS_PLUGIN_URL . '/css/jquery-ui-custom.css');\n\t \n\t} elseif( $post->post_type == self::SCHOOL ) {\n\t \n\t wp_enqueue_script( 'googlemapsapi', 'http://maps.google.com/maps/api/js?sensor=false', array(), '3', false );\n\t wp_enqueue_script( 'gmap3', AFR_LS_PLUGIN_URL . '/js/gmap3/gmap3.min.js');\n\t \n\t}\n }", "title": "" }, { "docid": "f75afb05ee2ed02cb3a17ae4702a3ee3", "score": "0.6603184", "text": "function cone_enqueue_scripts() {\n\n // WordPress style.css\n wp_enqueue_style( 'default-style', get_stylesheet_uri() );\n\n wp_enqueue_style( 'hamburger-style', get_template_directory_uri() . '/assets/css/lib/hamburgers.min.css' );\n\n wp_enqueue_script( 'hamburger-scripts', get_template_directory_uri() . '/assets/js/lib/hamburgers.js', array('jquery'), 1.0, true );\n\n // vendor.css created with gulp\n wp_enqueue_style( 'main-min-style', get_template_directory_uri() . '/assets/css/main.min.css' );\n\n // vendor.js created with gulp\n wp_enqueue_script( 'main-min-scripts', get_template_directory_uri() . '/assets/js/src/main.min.js', array('jquery'), 1.0, true );\n\n wp_localize_script(\n 'main-min-scripts', // this needs to match the name of our enqueued script\n 'ajaxApi', // the name of the object\n array('ajaxurl' => admin_url('admin-ajax.php')) // the property/value\n );\n}", "title": "" }, { "docid": "149bf676baeeda34d522be514b749497", "score": "0.66028756", "text": "public function enqueue_scripts()\n\t{\n\t\tif (is_singular()) wp_enqueue_script('comment-reply');\n\n\t\twp_enqueue_style('app', get_template_directory_uri().'/assets/css/app.css', false, '1.0.0', 'all');\n\t\twp_enqueue_script('main', get_template_directory_uri().'/assets/js/main.js', array('jquery'), '1.0.0', true);\n\t}", "title": "" }, { "docid": "472942969d0bf74828aa120281b6093f", "score": "0.66016644", "text": "public function enqueue_scripts() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Catch_Infinite_Scroll_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Catch_Infinite_Scroll_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\tif( isset( $_GET['page'] ) && 'catch-infinite-scroll' == $_GET['page'] ) {\n\t\t\t$defaults = catch_infinite_scroll_default_options();\n\n\t\t\twp_enqueue_script( $this->catch_infinite_scroll . '-match-height', plugin_dir_url( __FILE__ ) . 'js/jquery.matchHeight.min.js', array( 'jquery' ), $this->version, false );\n\n\t\t\twp_register_script( $this->catch_infinite_scroll, plugin_dir_url( __FILE__ ) . 'js/catch-infinite-scroll-admin.js', array( 'jquery' ), $this->version, false );\n\n\t\t\twp_localize_script( $this->catch_infinite_scroll, 'default_options', $defaults );\n\n\t\t\twp_enqueue_script( $this->catch_infinite_scroll );\n\n\t\t\twp_enqueue_media();\n\t\t}\n\n\t}", "title": "" } ]
9c58b6c527be794c4750de195b8061d0
Use the DataPokedex relation DataPokedex object
[ { "docid": "79674c314d3f285d46d0aa62b4679ba9", "score": "0.59063435", "text": "public function useDataPokedexQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN)\n {\n return $this\n ->joinDataPokedex($relationAlias, $joinType)\n ->useQuery($relationAlias ? $relationAlias : 'DataPokedex', '\\Propel\\PtuToolkit\\DataPokedexQuery');\n }", "title": "" } ]
[ { "docid": "14b83f5ee8a6995f6e472b577ebfc3fe", "score": "0.49219677", "text": "public function voucherInstancePoints(){\n return $this->hasMany('App\\Models\\VoucherInstancePoints');\n }", "title": "" }, { "docid": "fb7754071528dadf17b6bbbd44333d7e", "score": "0.48922178", "text": "public function joinDataPokedex($relationAlias = null, $joinType = Criteria::LEFT_JOIN)\n {\n $tableMap = $this->getTableMap();\n $relationMap = $tableMap->getRelation('DataPokedex');\n\n // create a ModelJoin object for this join\n $join = new ModelJoin();\n $join->setJoinType($joinType);\n $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n if ($previousJoin = $this->getPreviousJoin()) {\n $join->setPreviousJoin($previousJoin);\n }\n\n // add the ModelJoin to the current object\n if ($relationAlias) {\n $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n $this->addJoinObject($join, $relationAlias);\n } else {\n $this->addJoinObject($join, 'DataPokedex');\n }\n\n return $this;\n }", "title": "" }, { "docid": "2e9cefea56f889516f0266d4fadba7ad", "score": "0.48571566", "text": "public function dich()\n {\n return $this->hasMany('\\App\\Models\\translate_product', 'id_pro', 'id');\n }", "title": "" }, { "docid": "d87368ee7859385b50895c6156903fc1", "score": "0.47707292", "text": "public function data(){\n return $this->hasOne('App\\Data');\n }", "title": "" }, { "docid": "3a72d8ceb1f44d91493260f3cfba67c9", "score": "0.47471458", "text": "public function borraloteporkardex($id){\n\t\t$calv=Alkardex::model()->findByPk($id)->idotrokardex;\n\t/*\techo \" lallaa \";var_dump($calv);\n\t\techo \" dfdfd \";var_dump(Lotes::model()->findAll(\"hidkardex=:vkardex \",array(\":vkardex\"=>$calv)));*/\n\t\tforeach(Lotes::model()->findAll(\"hidkardex=:vkardex \",array(\":vkardex\"=>$calv)) as $fila){\n\t\t\tif($fila->tienedespachos == 0){ ///Solo si los lotes no se han tocado\n\t\t\t\t//$calv=Alkardex::model()->find(\"idotrokardex=:vkardex\",array(\":vkardex\"=>$id))->id;\n\t\t\t\t//Dlote::model()->deleteAll(\"hidlote=:vidlote \",array(\":vidlote\"=>$fila->id,\":vkardex\"=>$calv));//por si acaso\n\t\t\t\t//die();\n\t\t\t\tLotes::model()->deleteAll(\"hidkardex=:vkardex\",array(\":vkardex\"=>$calv));\n\t\t\t}else{\n\t\t\t\tMiFactoria::Mensaje('error',$this->identidada().' El lote '.$fila->numlote.' Ya tiene movimientos y no puede anular el documento');\n\t\t\t}\n\t\t}\n\n\n\t}", "title": "" }, { "docid": "e9cd11200af6cceb4f8a81f5825dfe28", "score": "0.46521994", "text": "protected function translateToDataBase() { }", "title": "" }, { "docid": "db6054394d696f0c77664800dd6d0ac4", "score": "0.4643141", "text": "public function getCatchablePokemon()\n {\n\n\n }", "title": "" }, { "docid": "fd730a669b0fa9884692f79e20de47f9", "score": "0.46183667", "text": "public function __construct()\n {\n\n // $data = asfk;\n }", "title": "" }, { "docid": "0c00575423c226258e4d45cef4c1cf7c", "score": "0.46000695", "text": "public function getrankingdata()\n\t{ // $this->load->model('host');\n\t\t$this->load->model('getrankingdata'); //Load the class \n \n\t\t$this->getrankingdata->getrankingByScoreData(); //JSON response\n\t\t \t\n\t}", "title": "" }, { "docid": "3358b56f1119b40301c2bea29024d2ee", "score": "0.45749378", "text": "public function kepalaSkpd()\n {\n return $this->belongsTo(PejabatUnit::class, 'kepala_skpd', 'id');\n }", "title": "" }, { "docid": "4dbfc65bcd826a166f4a39b12782412e", "score": "0.45247257", "text": "public function getKoppelData()\r\n {\r\n return $this->hasMany('App\\Models\\Koppel_standhouders_markten', 'markt_id', 'id');\r\n }", "title": "" }, { "docid": "510f9f3d67aa729cc6cbcf36614f660f", "score": "0.45218995", "text": "public function pengguna()\n {\n \treturn $this->belongsTo(pengguna::class);\n }", "title": "" }, { "docid": "2f5d465a545e6465f4a1f5b8bef67bbc", "score": "0.45093372", "text": "public function tenpen()\n {\n return $this->belongsTo(Tenpen::Class);\n }", "title": "" }, { "docid": "6f4d5388bec122f01001ce73b5dc6bfe", "score": "0.4492336", "text": "public function likes()\n {\n return new Engine_ProxyObject($this, Engine_Api::_()->getDbtable('likes', 'core'));\n }", "title": "" }, { "docid": "6f4d5388bec122f01001ce73b5dc6bfe", "score": "0.4492336", "text": "public function likes()\n {\n return new Engine_ProxyObject($this, Engine_Api::_()->getDbtable('likes', 'core'));\n }", "title": "" }, { "docid": "6f4d5388bec122f01001ce73b5dc6bfe", "score": "0.4492336", "text": "public function likes()\n {\n return new Engine_ProxyObject($this, Engine_Api::_()->getDbtable('likes', 'core'));\n }", "title": "" }, { "docid": "6f4d5388bec122f01001ce73b5dc6bfe", "score": "0.4492336", "text": "public function likes()\n {\n return new Engine_ProxyObject($this, Engine_Api::_()->getDbtable('likes', 'core'));\n }", "title": "" }, { "docid": "f2b09b42629d47fafabf9c8c08b223a6", "score": "0.44882518", "text": "public static function searchAdVip($marka,$model,$godisteOd,$godisteDo,$cenaOd,$cenaDo,$garancija,$rate){\n \n $conn= Database::getInstance();\n $string=\"SELECT * FROM oglas o, korisnik k \";\n $filter=[];\n $values=[];\n if ($marka !=\"\"){\n $filter[]=\" Marka = ? \";\n $values[]=$marka;\n }\n if ($model!= \"\"){\n $filter[] = \" Model = ? \";\n $values[]=$model;\n }\n if ($godisteOd!= \"\"){\n $filter[] = \" Godiste >= ? \";\n $values[]=$godisteOd;\n }\n if ($godisteDo!= \"\"){\n $filter[] = \" Godiste <= ? \";\n $values[]=$godisteDo;\n }\n if ($cenaOd!= \"\"){\n $filter[] = \" Cena >= ? \";\n $values[]=$cenaOd;\n }\n if ($cenaDo!= \"\"){\n $filter[] = \" Cena <= ? \";\n $values[]=$cenaDo;\n }\n if ($garancija!= \"\"){\n $filter[] = \" Garancija = ? \";\n $values[]=$garancija;\n }\n if ($rate!= \"\"){\n $filter[] = \" Rate = ? \";\n $values[]=$rate;\n }\n $string.=\"WHERE o.idKorisnik=k.idKorisnik AND Tip='Vip' \";\n if (count($filter)>0){\n $string.= \" AND \".implode(' AND ', $filter);\n $sql = $conn->prepare($string);\n $sql->execute($values);\n $result = $sql->fetchAll();\n }\n else {\n $sql = $conn->prepare($string);\n $sql->execute();\n $result = $sql->fetchAll();\n \n }\n \n $niz=[];\n foreach ($result as $ad){\n \n $niz[]= new Ad($ad['idOglas'], $ad['Marka'], $ad['Model'], $ad['Godiste'], $ad['Mesto'], $ad['Cena'], \n $ad['Kilometraza'], $ad['Gorivo'], $ad['Menjac'], $ad['Snaga'], \n $ad['Opis'], $ad['CenaJeFiksna'], $ad['Rate'], $ad['Garancija'], \n $ad['Zamena'], $ad['Panorama'], $ad['ElPodizaci'], $ad['AluFelne'],\n $ad['Xenon'], $ad['LedFarovi'], $ad['Tempomat'], $ad['Navigacija'], \n $ad['VazdVesanje'], $ad['MultifunVolan'], $ad['idKorisnik']);\n \n }\n return $niz;\n }", "title": "" }, { "docid": "d7804a2b9d229afb88e9455a16d8979e", "score": "0.44878626", "text": "public function crealote($hidkardex,$numerolote=null){\n\t\t//verificando la cantida que se despacho\n\n\t\t$regkardex=Alkardex::model()->findByPk($hidkardex);\n\t\t//var_dump($hidkardex);var_dump($regkardex);\n\t\tif(!is_null($regkardex)){\n\t\t\t$cantidad=$regkardex->cantidadbase(); //En unidades base porque es un registro de Inventario\n\t\t\t$montomovido=$regkardex->montobase();//En unidades base porque es un registro de Inventario\n\n\t\t\t$refkardex=Alkardex::model()->findByPk($regkardex->idref);\n\t\t\tif(!is_null($refkardex)){\n\t\t\t\tif($refkardex->codmov=='77' AND\n\t\t\t\t\tin_array($refkardex->alkardex_alinventario->maestrodetalle->controlprecio,\n\t\t\t\t\t\tarray('F','V'))\n\t\t\t\t) //OJO SI la conTraparte ha sido un INICIO DE TRASALADO Y ESTE MATERIAL TIENE CONTROL DE PRECIOS F,L , LOS LOTES DEBEN DE MANTENER SU INDENTIDAD\n\t\t\t\t{ //eN ESTE CASO CREAREMOS LOS LOTES DEACUERDO TAL COMO FIGURAN EN EL RESITRO DE LOS DLOTES(DESPACHOS) (EN LE KARDEX DEL IICIO DEL TRASALDO)\n\t\t\t\t\t$despachos=Dlote::model()->findAll(\"hidkardex=:vidkardex\",array(\":vidkardex\"=>$refkardex->id));\n\t\t\t\t\tforeach($despachos as $filadespacho)\n\t\t\t\t\t{\n\n\t\t\t\t\t\t\t$lote=New Lotes('automatico');\n\t\t\t\t\t\t$lote->setAttributes(\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t'numlote'=>substr($numerolote,0,32),\n\t\t\t\t\t\t\t\t'fechaingreso'=>date('Y-m-d H:i.s'),\n\t\t\t\t\t\t\t\t'cant'=>$filadespacho->cant,//Ojo es la misma unidad de invenatrio a ainventario, la unidad base4\n\t\t\t\t\t\t\t\t'hidinventario'=>$this->id,\n\t\t\t\t\t\t\t\t'hidkardex'=>$hidkardex,\n\t\t\t\t\t\t\t\t//'orden'=>microtime(true),\n\t\t\t\t\t\t\t\t//'stock'=>$campo,\n\t\t\t\t\t\t\t\t'punit'=>$filadespacho->lote->punit* ///Aqui si los punits pueden ser difernetes por el cambio de moneda\n\t\t\t\t\t\t\t\t\tyii::app()->tipocambio->\n\t\t\t\t\t\t\t\t\tgetcambio($refkardex->codmoneda, $regkardex->codmoneda),\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tif(!$lote->save())\n\t\t\t\t\t\t\tMiFactoria::Mensaje('error',$this->identidada().' '.yii::app()->mensajes->getErroresItem($lote->geterrors()));\n\t\t\t\t\t}\n\t\t\t\t\treturn;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t\tunset($regkardex);\n\t\t\t\t$lote=New Lotes('automatico');\n\t\t\t\t$lote->setAttributes(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'numlote'=>substr($numerolote,0,32),\n\t\t\t\t\t\t'fechaingreso'=>date('Y-m-d H:i.s'),\n\t\t\t\t\t\t'cant'=>$cantidad,\n\t\t\t\t\t\t'hidinventario'=>$this->id,\n\t\t\t\t\t\t'hidkardex'=>$hidkardex,\n\t\t\t\t\t\t//'stock'=>$campo,\n\t\t\t\t\t\t'punit'=>$montomovido/$cantidad,\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\tif(!$lote->save())\n\t\t\t\t\tMiFactoria::Mensaje('error',$this->identidada().' '.yii::app()->mensajes->getErroresItem($lote->geterrors()));\n\n\t\t\t}else {\n\t\t\tMiFactoria::Mensaje('error', ' El valor del id kardex ' . $hidkardex . ' No tiene registro');\n\t\t}\n\t\t}", "title": "" }, { "docid": "4e64c5118815e220a5eaf266b6cbbd58", "score": "0.44839478", "text": "public function getPedido()\n {\n return $this->hasOne(Pedido::className(), ['app_idApp' => 'app_idApp','id'=>'pedido_id']);\n }", "title": "" }, { "docid": "e9bd4c0a9836a448d2d53cbcbe967c9d", "score": "0.44796592", "text": "public function petugas() {\n\t\treturn $this->hasOne('Petugas', 'id_kelurahan');\n\t}", "title": "" }, { "docid": "7b2e6bb956fc9ca2b2fe5c0f1b877971", "score": "0.44690457", "text": "public function likes() {\n\n return new Engine_ProxyObject($this, Engine_Api::_()->getDbtable('likes', 'core'));\n }", "title": "" }, { "docid": "6dd0df5bf078e5e6732b6111e8d90a9c", "score": "0.44561666", "text": "public function pda()\n {\n return $this->hasOne(Pda::class);\n }", "title": "" }, { "docid": "ba8b073e3115be92a48e123ae4be83eb", "score": "0.4450651", "text": "function getRelatedObj()\n {\n }", "title": "" }, { "docid": "da02c1aabe1fd157a7fb1915519f2306", "score": "0.44500437", "text": "public function adver()\n {\n return $this->hasOne('App\\Advertising');\n }", "title": "" }, { "docid": "3781bbee5f68338ad8ee5a0d48d6b677", "score": "0.44490957", "text": "public function getpkjAyah()\n {\n return $this->hasOne(Pekerjaan::className(), ['id' => 'id_pkj_ayah']);\n }", "title": "" }, { "docid": "c41d363f3367370813159482cbc5b00c", "score": "0.44428432", "text": "public function show(string $search) {\n // Instance of Pokemon model.\n $pok = Pokemon::where('name', $search)->first();\n if ($pok) {\n //return Inertia...... PokemonDetail\n return Inertia::render('PokemonDetail', ['pokemon' => $pok]);\n }\n\n // Om vi kom hit.. Fanns ingen pokemon i Databasen.\n // Kör en APi request.\n // Array med 17st ....\n\n $response = Http::get('https://pokeapi.co/api/v2/pokemon/' . $search);\n $pokemonData = $response->json();\n\n if ($pokemonData != null) {\n $response = Http::get('https://pokeapi.co/api/v2/pokemon-species/' . $pokemonData['name']);\n $description = $response->json();\n //dd($pokemonData);\n //dd($description);\n $pokemon = new Pokemon;\n //dd($pokemon);\n $pokemon->name = $pokemonData['name'];\n //dd($pokemon->name);\n $pokemon->type = $pokemonData['types'][0]['type']['name'];\n //dd($pokemon->type);\n $pokemon->height = $pokemonData['height'];\n $pokemon->weight = $pokemonData['weight'];\n $pokemon->description = $description['flavor_text_entries'][7]['flavor_text'];\n $pokemon->image = $pokemonData['sprites']['other']['official-artwork']['front_default'];\n //dd($pokemon->image);\n $pokemon->save();\n return Inertia::render('PokemonDetail', ['pokemon' => $pokemon]);\n }\n\n\n return Redirect::route('index');\n\n //return Redirect::route('show', ['pokemon' => $pokemon],303);\n // Sen kan vi redirecta ned Inertia Redirect?? Till våra nya pokemon.. Eller bara köra Intertia Render..\n\n\n //return Redirect::route('store', ['search' => $search, 'data' => $data], 303);\n //return response()->json([]);\n }", "title": "" }, { "docid": "dd54f0f80e6ae16cd32cf65f224f36e2", "score": "0.44428405", "text": "public function tbl_hopdong(){\n return $this->belongsTo('App\\tbl_hopdong','id_hopdong','id_hopdong');\n }", "title": "" }, { "docid": "ce1ef6d475121079bec89a8e5f38b45a", "score": "0.44342548", "text": "protected function related()\n {\n }", "title": "" }, { "docid": "57a290728c1d2db0cc2a51930e6ef49a", "score": "0.4410259", "text": "public function index()\n {\n // GET pokemon\n $pokemon = Pokedex::orderBy('id')->paginate(15);\n\n return PokemonResource::collection($pokemon);\n }", "title": "" }, { "docid": "648b1e9d217ee6510d1ca556841333cc", "score": "0.4402979", "text": "private function _getRecommendDs(){\n\t\treturn Wekit::load('attention.PwAttentionRecommendRecord');\n\t}", "title": "" }, { "docid": "f3732b289df24c3fb39fabe12b0efedf", "score": "0.43823272", "text": "public function detail($id_kardex){\n $products = Product::all();\n $kardex = Kardex::findOrFail($id_kardex);\n\n foreach($products as $product){\n $detail = new Kardex_Product();\n $detail->product_id = $product->id;\n $detail->kardex_id = $kardex->id;\n $detail->stock_ini = $product->unity;\n $detail->input_product = 0;\n $detail->output_product = 0;\n $detail->total = $detail->stock_ini + $detail->input_product;\n $detail->stock_end = $detail->total - $detail->output_product ;\n $detail->date = $kardex->date;\n $detail->save();\n \n }\n\n }", "title": "" }, { "docid": "b0b7121e5154220098b2dbbcfb22b62e", "score": "0.4354019", "text": "public function getOkpdtr0()\n {\n return $this->hasOne(TblOkpdtr::className(), ['okpdtr' => 'okpdtr']);\n }", "title": "" }, { "docid": "7f659987f02f822cdf73bf51147b18b7", "score": "0.43399078", "text": "abstract protected function getFortReference(array $responseData);", "title": "" }, { "docid": "3846a9a51d0a93669a366ad1d970e48c", "score": "0.43375582", "text": "static public function getListaPokemon(){\r\n\t\t\t$pokeLista = Array();\r\n\t\t\t\r\n\t\t\t//inicializo a minha variavel responsavel por ligar o banco\r\n\t\t\t$dbManager = New dataBaseManager();\r\n\t\t\t\r\n\t\t\t$dbManager->openConnection();\r\n\t\t\t\r\n\t\t\t//Passo o select que eu quero para o metodo, no caso do pokemon um select simples\r\n\t\t\t$result = $dbManager->getData(\"SELECT \r\n\t\t\t\t\t\t\t\t\t\t\t\tidPokemon, \r\n\t\t\t\t\t\t\t\t\t\t\t\tnDex, \r\n\t\t\t\t\t\t\t\t\t\t\t\tnome, \r\n\t\t\t\t\t\t\t\t\t\t\t\tnomeImgMS, \r\n\t\t\t\t\t\t\t\t\t\t\t\tnomeImg, \r\n\t\t\t\t\t\t\t\t\t\t\t\thp, \r\n\t\t\t\t\t\t\t\t\t\t\t\tataque, \r\n\t\t\t\t\t\t\t\t\t\t\t\tdefesa, \r\n\t\t\t\t\t\t\t\t\t\t\t\tataqueEspecial, \r\n\t\t\t\t\t\t\t\t\t\t\t\tdefesaEspecial, \r\n\t\t\t\t\t\t\t\t\t\t\t\tvelocidade, \r\n\t\t\t\t\t\t\t\t\t\t\t\tidTipo1, \r\n\t\t\t\t\t\t\t\t\t\t\t\tidTipo2, \r\n\t\t\t\t\t\t\t\t\t\t\t\tidGeracao \r\n\t\t\t\t\t\t\t\t\t\t\tFROM pokemon order by idPokemon\"\r\n\t\t\t);\r\n\t\t\t\r\n\t\t\t// intero sobre todos os elemento do retorno da consulta\r\n\t\t\twhile($poke = mysqli_fetch_assoc($result)) {\r\n\t\t\t\t\r\n\t\t\t\t$novoPokemon = new pokemon();\r\n\t\t\t\t\r\n\t\t\t\t$novoPokemon->setidPokemon((int)$poke['idPokemon']); \r\n\t\t\t\t$novoPokemon->setnDex($poke['nDex']);\r\n\t\t\t\t$novoPokemon->setnome($poke['nome']); \r\n\t\t\t\t$novoPokemon->setnomeImgMS($poke['nomeImgMS']);\r\n\t\t\t\t$novoPokemon->setnomeImg($poke['nomeImg']);\r\n\t\t\t\t$novoPokemon->sethp((int)$poke['hp']);\r\n\t\t\t\t$novoPokemon->setataque((int)$poke['ataque']);\r\n\t\t\t\t$novoPokemon->setdefesa((int)$poke['defesa']); \r\n\t\t\t\t$novoPokemon->setataqueEspecial((int)$poke['ataqueEspecial']);\r\n\t\t\t\t$novoPokemon->setdefesaEspecial((int)$poke['defesaEspecial']);\r\n\t\t\t\t$novoPokemon->setvelocidade((int)$poke['velocidade']);\r\n\t\t\t\t$novoPokemon->setidTipo1((int)$poke['idTipo1']);\r\n\t\t\t\t$novoPokemon->setidTipo2((int)$poke['idTipo2']); \r\n\t\t\t\t$novoPokemon->setidGeracao((int)$poke['idGeracao']);\r\n\t\t\t\t\r\n\t\t\t\t//conseguindo as habilidades Preciso corrigir os inserts do banco!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n\t\t\t\t$resHabilidade = $dbManager->getData(\"SELECT \r\n\t\t\t\t\t\t\t\t\t\t\t\t(SELECT idHabilidade \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tFROM habilidadePokemon\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE idTipoHabilidadePokemon = 1 AND idpokemon = \" .$poke['idPokemon']. \") as 'Primary',\r\n\t\t\t\t\t\t\t\t\t\t\t\t(SELECT idHabilidade \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tFROM habilidadePokemon\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE idTipoHabilidadePokemon = 2 AND idpokemon = \" .$poke['idPokemon']. \") as 'Second',\r\n\t\t\t\t\t\t\t\t\t\t\t\t(SELECT idHabilidade \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tFROM habilidadePokemon \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE idTipoHabilidadePokemon = 3 AND idpokemon = \" .$poke['idPokemon']. \") as 'Hidden'\"\r\n\t\t\t\t);\r\n\t\t\t\t\r\n\t\t\t\t$habilidades = mysqli_fetch_assoc($resHabilidade);\r\n\t\t\t\t\r\n\t\t\t\t//conseguindo as habilidades\r\n\t\t\t\t$novoPokemon->setidHabilidade1((int)$habilidades['Primary']);\r\n\t\t\t\t$novoPokemon->setidHabilidade2((int)$habilidades['Second']);\r\n\t\t\t\t$novoPokemon->setidHabilidadeHidden((int)$habilidades['Hidden']);\r\n\t\t\t\t\r\n\t\t\t\t//conseguindo os eggGroups\r\n\t\t\t\t$resEggGroup = $dbManager->getData(\"SELECT idEggGroup FROM pokemonEggGroup WHERE idpokemon = \" .$poke['idPokemon'] . \" ORDER BY idEggGroup\");\r\n\t\t\t\t\r\n\t\t\t\twhile($eggG = mysqli_fetch_assoc($resEggGroup)) {\r\n\t\t\t\t\t$novoPokemon->addIdsEggGroup((int)$eggG['idEggGroup']);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//Conseguindo a proxima evolucao\r\n\t\t\t\t$resEvoPoke = $dbManager->getData(\"SELECT ep.idPokemonPosEvo, ep.levelEvolucao, e.imgFormaEvolucao \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tFROM evolucaopokemon ep INNER JOIN evolucao e ON e.idevolucao = ep.idevolucao WHERE ep.idPokemonPreEvo = \".$poke['idPokemon']\r\n\t\t\t\t);\r\n\t\t\t\t//echo \"SELECT ep.idPokemonPosEvo, ep.levelEvolucao, e.imgFormaEvolucao \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t//FROM evolucaopokemon ep INNER JOIN evolucao e ON e.idevolucao = ep.idevolucao WHERE ep.idPokemonPreEvo = \".$poke['idPokemon'] . \"<br>\";\r\n\t\t\t\t\r\n\t\t\t\tif (mysqli_num_rows($resEvoPoke) > 0){\r\n\t\t\t\t\t$evoPoke = mysqli_fetch_assoc($resEvoPoke);\r\n\t\t\t\t\t\r\n\t\t\t\t\t$novoPokemon->setidPokemonEvolucao((int)$evoPoke['idPokemonPosEvo']);\r\n\t\t\t\t\t$novoPokemon->setlevelEvo($evoPoke['levelEvolucao']);\r\n\t\t\t\t\t$novoPokemon->setnomeImgEvo($evoPoke['imgFormaEvolucao']);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//conseguindo evolucao anterior\r\n\t\t\t\t$resPreEvoPoke = $dbManager->getData(\"SELECT ep.idPokemonPreEvo FROM evolucaopokemon ep WHERE ep.idPokemonPosEvo = \".$poke['idPokemon']);\r\n\r\n\t\t\t\tif (mysqli_num_rows($resPreEvoPoke) > 0){\r\n\t\t\t\t\t$evoPoke = mysqli_fetch_assoc($resPreEvoPoke);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t$novoPokemon->setidPreEvolucao((int)$evoPoke['idPokemonPreEvo']);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Conseguindo a lista de movimento dos pokemons\r\n\t\t\t\t$idPoke = $poke['idPokemon'];\r\n\t\t\t\t\r\n\t\t\t\t//conseguindo os ids de moves de levelUp do pokemon \r\n\t\t\t\t$resMove = $dbManager->getData(\"SELECT idMove, level FROM movePokemon WHERE idpokemon = \" . $idPoke . \" AND level IS NOT NULL ORDER BY idMove\");\r\n\t\t\t\t\r\n\t\t\t\t//se verifiquei que o id selecionado nao possui golpes\r\n\t\t\t\tif(mysqli_num_rows($resMove) == 0){//Estou em um pokemon mega\r\n\t\t\t\t\t//Os str_replace são para limpar o nome do pokemon exemplo M. Mewtwo Y se torna Mewtwo \r\n\t\t\t\t\t$resIdPokeBase = $dbManager->getData(\"SELECT idpokemon FROM pokemon WHERE nome = '\" . str_replace(\" Y\",\"\",str_replace(\" X\", \"\", str_replace(\"M. \",\"\",$poke['nome']))) . \"'\");\r\n\t\t\t\t\t$idPokeBase = mysqli_fetch_assoc($resIdPokeBase);\r\n\t\t\t\t\t$idPoke = $idPokeBase['idpokemon'];\r\n\t\t\t\t\t\r\n\t\t\t\t\t//repito o select dos moves com o novo id\r\n\t\t\t\t\t$resMove = $dbManager->getData(\"SELECT idMove, level FROM movePokemon WHERE idpokemon = \" .$idPoke . \" AND level IS NOT NULL ORDER BY idMove\"); \r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//conseguindo os ids de moves de levelUp do pokemon \r\n\t\t\t\twhile($move = mysqli_fetch_assoc($resMove)) {\r\n\t\t\t\t\t$novoPokemon->addIdsMovesLevelUp((int)$move['idMove'],$move['level']);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//conseguindo os ids de moves de tm\r\n\t\t\t\t$resMove = $dbManager->getData(\"SELECT idMove FROM movePokemon WHERE idpokemon = \" .$idPoke . \" AND idTm IS NOT NULL ORDER BY idMove\");\r\n\t\t\t\t\r\n\t\t\t\twhile($move = mysqli_fetch_assoc($resMove)) {\r\n\t\t\t\t\t$novoPokemon->addIdsMovesTm((int)$move['idMove']);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//conseguindo os ids de moves de moveTutor\r\n\t\t\t\t$resMove = $dbManager->getData(\"SELECT idMove FROM movePokemon WHERE idpokemon = \" .$idPoke . \" AND idMoveTutor IS NOT NULL ORDER BY idMove\");\r\n\t\t\t\t\r\n\t\t\t\twhile($move = mysqli_fetch_assoc($resMove)) {\r\n\t\t\t\t\t$novoPokemon->addIdsMovesMoveTutor((int)$move['idMove']);\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//conseguindo os ids de moves de breed \r\n\t\t\t\t$resMove = $dbManager->getData(\"SELECT idMove FROM movePokemon WHERE idpokemon = \" .$idPoke . \" AND breed IS NOT NULL ORDER BY idMove\");\r\n\t\t\t\t\r\n\t\t\t\twhile($move = mysqli_fetch_assoc($resMove)) {\r\n\t\t\t\t\t$novoPokemon->addIdsMovesBreed((int)$move['idMove']);\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tarray_push($pokeLista, $novoPokemon);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t$dbManager->closeConnection();\r\n\t\t\t\r\n\t\t\t//Salvando o resultado em arquivo\r\n\t\t\tfile_put_contents('pokemon.json', json_encode($pokeLista));\r\n\t\t\t//Converto para json e devolvo o resultado para o web service\r\n\t\t\techo json_encode($pokeLista);\r\n\r\n\t\t}", "title": "" }, { "docid": "71307a5dc1a571dd1d42146f20357d37", "score": "0.43365866", "text": "public function ad()\n {\n return $this->belongsTo( Ad::class );\n }", "title": "" }, { "docid": "cd5957d14f955495a8efac280fe06cb6", "score": "0.43298468", "text": "public function __construct($app) {\n $this->model_name = '#__pdex';\n \n parent::__construct($app);\n }", "title": "" }, { "docid": "ed42fbda0e20e224dfb80c6707852b2c", "score": "0.43236735", "text": "public function pesdik()\n {\n return $this->belongsToMany(Pesdik::Class);\n }", "title": "" }, { "docid": "c6142a89b63051e26631c70b92585cf0", "score": "0.43214568", "text": "public function points(){\n return $this->hasMany(Point::class);\n}", "title": "" }, { "docid": "622c89792efb853cbbebf54d9eab3f31", "score": "0.43204832", "text": "public function dokter()\n {\n return $this->hasMany('App\\Models\\Dokter', 'kd_dokter', 'kd_dokter');\n }", "title": "" }, { "docid": "3e6ca05e08967999f04780f4b4cd76ca", "score": "0.43183202", "text": "public function ipald()\n {\n return $this->hasMany(Ipald::class, 'id_kec', 'id_kec');\n }", "title": "" }, { "docid": "043a8d1576af3b2dec0fc08a8e4ed28d", "score": "0.43167594", "text": "public function pet()\n {\n \treturn $this->belongsTo(Pet::class, 'petId','petId');\t//(parentModel, childForeignKey, parentPrimaryKey)\n }", "title": "" }, { "docid": "49c64e7edd5576560b0828828279d6de", "score": "0.43146852", "text": "public function dosen()\n {\n \treturn $this->belongsTo(dosen::class);\n }", "title": "" }, { "docid": "52b2acb01d5808c030e7f0e27fb297d1", "score": "0.4311119", "text": "public function getDosen()\n {\n return $this->hasOne(Dosen::className(), ['id' => 'dosen_id']);\n }", "title": "" }, { "docid": "039c5172b6df6b570e44f280f37163c3", "score": "0.43104777", "text": "public function ADMeta_Get_Item_Data( $DataNo=0){\n\t\t\n\t $result_key = parent::Initial_Result('meta');\n\t $result = &$this->ModelResult[$result_key];\n\t try{ \n\t\t\n\t\t// 檢查序號\n\t if(!preg_match('/^[\\w\\d\\-]+$/',$DataNo) ){\n\t\t throw new Exception('_SYSTEM_ERROR_PARAMETER_FAILS');\n\t\t}\n\t \n\t\t// 取得編輯資料\n\t\t$meta = NULL;\n\t\t$DB_GET\t= $this->DBLink->prepare( SQL_AdMeta::GET_TARGET_META_DATA());\n\t\t$DB_GET->bindParam(':id' , $DataNo );\t\n\t\tif( !$DB_GET->execute() || !$meta = $DB_GET->fetch(PDO::FETCH_ASSOC)){\n\t\t throw new Exception('_SYSTEM_ERROR_DB_RESULT_NULL');\n\t\t}\n\t\t\n\t\t// 取得原始資料\n\t\t$source = array();\n\t\t$DB_SOURCE\t= $this->DBLink->prepare( SQL_AdMeta::GET_SOURCE_META($meta['zong']));\n\t\t$DB_SOURCE->bindParam(':id' , $meta['identifier'] );\t\n\t\tif( !$DB_SOURCE->execute() || !$source = $DB_SOURCE->fetch(PDO::FETCH_ASSOC)){\n\t\t throw new Exception('_SYSTEM_ERROR_DB_RESULT_NULL');\n\t\t}\n\t\t\n\t\tif(count($source)){\n\t\t foreach($source as $mfield => $mvalue){\n\t\t\t$element['META-'.$mfield] = $mvalue; \n\t\t }\n\t\t}\n\t\t\n\t\t// 處理關聯資料\n\t\t$dobj_config = json_decode($meta['dobj_json'],true);\n\t\t$refer_config = json_decode($meta['refer_json'],true);\n\t\t\n\t\t// final\n\t\t$result['action'] = true;\n\t\t$result['data']['source'] = $element;\n\t\t$result['data']['dobj'] = $dobj_config;\n\t\t$result['data']['refer'] = $refer_config;\n\t\t\n\t } catch (Exception $e) {\n $result['message'][] = $e->getMessage();\n }\n\t return $result; \t \n\t}", "title": "" }, { "docid": "1d29068f005f1e9d53659a6efbab30de", "score": "0.43098012", "text": "public function googleResult() {\n \treturn $this->hasOne('GoogleResult', 'people_id');\n }", "title": "" }, { "docid": "4dab01ae50b3eb1c1c28959bbe50f478", "score": "0.43068773", "text": "public function dokter(){\n return $this->hasOne('App\\Dokter','users_id');//1 user 1 dokter\n }", "title": "" }, { "docid": "da4a1943bd4cce34c97d9cd7cd9fef5e", "score": "0.43068168", "text": "public function datauser()\n {\n return $this->hasOne('App\\Datauser');\n }", "title": "" }, { "docid": "17b4c70d013caa311a53b7732d98d798", "score": "0.430367", "text": "public function dataSet()\n\t{\n\t\treturn $this->belongsTo('App\\Models\\DataSet');\n\t}", "title": "" }, { "docid": "5ed24b76c18cd8b11eedaecc52d08e54", "score": "0.430059", "text": "public function ad()\n {\n return $this->belongsTo(Ad::class);\n }", "title": "" }, { "docid": "e378db7fe20d9a83cf12a91929c506c0", "score": "0.42982808", "text": "public function __construct(){\n \t\tparent::__construct();\n\t\t$this->result = new Result();\n\t\t$this->setTableName('viajes_equipamientos');\n\t\t$this->setFieldIdName('idViajeEquipamiento');\n\t\t$this->idViaje['referencia'] = new ViajeVO();\n\t\t$this->idEquipamiento['referencia'] = new EquipamientoVO();\n }", "title": "" }, { "docid": "14a790e4639e1576615f67b4f9b591e8", "score": "0.42961445", "text": "public function likes() {\n return new Engine_ProxyObject($this, Engine_Api::_()->getDbtable('likes', 'core'));\n }", "title": "" }, { "docid": "309f289149d35c7045be68d40e61636c", "score": "0.4294175", "text": "public function product()\n {\n return $this->belongsTo(ProductProxy::modelClass());\n }", "title": "" }, { "docid": "309f289149d35c7045be68d40e61636c", "score": "0.4294175", "text": "public function product()\n {\n return $this->belongsTo(ProductProxy::modelClass());\n }", "title": "" }, { "docid": "5a673758569d31cb96709c8d36f6dbb0", "score": "0.4286312", "text": "public function advancesearch(Request $request)\n {\n // $query->whereBetween('age', [$ageFrom, $ageTo]);\n $products=Post::whereBetween('id', [39, 44])->get();\n $rr=rand( 39 , 44 );\n $selectedProduct=DB::table('posts')->where('id','=',$rr)->paginate(5);\n $productSimilarity = new ProductSimilarity($products->toArray());\n $similarityMatrix = $productSimilarity->calculateSimilarityMatrix();\n $products =$productSimilarity->getProductsSortedBySimularity($rr, $similarityMatrix);\n // return view('ai_intro', compact('selectedId', 'selectedProduct', 'products'));\n$products=(object) $products;\n//$products=$products->->get();\n\n\n $namesearch= $request->get('namesearch');\n $areasearch= $request->get('areasearch');\n $family= $request->get('is_familysearch');\n $friend= $request->get('is_friendsearch');\n $pet= $request->get('is_petsearch');\n $student= $request->get('is_studentearch');\n $job_seeker= $request->get('is_jobseekersearch');\n $late_night= $request->get('is_latenightsearch');\n $harddrinks= $request->get('is_harddrinkssearch');\n // $peoplesearch= $request->get('peoplesearch');\n // $posts= Post::orderBy('title','desc')->paginate(5);\n $posts=DB::table('posts')->where('title','LIKE','%'.$namesearch.'%')->where('location','LIKE','%'.$areasearch.'%')->where('family','LIKE','%'.$family.'%')->where('friends','LIKE','%'.$friend.'%')->where('pet_allow','LIKE','%'.$pet.'%')->where('student','LIKE','%'.$student.'%')->where('job_seeker','LIKE','%'.$job_seeker.'%')->where('late_night','LIKE','%'.$late_night.'%')->where('hard_drinks','LIKE','%'.$harddrinks.'%')->paginate(5);\n //echo $posts;\n // return view('posts.index')->with('posts',$posts);\n $users=User::orderBy('name','asc')->where('BLOCK','=','0')->get();\n return view('posts.index',compact('products'))->with('posts',$posts)->with('usersb',$users);\n // return view('posts.index',)->with('post',$post)->with('reviews',$review)->with('indi_rooms',$rooms);\n\n }", "title": "" }, { "docid": "2733854b5c179ea2eae1ddd7285adbdb", "score": "0.42726737", "text": "public function penilaian()\n {\n return $this->belongsToMany('PMW\\Models\\Aspek', 'penilaian', 'id_review', 'id_aspek')->withPivot('nilai')->withTrashed();\n }", "title": "" }, { "docid": "7d863e37c715293137390165489371bc", "score": "0.42667866", "text": "public function puzzle()\n {\n return $this->belongsTo('App\\Puzzle');\n }", "title": "" }, { "docid": "a3a02a6f992e5494ced64dc46c7066f4", "score": "0.42663568", "text": "public function initHasOneRelation() {\n\n $originMeta = MetadataStorage::get($this->originModel);\n $relationMeta = MetadataStorage::get($this->relationModel);\n\n $keyName = $relationMeta->getForeignKey($this->originModel);\n $keyValue = $this->modelInstance->{$originMeta->getPrimaryKey()};\n\n $className = $this->relationModel;\n\n $this->instance = $className::Query()\n ->where($this->relationModel.'.'.$keyName.' = ?', $keyValue)\n ->fetchOne();\n }", "title": "" }, { "docid": "405ddf2339e06eaa0905c59da915e592", "score": "0.42627507", "text": "public function Adverts() {\n return $this->hasMany(Advert::class);\n }", "title": "" }, { "docid": "8511f7c56758dbf40342f939c7009968", "score": "0.4257277", "text": "public function getDeposecmes()\n {\n return $this->hasMany(Deposecme::className(), ['DepoAd' => 'DepoAd']);\n }", "title": "" }, { "docid": "7c5122e7e23c12effcdd3c0efc3b92b8", "score": "0.42551363", "text": "public function perusahaan()\n {\n return $this->hasOne(Perusahaan::class,'id', 'id_perusahaan');\n }", "title": "" }, { "docid": "4b02e38312a7904ddd041c89df7e2583", "score": "0.4250185", "text": "static function trainerPokemon($id) {\n return \"select * from `POKEMON` p, `OWNED_POKEMON` o where p.pokemon_id = o.pokemon_id and o.trainer_id=\" . $id;\n }", "title": "" }, { "docid": "451fe8a6ca7dbdc5f5695aa774856115", "score": "0.42435893", "text": "public function relationShips(){\n\n /*$phone = Phone::find(4);\n dd($phone->user);\n dd($phone->user->name);*/\n\n /*$post = Post::find(5);\n foreach ($post->comments as $comment){\n echo $comment->email.'<br>';\n }\n dd();\n dd($post->comments);*/\n\n /*$comment = Comment::find(6);\n dd($comment->post);\n dd($comment->post->Title);*/\n\n /*$user = User::find(10);\n dd($user->roles);*/\n\n /*$role = Role::find(8);\n dd($role->users);*/\n\n }", "title": "" }, { "docid": "b45f66df730901d8678fd5e5cd5f3546", "score": "0.42410648", "text": "public function getPelayanan()\n {\n return $this->hasOne(TPelayanan::className(), ['KodePelayanan' => 'KodePelayanan']);\n }", "title": "" }, { "docid": "5ce7b6a38e9146321ee921f66e4ffd99", "score": "0.42314765", "text": "public function getData()\n {\n return Paket::orderBy('kode','ASC')->get();\n }", "title": "" }, { "docid": "21017620662c9ae5ba7335e6748875ae", "score": "0.4225684", "text": "public function getPeringkatPenilaian()\n {\n return $this->hasOne(KonfRujukan::className(), ['id' => 'peringkat_penilaian']);\n }", "title": "" }, { "docid": "7c6c9219aea823021bfa4fa88b3d5c34", "score": "0.42254296", "text": "public function getPokemonTable()\n {\n return $this->param['tblPokemon'];\n }", "title": "" }, { "docid": "c8794172019060413c9826e09e55c59a", "score": "0.42245203", "text": "public function xiaoqu()\n {\n return $this->belongsTo('App\\Xiaoqu');\n }", "title": "" }, { "docid": "191c0dfcfdd6ddf1b4b1e27d3c01732d", "score": "0.42220315", "text": "public function rap(){\n return $this->belongsTo('App\\Rap', 'nonota', 'nonota');\n }", "title": "" }, { "docid": "118314898732aa52b9350b19983a432f", "score": "0.42207134", "text": "public function weaponInstance()\n {\n return $this->belongsTo('X10WeaponStatsApi\\Models\\WeaponInstance');\n }", "title": "" }, { "docid": "ec32b3a3e0a79bc478ae643b11b68ea3", "score": "0.42106476", "text": "public static function find($pokemon) {\n\n $sql = \"SELECT * FROM pokemon WHERE numero = ?\";\n\n // Connexion to the BDD via PDO et function getPDO from CoreModel\n $pdo = self::getPDO();\n\n $pdoStatement = $pdo->prepare($sql);\n\n $pdoStatement->execute(array($pokemon['numero']));\n\n $pokemon =$pdoStatement->fetch(PDO::FETCH_ASSOC);\n\n return $pokemon;\n\n }", "title": "" }, { "docid": "3afd47fafd28ea7894be8f695b6f09dc", "score": "0.4207148", "text": "public function initialize()\n {\n $this->hasMany('id', 'Positions', 'player_id', ['alias' => 'Positions']);\n }", "title": "" }, { "docid": "f7300665d4354b8833d5be3f299362aa", "score": "0.42068106", "text": "public function createPokemonFromDBData(?array $data): ?Pokemon\n {\n // No data -> no sense to continue\n if ($data === null) {\n return null;\n }\n\n $pokemonData = $data['pokemon'];\n\n $officialNumber = str_pad((string)$pokemonData['official_number'], 3, \"0\", STR_PAD_LEFT);\n $candy = $this->dbCandyRepository->createCandyFromDBData($data['candy']);\n try {\n $spawnTime = new DateTime($pokemonData['spawn_time']->format(\"%H:%I\"));\n } catch (Exception $e) {\n $spawnTime = null;\n }\n $previousEvolution = $this->createPokemonFromDBData($this->constructPokemonData($data['previous-evolution']));\n $nextEvolution = $this->createPokemonFromDBData($this->constructPokemonData($data['next-evolution']));\n $types = $this->dbTypeRepository->createTypesFromMultipleDBData($data['types']);\n $weaknesses = $this->dbTypeRepository->createTypesFromMultipleDBData($data['weaknesses']);\n\n return new Pokemon(\n $pokemonData['pokemon_id'], $officialNumber,\n $pokemonData['name'],\n $pokemonData['image_url'],\n $pokemonData['height'],\n $pokemonData['weight'],\n $candy,\n $pokemonData['required_candy_count'],\n $pokemonData['egg_travel_length'], $pokemonData['spawn_chance'], $spawnTime,\n $pokemonData['minimum_multiplier'],\n $pokemonData['maximum_multiplier'],\n $previousEvolution,\n $nextEvolution,\n $types,\n $weaknesses\n );\n }", "title": "" }, { "docid": "6c092b284f87e2384dfa68a9773b6ddd", "score": "0.42065442", "text": "public function spellbooks()\n {\n return $this->hasMany('App\\Spellbook','id_character');\n }", "title": "" }, { "docid": "985d2e2c8083fceabb9238ea43e8300f", "score": "0.42033714", "text": "function Add(Pokemon $pokemon) {\n }", "title": "" }, { "docid": "c7d18d5393ebdea57778cb9b5abcecad", "score": "0.42020842", "text": "public function product(): \\Illuminate\\Database\\Eloquent\\Relations\\BelongsTo\n {\n return $this->belongsTo(ProductProxy::modelClass());\n }", "title": "" }, { "docid": "9766c5e7e24b1e978bed841ac619d4cf", "score": "0.4194876", "text": "public function penduduk() {\n\t\treturn $this->hasMany('Penduduk', 'id_kelurahan');\n\t}", "title": "" }, { "docid": "79692d66839c2df6e62f9d6189cabdab", "score": "0.41940814", "text": "public function peserta()\n {\n \treturn $this->hasMany('App\\Peserta','id_jurusan');\n }", "title": "" }, { "docid": "8455b4e86100d5aa11641398aa5052b1", "score": "0.4184775", "text": "public function drugs()\n {\n return $this->belongsToMany('App\\Drug')->withPivot('price');\n }", "title": "" }, { "docid": "febcd11d9bd8dabde59393f884d27ee7", "score": "0.41802713", "text": "public function __get($name)\n\t{\n\t\tif(array_key_exists($name,$this->relations))\n\t\t{\n\t\t\tif(!array_key_exists($name,$this->relData))\n\t\t\t{\n\t\t\t\tif($this->relations[$name]['type'] === self::HAS_ONE)\n\t\t\t\t{\n\t\t\t\t\t$inst = new $this->relations[$name]['class']();\n\t\t\t\t\t$findbyStr = \"findBy\".$this->relations[$name]['key'];\n\t\t\t\t\t$inst->$findbyStr($this->{$this->primaryKey});\n\t\t\t\t\t$this->relData[$name] = $inst;\n\t\t\t\t}\n\t\t\t\tif($this->relations[$name]['type'] === self::BELONGS_TO)\n\t\t\t\t{\n\t\t\t\t\t$this->relData[$name] = new $this->relations[$name]['class']($this->{$this->relations[$name]['key']});\n\t\t\t\t}\n\t\t\t\tif($this->relations[$name]['type'] === self::HAS_MANY)\n\t\t\t\t{\n\t\t\t\t\t$inst = new $this->relations[$name]['class']();\n\t\t\t\t\t$key = $this->relations[$name]['key'];\n\t\t\t\t\treturn $inst->findAll(\"$key = {$this->{$this->primaryKey}}\");\n\t\t\t\t\t/*;\n\t\t\t\t\t$findbyStr = \"searchFor\".$key;\n\t\t\t\t\t$this->relData[$name] = $inst->$findbyStr($this->{$this->primaryKey});*/\n\t\t\t\t\t//$this->relData[$name] = $inst->__call($findbyStr,$this->{$this->primaryKey});\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $this->relData[$name];\n\t\t}else {\n\t\t\t//TODO:Slänga en excception här istället? dock kräver det lite mer disciplin i kodningen.\n\t\t\t//throw new OutOfBoundsException(\"Trying to access property $name. It's not in this class and is not part of the relations array\");\n\t\t\t$this->logger->warn('Försöker hämta property '.$name.' från '.get_class($this).'. Propertyn finns inte i klassen eller i relationsArrayen');\n\t\t}\n\t}", "title": "" }, { "docid": "0708304195c0bfba367aee6681395808", "score": "0.4180191", "text": "public function getpendAyah()\n {\n return $this->hasOne(Pendidikan::className(), ['id' => 'id_pend_ayah']);\n }", "title": "" }, { "docid": "d33edc686e3cc94bc2fc8ac2df96f4bd", "score": "0.4179809", "text": "public function dataset ()\n {\n return $this->belongsTo(Dataset::class);\n }", "title": "" }, { "docid": "c9b95a1faf173380f17b8811bb6efa89", "score": "0.41770455", "text": "function GetData_Petugas(){\n\n // perintah GET data\n return $this->MPembayaran->GET_Petugas();\n \n\n }", "title": "" }, { "docid": "2dd2f1d3d2feccc089fec3f6b8690d0b", "score": "0.41762543", "text": "public function __get($key){\r\n if(array_key_exists($key, $this->attributes)){\r\n return $this->attributes[$key];\r\n }else if(array_key_exists($key, $this->related)){\r\n return $this->related[$key];\r\n }else if(method_exists($this, $key)){\r\n $this->$key = $this->$key();\r\n return $this->related[$key];\r\n }\r\n }", "title": "" }, { "docid": "199c26013aa8e5afdb355abdc498035e", "score": "0.4174059", "text": "public function pcePoints(): HasMany\n {\n return $this->hasMany(PcePoint::class);\n }", "title": "" }, { "docid": "04b629ddd5a03fd2f720469acefe30bd", "score": "0.41728097", "text": "public function loyaltyPoints()\n {\n return $this->hasMany('App\\Models\\MemberPoints');\n }", "title": "" }, { "docid": "2bc23620985c9bded0976d608cf96e42", "score": "0.4170891", "text": "public function gethospitalhasmany(){\n//$hospital=Hospital::find(1); // Hospital::where('id',1)->first();\n//return $hospital->doctors;// return hospital doctors\n$hospital=Hospital::with('doctors')->find(1);\n//return $hospital;\n$doctros=$hospital->doctors;\n// عرض اسماء الدكاترة في المستشفى\nforeach($doctros as $doctor){\necho $doctor->name .'<br>';\n}\n\n$doctor=Doctor::find(2);\nreturn $doctor->hospital;\n}", "title": "" }, { "docid": "d999a3750c62195b7dc6303b2ae302fd", "score": "0.41670766", "text": "public static function run() {\n foreach(Rolodex::$list as $l) {\n $l->fname;\n $l->lname;\n $l->phone;\n $l->address;\n $l->city;\n $l->state;\n $l->zip;\n }\n }", "title": "" }, { "docid": "4c99e715335309beb153c4adb621e0ef", "score": "0.4164048", "text": "public function _getRefPelayanan () {\n // instance query\n $query = $this->db->prepare(\"SELECT * FROM ref_jns_pelayanan ORDER BY kd_jns_pelayanan\");\n // execute query\n try {\n $query->execute(); \n } catch (PDOException $e) {\n die(\"INTERNAL ERROR CONNECTION\"); \n }\n return $query->fetchAll(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "b35522bc89cdea2bc78dc750a13016d8", "score": "0.4154775", "text": "public function ong()\n {\n return $this->belongsTo(Ong::class, 'ongId', 'id');\n }", "title": "" }, { "docid": "1662d9f728c9edd31b6ae88143304996", "score": "0.41499484", "text": "public function results()\n {\n return $this->hasMany(LabResult::class)->with('vet');\n }", "title": "" }, { "docid": "0d239ca5f4e94644ab34c8356fc9556f", "score": "0.41456765", "text": "public function run()\n {\n DB::statement('set foreign_key_checks = 0;');\n Proximities::truncate();\n\n $proximities = [\n ['name' => 'Airport', 'search_key' => 'airport'],\n ['name' => 'Beach', 'search_key' => 'beach'],\n ['name' => 'Golf', 'search_key' => 'golf'],\n ['name' => 'Public Swimming Pool', 'search_key' => 'public_swimming_pool'],\n ['name' => 'Public Transportation', 'search_key' => 'public_transportation'],\n ['name' => 'Park', 'search_key' => 'park'],\n ['name' => 'Sea', 'search_key' => 'sea'],\n ['name' => 'School', 'search_key' => 'school'],\n ['name' => 'Shopping', 'search_key' => 'shopping'],\n ['name' => 'Tennis', 'search_key' => 'tennis'],\n ['name' => 'Laundry', 'search_key' => 'laundry'],\n ['name' => 'Spa Hammam', 'search_key' => 'spa_hammam'],\n ['name' => 'Cinema', 'search_key' => 'cinema'],\n ['name' => 'Supermarket', 'search_key' => 'supermarket'],\n ['name' => 'Town center', 'search_key' => 'town_centre']\n ];\n\n foreach ($proximities as $p) {\n $proximity = new Proximities();\n $proximity->name = $p['name'];\n $proximity->search_key = $p['search_key'];\n $proximity->save();\n }\n\n }", "title": "" }, { "docid": "554a0e51708dddfa42985b57e2d95ad9", "score": "0.4144418", "text": "public function getYandexApiKey()\n {\n return Mage::helper('storefinder/conf')->getYandex('api_key');\n }", "title": "" }, { "docid": "3a8ddcb11dc4ea63b8ff0b87d2b94482", "score": "0.41425183", "text": "public function dictionaries() {\r\n return $this->hasMany('App\\Model\\Dictionary');\r\n }", "title": "" }, { "docid": "1c5d187a58ede24f2f581cc54fb3e1f8", "score": "0.41417673", "text": "public function filterByDataPokedex($dataPokedex, $comparison = null)\n {\n if ($dataPokedex instanceof \\Propel\\PtuToolkit\\DataPokedex) {\n return $this\n ->addUsingAlias(MovesTableMap::COL_POKEDEX_ID, $dataPokedex->getPokedexId(), $comparison);\n } elseif ($dataPokedex instanceof ObjectCollection) {\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n\n return $this\n ->addUsingAlias(MovesTableMap::COL_POKEDEX_ID, $dataPokedex->toKeyValue('PrimaryKey', 'PokedexId'), $comparison);\n } else {\n throw new PropelException('filterByDataPokedex() only accepts arguments of type \\Propel\\PtuToolkit\\DataPokedex or Collection');\n }\n }", "title": "" }, { "docid": "964de659f671db2aae94724dd8c9a2aa", "score": "0.41405138", "text": "public function deuda(){\n return $this->hasOne('App\\Deuda');\n }", "title": "" }, { "docid": "2906a27b75d9158050217c6c0ec5a5c8", "score": "0.41383165", "text": "public function province()\n\t{\n\t\treturn $this->belongsTo('Tricks\\Province');\n\t}", "title": "" }, { "docid": "d764f19262d8e168a64a979cd704ae9a", "score": "0.4133964", "text": "public function pengguna()\n {\n return $this->belongsTo('App\\Models\\Pengguna','nis');\n }", "title": "" }, { "docid": "b8197a5ee6863a028acd19f748a9c75e", "score": "0.4133892", "text": "public function review()\n {\n return $this->belongsTo(ProductReviewProxy::modelClass());\n }", "title": "" }, { "docid": "0b7f8750c587c7ecbe176f157ecd540e", "score": "0.41303214", "text": "function getProductById($id, $lang=null) {\n //return R::getAll('SELECT * FROM product INNER JOIN product_en ON product.id = product_en.id INNER JOIN product_fi ON product.id = product_fi.id WHERE product.id = :id', [':id'=>$id]);\n $product = R::load('product', $id);\n if ($lang && array_search('product_'.$lang,R::inspect())!='') {\n $trans = R::load('product_'.$lang, $id);\n if ($trans!=''){\n $product['name'] = $trans->name;\n $product['description'] = $trans->description;\n }\n }\n return $product;\n}", "title": "" } ]
be0cc1a67e055a2ffe8397374d3e670f
Retrieves a number of recommended activities that are urgent. If authenticated, counter check with user applied activities.
[ { "docid": "11effaf659f870e146ba2da9288a704f", "score": "0.52984136", "text": "public function retrieveRecommendedTransportActivity(Request $request)\n {\n if ($request->get('limit') == null) {\n $status = [\"Missing parameter\"];\n\n return response()->json(compact('status'));\n } else {\n if ($request->get('token') != null) {\n $authenticatedUser = JWTAuth::setToken($request->get('token'))->authenticate();\n $id = $authenticatedUser->volunteer_id;\n $limit = $request->get('limit');\n $approvedActivities = Activity::with('tasks')\n ->whereHas('tasks', function ($query) {\n $query->where('approval', 'like', 'approved');\n })->lists('activity_id');\n\n $appliedActivities = Task::Where('volunteer_id', '=', $id)->where(function ($query) {\n $query->where('approval', '=', 'rejected')\n ->orWhere('approval', '=', 'pending');\n })->lists('activity_id');\n\n $activities = Activity::with('departureCentre', 'arrivalCentre')\n ->UpcomingExact()\n ->whereNotIn('activity_id', $approvedActivities)\n ->whereNotIn('activity_id', $appliedActivities)\n ->whereBetween('datetime_start', [Carbon::today(), Carbon::today()->addDays(14)])\n ->take($limit)\n ->get();\n\n return response()->json(compact('activities'));\n } else {\n $id = $request->get('id');\n $limit = $request->get('limit');\n $approvedActivities = Activity::with('tasks')\n ->whereHas('tasks', function ($query) {\n $query->where('approval', 'like', 'approved');\n })->lists('activity_id');\n\n $activities = Activity::with('departureCentre', 'arrivalCentre')\n ->UpcomingExact()\n ->whereNotIn('activity_id', $approvedActivities)\n ->whereBetween('datetime_start', [Carbon::today(), Carbon::today()->addDays(14)])\n ->take($limit)\n ->get();\n\n return response()->json(compact('activities'));\n }\n }\n }", "title": "" } ]
[ { "docid": "a1d1b7bab404e57605c035406bc260c5", "score": "0.5425495", "text": "public function getPendingEvaulationCount($userid=null){ \n $evaluated_count = InterviewRating::where('interviewerID',$userid)->count(); \n $pending_count = Interview::whereRaw('FIND_IN_SET('.$userid.',interviewerID)')->count();\n $actual_pending = $pending_count-$evaluated_count;\n return $pending_count;\n }", "title": "" }, { "docid": "8fe76d9336304ffe7793475e63dfdce4", "score": "0.53721106", "text": "public function loadActivityCounts() {\n\n }", "title": "" }, { "docid": "78c32ff3a56e913d86498491b55f85cf", "score": "0.5335315", "text": "public function getViewableImpressions()\n {\n return isset($this->viewable_impressions) ? $this->viewable_impressions : 0;\n }", "title": "" }, { "docid": "5fd7bc10a1cb408fbac87474908c8af2", "score": "0.52685785", "text": "public function getEvaulationCount($userid=null){ \n $evaluated = InterviewRating::where('interviewerID',$userid)->count(); \n return $evaluated;\n }", "title": "" }, { "docid": "ff8f53092d26c8f56085c26d496052c1", "score": "0.52678144", "text": "function get_no_of_active_vouchers($user = null) {\n\tif (!$user) $user = elgg_get_logged_in_user_entity();\n\t\n\t$active = elgg_get_entities_from_metadata(array(\n\t\t'type' => 'object',\n\t\t'subtype' => 'vouchers',\n\t\t'container_guid' => $user->guid,\n\t\t'limit' => 0,\n\t\t'full_view' => false,\n\t\t'metadata_name_value_pairs' => array(\n\t\t\t//array('name' => 'howmany','value' => 0,'operand' => '>'), \n\t\t\tarray('name' => 'valid_until','value' => time(),'operand' => '>'), \n\t\t),\t\t\n\t\t//'metadata_name_value_pairs_operator' => 'OR',\n\t));\t\n\t\n\t$i = 0;\n\tforeach ($active as $act)\t{\n\t\t$voucher_howmany = get_voucher_howmany($act);\n\t\tif (trim($voucher_howmany)=='' || $voucher_howmany > 0) $i++;\t// empty howmany means that number is unlimited, so it's active\n\t}\n\t\n return $i;\n}", "title": "" }, { "docid": "9fa786c8bce5b002e6db556683a6a0a5", "score": "0.5221836", "text": "public function noOfPendingCofounderRequests(){\n return count(Cofounder::where('cofounded_idea', $this->id)->where('accepted_at', null)->get());\n }", "title": "" }, { "docid": "23395b84ab11a81063bd9c27cd4520b2", "score": "0.5194905", "text": "public function getReviewsAttribute()\n {\n return ApplicantRating::where('applicant_id', $this->id)->get()->count();\n }", "title": "" }, { "docid": "ad3393672f2a1b68c0a098f2bde11de7", "score": "0.51639867", "text": "public function getNumberOfActiveSessions() {\n\t\tif ( Mage::isInstalled() ) {\n\t\t\t$collection = Mage::getModel( 'log/visitor_online' )\n\t\t\t ->prepare()\n\t\t\t ->getCollection();\n\n\t\t\treturn $collection->count();\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "6820a96328764ba04f5c33a7d8350639", "score": "0.5149028", "text": "function get_entries_n_outstanding($user)\n{\n global $tbl_entry, $tbl_room, $tbl_area,\n $max_level;\n \n $is_admin = (authGetUserLevel($user) >= $max_level);\n $sql_approval_enabled = some_area_predicate('approval_enabled');\n $sql_params = array();\n\n // Find out how many bookings are awaiting approval\n // (but only for areas where approval is required)\n $sql = \"SELECT COUNT(*)\n FROM $tbl_entry E, $tbl_room R, $tbl_area A\n WHERE (status&\" . STATUS_AWAITING_APPROVAL . \" != 0)\n AND E.room_id = R.id\n AND R.area_id = A.id\n AND R.disabled = 0\n AND A.disabled = 0\n AND $sql_approval_enabled\";\n if (!$is_admin)\n {\n // Ordinary users can only see their own\n $sql .= \" AND create_by=?\";\n $sql_params[] = $user;\n }\n \n return db()->query1($sql, $sql_params);\n}", "title": "" }, { "docid": "857411cc3750a468bfe52f381953d5e4", "score": "0.51467454", "text": "public function count()\r\n {\r\n return count($this->impacts);\r\n }", "title": "" }, { "docid": "19b8372d3b9369b23c57dfdd8a41f9c1", "score": "0.51275575", "text": "function get_active_feedbacks_count($course_id, $type) {\n global $DB;\n\n\tlist($usql, $params) = $DB->get_inor_equal($course_id);\n\t$sql = \"SELECT COUNT(*) FROM {feedbackccna_module}\n\t\t\t WHERE type ='\".$type.\"'\n\t\t\t\tAND course_id $usql\n\t\t\t\tAND allow != '\".FEED_NOT_ALLOWED.\"'\n\t\t\t\tAND which_way = '\".STUDENT_FOR_TEACHER.\"'\";\n\treturn $DB->get_records_sql($sql, $params);\n}", "title": "" }, { "docid": "d496b4fc28dac40eff7a96fc4702afeb", "score": "0.51222223", "text": "function getVisitorsAuthed()\n {\n return intval($this->store->countAuthedSessions());\n }", "title": "" }, { "docid": "d39fd6c2db0cee2d0b31bd383b49d9dd", "score": "0.5094438", "text": "private function dailyLimitExeeded()\n {\n global $current_user;\n $link = 'rt_classification_users';\n $appointment_per_day = 0;\n $responce = '';\n \n if ($current_user->load_relationship($link)) {\n $classifications = $current_user->$link->getBeans();\n }\n foreach ($classifications as $classification) {\n $appointment_per_day = $classification->appointment_per_day;\n }\n\n $s_query = $this->getSugarQuery();\n $s_query->from(BeanFactory::newBean('Meetings'), array('team_security' => false));\n $s_query->select()->fieldRaw('count(distinct id)', 'booked_meeting_count');\n $s_query->select()->fieldRaw('DATE(timeslot_datetime)', 'date');\n $s_query->groupByRaw('DATE(timeslot_datetime)');\n $s_query->where()->addRaw(\" meetings.status != 'disponible' and meetings.assigned_user_id = '$current_user->id'\");\n $s_query->havingRaw(\" booked_meeting_count >= $appointment_per_day\");\n $result = $s_query->execute();\n foreach ($result as $meeting) {\n $responce.= \"'\" .$meeting['date'] . \"',\";\n }\n\n return rtrim($responce, \",\");\n }", "title": "" }, { "docid": "56f984f6a5d7abe8679c52c3b8687514", "score": "0.50732535", "text": "public function meetingsActiveCount() {\n\t\t\t$response = $this->callConnectApi(['action' => 'report-active-meetings']);\n\n\t\t\treturn isset($response->{'report-active-meetings'}->sco) ? count($response->{'report-active-meetings'}->sco) : 0;\n\t\t}", "title": "" }, { "docid": "9265a8aa1a47454e852b5b3dc5186232", "score": "0.5060634", "text": "function getActivityCount($userid) {\r\n\t\t$db\t = &$this->getDBO();\r\n\t\t\r\n\t\t\r\n\t\t$sql = \"SELECT SUM(`points`) FROM #__community_activities WHERE \"\r\n\t\t\t.\" `actor`=\" . $db->Quote($userid);\r\n\t\t\r\n\t\t$db->setQuery( $sql );\r\n\t\t$result = $db->loadResult();\r\n\t\t\r\n\t\tif($db->getErrorNum()) {\r\n\t\t\tJError::raiseError( 500, $db->stderr());\r\n\t\t}\r\n\t\t\r\n\t\t// @todo: write a plugin that return the html part of the whole system\r\n\t\treturn $result;\r\n\t}", "title": "" }, { "docid": "f8ead4709c45db1a84e4acf3ceae17b3", "score": "0.5046545", "text": "private function getActivityLeaders() {\n $cacheKey = $this->getCachePrefix() . 'leaders.activity';\n $category = $this->getControllerShortName();\n $tenantId = JWTClient::getCurrentTenant();\n $username = JWTClient::getCurrentEndUser();\n $timeframe = $this->timeframe;\n\n if ($this->force) {\n Cache::tags($category, $tenantId, $username, $timeframe)->forget($this->getCachePrefix().$cacheKey);\n }\n\n return Cache::tags($category, $tenantId, $username, $timeframe)->remember($this->getCachePrefix().$cacheKey, $_ENV['cacheLifetime'],\n function() use ($timeframe, $username, $tenantId) {\n\n $topUsers = array();\n\n $userTraffic = $this->getUsers('users.all.monthly', \"DATE_FORMAT(CreatedAt, '%Y-%m')\");\n\n foreach($userTraffic as $row) {\n if (!in_array($row->Username, array('sterry1', 'systest', 'testuser', 'ipctest', 'jstubbs', 'dooley', 'ldapbind')) ) {\n if (!empty($topUsers[$row->Username])) {\n $topUsers[$row->Username] += $row->requests;\n } else {\n $topUsers[$row->Username] = $row->requests;\n }\n }\n }\n\n arsort($topUsers);\n\n $topUsers = array_slice($topUsers, 0, 10);\n\n foreach($topUsers as $name=>$count) {\n $topUsers[$name] = array( 'name' => $name, 'count' => $count );\n }\n\n return array_values($topUsers);\n }\n );\n }", "title": "" }, { "docid": "6cbe6c1445a4516d889d8e7ba73eb744", "score": "0.5044015", "text": "public function assessmentMetrics() {\n\t\t$clientChecklistId = $this->extractClientChecklistIdFromUrl();\n\t\tif ($checklist = $this->accessibleClientChecklistId($clientChecklistId)) {\n\t\t\t// Permission to access the checklist.\t\n\t\t\t$this->loadChecklistWithAllPages($checklist);\n\t\t}\n\t}", "title": "" }, { "docid": "537be21e3388533e91179426d1e5a502", "score": "0.50108725", "text": "function totalLeads() {\r\n\r\n\t\treturn sizeof($this->leads->get('approved'));\r\n\r\n\t}", "title": "" }, { "docid": "9ba6c2ccdd0b2f24584b56e193cca0ae", "score": "0.5008548", "text": "public function count_learners() {\n return db_accessor::get_instance()->get_count_learner($this->id);\n }", "title": "" }, { "docid": "edd476dc8a95f8a7fbc1835ab13468fa", "score": "0.49997616", "text": "function topRatedRequests() {\n\tglobal $dbmanager;\n\n\t$query = 'SELECT DT.* '.\n\t\t\t 'FROM ( '.\n\t\t\t\t 'SELECT R.*, '.\n\t\t\t\t \t\t'U.ID AS UserID, '.\n\t\t\t\t\t\t'U.Username AS UsernameAutore, '.\n\t\t\t\t\t\t'U.Image, '.\n\t\t\t\t\t\t'U.Amministratore, '.\n\t\t\t\t\t\t'count(DISTINCT RA.ID) AS NumResponses '.\n\t\t\t\t 'FROM (richiesta R INNER JOIN utente U ON U.ID=R.Autore) '.\n\t\t\t\t \t\t'LEFT OUTER JOIN risposta RA ON RA.Richiesta=R.ID '.\n\t\t\t\t 'WHERE R.Visibilita=1 '.\n\t\t\t\t 'GROUP BY R.ID, U.Username '.\n\t\t\t\t 'ORDER BY NumResponses DESC, R.Istante DESC '.\n\t\t\t ') DT '.\n\t\t\t 'WHERE DT.NumResponses>=( '.\n\t\t\t \t'SELECT avg(DT2.NumResponses) '.\n\t\t\t \t'FROM ( '.\n\t\t\t\t\t 'SELECT count(DISTINCT RA.ID) AS NumResponses '.\n\t\t\t\t\t 'FROM (richiesta R INNER JOIN utente U ON U.ID=R.Autore) '.\n\t\t\t\t\t \t\t'LEFT OUTER JOIN risposta RA ON RA.Richiesta=R.ID '.\n\t\t\t\t\t 'WHERE R.Visibilita=1 '.\n\t\t\t\t\t 'GROUP BY R.ID, U.Username '.\n\t\t\t\t\t 'ORDER BY NumResponses DESC, R.Istante DESC '.\n\t\t\t\t ') DT2 '.\n\t\t\t ')';\n\n\t$rows = $dbmanager->performQuery($query);\n\n\t$dbmanager->closeConnection();\n\n\tif ($rows == null || $rows->num_rows == 0)\n\t\treturn null;\n\n\treturn $rows;\n}", "title": "" }, { "docid": "5d68e1672221eaa123b76267b2ccfdc3", "score": "0.49973708", "text": "protected function getTotalProgramsAttribute()\n {\n return $this->confirmed->count();\n }", "title": "" }, { "docid": "5132ba56b3ed01fdd8f3764928af8fef", "score": "0.49927944", "text": "public function getRequestCount(): int;", "title": "" }, { "docid": "b95be8c87b2a1a92f5f0d8d91bfa288f", "score": "0.49833992", "text": "function aGetCountActivity()\n{\n\t$sql = mysql_query(\"SELECT * FROM activity\");\n\twhile ($row[] = mysql_fetch_assoc($sql));\n\tarray_pop($row);\n\t$i = 0;\n\tforeach ($row as $r)\n\t\t{\n\t\t\t$i = $i++;\n\t\t}\n\treturn $i;\n}", "title": "" }, { "docid": "cd173e54566571824ed9553f452c54de", "score": "0.4973521", "text": "function totalGrantsDisbursed() {\n\t\tif ( $this->canSearchRun() ) {\n\t\t\t$query = '';\n\t\t\t$this->buildSelect($query);\n\t\t\t$this->buildWhere($query);\n\t\t\t\n\t\t\t$new_query = str_replace(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'SQL_CALC_FOUND_ROWS userMovieGrants.id AS ID, userID, movieID, filmTitle, requestedAmount, status, grantedAmount,rating',\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'sum(grantedAmount)',\n\t\t\t\t\t),\n\t\t\t\t\t$query\n\t\t\t\t);\n\n\t\t\t$oStmt = dbManager::getInstance()->prepare($new_query);\n\n\t\t\tif ( $oStmt->execute() ) {\n\t\t\t\t$row = $oStmt->fetch();\n\t\t\t\tif ( $row !== false && is_array($row) ) {\n\t\t\t\t\treturn $row[0];\n\t\t\t\t}\n\t\t\t}\n\t\t\t$oStmt->closeCursor();\n\t\t}\n\t\t\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "abecd9036c1de057593614add847d22a", "score": "0.49668255", "text": "public function getOnlineCount();", "title": "" }, { "docid": "5d6447ec4ca3134bcb158b7e57f5268d", "score": "0.4963493", "text": "public function getNotApplicableUserCount()\n {\n if (array_key_exists(\"notApplicableUserCount\", $this->_propDict)) {\n return $this->_propDict[\"notApplicableUserCount\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "a8a931509b10bab1bf5953803e70ab05", "score": "0.49544492", "text": "function get_number_of_users()\n{\n\t$counter=0;\n\n\tif(!empty($_SESSION[\"id_session\"])){\n\t\t$a_course_users = CourseManagerFD :: get_user_list_from_course_code_fd($_SESSION['_course']['id'], true, $_SESSION['id_session']);\n\t}\n\telse{\n\t\t$a_course_users = CourseManagerFD :: get_user_list_from_course_code_fd($_SESSION['_course']['id'], true);\n\t}\n\n\tforeach($a_course_users as $user_id=>$o_course_user){\n\n\t\tif( (isset ($_GET['keyword']) && search_keyword($o_course_user['firstname'],$o_course_user['lastname'],$o_course_user['username'],$o_course_user['official_code'],$_GET['keyword'])) || !isset($_GET['keyword']) || empty($_GET['keyword'])){\n\t\t\t// Eliminamos Gestor, admin y alumnos demo.\n\t\t\tif ($user_id!=1 && $user_id!=2 && $o_course_user['firstname']!='DEMO')\n\t\t\t{\n\t\t\t\t$counter++;\t\t\t\n\t\t\t}\n\t\t}\n\t}\n\n\treturn $counter;\n\t\n}", "title": "" }, { "docid": "382c9842fd1d207ec42bd6efbadaff62", "score": "0.49460357", "text": "public static function getNumberOfUserOnline() {\n\t\t$result = DB::getInstance()->query('SELECT COUNT(*) as num FROM '.PREFIX.'account WHERE session_id!=\"NULL\" AND lastaction>'.(time()-10*60))->fetch();\n\n\t\tif ($result !== false && isset($result['num'])) {\n\t\t\treturn $result['num'];\n\t\t}\n\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "b0e177fbd53195cc3a7477e723cbf485", "score": "0.49338034", "text": "public function countPendingUnsubscribeRequests() {\n\t\t$output =0;\n\t\t$ulevel = Docebo::user()->getUserLevelId();\n\t\t$id_admin = Docebo::user()->getIdSt();\n\n\t\t$filter = FALSE;\n\t\t$admin_query_course = \"\";\n\t\t$admin_query_editions = \"\";\n\n\t\tif ($ulevel != ADMIN_GROUP_GODADMIN) {\n\t\t\trequire_once(_base_.'/lib/lib.preference.php');\n\t\t\t$preference = new AdminPreference();\n\t\t\t$view = $preference->getAdminCourse($id_admin);\n\t\t\t$all_courses = false;\n\t\t\tif(isset($view['course'][0]))\n\t\t\t\t$all_courses = true;\n\t\t\telseif(isset($view['course'][-1]))\n\t\t\t{\n\t\t\t\trequire_once(_lms_.'/lib/lib.catalogue.php');\n\t\t\t\t$cat_man = new Catalogue_Manager();\n\n\t\t\t\t$user_catalogue = $cat_man->getUserAllCatalogueId(Docebo::user()->getIdSt());\n\t\t\t\tif(count($user_catalogue) > 0)\n\t\t\t\t{\n\t\t\t\t\t$courses = array(0);\n\n\t\t\t\t\tforeach($user_catalogue as $id_cat)\n\t\t\t\t\t{\n\t\t\t\t\t\t$catalogue_course =& $cat_man->getCatalogueCourse($id_cat, true);\n\n\t\t\t\t\t\t$courses = array_merge($courses, $catalogue_course);\n\t\t\t\t\t}\n\n\t\t\t\t\tforeach($courses as $id_course)\n\t\t\t\t\t\tif($id_course != 0)\n\t\t\t\t\t\t\t$view['course'][$id_course] = $id_course;\n\t\t\t\t}\n\t\t\t\telseif(Get::sett('on_catalogue_empty', 'off') == 'on')\n\t\t\t\t\t$all_courses = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$array_courses = array();\n\t\t\t\t$array_courses = array_merge($array_courses, $view['course']);\n\n\t\t\t\tif(!empty($view['coursepath']))\n\t\t\t\t{\n\t\t\t\t\trequire_once(_lms_.'/lib/lib.coursepath.php');\n\t\t\t\t\t$path_man = new CoursePath_Manager();\n\t\t\t\t\t$coursepath_course =& $path_man->getAllCourses($view['coursepath']);\n\t\t\t\t\t$array_courses = array_merge($array_courses, $coursepath_course);\n\t\t\t\t}\n\t\t\t\tif(!empty($view['catalogue']))\n\t\t\t\t{\n\t\t\t\t\trequire_once(_lms_.'/lib/lib.catalogue.php');\n\t\t\t\t\t$cat_man = new Catalogue_Manager();\n\t\t\t\t\tforeach($view['catalogue'] as $id_cat)\n\t\t\t\t\t{\n\t\t\t\t\t\t$catalogue_course =& $cat_man->getCatalogueCourse($id_cat, true);\n\t\t\t\t\t\t$array_courses = array_merge($array_courses, $catalogue_course);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$view['course'] = array_merge($view['course'], $array_courses);\n\t\t\t}\n\n\t\t\t$filter = $view['course'];\n\n\t\t\t$admin_query_course = $preference->getAdminUsersQuery($id_admin, 'idUser');\n\t\t\t$admin_query_editions = $preference->getAdminUsersQuery($id_admin, 't1.id_user');\n\t\t}\n\n\t\t// -- Count for normal courses:\n\t\t$query = \"SELECT COUNT(*) FROM %lms_courseuser WHERE requesting_unsubscribe = 1\";\n\t\t$query.= \" AND course_edition=0 AND course_type='elearning'\";\n\t\tif ($filter !== FALSE) {\n\t\t\tif (empty($filter)) return 0; //no courses to check --> no requests for sure\n\t\t\tif (!$all_courses) //we haven't assigned \"all courses\" to the admin\n\t\t\t\t$query .= \" AND idCourse IN (\".implode(\",\", $filter).\")\";\n\t\t}\n\t\tif ($admin_query_course) $query .= \" AND \".$admin_query_course;\n\n\t\t$res = $this->db->query($query);\n\t\tif ($res) {\n\t\t\tlist($tot) = $this->db->fetch_row($res);\n\t\t\t$output = (int)$tot;\n\t\t}\n\n\n\t\t// -- Count for editions:\n\t\t$query = \"SELECT COUNT(*) FROM %lms_course_editions_user as t1,\n\t\t\t%lms_course_edition as t2 WHERE t1.requesting_unsubscribe = 1 AND\n\t\t\tt1.id_edition=t2.idCourseEdition \";\n\t\tif ($filter !== FALSE) {\n\t\t\tif (empty($filter)) return 0; //no courses to check --> no requests for sure\n\t\t\tif (!isset($filter[0]) || $filter[0] != 0) //we haven't assigned \"all courses\" to the admin\n\t\t\t\t$query .= \" AND t2.idCourse IN (\".implode(\",\", $filter).\")\";\n\t\t}\n\t\tif ($admin_query_editions) $query .= \" AND \".$admin_query_editions;\n\n\t\t$res = $this->db->query($query);\n\t\tif ($res) {\n\t\t\tlist($tot) = $this->db->fetch_row($res);\n\t\t\t$output = (int)$tot;\n\t\t}\n\n\n\t\t// -- Count for classrooms:\n\t\t$query = \"SELECT COUNT(*) FROM %lms_course_date_user as t1,\n\t\t\t%lms_course_date as t2 WHERE t1.requesting_unsubscribe = 1 AND\n\t\t\tt1.id_date=t2.id_date \";\n\t\tif ($filter !== FALSE) {\n\t\t\tif (empty($filter)) return 0; //no courses to check --> no requests for sure\n\t\t\tif (!isset($filter[0]) || $filter[0] != 0) //we haven't assigned \"all courses\" to the admin\n\t\t\t\t$query .= \" AND t2.id_course IN (\".implode(\",\", $filter).\")\";\n\t\t}\n\t\tif ($admin_query_editions) $query .= \" AND \".$admin_query_editions;\n\n\t\t$res = $this->db->query($query);\n\t\tif ($res) {\n\t\t\tlist($tot) = $this->db->fetch_row($res);\n\t\t\t$output = (int)$tot;\n\t\t}\n\n\n\t\treturn ($output > 0 ? $output : false);\n\t}", "title": "" }, { "docid": "c13bdbe8eae87093eae12aba19f995ea", "score": "0.49293873", "text": "public function getNumberOfLimitForAdditional()\n {\n return $this->httpClient->get($this->endpointBase . '/v2/bot/message/quota');\n }", "title": "" }, { "docid": "2a455dd82f8bc9b8be6f92a2f977520f", "score": "0.49281973", "text": "public function getRequestCount()\n {\n return $this->requestsCount;\n }", "title": "" }, { "docid": "2c55c2de37024086bd1567aaf96cd5eb", "score": "0.49255693", "text": "function ipcf_activity_stats()\n{\n\tglobal $template, $user, $auth;\n\n\t// if the user is a bot, we won’t even process this function...\n\tif ($user->data['is_bot'])\n\t{\n\t\treturn false;\n\t}\n\n\t// obtain user activity data\n\t$active_users = ipcf_obtain_active_user_data();\n\n\t// 24 hour users online list, assign to the template block: lastvisit\n $users_online = 0;\n foreach ($active_users as $row)\n {\n if (!$row['user_viewonline'] && !$auth->acl_get('u_viewonline'))\n {\n // user does not have permission to view hidden users.\n continue;\n }\n \n $users_online++;\n\n\t\t// IP on registration for this\n\t\t$flag = ip_country_to_flag($row['user_ip']);\n\t\t$country = strtoupper($flag);\n\n $username_string = get_username_string((($row['user_type'] == USER_IGNORE) ? 'no_profile' : 'full'), $row['user_id'], '<img src=\"./images/flags/small/' . $flag . '.png\" width=\"14\" height=\"9\" alt=\"' . $user->lang['country'][$country] . '\" title=\"' . $user->lang['country'][$country] . '\" />' . ' ' . $row['username'], $row['user_colour']);\n \n $username_string = (!$row['user_viewonline']) ? '<em>' . $username_string . '</em>' : $username_string;\n \n $template->assign_block_vars('lastvisit', array(\n 'USERNAME_FULL' => $username_string,\n ));\n } \n\n\t// assign the stats to the template.\n\t$template->assign_vars(array(\n\t\t'USERS_24HOUR_TOTAL' => sprintf($user->lang['USERS_24HOUR_TOTAL'], $users_online), \n\t\t//'USERS_24HOUR_TOTAL'\t=> sprintf($user->lang['USERS_24HOUR_TOTAL'], sizeof($active_users)),\n\t));\n\n\treturn true;\n}", "title": "" }, { "docid": "6c59bf009338cf8da9e0c7b3fc4f417a", "score": "0.49232972", "text": "public function getCounts() {\n if ( !$this->isCompleteUser() ) {\n $this->updateData();\n }\n return isset( $this->data->counts ) ? $this->data->counts : null;\n }", "title": "" }, { "docid": "9319a533dd712444492fc4649186566d", "score": "0.49206755", "text": "public function count()\n {\n if ($this->country) {\n return $this->connection->get($this->keys->visits.\"_countries:{$this->keys->id}\", $this->country);\n } else if ($this->referer) {\n return $this->connection->get($this->keys->visits.\"_referers:{$this->keys->id}\", $this->referer);\n } else if ($this->operatingSystem) {\n return $this->connection->get($this->keys->visits.\"_OSes:{$this->keys->id}\", $this->operatingSystem);\n } else if ($this->language) {\n return $this->connection->get($this->keys->visits.\"_languages:{$this->keys->id}\", $this->language);\n }\n\n return intval(\n $this->keys->instanceOfModel\n ? $this->connection->get($this->keys->visits, $this->keys->id)\n : $this->connection->get($this->keys->visitsTotal())\n );\n }", "title": "" }, { "docid": "57570051b7e9d7bc2215b5ccc31ceff1", "score": "0.491529", "text": "private function getMostPossibleIntent()\n {\n if ($intents = $this->getIntents()) {\n return $this->maxAttributeInArray($intents, 'confidence');\n }\n\n return false;\n }", "title": "" }, { "docid": "7014b719b21d93ca3fb89f4164599513", "score": "0.4915184", "text": "private function AgencytakeNRecommendations($arr = null){\n\n\t\t$ret = array();\n\n\t\t$users_arr = array();\n\n\t\t$orginal_arr = $arr;\n\n\t\twhile (count($ret) < self::NUM_OF_RECOMMENDATIONS && !empty($arr)) {\n\t\t\t\n\t\t\t$cnt = 0;\n\t\t\tforeach ($arr as $key) {\n\n\t\t\t\tif(isset($key[0]) && count($ret) < self::NUM_OF_RECOMMENDATIONS){\n\n\t\t\t\t\t$tmp = array();\n\n\t\t\t\t\t$tmp = $key[0];\n\t\t\t\t\t$tmp['created_at'] = date(\"Y-m-d H:i:s\");\n\t\t\t\t\t$tmp['updated_at'] = date(\"Y-m-d H:i:s\");\n\n\t\t\t\t\t$ret[] = $tmp;\n\t\t\t\t\tunset($arr[$cnt][0]);\n\n\t\t\t\t\t$arr[$cnt] = array_values($arr[$cnt]);\n\n\t\t\t\t\t$cnt++;\n\n\t\t\t\t\t$users_arr[] = $tmp['user_id'];\n\t\t\t\t}else{\n\t\t\t\t\tunset($arr[$cnt]);\n\n\t\t\t\t\t$arr = array_values($arr);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tif (isset($this->filtered_user_array) && !empty($this->filtered_user_array)) {\n\n\t\t\t$filtered_user = $this->filtered_user_array;\n\t\t\t$filtered_user_ret = array();\n\t\t\tforeach ($filtered_user as $key) {\n\t\t\t\t$tmp = array();\n\n\t\t\t\t$tmp = $key;\n\t\t\t\t$tmp['created_at'] = date(\"Y-m-d H:i:s\");\n\t\t\t\t$tmp['updated_at'] = date(\"Y-m-d H:i:s\");\n\n\t\t\t\t$users_arr[] = $tmp['user_id'];\n\n\t\t\t\t$filtered_user_ret[] = $tmp;\n\t\t\t}\n\t\t\t$ret = array_merge($filtered_user_ret, $ret);\n\t\t}\n\n\t\tif (!isset($orginal_arr) || empty($orginal_arr)) {\n\t\t\t$orginal_arr = $ret;\n\t\t}\n\n\t\t// $mda = new MandrillAutomationController;\n\t\t// $mda->agencyAdminEverydayRecommendations($orginal_arr, $users_arr);\n\t\t//import recommendations into the database.\n\t\tif (isset($ret) && !empty($ret)) {\n\t\t\tDB::table('college_recommendations')->insert($ret);\n\t\t}\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "779f9e9b2d49f7e346631372d84f1f14", "score": "0.49129483", "text": "public function getBestOfferCount()\n {\n return $this->bestOfferCount;\n }", "title": "" }, { "docid": "a8df01bb824bd5f96e64252f47d6d15c", "score": "0.48898208", "text": "public function visitsForever()\n {\n return $this->visits()\n ->count();\n }", "title": "" }, { "docid": "c73f1b84b345dcf887f2997296e697dd", "score": "0.48897138", "text": "protected function getTotalUpcomingConfirmedAttribute()\n {\n return $this->upcoming->count();\n }", "title": "" }, { "docid": "e716414f023d879aca1206f36ff19e98", "score": "0.48820522", "text": "public function getUsage($prediction=false){\n\t\t//the system can predict how many users joined the server since last read\n\t\t\n\t\tif ($prediction != false){\n\t\t\treturn min(($this->userCount + $prediction) / $this->capacity,1);\n\t\t}\n\t\t\n\t\treturn min($this->userCount/$this->capacity,1);\n\t\t\n\t}", "title": "" }, { "docid": "6200fc046a2f94b7b60b416b21eb89df", "score": "0.4869478", "text": "private function get_screen_meat_moderate()\n {\n \treturn DB::table('screen')->where('part4_1', 3)->where('part4_2', 2 )->count(DB::raw('DISTINCT cid'));\n }", "title": "" }, { "docid": "49b3b58fa2ab9634787185e52475b19b", "score": "0.48590598", "text": "public function getRequestsApprovedCountAttribute()\n {\n return MediaRecord::where('source', 'megamaid')\n ->where('requested_by', $this->id)\n ->whereNotNull('approved_by')\n ->count();\n }", "title": "" }, { "docid": "f219726e80d96191ed994c22fd4e2833", "score": "0.48583904", "text": "public function getRequestCount()\n {\n return $this->request_count;\n }", "title": "" }, { "docid": "3115a53485b4cd4da7abc4105ed1fd01", "score": "0.48573577", "text": "function retrieve_adaptive_assessment_tracker();", "title": "" }, { "docid": "56619f0c5bbf91d6d794e36d0aed7af0", "score": "0.48565573", "text": "public function getRemainingRequests()\n {\n if($this->_remainingRequests == null) {\n $this->verify();\n }\n \n return $this->_remainingRequests;\n }", "title": "" }, { "docid": "449f124186209838c743762ad517f4e7", "score": "0.48535416", "text": "static function getLimit($params) {\n\t\t// Load the parameters\n\t\t$uname = $params->get(\"twitterName\",\"\");\n\t\t$req = \"http://api.twitter.com/1/account/rate_limit_status.json?screen_name=\".$uname.\"\";\n\n\t\t// Fetch the decoded JSON\n\t\t$obj = self::getJSON($req);\n\n\t\t// Get the remaining hits count\n\t\tif (isset ($obj['remaining_hits'])) {\n\t\t \t$hits = $obj['remaining_hits'];\n\t\t} else {\n\t\t \treturn false;\n\t\t}\n\t\treturn $hits;\n\t}", "title": "" }, { "docid": "6716f9313fb9192cd2d7f472cc585caf", "score": "0.485349", "text": "public function getTotalImpressions() { \n $hits = ad_impression::count(\"id\",\"id_ad='{$this->id}' \"); \n if ($hits!==null) {\n return intval($hits);\n }\n }", "title": "" }, { "docid": "654921bcf66c169cf380e0a893afb4f8", "score": "0.48533696", "text": "public function getOffersPendingCountAttribute()\n {\n $tenders = new OfferRepository();\n return $tenders->queryFilterForOfferSearch()->whereHas('logisticService', function($query) {\n $query->where('logistic_service_cv_id', $this->id);\n })->count();\n }", "title": "" }, { "docid": "cbc0b3485eef633f56418ab0bd25c569", "score": "0.48496264", "text": "public function getRequestsCount()\n {\n return count($this->data['requests']);\n }", "title": "" }, { "docid": "9d3b30b501a3ce697f4d9b16d82bf5cd", "score": "0.48397574", "text": "function get_num_users_peak()\n{\n global $PEAK_USERS_EVER_CACHE;\n return intval($PEAK_USERS_EVER_CACHE);\n}", "title": "" }, { "docid": "d7ba37c2d88c42eea48f853327374719", "score": "0.48208043", "text": "public function getTotalNumberOfEnabledSightReviews()\n {\n $qb = $this->createQueryBuilder('s');\n\n return (int) $qb->select('COUNT(s)')\n ->where($qb->expr()->eq('s.enabled', true))\n ->getQuery()\n ->getSingleScalarResult();\n }", "title": "" }, { "docid": "66134d96b0cab96111455ab8b2f114de", "score": "0.48144966", "text": "public function getUserSuggestionsStatistics() {\n\t\t// Generating input object\n\t\t$input = \\Input::all();\n\t\t// Getting the type\n\t\t$type = null;\n\t\tif (isset($input['type'])) {\n\t\t\t$type = $input['type'];\n\t\t}\n\t\t// Getting the current user connected\n\t\t$id_self = \\Auth::user()->id;\n\t\t// Getting the number of suggestions\n\t\t$numSuggestionsQuery = Suggestion::where('user_id', '=', $id_self);\n\t\t// Number of waiting suggestions\n\t\t$numWaitingSuggestionsQuery = Suggestion::where('user_id', '=', $id_self)->whereNull('accepted');\n\t\t// Number of accepted suggestions\n\t\t$numAcceptedSuggestionsQuery = Suggestion::where('user_id', '=', $id_self)->where('accepted', '=', '1');\n\t\t// Number of rejected suggestions\n\t\t$numRejectedSuggestionsQuery = Suggestion::where('user_id', '=', $id_self)->where('accepted', '=', '0');\n // Number of points by type\n $numPointsByType = 0;\n $numTotalPoints = 0;\n\n\t\t// Adding the type queries\n\t\tif ($type == 'reviews') {\n\t\t\t$numSuggestionsQuery->where('type', '=', 'review');\n\t\t\t$numWaitingSuggestionsQuery->where('type', '=', 'review');\n\t\t\t$numAcceptedSuggestionsQuery->where('type', '=', 'review');\n\t\t\t$numRejectedSuggestionsQuery->where('type', '=', 'review');\n Suggestion::where('user_id', '=', $id_self)->where('type', '=', 'review')->where('accepted', '=', '1')->get()->each(function($suggestion) use(&$numPointsByType) {\n $numPointsByType += $suggestion->numPoints();\n });\n\t\t} else if ($type == 'editions') {\n\t\t\t$numSuggestionsQuery->where('type', '=', 'edition');\n\t\t\t$numWaitingSuggestionsQuery->where('type', '=', 'edition');\n\t\t\t$numAcceptedSuggestionsQuery->where('type', '=', 'edition');\n\t\t\t$numRejectedSuggestionsQuery->where('type', '=', 'edition');\n Suggestion::where('user_id', '=', $id_self)->where('type', '=', 'edition')->where('accepted', '=', '1')->get()->each(function($suggestion) use(&$numPointsByType) {\n $numPointsByType += $suggestion->numPoints();\n });\n }\n\n // Executing queries\n $numSuggestions = $numSuggestionsQuery->count();\n $numWaitingSuggestions = $numWaitingSuggestionsQuery->count();\n $numAcceptedSuggestions = $numAcceptedSuggestionsQuery->count();\n $numRejectedSuggestions = $numRejectedSuggestionsQuery->count();\n\n // Getting the total number of suggestions\n $numTotalSuggestions = Suggestion::where('user_id', '=', $id_self)->count();\n // Getting the total number of points\n Suggestion::where('user_id', '=', $id_self)->where('accepted', '=', '1')->get()->each(function($suggestion) use (&$numTotalPoints) {\n $numTotalPoints += $suggestion->numPoints();\n });\n\n\t\treturn \\Response::json((object)[\n\t\t\t'type' => $type,\n\t\t\t'num_suggestions' => $numSuggestions,\n\t\t\t'num_waiting_suggestions' => $numWaitingSuggestions,\n\t\t\t'num_accepted_suggestions' => $numAcceptedSuggestions,\n\t\t\t'num_rejected_suggestions' => $numRejectedSuggestions,\n 'num_total_points' => $numTotalPoints,\n 'num_points_by_type' => $numPointsByType\n\t\t]);\n\t}", "title": "" }, { "docid": "8f7c193a5510e8ecfcb9e7305856966c", "score": "0.4810696", "text": "public function count(){\n\t\t$dao=D(\"UserSession\");\n\t\t//$map=\"lastactivity>\".(time()-$this->onlineTime);\n\t\t$map=\"\";\n\t\t$count=$dao->count($map);\n\t\treturn $count;\n\t}", "title": "" }, { "docid": "0ae66ef7e743ba92d1ab98e9ab9e79ae", "score": "0.48072523", "text": "public function getNumberOfContributionsToday(): int\n {\n $date = new \\DateTime('yesterday');\n $date->setTime(0, 0, 0);\n\n return $this->fetchFromApi($date->format('Y-m-d'), 60);\n }", "title": "" }, { "docid": "f3bb639455e6469e59480481d46bf61b", "score": "0.47944427", "text": "public function getActivities()\n {\n return $this->activities;\n }", "title": "" }, { "docid": "b4f8a4c86e1aae9263aa65935ea646ee", "score": "0.47937235", "text": "public function getAllActivitiesAction(Request $request)\n {\n $entityManager = $this->em;\n $repoO = $entityManager->getRepository(Organization::class);\n $repoDec = $entityManager->getRepository(Decision::class);\n $currentUser = $this->user;\n if (!$currentUser instanceof User) {\n return $this->redirectToRoute('login');\n }\n $currentUsrId = $currentUser->getId();\n $orgId = $currentUser->getOrgId();\n $organization = $repoO->find($orgId);\n \n $delegateActivityForm = $this->createForm(DelegateActivityForm::class, null, ['app' => $app, 'standalone' => true]);\n $delegateActivityForm->handleRequest($request);\n $validateRequestForm = $this->createForm(DelegateActivityForm::class, null, ['app' => $app, 'standalone' => true, 'request' => true]);\n $validateRequestForm->handleRequest($request);\n $requestActivityForm = $this->createForm(RequestActivityForm::class, null, ['app' => $app, 'standalone' => true]);\n $requestActivityForm->handleRequest($request);\n\n $userActivities = $organization->getActivities();\n\n //Remove future recurring activities which are far ahead (at least two after current one\n foreach ($userActivities as $activity) {\n if ($activity->getRecurring()) {\n $recurring = $activity->getRecurring();\n\n if ($recurring->getOngoingFutCurrActivities()->contains($activity) && $recurring->getOngoingFutCurrActivities()->indexOf($activity) > 1) {\n\n $userActivities->removeElement($activity);\n }\n }\n }\n\n $nbActivitiesCategories = 0;\n\n $cancelledActivities = $userActivities->matching(Criteria::create()->where(Criteria::expr()->eq(\"status\", -5)));\n $nbActivitiesCategories = (count($cancelledActivities) > 0) ? $nbActivitiesCategories + 1 : $nbActivitiesCategories;\n $discardedActivities = $userActivities->matching(Criteria::create()->where(Criteria::expr()->eq(\"status\", -4)));\n $nbActivitiesCategories = (count($discardedActivities) > 0) ? $nbActivitiesCategories + 1 : $nbActivitiesCategories;\n $requestedActivities = $userActivities->matching(Criteria::create()->where(Criteria::expr()->eq(\"status\", -3)));\n\n $iterator = $requestedActivities->getIterator();\n\n $iterator->uasort(function ($a, $b) use ($repoDec, $currentUsrId) {\n return ($repoDec->findOneBy(['decider' => $currentUsrId, 'activity' => $a]) != null && $repoDec->findOneBy(['decider' => $currentUsrId, 'activity' => $b]) == null) ? 1 : -1;\n //return ($a->getId() > $b->getId()) ? -1 : 1;\n });\n\n $requestedActivities = new ArrayCollection(iterator_to_array($iterator));\n\n $nbActivitiesCategories = (count($requestedActivities) > 0) ? $nbActivitiesCategories + 1 : $nbActivitiesCategories;\n $attributedActivities = $userActivities->matching(Criteria::create()->where(Criteria::expr()->eq(\"status\", -2)));\n $nbActivitiesCategories = (count($attributedActivities) > 0) ? $nbActivitiesCategories + 1 : $nbActivitiesCategories;\n $incompleteActivities = $userActivities->matching(Criteria::create()->where(Criteria::expr()->eq(\"status\", -1)));\n $nbActivitiesCategories = (count($incompleteActivities) > 0) ? $nbActivitiesCategories + 1 : $nbActivitiesCategories;\n $futureActivities = $userActivities->matching(Criteria::create()->where(Criteria::expr()->eq(\"status\", 0)));\n $nbActivitiesCategories = (count($futureActivities) > 0) ? $nbActivitiesCategories + 1 : $nbActivitiesCategories;\n $currentActivities = $userActivities->matching(Criteria::create()->where(Criteria::expr()->eq(\"status\", 1)));\n $nbActivitiesCategories = (count($currentActivities) > 0) ? $nbActivitiesCategories + 1 : $nbActivitiesCategories;\n $completedActivities = $userActivities->matching(Criteria::create()->where(Criteria::expr()->eq(\"status\", 2)));\n $nbActivitiesCategories = (count($completedActivities) > 0) ? $nbActivitiesCategories + 1 : $nbActivitiesCategories;\n $releasedActivities = $userActivities->matching(Criteria::create()->where(Criteria::expr()->eq(\"status\", 3)));\n $archivedActivities = $userActivities->matching(Criteria::create()->where(Criteria::expr()->eq(\"status\", 4)));\n\n return $this->render('activity_list.html.twig',\n [\n 'organization' => $organization,\n 'user_activities' => $userActivities,\n 'delegateForm' => $delegateActivityForm->createView(),\n 'validateRequestForm' => $validateRequestForm->createView(),\n 'requestForm' => $requestActivityForm->createView(),\n 'orgMode' => true,\n 'cancelledActivities' => $cancelledActivities,\n 'discardedActivities' => $discardedActivities,\n 'requestedActivities' => $requestedActivities,\n 'attributedActivities' => $attributedActivities,\n 'incompleteActivities' => $incompleteActivities,\n 'futureActivities' => $futureActivities,\n 'currentActivities' => $currentActivities,\n 'completedActivities' => $completedActivities,\n 'releasedActivities' => $releasedActivities,\n 'archivedActivities' => $archivedActivities,\n 'nbCategories' => $nbActivitiesCategories,\n 'app' => $app,\n 'existingAccessAndResultsViewOption' => false,\n 'hideResultsFromStageIds' => []/*self::hideResultsFromActivities($userActivities)*/,\n 'resultsAccess' => 2,\n ]\n );\n }", "title": "" }, { "docid": "4bdfc98a09d5bd8c382b5c04c5c224e0", "score": "0.4787754", "text": "public function getScannedCount()\n {\n return $this->param('ScannedCount');\n }", "title": "" }, { "docid": "dec9dc9210851e1d2b132e1a5ca07a78", "score": "0.4778597", "text": "function get_num_users_site()\n{\n if (get_value('disable_user_online_counting') === '1') {\n return 1;\n }\n\n global $NUM_USERS_SITE_CACHE, $PEAK_USERS_EVER_CACHE, $PEAK_USERS_WEEK_CACHE;\n $users_online_time_seconds = 60 * intval(get_option('users_online_time'));\n $NUM_USERS_SITE_CACHE = get_value_newer_than('users_online', time() - $users_online_time_seconds / 2); /* Refreshes half way through the user online time, to approximate accuracy */\n if ($NUM_USERS_SITE_CACHE === null) {\n $NUM_USERS_SITE_CACHE = get_value('users_online');\n $count = 0;\n require_code('users2');\n get_users_online(false, null, $count);\n $NUM_USERS_SITE_CACHE = strval($count);\n if (!$GLOBALS['SITE_DB']->table_is_locked('values')) {\n set_value('users_online', $NUM_USERS_SITE_CACHE);\n }\n }\n if ((intval($NUM_USERS_SITE_CACHE) > intval(get_option('maximum_users'))) && (intval(get_option('maximum_users')) > 1) && (get_page_name() != 'login') && (!has_privilege(get_member(), 'access_overrun_site')) && (!running_script('cron_bridge'))) {\n set_http_status_code('503');\n\n critical_error('BUSY', do_lang('TOO_MANY_USERS'));\n }\n if (addon_installed('stats')) {\n // Store a peak record if there is one\n $PEAK_USERS_EVER_CACHE = get_value('user_peak');\n if (($PEAK_USERS_EVER_CACHE === null) || ($PEAK_USERS_EVER_CACHE == '')) {\n $_peak_users_user = $GLOBALS['SITE_DB']->query_select_value_if_there('usersonline_track', 'MAX(peak)', null, '', true);\n $PEAK_USERS_EVER_CACHE = ($_peak_users_user === null) ? $NUM_USERS_SITE_CACHE : strval($_peak_users_user);\n if (!$GLOBALS['SITE_DB']->table_is_locked('values')) {\n set_value('user_peak', $PEAK_USERS_EVER_CACHE);\n }\n }\n if (intval($NUM_USERS_SITE_CACHE) > intval($PEAK_USERS_EVER_CACHE)) {\n // New record\n $GLOBALS['SITE_DB']->query_insert('usersonline_track', array('date_and_time' => time(), 'peak' => intval($NUM_USERS_SITE_CACHE)), false, true);\n if (!$GLOBALS['SITE_DB']->table_is_locked('values')) {\n set_value('user_peak', $NUM_USERS_SITE_CACHE);\n }\n }\n\n // Store a 7-day-cycle peak record if we've made one\n $PEAK_USERS_WEEK_CACHE = get_value_newer_than('user_peak_week', time() - $users_online_time_seconds / 2);\n $store_anyway = false;\n if (($PEAK_USERS_WEEK_CACHE === null) || ($PEAK_USERS_WEEK_CACHE == '')) {\n $store_anyway = true;\n }\n if ((intval($NUM_USERS_SITE_CACHE) > intval($PEAK_USERS_WEEK_CACHE)) || ($store_anyway)) {\n $PEAK_USERS_WEEK_CACHE = $NUM_USERS_SITE_CACHE;\n\n // But also delete anything else in the last 7 days that was less than the new weekly peak record, to keep the stats clean (we only want 7 day peaks to be stored)\n $GLOBALS['SITE_DB']->query('DELETE FROM ' . get_table_prefix() . 'usersonline_track WHERE date_and_time>' . strval(time() - 60 * 60 * 24 * 7) . ' AND peak<=' . $PEAK_USERS_WEEK_CACHE, null, null, true);\n\n // Set record for week\n set_value('user_peak_week', $PEAK_USERS_WEEK_CACHE);\n $GLOBALS['SITE_DB']->query_insert('usersonline_track', array('date_and_time' => time(), 'peak' => intval($PEAK_USERS_WEEK_CACHE)), false, true);\n }\n }\n return intval($NUM_USERS_SITE_CACHE);\n}", "title": "" }, { "docid": "7282bc4c56994aa9a74668d3ae8e8a76", "score": "0.4770063", "text": "public function getAvailableSeatsAttribute(){\n return $this->capacity - $this->students()->count();\n }", "title": "" }, { "docid": "570191a48021768767a41cae7806bc76", "score": "0.4762618", "text": "function getHoursUsed(){\r\n\t\t$hrz = 0;\r\n\t\t$query = Doctrine_Query::create()->from('Activity a')\r\n\t\t->where(\"a.voucherid = '\".$this->getID().\"' \")->orderby('a.activitydate desc');\r\n\t\t$result = $query->execute();\r\n\t\tif($result){\r\n\t\t\t// debugMessage($result->toArray());\r\n\t\t\tforeach ($result as $activity){\r\n\t\t\t\t$hrz += $activity->getBillableHours();\r\n\t\t\t}\r\n\t\t\t// debugMessage($hrz);\r\n\t\t}\r\n\t\treturn $hrz;\r\n\t}", "title": "" }, { "docid": "81fda2450a2d9b50e4ca3a319b1e008c", "score": "0.47447172", "text": "private function calculateOverallActivityScore($data){\n\t\t$oas = 0;\n\n\t\t$oas += (int)$data['num_of_inquiries_accepted'] * 2;\n\t\t$oas += (int)$data['num_of_inquiries_rejected'] * 2;\n\t\t$oas += (int)$data['num_of_inquiries_idle'] * 0.25;\n\t\t$oas += (int)$data['num_of_recommendations_accepted_pending'] * 1;\n\t\t$oas += (int)$data['num_of_recommendations_rejected'] * 1;\n\t\t$oas += (int)$data['num_of_recommendations_idle'] * 0.1667;\n\t\t$oas += (int)$data['num_of_days_chatted'] * 3;\n\t\t$oas += (int)$data['total_chat_sent'] > 0.25 ? $oas + ($data['total_chat_sent'] * 1) : $oas + ($data['total_chat_sent'] * 0.5);\n\t\t$oas += (int)$data['total_msg_sent'] > 0.33 ? $oas + ($data['total_msg_sent'] * 1.5) : $oas + ($data['total_msg_sent'] * 0.75);\n\t\t$oas += (int)$data['num_of_advance_search_approved'] * 2;\n\t\t$oas += (int)$data['num_profile_view'] * 0.5;\n\t\t// $oas += (int)$data['export_file_cnt'] * 2.5;\n\t\t$oas += (int)$data['num_of_uploaded_ranking'] * 5;\n\n\t\treturn $oas;\n\t}", "title": "" }, { "docid": "3e6d0cf0d9a30c0e5df331c3a2006ab2", "score": "0.4744315", "text": "protected function getUserTryes(){\n \treturn count($this->persistObject['userHits']);\n }", "title": "" }, { "docid": "5fc13e2fe12b8069920e62a70f25c95d", "score": "0.4739376", "text": "public function userCountExtraParticipations($user_id, Promotion $promotion) {\n return ExtraParticipation::where('promo_id', $promotion->id)->where('user_id', $user_id)->where('used', null)->count();\n }", "title": "" }, { "docid": "b7ceac7ffa7fce157a175ec4572b0e62", "score": "0.4739067", "text": "public function user_counts() {\n\t\tif (is_multisite() && function_exists('get_user_count')) {\n\t\t\t$total_users = get_user_count();\n\t\t}\n\t\telse {\n\t\t\tglobal $wpdb;\n\t\t\t$total_users = (int) $wpdb->get_var(\"SELECT COUNT(ID) as c FROM {$wpdb->users}\");\n\t\t}\n\t\t$active_users = $this->active_count();\n\t\treturn array('active_users' => $active_users, 'inactive_users' => max($total_users - $active_users, '-'));\n\t}", "title": "" }, { "docid": "2429a5dbf44f1e98bb6702a934a42d5f", "score": "0.4735848", "text": "public function countMyActiveOpenings($uid = null, $onlypublished = 0, $admin = 0)\n\t{\n\t\tif ($uid === null)\n\t\t{\n\t\t\t$uid = User::get('id');\n\t\t}\n\n\t\t$sql = \"SELECT count(*) FROM `$this->_tbl` AS j \";\n\t\tif ($onlypublished)\n\t\t{\n\t\t\t$sql .= \" WHERE j.status=1 \";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$sql .= \" WHERE j.status!=2 AND j.status!=3 \";\n\t\t}\n\t\t$sql .= $admin ? \" AND j.employerid=1 \" : \" AND j.employerid=\" . $this->_db->quote($uid) . \" \";\n\n\t\t$this->_db->setQuery($sql);\n\t\treturn $this->_db->loadResult();\n\t}", "title": "" }, { "docid": "ac8e407a16e54c859a05122e3fab7eb8", "score": "0.4731166", "text": "function learndash_get_user_course_attempts_time_spent( $user_id = 0, $course_id = 0 ) {\n\t$total_time_spent = 0;\n\n\t$attempts = learndash_get_user_course_attempts( $user_id, $course_id );\n\t//error_log('attempts<pre>'. print_r($attempts, true) .'</pre>');\n\n\t// We should only ever have one entry for a user+course_id. But still we are returned an array of objects\n\tif ( ( ! empty( $attempts ) ) && ( is_array( $attempts ) ) ) {\n\t\tforeach ( $attempts as $attempt ) {\n\n\t\t\tif ( ! empty( $attempt->activity_completed ) ) {\n\t\t\t\t// If the Course is complete then we take the time as the completed - started times.\n\t\t\t\t$total_time_spent += ( $attempt->activity_completed - $attempt->activity_started );\n\t\t\t} else {\n\t\t\t\t// But if the Course is not complete we calculate the time based on the updated timestamp\n\t\t\t\t// This is updated on the course for each lesson, topic, quiz\n\t\t\t\t$total_time_spent += ( $attempt->activity_updated - $attempt->activity_started );\n\t\t\t}\n\t\t}\n\t}\n\n\treturn $total_time_spent;\n}", "title": "" }, { "docid": "51b7cb22d2749bd2a1b8c9064b661ae9", "score": "0.4727915", "text": "public function gagner_experience() {\n $this->_experience++;\n }", "title": "" }, { "docid": "54b300baf139d4e9273f6e6db62aeec2", "score": "0.4720775", "text": "function block_course_notification_get_site_indicators() {\n global $PAGE, $CFG;\n\n if (!block_course_notification_supports_feature('notifications/coldfeedback')) {\n return;\n }\n\n include_once($CFG->dirroot.'/blocks/course_notification/pro/lib.php');\n return bcn_get_coldfeedback_site_stats();\n}", "title": "" }, { "docid": "43634354193c34e666adc3e0f457533c", "score": "0.47191727", "text": "public function getActivityCountsOfMyTeam($organizationId, $loggedInUserId, $timePeriod)\n {\n $this->logger->debug(\"Get My Teams Recent Activities for time period: \" . $timePeriod);\n\n //Get Utc Time Range Using Organization's Time and specified time period\n $dateTimeRange = $this->getUtcDateRangeUsingOrganizationTimezoneAdjustedDate($timePeriod, $organizationId);\n $fromDate = $dateTimeRange['from_date'];\n $toDate = $dateTimeRange['to_date'];\n\n //Find the current academic year start and end for restricting the view to the current academic year\n $currentUtcDateTimeObject = new \\DateTime('now');\n $orgAcademicYear = $this->orgAcademicYearRepository->getCurrentAcademicDetails($currentUtcDateTimeObject, $organizationId);\n\n $currentAcademicYearId = NULL;\n if (!empty($orgAcademicYear)) {\n $academicYearStartDate = $orgAcademicYear[0]['startDate'];\n $academicYearEndDate = $orgAcademicYear[0]['endDate'];\n $currentAcademicYearId = $orgAcademicYear[0]['id'];\n } else {\n $academicYearStartDate = $fromDate;\n $academicYearEndDate = $toDate;\n }\n\n //Getting counts, permission to the activity itself is not necessary per ESPRJ-10870\n $teamOpenReferralCountArray = $this->teamMembersRepository->getActivityCountsOfMyTeamByActivityType('open-referral', ['R'], $fromDate, $toDate, $loggedInUserId, $organizationId, $academicYearStartDate, $academicYearEndDate, null, $currentAcademicYearId);\n $teamInteractionCountArray = $this->teamMembersRepository->getActivityCountsOfMyTeamByActivityType('interaction', ['R', 'C', 'N', 'A'], $fromDate, $toDate, $loggedInUserId, $organizationId, $academicYearStartDate, $academicYearEndDate, null, $currentAcademicYearId);\n $teamLoginCountArray = $this->teamMembersRepository->getActivityCountsOfMyTeamByActivityType('login', ['L'], $fromDate, $toDate, $loggedInUserId, $organizationId, $academicYearStartDate, $academicYearEndDate, null, $currentAcademicYearId);\n\n //Find all unique team Ids that have activity counts\n $teamIds = array_merge(array_column($teamInteractionCountArray, 'team_id'), array_column($teamOpenReferralCountArray, 'team_id'), array_column($teamLoginCountArray, 'team_id'));\n $teamIds = array_unique($teamIds);\n\n $teamActivitiesJoined = [];\n $teamNamesById = [];\n\n //Using Array Indexing to map all team_activites_count and names to ids\n foreach ($teamOpenReferralCountArray as $teamOpenReferralRow) {\n $teamId = $teamOpenReferralRow['team_id'];\n //Map 'teams_id' => 'activity' => 'team_activities_count'\n $teamActivitiesJoined[$teamId]['open-referral'] = $teamOpenReferralRow['team_activities_count'];\n\n //Map 'teams_id' => 'team_name'\n $teamNamesById[$teamId] = $teamOpenReferralRow['team_name'];\n }\n\n foreach ($teamInteractionCountArray as $teamInteractionRow) {\n $teamId = $teamInteractionRow['team_id'];\n\n //Map 'teams_id' => 'activity' => 'team_activities_count'\n $teamActivitiesJoined[$teamId]['interaction'] = $teamInteractionRow['team_activities_count'];\n\n //Map 'teams_id' => 'team_name'\n $teamNamesById[$teamId] = $teamInteractionRow['team_name'];\n }\n\n foreach ($teamLoginCountArray as $teamLoginRow) {\n $teamId = $teamLoginRow['team_id'];\n\n //Map 'teams_id' => 'activity' => 'team_activities_count'\n $teamActivitiesJoined[$teamId]['login'] = $teamLoginRow['team_activities_count'];\n\n //Map 'teams_id' => 'team_name'\n $teamNamesById[$teamId] = $teamLoginRow['team_name'];\n }\n\n //Loading Counts into DTOs\n $teamsDto = new TeamsDto();\n $teamsDto->setPersonId($loggedInUserId);\n $recentActivitiesDtoArray = [];\n foreach ($teamIds as $teamId) {\n\n if (isset($teamActivitiesJoined[$teamId])) {\n\n $teamActivityCountDto = new TeamActivityCountDto();\n $teamActivityCountDto->setTeamId($teamId);\n $teamActivityCountDto->setTeamName($teamNamesById[$teamId]);\n if (isset($teamActivitiesJoined[$teamId]['open-referral'])) {\n $teamActivityCountDto->setTeamOpenReferrals($teamActivitiesJoined[$teamId]['open-referral']);\n } else {\n $teamActivityCountDto->setTeamOpenReferrals(0);\n }\n\n if (isset($teamActivitiesJoined[$teamId]['interaction'])) {\n $teamActivityCountDto->setTeamActivities($teamActivitiesJoined[$teamId]['interaction']);\n } else {\n $teamActivityCountDto->setTeamActivities(0);\n }\n\n if (isset($teamActivitiesJoined[$teamId]['login'])) {\n $teamActivityCountDto->setTeamLogins($teamActivitiesJoined[$teamId]['login']);\n } else {\n $teamActivityCountDto->setTeamLogins(0);\n }\n $recentActivitiesDtoArray[] = $teamActivityCountDto;\n }\n\n }\n\n $teamsDto->setRecentActivities($recentActivitiesDtoArray);\n\n $this->logger->info(\"Get My Teams Recent Activities for Logged UserId and Filter \");\n return $teamsDto;\n\n\n }", "title": "" }, { "docid": "eef086019b9a1f5d59894ed3365f0449", "score": "0.47186866", "text": "function GetRelativeActivity(){\r\r\n\t\tif ($this->maxActivity == 0){\r\r\n\t\t\t$out = 0;\t\r\r\n\t\t}else{\r\r\n\t\t\t$out = $this->activity/$this->maxActivity;\t\r\r\n\t\t}\r\r\n\t\treturn $out;\r\r\n\t}", "title": "" }, { "docid": "1853380fb7f6f22d7647d99bb5326aeb", "score": "0.47170317", "text": "function learndash_get_user_course_attempts( $user_id = 0, $course_id = 0 ) {\n\tglobal $wpdb;\n\n\tif ( ( ! empty( $user_id ) ) || ( ! empty( $course_id ) ) ) {\n\t\t$sql_str = $wpdb->prepare( 'SELECT activity_id, activity_started, activity_completed, activity_updated FROM ' . LDLMS_DB::get_table_name( 'user_activity' ) . ' WHERE user_id=%d AND post_id=%d and activity_type=%s ORDER BY activity_id, activity_started ASC', $user_id, $course_id, 'course' );\n\t\t//error_log('sql_str['. $sql_str .']');\n\t\treturn $wpdb->get_results( $sql_str );\n\t}\n}", "title": "" }, { "docid": "560d11c763ca4306eee7997ce22fbd8a", "score": "0.471215", "text": "public function getReviewsCount()\n {\n return $this->getProduct()->getRatingSummary()->getReviewsCount();\n }", "title": "" }, { "docid": "c52dbcc8f24121a78a5c7915ef9c8dcb", "score": "0.47106963", "text": "function learndash_get_assignments_pending_count( $query_args = array(), $return_field = 'found_posts' ) {\n\t$return = 0;\n\n\t$default_args = array(\n\t\t'post_type' => 'sfwd-assignment',\n\t\t'post_status' => 'publish',\n\t\t'fields' => 'ids',\n\t\t'meta_query' => array(\n\t\t\tarray(\n\t\t\t\t'key' => 'approval_status',\n\t\t\t\t'compare' => 'NOT EXISTS',\n\t\t\t),\n\t\t),\n\t);\n\n\t// added logic for non-admin user like group leaders who will only see a sub-set of assignments\n\t$user_id = get_current_user_id();\n\tif ( learndash_is_group_leader_user( $user_id ) ) {\n\t\t$group_ids = learndash_get_administrators_group_ids( $user_id );\n\t\t$user_ids = array();\n\t\t$course_ids = array();\n\n\t\tif ( ! empty( $group_ids ) && is_array( $group_ids ) ) {\n\t\t\tforeach ( $group_ids as $group_id ) {\n\t\t\t\t$group_users = learndash_get_groups_user_ids( $group_id );\n\n\t\t\t\tif ( ! empty( $group_users ) && is_array( $group_users ) ) {\n\t\t\t\t\tforeach ( $group_users as $group_user_id ) {\n\t\t\t\t\t\t$user_ids[ $group_user_id ] = $group_user_id;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$group_course_ids = learndash_group_enrolled_courses( $group_id );\n\t\t\t\tif ( ( ! empty( $group_course_ids ) ) && ( is_array( $group_course_ids ) ) ) {\n\t\t\t\t\t$course_ids = array_merge( $course_ids, $group_course_ids );\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\treturn $return;\n\t\t}\n\n\t\tif ( ! empty( $course_ids ) && count( $course_ids ) ) {\n\t\t\t$default_args['meta_query'][] = array(\n\t\t\t\t'key' => 'course_id',\n\t\t\t\t'value' => $course_ids,\n\t\t\t\t'compare' => 'IN',\n\t\t\t);\n\t\t} else {\n\t\t\treturn $return;\n\t\t}\n\n\t\tif ( ! empty( $user_ids ) && count( $user_ids ) ) {\n\t\t\t$default_args['author__in'] = $user_ids;\n\t\t} else {\n\t\t\treturn $return;\n\t\t}\n\t}\n\n\t$query_args = wp_parse_args( $query_args, $default_args );\n\t/**\n\t * Filters pending assignments count query arguments.\n\t *\n\t * @param array $query_args An array of pending assignment count query arguments.\n\t */\n\t$query_args = apply_filters( 'learndash_get_assignments_pending_count_query_args', $query_args );\n\n\tif ( 'found_posts' == $return_field ) {\n\t\t$query_args['posts_per_page'] = 1;\n\t\t$query_args['paged'] = 1;\n\t}\n\n\tif ( ( is_array( $query_args ) ) && ( ! empty( $query_args ) ) ) {\n\t\t$query = new WP_Query( $query_args );\n\n\t\tif ( ( ! empty( $return_field ) ) && ( property_exists( $query, $return_field ) ) ) {\n\t\t\t$return = $query->$return_field;\n\t\t} else {\n\t\t\t$return = $query;\n\t\t}\n\t}\n\n\treturn $return;\n}", "title": "" }, { "docid": "ed0a5de3c32df55b268d927899feadaf", "score": "0.4707002", "text": "public function popular()\n {\n if ($this->request->popular == 1) {\n return $this->builder->orderBy('replies_count', 'desc');\n };\n }", "title": "" }, { "docid": "497146006da6ada17717c7c4a2f88568", "score": "0.4706621", "text": "public function getTendersPendingCountAttribute()\n {\n $tenders = new TenderRepository();\n return $tenders->queryFilterForTenderSearch()->whereHas('logisticService', function($query) {\n $query->where('logistic_service_cv_id', $this->id);\n })->count();\n }", "title": "" }, { "docid": "92ef8d1c6448081e6b02ad18425147df", "score": "0.4704759", "text": "public function getTotalImpressions()\n {\n return $this->total_impressions;\n }", "title": "" }, { "docid": "ad3b3dc5ee6031101a88249461ac45b7", "score": "0.47027165", "text": "function learnedAlgs() {\n\tif(isset($_SESSION[\"user\"]) && !(empty($_SESSION[\"user\"]))) {\n\t\tglobal $userData;\n\t\techo $userData[\"OLL_learned\"];\n\t}\n}", "title": "" }, { "docid": "cc0719c8acc086cd10002a1bd4116a05", "score": "0.46977624", "text": "function UseCount() {return $this->getUseCount();}", "title": "" }, { "docid": "08559f7a7fbbccbac0af1667c73676cd", "score": "0.4695775", "text": "private function lastActivitiesLoggedIn()\n {\n $lastLoggedInActivities = Activity::orderBy('endDate', 'desc')->get()->where('userId', '=' , auth()->user()->id)->take(5);\n\n return $lastLoggedInActivities;\n }", "title": "" }, { "docid": "194400787bb641c2e5505aaa153ce206", "score": "0.4695316", "text": "public function getActivityCount(): ?\\stdClass\n {\n return $this->get(\n self::URL_GARMIN_CONNECT . '/proxy/activitylist-service/activities/count',\n null,\n false\n );\n }", "title": "" }, { "docid": "3e4da8a462d02353c765af725b9db6eb", "score": "0.46941182", "text": "function learndash_reports_get_activity( $query_args = array(), $current_user_id = 0 ) {\n\tglobal $wpdb, $learndash_post_types;\n\n\t$activity_results = array();\n\n\t$ACTIVITY_STATUS_HAS_NULL = false;\n\n\t$defaults = array(\n\t\t// array or comma lst of group ids to use in query. Default is all groups\n\t\t'group_ids' => '',\n\n\t\t// array or comma list of course.\n\t\t'course_ids' => '',\n\t\t'course_ids_action' => 'IN',\n\n\t\t// array or comma list of course, lesson, topic, etc. Default is all posts\n\t\t'post_ids' => '',\n\t\t'post_ids_action' => 'IN',\n\n\t\t// array or comma list of LD specific post types. See $learndash_post_types for possible values\n\t\t'post_types' => '',\n\n\t\t// array or comma list of post statuses. See $learndash_post_types for possible values\n\t\t'post_status' => '',\n\n\t\t// array or comma list of user ids. Defaults to all user ids.\n\t\t'user_ids' => '',\n\t\t'user_ids_action' => 'IN',\n\n\t\t// An array of activity_type values to filter. Default is all types\n\t\t'activity_types' => '',\n\n\t\t// An array of activity_status values to filter. Possible values 'NOT_STARTED' , 'IN_PROGRESS', 'COMPLETED'\n\t\t'activity_status' => '',\n\n\t\t// controls number of items to return for request. Pass 0 for ALL items\n\t\t'per_page' => 10,\n\n\t\t// Used in combination with 'per_page' to set the page set of items to return.\n\t\t'paged' => 1,\n\t\t// order by fields AND order (DESC, ASC) combined to allow multiple fields and directions\n\t\t'orderby_order' => 'GREATEST(ld_user_activity.activity_started, ld_user_activity.activity_completed) DESC',\n\t\t// Search value. See 'search_context' for specifying search fields.\n\t\t's' => '',\n\n\t\t// Limit search to 'post_title' OR 'display_name'. If empty will include both\n\t\t's_context' => '',\n\n\t\t// start and/or end time filtering. Should be date format strings 'YYYY-MM-DD HH:mm:ss' or 'YYYY-MM-DD'.\n\t\t'time_start' => 0,\n\t\t'time_end' => 0,\n\n\t\t// Indicators to tell the logic if the values passed via 'time_start' and 'time_end' are GMT or local (timezone offset),\n\t\t'time_start_is_gmt' => false,\n\t\t'time_end_is_gmt' => false,\n\n\t\t// date values returned from the query will be a gmt timestamp int. If the 'date_format' value is provided\n\t\t// a new field will be include 'activity_date_time_formatted' using the format specifyers provided in this field.\n\t\t/** This filter is documented in includes/ld-misc-functions.php */\n\t\t'date_format' => apply_filters( 'learndash_date_time_formats', get_option( 'date_format' ) . ' ' . get_option( 'time_format' ) ),\n\n\t\t'include_meta' => true,\n\t\t'meta_fields' => array(),\n\n\t\t// controls if the queries are actually executed. You can pass in true or 1 to have the logic tested without running the actual query\n\t\t'dry_run' => 0,\n\n\t\t// Supress ALL filters. This include both the query_args and query_str filters\n\t\t'suppress_filters_all' => 0,\n\n\t\t// If the 'suppress_filters_all' is NOT set you can set this to control just filters for the final query_args;\n\t\t'suppress_filters_query_args' => 0,\n\n\t\t// If the 'suppress_filters_all' is NOT set you can set this to control just filters for the final query_str;\n\t\t'suppress_filters_query_str' => 0,\n\t);\n\n\tif ( empty( $current_user_id ) ) {\n\t\tif ( ! is_user_logged_in() ) {\n\t\t\treturn $activity_results;\n\t\t}\n\t\t$current_user_id = get_current_user_id();\n\t}\n\n\t$query_args = wp_parse_args( $query_args, $defaults );\n\t//error_log('query_args<pre>'. print_r($query_args, true) .'</pre>');\n\n\t// We save a copy of the original query_args to compare after we have filled in some default values.\n\t$query_args_org = $query_args;\n\n\t// Clean the group_ids arg.\n\tif ( '' != $query_args['group_ids'] ) {\n\t\tif ( ! is_array( $query_args['group_ids'] ) ) {\n\t\t\t$query_args['group_ids'] = explode( ',', $query_args['group_ids'] );\n\t\t}\n\t\t$query_args['group_ids'] = array_map( 'trim', $query_args['group_ids'] );\n\t}\n\n\t// Clean the course_ids arg.\n\tif ( '' != $query_args['course_ids'] ) {\n\t\tif ( ! is_array( $query_args['course_ids'] ) ) {\n\t\t\t$query_args['course_ids'] = explode( ',', $query_args['course_ids'] );\n\t\t}\n\t\t$query_args['course_ids'] = array_map( 'trim', $query_args['course_ids'] );\n\t}\n\n\t// Clean the post_ids arg.\n\tif ( '' != $query_args['post_ids'] ) {\n\t\tif ( ! is_array( $query_args['post_ids'] ) ) {\n\t\t\t$query_args['post_ids'] = explode( ',', $query_args['post_ids'] );\n\t\t}\n\t\t$query_args['post_ids'] = array_map( 'trim', $query_args['post_ids'] );\n\t}\n\n\t// Clean the post_types arg.\n\tif ( '' != $query_args['post_types'] ) {\n\t\tif ( is_string( $query_args['post_types'] ) ) {\n\t\t\t$query_args['post_types'] = explode( ',', $query_args['post_types'] );\n\t\t}\n\t\t$query_args['post_types'] = array_map( 'trim', $query_args['post_types'] );\n\n\t\t$query_args['post_types'] = array_intersect( $query_args['post_types'], $learndash_post_types );\n\t} else {\n\t\t// If not provides we set this to our internal defined learndash_post_types.\n\t\t$query_args['post_types'] = $learndash_post_types;\n\t}\n\n\t// Clean the post_status arg.\n\tif ( '' !== $query_args['post_status'] ) {\n\t\tif ( is_string( $query_args['post_status'] ) ) {\n\t\t\t$query_args['post_status'] = explode( ',', $query_args['post_status'] );\n\t\t}\n\t\t$query_args['post_status'] = array_map( 'trim', $query_args['post_status'] );\n\t}\n\n\t// Clean the user_ids arg.\n\tif ( '' != $query_args['user_ids'] ) {\n\t\tif ( ! is_array( $query_args['user_ids'] ) ) {\n\t\t\t$query_args['user_ids'] = explode( ',', $query_args['user_ids'] );\n\t\t}\n\t\t$query_args['user_ids'] = array_map( 'trim', $query_args['user_ids'] );\n\t}\n\n\tif ( '' != $query_args['activity_types'] ) {\n\t\tif ( is_string( $query_args['activity_types'] ) ) {\n\t\t\t$query_args['activity_types'] = explode( ',', $query_args['activity_types'] );\n\t\t}\n\t\t$query_args['activity_types'] = array_map( 'trim', $query_args['activity_types'] );\n\t}\n\n\tif ( '' != $query_args['activity_status'] ) {\n\t\tif ( is_string( $query_args['activity_status'] ) ) {\n\t\t\t$query_args['activity_status'] = explode( ',', $query_args['activity_status'] );\n\t\t}\n\t\t$query_args['activity_status'] = array_map( 'trim', $query_args['activity_status'] );\n\n\t\t$not_started_idx = array_search( 'NOT_STARTED', $query_args['activity_status'] );\n\t\tif ( false !== $not_started_idx ) {\n\t\t\t$ACTIVITY_STATUS_HAS_NULL = true;\n\t\t\tunset( $query_args['activity_status'][ $not_started_idx ] );\n\t\t}\n\n\t\tforeach ( $query_args['activity_status'] as $idx => $value ) {\n\t\t\tif ( 'COMPLETED' == $value ) {\n\t\t\t\t$query_args['activity_status'][ $idx ] = '1';\n\t\t\t} else {\n\t\t\t\t$query_args['activity_status'][ $idx ] = '0';\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( ( '' == $query_args['group_ids'] ) && ( '' == $query_args['post_ids'] ) && ( '' == $query_args['user_ids'] ) ) {\n\t\t// If no filters were provided.\n\t\t// If the view user is a group leader we just return all the activity for all the managed users.\n\t\tif ( learndash_is_group_leader_user( $current_user_id ) ) {\n\t\t\t$query_args['user_ids'] = learndash_get_group_leader_groups_users( $current_user_id );\n\t\t}\n\t} else {\n\t\tif ( learndash_is_group_leader_user( $current_user_id ) ) {\n\t\t} elseif ( learndash_is_admin_user( $current_user_id ) ) {\n\t\t\t// If the group_ids parameter is passed in we need to determine the course_ids contains in the group_ids\n\t\t\tif ( '' != $query_args['group_ids'] ) {\n\t\t\t\t$query_args['post_ids'] = learndash_get_groups_courses_ids( $current_user_id, $query_args['group_ids'] );\n\t\t\t}\n\t\t} else {\n\t\t\t// If the user if not a group leader and not admin then abort until we have added support for those roles.\n\t\t\t//return $activity_results;\n\t\t\tif ( empty( $query_args['user_ids'] ) ) {\n\t\t\t\t$query_args['user_ids'] = array( get_current_user_id() );\n\t\t\t}\n\n\t\t\tif ( empty( $query_args['post_ids'] ) ) {\n\t\t\t\t$query_args['post_ids'] = learndash_user_get_enrolled_courses( get_current_user_id() );\n\t\t\t\tif ( empty( $query_args['post_ids'] ) ) {\n\t\t\t\t\treturn $activity_results;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// We need a timestamp (long int) for the query. Most likely there will be a date string passed to up.\n\t$time_items = array( 'time_start', 'time_end' );\n\tforeach ( $time_items as $time_item ) {\n\t\tif ( ! empty( $query_args[ $time_item ] ) ) {\n\t\t\tif ( ! is_string( $query_args[ $time_item ] ) ) {\n\t\t\t\t$time_yymmdd = date( 'Y-m-d H:i:s', $query_args[ $time_item ] );\n\t\t\t} else {\n\t\t\t\t$time_yymmdd = date( 'Y-m-d H:i:s', strtotime( $query_args[ $time_item ] ) );\n\t\t\t}\n\n\t\t\tif ( true != $query_args[ $time_item . '_is_gmt' ] ) {\n\t\t\t\t$time_yymmdd = get_gmt_from_date( $time_yymmdd );\n\t\t\t}\n\n\t\t\t$time_yymmdd = strtotime( $time_yymmdd );\n\n\t\t\tif ( $time_yymmdd ) {\n\t\t\t\t$query_args[ $time_item . '_gmt_timestamp' ] = $time_yymmdd;\n\n\t\t\t}\n\t\t}\n\t}\n\n\t// Check that the start and end dates are not backwards.\n\tif ( ( isset( $query_args['time_start_gmt_timestamp'] ) ) && ( ! empty( $query_args['time_start_gmt_timestamp'] ) )\n\t&& ( isset( $query_args['time_end_gmt_timestamp'] ) ) && ( ! empty( $query_args['time_end_gmt_timestamp'] ) ) ) {\n\t\tif ( $query_args['time_start_gmt_timestamp'] > $query_args['time_end_gmt_timestamp'] ) {\n\t\t\t$time_save = $query_args['time_start_gmt_timestamp'];\n\t\t\t$query_args['time_start_gmt_timestamp'] = $query_args['time_end_gmt_timestamp'];\n\t\t\t$query_args['time_end_gmt_timestamp'] = $time_save;\n\t\t}\n\t}\n\n\tif ( ( true != $query_args['suppress_filters_all'] ) && ( true != $query_args['suppress_filters_query_args'] ) ) {\n\n\t\t/**\n\t\t * Filters query arguments for getting user activity.\n\t\t *\n\t\t * @param array $query_args An array query arguments for getting user activity.\n\t\t */\n\t\t$query_args = apply_filters( 'learndash_get_activity_query_args', $query_args );\n\t}\n\n\t//error_log('FINAL: query_args<pre>'. print_r($query_args, true) .'</pre>');\n\t//return;\n\n\t$sql_str_fields = '\n\tusers.ID as user_id,\n\tusers.display_name as user_display_name,\n\tusers.user_email as user_email,\n\tposts.ID as post_id,\n\tposts.post_title post_title,\n\tposts.post_type as post_type,\n\tld_user_activity.activity_id as activity_id,\n\tld_user_activity.course_id as activity_course_id,\n\tld_user_activity.activity_type as activity_type,\n\tld_user_activity.activity_started as activity_started,\n\tld_user_activity.activity_completed as activity_completed,\n\tld_user_activity.activity_updated as activity_updated,\n\tld_user_activity.activity_status as activity_status';\n\n\t$sql_str_tables = ' FROM ' . $wpdb->users . ' as users ';\n\n\t// Some funky logic on the activity status. If the 'activity_status' is empty of the activity has NULL means we are looking for the\n\t// 'NOT_STARTED'. In order to find users that have not started courses we need to do the INNER JOIN on the wp_posts table. This\n\t// means for every combination of users AND posts (courses) we will fill out row. This can be expensive when you have thousands\n\t// of users and courses.\n\tif ( ( empty( $query_args['activity_status'] ) ) || ( true === $ACTIVITY_STATUS_HAS_NULL )\n\t&& ( ( ! empty( $query_args['post_ids'] ) ) || ( ! empty( $query_args['user_ids'] ) ) ) ) {\n\n\t\t$sql_str_joins = ' INNER JOIN ' . $wpdb->posts . ' as posts ';\n\t\t$sql_str_joins .= ' LEFT JOIN ' . LDLMS_DB::get_table_name( 'user_activity' ) . ' as ld_user_activity ON users.ID=ld_user_activity.user_id AND posts.ID=ld_user_activity.post_id ';\n\n\t\tif ( ! empty( $query_args['activity_types'] ) ) {\n\t\t\t$sql_str_joins .= ' AND (ld_user_activity.activity_type IS NULL OR ld_user_activity.activity_type IN (' . \"'\" . implode( \"','\", $query_args['activity_types'] ) . \"'\" . ') )';\n\t\t}\n\t} else {\n\t\t$sql_str_joins = ' LEFT JOIN ' . LDLMS_DB::get_table_name( 'user_activity' ) . ' as ld_user_activity ON users.ID=ld_user_activity.user_id ';\n\t\t$sql_str_joins .= ' LEFT JOIN ' . $wpdb->posts . ' as posts ON posts.ID=ld_user_activity.post_id ';\n\t}\n\n\t$sql_str_where = ' WHERE 1=1 ';\n\n\tif ( ! empty( $query_args['user_ids'] ) ) {\n\t\t$sql_str_where .= ' AND users.ID ' . $query_args['user_ids_action'] . ' (' . implode( ',', $query_args['user_ids'] ) . ') ';\n\t}\n\n\tif ( ! empty( $query_args['post_ids'] ) ) {\n\t\t$sql_str_where .= ' AND posts.ID ' . $query_args['post_ids_action'] . ' (' . implode( ',', $query_args['post_ids'] ) . ') ';\n\t}\n\n\t//$sql_str_where .= \" AND posts.post_status='publish' \";\n\tif ( ! empty( $query_args['post_status'] ) ) {\n\t\t$sql_str_where .= ' AND posts.post_status IN (' . \"'\" . implode( \"','\", $query_args['post_status'] ) . \"'\" . ') ';\n\t}\n\n\tif ( ! empty( $query_args['post_types'] ) ) {\n\t\t$sql_str_where .= ' AND posts.post_type IN (' . \"'\" . implode( \"','\", $query_args['post_types'] ) . \"'\" . ') ';\n\t}\n\n\tif ( true !== $ACTIVITY_STATUS_HAS_NULL ) {\n\n\t\tif ( ! empty( $query_args['activity_types'] ) ) {\n\t\t\t$sql_str_where .= ' AND ld_user_activity.activity_type IN (' . \"'\" . implode( \"','\", $query_args['activity_types'] ) . \"'\" . ') ';\n\t\t}\n\n\t\tif ( ! empty( $query_args['activity_status'] ) ) {\n\t\t\t$sql_str_where .= ' AND ld_user_activity.activity_status IN (' . implode( ',', $query_args['activity_status'] ) . ') ';\n\t\t}\n\t} else {\n\n\t\tif ( ! empty( $query_args['activity_status'] ) ) {\n\t\t\t$sql_str_where .= ' AND (ld_user_activity.activity_status IS NULL OR ld_user_activity.activity_status IN (' . \"'\" . implode( \"','\", $query_args['activity_status'] ) . \"'\" . ') ) ';\n\t\t} else {\n\t\t\t$sql_str_where .= ' AND ( ld_user_activity.activity_status IS NULL OR ld_user_activity.activity_started = 0 ) ';\n\t\t}\n\t}\n\n\tif ( ! empty( $query_args['course_ids'] ) ) {\n\t\t$sql_str_where .= ' AND ld_user_activity.course_id ' . $query_args['course_ids_action'] . ' (' . implode( ',', $query_args['course_ids'] ) . ') ';\n\t}\n\n\tif ( ( isset( $query_args['time_start_gmt_timestamp'] ) ) && ( ! empty( $query_args['time_start_gmt_timestamp'] ) ) ) {\n\t\tif ( true === $ACTIVITY_STATUS_HAS_NULL ) {\n\t\t\t$sql_str_where .= ' AND (ld_user_activity.activity_started >= ' . $query_args['time_start_gmt_timestamp'] . ' OR ld_user_activity.activity_completed >= ' . $query_args['time_start_gmt_timestamp'] . ' OR ld_user_activity.activity_updated >= ' . $query_args['time_start_gmt_timestamp'] . ') ';\n\t\t} elseif ( ( false !== array_search( '1', $query_args['activity_status'] ) ) || ( false !== array_search( '0', $query_args['activity_status'] ) ) ) {\n\t\t\t$sql_str_where .= ' AND (ld_user_activity.activity_completed >= ' . $query_args['time_start_gmt_timestamp'] . ') ';\n\t\t}\n\t}\n\tif ( ( isset( $query_args['time_end_gmt_timestamp'] ) ) && ( ! empty( $query_args['time_end_gmt_timestamp'] ) ) ) {\n\t\tif ( true === $ACTIVITY_STATUS_HAS_NULL ) {\n\t\t\t$sql_str_where .= ' AND (ld_user_activity.activity_started <= ' . $query_args['time_end_gmt_timestamp'] . ' OR ld_user_activity.activity_completed <= ' . $query_args['time_end_gmt_timestamp'] . ' OR ld_user_activity.activity_updated <= ' . $query_args['time_end_gmt_timestamp'] . ') ';\n\t\t} elseif ( ( false !== array_search( '1', $query_args['activity_status'] ) ) || ( false !== array_search( '0', $query_args['activity_status'] ) ) ) {\n\t\t\t$sql_str_where .= ' AND (ld_user_activity.activity_completed <= ' . $query_args['time_end_gmt_timestamp'] . ') ';\n\t\t}\n\t}\n\n\tif ( ! empty( $query_args['s'] ) ) {\n\t\tif ( 'post_title' == $query_args['s_context'] ) {\n\t\t\t$sql_str_where .= \" AND posts.post_title LIKE '\" . $query_args['s'] . \"' \";\n\t\t} elseif ( 'display_name' == $query_args['s_context'] ) {\n\t\t\t$sql_str_where .= \" AND users.display_name LIKE '\" . $query_args['s'] . \"' \";\n\t\t} else {\n\t\t\t$sql_str_where .= \" AND (posts.post_title LIKE '\" . $query_args['s'] . \"' OR users.display_name LIKE '\" . $query_args['s'] . \"') \";\n\t\t}\n\t}\n\n\tif ( ! empty( $query_args['orderby_order'] ) ) {\n\t\t$sql_str_order = ' ORDER BY ' . $query_args['orderby_order'] . ' ';\n\t} else {\n\t\t$sql_str_order = '';\n\t}\n\n\tif ( ! empty( $query_args['per_page'] ) ) {\n\t\tif ( empty( $query_args['paged'] ) ) {\n\t\t\t$query_args['paged'] = 1;\n\t\t}\n\t\t$sql_str_limit = ' LIMIT ' . $query_args['per_page'] . ' OFFSET ' . ( abs( intval( $query_args['paged'] ) ) - 1 ) * $query_args['per_page'];\n\t} else {\n\t\t$sql_str_limit = '';\n\t}\n\n\tif ( ( true != $query_args['suppress_filters_all'] ) && ( true != $query_args['suppress_filters_query_str'] ) ) {\n\n\t\t/**\n\t\t * Filters user activity query fields.\n\t\t *\n\t\t * @param string $sql_query_fields User activity query fields with valid sql syntax.\n\t\t * @param array $query_args An array of user query arguments.\n\t\t */\n\t\t$sql_str_fields = apply_filters( 'learndash_user_activity_query_fields', $sql_str_fields, $query_args );\n\n\t\t/**\n\t\t * Filters tables and joins to be used for user activity query. The `from` part of the query with valid SQL syntax.\n\t\t *\n\t\t * @param string $sql_query_from The `from` part of the SQL query with valid SQL syntax.\n\t\t * @param array $query_args An array of user query arguments.\n\t\t */\n\t\t$sql_str_tables = apply_filters( 'learndash_user_activity_query_tables', $sql_str_tables, $query_args );\n\n\t\t/**\n\t\t * Filters the joins for the user activity query.\n\t\t *\n\t\t * @param string $sql_query_where The `where` part of the SQL query with valid SQL syntax.\n\t\t * @param array $query_args An array of user query arguments.\n\t\t */\n\t\t$sql_str_joins = apply_filters( 'learndash_user_activity_query_joins', $sql_str_joins, $query_args );\n\n\t\t/**\n\t\t * Filters the where condition of the user activity query.\n\t\t *\n\t\t * @param string $sql_query_where The `where` part of the SQL query with valid SQL syntax.\n\t\t * @param array $query_args An array of user query arguments.\n\t\t */\n\t\t$sql_str_where = apply_filters( 'learndash_user_activity_query_where', $sql_str_where, $query_args );\n\n\t\t/**\n\t\t * Filters the order by part of the user activity query.\n\t\t *\n\t\t * @param string $sql_query_where The `ORDER BY` part of the SQL query with valid SQL syntax.\n\t\t * @param array $query_args An array of user query arguments.\n\t\t */\n\t\t$sql_str_order = apply_filters( 'learndash_user_activity_query_order', $sql_str_order, $query_args );\n\n\t\t/**\n\t\t * Filters the limit part of the user activity query.\n\t\t *\n\t\t * @param string $sql_query_where The `limit` part of the SQL query with valid SQL syntax.\n\t\t * @param array $query_args An array of user query arguments.\n\t\t */\n\t\t$sql_str_limit = apply_filters( 'learndash_user_activity_query_limit', $sql_str_limit, $query_args );\n\t}\n\n\t$sql_str = 'SELECT ' . $sql_str_fields . $sql_str_tables . $sql_str_joins . $sql_str_where . $sql_str_order . $sql_str_limit;\n\t//error_log('sql_str['. $sql_str .']');\n\n\tif ( true != $query_args['suppress_filters_query_str'] ) {\n\t\t/**\n\t\t * Filters the user activity SQL query string.\n\t\t *\n\t\t * @param string $sql_str User activity SQL query string.\n\t\t * @param array $query_args An array of user query arguments.\n\t\t */\n\t\t$sql_str = apply_filters( 'learndash_user_activity_query_str', $sql_str, $query_args );\n\t}\n\n\t$activity_results['query_str'] = $sql_str;\n\t$activity_results['query_args'] = $query_args;\n\t$activity_results['results'] = array();\n\t$activity_results['pager'] = array();\n\t$activity_results['pager']['total_items'] = 0;\n\t$activity_results['pager']['per_page'] = intval( $query_args['per_page'] );\n\t$activity_results['pager']['total_pages'] = 0;\n\n\tif ( ( ! empty( $sql_str ) ) && ( 1 != $query_args['dry_run'] ) ) {\n\t\t$activity_query_results = $wpdb->get_results( $sql_str );\n\t\t//error_log('activity_query_results<pre>'. print_r($activity_query_results, true) .'</pre>');\n\n\t\tif ( ( ! is_wp_error( $activity_query_results ) ) && ( count( $activity_query_results ) ) ) {\n\t\t\t$activity_results['results'] = $activity_query_results;\n\n\t\t\t// Need to convert the item date. Actually add a new property which is the formatted date.\n\t\t\tforeach ( $activity_results['results'] as &$result_item ) {\n\t\t\t\t// There are three date fields we need format.\n\t\t\t\t// 1. activity_started\n\t\t\t\tif ( ( property_exists( $result_item, 'activity_started' ) ) && ( ! empty( $result_item->activity_started ) ) ) {\n\t\t\t\t\t$result_item->activity_started_formatted = get_date_from_gmt( date( 'Y-m-d H:i:s', $result_item->activity_started ), $query_args['date_format'] );\n\t\t\t\t}\n\n\t\t\t\t// 2. activity_completed\n\t\t\t\tif ( ( property_exists( $result_item, 'activity_completed' ) ) && ( ! empty( $result_item->activity_completed ) ) ) {\n\t\t\t\t\t$result_item->activity_completed_formatted = get_date_from_gmt( date( 'Y-m-d H:i:s', $result_item->activity_completed ), $query_args['date_format'] );\n\t\t\t\t}\n\n\t\t\t\t// 3. activity_completed\n\t\t\t\tif ( ( property_exists( $result_item, 'activity_updated' ) ) && ( ! empty( $result_item->activity_updated ) ) ) {\n\t\t\t\t\t$result_item->activity_updated_formatted = get_date_from_gmt( date( 'Y-m-d H:i:s', $result_item->activity_updated ), $query_args['date_format'] );\n\t\t\t\t}\n\n\t\t\t\tif ( true == $query_args['include_meta'] ) {\n\t\t\t\t\t$result_item->activity_meta = learndash_get_activity_meta_fields( $result_item->activity_id, $query_args['meta_fields'] );\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$activity_results['results_error'] = $activity_query_results;\n\t\t}\n\t}\n\n\tif ( ( 1 != $query_args['dry_run'] ) && ( isset( $activity_results['results'] ) ) && ( ! empty( $activity_results['results'] ) ) && ( ! empty( $query_args['per_page'] ) ) ) {\n\t\t$query_str_count = 'SELECT SQL_CALC_FOUND_ROWS count(*) as count ' . $sql_str_tables . $sql_str_joins . ' ' . $sql_str_where;\n\t\t//error_log('query_str_count['. $query_str_count .']');\n\n\t\t$activity_query_count = $wpdb->get_row( $query_str_count );\n\t\t//error_log('activity_query_count<pre>'. print_r($activity_query_count, true) .'</pre>');\n\t\tif ( ( ! is_wp_error( $activity_query_count ) ) && ( property_exists( $activity_query_count, 'count' ) ) ) {\n\n\t\t\t$activity_results['pager'] = array();\n\t\t\t$activity_results['pager']['total_items'] = absint( $activity_query_count->count );\n\t\t\t$activity_results['pager']['per_page'] = absint( $query_args['per_page'] );\n\t\t\tif ( $activity_results['pager']['total_items'] > 0 ) {\n\t\t\t\t$activity_results['pager']['total_pages'] = ceil( intval( $activity_results['pager']['total_items'] ) / intval( $activity_results['pager']['per_page'] ) );\n\t\t\t\t$activity_results['pager']['total_pages'] = absint( $activity_results['pager']['total_pages'] );\n\t\t\t} else {\n\t\t\t\t$activity_results['pager']['total_pages'] = 0;\n\t\t\t}\n\t\t} else {\n\t\t\t$activity_results['pager_error'] = $activity_query_count;\n\t\t}\n\t}\n\n\treturn $activity_results;\n}", "title": "" }, { "docid": "9100525bf392815658972d4e58ac692b", "score": "0.46939096", "text": "public static function recommendedNeedsAnyTime($cid, $limit=NULL) {\n $interestsSQL = NULL;\n $interests = array();\n\n// * filter Orgs by Interests/Impacts\n $schemaInterests = CRM_ComposeQL_APIUtil::getCustomFieldSchema('volunteer_information', 'Interests');\n\n $interests = civicrm_api3('Contact', 'getValue', array(\n 'return' => 'custom_'.$schemaInterests['id'],\n 'contact_id' => $cid,\n ));\n\n $interestsSQL = self::getProjectsByImpactAreaSQL($interests);\n\n $needSQL['SELECTS'] = array_merge_recursive(\n array('civicrm_volunteer_need' => array(\n 'start_time', 'end_time', 'duration', 'id'\n )),\n array('civicrm_volunteer_project' => array(\n 'title', 'id as `project_id`', 'description'\n )),\n array('orgs' => array(\n 'id as `beneficiary_id`', '`display_name` as `beneficiary`'\n ))\n );\n\n $needSQL['JOINS'] = array_merge(\n $interestsSQL['JOINS'],\n array(array(\n 'join' => 'INNER JOIN',\n 'right' => 'civicrm_volunteer_project',\n 'on' => '`civicrm_volunteer_project`.`id` = `civicrm_volunteer_project_contact`.`project_id`'\n )),\n array(array(\n 'join' => 'INNER JOIN',\n 'right' => 'civicrm_volunteer_need',\n 'on' => 'civicrm_volunteer_need.project_id = civicrm_volunteer_project.id',\n ))\n );\n\n if (!isset($interestsSQL['WHERES'])) {\n $interestsSQL['WHERES'] = array();\n }\n\n $needSQL['WHERES'] = $interestsSQL['WHERES'];\n\n $needSQL['WHERES'][] = 'civicrm_volunteer_project.is_active = 1';\n\n $needSQL['WHERES'] = CRM_ComposeQL_SQLUtil::composeWhereClauses($needSQL['WHERES'], CRM_VolMatch_Util::whereNeedIsNotPast(), 'AND');\n\n // Definitive filter for \"AnyTime\"; above is essentially boilerplate.\n $needSQL['WHERES'][] = CRM_VolMatch_Util::whereNeedIsNotSetShift();\n\n\n $needSQL['ORDER_BYS'] = array('civicrm_volunteer_need.last_updated DESC');\n\n if (isset($limit)) {\n $needSQL['APPEND'] = \"LIMIT $limit\";\n }\n\n return CRM_ComposeQL_DAO::fetchSelectQuery($needSQL);\n }", "title": "" }, { "docid": "32ece975658eee0d311e6029bcc92055", "score": "0.4685376", "text": "function getPendingRequestCount($user_id) {\n\t\t$id = $this->findByMy_id($user_id);\n\t\treturn ($id ['MyFriends'] ['pending_request_count']);\n\t}", "title": "" }, { "docid": "d3177cf4c324ef93602135ad8e098850", "score": "0.4681778", "text": "public function getRequestsPendingCountAttribute()\n {\n return MediaRecord::where('source', 'megamaid')\n ->where('requested_by', $this->id)\n ->whereNull('approved_by')\n ->count();\n }", "title": "" }, { "docid": "6da85d5e44c06834818f65d47d5f4351", "score": "0.4681492", "text": "function get_user_count_data()\n{\n\tglobal $db, $config, $user;\n\t//get active users\n\t$cutoff_days = 30;\n\t$timezone = get_timezone_offset('timezone', $config['board_timezone'], $user->data['user_timezone']);\n\t$dst = get_timezone_offset('dst', $config['board_dst'], $user->data['user_dst']);\n\t$current_time = (time() + ($timezone * 3600) + ($dst * 3600)); \n\t$cutoff_time = $current_time - ($cutoff_days * 86400);\n\t$sql = 'SELECT COUNT(user_id) as user_count\n\t\t\t\tFROM ' . USERS_TABLE . '\n\t\t\t\tWHERE user_lastvisit > ' . $cutoff_time . '\n\t\t\t\t\tAND user_type IN ( ' . USER_NORMAL . ', ' . USER_FOUNDER . ' )';\n\t$result = $db->sql_query($sql);\n\t$active_user_count = (int) $db->sql_fetchfield('user_count');\n\t$db->sql_freeresult($result);\n\t\n\t//get bots count\n\t$sql = 'SELECT COUNT(bot_id) as bot_count\n\t\t\t\tFROM ' . BOTS_TABLE;\n\t$result = $db->sql_query($sql);\n\t$bot_count = (int) $db->sql_fetchfield('bot_count');\n\t$db->sql_freeresult($result);\n\t\n\t//get visited bot count\n\t$sql = 'SELECT COUNT(bot_id) as bot_count\n\t\t\t\tFROM ' . BOTS_TABLE . ' b INNER JOIN ' . USERS_TABLE . ' u ON b.user_id = u.user_id \n\t\t\t\tWHERE u.user_lastvisit > 0';\n\t$result = $db->sql_query($sql);\n\t$visited_bot_count = (int) $db->sql_fetchfield('bot_count');\n\t$db->sql_freeresult($result);\n\t\n\t$return_ary = array(\n\t\t'active'\t\t\t\t=> $active_user_count,\n\t\t'inactive' \t\t\t=> $config['num_users'] - $active_user_count,\n\t\t'registered_bots'\t=> $bot_count,\n\t\t'visited_bots'\t\t=> $visited_bot_count,\n\t);\n\treturn $return_ary;\n}", "title": "" }, { "docid": "605639be1b1967212ebfe9585aa883be", "score": "0.46795568", "text": "public static function getOnlineUsersCount()\n {\n self::cleanup();\n return count(Cache::fetch(self::PREFIX.'users'));\n }", "title": "" }, { "docid": "a2a6a30b0c17f678fc140a3c5817a114", "score": "0.4678796", "text": "function ctm_get_view_counts() {\n global $post;\n\n $current_views = get_post_meta( $post->ID, \"ctm_views\", true );\n if(!isset($current_views) OR empty($current_views) OR !is_numeric($current_views)) {\n $current_views = 0;\n }\n\n return $current_views;\n}", "title": "" }, { "docid": "18c49f8f48a1b0f4326254bb3125a554", "score": "0.4676904", "text": "function countTotalFriendRequest($user_id){\n $this->load->model('friend_request','friend_requestModel');\n $options = array('userid_requested'=>$user_id);\n $getRequest = $this->friend_requestModel->getFriendRelationships($options);\n $total_friend;\n \n if (is_bool($getRequest)) {\n $total_friend = 0;\n } else {\n $total_friend = count($getRequest);\n }\n \n return $total_friend;\n }", "title": "" }, { "docid": "a0f79f5bf816a6a34b5fdb6b99481370", "score": "0.46748215", "text": "function yz_get_who_liked_activities( $activity_id ) {\n\n\t$users = get_transient( 'yz_get_who_liked_activities_' . $activity_id );\n\n\tif ( false === $users ) :\n\n\tglobal $wpdb;\n\n\t// Prepare Sql\n\t$sql = $wpdb->prepare( \"SELECT user_id FROM \" . $wpdb->base_prefix . \"usermeta WHERE meta_key = 'bp_favorite_activities' AND meta_value LIKE %s\", '%' . $activity_id . '%' );\n\n\t// Get Result\n\t$result = $wpdb->get_results( $sql , ARRAY_A );\n\n\t// Get List of user id's & Remove Duplicated Users.\n\t$users = array_unique( wp_list_pluck( $result, 'user_id' ) );\n\n\t// Hide Deleted Users.\n\t// foreach ( $users as $key => $user_id ) {\n // if ( ! yz_is_user_exist( $user_id ) ) {\n // unset( $users[ $key ] );\n // }\n\t// }\n\n set_transient( 'yz_get_who_liked_activities_' . $activity_id, $users, 12 * HOUR_IN_SECONDS );\n\n\tendif;\n\n\treturn $users;\n}", "title": "" }, { "docid": "4078de05a09d89e2eb790e26b76b0e9b", "score": "0.46746263", "text": "public static function custom_counter_approved($user_id);", "title": "" }, { "docid": "eff96db04887a2057f71303ff9aeb3b2", "score": "0.4665238", "text": "public function getRatingCountAttribute() {\n $ratings = Rating::wherePlayerId($this->id)->count();\n // since we require all five skills to be rated on in one sitting\n // divide total database rating entries by 5\n return ($ratings / 5);\n }", "title": "" }, { "docid": "efbcf0ef39907cd30d55286f1666401f", "score": "0.4664793", "text": "function awepop_get_view_count() {\n global $post;\n $current_views = get_post_meta($post->ID, \"awepop_views\", true);\n if(!isset($current_views) \n OR empty($current_views) \n OR !is_numeric($current_views) ) {\n $current_views = 0;\n }\n return $current_views;\n }", "title": "" }, { "docid": "4fd765ca99a85fc1234873af64f1bd2b", "score": "0.46639183", "text": "public function getNotApplicableCount()\n {\n if (array_key_exists(\"notApplicableCount\", $this->_propDict)) {\n return $this->_propDict[\"notApplicableCount\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "6fc32284e3e160be250859615409eb9c", "score": "0.4660961", "text": "public function getEvaluatedItemCount()\n {\n return $this->evaluated_item_count;\n }", "title": "" }, { "docid": "97280d66afc57a7779315936fd922df0", "score": "0.4658248", "text": "public function index()\n {\n return auth()->user()->society()->get()->count();\n }", "title": "" }, { "docid": "8cf11da81a345b510b59abf90c891f0f", "score": "0.46534306", "text": "function getRecommendations() {\n\t\tif(!$this->_recommendations) {\n\t\t\t$this->_recommendations = tx_wecassessment_recommendation_question::findAllInQuestion($this->getPID(), $this->getUID());\n\t\t}\n\t\treturn $this->_recommendations;\n\t\t\n\t}", "title": "" }, { "docid": "13dcdbe2814f1ca9898c9e9cbab285fb", "score": "0.46524242", "text": "function learndash_get_essays_pending_count( $query_args = array(), $return_field = 'found_posts' ) {\n\t$return = 0;\n\n\t$default_args = array(\n\t\t'post_type' => 'sfwd-essays',\n\t\t'post_status' => 'not_graded',\n\t\t'fields' => 'ids',\n\t);\n\n\t// added logic for non-admin user like group leaders who will only see a sub-set of assignments\n\t$user_id = get_current_user_id();\n\tif ( learndash_is_group_leader_user( $user_id ) ) {\n\t\t$group_ids = learndash_get_administrators_group_ids( $user_id );\n\t\t$user_ids = array();\n\t\t$course_ids = array();\n\n\t\tif ( ! empty( $group_ids ) && is_array( $group_ids ) ) {\n\t\t\tforeach ( $group_ids as $group_id ) {\n\t\t\t\t$group_users = learndash_get_groups_user_ids( $group_id );\n\n\t\t\t\tif ( ! empty( $group_users ) && is_array( $group_users ) ) {\n\t\t\t\t\tforeach ( $group_users as $group_user_id ) {\n\t\t\t\t\t\t$user_ids[ $group_user_id ] = $group_user_id;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$group_course_ids = learndash_group_enrolled_courses( $group_id );\n\t\t\t\tif ( ( ! empty( $group_course_ids ) ) && ( is_array( $group_course_ids ) ) ) {\n\t\t\t\t\t$course_ids = array_merge( $course_ids, $group_course_ids );\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\treturn $return;\n\t\t}\n\n\t\tif ( ! empty( $course_ids ) && count( $course_ids ) ) {\n\t\t\t$default_args['meta_query'][] = array(\n\t\t\t\t'key' => 'course_id',\n\t\t\t\t'value' => $course_ids,\n\t\t\t\t'compare' => 'IN',\n\t\t\t);\n\t\t} else {\n\t\t\treturn $return;\n\t\t}\n\n\t\tif ( ! empty( $user_ids ) && count( $user_ids ) ) {\n\t\t\t$default_args['author__in'] = $user_ids;\n\t\t} else {\n\t\t\treturn $return;\n\t\t}\n\t}\n\n\t$query_args = wp_parse_args( $query_args, $default_args );\n\t/**\n\t * Filters pending essays count query arguments.\n\t *\n\t * @param array $query_args An array of pending essays count query arguments.\n\t */\n\t$query_args = apply_filters( 'learndash_get_essays_pending_count_query_args', $query_args );\n\n\tif ( 'found_posts' == $return_field ) {\n\t\t$query_args['posts_per_page'] = 1;\n\t\t$query_args['paged'] = 1;\n\t}\n\n\tif ( ( is_array( $query_args ) ) && ( ! empty( $query_args ) ) ) {\n\t\t$query = new WP_Query( $query_args );\n\n\t\tif ( ( ! empty( $return_field ) ) && ( property_exists( $query, $return_field ) ) ) {\n\t\t\t$return = $query->$return_field;\n\t\t} else {\n\t\t\t$return = $query;\n\t\t}\n\t}\n\n\treturn $return;\n}", "title": "" }, { "docid": "c632fe3bd6d1eb91f67d1168f61c776c", "score": "0.4651326", "text": "function getUserEditCountSince( $time = null, User $user = null ) {\n\tglobal $wgUser;\n\t\n\t// Fallback on current user\n\tif ( is_null( $user ) ) {\n\t\t$user = $wgUser;\n\t}\n\t// Round time down to a whole day\n\t$time = gmdate( 'Y-m-d', wfTimestamp( TS_UNIX, $time ) );\n\t// Query the user contribs table\n\t$dbr = wfGetDB( DB_SLAVE );\n\t$edits = $dbr->selectField(\n\t\t'user_daily_contribs',\n\t\t'SUM(contribs)',\n\t\tarray( 'user_id' => $user->getId(), 'day >= ' . $dbr->addQuotes( $time ) ),\n\t\t__METHOD__\n\t);\n\t// Return edit count as an integer\n\treturn is_null( $edits ) ? 0 : (integer) $edits;\n}", "title": "" }, { "docid": "02651c9f8045e7e7868769abcedc9014", "score": "0.46502113", "text": "public function getUserSkillRecommendation(){\n \tif (@$this->userInfo['users']['id']) {\n\t\t\t\n\t\t\t$uid = @$this->userInfo['users']['id'];\n\t\t\tif (!empty($uid)) {\n\t\t\t\t$recommend_Users_for_skill = ClassRegistry::init('skill_recommendations')->find('all',array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'fields'=>array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'DISTINCT skill_recommendations.recommends'),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'limit'=>2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'order'=>'skill_recommendations.id DESC',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'conditions'=>array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'skill_recommendations.user_id='.$uid.'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAND skill_recommendations.recommendation=1'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)));\n\t\n\t\t\t\tforeach ($recommend_Users_for_skill as $skill_users_record) {\n\t\t\t\t\t$recommends_Resultant_Array[] .=$skill_users_record['skill_recommendations']['recommends'];\n\t\t\t\t}\n\t\t\t\tif ($recommends_Resultant_Array) {\n\t\t\t\t\tif (sizeof($recommends_Resultant_Array)>1) {\n\t\t\t\t\t\t$recommends_Resultant_Array = @implode(',',$recommends_Resultant_Array);\n\t\t\t\t\t\tif ($recommends_Resultant_Array) {\n\t\t \t\t\t\t$skills_Recommended_for_User = ClassRegistry::init('skill_recommendations')->find('all',array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'fields' =>array('users_profiles.photo, \t\t\t\t\t\t\t\t\t\t\t\t users_profiles.firstname,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t users_profiles.lastname,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t skills.title, skill_recommendations.skill_id,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t skill_recommendations.recommendation, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t skill_recommendations.start_date'),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'limit'=>2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'order'=>'skill_recommendations.id DESC',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'joins' => array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t array('alias' => 'skills',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'table' => 'skills',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'foreignKey' => false,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'skill_recommendations.skill_id = skills.id')),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tarray('alias' => 'users_profiles',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t 'table' => 'users_profiles',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t 'foreignKey' => false,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t 'conditions' => array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'skill_recommendations.recommends = users_profiles.user_id'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t))),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'conditions'=>array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tarray('skill_recommendations.recommends IN ('.$recommends_Resultant_Array.')'),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'skill_recommendations.recommendation'=>1\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t )));\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$skills_Recommended_for_User = ClassRegistry::init('skill_recommendations')->find('all', array('fields' =>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t array('users_profiles.photo,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t users_profiles.firstname, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t users_profiles.lastname, skills.title, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t skill_recommendations.skill_id, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t skill_recommendations.recommendation, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t skill_recommendations.start_date' ),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'limit'=>2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'order'=>'skill_recommendations.id DESC',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'joins' => array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t array('alias' => 'skills',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'table' => 'skills',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'foreignKey' => false,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'skill_recommendations.skill_id = skills.id')),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t array('alias' => 'users_profiles',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'table' => 'users_profiles',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'foreignKey' => false,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'conditions' => array( \t \n 'skill_recommendations.recommends = users_profiles.user_id'))),\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t'conditions'=>array('skill_recommendations.recommends='.$recommends_Resultant_Array[0].' AND skill_recommendations.recommendation=1')));\t\n\t\t \t\t}\n\t\t\t}\n\t\t}\n\t }\n\treturn $skills_Recommended_for_User;\n\t}", "title": "" }, { "docid": "82f1afcf690f1adf1e0b0cecdd4e6c7a", "score": "0.46498638", "text": "public function quotaUsed(): int\n {\n return $this->user['quotaUsed'];\n }", "title": "" } ]
627c1ea6989e0986f8815fdf900c162e
Create a new controller instance.
[ { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.0", "text": "public function __construct() {}", "title": "" } ]
[ { "docid": "26ca23b2c3811d413b2e5a477242706d", "score": "0.8069965", "text": "protected function createController()\n {\n assert(is_string($this->controller));\n\n $class = new $this->controller();\n $class->initController($this->request, $this->response, Services::logger());\n\n $this->benchmark->stop('controller_constructor');\n\n return $class;\n }", "title": "" }, { "docid": "f3456b11c32c00cafbcba1d606b54fc3", "score": "0.799257", "text": "public function createController(){\n\t\t$this->controller = new CunddController('initOnly');\n\t}", "title": "" }, { "docid": "8fc472ca59d683f1b71ce35c8d9cd840", "score": "0.7919783", "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('make:controller', [\n 'name' => \"{$controller}Controller\",\n '--model' => $this->option('resource') ? $modelName : null,\n ]);\n }", "title": "" }, { "docid": "1fea9aa325bd73c9b8d0ae44def0c054", "score": "0.78441036", "text": "protected function createController()\n {\n $modelName = $this->getModelName($this->argument('name'));\n\n $controller = Str::studly($modelName);\n\n $modelName = $this->qualifyClass($this->getNameInput());\n\n $this->call('make:controller', [\n 'name' => \"{$controller}Controller\",\n '--model' => $this->option('resource') ? $modelName : null,\n '--parent' => $this->option('parent'),\n ]);\n }", "title": "" }, { "docid": "f9ed9b8407cc6713c0ba24ed5f0e1f93", "score": "0.7751161", "text": "private function createController()\n {\n try {\n return $this->call('make:module-controller', [\n 'module' => $this->moduleName,\n 'controller' => \"{$this->resourceName}Controller\",\n ]);\n } catch (\\Exception $e) {\n $this->error($e->getMessage());\n }\n }", "title": "" }, { "docid": "ff2ebd7afade78e70a822bb20320b126", "score": "0.7746942", "text": "protected function createController()\n {\n $controller = studly_case(class_basename($this->argument('name')));\n\n $modelName = $this->qualifyClass($this->getNameInput());\n\n $this->call('package:controller', [\n 'name' => \"{$controller}Controller\",\n '--model' => $this->option('resource') ? $modelName : null,\n '--namespace' => $this->getNamespaceInput(),\n '--dir' => $this->getDirInput(),\n ]);\n }", "title": "" }, { "docid": "ccded23d3e59ec9291d39f2302ddea20", "score": "0.7727235", "text": "protected function createController(): void\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n\n $modelName = $this->qualifyClass($this->getNameInput());\n\n $moduleName = $this->getModuleInput();\n\n $this->call('module:make-controller', array_filter([\n 'module' => $moduleName,\n 'name' => \"{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n '--api' => $this->option('api'),\n '--requests' => $this->option('requests') || $this->option('all'),\n ]));\n }", "title": "" }, { "docid": "104e802fcd8d8f7c4379ecd921c46f0b", "score": "0.7698826", "text": "public function CreateController()\n\t\t{\n\t\t\t\tif( Autoload::Controller($this->controller) )\n\t\t\t\t{\n\t\t\t\t\t\t$controller = ucwords($this->controller.'_Controller');\n\n\t\t\t\t\t\tif( method_exists($controller, 'action_'.$this->action) )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$action = 'action_'.$this->action;\n\t\t\t\t\t\t\t\treturn new $controller($action, $this->urlvalues);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treturn new Error_Controller('404 - Page Not Found');\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t\techo 'FAIL';\n\t\t\t\t}\n\t\t}", "title": "" }, { "docid": "4ed75ac6dca2af4545f498055c0bcc26", "score": "0.7698307", "text": "protected function createController()\n {\n $controller = str_plural(Str::studly(class_basename($this->argument('name'))));\n\n $modelName = $this->qualifyClass($this->getNameInput());\n\n $this->call('skeleton:make-controller', [\n 'name' => \"{$controller}Controller\",\n '--model' => $modelName,\n ]);\n }", "title": "" }, { "docid": "6a05f5b88af42a7647c612e4a3b4b74f", "score": "0.75682735", "text": "private function makeController()\n {\n new GenerateController($this, $this->files);\n }", "title": "" }, { "docid": "52cd6d1aae823fe328c22b264c78aa7c", "score": "0.75593746", "text": "public function create_controller(){\n \tif( !class_exists( $this->controller ) ){\n \t\treturn;\n \t}\n\n \t//check parent class called 'Controller' exists for class called $this->controller \n if( !in_array( 'Controller', class_parents( $this->controller ) ) ){\n \treturn;\n }\n\n //check method named $this->action exists inside class called $this->controller\n if( !method_exists( $this->controller, $this->action ) ){\n \treturn;\n }\n\n //we have a class called $this->controller with an action named $this->action\n return new $this->controller( $this->action, $this->request );\n }", "title": "" }, { "docid": "89c605a1618ec8c852d296eaea0b64bf", "score": "0.74631256", "text": "private function makeInitiatedController()\n\t{\n\t\t$controller = new FakeBaseController();\n\n\t\t$controller->setLoggerWrapper(Logger::create());\n\n\t\treturn $controller;\n\t}", "title": "" }, { "docid": "e7f6e89c7b37f7bfbd2684f4a99439a0", "score": "0.7249175", "text": "public static function createController($controllerName) {\n \n try {\n $class = new ReflectionClass(ucfirst($controllerName).'Controller');\n } catch (ReflectionException $e) {\n $class = new ReflectionClass('HomeController');\n }\n \n $instance = $class->newInstance();\n $instance->setView($_POST['smarty']);\n \n // building the seo helper\n\t\t$seo = SEOHelper::build($controllerName, SEO_FILE);\n \n\t\t// assign SEO data to the view\n $instance->getView()->assign('seo_title', $seo->title);\n $instance->getView()->assign('seo_description', $seo->description);\n \n return $instance;\n\n }", "title": "" }, { "docid": "f78106805a569944a082f05074ce92d6", "score": "0.7219423", "text": "public function MyController(){\r\n\t\t$class = $this->ClassName . \"Controller\";\r\n\t\t$controller = new $class($this);\r\n\t\treturn $controller;\r\n\t}", "title": "" }, { "docid": "14f1a7147f86077605657e063aec0d49", "score": "0.7186371", "text": "private static function createController($controllerName)\r\n {\r\n if (!class_exists('Controller')) {\r\n eval('class Controller extends HController {}');\r\n }\r\n\r\n $namespace = null;\r\n if (HRouter::$namespace !== false) {\r\n $namespace = HBasics::camelize(HRouter::$namespace);\r\n }\r\n\r\n $controllerClass = $namespace . HBasics::camelize($controllerName) . 'Controller';\r\n\r\n if ($controllerClass === 'Controller') {\r\n self::$controller = new Controller;\r\n self::error('routing', true);\r\n } elseif (!class_exists($controllerClass)) {\r\n self::$controller = new Controller;\r\n self::error('controller', true);\r\n self::$controller->view->missingController = $controllerClass;\r\n } else {\r\n self::$controller = new $controllerClass;\r\n }\r\n }", "title": "" }, { "docid": "2f459cd99042543a1414c6454d9fd8e9", "score": "0.71013564", "text": "public function createController()\n { \n // We get the contents of the stub and replace the class name and table name\n $controllerContent = str_replace(\n [\n '{{className}}',\n '{{responseName}}',\n '{{plural}}',\n '{{singular}}',\n '{{variableName}}',\n '{{routeName}}',\n '{{codePrefix}}',\n ], \n [\n $this->names['class_name'],\n $this->names['response_code'],\n Str::snake(Str::plural(strtolower($this->option('name')))),\n Str::snake(Str::singular(strtolower($this->option('name')))),\n Str::camel(Str::plural($this->option('name'))),\n $this->names['route'],\n $this->option('code'),\n ], \n file_get_contents(__DIR__ . '/stubs/controller.stub') \n );\n\n // Create a folder if it doesn't already exist\n if (!file_exists(getcwd() . '/app/Http/Controllers/API')) {\n mkdir(getcwd() . '/app/Http/Controllers/API');\n }\n\n // Then we write the contents to the file\n file_put_contents(getcwd() . '/app/Http/Controllers/API/' . $this->names['controller'] . 'Controller.php', $controllerContent);\n \n return true;\n }", "title": "" }, { "docid": "168741bcc24059c9b4be8863032c1b3a", "score": "0.70919067", "text": "private function createController($controller) {\n\n\n $controller = ucfirst($controller);\n $controllerClass = $controller. 'Controller';\n $controllerFile = 'controllers/' . $controllerClass . '.php';\n\n if (file_exists($controllerFile)) {\n // Instanciation du contrôleur adapté à la requête\n require_once($controllerFile);\n\n $ControllerInstancie = new $controllerClass();\n\n $ControllerInstancie->setRequest($this->request);\n\n return $ControllerInstancie;\n }\n else {\n throw new Exception('Fichier ' . $controllerFile . ' introuvable');\n }\n }", "title": "" }, { "docid": "8e51b9122b93e3f70b2f874aca56f1b1", "score": "0.7013779", "text": "public function create() {\r\n return parent::create('create_' . strtolower($this->_aRequest['controller']), 0);\r\n }", "title": "" }, { "docid": "94fb699fa3a93a0600b7720e6c1d5766", "score": "0.70079803", "text": "public function CreateController() {\n //does the class exist?\n if (class_exists($this->controller)) {\n $parents = class_parents($this->controller);\n //does the class extend the controller class?\n if (in_array(\"BaseController\",$parents)) {\n //does the class contain the requested method?\n if (method_exists($this->controller,$this->action)) {\n return new $this->controller($this->action,$this->urlvalues);\n } else {\n //bad method error\n return new Error(\"badUrl\",$this->urlvalues);\n }\n } else {\n //bad controller error\n return new Error(\"badUrl\",$this->urlvalues);\n }\n } else {\n //bad controller error\n return new Error(\"badUrl\",$this->urlvalues);\n }\n }", "title": "" }, { "docid": "dfb1fb253754f1a73f3dc89783b7c24f", "score": "0.7001581", "text": "public function makeNormalController(){\n \n $controllerPath = $this->getControllerReday();\n // conntroller does not exixts\n if (!file_exists($controllerPath)) {\n $contents = PhpMaker::setFileContent($this->getControllerStubPath(),FILE_IGNORE_NEW_LINES)\n ->textReplace(\"{{ namespace }}\",$this->getNamespace())\n ->textReplace(\"{{ class }}\",$this->controllerName)\n ->get();\n\n PhpMaker::setScripts($contents)->setScriptsPath($controllerPath)->MakeFile();\n exit(\"\\e[0;32;40mController created successfully!\\e[0m\\n\");\n }\n // controller alredy exists\n else{\n exit(\"\\e[0;31;40mController already exists!\\e[0m\\n\");\n }\n \n \n }", "title": "" }, { "docid": "f2f7fd9dff7fd1c57db7367650a4d82f", "score": "0.69533163", "text": "public function CreateController(){\n\t\t//does the file exist? require it if so\n\t\tif(file_exists(\"controllers/\" . $this->controllerName . \".php\")){\n\t\t\trequire(\"controllers/\" . $this->controllerName . \".php\");\n\t\t}else{\n\t\t\trequire(\"controllers/error.php\");\n\t\t\treturn new ErrorController(\"badurl\",$this->urlValues);\n\t\t}\n\n\t\t//does the class exist?\n\t\tif(class_exists($this->controllerClass)){\n\t\t\t$parents = class_parents($this->controllerClass);\n\n\t\t\t//does the class extend the controller class?\n\t\t\tif(in_array(\"BaseController\", $parents)){\n\t\t\t\t//does the class contain the requested method\n\t\t\t\tif(method_exists($this->controllerClass, $this->action)){\n\t\t\t\t\treturn new $this->controllerClass($this->action, $this->urlValues);\n\t\t\t\t}else{\n\t\t\t\t\t//bad method error\n\t\t\t\t\trequire(\"controllers/error.php\");\n\t\t\t\t\treturn new ErrorController(\"badurl\", $this->urlValues);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t//bad controller error\n\t\t\t\trequire(\"controllers/error.php\");\n\t\t\t\treturn new ErrorController(\"badurl\", $this->urlValues);\n\t\t\t}\n\t\t}else{\n\t\t\t//bad controller error\n\t\t\trequire(\"controllers/error.php\");\n\t\t\treturn new ErrorController(\"badurl\", $this->urlValues);\n\t\t}\n\t}", "title": "" }, { "docid": "bb4a610ce0582d8c715681d90024a8d5", "score": "0.69108814", "text": "public function CreateController()\n {\n if(class_exists($this->controller))\n {\n $parents = class_parents($this->controller);\n\n //does the class extend the controller class\n if(in_array('BaseController', $parents))\n {\n //does the class contain the requested method\n if(method_exists($this->controller, $this->action))\n {\n //print_r($this->urlParams); exit();\n return new $this->controller($this->action, $this->urlParams);\n }\n else\n {\n return new Error('BadUrl', $this->urlValues);\n }\n }\n else\n {\n return new Error('BadUrl', $this->urlValues);\n }\n }\n else\n {\n return new Error('BadUrl', $this->urlValues);\n }\n }", "title": "" }, { "docid": "3ce8a4f7fb3600ea3d337c20ba6e88e6", "score": "0.6810819", "text": "public function actionCreate() {\n $model = new Controllers;\n// Uncomment the following line if AJAX validation is needed\n// $this->performAjaxValidation($model);\n if (isset($_POST['Controllers'])) {\n if (!empty($_POST['Controllers']['url']))\n $_POST['Controllers']['controller_name'] = app()->getModule($_POST['Controllers']['url'])->defaultController;\n $model->attributes = $_POST['Controllers'];\n if ($model->save())\n $this->redirect(array('view', 'id' => $model->controller_id));\n }\n $modules = $this->getModules(1);\n\n $this->render('create', array(\n 'model' => $model, 'modules' => $modules\n ));\n }", "title": "" }, { "docid": "79614008c67902c0519cd17f7de046ce", "score": "0.67866516", "text": "public function CreateController (\n\t\t$ctrlClassFullName, $actionNamePc, $viewScriptFullPath\n\t);", "title": "" }, { "docid": "516d90f94b168cadd1892e3581c9107c", "score": "0.67834127", "text": "private function createControllerInstance($controller = '')\n {\n $controller = new ControllerDispatcher($this->getNamespace(), $controller);\n return $controller->dispatch();\n }", "title": "" }, { "docid": "36965d20b2756bddeb4abdfbf923b3b1", "score": "0.6681269", "text": "private function initialize_controller() {\n require_once $this->controller_path();\n $class = ucfirst($this->controller_name) . $this->options['controller_class_suffix'];\n $this->controller_object = new $class;\n }", "title": "" }, { "docid": "84b43c1a7a1aeaeab86d136f24d1f8bf", "score": "0.66741234", "text": "private function createController(Request $request) {\n\t\t// URL are of type : index.php?controller=XXX&action=YYY&id=ZZZ\n\t\t$controller = \"Home\"; // default controller\n\t\tif ($request->isParameterNotEmpty( 'controller' )) {\n\t\t\t$controller = $request->getParameter ( 'controller' );\n\t\t\t// First letter in upper\n\t\t\t$controller = ucfirst ( strtolower ( $controller ) );\n\t\t}\n\t\t// Create the name of the controller such as : Controller/Controller<$controller>.php\n\t\t\n\t\t$classController = \"Controller\" . $controller;\n\t\t//echo \"controler name = \" . $classController . \"--\"; \n\t\t\n\t\t// modifications starts here\n\t\t$modulesNames = Configuration::get(\"modules\");\n\t\t$count = count($modulesNames);\n\t\t\n\t\t$controllerFound = false;\n\t\tfor($i = 0; $i < $count; $i++) {\n\t\t\t$fileController = 'Modules/' . $modulesNames[$i] . \"/Controller/\" . $classController . \".php\";\n\t\t\tif (file_exists($fileController)){\n\t\t\t\t// Instantiate controler\n\t\t\t\t$controllerFound = true;\n\t\t\t\trequire ($fileController);\n\t\t\t\t$controller = new $classController ();\n\t\t\t\t$controller->setRequest ( $request );\n\t\t\t\treturn $controller;\n\t\t\t}\n\t\t}\n\t\tif (!$controllerFound){\n\t\t\tthrow new Exception ( \"Unable to find the file '$fileController' \" );\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "eb4426ec0928cd73e4467994e14fc36b", "score": "0.66693413", "text": "public function AddController(){\n \n //recebendo a string com o nome do controller\n //metodo vindo da ClassRoutes\n $routeController = $this->getRoute();\n //aqui a gente ta montando o caminho para instanciar o controller\n $controller = \"App\\\\Controller\\\\\". $routeController;\n //instanciando o controller\n $this->obj = new $controller;\n //verificando se a variavel da URl possui posicao 1\n //se possuir, quer dizer que estão chamando um metodo!\n if(isset($this->parseUrl()[1])){\n //vai adicionar o metodo que estão chamando\n self::addMethod();\n }\n }", "title": "" }, { "docid": "5cd1c219d2e597cd59c0f4c5fa4f1659", "score": "0.66221195", "text": "public function getController()\n {\n if (! $this->controller) {\n $controllerClass = str_replace('Factory', '', $this->getReflection()->getShortName());\n $classToCall = '\\\\' . str_replace('Factory', 'Controller', $this->getReflection()->getNamespaceName()) . '\\\\' . $controllerClass;\n \n $this->controller = new $classToCall();\n }\n return $this->controller;\n }", "title": "" }, { "docid": "f62bcf0c183cba5c35af75e7a9bb293d", "score": "0.6602379", "text": "protected static function getControllerInstance(string $controller_name)\n {\n return new $controller_name();\n }", "title": "" }, { "docid": "c462f6fafe5d07992a973652c2dbbda3", "score": "0.6579119", "text": "private function createControllers()\n {\n foreach($this->data as $tableName => $tableData) {\n\n // Pivot tables don't need controllers\n if($this->isPivotTable($tableName)) {\n return;\n }\n\n $SingularSelf = ucfirst(strtolower($tableData['singular']));\n $controllerName = $SingularSelf . 'Controller';\n\n $actualPath = str_replace('App/', 'app/', $this->nameSpaceToPath($this->controllerNamespace))\n . DIRECTORY_SEPARATOR . $controllerName . '.php';\n\n $createController = TRUE;\n if(file_exists($actualPath)) {\n $createController = FALSE;\n if($this->confirm('Controller ' . $controllerName . ' already exists. Overwrite?')) {\n if(unlink($actualPath)) {\n $createController = TRUE;\n } else {\n $this->error('Could not overwrite ' . $controllerName);\n }\n }\n }\n\n if($createController) {\n\n // Build correct path to pass into make:controller\n $controllerPath = str_replace('App\\Http\\Controllers', '', $this->controllerNamespace);\n $controllerPath = $this->nameSpaceToPath($controllerPath);\n $controllerPath = empty($controllerPath) ? '' : $controllerPath . DIRECTORY_SEPARATOR;\n\n $this->call('make:controller', [\n 'name' => $controllerPath . $controllerName,\n '--resource' => true,\n '--model' => $this->modelNamespace . '\\\\' . $SingularSelf,\n ]);\n }\n }\n }", "title": "" }, { "docid": "06ac473004c944ef5b9136260041b935", "score": "0.6578269", "text": "protected function _getInstanceController()\r\n {\r\n $module = ucfirst($this->getData('module'));\r\n $class = ucfirst($this->getData('class'));\r\n $className = $module . \"_Controller_\" . $class;\r\n $file = BP . DS . \"code\" . DS . $module . DS . \"Controller\" . DS . $class . \".php\";\r\n if (!file_exists($file)) {\r\n throw new Core_Model_Exception();\r\n }\r\n\r\n return new $className();\r\n }", "title": "" }, { "docid": "729aef10c02aeb2f75427bbef101f864", "score": "0.6531654", "text": "static public function createController($name) {\n\t\t\t\n\t\t\t\n\t\tif (self::controllerExists($name)) {\n\t\t\t//$name = '\\controllers\\tutoriels';\n\t\t\t//echo 'plop'.$name.'plop';\n\t\t\t//$name = '/RefGPC/_controleurs/'.$name;\n\t\t\techo '<br />Classe appele : ['.$name.']';\n\n /// Ne comprend pas pourquoi cette syntaxe ne fonctionne pas !!!!! // return new $name();\n return new ilotControleur();\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "11349465413d63aa4120c1b55c4f36c5", "score": "0.650839", "text": "public function SetUpController ();", "title": "" }, { "docid": "9e61f8dedb27da3cf90425681fa57bc4", "score": "0.65054303", "text": "protected function loadController()\n {\n Debug::group(\"Initiating controller: $this->controllerName\", 1);\n $this->controllerObject = new $this->controllerNamespace;\n Debug::gend();\n }", "title": "" }, { "docid": "c6856c8b68b715aa8038afad238097b6", "score": "0.65019435", "text": "public function create($class)\n {\n $reflection = new \\ReflectionClass($class);\n $args = func_get_args();\n /* Remove the class name from args */\n array_shift($args);\n /* Instantiate the controller with the provided arguments */\n $controller = $reflection->newInstanceArgs($args);\n /* Apply the factory callback */\n call_user_func($this->callback, $controller);\n return $controller;\n }", "title": "" }, { "docid": "9df0d836408557d2a566612996bb754b", "score": "0.6462157", "text": "function controller(string $name,array $params= []){\n $resource = parseResourceName($name);\n\n if($resource['source_type'] == 'module'){\n $realFile = str_replace('.','/',$resource['target']).'.php';\n $pathTo = path(getEnv('MODULES_DIR').\"/{$resource['source']}/Http/Controller/{$realFile}\");\n require_once $pathTo;\n \n $namespacedCls = \"Modules\\\\{$resource['source']}\\\\Http\\\\Controller\\\\\";\n }\n else{\n $namespacedCls = \"App\\\\Http\\\\Controller\\\\\";\n }\n\n $namespacedCls .= str_replace('.','\\\\',$resource['target']);\n\n if(version_compare(PHP_VERSION, '5.6.0', '>=')){\n $instance = new $namespacedCls($params);\n } else {\n $reflect = new ReflectionClass($namespacedCls);\n $instance = $reflect->newInstanceArgs($params);\n }\n\n return $instance;\n}", "title": "" }, { "docid": "5a140d652adad721a1961aaa4ee0476d", "score": "0.64306", "text": "protected function makeController()\n {\n try {\n /**\n * @var $bundle BundleAbstract\n */\n $bundle = $this->manager->driver($this->route->getModule());\n if ( ! $bundle) {\n abort(404, \"App {$this->route->getModule()} does not found.\");\n }\n \n $controller = $bundle->getControllerClassName($this->route->getController());\n\n return $controller;\n } catch (InvalidArgumentException $e) {\n abort(403, $e->getMessage());\n }\n }", "title": "" }, { "docid": "e7d30d8ef2c251016e0dac7a6ede050c", "score": "0.6429302", "text": "public static function factory($controllerName, $layoutName, $action, $agent)\n {\n // Determine full classname\n $className = self::getClassName($controllerName);\n\n // Construct and return Controller\n return new $className($layoutName, $action, $agent);\n }", "title": "" }, { "docid": "f068a0650b99360d82b977ef9f679cda", "score": "0.6410494", "text": "public static function init(): Controller\n {\n return new TimelineController();\n }", "title": "" }, { "docid": "b052826f7854596d169509b30cecd669", "score": "0.6409497", "text": "public function makeController($controllerName = null)\n {\n $controllerName = ucwords($_POST['command']);\n $this->controllerName = $controllerName;\n \n if (file_exists(\"App/Controllers/{$this->controllerName}Controller.php\")) {\n $this->errors[] = \"The {$this->controllerName}Controller already exists!\";\n } elseif (strripos($this->controllerName, '_') == 0) {\n $this->controllerName = ucwords(str_replace('_', '', $this->controllerName));\n }\n \n if (!empty($this->errors)) {\n echo array_shift($this->errors);\n } else {\n $newControllerTemplate = file_get_contents(__DIR__ . '/templates/makeController.txt');\n $newController = str_replace('ControllerName', $this->controllerName, $newControllerTemplate);\n file_put_contents(\"App/Controllers/{$this->controllerName}Controller.php\", $newController);\n }\n }", "title": "" }, { "docid": "1305b45dcca36e86fd13f0bed581a348", "score": "0.6407463", "text": "public function getController()\n {\n return Controller::getController() ?? new Controller();\n }", "title": "" }, { "docid": "ebd04587a189418e515cb0e669e17e98", "score": "0.6399673", "text": "public function instantiateClass()\n {\n $class = 'Molajo\\\\Controller\\\\' . ucfirst(strtolower($this->crud_type));\n\n try {\n $instance = new $class (\n $this->model,\n $this->runtime_data,\n $this->query,\n $this->schedule_event,\n $this->get_cache_callback,\n $this->set_cache_callback,\n $this->delete_cache_callback\n );\n } catch (Exception $e) {\n throw new RuntimeException(\n 'Molajo\\\\Query\\\\Factory\\\\ControllerFactory::instantiateClass Failed Instantiating: '\n . $class\n . ' '\n . $e->getMessage()\n );\n }\n\n $instance->clearQuery();\n\n $instance->setModelRegistry(null, $this->model_registry);\n\n if ($this->crud_type === 'Create') {\n $this->crud_type = 'insert';\n } elseif ($this->crud_type === 'Createfrom') {\n $this->crud_type = 'insertfrom';\n } else {\n $this->crud_type = strtolower($this->crud_type);\n }\n\n $instance->setType($this->crud_type);\n\n if (trim($this->sql) === '') {\n } else {\n $instance->set('sql', $this->sql);\n }\n\n return $instance;\n }", "title": "" }, { "docid": "357f1444643cc59c98c8927ed620b3e3", "score": "0.6365728", "text": "protected function instantiate(String $controller) {\n $controllerClass = \"{$this->controllerNamespace}\\\\{$controller}\";\n\n return new $controllerClass();\n }", "title": "" }, { "docid": "1232b7bd87b3242bc6ba7828fbe5fb55", "score": "0.6346144", "text": "public static function createWSController($controllerName) {\n\t\t\n try {\n $class = new ReflectionClass(ucfirst($controllerName).'WSController');\n } catch (ReflectionException $e) {\n // $class = new ReflectionClass('HomeController');\n // TODO - tratar este erro de forma especifica para WebService \n }\n \n $instance = $class->newInstance();\n \n return $instance;\n\t}", "title": "" }, { "docid": "410fef54edc46fb2141653da42af3cb9", "score": "0.63411695", "text": "public function start()\n {\n $fullQualifiedClassName = \"Aeskaeno\\\\App\\\\Controller\\\\\" . ucfirst($this->request->getController()) . \"Controller\";\n $controler = new $fullQualifiedClassName();\n $controler->{$this->request->getAction(true)}();\n }", "title": "" }, { "docid": "a272253852c07d6554fd87ea95ec75d3", "score": "0.6336012", "text": "protected function getExampleControllerService()\n {\n return new \\Example\\Controller\\ExampleController(new \\Example\\Model\\ExampleModel(), new \\Example\\View\\ExampleView(new \\Example\\Model\\ExampleModel()));\n }", "title": "" }, { "docid": "5c3919a709e8ff24f2d11f502d782e5e", "score": "0.63360023", "text": "function createController()\n {\n $minimum_buffer_min = 3;\n if ($this->routerService->ds_token_ok($minimum_buffer_min)) {\n AssignFormToFormGroupService::worker($this->args, $this->clientService);\n $this->clientService->showDoneTemplate(\n \"Assign a form to a form group\",\n \"Assign a form to a form group\",\n \"Results from the FormGroups::AssignFormGroupForm method\".\n \"<pre>Code: 204<br />Description: Office was successfully assigned to the form group</pre>\"\n );\n } else {\n $this->clientService->needToReAuth($this->eg);\n }\n }", "title": "" }, { "docid": "438bd24364a54f46ba063b10074b15ea", "score": "0.6322313", "text": "public static function getController()\n {\n $class = ucfirst(Tools::getValue('controller', 'index')).'Controller';\n if(!class_exists($class))\n return false;\n\n return new $class;\n }", "title": "" }, { "docid": "7549c3aa5de8c608d233608a05e0d2ff", "score": "0.63015336", "text": "public function create()\n {\n $general = new ModeloController();\n\n return $general->create();\n }", "title": "" }, { "docid": "46f656ad3ad0e4b1aba08b5d2180c4ce", "score": "0.62674534", "text": "public static function getInstance()\n {\n if (self::$instance == null)\n {\n self::$instance = new Controller();\n }\n\n return self::$instance;\n }", "title": "" }, { "docid": "f938f697a80cb929db0c1d1e02cd5ba9", "score": "0.62595874", "text": "public static function create($controller)\n {\n self::$debuglvl = 3;\n\n $rest = new static($controller);\n $rest->prepare();\n $rest = null;\n }", "title": "" }, { "docid": "0c4e8d71f030153f8ee46f5dc49ffc7b", "score": "0.6257561", "text": "private static function getController() {\n $class_name = ucfirst(self::$request->getControllerName()).ucfirst(ROOT_CONTROLLER_NAME);\n $dyn_class_obj = new $class_name();\n return $dyn_class_obj;\n }", "title": "" }, { "docid": "99c877add2462e7a7d060a9e8377e30c", "score": "0.6253571", "text": "private function controller()\n {\n $class = \"Anonymizer\\\\Controllers\\\\\".ucfirst($this->controller);\n if (class_exists($class)) {\n $obj = new $class($this->config);\n if (method_exists($obj, $this->controllerFunction)) {\n $obj->load($this->controllerFunction);\n } else {\n $obj = new Error($this->config);\n $obj -> action404();\n }\n } else {\n $record = new UrlModel($this->config);\n $record->loadHash($this->controller);\n if ($record->getUrl()) {\n $templater = new Templater();\n $templater->addVariant($record->getUrl(), 'location');\n $templater->template(\"views/redirect\");\n } else {\n $obj = new Error($this->config);\n $obj -> action404();\n }\n }\n }", "title": "" }, { "docid": "685168ee780bdd2cc00306795048487f", "score": "0.6232448", "text": "protected function _getController()\n {\n $controller = $this->getParam('controller', null);\n if ($controller === null) {\n $controller = $this->_defaultController;\n }\n $controllerClass = 'controllers\\\\' . ucfirst($controller) . 'Controller';\n $controllerObject = new $controllerClass($this->_config);\n if (!$controllerObject instanceof Controller) {\n throw new \\Exception(\"Controller must be an instance of \\\\base\\\\Controller\");\n }\n $controllerObject->rootPath = $this->_root;\n $controllerObject->id = $controller;\n return $controllerObject;\n }", "title": "" }, { "docid": "7b148143530355f4caeaa2ac261e7376", "score": "0.6202897", "text": "static function &factory($controller, $params = null) {\n\t\t$ret = false;\n\t\t$file = NController::getIncludePath($controller);\n\t\tif (!$file) {\n\t\t\tNController::debug(\"Controller file not found for '$controller'\", N_DEBUGTYPE_ASSET, PEAR_LOG_ERR);\n\t\t\treturn $ret;\n\t\t}\n\t\tinclude_once $file;\n\t\t$class = NController::getClassName($controller);\n\t\tif (class_exists($class)) {\n\t\t\t$ret = new $class($params);\n\t\t}\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "c305fd1000aa9d35c500022953e9c408", "score": "0.6164537", "text": "public function __construct () {\n\t\t$url = $this->parseUrl();\n\t\tif (file_exists('..app\\controllers\\\\'. $url[0] . '.php')) {\n\t\t\t$this->controller = $url[0];\n\t\t\tunset($url[0]);\n\t\t}\n\t\trequire_once '..\\app\\controllers\\\\'.$this->controller . '.php';\n\t\t$this->controller = new $this->controller;\n\t\t\n\t\tif (isset($url[1])) {\n\t\t\tif (method_exists($this->controller, $url[1])) {\n\t\t\t\t$this->methods = $url[1];\n\t\t\t\tunset($url[1]);\n\n\t\t\t}\n\t\t}\n\t\tcall_user_func([$this->controller, $this->methods]);\n\t}", "title": "" }, { "docid": "0e656681840043ede8a46a4a6c013395", "score": "0.61422247", "text": "protected function makeController(string $controllerName, ...$args): ?AbstractController\n {\n $controllerName = \"\\App\\\\Controller\\\\\"\n . str_replace(\"_\", \"\", ucwords($controllerName, \"_\"))\n . \"Controller\";\n try {\n return new $controllerName(...$args);\n } catch (Exception $e) {\n return null;\n }\n }", "title": "" }, { "docid": "b7aa15d5d90c523eede9a3433356e233", "score": "0.6134141", "text": "private function createControllerImp($moduleName, $controllerName, $isApi, Request $request) {\n\n if ($isApi) {\n $classController = ucfirst(strtolower($controllerName)) . \"Api\";\n $module = $moduleName;\n $fileController = 'Modules/' . strtolower($module) . \"/Api/\" . $classController . \".php\";\n } else {\n $classController = ucfirst(strtolower($controllerName)) . \"Controller\";\n $module = $moduleName;\n $fileController = 'Modules/' . strtolower($module) . \"/Controller/\" . $classController . \".php\";\n }\n\n //echo \"controller file = \" . $fileController . \"<br/>\";\n if (file_exists($fileController)) {\n // Instantiate controler\n require ($fileController);\n $controller = new $classController ($request);\n $this->useRouterController = false;\n return $controller;\n } else {\n $rooterController = Configuration::get(\"routercontroller\");\n if($rooterController != \"\"){\n $rooterControllerArray = explode(\"::\", \"$rooterController\");\n if(count($rooterControllerArray) == 3){\n $classController = $rooterControllerArray[2];\n $module = $moduleName;\n $fileController = 'Modules/' . strtolower($rooterControllerArray[0]) . \"/Controller/\" . $rooterControllerArray[2] . \".php\";\n if(file_exists($fileController)){\n \n require ($fileController);\n $controller = new $classController ($request);\n $this->useRouterController = true;\n return $controller;\n }\n }\n else{\n throw new Exception(\"routercontroller config is not correct. The parameter must be ModuleName::Controller::ControllerName\");\n }\n }\n else{\n throw new Exception(\"Unable to find the controller file '$fileController' \");\n }\n }\n }", "title": "" }, { "docid": "3b8a670c18dae2beadad2a8d5bb3ce0d", "score": "0.6127465", "text": "protected function makeController($name)\n {\n \n $this->namespace = $this->getNamespace();\n\t\t$target = $this->getPath('controllers', rtrim($name, '.php')); \t// devuelve el paths para los controllers, src/Controllers\n \n\t\t// si la ruta no existe la crea\n\t\tif (!file_exists(dirname($target))) {\n mkdir(dirname($target), 0755, true);\n }\n\t\t\n // Crea una clase a partir de una fichero plantilla (dev/stubs/controller.stub)\n $StubGenerator = 'Antonella\\Classes\\StubGenerator';\n $stub = new $StubGenerator(\n $this->getPath('stubs', 'controller'),\t\t\t\t// 'dev/stubs/controller.stub',\n $target\n );\n\n $folder = array_reverse(explode('/', dirname($target)))[1];\n $name = rtrim($name,'.php');\n $stub->render([\n '%NAMESPACE%' => $this->namespace.'\\\\Controllers'.($folder == 'src' ? '' : '\\\\'.str_replace('/', '\\\\', dirname($name))),\n '%CLASSNAME%' => array_reverse(explode('/', $name))[0],\n ]);\n\t\t\n }", "title": "" }, { "docid": "0be2beac3412d9c36ab2cbde91b38742", "score": "0.6088405", "text": "function createController()\n {\n $minimum_buffer_min = 3;\n $room_id = $this->args['room_id'];\n $form_id = $this->args['form_id'];\n if ($this->routerService->ds_token_ok($minimum_buffer_min)) {\n if ($room_id && !$form_id) {\n $room = $this->getRoom($room_id);\n $room_documents = $this->getDocuments($room_id);\n $room_name = $room['name'];\n $room_forms = array_values(\n array_filter($room_documents, function($f) { return $f['docu_sign_form_id']; })\n );\n\n $GLOBALS['twig']->display($this->routerService->getTemplate($this->eg), [\n 'title' => $this->routerService->getTitle($this->eg),\n 'forms' => $room_forms,\n 'room_id' => $room_id,\n 'room_name' => $room_name,\n 'source_file' => basename(__FILE__),\n 'source_url' => $GLOBALS['DS_CONFIG']['github_example_url'] . basename(__FILE__),\n 'documentation' => $GLOBALS['DS_CONFIG']['documentation'] . $this->eg,\n 'show_doc' => $GLOBALS['DS_CONFIG']['documentation'],\n ]);\n }\n else {\n $results = $this->worker($this->args);\n\n if ($results) {\n $results = json_decode((string)$results, true);\n $this->clientService->showDoneTemplate(\n \"Create an external form fill session\",\n \"Create an external form fill session\",\n \"Results of Rooms::createExternalFormFillSession\",\n json_encode(json_encode($results))\n );\n }\n }\n } else {\n $this->clientService->needToReAuth($this->eg);\n }\n }", "title": "" }, { "docid": "5b1c23685652e885882b2ca581ed4dbc", "score": "0.60738885", "text": "public function getController() {\r\n $sController = ucfirst(strtolower((string) $this->_aRequest['controller']));\r\n\r\n try {\r\n # Are extensions for existing controllers available? If yes, use them.\r\n if (EXTENSION_CHECK && file_exists(PATH_STANDARD . '/app/controllers/' . $sController . '.controller.php') && !ACTIVE_TEST) {\r\n require_once PATH_STANDARD . '/app/controllers/' . $sController . '.controller.php';\r\n\r\n $sClassName = '\\candyCMS\\Controllers\\\\' . $sController;\r\n $this->oController = new $sClassName($this->_aRequest, $this->_aSession, $this->_aFile, $this->_aCookie);\r\n }\r\n\r\n # There are no extensions, so we use the default controllers\r\n elseif (file_exists(PATH_STANDARD . '/vendor/candycms/core/controllers/' . $sController . '.controller.php')) {\r\n require_once PATH_STANDARD . '/vendor/candycms/core/controllers/' . $sController . '.controller.php';\r\n\r\n $sClassName = '\\candyCMS\\Core\\Controllers\\\\' . $sController;\r\n $this->oController = new $sClassName($this->_aRequest, $this->_aSession, $this->_aFile, $this->_aCookie);\r\n }\r\n else {\r\n # Bugfix: Fix exceptions when upload file is missing\r\n if ($sController && substr(strtolower($sController), 0, 6) !== 'upload')\r\n throw new AdvancedException('Controller not found:' . PATH_STANDARD .\r\n '/vendor/candycms/core/controllers/' . $sController . '.controller.php');\r\n }\r\n }\r\n catch (AdvancedException $e) {\r\n # Check if site should be compatible to candyCMS version 1.x and send headers to browser.\r\n if (defined('CHECK_DEPRECATED_LINKS') && CHECK_DEPRECATED_LINKS === true &&\r\n Helper::pluralize($sController) !== $sController &&\r\n file_exists(PATH_STANDARD . '/vendor/candycms/core/controllers/' . Helper::pluralize($sController) . '.controller.php')) {\r\n $sUrl = str_replace(strtolower($sController), strtolower(Helper::pluralize($sController)), $_SERVER['REQUEST_URI']);\r\n\r\n AdvancedException::writeLog(__METHOD__ . ' - ' . $e->getMessage());\r\n return Helper::warningMessage(I18n::get('error.302.info', $sUrl), $sUrl);\r\n }\r\n\r\n # Redirect RSS\r\n elseif (defined('CHECK_DEPRECATED_LINKS') && CHECK_DEPRECATED_LINKS === true && 'Rss' == $sController) {\r\n AdvancedException::writeLog(__METHOD__ . ' - ' . $e->getMessage());\r\n return Helper::redirectTo('/blogs.rss');\r\n }\r\n\r\n else {\r\n AdvancedException::writeLog(__METHOD__ . ' - ' . $e->getMessage());\r\n return Helper::redirectTo('/errors/404');\r\n }\r\n }\r\n\r\n $this->oController->__init();\r\n return $this->oController;\r\n }", "title": "" }, { "docid": "2376e8121d2d4ea4f3675b115d5b3778", "score": "0.6053858", "text": "private function getMockController() {\r\n $controller = $this->generate('CouponCodes');\r\n $controller->constructClasses();\r\n $controller->Components->init($controller);\r\n $controller->Session->write('Auth.User', array(\r\n \t'id' => 1,\r\n ));\r\n return $controller;\r\n }", "title": "" }, { "docid": "fd83d94bc1b118c307b9ba17133c2c0f", "score": "0.604546", "text": "public function __construct() {\n\t\t$this->natureController = new NaturezaController ();\n\t\t$this->crimeController = new CrimeController ();\n\t}", "title": "" }, { "docid": "f53adb232f02937a5b052053f74df3cd", "score": "0.6031592", "text": "public function create() {\n global $argv;\n if( isset($argv[2]) ) {\n $name = ucwords($argv[2]);\n $file = 'src/Models/'.$name.'.php';\n if( file_exists($file) ) {\n echo 'Model already exist!' . PHP_EOL;\n } else {\n $controller = file_put_contents ( $file , $this->template(['className' => $name]) );\n }\n }\n\n }", "title": "" }, { "docid": "f4fdce47df5c2ba4b3701efb779a8fff", "score": "0.6024996", "text": "public function testInstantiateResultsController()\n {\n $controller = new ResultsController();\n\n $this->assertInstanceOf(\"App\\Http\\Controllers\\ResultsController\", $controller);\n }", "title": "" }, { "docid": "62bbf816118437d504659d9a4c168b5b", "score": "0.60225487", "text": "public function getControllerInstance()\n {\n $class = $this->getControllerClass();\n\n // we only need to instantiate it once\n if ($this->controllerInstance) {\n return $this->controllerInstance;\n }\n\n // check the container for the controller class definition\n if ($this->container && $this->container->has($class)) {\n return $this->controllerInstance = $this->container->get($class);\n }\n\n // check if controller class and action method exist\n if (!class_exists($class)) {\n return null;\n }\n\n return $this->controllerInstance = new $class();\n }", "title": "" }, { "docid": "ab228f3a1b395003b7658adb9c7ca6a3", "score": "0.60201174", "text": "public function __construct() {\n $this->participanteController = new participanteController();\n //$this->lanceController = new lanceController();\n $this->itemLeilaoController = new itemLeilaoController();\n $this->leilaoController = new leilaoController();\n }", "title": "" }, { "docid": "3d88e31c91576de3ff25a91dbb52e286", "score": "0.6018949", "text": "static function getController($className){\n $controller = null;\n // add subNamespaces for controller classes\n $subNamespaces = ['Api', 'Ccp'];\n\n for($i = 0; $i <= count($subNamespaces); $i++){\n $path = [__NAMESPACE__];\n $path[] = ( isset($subNamespaces[$i - 1]) ) ? $subNamespaces[$i - 1] : '';\n $path[] = $className;\n $classPath = implode('\\\\', array_filter($path));\n\n if(class_exists($classPath)){\n $controller = new $classPath();\n break;\n }\n }\n\n if( is_null($controller) ){\n throw new \\Exception( sprintf('Controller class \"%s\" not found!', $className) );\n }\n\n return $controller;\n }", "title": "" }, { "docid": "801524884ff1a653ed3612f93539ea96", "score": "0.6018262", "text": "function generateController()\n {\n $content = $this->getAssetFile('Controller');\n $content = $this->replace($content, ['{controller_namespace}', '{package}', '{controller}', \"{PackageWithParent}\"],\n [$this->getControllerNamespace(), $this->getPackageName(), $this->getGeneratedControllerName(), $this->packageNameWithParent()]);\n file_put_contents($this->getControllerPath() . $this->fileSeparator() . $this->getGeneratedControllerName() . '.php', $content);\n $this->printConsole($msg ?? \"< Controller > generated successfully\");\n }", "title": "" }, { "docid": "4ee2bc092f9cebb6274c6f1a0864edcc", "score": "0.6009349", "text": "public function setupController()\n {\n \t$serviceLocator = $this->getApplicationServiceLocator();\n \t\n $this->setController(new IndexController( $serviceLocator ));\n $this->getController()->setServiceLocator( $serviceLocator );\n $this->setRequest(new Request());\n $this->setRouteMatch(new RouteMatch(array('controller' => '\\Admin\\Controller\\Index', 'action' => 'index')));\n $this->setEvent(new MvcEvent());\n $config = $serviceLocator->get('Config');\n $routerConfig = isset($config['router']) ? $config['router'] : array();\n $router = HttpRouter::factory($routerConfig);\n $this->getEvent()->setRouter($router);\n $this->getEvent()->setRouteMatch($this->getRouteMatch());\n $this->getController()->setEvent($this->getEvent());\n $this->setResponse(new Response());\n \n $this->setZfcUserValidAuthMock();\n }", "title": "" }, { "docid": "47638c6270e7a5b3517a72f67dc5a377", "score": "0.6007749", "text": "public function __construct() {\n $this->authCtrl = new AuthController();\n $this->gameCtrl = new GameController();\n $this->lobbyCtrl = new LobbyController();\n }", "title": "" }, { "docid": "5ef04d21cef7ab158f26b91220406632", "score": "0.5999648", "text": "protected function initializeController( )\r\n {\r\n if ( isset( $this->controller ) ) return;\r\n\r\n $this->controller = Controller::getInstance( $this->multitonKey );\r\n }", "title": "" }, { "docid": "cf16bd487e830ac279e0d83492c9ccc0", "score": "0.59863526", "text": "public function getController();", "title": "" }, { "docid": "991e4887ddbacca9fd8260f6039f78ac", "score": "0.59827816", "text": "protected function _construct(array $arguments = array()){\n\t\t// The controller passes the $argv-Variable or the request-data as $arguments\n\t\t$this->_unpackParameters($arguments[2]);\n\t\t\n\t\t\n\t\tif(!$this->_processId) $this->_processId = $this->parameters[self::PROCESS_DATA_PREFIX.'_processId'];\n\t\tCunddTools::log(__CLASS__.$this->_processId,var_export($this->parameters,true));\n\t\t$this->pd($_POST);\n\t\t$this->pd($_GET);\n\t\t$this->pd($arguments);\n\t\t\n\t\t\n\t\t$this->setState(self::STATE_WILL_CREATE_CONTROLLER);\n\t\t\n\t\t// Load the new Controller\n\t\t$controller = new CunddController($arguments[1]);\n\t\tif($controller){\n\t\t\t$this->setState(self::STATE_DID_CREATE_CONTROLLER);\n\t\t\t$this->setState(self::STATE_COMPLETE);\n\t\t} else {\n\t\t\t$this->setState(self::STATE_ERROR_CREATE_CONTROLLER);\n\t\t}\n\t\treturn;\n\t}", "title": "" }, { "docid": "275db1b4d6d0c2c3aeceb18e40c2e10a", "score": "0.59699553", "text": "function make_controller($config_db, $title) {\n if (!$this->mod_enabled) {\n $this->show_not_allowed($config_db);\n return;\n }\n\n helper(['config_db_edit']);\n\n $page_fam_tag = \"\";\n $file_path = \"\";\n if ($this->_controller_exists($config_db, $page_fam_tag, $file_path)) {\n echo \"Controller file '$file_path' not created because it exists\";\n return;\n }\n\n $ignore = '';\n $data_info = $this->_get_general_params($config_db, $ignore);\n\n // create controller file contents\n $s = make_controller_code($config_db, $page_fam_tag, $data_info, $title);\n\n // write controller file\n file_put_contents($file_path, $s);\n header(\"Content-type: text/plain\");\n echo \"Controller file was created as '$file_path'\\n\\n\";\n echo $s;\n }", "title": "" }, { "docid": "2439863c487bd35b4c01bf2a4f6cf101", "score": "0.5963663", "text": "abstract protected function getController();", "title": "" }, { "docid": "2439863c487bd35b4c01bf2a4f6cf101", "score": "0.5963663", "text": "abstract protected function getController();", "title": "" }, { "docid": "e7cf72a2b01f31166c424a577185fc26", "score": "0.59409183", "text": "private function _getController($name)\n\t{\n\t\t$controller_name = '\\\\App\\\\Controller\\\\' . ucfirst($name) . 'Controller';\n\t\tif (!class_exists($controller_name)) {\n\t\t\tthrow new ClassNotFoundException(\"Please create a \". ucfirst($name). \"Controller class in the app/Controller/\" . ucfirst($name) . \"Controller.php file.\");\n\t\t}\n\t\treturn new $controller_name($this);\n\t}", "title": "" }, { "docid": "a310d95aa980c11a7986ea3dceb8addc", "score": "0.59232366", "text": "function cargarControlador($controller)\n {\n $controlador = \"App\\\\Controller\\\\\" . ucwords($controller) . 'Controller';\n \n if( ! class_exists($controlador))\n {\n $controlador = \"App\\\\Controller\\\\\" . ucwords(VariablesGlobales::$controlador_defecto) . 'Controller'; \n }\n \n\n return new $controlador();\n }", "title": "" }, { "docid": "bb5a1b6e22ba5bee3b99c472034fbb2b", "score": "0.5919211", "text": "function s3MVC_CreateController(\n \\Slim\\App $app, \n $controller_name_from_url, \n $action_name_from_url,\n \\Psr\\Http\\Message\\ServerRequestInterface $request, \n \\Psr\\Http\\Message\\ResponseInterface $response\n) {\n $container = $app->getContainer();\n $logger = $container->get('logger');\n $controller_class_name = \\Slim3MvcTools\\Functions\\Str\\dashesToStudly($controller_name_from_url);\n $regex_4_valid_class_name = '/^[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*$/';\n\n if( !preg_match( $regex_4_valid_class_name, preg_quote($controller_class_name, '/') ) ) {\n\n //A valid php class name starts with a letter or underscore, followed by \n //any number of letters, numbers, or underscores.\n\n //Make sure the controller name is a valid string usable as a class name\n //in php as defined in http://php.net/manual/en/language.oop5.basic.php\n //trigger 404 not found\n $logger->notice(\"`\".__FILE__.\"` on line \".__LINE__.\": Bad controller name `{$controller_class_name}`\");\n $notFoundHandler = $container->get('notFoundHandler');\n return $notFoundHandler($request, $response);//invoke the not found handler\n }\n\n if( !class_exists($controller_class_name) ) {\n\n $namespaces_4_controllers = $container->get('namespaces_for_controllers');\n\n //try to prepend name space\n foreach($namespaces_4_controllers as $namespace_4_controllers) {\n\n if( class_exists($namespace_4_controllers.$controller_class_name) ) {\n\n $controller_class_name = $namespace_4_controllers.$controller_class_name;\n break;\n }\n }\n\n //class still doesn't exist\n if( !class_exists($controller_class_name) ) {\n\n //404 Not Found: Controller class not found.\n $logger->notice(\"`\".__FILE__.\"` on line \".__LINE__.\": Class `{$controller_class_name}` does not exist.\");\n $notFoundHandler = $container->get('notFoundHandler');\n return $notFoundHandler($request, $response);\n }\n }\n\n //Create the controller object\n return new $controller_class_name($app, $controller_name_from_url, $action_name_from_url);\n}", "title": "" }, { "docid": "bae402b42ba4ecd01acd67c675a4224f", "score": "0.5909143", "text": "public function create()\n {\n return view('constructor.create');\n }", "title": "" }, { "docid": "9019a3a896190e0bebd3b3ad73eaf73f", "score": "0.59077257", "text": "public function getController(): Controller\n {\n $controller = null;\n $class_name = null;\n if ($this->getProject() !== null) {\n $class_name = \"\\\\Bundle\\\\{$this->route['project']}\\\\Bundle\\\\{$this->route['bundle']}\\\\\" .\n \"Controller\\\\{$this->route['controller']}Controller\";\n } else {\n $class_name = \"\\\\Bundle\\\\{$this->route['bundle']}\\\\Controller\\\\\" .\n \"{$this->route['controller']}Controller\";\n }\n if (class_exists($class_name) === true) {\n eval(\"\\$controller = new {$class_name}(\\$this->cache);\");\n } else {\n throw new \\RuntimeException(\"El controlador {$class_name} no existe. Verifique el namespace\");\n }\n return $controller;\n }", "title": "" }, { "docid": "c5aaec69a9296e8533b43e57bd859f19", "score": "0.5907702", "text": "protected function createController($controller)\n {\n if (false === strpos($controller, '::')) {\n throw new \\InvalidArgumentException(sprintf('Unable to find controller \"%s\".', $controller));\n }\n\n list($class, $method) = explode('::', $controller, 2);\n\n if ($this->container->has($class)) {\n $controller = $this->container->get($class);\n } else {\n if ( ! class_exists($class)) {\n throw new \\InvalidArgumentException(sprintf('Class \"%s\" does not exist.', $class));\n }\n\n $controller = new $class();\n }\n\n if ($controller instanceof ContainerAwareInterface) {\n $controller->setContainer($this->container);\n }\n\n return array($controller, $method);\n }", "title": "" }, { "docid": "c5ef9aa88e34165eeea3d2a68a0c8799", "score": "0.59075844", "text": "public function run()\n {\n\t\t\\App\\ControllerName::create( \n\t\t [\n\t\t\t'name'=> 'UsersController'\n\t\t ]);\n\t\t\\App\\ControllerName::create( \n\t\t [\n\t\t\t'name'=> 'TicketController'\n\t\t ]\n\t );\n\t \n }", "title": "" }, { "docid": "9c60fbff64810741d378ec324a56be82", "score": "0.59026676", "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": "9c60fbff64810741d378ec324a56be82", "score": "0.59026676", "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": "1c52b563e5adcbac94319f2f9cfddf2c", "score": "0.58954114", "text": "public function create()\n {\n $controller = new Controller;\n $data['menus'] = $controller->menus();\n\n $data['roles'] = Role::where('status', 1)->get();\n\n return view('admin.add', $data);\n }", "title": "" }, { "docid": "b07cc15d5a71813b10676dbd935b7158", "score": "0.58894515", "text": "public function build_controller($controller_name)\n\t{\n\t\t$controller_name=strtolower($controller_name);\n\t\t\t\t\n\t\t// Adding controllers namespace to controller name\n\t\t$controller_name = \"\\\\SimpleMvC\\\\controllers\\\\\".$controller_name;\n\t\t\n\t\tif(class_exists($controller_name))\n\t\t{\n\t\t\treturn new $controller_name($this);\n\t\t}\n\t\telse\n\t\t{\n\t\t\theader($_SERVER[\"SERVER_PROTOCOL\"].\" 404 Not Found\");\n\t\t\techo \"A 404 Error OCCURED. CONTENT RESOURCE CANNOT BE FOUND\"; \n\t\t\texit;\n\t\t}\n\t\t\t\n\t}", "title": "" }, { "docid": "16dc9dd7ed7a8ab7ef77a2800eab3548", "score": "0.5870939", "text": "public function getController()\n {\n $router = new Router;\n\n $routes = Yaml::parse(file_get_contents(__DIR__ . '/../Config/routes.yml'));\n\n // We read every routes\n foreach ($routes as $route) {\n $vars = [''];\n\n // We check if there are variables in the URL.\n if (isset($route['vars']) && $route['vars']) {\n $vars = explode(',', $route['vars']);\n }\n\n // We add the route in the router\n $router->addRoute(new Route($route['url'], $route['module'], $route['action'], $vars));\n }\n\n try {\n //We retrieve the route matching the URL\n $matchedRoute = $router->getRoute($this->request->requestURI());\n } catch (MissingRouteException $e) {\n if ($e->getCode() == Router::NO_ROUTE) {\n // If no route matches, run 404 error function\n $this->response->redirect404();\n exit;\n }\n }\n\n // Run the controller instance and the action of the route\n\n $controllerClass = 'App\\\\Controller\\\\Controller' .$matchedRoute->module();\n if ($matchedRoute->hasVars()) {\n (new $controllerClass($router, $this->request, $matchedRoute->vars()))->execute($matchedRoute->action());\n } else {\n (new $controllerClass($router, $this->request))->execute($matchedRoute->action());\n }\n }", "title": "" }, { "docid": "cfccbe506df6170d518fa7c2050e0d86", "score": "0.5865354", "text": "function Create($params) {\n $c = new MoviesController;\n return $c->CreateMovie($params);\n }", "title": "" }, { "docid": "8b274728adf0ba47972af1d07762f472", "score": "0.5846254", "text": "protected function getControllerService()\n {\n return $this->services['Mini\\\\Controller\\\\Controller'] = new \\Mini\\Controller\\Controller();\n }", "title": "" }, { "docid": "3e9af00de83d187d9ad80eaaac17c12a", "score": "0.5840682", "text": "public function create()\n {\n // TODO\n }", "title": "" }, { "docid": "3a16e1b7b3e7669737e4f7bc0e8cd989", "score": "0.58348787", "text": "public function __construct() {\n $this->request_path = $this->request_path();\n $this->splitURL();\n\n //assign first member of path to controller, rename by \"name_controller\"\n $controller = empty($this->controller) ? 'index' : $this->controller;\n $controller = strtolower($controller).\"_controller\";\n\n //check whether file exist or not\n if (!file_exists(PATH_APPLICATION . \"/frontend/controller/\".$controller.\".php\")) {\n header(\"Location:\".BASE_PATH.\"/p404\");\n }\n\n //import file to create new object of name_controller class\n require PATH_APPLICATION.\"/frontend/controller/\".$controller.\".php\";\n $controllerObj = new $controller();\n\n //check if class exist\n if(!class_exists($controller)) {\n header(\"Location:\".BASE_PATH.\"/p404\");\n }\n\n //check if method exist\n if(method_exists($controller,$this->action)) {\n if(!empty($this->param)) {\n call_user_func_array(array($controllerObj,$this->action), $this->param);\n } else {\n //call method view(); >.< it's default method\n $controllerObj->{$this->action}();\n }\n } else {\n header(\"Location:\".BASE_PATH.\"/p404\");\n }\n }", "title": "" }, { "docid": "7ad438daae6906ca975c3af49a075598", "score": "0.5823546", "text": "protected function getController() {\n $controller = new CartAddResource(\n $this->container->get('commerce_cart.cart_provider'),\n $this->container->get('commerce_cart.cart_manager'),\n $this->container->get('commerce_api.jsonapi_controller_shim'),\n $this->container->get('commerce_order.chain_order_type_resolver'),\n $this->container->get('commerce_store.current_store'),\n $this->container->get('commerce_price.chain_price_resolver'),\n $this->container->get('entity.repository'),\n $this->container->get('current_user'),\n $this->container->get('renderer')\n );\n $controller->setResourceResponseFactory($this->container->get('jsonapi_resources.resource_response_factory'));\n $controller->setResourceTypeRepository($this->container->get('jsonapi.resource_type.repository'));\n $controller->setEntityTypeManager($this->container->get('entity_type.manager'));\n $controller->setEntityAccessChecker($this->container->get('jsonapi_resources.entity_access_checker'));\n return $controller;\n }", "title": "" }, { "docid": "cf9fb0175486f049acbbeacb66ba609d", "score": "0.5818622", "text": "public function create()\n {\n return view('create_class');\n }", "title": "" }, { "docid": "060347d55b6b8b83786d0737cf41d94a", "score": "0.5815184", "text": "public static function getInstance() {\n\t\tif (!isset(self::$instance))\t\t\t\t// Se a classe não tiver sido instanciada, entra no if\n\t\t\tself::$instance = new PessoaController();\t// Entrando no if, uma instancia é criada para variável estatica $instance\n\t\treturn self::$instance;\t\t\t\t\t\t// Retorna a instancia da classe para o método que a chamou\n\t}", "title": "" }, { "docid": "61814d82250394100d49f0017fc9e551", "score": "0.5809874", "text": "protected function startController()\n {\n $this->benchmark->start('controller');\n $this->benchmark->start('controller_constructor');\n\n // Is it routed to a Closure?\n if (is_object($this->controller) && (get_class($this->controller) === 'Closure')) {\n $controller = $this->controller;\n\n return $controller(...$this->router->params());\n }\n\n // No controller specified - we don't know what to do now.\n if (empty($this->controller)) {\n throw PageNotFoundException::forEmptyController();\n }\n\n // Try to autoload the class\n if (! class_exists($this->controller, true) || $this->method[0] === '_') {\n throw PageNotFoundException::forControllerNotFound($this->controller, $this->method);\n }\n }", "title": "" }, { "docid": "cb26b91f34f69be2b32b20e931f4d342", "score": "0.5792146", "text": "public function __construct(){\n\t\t$this->teamCO = new TeamController();\n\t\t$this->playerCO = new PlayerController();\n\t\t$this->coachCO = new CoachController();\n\t\t$this->refereeCO = new RefereeController();\n\t}", "title": "" }, { "docid": "ea0343423eb5647a903e52548eda4dac", "score": "0.5789855", "text": "function __construct() {\n self::$instance = & $this;\n \n // Almost the same as the CI original Controller class... \n foreach(array('Load','Uri','Lang') as $class) {\n $this->$class = new $class(); // Assign the class name and create in instance\n }\n \n }", "title": "" }, { "docid": "cea19c964300842ed5d8192113b9aab8", "score": "0.57806635", "text": "protected function createController($controller, $request = null)\n {\n if (false !== strpos($controller, '::')) {\n list($class, $method) = explode('::', $controller, 2);\n } elseif (false !== strpos($controller, ':')) {\n list($class, $method) = explode(':', $controller, 2);\n } else {\n list($class, $method) = array($controller, $request ? $request->attributes->get('_action', 'index') : 'index');\n }\n\n $method = substr($method, -6) !== 'Action' ? $method . 'Action' : $method;\n\n if (isset($this->app[$class])) {\n $class = $this->app[$class];\n if ($class instanceof \\Closure) {\n return $class;\n }\n if (is_object($class)) {\n return array($class, $method);\n }\n }\n\n $class = substr($class, -10) !== 'Controller' ? $class . 'Controller' : $class;\n\n if (false === strpos($class, '\\\\') && isset($this->app['namespace'])) {\n $class = $this->app['namespace'] . '\\\\Controllers\\\\' . $class;\n }\n\n if (!class_exists($class)) {\n throw new \\InvalidArgumentException(sprintf('Class \"%s\" does not exist.', $class));\n }\n\n $controller = new $class($this->app);\n\n return array($controller, $method);\n }", "title": "" } ]
8c9de1b0a76d3ed68940255261543503
Register any authentication / authorization services.
[ { "docid": "8751f6bbc3b1d00e0cd8d19803846cdc", "score": "0.0", "text": "public function boot()\n {\n collect([\n 'manageLogNewUserUploader',\n 'viewLogNewUserUploader',\n ])->each(function ($permission) {\n Gate::define($permission, function ($user) use ($permission) {\n if ($this->nobodyHasAccess($permission)) {\n return true;\n }\n\n return $user->hasRoleWithPermission($permission);\n });\n });\n\n $this->registerPolicies();\n\n Passport::routes();\n\n Passport::loadKeysFrom(env('APP_PATH').'/storage');\n }", "title": "" } ]
[ { "docid": "1a708c68d2c5f43798bd0ec5a70d9b5c", "score": "0.7128147", "text": "public function registerServices()\n {\n foreach ($this->serviceProviders as $serviceProvider) {\n $serviceProvider = (new $serviceProvider($this))->register();\n }\n }", "title": "" }, { "docid": "58ed1e41276c8d1df2527e64f201d762", "score": "0.6882426", "text": "public function registerAuthServices(Container $container)\n {\n static $provider = null;\n\n if ($provider === null) {\n $provider = new AuthServiceProvider();\n }\n\n $provider->register($container);\n }", "title": "" }, { "docid": "81be4457ee901f9b16008be57792acaf", "score": "0.68724895", "text": "private function registerServiceProviders()\n {\n\n $this->register(new \\Silex\\Provider\\SecurityServiceProvider(),\n array('security.firewalls' => array()));\n }", "title": "" }, { "docid": "1251fddd7a999db83ba19c12afe4b760", "score": "0.67935854", "text": "public function register()\n {\n $this->registerAuthServiceConfig();\n $this->registerAuthEventListener();\n $this->registerAuthService();\n }", "title": "" }, { "docid": "e723dd21149f44a961fd66f7addfd806", "score": "0.67456585", "text": "protected function _registerServices()\n\t{\n\n\t\t$di = new \\Phalcon\\DI\\FactoryDefault();\n\n\t\t$loader = new \\Phalcon\\Loader();\n\n\t\t/**\n\t\t * We're a registering a set of directories taken from the configuration file\n\t\t */\n\t\t$loader->registerDirs(\n\t\t\tarray(\n\t\t\t\t__DIR__ . '/../apps/library/'\n\t\t\t)\n\t\t)->register();\n\n\t\t//Registering a router\n\t\t$di->set('router', function(){\n\n\t\t\t$router = new \\Phalcon\\Mvc\\Router();\n\n\t\t\t$router->setDefaultModule(\"user\");\n\n\t\t\t$router->add(\"/user/:controller/:action/:params\", array(\n\t\t\t\t'module' => 'user',\n\t\t\t\t'controller' => 1,\n\t\t\t\t'action' => 2,\n\t\t\t\t'params' => 3,\n\t\t\t));\n\n\t\t\t$router->add(\"/client/:controller/:action/:params\", array(\n\t\t\t\t'module' => 'client',\n\t\t\t\t'controller' => 1,\n\t\t\t\t'action' => 2,\n\t\t\t\t'params' => 3,\n\t\t\t));\n\n\t\t\t$router->add(\"/account/:controller/:action/:params\", array(\n\t\t\t\t'module' => 'account',\n\t\t\t\t'controller' => 1,\n\t\t\t\t'action' => 2,\n\t\t\t\t'params' => 3,\n\t\t\t));\n\n\t\t\t$router->add(\"/admin\", array(\n\t\t\t\t'module' => 'admin',\n\t\t\t\t'controller' => 'index',\n\t\t\t\t'action' => 'index',\n\t\t\t));\n\n\t\t\t$router->add(\"/image/:controller/:action/:params\", array(\n\t\t\t\t'module' => 'image',\n\t\t\t\t'controller' => 1,\n\t\t\t\t'action' => 2,\n\t\t\t\t'params' => 3,\n\t\t\t));\n\n\t\t\t$router->add(\"/app/:controller/:action/:params\", array(\n\t\t\t\t'module' => 'app',\n\t\t\t\t'controller' => 1,\n\t\t\t\t'action' => 2,\n\t\t\t\t'params' => 3,\n\t\t\t));\n\n\t\t\treturn $router;\n\t\t});\n\n\t\t$this->setDI($di);\n\t}", "title": "" }, { "docid": "80f79b574c7b7db2c16fbaac5925a96c", "score": "0.67390054", "text": "public function registerServiceProviders()\n {\n //1. Dingo API\n $this->app->register('Dingo\\Api\\Provider\\LaravelServiceProvider');\n //2. Jwt\n $this->app->register('Tymon\\JWTAuth\\Providers\\JWTAuthServiceProvider');\n //3. CORS\n $this->app->register('Barryvdh\\Cors\\ServiceProvider');\n }", "title": "" }, { "docid": "1cb1e3f0f09097a023c00cebd76f65d6", "score": "0.6731262", "text": "public static function register_services()\n\t\t{\n\t\t\tforeach (self::get_services() as $class) {\n\t\t\t\t$service = self::instantiate($class);\n\t\t\t\tif (method_exists($service, 'register')) {\n\t\t\t\t\t$service->register();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "57ca253aa9342098d0106b9271338cb9", "score": "0.67069817", "text": "public static function registerServices()\n {\n foreach (self::getServices() as $class) {\n $service = new $class();\n if (method_exists($service, 'register')) {\n $service->register();\n }\n }\n }", "title": "" }, { "docid": "254bef3f932369d792cf2b02660f44ac", "score": "0.66901666", "text": "public function register()\n {\n $this->app->bindShared('auth', function($app)\n {\n // Once the authentication service has actually been requested by the developer\n // we will set a variable in the application indicating such. This helps us\n // know that we need to set any queued cookies in the after event later.\n $app['auth.loaded'] = true;\n\n return new AuthManager($app);\n });\n }", "title": "" }, { "docid": "5dd979edb890ecfa13239561d1e5428f", "score": "0.6686343", "text": "public function register_services() {\n\t\t// Bail early so we don't instantiate services twice.\n\t\tif ( ! empty( $this->services ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$container = new Di_Container();\n\n\t\t$this->services = $container->get_di_services( $this->get_service_classes() );\n\n\t\tarray_walk(\n\t\t\t$this->services,\n\t\t\tstatic function( $class ) {\n\t\t\t\tif ( ! $class instanceof Registerable ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t$class->register();\n\t\t\t}\n\t\t);\n\t}", "title": "" }, { "docid": "c713f0db0413aea0f6a2ce031fe0409e", "score": "0.666873", "text": "public function register_services(): void {\n\t\t// Bail early so we don't instantiate services twice.\n\t\tif ( count( $this->service_container ) > 0 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Add the injector as the very first service.\n\t\t$this->service_container->put(\n\t\t\tstatic::SERVICE_PREFIX . static::INJECTOR_ID,\n\t\t\t$this->injector\n\t\t);\n\n\t\tforeach ( $this->get_service_classes() as $id => $class ) {\n\t\t\t// Only instantiate services that are actually needed.\n\t\t\tif ( is_a( $class, Conditional::class, true )\n\t\t\t && ! $class::is_needed() ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$this->service_container->put(\n\t\t\t\t$id,\n\t\t\t\t$this->instantiate_service( $class )\n\t\t\t);\n\t\t}\n\n\t\t// Give all Registerables the opportunity to register themselves.\n\t\tforeach ( $this->service_container as $service ) {\n\t\t\tif ( $service instanceof Registerable ) {\n\t\t\t\t$service->register();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "73212a5add3e6b728bd84c1eeec9c02c", "score": "0.665159", "text": "public function register( $services );", "title": "" }, { "docid": "0e162e042e8960da3e4cce1e2a4071a8", "score": "0.66324383", "text": "protected function registerAuthenticator(): void\n {\n $this->app->singleton('auth', static function (Container $app) {\n // Once the authentication service has actually been requested by the developer\n // we will set a variable in the application indicating such. This helps us\n // know that we need to set any queued cookies in the after event later.\n $app['auth.loaded'] = true;\n\n return new AuthManager($app);\n });\n\n $this->app->singleton('auth.driver', static function (Container $app) {\n return $app->make('auth')->guard();\n });\n }", "title": "" }, { "docid": "242917b275fd9e9a373eaa94123908ee", "score": "0.662936", "text": "public static function register_services(){\r\n\t\t( new Init )->register_hooks();\r\n\t\tforeach (self::get_services() as $class){\r\n\t\t\t$service = self::instantiate($class);\r\n\t\t\tif(method_exists( $service,\"register\")){\r\n\t\t\t\t$service->register();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "610247c4904fbc31eee2b29d9074ac63", "score": "0.65984523", "text": "public static function registerServices()\n\t{\n\t\tforeach ( self::getServices() as $class ) {\n\t\t\t$services = self::instantiates( $class );\n\n\t\t\tif( method_exists( $services, \"register\" ) )\n\t\t\t{\n\t\t\t\t$services->register();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3cbef782bea3f0b3a2ed9d2e36440c30", "score": "0.6465998", "text": "public function register()\n {\n // auth register login logout\n $this->app->bind('App\\Contracts\\Services\\AuthServiceInterface', 'App\\Services\\AuthService'); \n $this->app->bind('App\\Contracts\\Dao\\AuthDaoInterface', 'App\\Dao\\AuthDao');\n }", "title": "" }, { "docid": "6f04432d9018ea45f4702661afa40fc2", "score": "0.6440274", "text": "protected function registerServices()\n {\n // 使用CLI工厂类作为默认的服务容器\n $di = new CliDI();\n\n $di->set('config', function (){\n return require INJECT_PATH . '/config.php';\n }, true);\n\n /**\n * Registering a router\n */\n $di->set('router', function (){\n return require INJECT_PATH . '/console/router.php';\n }, true);\n\n /**\n * Database connection is created based in the parameters defined in the configuration file\n */\n $di->set('db', function (){\n return require INJECT_PATH . '/db.php';\n }, true);\n\n $di->set('parameter',function(){\n return require INJECT_PATH . '/parameter.php';\n }, true);\n\n /**\n * Handle the request\n */\n $this->setDI($di);\n }", "title": "" }, { "docid": "4c25eddfc6f95daef69639569206ceb8", "score": "0.63981557", "text": "public function register()\n {\n $this->registerPolicies();\n //\n }", "title": "" }, { "docid": "5990223b6a7cd4c36250cf4f7e3c4eae", "score": "0.63714623", "text": "public function register()\n {\n $this->app->bind('auth', function ($app) {\n $app['auth.loaded'] = true;\n return new MultiAuth($app);\n });\n }", "title": "" }, { "docid": "07ac49a239597747d0e0f30dfd8e1d9f", "score": "0.635567", "text": "public function register()\n {\n Auth::provider('portal', function($app, array $config) {\n return new PortalUserProvider;\n });\n\n Auth::extend('portal', function($app, $name, array $config) {\n return new PortalGuard(Auth::createUserProvider($config['provider']));\n });\n }", "title": "" }, { "docid": "3e91df6b4928766ccb8383b21f70534e", "score": "0.6341141", "text": "public function register()\n\t{\n\t\t$this->registerConnConfigApi();\n\t\t$this->registerPassengerApi();\n\t\t$this->registerOrmApi();\n\t\t$this->registerReservationsApi();\n\t\t$this->registerSearchApi();\n\t}", "title": "" }, { "docid": "1eceb16884340a3550003748ae2b18f2", "score": "0.63389564", "text": "public function register ()\n\t{\n\t\t$this->registerManager();\n\t\t$this->registerTwitterAuthenticator();\n\t\t$this->registerInstagramAuthenticator();\n\t}", "title": "" }, { "docid": "bf07a6ccbc1940e2be8abff91e94a2f6", "score": "0.63311565", "text": "public function register()\n {\n $this->registerServices();\n }", "title": "" }, { "docid": "86bf41f4d02c1fd625f6423e070042bb", "score": "0.63132757", "text": "public function register(): void\n {\n $this->app->singleton(QueryString::class, function () {\n $request = $this->app->get(Request::class);\n\n return new QueryString(urldecode($request->getRequestUri()));\n });\n\n $auth = $this->app->make(AuthManager::class);\n $auth->extend('jwt', function (BaseApplication $app, string $name, array $config) use ($auth) {\n $guard = new JwtGuard($auth->createUserProvider($config['provider'] ?? null), $name, $config);\n $guard\n // Set the request instance on the guard\n ->setRequest($app->refresh('request', $guard, 'setRequest'))\n // Set the event dispatcher on the guard\n ->setDispatcher($this->app['events']);\n return $guard;\n });\n }", "title": "" }, { "docid": "de0fb7a5417a7f70abc4a8a6427b03d0", "score": "0.6300168", "text": "public function register()\n\t{\n\t\t$this->registerJWTProvider();\n\t\t$this->registerJWTAuth();\n\t\t$this->registerJWTAuthFilter();\n\t}", "title": "" }, { "docid": "cd7a1b6ca8b59a4e46bf0772800736a7", "score": "0.6292519", "text": "private function registerSecurityProviders()\n {\n\n $this['user.provider'] = function ($app)\n {\n return new UserProvider($this['entity_manager']->getConnection() , $app);\n };\n\n $this->register(new SecurityServiceProvider());\n $this->register(new CsrfServiceProvider());\n }", "title": "" }, { "docid": "c28ae5c6167c3d91b993ef71caa8c81a", "score": "0.6290621", "text": "private function registerAuthy()\n {\n $this->app->singleton('authy', function () {\n return new Authy();\n });\n }", "title": "" }, { "docid": "e9b76d4b54db50c1adb9bbef84e62d82", "score": "0.62729555", "text": "protected function registerOtherServices()\n {\n foreach ($this->otherServices as $service) {\n $this->app->register($service);\n }\n }", "title": "" }, { "docid": "60e34bf6761c49d05d15e3ea0631ff7c", "score": "0.6255836", "text": "public function register()\n {\n foreach ($this->providers as $provider) {\n $this->app->register($provider);\n }\n }", "title": "" }, { "docid": "5c4375b600773749380a30297e798079", "score": "0.62315816", "text": "protected function registerBaseServices()\n {\n $this->app->instance('orchestra.platform.menu', $this->app['orchestra.widget']->make('menu.orchestra'));\n $this->app->instance('orchestra.platform.acl', $this->app['orchestra.acl']->make('orchestra'));\n\n $this->app->instance('app.menu', $this->app['orchestra.widget']->make('menu.app'));\n }", "title": "" }, { "docid": "fe0ddbe1731da8041633d60943c0bcc6", "score": "0.62257886", "text": "private function registerServices()\n {\n $this->app->singleton('arcanedev.head', function($app) {\n /** @var \\Illuminate\\Config\\Repository $config */\n $config = $app['config'];\n\n return new Head($config->get('head'));\n });\n }", "title": "" }, { "docid": "968a4659849c5598c8b0c7b23f602c8b", "score": "0.6225104", "text": "public function register()\n {\n foreach ($this->serviceProviders as $serviceProvider) {\n $this->app->register($serviceProvider);\n }\n }", "title": "" }, { "docid": "be4659368437b7e8e5b6d848ae7af18f", "score": "0.62228644", "text": "protected function registerServices()\n\t{\n\t\t// $config = include __DIR__ . \"/../apps/config/config.php\";\n\t\trequire __DIR__ . '/../apps/config/services.php';\n\t}", "title": "" }, { "docid": "a11e1fc712692a71807934118cb05bd3", "score": "0.62091595", "text": "public function register()\n {\n $alias = AliasLoader::getInstance();\n $alias->alias('Fractal', 'Spatie\\Fractal\\FractalFacade');\n $alias->alias('JWTAuth', 'Tymon\\JWTAuth\\Facades\\JWTAuth');\n\n App::register('Illuminate\\Auth\\AuthServiceProvider');\n App::register('Spatie\\Fractal\\FractalServiceProvider');\n App::register('Tymon\\JWTAuth\\Providers\\JWTAuthServiceProvider');\n App::register('Autumn\\Api\\ApiServiceProvider');\n }", "title": "" }, { "docid": "d9a93049aa0643e072e1370765ba6528", "score": "0.62049997", "text": "public function register()\n {\n $configPath = __DIR__ . '/../../config/config.php';\n $configPathApi = __DIR__ . '/../../config/api.php';\n $this->mergeConfigFrom($configPath, 'auth0');\n $this->mergeConfigFrom($configPathApi, 'auth0');\n // Bind the auth0 name to a singleton instance of the Auth0 Service\n $this->app->singleton(\"auth0\", function() {\n return new Auth0Service();\n });\n\n\n // When Laravel logs out, logout the auth0 SDK trough the service\n \\Event::listen('auth.logout', function() {\n \\App::make(\"auth0\")->logout();\n });\n\n }", "title": "" }, { "docid": "82cfa02f7ea08188ae4dcd9fcc9f9ea8", "score": "0.6184406", "text": "public function register()\n {\n $this->registerAuthy();\n\n $this->mergeConfig();\n }", "title": "" }, { "docid": "5b3ee57f10fcc05b2d23aed14b314df1", "score": "0.61805063", "text": "public function register()\n\t{\n\t\tforeach ($this->providers as $provider) {\n\t\t\t$this->app->register($provider);\n\t\t}\n\t}", "title": "" }, { "docid": "7b72c2af762210157134d7b74e5185cd", "score": "0.617546", "text": "protected function registerAuthFactory(): void\n {\n $this->app->singleton('whmcs.authfactory', function () {\n return new AuthFactory();\n });\n\n $this->app->alias('whmcs.authfactory', AuthFactory::class);\n }", "title": "" }, { "docid": "305b3865d0a23789a60550ab88a872be", "score": "0.616519", "text": "public function register()\n {\n $this->registerAccountService();\n\n $this->registerCurrentAccount();\n\n $this->registerMenuService();\n\n $this->registerReplyService();\n }", "title": "" }, { "docid": "40965b47e2566309756d39016132fa3f", "score": "0.61598396", "text": "public function register()\n {\n $this->registerHttpClientFactory();\n $this->registerAuthFactory();\n $this->registerWhmcsFactroy();\n $this->registerManager();\n $this->registerBindings();\n }", "title": "" }, { "docid": "daa6dbc4549d776967e162aaf095f392", "score": "0.6151602", "text": "public function register()\n {\n $this->app->bind(\n PaymentApiClient::class,\n fn () => new PaymentApiClient(config('api-dependencies.payment_api.base_url'))\n );\n\n $this->app->bind(\n CustomerApiClient::class,\n fn () => new CustomerApiClient(config('api-dependencies.customer_api.base_url'))\n );\n }", "title": "" }, { "docid": "5d9767c30464298b32dbfb4b2be063af", "score": "0.6150032", "text": "private function serviceProviders()\n {\n // $this->app->register('...\\...\\...');\n }", "title": "" }, { "docid": "31c97b20a043afba22d8d1675f8d76b2", "score": "0.61346424", "text": "public function boot()\n {\n $this->registerPolicies();\n\n Auth::viaRequest('cookie', function ($request) {\n return $this->checkAuth($request);\n });\n\n Auth::viaRequest('authIf', function ($request) {\n return $this->checkAuth($request);\n });\n }", "title": "" }, { "docid": "b447882a1530320e0ed18e0988768926", "score": "0.61239", "text": "public function register()\n {\n $this->app->bind(Northstar::class, function ($app) {\n $client = new LaravelNorthstar(config('services.northstar'));\n $client->setLogger($app['log']);\n\n return $client;\n });\n\n $this->app->bind(Blink::class, function ($app) {\n $client = new Blink(config('services.blink'));\n $client->setLogger($app['log']);\n\n return $client;\n });\n\n // Set alias for requesting from app() helper.\n $this->app->alias(Northstar::class, 'gateway.northstar');\n $this->app->alias(Blink::class, 'gateway.blink');\n\n // Backwards-compatibility.\n $this->app->alias(Northstar::class, 'northstar');\n\n // Register token validator w/ config dependency.\n $this->app->bind(Token::class, function ($app) {\n $key = config('auth.providers.northstar.key');\n\n // If not set, check old suggested config location:\n if (! $key) {\n $key = config('services.northstar.key');\n }\n\n return new Token(new LaravelRequestHandler(), $key);\n });\n\n // Register custom Gateway authentication guard.\n Auth::extend('gateway', function ($app, $name, array $config) {\n $provider = Auth::createUserProvider($config['provider']);\n\n return new GatewayGuard($provider, $app[Request::class]);\n });\n\n // Register custom Gateway user provider.\n Auth::provider('gateway', function ($app, array $config) {\n return new GatewayUserProvider();\n });\n }", "title": "" }, { "docid": "ae267e43fb304c3b95f850aab040c0a6", "score": "0.6121742", "text": "public function register()\n {\n $repositories = [\n LoginRepository::class => EloquentLoginRepository::class,\n UserRepository::class => EloquentUserRepository::class,\n // Rbac\n RoleRepository::class => EloquentRoleRepository::class,\n PermissionRepository::class => EloquentPermissionRepository::class,\n RolePermissionRepository::class => EloquentRolePermissionRepository::class,\n ];\n\n foreach ($repositories as $interface => $concrete) {\n /** @noinspection PhpUndefinedMethodInspection */\n $this->app->bind($interface, $concrete);\n }\n }", "title": "" }, { "docid": "0eed07924a43b327c70d18f296932c16", "score": "0.61199605", "text": "public function register() {\n if (Config::get('cache.on')) {\n $this->app->bind(BaseServiceInterface::class, \n\t\t\t\tBaseCache::class);\n $this->app->when(BaseCache::class)\n\t\t\t\t\t->needs(BaseServiceInterface::class)\n\t\t\t\t\t->give(BaseService::class);\n\t\t\t\t\n $this->app->bind(ProductServiceInterface::class, \n\t\t\t\tProductCache::class);\n $this->app->when(ProductCache::class)\n\t\t\t\t\t->needs(ProductServiceInterface::class)\n\t\t\t\t\t->give(ProductService::class);\n } else {\n $this->app->bind(BaseServiceInterface::class, BaseService::class);\n $this->app->bind(ProductServiceInterface::class, ProductService::class);\n }\n\n $this->app->bind(FileServiceInterface::class, FileService::class);\n }", "title": "" }, { "docid": "f4bc66e71c22a59380c102b652cb11ed", "score": "0.6117986", "text": "public function register()\n\t{\n\t\t$this->registerFractal();\n\t\t$this->registerTransformers();\n\t\t$this->registerControllers();\n\t}", "title": "" }, { "docid": "efb74eda30549347187106a7f0aaa08a", "score": "0.61158454", "text": "protected function registerBaseServiceProviders()\n {\n $this->register(new EventServiceProvider($this), [], true);\n $this->register(new RoutingServiceProvider($this), [], true);\n }", "title": "" }, { "docid": "621e54c412732a7ae7710a112bc725e6", "score": "0.6115463", "text": "protected function registerGuard()\n {\n Auth::resolved(function ($auth) {\n $auth->extend('passport', function ($app, $name, array $config) {\n return tap($this->makeGuard($config), function ($guard) {\n $this->app->refresh('request', $guard, 'setRequest');\n });\n });\n });\n }", "title": "" }, { "docid": "1b2e5072ce30a18a5f6802a2ad17a8c9", "score": "0.61136836", "text": "public function register()\n {\n $this->registerHelpers();\n\n $this->registerServices();\n }", "title": "" }, { "docid": "0fb58e90cc56b5b53a58290b506c0346", "score": "0.6102768", "text": "public function registerPassportResources()\n {\n Passport::ignoreMigrations();\n\n Passport::routes();\n // Middleware `oauth.providers` middleware defined on $routeMiddleware above\n \\Route::group(['middleware' => 'oauth.providers'], function () {\n Passport::routes(function ($router) {\n return $router->forAccessTokens();\n });\n });\n\n Passport::tokensExpireIn(Carbon::now()->addDays(15));\n $this->commands([\n InstallCommand::class,\n ClientCommand::class,\n KeysCommand::class,\n ]);\n }", "title": "" }, { "docid": "e365cf16f1f165954f8733b1977d8d3b", "score": "0.6102519", "text": "public function boot()\n {\n $this->app['auth']->viaRequest('api', function ($request) {\n if (!$request->hasHeader('Authorization')) {\n return null;\n }\n $user = null;\n try {\n $authorization = $request->header('Authorization', null);\n $jwt = str_replace('Bearer ', '', $authorization);\n $token = new GerenciadorToken(env('JWT_SECRET'));\n $decoded = $token->decodificar($jwt);\n if (!isset($decoded->id)) {\n return null;\n }\n $repositorioConta = new RepositorioConta();\n $conta = $repositorioConta->buscarId($decoded->id);\n if (!is_null($conta)) {\n $user = new GenericUser([\n 'id' => $conta->getId(),\n 'name' => $conta->getTitular(),\n 'email' => $conta->getEmail(),\n ]);\n }\n } catch (Exception $exc) {\n return null;\n }\n return $user;\n });\n }", "title": "" }, { "docid": "a4d31e13a08e4379ae4bf7e5f5347bf0", "score": "0.61021096", "text": "public function registerBaseServiceProviders(): void\n {\n $this->register(new EventServiceProvider($this));\n $this->register(new RoutingServiceProvider($this));\n }", "title": "" }, { "docid": "7cb698357c42a03482c710748eecbf5b", "score": "0.6098091", "text": "public function boot()\n {\n $this->registerPolicies();\n\n /**\n * Passport Register the routes necessary to issue access tokens and\n * revoke access tokens, clients, and personal access tokens:\n */\n Passport::routes(null, ['prefix' => 'api/v1/oauth']);\n // /* define gate for admin-manage-product permission */\n Gate::define('admin-manage-product', function ($user) {\n $userRole = $user->hasRole->hasPermissions;\n foreach ($userRole as $permission) {\n if ($permission->name == 'admin-manage-product') {\n return true;\n }\n }\n return GetResponses::permissionError();\n });\n\n // /* define gate for admin-manage-user permission */\n Gate::define('admin-manage-user', function ($user) {\n $userRole = $user->hasRole->hasPermissions;\n foreach ($userRole as $permission) {\n if ($permission->name == 'admin-manage-user') {\n return true;\n }\n }\n return GetResponses::permissionError();\n });\n // /* define gate for admin-manage-order permission */\n Gate::define('admin-manage-order', function ($user) {\n $userRole = $user->hasRole->hasPermissions;\n foreach ($userRole as $permission) {\n if ($permission->name == 'admin-manage-order') {\n return true;\n }\n }\n return GetResponses::permissionError();\n });\n // /* define gate for user-show-product permission */\n Gate::define('user-show-product', function ($user) {\n $userRole = $user->hasRole->hasPermissions;\n foreach ($userRole as $permission) {\n if ($permission->name == 'user-show-product') {\n return true;\n }\n }\n return GetResponses::permissionError();\n });\n // /* define gate for support-manage-order permission */\n Gate::define('support-manage-order', function ($user) {\n $userRole = $user->hasRole->hasPermissions;\n foreach ($userRole as $permission) {\n if ($permission->name == 'support-manage-order') {\n return true;\n }\n }\n return GetResponses::permissionError();\n });\n }", "title": "" }, { "docid": "b1392f41e85d5eabe20dc0d4bc9e8f7f", "score": "0.60978144", "text": "public function boot()\n {\n $this->registerPolicies();\n\n Passport::routes();\n\n // Auth gates for: User passwords\n Gate::define('change_password', function (User $user, $them) {\n return $user->isAdmin() || $them->id === $user->id;\n });\n\n // Auth gates for: User management\n Gate::define('user_management_access', function (User $user) {\n return $user->isAdmin();\n });\n\n // Auth gates for: Users\n Gate::define('user_access', function (User $user) {\n return $user->isAdmin();\n });\n Gate::define('user_create', function (User $user) {\n return $user->isAdmin();\n });\n Gate::define('user_view', function (User $user, User $them) {\n return true;\n // return $user->isAdmin() || $them->id == $user->id;\n });\n Gate::define('user_edit', function (User $user, User $them) {\n return $user->isAdmin() || $them->id == $user->id;\n });\n Gate::define('user_delete', function (User $user, User $them) {\n return $user->isAdmin();\n });\n\n // Auth gates for: Address\n Gate::define('address_view', function (User $user, $address) {\n return $user->isAdmin() || $address->user_id == $user->id;\n });\n Gate::define('address_edit', function (User $user, $address) {\n return $user->isAdmin() || $address->user_id == $user->id;\n });\n\n // Auth gates for: Post\n Gate::define('post_access', function (User $user) {\n return true;\n });\n Gate::define('post_create', function (User $user) {\n return $user->isAdmin() || $user->isPublisher();\n });\n Gate::define('post_view', function (User $user, Post $post) {\n return $user->isAdmin() || $post->published || $post->user_id == $user->id;\n });\n Gate::define('post_edit', function (User $user, Post $post) {\n return $user->isAdmin() || ($user->isPublisher() && $post->user_id == $user->id);\n });\n Gate::define('post_delete', function (User $user, Post $post) {\n return $user->isAdmin() || ($user->isPublisher() && $post->user_id == $user->id);\n });\n }", "title": "" }, { "docid": "ea5c5920837f597f68c19d0963bacb1f", "score": "0.609323", "text": "public function register()\n {\n // register providers\n }", "title": "" }, { "docid": "c7bad841dd11badf8371539013fadc02", "score": "0.60915214", "text": "public function register()\n {\n $this->mergeConfigFrom(\n __DIR__ . '/../../config/rbac.php', 'rbac'\n );\n\n $this->registerRBAC();\n\n $this->registerMiddleware();\n\n $this->commands($this->commands);\n }", "title": "" }, { "docid": "fc003ba256d20b38ed7a3f06314b0193", "score": "0.6085218", "text": "public function register(): void\n {\n $this->app->singleton('auth', function () {\n return new AuthManager();\n });\n\n $this->app->bind('auth.user', function (Application $app) {\n return $app['auth']->user();\n });\n\n $this->app->rebinding('request', function (Application $app, Request $request) {\n $request->setUserResolver(function () use ($app) {\n return $app['auth']->user();\n });\n });\n }", "title": "" }, { "docid": "d3b64ef35ccb594e84f124e5b249cf3f", "score": "0.60803264", "text": "private function registerSecurity()\n {\n\n // Fix for 5.3 (still needed with php5.4 as silex does not support the rebind)\n // used for non controllers as services routes\n $app = $this;\n\n //register our WSSE security classes on the app as a service so we can use WSSE as a security type on the firewall\n WSSE\\WsseSecurity::registerSecurity($app);\n\n //build firewalls to securure application\n //login has no secuirty and is used to authenticate the web users\n $this['security.firewalls'] = array(\n 'login' => array(\n 'pattern' => '^/login$',\n ),\n 'api' => array(\n 'pattern' => '^.*$',\n 'security' => true,\n 'stateless' => true,\n 'wsse' => array(\n \"cacheDir\" => stristr(strtolower($_SERVER[HTTP_HOST]), \"localhost\") ? \"/tmp/security_cache\" : \"/data/script_data/api.saveonenergy.com/security_cache\"\n )\n )\n );\n\n }", "title": "" }, { "docid": "e090f34c48d23eca04169cacd4e5b37b", "score": "0.6075191", "text": "public function boot(){\n $this->app['auth']->provider('rest',function(){\n $config = $this->app['config']['auth.providers.users'];\n return new RestUserProvider($this->app['hash'], $config['model']);\n });\n }", "title": "" }, { "docid": "b6ee8b5a80e5a37443dc6b8f3fa75232", "score": "0.607449", "text": "public function boot()\n {\n /** @var UserRepositoryInterface $userRepository */\n $userRepository = $this->app->get(UserRepositoryInterface::class);\n\n $this->app['auth']->viaRequest('api', static function ($request) use ($userRepository) {\n\n if ($request->input('api_token')) {\n return $userRepository->findUserByApiToken($request->input('api_token', ''));\n }\n\n if ($request->header('Authorization')) {\n $bearer = $request->header('Authorization');\n $exploded_bearer = explode(' ', $bearer);\n $token = $exploded_bearer[1];\n\n return $userRepository->findUserByApiToken((string)$token);\n }\n });\n }", "title": "" }, { "docid": "bdcc6fa418448409bfdf3136ca4cd405", "score": "0.6065277", "text": "public function register()\n {\n $this->registerManager();\n $this->registerGuard();\n }", "title": "" }, { "docid": "24e7e5a0a353401c8738142a6ad7895c", "score": "0.60540456", "text": "public function registerServices($di)\n\t{\n\t\t$config = include APP_PATH.'/apps/common/config/config.php';\n\n\t\t$di->set('dispatcher', function() use ($di) {\n\n\t\t\t$eventsManager = new \\Phalcon\\Events\\Manager;\n\n\t\t\t/**\n\t\t\t * Check if the user is allowed to access certain action using the SecurityPlugin\n\t\t\t */\n\t\t\t//$eventsManager->attach('dispatch:beforeDispatch', new SecurityPlugin);\n\n\t\t\t/**\n\t\t\t * Handle exceptions and not-found exceptions using NotFoundPlugin\n\t\t\t */\n\t\t\t$eventsManager->attach('dispatch:beforeException', new NotFoundPlugin);\n\n\t\t\t$dispatcher = new \\Phalcon\\Mvc\\Dispatcher;\n\t\t\t$dispatcher->setEventsManager($eventsManager);\n\n\t\t\t$dispatcher->setDefaultNamespace(\"Chen\\Manage\\Controllers\\\\\");\n\t\t\treturn $dispatcher;\n\t\t});\n\n\t\t/**\n\t\t * The URL component is used to generate all kind of urls in the application\n\t\t */\n\t\t$di->set(\n\t\t 'url',\n\t\t function () use ($di) {\n\t\t $url = new \\Phalcon\\Mvc\\Url();\n\t\t if (!$di->get('config')->manage->debug) {\n\t\t $url->setBaseUri($di->get('config')->manage->production->baseUri);\n\t\t $url->setStaticBaseUri($di->get('config')->manage->production->staticBaseUri);\n\t\t } else {\n\t\t $url->setBaseUri($di->get('config')->manage->development->baseUri);\n\t\t $url->setStaticBaseUri($di->get('config')->manage->development->staticBaseUri);\n\t\t }\n\t\t return $url;\n\t\t});\n\n\t\t//Registering the view component\n\t\t$di->set('view', function() {\n\t\t\t$view = new \\Phalcon\\Mvc\\View();\n\t\t\t$view->setViewsDir('../apps/manage/views/');\n\t\t\treturn $view;\n\t\t});\n\n\t\t//\tsession\n\t\t$di->set('session', function() {\n\t\t $session = new \\Phalcon\\Session\\Adapter\\Files(\n\t\t \tarray(\n \t\t'uniqueId' => 'my-app-1'\n \t\t)\n\t\t );\n\t\t $session->start();\n\t\t return $session;\n\t\t});\n\n\t\t/*\n\t\t* 设置安全组件\n\t\t* 2015-1-26\n\t\t*/\n\t\t$di->set('security', function(){\n\t\t\t$security = new \\Phalcon\\Security();\n\t\t\t//Set the password hashing factor to 12 rounds\n\t\t\t$security->setWorkFactor(12);\n\t\t\treturn $security;\n\t\t}, true);\n\n\t\t/**\n\t\t * Register the flash service with custom CSS classes\n\t\t * 2015-1-26\n\t\t*/\n\t\t \n\t\t$di->set('flash', function() {\n\t\t $flash = new \\Phalcon\\Flash\\Direct(array(\n\t\t 'error' => 'errorMessage',\n\t\t 'success' => 'successMessage',\n\t\t 'notice' => 'noticeMessage',\n\t\t 'warning' => 'warningMessage'\n\t\t ));\n\t\t return $flash; \n\t\t});\n\n\t\t$di->set('flashSession',function () {\n\t\t return new \\Phalcon\\Flash\\Session(array(\n\t\t 'error' => 'errorMessage',\n\t\t 'success' => 'successMessage',\n\t\t 'notice' => 'noticeMessage',\n\t\t 'warning' => 'warningMessage'\n\t\t ));\n\t\t }\n\t\t);\n\n\t\t/**\n\t\t* 注册用户组件\n\t\t* 2015-1-26\n\t\t*/\n\t\t$di->set('elements', function(){\n\t\t return new \\Chen\\Manage\\Library\\Elements();\n\t\t});\n\n\t}", "title": "" }, { "docid": "94fd0804ff62285259f3189070068b2c", "score": "0.6052872", "text": "public function register()\n {\n $this->registerConfigData();\n Passport::ignoreMigrations();\n $this->registerProviders();\n }", "title": "" }, { "docid": "ebfb2bb3e69426ddaab3727ac717a9e4", "score": "0.60509783", "text": "private function registerGlobalServices()\n {\n $di = new \\Phalcon\\DI\\FactoryDefault();\n \n // Disable views completely.\n $di->set('view', function(){\n $view = new \\Phalcon\\Mvc\\View();\n \n $view->setRenderLevel(\\Phalcon\\Mvc\\View::LEVEL_NO_RENDER);\n \n return $view;\n }, TRUE);\n \n \n $di->set('router', function() {\n $router = new \\Phalcon\\Mvc\\Router(FALSE);\n\n $router->notFound(array(\n 'namespace' => 'FreeForAll\\Modules\\Core\\Controllers',\n 'controller' => 'error',\n 'action' => 'notFound',\n ));\n \n $router->removeExtraSlashes(TRUE);\n \n // Add modules custom routes.\n $this->mountModulesRoutes($router);\n \n return $router;\n });\n \n $this->setDI($di);\n }", "title": "" }, { "docid": "5659f51723f268a3018a568e4b8216a6", "score": "0.6045534", "text": "static function register_services(){\n\n\tforeach (self::get_services() as $class) {\n\t\t$service = self::instantiate ($class);\n\t\tif (method_exists($service,'register')){\n\t\t\t$service->register();\n\t\t}\n\t\t\t\t# code...\n\t}\n\n\n}", "title": "" }, { "docid": "40dbdeb899470b68c54c4dc2e3983597", "score": "0.60428673", "text": "public function boot()\n {\n $this->registerPolicies();\n\n app('auth')->viaRequest('login-api', function ($request) {\n\n // The Authorization header\n $authHeader = $request->header('authorization');\n\n // The application header\n $appName = $request->header(config('auth.applicationHeader'));\n\n $http = new HttpClient([\n 'base_uri' => 'http://web/login-api/',\n 'headers' => [\n 'accept' => 'application/json',\n config('auth.applicationHeader') => $appName,\n 'authorization' => $authHeader\n ]\n ]);\n\n try {\n $response = $http->get('auth/validate');\n } catch (\\Throwable $e) {\n return null;\n }\n\n if ($response->getStatusCode() != 200) {\n return null;\n }\n\n return new User(json_decode($response->getBody()), $http);\n\n });\n\n }", "title": "" }, { "docid": "f8acb99e212f1f75b7e60843d794046f", "score": "0.604053", "text": "public function register()\n {\n $this->registerAccess();\n $this->registerBindings();\n $this->registerFacade();\n }", "title": "" }, { "docid": "e973368631110271d562373ac0fcf74f", "score": "0.6038124", "text": "public function register()\n {\n /**\n * 加密\n */\n $this->app->singleton('Encyption', \\App\\Services\\EncyptionService::class);\n /**\n * curl\n */\n $this->app->bind('Curl', \\App\\Services\\CurlService::class);\n /**\n * 增删改查\n */\n $this->app->bind('App\\Contracts\\CURD', 'App\\Contracts\\CURD');\n\n // $this->app->when('App\\Http\\Controllers\\Api\\Resources\\StaffController')\n // ->needs('App\\Contracts\\CURD')\n // ->give(\\App\\Services\\Tools\\CURDs\\StaffCurdService::class);\n\n $this->app->when('App\\Http\\Controllers\\HR\\StaffController')\n ->needs('App\\Contracts\\CURD')\n ->give(\\App\\Services\\Tools\\CURDs\\StaffCurdService::class);\n\n $this->app->when('App\\Http\\Controllers\\Api\\HRMController')\n ->needs('App\\Contracts\\CURD')\n ->give(\\App\\Services\\Tools\\CURDs\\StaffCurdService::class);\n\n $this->app->when('App\\Http\\Controllers\\HR\\TransferController')\n ->needs('App\\Contracts\\CURD')\n ->give(\\App\\Services\\Tools\\CURDs\\TransferCurdService::class);\n /**\n * 操作日志\n */\n $this->app->bind('App\\Contracts\\OperationLog', \\App\\Contracts\\OperationLog::class);\n \n $this->app->when('App\\Http\\Controllers\\HR\\StaffController')\n ->needs('App\\Contracts\\OperationLog')\n ->give(\\App\\Services\\Tools\\OperationLogs\\StaffOperationLogService::class);\n /**\n * Excel导入\n */\n $this->app->bind('App\\Contracts\\ExcelImport', 'App\\Contracts\\ExcelImport');\n /**\n * Excel导出\n */\n $this->app->bind('App\\Contracts\\ExcelExport', 'App\\Contracts\\ExcelExport');\n /**\n * HRM系统工具服务\n */\n $this->app->singleton('HRM', \\App\\Services\\HRMService::class);\n /**\n * API响应\n */\n $this->app->singleton('ApiResponse', \\App\\Services\\ApiResponseService::class);\n }", "title": "" }, { "docid": "e177e3f3322be3f1ccb17fb35f486056", "score": "0.603314", "text": "public function register()\n {\n foreach ($this->repositories as $repository => $controllers) {\n $this->app->when($controllers)\n ->needs(Repository::class)\n ->give($repository);\n }\n }", "title": "" }, { "docid": "6f496b17ae380315dc46c5eaa33f9641", "score": "0.6033012", "text": "public function register( ServiceProvider $provider );", "title": "" }, { "docid": "fbe64c931f8493bdf010ae34a6f2b59a", "score": "0.60292214", "text": "public function boot(): void\n {\n $this->registerPolicies();\n }", "title": "" }, { "docid": "fbe64c931f8493bdf010ae34a6f2b59a", "score": "0.60292214", "text": "public function boot(): void\n {\n $this->registerPolicies();\n }", "title": "" }, { "docid": "9538a7cfe00d6b0cb564e3a3eb43d81d", "score": "0.6016521", "text": "public function register() {\n\t\t// if the provider method exists then we are at least in Laravel 5.1\n\t\tif(method_exists('Illuminate\\Auth\\AuthManager', 'provider')) {\n\t\t\t// LDAP auth extension\n\t\t\tAuth::provider('ldap', function($app, array $config) {\n\t\t\t\treturn new \\CSUNMetaLab\\Authentication\\Providers\\UserProviderLDAP();\n\t\t\t});\n\n\t\t\t// database auth extension\n\t\t\tAuth::provider('dbauth', function($app, array $config) {\n\t\t\t\treturn new \\CSUNMetaLab\\Authentication\\Providers\\UserProviderDB();\n\t\t\t});\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Laravel 5.0\n\t\t\tAuth::extend('ldap', function() {\n\t\t\t\treturn new Guard(new \\CSUNMetaLab\\Authentication\\Providers\\UserProviderLDAP,\n\t\t\t\t\tApp::make('session.store'));\n\t\t\t});\n\t\t\tAuth::extend('dbauth', function() {\n\t\t\t\treturn new Guard(new \\CSUNMetaLab\\Authentication\\Providers\\UserProviderDB,\n\t\t\t\t\tApp::make('session.store'));\n\t\t\t});\n\t\t}\n\t}", "title": "" }, { "docid": "02cff3955cfdbe798ceb8a1075baa8f4", "score": "0.60157627", "text": "protected function loadServices() {\n\n\t\t$this->services = new ServiceContainer();\n\n\t\t// default Yolk service provider provides db connection manager, logging,\n\t\t// view factories, etc. You probably always do this unless you are\n\t\t// having some micro-framework fun.\n\t\t$this->services->register(\n\t\t\tnew \\yolk\\ServiceProvider()\n\t\t);\n\n\t}", "title": "" }, { "docid": "3a9d00ae8fd77932f0f7b4f078e8556e", "score": "0.6010117", "text": "public function boot()\n {\n $this->registerPolicies();\n $this->registerPassport();\n $this->registerGates();\n //\n }", "title": "" }, { "docid": "690ab6a9eddc82cece34018fa07bab75", "score": "0.6007079", "text": "public function boot()\n {\n $this->registerPolicies();\n\n $httpClient = new Client();\n $authAppBaseUrl = config('services.auth_app.base_url');\n $authAppService = new AuthAppService($httpClient, $authAppBaseUrl);\n $this->app->instance(AuthAppService::class, $authAppService);\n\n Auth::viaRequest('auth-app', function (Request $request) {\n /** @var AuthAppService $authAppService */\n $authAppService = resolve(AuthAppService::class);\n $tokenHeader = $request->header('Authorization');\n $tokenValue = preg_replace('/Bearer\\s+/', '', $tokenHeader);\n return $authAppService->getUserByAccessToken($tokenValue);\n });\n }", "title": "" }, { "docid": "c9b87674555cc5b0d44df3f4d54ba69f", "score": "0.6006822", "text": "public function register()\n {\n $this->app->singleton(AuthService::class,function(){\n return new AuthService(new User());\n });\n $this->app->singleton(StudentService::class,function(){\n return new StudentService(new User(),new OnGoingLec(),new StudentAttendance(),new Students());\n });\n $this->app->singleton(LecturerService::class,function(){\n return new LecturerService(new User(),new OnGoingLec(),new LecturerAttendance(),new Lecturer());\n });\n }", "title": "" }, { "docid": "083836dc1c3feae87dacc010390c66d0", "score": "0.60063773", "text": "public function register()\n {\n $this->app->bind(PaymentInterface::class, function() {\n $service = config('payments.default');\n return $service::instance();\n });\n\n $this->app->bind(UserService::class, function () {\n return new UserService(\n setting('auth'),\n config('voyager.user.default_role'),\n setting('billing.trial_days', 14),\n );\n });\n\n $this->app->bind(OpenpayService::class, function(){\n return new OpenpayService(\n config('openpay.merchant_id'),\n config('openpay.public_api_key'),\n config('openpay.private_api_key')\n );\n });\n }", "title": "" }, { "docid": "a6f3f6c2fc5ea3e3a46f92dfcd01ff5f", "score": "0.59920156", "text": "public function register()\n {\n //Register the service providers\n $this->registerServiceProviders();\n\n //Register the commands for the starter api starter\n $this->registerCommands();\n\n //Generate the jwt secret key\n $this->registerHelpers();\n }", "title": "" }, { "docid": "2e2808365df46b9aee9bc8afa2ea578c", "score": "0.59874797", "text": "public function registerGuard()\n {\n Auth::extend('passport', function ($app, $name, array $config) {\n return tap($this->makeGuard($config), function ($guard) {\n $this->app->refresh('request', $guard, 'setRequest');\n });\n });\n }", "title": "" }, { "docid": "d41d2521d19681a63593df66d31e5884", "score": "0.598712", "text": "private function registerServiceProviders()\n {\n foreach (glob($this->path('Providers/*.php')) as $file) {\n $provider = 'App\\\\Providers\\\\' . basename($file, '.php');\n $this->addServiceProvider($provider);\n }\n }", "title": "" }, { "docid": "3f24c428665bd751ace662e978b52dc6", "score": "0.598509", "text": "protected function registerAuthManager()\n {\n $this->app->bindShared('driver.auth', function ($app) {\n $app['auth.loaded'] = true;\n\n return new AuthManager($app);\n });\n }", "title": "" }, { "docid": "80c1df446ad75e4e45a1a60cc79d12ee", "score": "0.59758985", "text": "public function register()\n {\n $bindings = $this->bindings();\n count($bindings) > 0 && App::bind($bindings);\n\n $providers = $this->providers();\n count($providers) > 0 && App::register($providers);\n\n $config = $this->config();\n count($config) > 0 && Config::push($config);\n\n $subscribers = $this->subscribers();\n count($subscribers) > 0 && Event::register($subscribers);\n\n $this->routes();\n }", "title": "" }, { "docid": "763e0eca401130e66af053dfe7bbb33d", "score": "0.59711754", "text": "public function boot ()\n\t{\n\t\t$this->app[ 'auth.providers.manager' ]->set( 'twitter', $this->app[ 'auth.providers.twitter' ] );\n\t\t$this->app[ 'auth.providers.manager' ]->set( 'instagram', $this->app[ 'auth.providers.instagram' ] );\n\t}", "title": "" }, { "docid": "31fb3f3ef707fa400000d56734d0b471", "score": "0.59633505", "text": "public function register()\n {\n $this->registerRouteModelBindings();\n\n $this->registerDriverConfiguration();\n\n $this->registerRoutes();\n\n $this->registerDriverRepository();\n\n $this->registerAuthManager();\n\n $this->registerPasswordBroker();\n\n $this->registerEvents();\n\n// $this->registerMiddleWare();\n }", "title": "" }, { "docid": "c6cd32f9c1116dc508c2b4f4384734b5", "score": "0.59633386", "text": "public function register()\n {\n $this->registerCommands();\n $this->registerServiceProviders();\n }", "title": "" }, { "docid": "dad69f9aec632d3f8a2114c5f3676d8b", "score": "0.5960757", "text": "public function register_routes()\n {\n register_rest_route(\n $this->namespace,\n 'authenticate',\n [\n 'methods' => WP_REST_Server::CREATABLE,\n 'callback' => [$this, 'authenticate'],\n 'permission_callback' => __return_true,\n ]\n );\n\n }", "title": "" }, { "docid": "a648699dd0afba0eb04f1f56b9e6e149", "score": "0.5955479", "text": "public function boot()\n {\n $this->registerMiddleware();\n $this->registerViewComposerData();\n $this->registerResources();\n $this->registerPassportResources();\n }", "title": "" }, { "docid": "b9db3afd875d2464147a2a03c93b17e9", "score": "0.59546596", "text": "public function boot()\n {\n TokenApp::boot();\n\n\n // add api user provider.\n // @codeCoverageIgnoreStart\n Auth::provider('token-users', function ($app, array $config) {\n return new TokensUserProvider(TokenApp::makeUserModel());\n });\n // @codeCoverageIgnoreEnd\n\n // add api guard.\n Auth::extend('multi-tokens', function ($app, $name, array $config) {\n return new TokensGuard(\n new TokensUserProvider(TokenApp::makeUserModel()),\n $app->make('request'),\n 'api_token',\n 'api_token',\n ['access-api']\n );\n });\n\n // Load migrations.\n $this->loadMigrationsFrom(__DIR__ . '/../../migrations');\n\n // Register routes.\n $config = TokenApp::config();\n Route::prefix($config['route_prefix'])\n ->middleware($config['route_middleware'])\n ->namespace(\"Landman\\\\MultiTokenAuth\\\\Http\\\\Controllers\")\n ->group(__DIR__ . '/../../routes/api.php');\n\n // Publish files.\n $this->publishes([\n __DIR__ . '/../../config/multipletokens.php' => config_path('multipletokens.php'),\n ]);\n\n // Register commands.\n if ($this->app->runningInConsole()) {\n $this->commands([\n MakeApiClient::class,\n DeleteClient::class,\n RefreshClient::class,\n MakeApiClient::class,\n ListClients::class,\n ]);\n }\n\n\n }", "title": "" }, { "docid": "ec71945a57cfd9f85101ce7d2c76e835", "score": "0.59502566", "text": "protected function registerGuard()\n {\n Auth::extend('multi-token', function ($app, $name, array $config) {\n return tap($this->makeGuard($config), function ($guard) use ($app) {\n $this->app->refresh('request', $guard, 'setRequest');\n });\n });\n }", "title": "" }, { "docid": "15acef5ba98913f838011b1844e29be0", "score": "0.5950198", "text": "public function register()\n {\n $this->app->register(AuthServiceProvider::class);\n $this->app->register(EventServiceProvider::class);\n $this->app->register(RouteServiceProvider::class);\n }", "title": "" }, { "docid": "521c9f87f0da29d1574b0d9a9569d41a", "score": "0.59495294", "text": "public function register()\n {\n foreach ($this->services as $key => $service) {\n $this->app->singleton($key, $service);\n }\n }", "title": "" }, { "docid": "0dad7499c7357226f681fbaa738c01ce", "score": "0.5946658", "text": "public function register()\n {\n $this->app->bind(UserService::class,UserServiceImpl::class);\n $this->app->bind(AuthService::class,AuthServiceImpl::class);\n $this->app->bind(BookService::class,BookServiceImpl::class);\n $this->app->bind(LogService::class,LogServiceImpl::class);\n }", "title": "" }, { "docid": "743b0139cfba3c55eef327d7fa5110c2", "score": "0.59434295", "text": "public function register()\n {\n $this->app->bind(\n WithdrawServiceInterface::class,\n WithdrawService::class\n );\n $this->app->bind(\n OrderServiceInterface::class,\n config('services.otc_server.OrderService')\n );\n }", "title": "" }, { "docid": "41c7c1d180464aedea6c107e5c416658", "score": "0.5933606", "text": "public function boot()\n {\n $this->registerPolicies();\n\n $this->registerAdminAcessGate();\n }", "title": "" }, { "docid": "697092bc77dadaa865fc298302def2df", "score": "0.5932169", "text": "protected function registerAuthServiceConfig()\n {\n $this->app->singleton('AuthService\\Contracts\\AuthServiceConfigInterface', function ($app) {\n return \\AuthService\\AuthServiceConfig::fromArray($app['config']->get('authservice'));\n });\n }", "title": "" }, { "docid": "81c61ade8425eaac0134e04941e0c0bf", "score": "0.5927417", "text": "public function register()\n {\n Auth::extend('token', function ($app, $name, array $config) {\n return new TokenGuard(\n Auth::createUserProvider($config['provider']),\n $app['request'],\n $app['encrypter']\n );\n });\n }", "title": "" }, { "docid": "98b16869bff4354d3f033e7091a95061", "score": "0.5921479", "text": "public function register()\n {\n $this->loadAdminAuthConfig();\n\n $this->registerRouteMiddleware();\n }", "title": "" }, { "docid": "98b16869bff4354d3f033e7091a95061", "score": "0.5921479", "text": "public function register()\n {\n $this->loadAdminAuthConfig();\n\n $this->registerRouteMiddleware();\n }", "title": "" }, { "docid": "8865acf778e8fead11e9b84797facef6", "score": "0.5920934", "text": "public function boot()\n {\n\n\n $this->app['auth']->extend('token', function($app, $name, array $config) {\n // Return an instance of Illuminate\\Contracts\\Auth\\Guard...\n return new TokenAuthGuard(Auth::createUserProvider($config['provider']), $this->app[\"request\"]);\n });\n // Here you may define how you wish users to be authenticated for your Lumen\n // application. The callback which receives the incoming request instance\n // should return either a User instance or null. You're free to obtain\n // the User instance via an API token or any other method necessary.\n $this->app['auth']->viaRequest('web', function ($request) {\n// dd(\"TAMER\");\n if(array_key_exists(\"token\",$_COOKIE)){\n return User::where(\"token\",$_COOKIE[\"token\"])->first();\n }\n if ($request->header('Authorization')) {\n \n $response = explode(' ', $request->header('Authorization'));\n $token = trim($response[1]);\n return User::where('token', $token)->first();\n }\n\n });\n $this->app['auth']->viaRequest('api', function ($request) {\n\n if(array_key_exists(\"token\",$_COOKIE)){\n return User::where(\"token\",$_COOKIE[\"token\"])->first();\n }\n if ($request->header('Authorization')) {\n\n $response = explode(' ', $request->header('Authorization'));\n $token = trim($response[1]);\n return User::where('token', $token)->first();\n }\n });\n }", "title": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "3ce177ad359ff768a54b320d372b0ba8", "score": "0.0", "text": "public function saveLostItem(Request $request)\n {\n $this->validate($request, [\n 'request_id' => 'required',\n 'user_id' => 'required',\n 'lost_item_name' => 'required',\n ]);\n\n try {\n $LostItem = new UserRequestLostItems();\n $LostItem->request_id = $request->request_id;\n $LostItem->user_id = $request->user_id;\n $LostItem->lost_item_name = $request->lost_item_name;\n\n if ($request->has('comments')) {\n $LostItem->comments = $request->comments;\n }\n\n if ($request->has('status')) {\n $LostItem->status = $request->status;\n }\n\n if ($request->has('is_admin')) {\n $LostItem->is_admin = $request->is_admin;\n $LostItem->comments_by = 'admin';\n }\n\n if ($request->has('comments_by')) {\n $LostItem->comments_by = $request->comments_by;\n }\n\n $LostItem->save();\n\n if ($request->ajax()) {\n return response()->json(['message' => trans('admin.lostitem_msgs.saved')]);\n } else {\n return back()->with('flash_success', trans('admin.lostitem_msgs.saved'));\n }\n } catch (ModelNotFoundException $e) {\n return back()->with('flash_error', trans('admin.lostitem_msgs.not_found'));\n }\n }", "title": "" } ]
[ { "docid": "df5c676a539300d5a45f989e772221a5", "score": "0.7008786", "text": "public function store()\n {\n return $this->storeResource();\n }", "title": "" }, { "docid": "0155000129669b2263a98f58d7370a8e", "score": "0.68630815", "text": "public function store()\n\t{\n\t\t$id = Input::get('id');\n\t\t\n\t\tAuth::user()->storages_id = $id;\n\t\tAuth::user()->save();\n\t}", "title": "" }, { "docid": "d7f07f6a9415189aaea40420852193a0", "score": "0.67858595", "text": "public function store()\n\t{\n\t\t$input = Input::all();\n\t\t$validation = Validator::make($input, CmsResource::$rules);\n\n\t\tif ($validation->passes())\n\t\t{\n\t\t\t$this->resource->create($input);\n\n\t\t\treturn Redirect::route('backend.resources.index');\n\t\t}\n\n\t\treturn Redirect::route('backend.resources.create')\n\t\t\t->withInput()\n\t\t\t->withErrors($validation)\n\t\t\t->with('message', 'There were validation errors.');\n\t}", "title": "" }, { "docid": "6a69b87756eaa032d9aa6f13233a63fd", "score": "0.6649136", "text": "public function store()\n\t{\n\t\t$validator = Resource::validate(Input::all());\n\t\tif ($validator->fails()) {\n\t\t\treturn Redirect::to('resources/create')\n\t\t\t\t->withErrors($validator)\n\t\t\t\t->withInput(Input::all());\n\t\t} else {\n\t\t\t// store\n\t\t\t$resource \t\t\t\t\t= new Resource;\n\t\t\t$resource->name = Input::get('name');\n\t\t\t$resource->description = Input::get('description');\n\t\t\t$resource->url \t\t\t\t= Input::get('url');\n\t\t\t$resource ->hits = 0;\n\t\t\t$resource->level = Input::get('level');\n\t\t\t$resource->faculty = Input::get('faculty');\n\n\t\t\t$deviceIds = Input::get('devices');\n\n\t\t\t$tagIds \t\t\t\t\t= Input::get('tag_ids');\n\t\t\t$resource->save();\n\t\t\tif($tagIds != ''){\n\t\t\t\t$tagIds = explode(\",\", $tagIds);\n\t\t\t\t$resource->tags()->attach($tagIds);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif($deviceIds != '')\n\t\t\t{\n\t\t\t\tforeach ($deviceIds as $device_type) {\n\t\t\t\t\t$device = new Device(array(\"device_type\" => $device_type));\n\n\t\t\t\t\t$resource->devices()->save($device);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn Redirect::to('resources');\n\t\t\t}\n\t}", "title": "" }, { "docid": "0a2dcecef8071427bb4f3c22969d6817", "score": "0.6617829", "text": "public function store()\n {\n if (!$this->id) {\n $this->id = $this->insertObject();\n } else {\n $this->updateObject();\n }\n }", "title": "" }, { "docid": "016e88402095d4ad79d6ee698ea43b6e", "score": "0.6570788", "text": "public function store()\n\t{\n\t\t// validate\n\t\t// read more on validation at http://laravel.com/docs/validation\n\t\t$rules = array(\n\t\t\t'initials' => 'required',\n\t\t);\n\t\t$validator = Validator::make(Input::all(), $rules);\n\n\t\t// process the login\n\t\tif ($validator->fails()) {\n\t\t\treturn Redirect::to('resources/create')\n\t\t\t\t->withErrors($validator)\n\t\t\t\t->withInput(Input::except('password'));\n\t\t} else {\n\t\t\t// store\n\t\t\t$resource = new Resource;\n\t\t\t$resource->initials = Input::get('initials');\n\t\t\t$resource->save();\n\n\t\t\t// redirect\n\t\t\tSession::flash('message', 'Successfully created resource!');\n\t\t\treturn Redirect::to('resources');\n\t\t}\n\n\t}", "title": "" }, { "docid": "592a9a876f9eb27f42d2201dd961a364", "score": "0.65692353", "text": "public function store(Request $request)\n {\n $resource = Resource::create($request->all());\n if(isset($request->document)){\n $resource->path = $request->document->store('resources');\n $resource->save();\n }\n return redirect()->route('resource.index');\n }", "title": "" }, { "docid": "17a0a26914be4b4eb351482e6387c032", "score": "0.64327", "text": "public function store()\n\t{\n\t\t\n\t\ttry {\n\n\t\t\treturn $this->newResource();\n\n\t\t}\n\t\tcatch(Illuminate\\Database\\QueryException $e)\n\t\t{\n\n\t\t\treturn Response::json(array('ok' => 0, 'msg' => Lang::get('errors.errorCreatingElement'), \n\t\t\t\t'internalMsg' => $e->getMessage()));\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "55b375ea7c339e8f0e9c38919b53b1db", "score": "0.63734114", "text": "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "title": "" }, { "docid": "55b375ea7c339e8f0e9c38919b53b1db", "score": "0.63734114", "text": "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "title": "" }, { "docid": "55b375ea7c339e8f0e9c38919b53b1db", "score": "0.63734114", "text": "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63628685", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63628685", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63628685", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.63394964", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" } ]
3df657bb7f037fb69bf90c8a3b53f7b9
Get suitable placeholder text: title.
[ { "docid": "6527b9557c291fc9d5b0e3905f5e9ffc", "score": "0.0", "text": "function placeholder_ip()\n{\n\treturn '123.45.6.4';\n}", "title": "" } ]
[ { "docid": "9374df5876bfba5f0978ad65b928256d", "score": "0.740945", "text": "function title_placeholder( $title ) {\n\n\t\t$screen = get_current_screen();\n\n\t\tif ( 'event' === $screen->post_type ) {\n\t\t\t$title = __( 'Enter Event Name Here', 'be-events-calendar' );\n\t\t}\n\n\t\treturn $title;\n\t}", "title": "" }, { "docid": "9e96939f2c067b4dd11eac2c43736d2b", "score": "0.7283308", "text": "public function getPlaceholder(): string\n {\n return $this->placeholder;\n }", "title": "" }, { "docid": "49996a730643c386a21d289bf7ddb299", "score": "0.72091615", "text": "function title_placeholder( $translation ) {\n\n\t\tglobal $post;\n\t\tif ( isset( $post ) && 'article' == $post->post_type && 'Enter title here' == $translation ) {\n\t\t\t$translation = 'Enter Name Here';\n\t\t}\n\t\treturn $translation;\n\n\t}", "title": "" }, { "docid": "e6f4ecd411bdf9cf6bc15674fb4afbe9", "score": "0.6974989", "text": "public function getPlaceholder()\n\t{\n\t\treturn $this->placeholder;\n\t}", "title": "" }, { "docid": "6c138779ffe29f4087118dec75f7f27b", "score": "0.6914129", "text": "function cpm_wp_poll_title_placeholder( $title ){\r\n $screen = get_current_screen();\r\n if ( 'cpm_wp_poll' == $screen->post_type ) {\r\n $title = __('Enter Poll Question', '_cpmpoll');\r\n }\r\n return $title;\r\n}", "title": "" }, { "docid": "ca4d01ca0058a27db863a8a70dd5e678", "score": "0.68608016", "text": "function askme_title_placeholder( $title ){\r\n\r\n $screen = get_current_screen();\r\n\r\n if ( 'askme' == $screen->post_type ){\r\n $title = __('Pergunte ao Transas');\r\n }\r\n\r\n return $title;\r\n}", "title": "" }, { "docid": "7887885033e3908db1a6820361d527b6", "score": "0.6721802", "text": "function title($title) {\r\n\t\t\t\t\t\t\t\r\n\t\t\tif($this->titleText) {\r\n\t\t\t\t$title = str_replace('[Actual]', $title, $this->titleText); \r\n\t\t\t\t$this->titleText = NULL;\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn $title;\r\n\t\t\r\n\t\t}", "title": "" }, { "docid": "487353578a4a58f11cde0ab3f35c630e", "score": "0.6506895", "text": "function Placeholder()\n {\n return parent::CreatePlaceholder();\n }", "title": "" }, { "docid": "59c341e792c9ecd8a23fa3e3695ccc73", "score": "0.64535797", "text": "public function getTitle()\n {\n return $this->field_title ?? $this->field_title;\n }", "title": "" }, { "docid": "d6b16936a8959b8999a99a68453f5c60", "score": "0.6446826", "text": "public function getTitle() {\n\t\treturn Title::makeTitle( NS_FILE, 'Avatar-placeholder' . uniqid() . '.jpg' );\n\t}", "title": "" }, { "docid": "0f545502c25672097c875eabf35778d3", "score": "0.64232975", "text": "protected function getLabel() {\n\t\t\n\t\t$html = '';\n\t\t$value = trim($this->element['title']);\n\n\t\t$html .= '<div style=\"clear: both;\"></div>';\n\t\t$html .= '<div style=\"margin: 20px 0 20px 20px; font-weight: bold; padding: 5px; color: #444444; border-bottom: 1px solid #444444;\">';\n\t\tif ($value) {\n\t\t\t$html .= Text::_($value);\n\t\t}\n\t\t$html .= '</div>';\n\n\t\treturn $html;\n\t}", "title": "" }, { "docid": "16fc5fa8626f10b03e51e003c4b54964", "score": "0.6392145", "text": "public function getPlaceholder()\n\t{\n\t\treturn $this->placeholder++;\n\t}", "title": "" }, { "docid": "1f73667f601859820e51cc60c760062e", "score": "0.6384731", "text": "private function get_title_template() {\n\t\treturn $this->get_template( 'title' );\n\t}", "title": "" }, { "docid": "a928d9085987d9624b782eaf91c0c19c", "score": "0.63798165", "text": "public function getDefaultTitle()\n {\n if ($this->title == '') {\n return '[Greengrape]';\n }\n\n return $this->title;\n }", "title": "" }, { "docid": "3602a9cc717b0c2cacba7382a19d59bd", "score": "0.63784724", "text": "public function _getDisplayTitle() {\n\t\t$title = empty($this->title) ? 'Format: ' . $this->description : $this->title;\n\t\treturn $title;\n\t}", "title": "" }, { "docid": "33788cc469cec9b4fb0896f2e7d2ca35", "score": "0.6373332", "text": "function get_title() {\n\tif (isset($this->conf->title) && strlen($this->conf->title)) {\n\t\t$title = $this->conf->title;\n\t} else {\n\t\t$title = get_string('progress', 'block_progress');\n\t}\n\treturn $title;\n}", "title": "" }, { "docid": "4c66afe24bddb266c4555f02d25ba49d", "score": "0.63706446", "text": "abstract public function get_title();", "title": "" }, { "docid": "4c66afe24bddb266c4555f02d25ba49d", "score": "0.63706446", "text": "abstract public function get_title();", "title": "" }, { "docid": "49e29ed3748ab0c1c36bbb61463909e3", "score": "0.63465065", "text": "public function get_title();", "title": "" }, { "docid": "81d003bb97a3b7ff39ec2f6993d2e220", "score": "0.6338919", "text": "public function title_callback() {\n\t\tprintf(\n\t\t\t'<input type=\"text\" id=\"title\" name=\"my_option_name[title]\" value=\"%s\" />',\n\t\t\tisset( $this->options['title'] ) ? esc_attr( $this->options['title'] ) : ''\n\t\t);\n\t}", "title": "" }, { "docid": "c30361b029c183aae1378a98ffeb3b89", "score": "0.63338786", "text": "public function codexin_core_title_placeholder( $title, $post ) {\n\t\t$post_type_name = $this->post_type_name;\n\t\t$name = self::cx_beautify( $post_type_name );\n\n\t\tif ( $post_type_name === $post->post_type ) {\n\t\t\t/* translators: post type name */\n\t\t\t$cx_title = sprintf( esc_html__( 'Enter %s Title', 'codexin-core' ), $name );\n\t\t\treturn $cx_title;\n\t\t}\n\n\t\treturn $title;\n\t}", "title": "" }, { "docid": "cd1adb55dd1f09d2e5452bc0d80f0723", "score": "0.6327591", "text": "abstract protected function get_title();", "title": "" }, { "docid": "f8ff172c9c7eba7816400ae968ff5267", "score": "0.6315927", "text": "public function title(string $title = null);", "title": "" }, { "docid": "a6e1a2ee34ba81a3d6d14bbb09732a93", "score": "0.63131285", "text": "function getTitle()\n {\n if(NULL != $this->title){\n return $this->title;\n }else{\n return 'tidak ada judul yang tersedia';\n }\n }", "title": "" }, { "docid": "6c0a8906849939fddc7a3575fbed72e2", "score": "0.6307306", "text": "public function getExtractTitle(): ?string {\n return StringFormat::extractString($this->title, 15); \n }", "title": "" }, { "docid": "3b4cd460064959faaac56b8678284f98", "score": "0.6306828", "text": "public static function update_title_placeholder_text( $text, $post ) {\n\t\tif ( $post->post_type == 'pmpro_sitewide_sale' ) {\n\t\t\t$text = esc_html__( 'Enter title here. (For reference only.)', 'pmpro-sitewide-sales' );\n\t\t}\n\n\t\treturn $text;\n\t}", "title": "" }, { "docid": "9999dd15803f216bd1be521d7b10787c", "score": "0.6281829", "text": "public function getDefaultTitle()\n\t{\n\t\treturn '';\n\t}", "title": "" }, { "docid": "c955601dd246979ea340acbe74a19384", "score": "0.6264243", "text": "public function title($title);", "title": "" }, { "docid": "c955601dd246979ea340acbe74a19384", "score": "0.6264243", "text": "public function title($title);", "title": "" }, { "docid": "89b1b08ae9087f326c7b7e424e7ef9bb", "score": "0.6263935", "text": "function title_content() {\n\t\tif(array_key_exists('title', $_SESSION)) {\n\t\t\tif($_SESSION['title'] != null) {\n\t\t\t\treturn \"<input type=\\\"text\\\" name=\\\"title\\\" value=\\\"\".htmlentities($_SESSION['title']).\"\\\"/>\";\n\t\t\t}\n\t\t}\n\t\treturn \"<input type=\\\"text\\\" name=\\\"title\\\" placeholder=\\\"Bingo Fun!\\\" />\";\n\t}", "title": "" }, { "docid": "4feaf28d7c46f8e2e072685b71893d27", "score": "0.62422764", "text": "private function get_title() {\n $title = get_field('buy__title');\n\n if (!$title) {\n return;\n }\n\n return $title;\n }", "title": "" }, { "docid": "b5997156f497a36904b5842cf742e211", "score": "0.62414366", "text": "function pxlz_edgtf_get_title_text() {\n $page_id = pxlz_edgtf_get_page_id();\n $title = get_the_title($page_id);\n\n if ((is_home() && is_front_page()) || is_singular('post')) {\n $title = get_option('blogname');\n } elseif (is_tag()) {\n $title = single_term_title('', false) . esc_html__(' Tag', 'pxlz');\n } elseif (is_date()) {\n $title = get_the_time('F Y');\n } elseif (is_author()) {\n $title = esc_html__('Author:', 'pxlz') . \" \" . get_the_author();\n } elseif (is_category()) {\n $title = single_cat_title('', false);\n } elseif (is_archive()) {\n $title = esc_html__('Archive', 'pxlz');\n } elseif (is_search()) {\n $title = esc_html__('Search results for: ', 'pxlz') . get_search_query();\n } elseif (is_404()) {\n $title_404 = pxlz_edgtf_options()->getOptionValue('404_title');\n $title = !empty($title_404) ? $title_404 : esc_html__('404 - Page not found', 'pxlz');\n }\n\n return apply_filters('pxlz_edgtf_title_text', $title);\n }", "title": "" }, { "docid": "af9c34bc22612e05367708e304f970a8", "score": "0.6227973", "text": "public function title_callback()\n {\n printf(\n '<input type=\"text\" id=\"title\" name=\"my_option_name[title]\" value=\"%s\" />',\n isset( $this->options['title'] ) ? esc_attr( $this->options['title']) : ''\n );\n }", "title": "" }, { "docid": "fdbcc713e5f240aeb48f0ba921a5e200", "score": "0.6202495", "text": "public function getTitle()\n {\n if( isset($this->title) )\n {\n return $this->title;\n }\n return null;\n }", "title": "" }, { "docid": "6c5b88d47573157eacd9151ed9382d1a", "score": "0.61944926", "text": "public function getTitle() {\n\t\t$this->checkDisposed();\n\t\t\t\n\t\tif ($this->_title === null)\n\t\t\t$this->load();\n\t\treturn $this->_title;\t\n\t}", "title": "" }, { "docid": "395549b34c96fcb611cb8f46d03496e4", "score": "0.6193969", "text": "public function title()\n\t{\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "498bd497986c4b95fb34815b21b560d9", "score": "0.61859924", "text": "function Title() {\n\t\t$title = parent::Title();\n\t\tif( $title ) {\n\t\t\treturn <<<HTML\n<span class=\"keylabel\">$title</span>\nHTML;\n\t\t}\n\t\telse\n\t\t\treturn '';\n\t}", "title": "" }, { "docid": "7b4e11904388a873a0be2cbcee79929a", "score": "0.617552", "text": "function getTitle() ;", "title": "" }, { "docid": "4d0022da4e58297183ab04f465b67976", "score": "0.6172658", "text": "public function title();", "title": "" }, { "docid": "e09dae91e7452d1cc44718d6bc521330", "score": "0.61712456", "text": "public function title($format = '')\n {\n return $this->getVar('title', $format);\n }", "title": "" }, { "docid": "a1744f1900757086abc0b7bdeea7e6ee", "score": "0.6169387", "text": "public function get_title() {\n\t\treturn '';\n\t}", "title": "" }, { "docid": "548cc2c309e3c3966b5d6d88cf7e6deb", "score": "0.6168914", "text": "function getLocalizedTitle() {\n\t\treturn $this->getLocalizedData('title');\n\t}", "title": "" }, { "docid": "548cc2c309e3c3966b5d6d88cf7e6deb", "score": "0.6168914", "text": "function getLocalizedTitle() {\n\t\treturn $this->getLocalizedData('title');\n\t}", "title": "" }, { "docid": "548cc2c309e3c3966b5d6d88cf7e6deb", "score": "0.6168914", "text": "function getLocalizedTitle() {\n\t\treturn $this->getLocalizedData('title');\n\t}", "title": "" }, { "docid": "ee70fe46fdd438e1ce282f068b68e700", "score": "0.6168398", "text": "public function title(): string\n {\n return $this->check->title();\n }", "title": "" }, { "docid": "17dbe4bc554ab6702fb4e89da6f70dbb", "score": "0.6153135", "text": "public function getTitle()\n {\n return defined($this->get('conf_title')) ? constant($this->get('conf_title')) : $this->get('conf_title');\n }", "title": "" }, { "docid": "4268f8ab9c1655cfc3ba5d86320b3573", "score": "0.6149888", "text": "function showTitle(){\n global $title;\n if(isset($title)){\n\treturn $title;\n }\n else{\n return \"default\";\n}\n \n}", "title": "" }, { "docid": "cfdf4b1519a3a97e867f55dd2b2608ce", "score": "0.6147661", "text": "function GetTitle() {\n if (empty($this->page_txt['mtitle']))\n return stripslashes($this->page_txt['pname']);\n else\n return stripslashes($this->page_txt['mtitle']);\n }", "title": "" }, { "docid": "427b88fca755630d8adefac330441260", "score": "0.6140249", "text": "public function getTitleText()\n {\n return $this->_dataHelper->getTitleText();\n }", "title": "" }, { "docid": "9cce6abec51c9f5ea9f315bffa586cfd", "score": "0.6138512", "text": "private function renderTitle(): ?string\n {\n if ($this->title === null) {\n return '';\n }\n\n $options = $this->titleOptions;\n $options['id'] = $this->getTitleId();\n $tag = ArrayHelper::remove($options, 'tag', 'h5');\n $encode = ArrayHelper::remove($options, 'encode', $this->encodeTags);\n\n Html::addCssClass($options, ['modal-title']);\n\n return Html::tag($tag, $this->title, $options)\n ->encode($encode)\n ->render();\n }", "title": "" }, { "docid": "1cd84bc439c48458d95142c59edcfa31", "score": "0.6137821", "text": "public function title()\n {\n return $this->title;\n }", "title": "" }, { "docid": "1cd84bc439c48458d95142c59edcfa31", "score": "0.6137821", "text": "public function title()\n {\n return $this->title;\n }", "title": "" }, { "docid": "281c8a31ef76bd01ba6d68c84d8e048d", "score": "0.61374974", "text": "public static function placeholder() : string\n {\n if (!isset(static::$placeholderCounter)) {\n static::$placeholderCounter = 1;\n } else {\n static::$placeholderCounter += 1;\n }\n\n return static::PARAM_PREFIX . static::$placeholderCounter;\n }", "title": "" }, { "docid": "4cc9cc88a2c74523a6ac7dea353729df", "score": "0.6136902", "text": "public function getTitle()\n {\n return $this->fields['title'];\n }", "title": "" }, { "docid": "1a545b324e9e3669ea54c50cd9163e3f", "score": "0.61306494", "text": "public function getTitle()\n {\n $value = $this->get(self::title);\n return $value === null ? (string)$value : $value;\n }", "title": "" }, { "docid": "c21e6594ce9f050c47397ada00a2884c", "score": "0.6123968", "text": "public function getPanelTitle();", "title": "" }, { "docid": "9831e0f0b5a350261a355188b246b363", "score": "0.6117481", "text": "function get_title($text)\n{\n return preg_match(\"/<title>(.*?)<\\/title>/si\", $text, $title) ? $title[1] : \"\";\n}", "title": "" }, { "docid": "bd8ed8926894f01cf333bc4d0f9b639e", "score": "0.6104408", "text": "abstract public function getCaption();", "title": "" }, { "docid": "c53f180b4b9c1c908f801345f214f45f", "score": "0.60983443", "text": "public function getTitle( ) { return $this->title; }", "title": "" }, { "docid": "347a04689083387664a0c5663cffb79c", "score": "0.60977864", "text": "public static function getTitle(): string;", "title": "" }, { "docid": "15afad9a696e7754e4f7cee439653436", "score": "0.6095549", "text": "public function get_title() {\n\t\treturn apply_filters( 'learn_press_gateway_title', $this->title, $this->id );\n\t}", "title": "" }, { "docid": "14909ebd57b1d82093f65eb34f15c2cb", "score": "0.60942894", "text": "public function title()\n {\n return sprintf(\" <title>%s</title>\\n\", $this->title) ;\n }", "title": "" }, { "docid": "fe56d4df5d517b6e63d855251f92fe17", "score": "0.60929704", "text": "public function title($title = null)\n {\n if (! is_null($title)) {\n $this->set('title', $title);\n }\n\n if ($title === false) {\n $this->set('title', null);\n }\n\n $fallback = ($this->slug() === 'global')\n ? translate('cp.general_globals')\n : ucfirst($this->slug());\n\n return $this->get('title', $fallback);\n }", "title": "" }, { "docid": "3887b9d63de913883815cd1d803ec935", "score": "0.6092859", "text": "function getPictureTitle() {\n\t\treturn $this->getVar('title');\n\t}", "title": "" }, { "docid": "044173e0f3fa81dd52d3cd8de6acf69b", "score": "0.60920984", "text": "function dentalimplants_title( $title ) {\n\n\tif ( genesis_get_custom_field( 'team_title' ) ) {\n\t\t$title = '<span class=\"team-name\">' . $title . '</span><span class=\"team-title\">' . genesis_get_custom_field( 'team_title' ) . '</span>';\n\t} else {\n\t\t$title = '<span class=\"team-name\">' . $title . '</span>';\n\t}\n\n\treturn $title;\n}", "title": "" }, { "docid": "a38b368c8c343dd88172274a1b22c572", "score": "0.60838634", "text": "function title_param()\n {\n return 'title';\n }", "title": "" }, { "docid": "226738ada8d012e63c8b638487878b80", "score": "0.6079988", "text": "public function getTitle()\n {\n if (!array_key_exists('title', $this->_data)) {\n return null;\n }\n return $this->_data['title'];\n }", "title": "" }, { "docid": "7dc7211a9df72863741637a53777aa9e", "score": "0.60753864", "text": "function get_title(){\n\t\t\treturn $this->title;\n\t\t}", "title": "" }, { "docid": "fee8e48509ba8e5fc3cfa1eaa72874b2", "score": "0.6073674", "text": "public function get_ourPicksTitle()\n\t{\n\t\t$settings = $this->form_data;\n\t\t\n\t\tif ( ! empty( $settings['internal']['title'] ) )\n\t\t{\n\t\t\treturn $settings['internal']['title'];\n\t\t}\n\t\t\n\t\treturn $this->objectTitle;\n\t}", "title": "" }, { "docid": "74aca9c984467520eaece3b4399f0751", "score": "0.607294", "text": "function htmlTitle( $text )\r\n{\r\n echo( '<title>'.ucwords( $text ).' - '.getOption( 'name' ).'</title>' );\r\n}", "title": "" }, { "docid": "4dec72eb4d3cc9546bc67bb3eb2bddea", "score": "0.6072424", "text": "public function getTitle() {\n switch ($this->currentStep) {\n case self::STEP_ONE:\n return $this->t('Data Selection');\n\n case self::STEP_TWO:\n return $this->t('Use existing data');\n\n case self::STEP_THREE:\n return $this->t('Entity Selection');\n\n default:\n return $this->t('Mapping Data');\n }\n }", "title": "" }, { "docid": "e73f708167c21dc72d5256f927ec3a21", "score": "0.6070225", "text": "public function title()\n {\n return $this->title;\n }", "title": "" }, { "docid": "3e313ef07e4c3ca903229312e261bbef", "score": "0.60628384", "text": "function get_title_tag() {\n\n\t$title = get_template_var( 'title_tag' );\n\n\tif ( $title ) {\n\t\t$title .= ' | ' . 'My Plugin Manager';\n\t}\n\n\treturn $title;\n\n}", "title": "" }, { "docid": "b5d454a84e8b5ae2d764f85dd15bf840", "score": "0.6060559", "text": "function getTitle() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "8156e38c326ca4559c61d4b114fef0f7", "score": "0.6052844", "text": "function fetch_step_title($step)\r\n{\r\n\tglobal $steptitles, $installcore_phrases;\r\n\r\n\tif (isset($steptitles[\"$step\"]))\r\n\t{\r\n\t\treturn sprintf($installcore_phrases['step_title'], $step, $steptitles[\"$step\"]);\r\n\t}\r\n}", "title": "" }, { "docid": "46f52ccde48fc69fa3e67e61eddae2f3", "score": "0.6050944", "text": "public function getTitle() {\n\t\treturn ($this->title);\n\t}", "title": "" }, { "docid": "4a402d9d79cf2f09a8f7bfef38a07a49", "score": "0.60454714", "text": "public function getTaskTitle() {}", "title": "" }, { "docid": "a61e92d331e5024902c55742b9131b40", "score": "0.60454166", "text": "function pxlz_edgtf_get_title() {\n $page_id = pxlz_edgtf_get_page_id();\n $show_title_area_meta = pxlz_edgtf_get_meta_field_intersect('show_title_area', $page_id) == 'yes' ? true : false;\n $show_title_area = apply_filters('pxlz_edgtf_show_title_area', $show_title_area_meta);\n\n if ($show_title_area) {\n $type_meta = pxlz_edgtf_get_meta_field_intersect('title_area_type', $page_id);\n $type = !empty($type_meta) ? $type_meta : 'standard';\n $template_path = apply_filters('pxlz_edgtf_title_template_path', $template_path = 'types/' . $type . '/templates/' . $type . '-title');\n $module = apply_filters('pxlz_edgtf_title_module', $module = 'title');\n $layout = apply_filters('pxlz_edgtf_title_layout', $layout = '');\n\n $title_tag_meta = pxlz_edgtf_get_meta_field_intersect('title_area_title_tag', $page_id);\n $title_tag = !empty($title_tag_meta) ? $title_tag_meta : 'h1';\n\n $subtitle_tag_meta = pxlz_edgtf_get_meta_field_intersect('title_area_subtitle_tag', $page_id);\n $subtitle_tag = !empty($subtitle_tag_meta) ? $subtitle_tag_meta : 'h6';\n\n $parameters = array(\n 'holder_classes' => pxlz_edgtf_get_title_holder_classes(),\n 'holder_styles' => pxlz_edgtf_get_title_holder_styles(),\n 'holder_data' => pxlz_edgtf_get_title_holder_data(),\n 'wrapper_styles' => pxlz_edgtf_get_title_wrapper_styles(),\n 'title_image' => pxlz_edgtf_get_title_background_image(),\n 'title' => pxlz_edgtf_get_title_text(),\n 'title_tag' => $title_tag,\n 'title_styles' => pxlz_edgtf_get_title_styles(),\n 'subtitle' => pxlz_edgtf_subtitle_text(),\n 'subtitle_tag' => $subtitle_tag,\n 'subtitle_styles' => pxlz_edgtf_get_subtitle_styles(),\n );\n $parameters = apply_filters('pxlz_edgtf_title_area_params', $parameters);\n\n pxlz_edgtf_get_module_template_part($template_path, $module, $layout, $parameters);\n }\n }", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.60451233", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.60451233", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.60451233", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.60451233", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.60451233", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.60451233", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.60451233", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.60451233", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.60451233", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.60451233", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.60451233", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.60451233", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.60451233", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.60451233", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.60451233", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.60451233", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.60451233", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.60451233", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.60451233", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.60451233", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.60451233", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.60451233", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.60451233", "text": "public function getTitle();", "title": "" } ]
e69b23f5ae16a4894fe95895c989a17c
Creates a new model. If creation is successful, the browser will be redirected to the 'view' page.
[ { "docid": "2d228a41b7612bd37681d6f7e8e5238b", "score": "0.0", "text": "public function actionCreate($id = null, $duplicado = null) {\n $wizardStep = 0;\n $this->setPageTitle($this->wizardTabs[$wizardStep]['desc']);\n $model = $id ? Produto::model()->findByPk($id) : new Produto();\n $model->setScenario($this->wizardTabs[$wizardStep]['scenario']);\n\n if (isset($_POST) && $_POST) {\n if ($model->setDadosGerais($_POST, $_FILES)) {\n if ($model->finalizar_cadastro == 'true') {\n $this->redirect(array('view', 'id' => $model->id));\n }\n $this->redirect(Yii::app()->createAbsoluteUrl($this->wizardTabs[$wizardStep + 1]['url'], array('id' => $model->id)));\n Yii::app()->end();\n } else {\n if (count($model->getErrors()) > 0)\n foreach ($model->getErrors() as $error) {\n Yii::app()->user->setFlash('error', $error[0]);\n }\n }\n }\n\n if ($model->id) {\n $this->wizardTabs[$wizardStep]['move'] = true;\n }\n\n $oMateria = Materia::model()->naoExcluido()->findAll();\n\n $this->render('create', array(\n 'model' => $model,\n 'tabs' => $this->wizardTabs,\n 'activeTab' => $wizardStep,\n 'oMateria' => $oMateria,\n 'backUrl' => Yii::app()->createAbsoluteUrl('produto/admin'),\n 'duplicado' => $duplicado,\n ));\n }", "title": "" } ]
[ { "docid": "efe75cd5c9d5b5e42203d942b2c0d142", "score": "0.79624486", "text": "public function actionCreate()\n {\n /** @var \\yii\\db\\ActiveRecord $model */\n $model = new $this->model();\n if ($this->loadAttributes($model, Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['index',]);\n } else {\n return $this->render($this->create_view, [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "136e4a887137fcac8167c2472c6a015d", "score": "0.76214856", "text": "public function actionCreate()\n {\n $model = new Request();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "62f8a1f31602fe3f511abd5dd972c3d4", "score": "0.7602879", "text": "public function actionCreate()\n {\n $model = new Request();\n $model->user = Yii::$app->user->identity->getId();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "db3a97e80baaa42e7f0f5bbe728a3432", "score": "0.75861335", "text": "public function actionCreate()\n {\n $model = $this->findModel();\n\n $this->saveModel($model);\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "e537828342521034313cdc61166a2512", "score": "0.7537867", "text": "public function actionCreate()\n {\n $model = new Make();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "17ccb01f4f81fca37f388bdad6c29637", "score": "0.7529334", "text": "public function actionCreate()\n {\n if (Yii::$app->user->isGuest) {\n return $this->goHome();\n }else{\n $model = new TblVehicles();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "641d39fda46eea008d76b66057c80544", "score": "0.7523334", "text": "public function actionCreate()\n {\n $model = new Vehicle();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "d5accd99ffbad3fe1e8de5c968321497", "score": "0.7496457", "text": "public function actionCreate()\r\n {\r\n $model = new User();\r\n\r\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\r\n return $this->redirect(['view', 'id' => $model->id]);\r\n } else {\r\n return $this->render('create', [\r\n 'model' => $model,\r\n ]);\r\n }\r\n }", "title": "" }, { "docid": "67b3172c42de809bd5671d27267d9b9d", "score": "0.74848515", "text": "public function actionCreate() {\n $model = new AppBasicTbl();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "8d24831105b487f7ca79aa2092cfaaf5", "score": "0.7475252", "text": "public function actionCreate()\n \t{\n \t$model = new User(); \n \tif ($model->load(Yii::$app->request->post())) \n\t\t{\n\t \t\t$model->save(false);\n \t\treturn $this->redirect(['view', 'id' => $model->id]);\n \t}\n\t\telse\n\t\t{\n\t\t\treturn $this->redirect('index.php?r=site/createuser');\n\n\t\t /* return $this->render('create', [createuser\n\t\t 'model' => $model,\n\t\t ]);*/\n \t}\n \t}", "title": "" }, { "docid": "925fa0fc896e1f83acdbf0e59ff1e96e", "score": "0.7461119", "text": "public function actionCreate()\n {\n $model = new User();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "925fa0fc896e1f83acdbf0e59ff1e96e", "score": "0.7461119", "text": "public function actionCreate()\n {\n $model = new User();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "925fa0fc896e1f83acdbf0e59ff1e96e", "score": "0.7461119", "text": "public function actionCreate()\n {\n $model = new User();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "3318251695196f6c19b706bb58dd6bbd", "score": "0.7438296", "text": "public function actionCreate()\n {\n $model = new Post();\n\n if ($this->request->isPost) {\n if ($model->load($this->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n } else {\n $model->loadDefaultValues();\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "c09923df4ff1a404ba2692b527019174", "score": "0.7436741", "text": "public function actionCreate()\n {\n $model = new User();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->user_id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "c09923df4ff1a404ba2692b527019174", "score": "0.7436741", "text": "public function actionCreate()\n {\n $model = new User();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->user_id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "011b4db967dd9565926152a90d64dc80", "score": "0.74307716", "text": "public function actionCreate()\n {\n $model = new Admin();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "d5ef7101dc9ed732bc9781db59016a42", "score": "0.74185526", "text": "public function actionCreate()\n {\n $model = new Post();\n\n $data = $this->getFormDataFromRequest($model);\n\n if ($model->load($data) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render(\n 'create',\n [\n 'model' => $model,\n 'userOptions' => $this->getUserOptions(),\n ]\n );\n }", "title": "" }, { "docid": "e1f8229f6de6b6738b3b9a01e9b3a5ab", "score": "0.7415489", "text": "public function actionCreate()\n {\n $this->setModelByConditions();\n\n if (Yii::$app->request->isPost &&\n $this->model->load(Yii::$app->request->post()) &&\n $this->setAdditionAttributes() &&\n $this->model->save()) {\n\n if ($this->viewCreated) {\n $redirectParams = [\n $this->urlPrefix.'view',\n 'id' => $this->model->getId(),\n ];\n } else {\n $redirectParams = [\n $this->urlPrefix.'index',\n ];\n }\n\n return $this->redirect($redirectParams);\n }\n\n return $this->render('create',\n ArrayHelper::merge(\n [\n 'model' => $this->model\n ],\n $this->getAdditionFields()\n )\n );\n }", "title": "" }, { "docid": "5bb229d7c501695da96911fa2a5eaa61", "score": "0.7402387", "text": "public function actionCreate()\n {\n //Yii::$app->controller->enableCsrfValidation = false;\n \n $model = new Post();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "bad7c0caf63495627fc51b8efc449ba8", "score": "0.73902017", "text": "public function actionCreate()\n {\n $model = new User();\n\n if ($model->loadAll(Yii::$app->request->post()) && $model->saveAll()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "abccf494e89fb871497fdcec07021d1c", "score": "0.73865396", "text": "public function actionCreate()\r\n {\r\n $model = new User();\r\n\r\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\r\n return $this->redirect(['view', 'id' => $model->uid]);\r\n } else {\r\n return $this->render('create', [\r\n 'model' => $model,\r\n ]);\r\n }\r\n }", "title": "" }, { "docid": "581b8df9719d7da1a796ab97c688f7aa", "score": "0.7339978", "text": "public function actionCreate()\n {\n $model = new User();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "88cb386ec3da1325bc8a4f84523655fc", "score": "0.7312932", "text": "public function actionCreate()\n {\n $model = new Fcthhcdetail();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "46b7ae545f83da9a08443acc1e59c254", "score": "0.7294134", "text": "public function actionCreate()\n {\n $model = $this->createModel();\n $models = array_merge(['model' => $model], $this->getRelatedModels($model));\n if ($this->loadModels($models, Yii::$app->request->post())) {\n if ($this->validateModels($models)) {\n if ($this->saveModels($models, true)) {\n $this->setFlashMessages('create', false, $models);\n if (($result = $this->afterSave($models, true)) !== null) {\n return $result;\n }\n }\n else {\n $this->setFlashMessages('create', true, $models);\n if (($result = $this->onSaveError($models, true)) !== null) {\n return $result;\n }\n }\n } else {\n $this->onValidateError($models);\n }\n }\n\n if (Yii::$app->request->isAjax) {\n return $this->renderAjax('create', $models);\n } else {\n return $this->render('create', $models);\n }\n }", "title": "" }, { "docid": "da55c5917f43f96a9d9200217eba833d", "score": "0.72898364", "text": "public function actionCreate()\n {\n $model = new CatModelo();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['index', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "6023c816f72fbfc35c185179f8026fd3", "score": "0.727746", "text": "public function actionCreate()\n {\n $model = new Users();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->user_id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "e40121d38f8f7fc66868bb5e36b50939", "score": "0.72743744", "text": "public function actionCreate()\n {\n $model = new Finca();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "319173b8ac84f647e3c64494801e4c67", "score": "0.7271141", "text": "public function actionCreate()\n {\n $model = new Customers();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "ce18fe01ece89c0fe48f4e7ced28d5d8", "score": "0.7265924", "text": "public function actionCreate()\n {\n $model = new AlEntradasDetalle();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "3c194a47b5c3c08542f4d3586703d41e", "score": "0.72617424", "text": "public function actionCreate()\n {\n $model = new Reqdosen();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id_request]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "3188e54306d0a778d5c7bb86b558f119", "score": "0.725649", "text": "public function actionCreate()\n {\n $model = new AdMain();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "3cc27f2a3d33e69ab2b73b36d3fe9385", "score": "0.72332424", "text": "public function actionCreate()\n {\n $model = new Razas();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "f14c48a670aff17d38987de14331d45e", "score": "0.7230522", "text": "public function actionCreate()\n {\n $model = new Comments();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "db3c75e5564c85fc636c4efd674b5ae1", "score": "0.7230112", "text": "public function actionCreate()\n {\n $model = new TblSodorFactor();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "7096f74af14a391355e98c584ed7738a", "score": "0.7216103", "text": "public function create()\n {\n return view('models/create');\n }", "title": "" }, { "docid": "ed860635cd20b2bd913b4f5c4aff3159", "score": "0.71918607", "text": "public function actionCreate()\n {\n $model = new SolicitudDesembolso();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "3781b96d3d7f631b8f5c89a52ff6cba5", "score": "0.71755505", "text": "public function actionCreate()\n {\n /*$model = new Factura();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }*/\n }", "title": "" }, { "docid": "97284bd356d137c819725a7d60d9a7fe", "score": "0.71735805", "text": "public function actionCreate()\n {\n $model = new Post();\n $model->scenario = 'create';\n if ($model->load(Yii::$app->request->post()) && $model->savePost()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "fa52b6fc6515d6b28ac25479142dea6c", "score": "0.71550167", "text": "public function actionCreate()\n {\n $model = new Article();\n\n $event = $this->getArticleEvent($model);\t\n $this->trigger(self::EVENT_BEFORE_CREATE, $event);\n\t\t\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n $this->trigger(self::EVENT_AFTER_CREATE, $event);\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "68ba18b6147507c26456c99a91db4b54", "score": "0.7149136", "text": "public function actionCreate()\n {\n $model = new Article();\n $model->loadDefaultValues();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "1c6f863774ec59be95e415805adb80a2", "score": "0.71433747", "text": "public function actionCreate()\n {\n $model = new InfoUser();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "51ec91f5d43374c260a61a933d136e78", "score": "0.71044123", "text": "public function actionCreate()\n {\n $model = new User();\n $model->loadDefaultValues();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n \tYii::$app->getSession()->setFlash('success', $model->username.' 添加成功,结果将展示在列表。');\n return $this->redirect(['index']);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "f16937c44675e697c598063ce9b1eb3f", "score": "0.7098603", "text": "public function actionCreate()\n\t{\n\t\t$model = new User;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif ( isset($_POST['User']) ) {\n\t\t\t$model->attributes = $_POST['User'];\n\t\t\tif ( $model->save() )\n\t\t\t\t$this->redirect(array('view', 'id' => $model->userId));\n\t\t}\n\n\t\t$this->render('create', array(\n\t\t\t\t\t\t\t\t\t 'model' => $model,\n\t\t\t\t\t\t\t\t));\n\t}", "title": "" }, { "docid": "4318af3c713c824ed971d61eb52a8660", "score": "0.70966196", "text": "public function actionCreate()\n {\n $model = new Warga_data();\n\n // if ($model->load(Yii::$app->request->post()) && $model->save()) {\n // return $this->redirect(['view', 'id' => $model->ID]);\n // } else {\n return $this->renderAjax('_form', [\n 'model' => $model,\n ]);\n // }\n }", "title": "" }, { "docid": "729449d06bca843b3153c6655f958cac", "score": "0.70678055", "text": "public function actionCreate()\n\t{\n\t\t$model=new User;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['User']))\n\t\t{\n\t\t\t$model->attributes=$_POST['User'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "e89ea3de1143e040bb4ac3af4cbf0db6", "score": "0.7067472", "text": "public function actionCreate()\n {\n $model = new Status();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "e98aa52aa316011d10cc66710442cc1e", "score": "0.7065908", "text": "public function actionCreate()\n {\n $model = new Route();\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->name]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "d1dec8058b580e840dbca9acd5b70f57", "score": "0.706151", "text": "public function actionCreate()\n {\n $model = new Launch();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "d0646d36f9cd1b12e470f5f01c973b4b", "score": "0.7052272", "text": "public function actionCreate()\n {\n $model = new Albums();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n $model->creatorID = Yii::$app->user->id;\n $model->save();\n\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "5e44ad9851350652deda56a618f8a15c", "score": "0.7049308", "text": "public function actionCreate()\n {\n $model = new Order();\n\n if ($model->load(Yii::$app->request->post())) {\n if($model->validate()){\n $model->save();\n return $this->redirect(['view', 'id' => $model->id]);\n }\n }\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "2e479f6e8308e1e72badb3c30ea8471d", "score": "0.7042573", "text": "public function actionCreate()\n {\n $model = new Orders();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "57fede3232cb08cfc717071f087a25ef", "score": "0.7038844", "text": "public function actionCreate()\n {\n $model = new Fund();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "29915b1bf69b4502a1b820e65d56516b", "score": "0.70372593", "text": "public function actionCreate()\n {\n $model = new QaaMainBase();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render(\n 'create',\n [\n 'model' => $model,\n 'categoryDD' => QaaCategory::getCategoryDropDownList()\n ]\n );\n }\n }", "title": "" }, { "docid": "db01e072656865da5393df72cab6c4ec", "score": "0.7033945", "text": "public function actionCreate()\n {\n $model = new Order();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['update', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "926ae19e9b49f54e405275426cc4a37b", "score": "0.70309997", "text": "public function actionCreate()\n {\n $model = new Goods();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "926ae19e9b49f54e405275426cc4a37b", "score": "0.70309997", "text": "public function actionCreate()\n {\n $model = new Goods();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "c38305ef127ef7fdc096649df8575aee", "score": "0.70228404", "text": "public function actionCreate()\n {\n\n $model = new Third();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->orderId]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "4b43fa772325b66ee77fcba3e40dd52b", "score": "0.70209706", "text": "public function actionCreate()\n {\n $model = new Question();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->fr_id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "482dbecb445afd7e60e8db09b4fa5e91", "score": "0.7018784", "text": "public function actionCreate()\n {\n $model = new Arealist();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['index', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "8c21d831481d0d74fdc23a82c3ab403a", "score": "0.70169663", "text": "public function actionCreate()\n {\n $model = new Tblproduct();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "22a57812c8bafbcd47e4bc89e6a0ee86", "score": "0.7015957", "text": "public function actionCreate()\n {\n $model = new CarModel();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n echo json_encode([\"success\" => true, \"message\" => \"Model has been created\", 'redirect' => Yii::$app->getUrlManager()->createUrl(['car-model/update','id' => $model->id])]);\n exit;\n }\n\n return $this->renderAjax('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "2acab3a121be1925e0276ec742329696", "score": "0.70145", "text": "public function create()\r\n {\r\n $model = new CustomerModel();\r\n\r\n echo $this->view(\"customerCreate\", \"main\", $model);\r\n }", "title": "" }, { "docid": "de7fe21be94a93b2d178ddda5830be17", "score": "0.701184", "text": "public function actionCreate() {\n $model = new Site;\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['Site'])) {\n $model->attributes = $_POST['Site'];\n if ($model->save())\n $this->redirect(array('view', 'id' => $model->site_id));\n }\n\n $this->render('create', array(\n 'model' => $model,\n ));\n }", "title": "" }, { "docid": "eb836cee17b0dca02f8b32cc72cda362", "score": "0.7006759", "text": "public function create()\n {\n return view('admin.models.create');\n }", "title": "" }, { "docid": "c94317a2e20da7c27a70671decff8991", "score": "0.70064545", "text": "public function actionCreate()\n {\n $model = new InfoPelanggan();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id_pelanggan]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "1577de9e1f2435776e839776ed63272d", "score": "0.7005601", "text": "public function actionCreate() {\n $model = new Users;\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['Users'])) {\n $model->attributes = $_POST['Users'];\n if ($model->save())\n $this->redirect(array('view', 'id' => $model->id));\n }\n\n $this->render('create', array(\n 'model' => $model,\n ));\n }", "title": "" }, { "docid": "29e05cb6a9b582ea3ade5696f0743c8a", "score": "0.69994545", "text": "public function actionCreate()\n {\n $model = new Tester();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "fe9a0cf324dc97a05031483bc6465710", "score": "0.6996843", "text": "public function actionCreate()\n {\n $model = new Category();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "8306b756788cbbdf19dd334fe8eda840", "score": "0.69960076", "text": "public function actionCreate()\n {\n $model = new Photo();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "a4cf0cb7fd2f0497f185e5b302ad263b", "score": "0.69930696", "text": "public function actionCreate()\n {\n $model = new BdPerson();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->p_id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "6de7ddcce1a7988cfe6613012a594f13", "score": "0.6992297", "text": "public function actionCreate()\n {\n $model = new Order();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['index']);\n }\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "4842777099ad3ffd8a356801a3aef96d", "score": "0.6986501", "text": "public function actionCreate()\n {\n $model = new Store();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "9fd0d8d9ac5f1c52b0b78555aa040d2a", "score": "0.6984326", "text": "public function actionCreate()\n\t{\n\n\t\t$model=new Usuario;\n\t\tif(isset($_POST['Usuario']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Usuario'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id_usuario));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "74ff3e1e2afbb5715333667b25d48282", "score": "0.6983049", "text": "public function actionCreate()\n {\n $model = new Custom();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->custom_id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "fbf7b71b0c50dfd0d3ef2e011bb67996", "score": "0.6978484", "text": "public function actionCreate()\n {\n $model = new OrdersHept();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "f7fa70b0186519efdbf0669813aa02fa", "score": "0.6976034", "text": "public function actionCreate()\n {\n $model = new Profile();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "369c30a142e1f6221eaef719630a5252", "score": "0.6975523", "text": "public function actionCreate()\n {\n $model = new Course();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->course_id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "1f0908a884cf8e15ecb940db7ac2763f", "score": "0.69731796", "text": "public function actionCreate()\n {\n $model = new Uploadfile();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "c503e5ee2af882adca31c8871618010f", "score": "0.6970853", "text": "public function actionCreate() {\n $model = new OrderMaster();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "873c0f7c5836094ab3087cbd1e1ff474", "score": "0.6962351", "text": "public function actionCreate()\n {\n $model = new Nap();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'kod' => $model->kod, 'name' => $model->name]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "e75f3aff5e3d6f698383807c2e895c89", "score": "0.6956012", "text": "public function actionCreate()\n {\n $model = new Person;\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['Person']))\n {\n $model->attributes = $_POST['Person'];\n if ($model->save())\n $this->redirect(array('view', 'id' => $model->id));\n }\n\n $this->render('create', array(\n 'model' => $model,\n ));\n }", "title": "" }, { "docid": "e6fdb92f0b8f4f70afa2fbe84f4834fb", "score": "0.6954019", "text": "public function actionCreate() {\n $model = new Lending();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'lending_id' => $model->lending_id, 'user_id' => $model->user_id, 'copy_id' => $model->copy_id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "9a946e010d751a7a07e028f4834a1bfb", "score": "0.695299", "text": "public function actionCreate()\n {\n $model = new Report();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "4df5973dd837aca05325757ba975aad0", "score": "0.6942467", "text": "public function actionCreate()\n {\n $model = new TbOrders();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->tb_oId]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "1d2ca7c0fe0364ac047b678a74693701", "score": "0.69345164", "text": "public function actionCreate()\n {\n $model = new Catalog();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "4ab329b3b0f9e4f8bb87396992381cc3", "score": "0.69342643", "text": "public function actionCreate()\n {\n $model = new UserAccount;\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "337919aaf4c0ada631fe34386d276f27", "score": "0.69337267", "text": "public function actionCreate()\n {\n $model = new Tag();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "346f7283fefd2abbaa950650ed4bf331", "score": "0.69307905", "text": "public function actionCreate()\n {\n $model = new StudentsClass();\n $loadedFlag = $model->load(Yii::$app->request->post());\n $us = User::find()->where(['id' => Yii::$app->user->id])->one();\n\n if($loadedFlag){\n $model->curator_id = Yii::$app->user->id;\n\n $model->school_id =$us->school_id;\n }\n\n\n if ($loadedFlag && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "2ea81186264ad395d07d966a34cf6444", "score": "0.6926242", "text": "public function actionCreate()\n {\n $model = new PurchaseOrderDetails();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "13175c23dc21897aea41766f80869d86", "score": "0.69222206", "text": "public function actionCreate()\n {\n $model = new Categories();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "632f0a0dca4f9644ecfd67b5b64ef38a", "score": "0.69140774", "text": "public function actionCreate()\n {\n $model = new Content();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "6839a79b61064ed2d6b3c87e3aff015a", "score": "0.69130415", "text": "public function create()\n\t\t{\n\t\t\t\t// redirect to the form for creating a new entry inside the db\n\t\t\t\treturn view('create');\n\t\t}", "title": "" }, { "docid": "51427d4d2806bbddc7c8b86fd8828515", "score": "0.6910277", "text": "public function actionCreate()\n {\n $model = new Provider();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "281d7c7c0d298b5a5a9799766164499a", "score": "0.69084954", "text": "public function actionCreate() {\n $model = new Plano();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "16a7d443e66670d1ebee33f13ef6aec6", "score": "0.6906446", "text": "public function actionCreate()\n {\n $model = new Project();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "f107c167b78598e492e20ed6246a4149", "score": "0.6905755", "text": "public function create()\n {\n return view('client.models.create');\n }", "title": "" }, { "docid": "0e877f5fbd01292046220c352861456b", "score": "0.6901785", "text": "public function actionCreate()\n {\n $model = new Locations;\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n\t\t\tYii::$app->getSession()->setFlash('success', [\n 'type' => 'info',\n 'duration' => 500,\n 'icon' => 'fa fa-info-circle',\n 'message' => Yii::t('app','Success Save'),\n 'title' => 'Info',\n 'positonY' => Yii::$app->params['flashMessagePositionY'],\n 'positonX' => Yii::$app->params['flashMessagePositionX']\n ]);\n return $this->redirect(['index']);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "246cf8d9754504d0cc319e1755d22446", "score": "0.68972623", "text": "public function actionCreate()\n {\n\n return $this->redirect(['update','id'=>1]);\n\n $model = new CmsPortal();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "2aceba5627c1933bc0104434e4b54500", "score": "0.6896928", "text": "public function actionCreate()\n {\n $model = new Play();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "cc65185f9203c4b69f46df88e9066a15", "score": "0.689531", "text": "public function actionCreate()\n {\n $model = new DataTa();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'dataTa_Id' => $model->dataTa_Id, 'ta_taId' => $model->ta_taId]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" } ]
b1d3b80552ad5c0d0ef2ba030c280996
////////////////////////////////////////////////////////////////////////////// ///////////////////////////////// HELPERS //////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
[ { "docid": "badc16b43bcbd320f7f5b085b508927b", "score": "0.0", "text": "protected function askQuestions($for, array $questions)\n {\n $key = $for === 'vcs' ? new RepositoryKey() : new ConnectionKey(['server' => 0]);\n $credentials = [];\n $config = [];\n\n foreach ($questions as $credential => $question) {\n $answer = $this->askQuestion($for, $credential, $question);\n $key->$credential = $answer;\n\n // Store credential\n $constant = $this->getCredentialConstant($for, $credential);\n $credentials[$constant] = $answer;\n $config[$credential] = '%%'.$constant.'%%';\n\n // Special cases\n if ($credential === 'repository' && !$key->needsCredentials()) {\n break;\n } elseif ($credential === 'host' && $key->isFtp()) {\n $this->command->writeln(' Oh damn is that an FTP host? Good luck buddy 👌');\n }\n }\n\n // Set in current configuration\n $configKey = $for === 'vcs' ? 'vcs' : 'connections.'.$for;\n $this->config->set($configKey, $config);\n\n return $credentials;\n }", "title": "" } ]
[ { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.6443028", "text": "private function __construct() {}", "title": "" }, { "docid": "bf8b6b2eac30c1afd7ebe8a254f2bc09", "score": "0.6415309", "text": "private function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "bf8b6b2eac30c1afd7ebe8a254f2bc09", "score": "0.6415309", "text": "private function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.63595605", "text": "final private function __construct() {}", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.63595605", "text": "final private function __construct() {}", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.63595605", "text": "final private function __construct() {}", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.63595605", "text": "final private function __construct() {}", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.63595605", "text": "final private function __construct() {}", "title": "" }, { "docid": "7fcd7c61684d06f656e192baf489d276", "score": "0.6350772", "text": "private function __construct ( ) { }", "title": "" }, { "docid": "57178570dc9bde03e4de27133698a186", "score": "0.63502306", "text": "public function sinhcon()\n {\n }", "title": "" }, { "docid": "57178570dc9bde03e4de27133698a186", "score": "0.63502306", "text": "public function sinhcon()\n {\n }", "title": "" }, { "docid": "4d3ec4d120da4f4ba73783b84248d6ac", "score": "0.63392144", "text": "private final function __construct() {}", "title": "" }, { "docid": "eab1278711f0d9b51248a98d9c6c5eec", "score": "0.63186836", "text": "protected final function __construct () {}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.63090557", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.63090557", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.63090557", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.63090557", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.63090557", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.63090557", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.63090557", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.63090557", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.63090557", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.63090557", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.63090557", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.63090557", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.63090557", "text": "private function __construct(){}", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.6307705", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.6307705", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.6307705", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.6307705", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.6307705", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.6307705", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.6307705", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.6307705", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.6307705", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.6307705", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.6307705", "text": "private function __construct() { }", "title": "" }, { "docid": "abafabb2e6139e8d44ba1c18cfac7358", "score": "0.6261633", "text": "final private function __construct() { }", "title": "" }, { "docid": "abafabb2e6139e8d44ba1c18cfac7358", "score": "0.6261633", "text": "final private function __construct() { }", "title": "" }, { "docid": "7535729a6bb8c56b1a4b3aa92e79c198", "score": "0.6257534", "text": "function __construct() { }", "title": "" }, { "docid": "7535729a6bb8c56b1a4b3aa92e79c198", "score": "0.6257534", "text": "function __construct() { }", "title": "" }, { "docid": "e88b6b5b78998e4dcc843b3c08d4e6ab", "score": "0.62202597", "text": "private function __construct() {\n \n }", "title": "" }, { "docid": "e88b6b5b78998e4dcc843b3c08d4e6ab", "score": "0.62202597", "text": "private function __construct() {\n \n }", "title": "" }, { "docid": "e88b6b5b78998e4dcc843b3c08d4e6ab", "score": "0.62202597", "text": "private function __construct() {\n \n }", "title": "" }, { "docid": "03f1ec45e4ae0b50f462adb120451115", "score": "0.62104416", "text": "private function __construct() \n {\n\t\t\n\t}", "title": "" }, { "docid": "b87a56dc9ff97e30b3f1bc3d1cc25495", "score": "0.61927223", "text": "private function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.61829454", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.61829454", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.61829454", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.61829454", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.61829454", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.61829454", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.61829454", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.61829454", "text": "protected function __construct() {}", "title": "" } ]
8be65d2be8847dcf75e7c098a286558c
Returns the value of field idJerarquia
[ { "docid": "8ab55a0445d546970c6ade17d95413d5", "score": "0.82319283", "text": "public function getIdJerarquia()\n {\n return $this->idJerarquia;\n }", "title": "" } ]
[ { "docid": "1493b16437d80391069adbb16f2deedb", "score": "0.6489932", "text": "function getId() {\n return $this->getFieldValue('id');\n }", "title": "" }, { "docid": "a484ac8172c1418718d4e7426193f831", "score": "0.6480206", "text": "public function id()\n\t{\n\t\t$id_field = static::getIdFieldname();\n\t\n\t\tif(!strlen($id_field))\n\t\t{\n\t\t\ttrigger_error(get_called_class().' does not support an ID-Field', E_USER_ERROR);\n\t\t}\n\t\n\t\treturn $this->get($id_field);\n\t}", "title": "" }, { "docid": "2c979ee5af7cc37cf5eb27426e46e44d", "score": "0.64622295", "text": "public function getIdParroquia()\n\t{\n\t\treturn $this->id_parroquia;\n\t}", "title": "" }, { "docid": "c01c98ef575e514e481125619e8f0522", "score": "0.6441794", "text": "function getId()\n {\n return $this->getFieldValue('id');\n }", "title": "" }, { "docid": "a5c448b37d4ce3b4e762c008cd3c6df9", "score": "0.6328563", "text": "public function getIdField();", "title": "" }, { "docid": "0f614346735992a3fc00f12abe347834", "score": "0.63074994", "text": "function getIdValue()\n {\n }", "title": "" }, { "docid": "0f614346735992a3fc00f12abe347834", "score": "0.63074994", "text": "function getIdValue()\n {\n }", "title": "" }, { "docid": "dd4a7bccfeedd89656a1ad409cb1e1f6", "score": "0.6282815", "text": "public function getIdVainqueur()\n {\n return $this->idVainqueur;\n }", "title": "" }, { "docid": "a9c063be6fe1a3915ea876517c3c568c", "score": "0.62756795", "text": "public function getId()\n {\n return $this->getField('id');\n }", "title": "" }, { "docid": "d7b0f6f560c06d02c196b6ac1c0b6c25", "score": "0.61860967", "text": "public function get_id(){ return intval($this->get_info('robot_id')); }", "title": "" }, { "docid": "f0ee5590dbd75e69ec1df63b82e72142", "score": "0.61659133", "text": "public function setIdJerarquia($idJerarquia)\n {\n $this->idJerarquia = $idJerarquia;\n\n return $this;\n }", "title": "" }, { "docid": "f0ee5590dbd75e69ec1df63b82e72142", "score": "0.61659133", "text": "public function setIdJerarquia($idJerarquia)\n {\n $this->idJerarquia = $idJerarquia;\n\n return $this;\n }", "title": "" }, { "docid": "f0ee5590dbd75e69ec1df63b82e72142", "score": "0.61659133", "text": "public function setIdJerarquia($idJerarquia)\n {\n $this->idJerarquia = $idJerarquia;\n\n return $this;\n }", "title": "" }, { "docid": "bd18f5c26fb77b96dfd860990272766e", "score": "0.61065143", "text": "public function id() {\n\t\treturn $this->getValue(static::$ID_FIELD);\n\t}", "title": "" }, { "docid": "e63f0ceb610028e29db8e7abc793f213", "score": "0.6095672", "text": "public function getSumberGajiId()\n {\n return $this->sumber_gaji_id;\n }", "title": "" }, { "docid": "9d98e25ddff0038715c8d767883578be", "score": "0.6085474", "text": "public function getId(){\n return $this->__get('id');\n }", "title": "" }, { "docid": "0ebed5b2ed33f3931a0d11fc21758bc4", "score": "0.6077805", "text": "public function getId(){\n\t\treturn $this->_idAcheteur;\n\t }", "title": "" }, { "docid": "2640df5e40655a5e54cc95a5a38a941f", "score": "0.6072266", "text": "public function id()\n {\n return $this->entry->getField($this->getField())->getId();\n }", "title": "" }, { "docid": "61ad079d135408cb685f9af551ebeac6", "score": "0.6054757", "text": "public function getJornadaId()\r\n {\r\n return $this->Jornada_id;\r\n }", "title": "" }, { "docid": "4d4e8b1fdbeed1db79fb05bbfa89ebf7", "score": "0.60483277", "text": "public function getId()\n {\n return $this->{'id'};\n }", "title": "" }, { "docid": "930ca34cb07fafe30e59d298b1ce6207", "score": "0.60222375", "text": "public function getID();", "title": "" }, { "docid": "930ca34cb07fafe30e59d298b1ce6207", "score": "0.60222375", "text": "public function getID();", "title": "" }, { "docid": "930ca34cb07fafe30e59d298b1ce6207", "score": "0.60222375", "text": "public function getID();", "title": "" }, { "docid": "930ca34cb07fafe30e59d298b1ce6207", "score": "0.60222375", "text": "public function getID();", "title": "" }, { "docid": "930ca34cb07fafe30e59d298b1ce6207", "score": "0.60222375", "text": "public function getID();", "title": "" }, { "docid": "4cf0672f299912b8e7c2fa9ed7e0a702", "score": "0.5995485", "text": "public function getId()\n {\n return $this->registros['empresa_id'];\n }", "title": "" }, { "docid": "deef30f112d02b7b6ae2b2f35131374b", "score": "0.5992156", "text": "public function get_id();", "title": "" }, { "docid": "1377164596fe2ebdbe93a3b0cad073e7", "score": "0.596161", "text": "public function getId() {\n return (int) $this->get('id')->value;\n }", "title": "" }, { "docid": "9723dab7d8de554e58981054b0fe5e8b", "score": "0.59467846", "text": "public function getIdValue($id) {}", "title": "" }, { "docid": "70b4ae82320a51a7a721103aee38f753", "score": "0.5939943", "text": "public function getResIDValue()\n {\n return $this->resIDValue;\n }", "title": "" }, { "docid": "7b45bbfbd0a676219fdfc8857ea95e42", "score": "0.5930766", "text": "public function getIdRuang()\n {\n return $this->id_ruang;\n }", "title": "" }, { "docid": "9fd18f2eb3f58f8201f4e846cc1a362e", "score": "0.5921872", "text": "private function getId () { return $this->id; }", "title": "" }, { "docid": "c1193c0a84ec2846179b565303b70169", "score": "0.5917252", "text": "public function getId() {\n return $this->data['id'];\n }", "title": "" }, { "docid": "47408b91ff3da5f0257ba76d5f7d0d99", "score": "0.5905533", "text": "public function getFreguesia(){\n\t\tif ($this->freguesia_id!=\"\" && isset($this->freguesia_id)){\n\t\t\treturn $this->freguesia_id;\n\t\t}\n\t}", "title": "" }, { "docid": "a99a58da2f07620c000825445a3482a5", "score": "0.59048766", "text": "public function getIdentifierValue() {}", "title": "" }, { "docid": "e63de3224e993f76e1a00b8c1d9369f7", "score": "0.5901197", "text": "public function getId()\n {\n $id = $this->record_id_field;\n\n return $this->$id;\n }", "title": "" }, { "docid": "a47fa9adb8986d825e02ab5a32211be9", "score": "0.5898253", "text": "public function getId() {\r\n\t\treturn $this->getAtributo(\"id\");\r\n\t}", "title": "" }, { "docid": "8045cab8df4b1cf4f15cfcb9292274b1", "score": "0.58919287", "text": "public function get_id() { return $this->id; }", "title": "" }, { "docid": "0cb0aa01258bf61bca97c4701ed6311d", "score": "0.58875614", "text": "public function get_identificacion(){\n\t\treturn $this->_identificacion;\n\t}", "title": "" }, { "docid": "61bc8e65877fdab7b43ebe5805339d02", "score": "0.5887447", "text": "public function getId () : string\n\t{\n\t\treturn $this->data[\"id\"];\n\t}", "title": "" }, { "docid": "cdab202dae264bf6d8bef2f3ce867b8e", "score": "0.5883389", "text": "function getId(){\n\t\treturn $this->idTriagem;\n\t}", "title": "" }, { "docid": "6ef32aa3dbe0e6bf2940e98da84c8f20", "score": "0.5877342", "text": "public function getId() {\n \t\treturn $this->id;\n }", "title": "" }, { "docid": "6340076c09f71ce54e9732a0d91227d8", "score": "0.58743507", "text": "function getId()\n {\n return $this->__id ;\n }", "title": "" }, { "docid": "5fcbae2ef0b4d84554d5ec6e5b925ddd", "score": "0.5870412", "text": "function getPersonID()\n {\n return $this->getValueByFieldName('person_id');\n }", "title": "" }, { "docid": "0a856c00b054d16f70d53203bcf8b5b4", "score": "0.58690643", "text": "protected function getValueProperty()\n {\n return 'Id';\n }", "title": "" }, { "docid": "75d821947a2008d86a0cf72df56bd3e5", "score": "0.5860564", "text": "public function getId()\n {\n return $this->fields['id'];\n }", "title": "" }, { "docid": "24ced9c531f91b420c902a53cdc0252b", "score": "0.585524", "text": "public function getId()\n {\n return $this->__get(\"id\");\n }", "title": "" }, { "docid": "24ced9c531f91b420c902a53cdc0252b", "score": "0.585524", "text": "public function getId()\n {\n return $this->__get(\"id\");\n }", "title": "" }, { "docid": "42b7a9b6dbccea3e32123689cbf597ce", "score": "0.5854526", "text": "public function getFieldId()\n {\n return $this->field_id;\n }", "title": "" }, { "docid": "5a970902a0ab85ce94885e7aa9377f58", "score": "0.5850735", "text": "public function get_id() {\n\t\treturn $this->get_data( 'id' );\n\t}", "title": "" }, { "docid": "965ed8d559126b96b5d0c6b38fa3a187", "score": "0.584804", "text": "public function getPrismicId() {\n $attribute = $this->prismicIdName;\n return $this->$attribute;\n }", "title": "" }, { "docid": "775288872e86bbc1be804c9d52becdfa", "score": "0.58453554", "text": "public function id() {\n return $this->get($this->_get_id_column_name());\n }", "title": "" }, { "docid": "9c775e131123d6a6dfb023eb5857c157", "score": "0.5844753", "text": "public static function getIdProperty(): string;", "title": "" }, { "docid": "814d1737e42ca2eed839fe70672b766b", "score": "0.58411676", "text": "private function getId() {\n return $this->id;\n }", "title": "" }, { "docid": "09a152fea982a52f64e937697b346cc8", "score": "0.5840935", "text": "public function getId (){\n\t\treturn $this->id;\n\t}", "title": "" }, { "docid": "487f8ebd731b16e5dc2b2e2f83f6ff16", "score": "0.5833315", "text": "function get_id() {\r\n return $this->get_attribute('id');\r\n }", "title": "" }, { "docid": "3a1c7fd675abf2f965b03bda04933d9a", "score": "0.5823825", "text": "public function getId()\n {\n return static::decodeId($this->id);\n }", "title": "" }, { "docid": "2b411e1b437610c0b4e1faca3c8658eb", "score": "0.58169055", "text": "public function get_id() {\n return $this->id;\n }", "title": "" }, { "docid": "7c59d5ee2c8dddd6d5a029e66b7d3a5b", "score": "0.58158267", "text": "public function getIdFamilia(){\n return $this->idFamilia;\n }", "title": "" }, { "docid": "357476147da303f0bd6c9ddcad065b4e", "score": "0.5814476", "text": "function getIdField() {\n\t\treturn $this->table->idfield;\n\t}", "title": "" }, { "docid": "5e1b606646a2e298ca838201f83ec4f5", "score": "0.5809834", "text": "public function getId(){\n\t\treturn $this->id;\n\t}", "title": "" }, { "docid": "5e1b606646a2e298ca838201f83ec4f5", "score": "0.5809834", "text": "public function getId(){\n\t\treturn $this->id;\n\t}", "title": "" }, { "docid": "5e1b606646a2e298ca838201f83ec4f5", "score": "0.5809834", "text": "public function getId(){\n\t\treturn $this->id;\n\t}", "title": "" }, { "docid": "5e1b606646a2e298ca838201f83ec4f5", "score": "0.5809834", "text": "public function getId(){\n\t\treturn $this->id;\n\t}", "title": "" }, { "docid": "5e1b606646a2e298ca838201f83ec4f5", "score": "0.5809834", "text": "public function getId(){\n\t\treturn $this->id;\n\t}", "title": "" }, { "docid": "5e1b606646a2e298ca838201f83ec4f5", "score": "0.5809834", "text": "public function getId(){\n\t\treturn $this->id;\n\t}", "title": "" }, { "docid": "5e1b606646a2e298ca838201f83ec4f5", "score": "0.5809834", "text": "public function getId(){\n\t\treturn $this->id;\n\t}", "title": "" }, { "docid": "5e1b606646a2e298ca838201f83ec4f5", "score": "0.5809834", "text": "public function getId(){\n\t\treturn $this->id;\n\t}", "title": "" }, { "docid": "5e1b606646a2e298ca838201f83ec4f5", "score": "0.5809834", "text": "public function getId(){\n\t\treturn $this->id;\n\t}", "title": "" }, { "docid": "5e1b606646a2e298ca838201f83ec4f5", "score": "0.5809834", "text": "public function getId(){\n\t\treturn $this->id;\n\t}", "title": "" }, { "docid": "5e1b606646a2e298ca838201f83ec4f5", "score": "0.5809834", "text": "public function getId(){\n\t\treturn $this->id;\n\t}", "title": "" }, { "docid": "f0bcd6c5b9ec66f4257d126462c438f4", "score": "0.5801747", "text": "public function getId()\n {\n if ($this->getFieldIdName())\n {\n return $this->get($this->getFieldIdName(), null);\n }\n return $this->get('id', 0);\n }", "title": "" }, { "docid": "8459d401539036654cc690d2b656a5c2", "score": "0.5799609", "text": "public function get_ID();", "title": "" }, { "docid": "53863eb2d180cbc47e7e1ecd0ec113b7", "score": "0.5798642", "text": "public function getJilid()\n {\n return $this->hasOne(Jilid::className(), ['id' => 'id_jilid']);\n }", "title": "" }, { "docid": "ce68519ddf8cf758a4ef7f615a1c5acb", "score": "0.5797479", "text": "public function getId(){\n return $this->idFichier;\n }", "title": "" }, { "docid": "69df0c0816df7e7779e5577f85d6016a", "score": "0.579204", "text": "public function getId() {\n\n return $this->a_id;\n\n }", "title": "" }, { "docid": "519e79a47d417862e931cca97e7b76fd", "score": "0.57917947", "text": "public function getPeliculaId()\n {\n return $this->pelicula_id;\n }", "title": "" }, { "docid": "bb4d4ed2f843002b5bc3786cd759ca50", "score": "0.57905656", "text": "public function getID(){\n\t\treturn $this->id;\n\t}", "title": "" }, { "docid": "a53f7bad8d257d447f67dee4b2fdc4d7", "score": "0.5786088", "text": "function getId() {\n\t\treturn $this->id;\n\t}", "title": "" }, { "docid": "a53f7bad8d257d447f67dee4b2fdc4d7", "score": "0.5786088", "text": "function getId() {\n\t\treturn $this->id;\n\t}", "title": "" }, { "docid": "a53f7bad8d257d447f67dee4b2fdc4d7", "score": "0.5786088", "text": "function getId() {\n\t\treturn $this->id;\n\t}", "title": "" }, { "docid": "a53f7bad8d257d447f67dee4b2fdc4d7", "score": "0.5786088", "text": "function getId() {\n\t\treturn $this->id;\n\t}", "title": "" }, { "docid": "a18f876cc709ccd7716f431108502a49", "score": "0.57848585", "text": "public function getId()\n {\n return $this->get(self::ID);\n }", "title": "" }, { "docid": "a18f876cc709ccd7716f431108502a49", "score": "0.57848585", "text": "public function getId()\n {\n return $this->get(self::ID);\n }", "title": "" }, { "docid": "a18f876cc709ccd7716f431108502a49", "score": "0.57848585", "text": "public function getId()\n {\n return $this->get(self::ID);\n }", "title": "" }, { "docid": "50ab79f30e17d5afad4e2c0016d5f446", "score": "0.5784818", "text": "public function getId()\n {\n return $this->getProperty(\"Id\");\n }", "title": "" }, { "docid": "50ab79f30e17d5afad4e2c0016d5f446", "score": "0.5784818", "text": "public function getId()\n {\n return $this->getProperty(\"Id\");\n }", "title": "" }, { "docid": "b5d081448c2d7e3c5d6587fe62f03a8e", "score": "0.5779494", "text": "public function getID(){\r\n\t\treturn $this -> ID;\r\n\t}", "title": "" }, { "docid": "f3b9cc008afd7ad5b274ad537452b2cf", "score": "0.5779151", "text": "function getId(){\n\t\treturn $this->id;\n\t}", "title": "" }, { "docid": "abc363f11ea6a2b93b90fbe2489f0c7d", "score": "0.57783383", "text": "public function getIdI()\r {\r return $this->idI;\r }", "title": "" }, { "docid": "fef09395d1f88db21741665609a92bb1", "score": "0.57760274", "text": "function getId() {\n return $this->id;\n }", "title": "" }, { "docid": "9f705c2a6786ca43f90330c07f16de43", "score": "0.57753885", "text": "public function getId(){\r\n\t\treturn $this->id;\r\n\t}", "title": "" }, { "docid": "9f705c2a6786ca43f90330c07f16de43", "score": "0.57753885", "text": "public function getId(){\r\n\t\treturn $this->id;\r\n\t}", "title": "" }, { "docid": "ae5a582ac95f6959594a40231b33087f", "score": "0.5768107", "text": "function getId(){\r\n\t\treturn $this->id;\r\n\t}", "title": "" }, { "docid": "2d70f5bb9e9c7117d9208daa2f48bb97", "score": "0.5767118", "text": "function get_id() {\r\n\t\treturn $this->id;\r\n\t}", "title": "" }, { "docid": "5a7500af9fc24170c25d8e47ba535c04", "score": "0.5763374", "text": "public function getID(){\r\n return $this->id;\r\n }", "title": "" }, { "docid": "345e2238f2d4369729a5bd6bb469eae2", "score": "0.5762981", "text": "public function getId() { return $this->id; }", "title": "" }, { "docid": "345e2238f2d4369729a5bd6bb469eae2", "score": "0.5762981", "text": "public function getId() { return $this->id; }", "title": "" } ]
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "2a46fdbfc8cb01983bb03691388f0169", "score": "0.0", "text": "public function create()\n {\n //\n }", "title": "" } ]
[ { "docid": "342bff56b62a745961c012a3ac82c12a", "score": "0.78761816", "text": "public function create()\n {\n return view('admin.resource.add');\n }", "title": "" }, { "docid": "0f0380ef896e8b1a4af511fb039fe879", "score": "0.7760756", "text": "public function create()\n\t{\n $config = $this->getFormData();\n $config['submit'] = route('app.resources.create');\n $config['title_name'] = trans('app.adminCreate');\n\n return view('admin.adminForm', $config);\n\t}", "title": "" }, { "docid": "6c38527badbdce8b6b216794aa375cb3", "score": "0.76253194", "text": "public function actionCreate()\n\t{\t\t \n\t\t$this->render('resource_create');\n\t}", "title": "" }, { "docid": "c1a53014b3e8009982c57be36ab41329", "score": "0.75948673", "text": "public function create()\n {\n return $this->showForm('create');\n }", "title": "" }, { "docid": "242a7cb221f0fcd944a681fe88c407cd", "score": "0.758405", "text": "public function create()\n {\n return view('Admin.ourresource.create');\n\n }", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.75727344", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.75727344", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "6b956805f751faa8511a724099e60375", "score": "0.75421274", "text": "public function create()\n {\n return view('manager.resources.create');\n }", "title": "" }, { "docid": "c22dae1333d29c28ed855dcb7f069232", "score": "0.7491396", "text": "public function create()\n {\n return view('resources.create');\n }", "title": "" }, { "docid": "a5965dde1f081c94296e801e6c603bf5", "score": "0.7453085", "text": "public function create()\n {\n \n $resourceTypes = ResourceTypes::getResourceTypeList();\n return view('admin.resources.create')->with('resourceTypes', $resourceTypes);\n \n }", "title": "" }, { "docid": "242700e7542efa06d08edc5984b0a155", "score": "0.737826", "text": "public function create()\n {\n return view ('form');\n }", "title": "" }, { "docid": "de323787673e065c237bffd0e406bc4a", "score": "0.73594564", "text": "public function create()\n {\n\n return view(\"form\");\n }", "title": "" }, { "docid": "1b16c1f4677bd0ac799e087490d4d05b", "score": "0.73507345", "text": "public function create() {\n return view($this->className . '/form', [\n 'className' => $this->className,\n 'pageTitle' => $this->classNameFormatado . '- Cadastro de registro'\n ]);\n }", "title": "" }, { "docid": "7d107bfef62a964a62e6cab8ee6f69b7", "score": "0.7329499", "text": "public function create() {\n return view('forms::create');\n }", "title": "" }, { "docid": "dd9fd892621ec1d56e7ab98a0de05edb", "score": "0.7309871", "text": "public function create()\n {\n $entity = $this->model;\n\n $relationshipOptions = $this->getModelRelationshipData();\n\n $fields = $this->getFormFields();\n $title = $this->getFormTitle();\n $route = $this->getRoute();\n $bladeLayout = $this->bladeLayout;\n\n return view('crud-forms::create',\n compact(\n 'entity',\n 'fields',\n 'title',\n 'route',\n 'bladeLayout',\n 'relationshipOptions'\n )\n );\n }", "title": "" }, { "docid": "9814fd9ae63509e6eb41bf23f7a94615", "score": "0.72809595", "text": "public function create()\n {\n return view('forms.create');\n }", "title": "" }, { "docid": "9814fd9ae63509e6eb41bf23f7a94615", "score": "0.72809595", "text": "public function create()\n {\n return view('forms.create');\n }", "title": "" }, { "docid": "9814fd9ae63509e6eb41bf23f7a94615", "score": "0.72809595", "text": "public function create()\n {\n return view('forms.create');\n }", "title": "" }, { "docid": "9814fd9ae63509e6eb41bf23f7a94615", "score": "0.72809595", "text": "public function create()\n {\n return view('forms.create');\n }", "title": "" }, { "docid": "42de9969dbd16cbf3f496acd505422d8", "score": "0.7249422", "text": "public function create()\n {\n // shows a view to create a new resource\n return view('dashboard.admin.create');\n \n }", "title": "" }, { "docid": "82fc0d08b2c5c77ba23e8e4650269a74", "score": "0.7246853", "text": "public function create()\n {\n $this->authorize('create', $this->resource->getModel());\n\n $this->data['data'] = [];\n $this->data['routeUrl'] = route($this->module->getName() . '.store');\n $this->data['attributes'] = $this->resource->getAttributes();\n $this->data['module'] = $this->module;\n\n // $this->data['data'] = factory(\\Quill\\Post\\Models\\Post::class)->make();\n // $this->data['data']['id'] = null;\n // $this->data['data']['published_at'] = \\Carbon\\Carbon::now()->toDateTimeString();\n\n return template('form', $this->data, $this->module->getName());\n }", "title": "" }, { "docid": "443ec0ef783ddb885e44582de73c662e", "score": "0.7235326", "text": "public function create()\n\t{\n $mode = \"create\";\n return $this->showForm('create');\n\t}", "title": "" }, { "docid": "43bb6b172a2f963c4f3b6d2948331c7b", "score": "0.7217289", "text": "public function create()\n {\n return view('createForm');\n }", "title": "" }, { "docid": "fbc59fca75b99a403174397ba5d8d285", "score": "0.7216552", "text": "public function create()\n {\n $modelClass = $this->modelClass;\n $model = new $modelClass;\n $model->fill(Input::all());\n $view = View::make(\n $this->getViewName('create'),\n compact('model') + array(\n 'pageTitle' => 'Cadastrar '.$this->resourceTitle,\n 'formView' => $this->getViewName('_form'),\n 'formContentView' => $this->getViewName('_formContent'),\n )\n );\n $view = $this->beforeRender($view, 'create');\n return $this->beforeRenderForm($view, $model);\n\n }", "title": "" }, { "docid": "29282129b8e24a976f037c589580f34b", "score": "0.7208537", "text": "public function create()\n {\n $this->page_title = trans('resource_sub_type.new');\n\n return view('resource_sub_type.new', $this->vdata);\n }", "title": "" }, { "docid": "162ece72aeff2332b943711b91bbb0cd", "score": "0.72039485", "text": "public function create()\n {\n\n $model = $this->repository->getNew();\n $this->document->breadcrumbs([\n trans('ecommerce::default.'.$this->codename.'.index') => admin_route('ecommerce.'.$this->codename.'.index'),\n trans('ecommerce::default.'.$this->codename.'.create') => '',\n ]);\n\n $this->document->page->title(\n trans('ecommerce::default.'.$this->codename.'.index')\n .' > '\n .trans('ecommerce::default.'.$this->codename.'.create')\n );\n\n return view('ecommerce::'.$this->codename.'.form', [\n 'model' => $model,\n 'target' => 'ecommerce.'.$this->codename.'.store',\n 'codename' => $this->codename,\n 'repository' => $this->repository,\n ]);\n }", "title": "" }, { "docid": "ae7f980d6b32481951f3c9b739cad405", "score": "0.7199489", "text": "public function create()\n {\n return view(\"konsumen.form\");\n }", "title": "" }, { "docid": "69bd3270f11ddfa5b575696d29a4add6", "score": "0.71814996", "text": "public function create()\n {\n\n return view('shift.form_create');\n }", "title": "" }, { "docid": "0529bd22c7b669b06d0917bb468bcd97", "score": "0.716538", "text": "public function create() {\n\t\t$this->authorize('create', $this->repo->model());\n\t\treturn view($this->view . 'form', $this->repo->getPreRequisite(), $this->repo->getBasicPreRequisite());\n\n\t}", "title": "" }, { "docid": "d7dfab79c6b07da6e5e0913e8540eeb9", "score": "0.7157242", "text": "public function create()\n {\n return view('dashboard.forms.create');\n }", "title": "" }, { "docid": "cdccf0772168a4c3198ad8229762752f", "score": "0.7155322", "text": "public function create()\n {\n return $this->view('form');\n }", "title": "" }, { "docid": "b53b216bb126e4de0f5a98bea729535e", "score": "0.71506757", "text": "public function newAction()\n {\n $this->view->form = new \\BarangForm(null, ['edit' => true]);\n }", "title": "" }, { "docid": "d6aa2e924016ff1dae18f8f678fe212a", "score": "0.7145264", "text": "public function create()\n\t{\n\t\t$form = new Form;\n\t\t$allow_tabs = array('create');\n\t\t$tab = 'create';\n\t\treturn View::make('backend.forms.create', compact('form', 'allow_tabs', 'tab'));\n\t}", "title": "" }, { "docid": "7e262dd36752e23255d5ea03566e8de7", "score": "0.7122985", "text": "public function create()\n {\n $model = $this->model;\n return view('pages.admin.graha.form', compact('model'));\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": "1dcbdf778b346aa6793b44e6dbdc0ed3", "score": "0.71093065", "text": "public function create()\n {\n $title = $this->model->getTitle();\n $form_title = $this->name;\n $forms = $this->model->getFormList();\n return view('layouts.create')->with(compact('forms', 'title', 'form_title'));\n }", "title": "" }, { "docid": "e764b1be55fc315cb37574f6c835bc08", "score": "0.7105658", "text": "public function create()\n {\n $data['url'] = route('admin.'.$this->route . '.store');\n $data['title'] = 'Add ' . $this->viewName;\n $data['module'] = $this->viewName;\n $data['resourcePath'] = $this->view;\n\n return view('admin.general.add_form')->with($data);\n }", "title": "" }, { "docid": "f62dd87066b4faf01871596fb587ea88", "score": "0.7074242", "text": "public function create()\n {\n return view('template.product.form_create');\n }", "title": "" }, { "docid": "ccd8c86bf091e74199a4226d7941ad10", "score": "0.7057411", "text": "public function newAction()\n {\n $entity = new Supplier();\n $form = $this->createCreateForm($entity);\n\n return $this->render('AcmeSetupBundle:Supplier:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "2b41dd9ed0cf1461dd65f8e05b0a94a1", "score": "0.70571953", "text": "public function create()\n {\n return $this->showForm();\n }", "title": "" }, { "docid": "d152222964aa1bb46555c71d1b40a042", "score": "0.70524913", "text": "public static function newForm() {\n self::check_admin();\n $abilities = Ability::allAbilities();\n View::make('suunnitelmat/new_species.html', array('abilities' => $abilities));\n }", "title": "" }, { "docid": "a5da52bd87409b9af679915f54a22668", "score": "0.70512646", "text": "public function create()\n {\n if(!Auth::user()->hakAkses($this->hakAkses['add'])){\n $this->authorize('forceFail');\n }\n $class = $this->getResourceModel();\n $kategori = Kategori::get();\n return view($this->filterCreateView('_resources.create'), $this->filterCreateViewData([\n 'kategoriList' => $kategori,\n 'record' => new $class(),\n 'resourceAlias' => $this->getResourceAlias(),\n 'resourceRoutesAlias' => $this->getResourceRoutesAlias(),\n 'resourceTitle' => $this->getResourceTitle(),\n ]));\n }", "title": "" }, { "docid": "c69f303d7cafa0864b25b452417d3c13", "score": "0.70510703", "text": "public function create()\n\t{\n\t\treturn view('actions.create');\n\t}", "title": "" }, { "docid": "b20c44fdc751207aaea30b2a981f6a0d", "score": "0.7047574", "text": "public function create()\n\t{\n\t\t//\n\t\treturn \\View::make('concepto/concepto_new');\n\n\t}", "title": "" }, { "docid": "956b2245921b775d19eaa349523daabc", "score": "0.7040791", "text": "public function create()\n {\n return view($this->layout.'form');\n }", "title": "" }, { "docid": "607b994b80e66fe45602a00379ab7779", "score": "0.70308834", "text": "public function create()\n {\n //return the create view (form)\n return view('books.create');\n }", "title": "" }, { "docid": "6039f43b38d3c6d347e4435587e3a07f", "score": "0.7027638", "text": "public function create()\n {\n return $this->cView(\"form\");\n }", "title": "" }, { "docid": "6785b7a8807f193c101c96ffd2379b91", "score": "0.70223033", "text": "public function create()\n\t{\n\t\t//\n\t\treturn View::make('resources.create') ;//转向资源服务器注册页面\n\t}", "title": "" }, { "docid": "f576188dbc8ae5f6631165826f306b3b", "score": "0.70178926", "text": "public function create()\n {\n return view(\"{$this->viewPath}.create\", [\n 'title' => trans('main.add') . ' ' . trans('main.medicalforms'),\n ]);\n }", "title": "" }, { "docid": "66b746538eaf7a550c7b3a12968b96a6", "score": "0.70147324", "text": "public function create()\n {\n return view('supplier.form');\n }", "title": "" }, { "docid": "aeb469b25992f994059bfd2f69df4c25", "score": "0.7014434", "text": "public function create()\n {\n return view('admin.service.form');\n }", "title": "" }, { "docid": "55d25b23118347b43838f0584440d7bc", "score": "0.7013096", "text": "public function create()\n {\n return view('resturants::create');\n }", "title": "" }, { "docid": "d466d099f3186e4452b5ebba7c196cf6", "score": "0.70112854", "text": "public function create()\n {\n return view('design/form');\n }", "title": "" }, { "docid": "7c7e2891f4af9318822aa65308553f78", "score": "0.7010465", "text": "public function create()\n {\n return view('pages.superAdmin.minerba.form');\n }", "title": "" }, { "docid": "ca18b8d268ff390165b891429ae27a70", "score": "0.70104074", "text": "public function create()\n\t{\n\t\treturn view('admin.alergenosForm');\n\t}", "title": "" }, { "docid": "248b476c0f07013b389c79c904231f2a", "score": "0.70046955", "text": "public function create()\n {\n return view('admin.car.add');\n }", "title": "" }, { "docid": "8786022d988565af6dda1dead367404f", "score": "0.7004673", "text": "public function create()\n {\n return view('patal.form');\n }", "title": "" }, { "docid": "91dd937891cf552bdb6c058f3730d93b", "score": "0.6998989", "text": "public function newAction()\n {\n $entity = new foo();\n $form = $this->createForm(new fooType(), $entity);\n\n return $this->render('ScrunoBoardBundle:foo:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "ed1d0f0eb0fcdbf172b956b19927920e", "score": "0.6997593", "text": "public function create()\n {\n $class = $this->getModelClassFromRoute();\n if (method_exists($class, 'newDefault')) {\n $object = $class::newDefault(request()->input('parent_id'));\n } else {\n $object = new $class;\n }\n $formConfig = $this->getFormConfig($object);\n $validationRules = $this->getValidationRules();\n return view($this->editPage, compact('object', 'formConfig', 'validationRules'));\n }", "title": "" }, { "docid": "1bfdf35b31b995ec54621f89216a2f60", "score": "0.69961935", "text": "public function create()\n {\n // Hacia el formulario\n return view('Catalogo.registro'); // La del formulario\n }", "title": "" }, { "docid": "68eb563182e9ed0d6524bc0b6aac22af", "score": "0.69939756", "text": "public function create()\n\t{\n\t\t// load the create form (app/views/professor/create.blade.php)\n\t\t$this->layout->content = View::make('professor.create');\n\t}", "title": "" }, { "docid": "875a928015f9ba1940490c7d9dfd8a9c", "score": "0.69916135", "text": "public function create()\n {\n // return view('presensi.form', ['action' => 'create']);\n }", "title": "" }, { "docid": "b544fbb7e499f8abdc514265eaa72c80", "score": "0.6990788", "text": "public function create(){\n return View('salonists.addForm');\n }", "title": "" }, { "docid": "6c77fcad45300d9322c483f2cf6f0bf9", "score": "0.69900626", "text": "public function create()\n\t{\n\t\treturn view('proyek.create');\n\t}", "title": "" }, { "docid": "b383bd109b3b044055bbdeced7efa8e7", "score": "0.6983602", "text": "public function create()\n {\n return view('leite.form');\n }", "title": "" }, { "docid": "67d0fea7e3e0bbada82422aa97f9be53", "score": "0.6977097", "text": "function showCreateForm(){\n return view('admin.Direktori.Koorsek.create');\n }", "title": "" }, { "docid": "432a42bd0e4b7b7dd13b0343e81c9f33", "score": "0.6974407", "text": "public function create()\n {\n //\n return view('libros/libroForm');\n }", "title": "" }, { "docid": "176f4e5ee5bb1d8842d9ba4652636fd5", "score": "0.69725794", "text": "public function create()\n {\n $route = action($this->getActionRoute('store'), $this->action_url_params);\n\n $form = $this->createService->createForm($route);\n\n return view($this->templateAdd, [\n 'form' => $form,\n 'title' => $this->getTitle('create'),\n 'module_title' => $this->getTitle('index'),\n 'controller' => $this->getController(),\n ]);\n }", "title": "" }, { "docid": "2c0ef64bd4ac157d6004a7d4b574de6f", "score": "0.6966141", "text": "public function create()\n {\n // restituisco la view del form\n return view('products.create');\n }", "title": "" }, { "docid": "2643780d203b8c752744e38942ce260d", "score": "0.69652045", "text": "public function create()\n {\n $book = new Book();\n $book->load('authorList.details');\n $book->load('publisher');\n $actionRoute = 'books.saveNew';\n $pageTitle = 'Books - New';\n return view('books._books_form', compact('book', 'actionRoute', 'pageTitle'));\n }", "title": "" }, { "docid": "db317dc07de792187038b7e4a5f863fd", "score": "0.69643784", "text": "public function newAction()\n {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('ManuTfeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "9cb057d0f77e53e0cce5708d50a6481b", "score": "0.6962359", "text": "public function create()\n {\n return view('new');\n }", "title": "" }, { "docid": "cb7c11c08e93409d4584dc81a4310a7e", "score": "0.695854", "text": "public function getCreate()\n {\n return view('pages.form.create');\n }", "title": "" }, { "docid": "ea30089b05638deecfcdcc640118738c", "score": "0.69564354", "text": "public function create()\n {\n return view('student.add');\n }", "title": "" }, { "docid": "faab52446786eb57de6d45ef5c9751a9", "score": "0.6954935", "text": "public function create()\n {\n $countries = Country::all();\n $pageTitle = trans(config('dashboard.trans_file').'add_new');\n $submitFormRoute = route('cities.store');\n $submitFormMethod = 'post';\n return view(config('dashboard.resource_folder').$this->controllerResource.'form', compact('countries', 'pageTitle', 'submitFormRoute', 'submitFormMethod'));\n }", "title": "" }, { "docid": "0224b799194fa807284fdd74a5365a99", "score": "0.6949657", "text": "public function create()\n {\n return view('anggota.form');\n }", "title": "" }, { "docid": "07b43788dfee25823f1bfa779101007b", "score": "0.69488627", "text": "public function create()\n {\n return view('hrm::create');\n }", "title": "" }, { "docid": "1276876980c60661df1af9ecd3659454", "score": "0.6946296", "text": "public function create()\n\t{\n\t\treturn View::make('nssf.create');\n\t}", "title": "" }, { "docid": "7e9a15ef80239f891446dfc2d6f5483e", "score": "0.69416964", "text": "public function create()\r\n {\r\n $form=[\r\n \"value\" => \"add\",\r\n \"name\" => \"Add Person\",\r\n \"submit\" => \"Save\"\r\n ];\r\n\r\n return view('person/form',compact('form'));\r\n }", "title": "" }, { "docid": "291a5c3487f9cfc359ff3c6584319cba", "score": "0.69416463", "text": "public function backCreateAction()\n {\n $options['domain'] = Constants::BACK;\n $options['type'] = Constants::FORM_CREATE;\n \n // parameter used to filter and show only the resources that belong to the logged organization\n $options['organization'] = $this->get('security.context')->getToken()->getUser()->getId();\n \n $resource = new Resource();\n $form = $this->createForm(new ResourceType(), $resource, $options);\n \n $request = $this->getRequest();\n \n if ($request->getMethod() == 'POST')\n {\n $form->bindRequest($request);\n\n if ($form->isValid())\n {\n $em = $this->getDoctrine()->getEntityManager();\n \n $dateStartLock = $resource->getDateStartLock();\n $dateEndLock = $resource->getDateEndLock();\n \n // it is supposed that a locked period takes full days\n if ($dateStartLock) $dateStartLock->setTime(0, 0, 0);\n if ($dateEndLock) $dateEndLock->setTime(23, 59, 59);\n \n $em->persist($resource);\n $em->flush();\n\n return $this->redirect($this->generateUrl('back_resource_read', array('id' => $resource->getId())));\n }\n } \n\n return $this->render('PFCDTourismBundle:Back/Resource:create.html.twig', array(\n 'resource' => $resource,\n 'form' => $form->createView()\n ));\n }", "title": "" }, { "docid": "7a30ea5382a9dccea0e45dd1992baee9", "score": "0.6940094", "text": "public function create()\n {\n return view ('riwayat.create');\n }", "title": "" }, { "docid": "247a32ac1bdaf7bc58b7ca130d237b9c", "score": "0.6936969", "text": "public function create()\n {\n //\n return view('admin.concept.create');\n }", "title": "" }, { "docid": "812e658b540562d8e395333553c52241", "score": "0.6934265", "text": "public function create()\n {\n return view('rekening.add');\n }", "title": "" }, { "docid": "680ca688d269a5dc28ed1ec460cb5137", "score": "0.69331574", "text": "public function create()\n {\n return view('harian.create');\n }", "title": "" }, { "docid": "8250d2da73f4073c78bd103641c0eaeb", "score": "0.6925077", "text": "public function create() {\n $title = 'Cadastro Professor';\n return view('professor.create', compact('title'));\n }", "title": "" }, { "docid": "dbe0d9d5c58ac6a21b5fb5512e594696", "score": "0.69249064", "text": "public function create()\n {\n return view('lijst.create');\n }", "title": "" }, { "docid": "a917cc1c921d761746db4cf9f3e12a3a", "score": "0.6924233", "text": "public function create()\n {\n return view($this->options['route-views'].\"save\")\n ->with('options', $this->options)\n ->with('typeForm', 'create');\n }", "title": "" }, { "docid": "35452bee2b2408494a78f76b38ce24ce", "score": "0.6923358", "text": "public function create()\n {\n return view('crud.create', array('title' => $this->title,'title_create' => $this->title_create,\n 'route_path' => $this->route,'form' => $this->form) );\n }", "title": "" }, { "docid": "83ebdde393be7960c0a3149b40b830fa", "score": "0.69206", "text": "public function create()\n {\n //\n return view('guest.sample.submit-property2');\n }", "title": "" }, { "docid": "ce1853ac01959995d112bb4d44014367", "score": "0.6918359", "text": "public function create()\n {\n //\n return view('ijinkeluars.create');\n }", "title": "" }, { "docid": "87632e3ed9e4e251e3f5a4dfa4cc4e5e", "score": "0.69181925", "text": "public function create()\n {\n // Place here the initial data and show\n // Ahh screw it, Show Everything!!!\n\n return view('record.create');\n\n }", "title": "" }, { "docid": "e90d65170f9bc3dd1e2b969826600c53", "score": "0.6914271", "text": "public function create()\n {\n return view('ekskul.create');\n }", "title": "" }, { "docid": "d7102125563abfe0d8b4c4534cc7ed82", "score": "0.6914158", "text": "public function create()\n {\n $this->array['action'] = 'create';\n \n $this->parameters_to_create_edit();\n\n return $this->show_view('create-edit', $this->array);\n }", "title": "" }, { "docid": "d7a4baeb06d3d8108dc3b6b8cf2d22f0", "score": "0.6906848", "text": "public function newAction()\n {\n global $config;\n\n if(empty($this->crumbs->crumbs['new']['label']))\n $this->crumbs->add('New', '/', 'New', false); \n\n $form = new AcademicyearsForm(new Academicyears(), array('new' => true));\n $this->view->setVar(\"form\", $form);\n }", "title": "" }, { "docid": "72d216b75443b4090ac0a1387c18009c", "score": "0.6906656", "text": "public function create()\n {\n //\n return view('crud.add');\n }", "title": "" }, { "docid": "0b940b83fdd9503e0b64330c52106d41", "score": "0.69053364", "text": "public function create()\n {\n return view('inventariss.create');\n }", "title": "" }, { "docid": "08b863cf334fdb6d69bfe339f48ba738", "score": "0.689754", "text": "public function create()\n {\n $outlet = new Outlet;\n $isCreate = true;\n return view('outlet.form', compact('outlet', 'isCreate'));\n }", "title": "" }, { "docid": "f75befff50f97c865afe13ee1e94f3b1", "score": "0.6896097", "text": "public function createAction()\n {\n $action = $this->view->url(['action' => 'save'], 'controllers');\n $this->view->propertyForm = $this->service->getFormForCreating($action);\n }", "title": "" }, { "docid": "27fad6d884340578087d232e3218a94d", "score": "0.68955874", "text": "public function create()\n {\n return view('backpages.formInfo');\n }", "title": "" }, { "docid": "b3b948e870ae293f1e987afea2e063f7", "score": "0.6891714", "text": "public function create()\n {\n return view('panel.warehouse-management.warehouse-rack.form-create');\n }", "title": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "962cbbb3618eb361fc944c6096b93d1a", "score": "0.0", "text": "public function store(Request $request)\n {\n $this->validate($request, [\n 'title' => 'required|string',\n 'description' => 'string|nullable',\n 'class_time' => 'numeric|nullable',\n 'trainer' => 'numeric|nullable',\n 'image' => 'image|mimes:jpeg,png,jpg',\n\n ]);\n\n //get form image\n $image = $request->file('image');\n\n //return \n $slug = Str::slug($request->title);\n\n if (isset($image)) {\n //make unique name of image\n $imageName = $slug . '-' . Carbon::now()->toDateString() . '-' . uniqid() . '.' . $image->getClientOriginalExtension();\n\n //check class dir is exists\n if ( !Storage::disk('public')->exists('assets/class') ) {\n Storage::disk('public')->makeDirectory('assets/class');\n }\n\n //Resize image for class and upload\n $resizeclass = Image::make($image)->resize(360,246)->save(90);\n Storage::disk('public')->put('assets/class/' . $imageName, $resizeclass);\n }else{\n $imageName = 'default.png';\n }\n \n //Random Slug for unique \n\n date_default_timezone_set('Asia/Dhaka');\n \n $new_class = new CourseClass;\n $new_class->title = strtolower($request->title);\n $new_class->description = $request->description;\n $new_class->trainer = $request->trainer;\n $new_class->class_time = $request->class_time;\n $new_class->date = Carbon::now()->format('d M Y');\n $new_class->slug = $slug. \"-\". CourseClass::orderBy('id', 'desc')->first()->id+1;\n $new_class->time = date(\"h:i:s\", time());\n $new_class->image = $imageName;\n // return $new_class ;\n // update query using slug\n if ( $new_class->save() ) {\n Session()->flash('msg', \"Class Has been Added!!\");\n return redirect()->back();\n } \n }", "title": "" } ]
[ { "docid": "45903628ff69251019708b230944f6f0", "score": "0.6915523", "text": "public function store(StoreResourceRequest $request)\n {\n\n $data = $request->input();\n\n if ( empty($data['teacher_id']) ) {\n $data['teacher_id'] = null;\n }\n\n DB::transaction(function() use ($request, $data)\n {\n $resource = Resource::create($data);\n $uploadedFile = $request->file('file');\n\n $type = $uploadedFile->getClientOriginalExtension();\n $name = $resource->generateResourceName();\n $path = $resource->generateResourcePath();\n\n Storage::put(\"{$path}.{$type}\", file_get_contents($uploadedFile->getRealPath()));\n\n $file = File::create([\n 'resource_id' => $resource->id,\n 'name' => $name,\n 'type' => $type,\n 'url' => \"{$path}.{$type}\"\n ]);\n\n if ( !$resource || !$file ) {\n return redirect()->back()->with('error', 'Failed :( Try Again!');\n }\n });\n\n return redirect()\n ->route('home')\n ->with('info', 'Resource Uploaded. Pending of revision.');\n }", "title": "" }, { "docid": "3142727ee8880b6b9792726e4513dca0", "score": "0.680377", "text": "public function store()\n {\n $validation = new $this->resourceRequestValidation;\n $this->validate(request(), $validation->rules());\n DB::beginTransaction();\n try {\n $store = $this->repository->eloquentCreate($this->resourceCreateRequestInputs);\n if ($store) {\n Session::flash(\"success\", \" [ \". (!is_array($store->name) && $store->name ? $store->name : $store->name_val) .\" ] \" . __(\"main.session_created_message\"));\n } else {\n Session::flash(\"danger\", __(\"main.session_falid_created_message\"));\n }\n DB::commit();\n } catch (Exception $e) {\n DB::rollback();\n Session::flash(\"danger\", $e->getMessage());\n }\n return redirect()->back();\n }", "title": "" }, { "docid": "8a450d988729c270cfacfb2daffbda8e", "score": "0.6761625", "text": "public function store(ResourceCreateRequest $request)\n {\n Resource::create([\n 'title' => $request->input('title'),\n 'description' => $request->input('description'),\n 'cat_id' => $request->input('category'),\n 'link' => $request->input('url'),\n 'user_id' => Auth::user()->id\n ]);\n return redirect(route('index'))->with('status', 'Resource Created Successfully');\n }", "title": "" }, { "docid": "a15cea6cc2c6f1b34e41fa10dc7a85e9", "score": "0.6512059", "text": "public function save()\n {\n $this->_storage->modify($this->id, $this->toHash(true));\n }", "title": "" }, { "docid": "8ee7e267114dc7aff05b19f9ebc39079", "score": "0.6424367", "text": "public function create($resource);", "title": "" }, { "docid": "7d031b8290ff632bab7fef6a00576916", "score": "0.6391937", "text": "public function store()\n\t\t{\n\t\t\t//\n\t\t}", "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": "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": "2013cf53419c1746030f01635e54fbc5", "score": "0.6349437", "text": "public function storeAndNew()\n {\n $this->storeAndNew = true;\n $this->store();\n }", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" } ]
306234aea622f3872d5032be2e401448
Page Settings End Get Ip
[ { "docid": "e7da51130bb445877628be118249f118", "score": "0.6784235", "text": "function GetIp()\n {\n if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet\n {\n $ip=$_SERVER['HTTP_CLIENT_IP'];\n }\n elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy\n {\n $ip=$_SERVER['HTTP_X_FORWARDED_FOR'];\n }\n else\n {\n $ip=$_SERVER['REMOTE_ADDR'];\n }\n return $ip;\n }", "title": "" } ]
[ { "docid": "4046b745bc23cdecf2a5c9276bef1f60", "score": "0.7002874", "text": "public function getIP();", "title": "" }, { "docid": "84b569847a204254262f1144b07b7f0d", "score": "0.700226", "text": "function getIp() {\n\t\n\t$ip = Wht::getIp();\n\treturn $ip;\n\t\n }", "title": "" }, { "docid": "8f4c688278f600580c430db19627e3b5", "score": "0.69380385", "text": "private function _getIP(){\n\n\t\t$this->userIP = $_SERVER['HTTP_USER_AGENT'];\n\n\t}", "title": "" }, { "docid": "8679f752261b21ddebeb84d90f61861b", "score": "0.692486", "text": "function cispam_ip(){\n\t// par defaut\n\t$ci_ip = $GLOBALS['ip'];\n\t\n\t// ordre de recherche personnalise de l'IP dans le fichier de parametrage config/_config_cispam.php\n\tif (isset($GLOBALS['ciconfig']['cispam_ip_ordre'])) {\n\t\tif (is_array($GLOBALS['ciconfig']['cispam_ip_ordre'])){\n\t\t\t// determination de l'IP\n\t\t\t$cispam_ip_ordre = $GLOBALS['ciconfig']['cispam_ip_ordre'];\t\n\t\t\tforeach ($cispam_ip_ordre as $valeur) {\n\t\t\t\tif (isset($_SERVER[$valeur])) {\n\t\t\t\t\tif ($_SERVER[$valeur]) {\n\t\t\t\t\t\t$ci_ip = $_SERVER[$valeur];\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}\n\treturn $ci_ip;\n}", "title": "" }, { "docid": "a779320d1d57d76a7c70f913be93fd03", "score": "0.6896863", "text": "function getVisIpAddr() { \n \n if (!empty($_SERVER['HTTP_CLIENT_IP'])) { \n return $_SERVER['HTTP_CLIENT_IP']; \n } \n else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { \n return $_SERVER['HTTP_X_FORWARDED_FOR']; \n } \n else { \n return $_SERVER['REMOTE_ADDR']; \n } \n}", "title": "" }, { "docid": "026838a1f53439bee8944f20ab8eb123", "score": "0.6813115", "text": "function getIp() {\n\t\n\t$sIp=\"1.1.1.1\";\n\t\n\tif (isset($_SERVER[\"HTTP_X_FORWARDED_FOR\"])) \n\t{\n\t if (isset($_SERVER[\"HTTP_CLIENT_IP\"])) \n\t\t$proxy = $_SERVER[\"HTTP_CLIENT_IP\"];\n\t else \n\t\t$proxy = $_SERVER[\"REMOTE_ADDR\"];\n\t\t\t\n\t $sIp = $_SERVER[\"HTTP_X_FORWARDED_FOR\"];\n\t} \n\telse \n\t{\n\t if (isset($_SERVER[\"HTTP_CLIENT_IP\"])) \n\t\t$sIp = $_SERVER[\"HTTP_CLIENT_IP\"];\n\t else \n\t\t$sIp = $_SERVER[\"REMOTE_ADDR\"];\n\t}\n\t\n\treturn $sIp;\n}", "title": "" }, { "docid": "d3d0e0f640e53e9bf22f69da1e1f9ca2", "score": "0.6761888", "text": "public function getIp() : string;", "title": "" }, { "docid": "ade61a25b4d3d81b857f1b34d1c10356", "score": "0.66918737", "text": "public function getClientIp()\n {\n }", "title": "" }, { "docid": "41248c2326cc358f146fc69e4fc9a49d", "score": "0.66881883", "text": "function getIp(){\n\t\t\t if(!empty($_SERVER['HTTP_CLIENT_IP'])){\n\t\t\t $ip = $_SERVER['HTTP_CLIENT_IP'];\n\t\t\t }elseif(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){\n\t\t\t $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n\t\t\t }else{\n\t\t\t $ip = $_SERVER['REMOTE_ADDR'];\n\t\t\t }\n\t\t\t return $ip;\n\t\t\t }", "title": "" }, { "docid": "d1bb5ef0f482dd8a87e0042e2a2998c0", "score": "0.6686025", "text": "function conseguirIp() \n { \n $ip = Yii::$app->request->userIp; \n \n return $ip; \n }", "title": "" }, { "docid": "cb232abb5688b01e6e815ad376f9aa66", "score": "0.66225964", "text": "function getIPAddress()\n{\n //se l'ip proviene dalla condivisione Internet\n if (!empty($_SERVER['HTTP_CLIENT_IP'])) {\n $ip = $_SERVER['HTTP_CLIENT_IP'];\n }\n //se l'ip arriva dal proxy \n else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n }\n //se l'ip arriva dal campo remote address \n else {\n $ip = $_SERVER['REMOTE_ADDR'];\n }\n return $ip;\n}", "title": "" }, { "docid": "625a23f370f3ccd16e7668adb9218e81", "score": "0.6602247", "text": "function find_ip() {\r\r\n\t\t$ip_var = ''; // Create ip_var variable\r\r\n\t\tif(!empty($_SERVER['HTTP_CLIENT_IP'])) {\r\r\n\t\t\t$ip_var = $_SERVER['HTTP_CLIENT_IP']; // Adjust ip_var variable\r\r\n\t\t} elseif(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\r\r\n\t\t\t$ip_var = $_SERVER['HTTP_X_FORWARDED_FOR']; // Adjust ip_var variable\r\r\n\t\t} elseif(!empty($_SERVER['REMOTE_ADDR'])) {\r\r\n\t\t\t$ip_var = $_SERVER['REMOTE_ADDR']; // Adjust ip_var variable\r\r\n\t\t} else {\r\r\n\t\t\t$ip_var = 'HIDDEN'; // Adjust ip_var variable\r\r\n\t\t}\r\r\n\r\r\n\t\treturn $ip_var;\r\r\n\t}", "title": "" }, { "docid": "b1c7e5537331a539a14eeff704d65f0a", "score": "0.6594556", "text": "function getUserIp(){\n switch (true) {\n case(!empty($_SERVER['HTTP_X_REAL_IP'])): return $_SERVER['HTTP_X_REAL_IP'];\n case(!empty($_SERVER['HTTP_CLIENT_IP'])): return $_SERVER['HTTP_CLIENT_IP'];\n case(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])): return $_SERVER['HTTP_X_FORWARDED_FOR'];\n\n default:\n return $_SERVER['REMOTE_ADDR'];\n\n}\n}", "title": "" }, { "docid": "36f7e34588867fec1aade87e308ca210", "score": "0.65858406", "text": "function fetch_ip()\n {\n return $_SERVER['REMOTE_ADDR'];\n }", "title": "" }, { "docid": "1c70fde3e656c9b32b15fe322c2d4199", "score": "0.6577912", "text": "function ip() {\r\n\t\t\t // get user id \r\n\t \t $ip = GeoIP::getClientIP();\r\n\t \t // pass the ip\r\n\t $data = GeoIP::getLocation('156.201.108.26');\r\n\t //return user ip data\r\n\t return $data;\r\n\t\t}", "title": "" }, { "docid": "a69174e20c3675603ffc748c1eaa17f8", "score": "0.6553777", "text": "function getRealIpAddress()\n{\nif (!empty($_SERVER['HTTP_CLIENT_IP']))\n//check ip from internet\n{\n$ipadd=$_SERVER['HTTP_CLIENT_IP'];\n}\nelseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))\n//check ip proxy\n{\n$ipadd=$_SERVER['HTTP_X_FORWARDED_FOR'];\n}\nelse\n{\n$ipadd=$_SERVER['REMOTE_ADDR'];\n}\nreturn $ipadd;\n}", "title": "" }, { "docid": "a69174e20c3675603ffc748c1eaa17f8", "score": "0.6553777", "text": "function getRealIpAddress()\n{\nif (!empty($_SERVER['HTTP_CLIENT_IP']))\n//check ip from internet\n{\n$ipadd=$_SERVER['HTTP_CLIENT_IP'];\n}\nelseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))\n//check ip proxy\n{\n$ipadd=$_SERVER['HTTP_X_FORWARDED_FOR'];\n}\nelse\n{\n$ipadd=$_SERVER['REMOTE_ADDR'];\n}\nreturn $ipadd;\n}", "title": "" }, { "docid": "01c54ad39ef7b85594b6120686ae4ad7", "score": "0.65519077", "text": "function getIpCustomer(){\n$ipaddress = '';\n if (getenv('HTTP_CLIENT_IP'))\n $ipaddress = getenv('HTTP_CLIENT_IP');\n else if(getenv('HTTP_X_FORWARDED_FOR'))\n $ipaddress = getenv('HTTP_X_FORWARDED_FOR');\n else if(getenv('HTTP_X_FORWARDED'))\n $ipaddress = getenv('HTTP_X_FORWARDED');\n else if(getenv('HTTP_FORWARDED_FOR'))\n $ipaddress = getenv('HTTP_FORWARDED_FOR');\n else if(getenv('HTTP_FORWARDED'))\n $ipaddress = getenv('HTTP_FORWARDED');\n else if(getenv('REMOTE_ADDR'))\n $ipaddress = getenv('REMOTE_ADDR');\n else\n $ipaddress = 'IP Tidak Dikenali';\n \n return $ipaddress;\n}", "title": "" }, { "docid": "b07d5e5176f90d3424b5e62393d0e99b", "score": "0.6545314", "text": "public function getRemoteIp();", "title": "" }, { "docid": "a5f34a952797483fe0fdbe7159840bf0", "score": "0.6536946", "text": "public function get_ip(){\n\t\treturn $this->ip;\n\t}", "title": "" }, { "docid": "c330d8a10f41712efd63c1fbe140e890", "score": "0.65257007", "text": "private function IPuser() {\n\t$returnar =\"\";\nif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){\n $returnar=$_SERVER['HTTP_X_FORWARDED_FOR'];}\nif (!empty($_SERVER['HTTP_CLIENT_IP'])){\n $returnar=$_SERVER['HTTP_CLIENT_IP'];}\nif(!empty($_SERVER['REMOTE_ADDR'])){\n\t $returnar=$_SERVER['REMOTE_ADDR'];}\nreturn $returnar;\n}", "title": "" }, { "docid": "3ab45f2445b07f5c0ad73272e7d21ed2", "score": "0.65154856", "text": "function PaopackClientIp() {\r\n\t\t\t $ipaddress = '';\r\n\t\t\t if (isset($_SERVER['HTTP_CLIENT_IP']))\r\n\t\t\t $ipaddress = $_SERVER['HTTP_CLIENT_IP'];\r\n\t\t\t else if(isset($_SERVER['HTTP_X_FORWARDED_FOR']))\r\n\t\t\t $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];\r\n\t\t\t else if(isset($_SERVER['HTTP_X_FORWARDED']))\r\n\t\t\t $ipaddress = $_SERVER['HTTP_X_FORWARDED'];\r\n\t\t\t else if(isset($_SERVER['HTTP_FORWARDED_FOR']))\r\n\t\t\t $ipaddress = $_SERVER['HTTP_FORWARDED_FOR'];\r\n\t\t\t else if(isset($_SERVER['HTTP_FORWARDED']))\r\n\t\t\t $ipaddress = $_SERVER['HTTP_FORWARDED'];\r\n\t\t\t else if(isset($_SERVER['REMOTE_ADDR']))\r\n\t\t\t $ipaddress = $_SERVER['REMOTE_ADDR'];\r\n\t\t\t else\r\n\t\t\t $ipaddress = 'UNKNOWN';\r\n\t\t\t return $ipaddress;\r\n\t\t\t}", "title": "" }, { "docid": "8654f7d61d8606aa4824a9a9ae994300", "score": "0.65124416", "text": "public function getRemoteAddr() {\n return Mage::helper('core/http')->getRemoteAddr();\n }", "title": "" }, { "docid": "fe83bb66465407226820a8c7899d96b5", "score": "0.6501807", "text": "private function getIp() {\n if (!empty($_SERVER['HTTP_CLIENT_IP'])) $ip = $_SERVER['HTTP_CLIENT_IP'];\n else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n else $ip= $_SERVER['REMOTE_ADDR'];\n return $ip;\n }", "title": "" }, { "docid": "fe93152807f0ba88e3445557cd95d9fa", "score": "0.64949805", "text": "function getIPAddress() {\r\nif(!empty($_SERVER['HTTP_CLIENT_IP'])) { \r\n $ip = $_SERVER['HTTP_CLIENT_IP']; \r\n} \r\n//whether ip is from the proxy \r\nelseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { \r\n $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; \r\n} \r\n//whether ip is from the remote address \r\nelse{ \r\n $ip = $_SERVER['REMOTE_ADDR']; \r\n} \r\nreturn $ip; \r\n}", "title": "" }, { "docid": "e6bcfd4d6ec41d06dddc3a0b1ab879e0", "score": "0.6483609", "text": "public function getMyIp() : IpInfo;", "title": "" }, { "docid": "08ffa508a9829ef69bb29aa71715b1c4", "score": "0.6481978", "text": "public function getIp()\n {\n return Yii::$app->request->getUserIP();\n }", "title": "" }, { "docid": "c44e49147ca7de04e55de2d089ccbe37", "score": "0.6481721", "text": "public function getIP(){\n return $this->ip;\n }", "title": "" }, { "docid": "e2815a8ac61549b3ba10d5cd07318f3d", "score": "0.64561135", "text": "function requestIP() {\n\t\treturn gethostbyname($_SERVER['REMOTE_ADDR']);\n\t}", "title": "" }, { "docid": "903a44a1f1a98409a7dba4755fdfdaed", "score": "0.64444685", "text": "public function getIp() {\n $this->_ip = $this->getFront()->getClientIp();\n return $this->_ip;\n }", "title": "" }, { "docid": "d117f78c198a993199f0fb7f399df3c5", "score": "0.64319915", "text": "private function dzk_getip()\n {\n $request = ServiceUtil::get('request');\n if ($this->dzk_validip($request->server->get(\"HTTP_CLIENT_IP\"))) {\n return $request->server->get(\"HTTP_CLIENT_IP\");\n }\n\n foreach (explode(',', $request->server->get(\"HTTP_X_FORWARDED_FOR\")) as $ip) {\n if ($this->dzk_validip(trim($ip))) {\n return $ip;\n }\n }\n\n if ($this->dzk_validip($request->server->get(\"HTTP_X_FORWARDED\"))) {\n return $request->server->get(\"HTTP_X_FORWARDED\");\n } elseif ($this->dzk_validip($request->server->get(\"HTTP_FORWARDED_FOR\"))) {\n return $request->server->get(\"HTTP_FORWARDED_FOR\");\n } elseif ($this->dzk_validip($request->server->get(\"HTTP_FORWARDED\"))) {\n return $request->server->get(\"HTTP_FORWARDED\");\n } elseif ($this->dzk_validip($request->server->get(\"HTTP_X_FORWARDED\"))) {\n return $request->server->get(\"HTTP_X_FORWARDED\");\n } else {\n return $request->server->get(\"REMOTE_ADDR\");\n }\n }", "title": "" }, { "docid": "5816e1ec21fa54347a5c71947fbba817", "score": "0.6423075", "text": "function getIPAddress() {\nif(!empty($_SERVER['HTTP_CLIENT_IP'])) { \n\t$ip = $_SERVER['HTTP_CLIENT_IP']; \n} \n//whether ip is from the proxy \nelseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { \n\t$ip = $_SERVER['HTTP_X_FORWARDED_FOR']; \n} \n//whether ip is from the remote address \nelse{ \n $ip = $_SERVER['REMOTE_ADDR']; \n} \nreturn $ip; \n}", "title": "" }, { "docid": "4b02477e3dd37533da7b99d333582117", "score": "0.64180756", "text": "function getIP() {\n if (!empty($_SERVER['HTTP_CLIENT_IP']) && $_SERVER['HTTP_CLIENT_IP']!=\"127.0.0.1\")\n return $_SERVER['HTTP_CLIENT_IP'];\n \n if (!empty($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_CLIENT_IP']!=\"127.0.0.1\")\n return $_SERVER['HTTP_X_FORWARDED_FOR'];\n \n return $_SERVER['REMOTE_ADDR'];\n\t}", "title": "" }, { "docid": "75d570b0efc2948533dca18cb96f4511", "score": "0.6411067", "text": "public function getIp() {\n $keys = ['HTTP_X_REAL_IP','REMOTE_ADDR', 'X_FORWARDED_FOR', 'HTTP_X_FORWARDED_FOR', 'CLIENT_IP'];\n foreach ($keys as $k) {\n if (isset($_SERVER[$k])) return $SERVER[$k];\n }\n return \"0.0.0.0\";\n }", "title": "" }, { "docid": "3f3bd0f8732bbe9dc24fbb3bda3ff46f", "score": "0.6411064", "text": "function _ip() {\n $ipaddress = '';\n if(getenv('HTTP_CLIENT_IP')){\n $ipaddress = getenv('HTTP_CLIENT_IP');\n }\n elseif(getenv('HTTP_X_FORWARDED_FOR')){\n $ipaddress = getenv('HTTP_X_FORWARDED_FOR');\n }\n elseif(getenv('HTTP_X_FORWARDED')){\n $ipaddress = getenv('HTTP_X_FORWARDED');\n }\n elseif(getenv('HTTP_FORWARDED_FOR')){\n $ipaddress = getenv('HTTP_FORWARDED_FOR');\n }\n elseif(getenv('HTTP_FORWARDED')){\n $ipaddress = getenv('HTTP_FORWARDED');\n }\n elseif(getenv('REMOTE_ADDR')){\n $ipaddress = getenv('REMOTE_ADDR');\n }\n else{\n $ipaddress = 'UNKNOWN';\n }\n return $ipaddress;\n }", "title": "" }, { "docid": "371ce9b20b70a63159515724ba66ecc6", "score": "0.6409462", "text": "public function getIp()\n\t{\n\t\treturn $this->get(self::IP);\n\t}", "title": "" }, { "docid": "cb32a0b3c86b66d7ec3115cb93d56617", "score": "0.6400534", "text": "private function _getClientIp(){\n return $_SERVER['REMOTE_ADDR'];\n }", "title": "" }, { "docid": "f89e74165ea2d631e374b463dcf28513", "score": "0.6391059", "text": "function IPuser() {\n\t$returnar =\"\";\nif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){\n $returnar=$_SERVER['HTTP_X_FORWARDED_FOR'];}\nif (!empty($_SERVER['HTTP_CLIENT_IP'])){\n $returnar=$_SERVER['HTTP_CLIENT_IP'];}\nif(!empty($_SERVER['REMOTE_ADDR'])){\n\t $returnar=$_SERVER['REMOTE_ADDR'];}\nreturn $returnar;\n}", "title": "" }, { "docid": "ad9b7882d3aef456de9c2022fc2311ea", "score": "0.6386506", "text": "function getRealIp(){if (!empty($_SERVER['HTTP_CLIENT_IP'])){$ip=$_SERVER['HTTP_CLIENT_IP'];}elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];}else{$ip=$_SERVER['REMOTE_ADDR'];}return $ip;}", "title": "" }, { "docid": "2565aabf39f5015802f59fc1c2d1c6ea", "score": "0.63696426", "text": "function get_client_ip_2() {\n $ipaddress = '';\n if (isset($_SERVER['HTTP_CLIENT_IP']))\n $ipaddress = $_SERVER['HTTP_CLIENT_IP'];\n else if(isset($_SERVER['HTTP_X_FORWARDED_FOR']))\n $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];\n else if(isset($_SERVER['HTTP_X_FORWARDED']))\n $ipaddress = $_SERVER['HTTP_X_FORWARDED'];\n else if(isset($_SERVER['HTTP_FORWARDED_FOR']))\n $ipaddress = $_SERVER['HTTP_FORWARDED_FOR'];\n else if(isset($_SERVER['HTTP_FORWARDED']))\n $ipaddress = $_SERVER['HTTP_FORWARDED'];\n else if(isset($_SERVER['REMOTE_ADDR']))\n $ipaddress = $_SERVER['REMOTE_ADDR'];\n else\n $ipaddress = 'IP tidak dikenali';\n return $ipaddress;\n}", "title": "" }, { "docid": "1df9a5f311274c10f323668b1413ff62", "score": "0.63670886", "text": "public static function ip()\n {\n $ip = self::server('IP');\n if (Nishchay::getConfig('proxy.active') !== true) {\n return $ip;\n }\n\n $header = Nishchay::getConfig('proxy.header');\n\n if (empty($header)) {\n return $ip;\n }\n\n $header = strtoupper($header);\n $header = strpos($header, 'HTTP') === 0 ? $header : ('HTTP_' . $header);\n\n $header = str_replace('-', '_', $header);\n\n $ips = self::server($header);\n\n if (empty($ips)) {\n return $ip;\n }\n\n $proxyIPs = Nishchay::getConfig('proxy.header');\n $proxyIPs = is_array($proxyIPs) === false ? [] : $proxyIPs;\n\n $ips = array_map('trim', $ips);\n $ips = array_diff($ips, $proxyIPs);\n\n if (empty($ips)) {\n return $ip;\n }\n\n return array_pop($ips);\n }", "title": "" }, { "docid": "aa85c73ec6852c1ca6f2e12df9f1c8e1", "score": "0.63665175", "text": "function get_ip() {\n if(!empty($_SERVER['HTTP_CLIENT_IP'])) { \n $ip = $_SERVER['HTTP_CLIENT_IP']; \n } \n /* if proxy */\n elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { \n $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; \n } \n /* if remote address */\n else{ \n $ip = $_SERVER['REMOTE_ADDR']; \n } \n return $ip;\n}", "title": "" }, { "docid": "eb814f15cb3b6271640259ef4f1aa174", "score": "0.63624173", "text": "public function getIp()\n {\n return $this->get(self::IP);\n }", "title": "" }, { "docid": "eb814f15cb3b6271640259ef4f1aa174", "score": "0.63624173", "text": "public function getIp()\n {\n return $this->get(self::IP);\n }", "title": "" }, { "docid": "eb814f15cb3b6271640259ef4f1aa174", "score": "0.63624173", "text": "public function getIp()\n {\n return $this->get(self::IP);\n }", "title": "" }, { "docid": "eb814f15cb3b6271640259ef4f1aa174", "score": "0.63624173", "text": "public function getIp()\n {\n return $this->get(self::IP);\n }", "title": "" }, { "docid": "d6a0e398c9c5e1bd9f60fcb6412f6254", "score": "0.6359645", "text": "function getIpAddress()\n {\n // check for shared internet/ISP IP\n if (!empty($_SERVER['HTTP_CLIENT_IP']) && validate_ip($_SERVER['HTTP_CLIENT_IP'])) {\n return $_SERVER['HTTP_CLIENT_IP'];\n }\n // check for IPs passing through proxies\n if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n // check if multiple ips exist in var\n if (strpos($_SERVER['HTTP_X_FORWARDED_FOR'], ',') !== false) {\n $iplist = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);\n foreach ($iplist as $ip) {\n if (validate_ip($ip))\n return $ip;\n }\n } else {\n if (validate_ip($_SERVER['HTTP_X_FORWARDED_FOR']))\n return $_SERVER['HTTP_X_FORWARDED_FOR'];\n }\n }\n if (!empty($_SERVER['HTTP_X_FORWARDED']) && validate_ip($_SERVER['HTTP_X_FORWARDED']))\n return $_SERVER['HTTP_X_FORWARDED'];\n if (!empty($_SERVER['HTTP_X_CLUSTER_CLIENT_IP']) && validate_ip($_SERVER['HTTP_X_CLUSTER_CLIENT_IP']))\n return $_SERVER['HTTP_X_CLUSTER_CLIENT_IP'];\n if (!empty($_SERVER['HTTP_FORWARDED_FOR']) && validate_ip($_SERVER['HTTP_FORWARDED_FOR']))\n return $_SERVER['HTTP_FORWARDED_FOR'];\n if (!empty($_SERVER['HTTP_FORWARDED']) && validate_ip($_SERVER['HTTP_FORWARDED']))\n return $_SERVER['HTTP_FORWARDED'];\n // return unreliable ip since all else failed\n return $_SERVER['REMOTE_ADDR'];\n }", "title": "" }, { "docid": "4055796d56653bca3c7eaa5b9da5f904", "score": "0.63569635", "text": "function getRealIPAddress(){ \n if(!empty($_SERVER['HTTP_CLIENT_IP'])){\n //check ip from share internet\n $ip = $_SERVER['HTTP_CLIENT_IP'];\n }else if(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){\n //to check ip is pass from proxy\n $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n }else{\n $ip = $_SERVER['REMOTE_ADDR'];\n }\n return $ip;\n}", "title": "" }, { "docid": "d0f784ff648d64586ff8b2b0999dd275", "score": "0.6352394", "text": "function get_ip() {\n\tif ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ) {\n\t $ip = $_SERVER['HTTP_CLIENT_IP'];\n\t} elseif ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) {\n\t $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n\t} else {\n\t $ip = $_SERVER['REMOTE_ADDR'];\n\t}\n\t return apply_filters( 'wpb_get_ip', $ip );\n\t}", "title": "" }, { "docid": "5b3bab047e5574df1179a9212286083e", "score": "0.6346806", "text": "function getUserIP() {\n if (!empty($_SERVER['HTTP_CLIENT_IP'])) {\n $ip_address = $_SERVER['HTTP_CLIENT_IP'];\n }\n//whether ip is from proxy\n elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n $ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];\n }\n//whether ip is from remote address\n else {\n $ip_address = $_SERVER['REMOTE_ADDR'];\n }\n\n return $ip_address;\n}", "title": "" }, { "docid": "ce74dc98d3826f8031669cc26db14f60", "score": "0.6346769", "text": "function get_ip()\n\t{\n\t\treturn $_SERVER['REMOTE_ADDR'].(isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? ':'.$_SERVER['HTTP_X_FORWARDED_FOR'] : '');\n\t}", "title": "" }, { "docid": "03bc3cc2a892c3da3202e5ec5a82585b", "score": "0.63452977", "text": "public static function getIp() {\n\t\treturn $_SERVER['REMOTE_ADDR'];\n\t}", "title": "" }, { "docid": "29522a9d881758e977a6affbf216f117", "score": "0.63412607", "text": "function get_ip()\n\t{\n\t$ip= $_SERVER['REMOTE_ADDR']; //obtenemos IP\n\t\n\tif( isset($_SERVER['HTTP_X_FORWARDED_FOR']) )\n\t\t$proxy_ip= $_SERVER['HTTP_X_FORWARDED_FOR'];\n\telse if( isset($_SERVER['HTTP_VIA']) )\n\t\t$proxy_ip= $_SERVER['HTTP_VIA'];\n\telse \t $proxy_ip=0;\n\t\n\tif( $proxy_ip ) # si existe IP de proxy\n\t\treturn $proxy_ip. ','. $ip; # retornamos ambas IPs: IP Real, IP Proxy \n\telse\treturn $ip; # solo IP, ya que es su IP real\n\t}", "title": "" }, { "docid": "31f7e00d41e518833256be4d2451c90e", "score": "0.63328826", "text": "function getRealIpAddr()\n{\n if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet\n {\n $ip=$_SERVER['HTTP_CLIENT_IP'];\n }\n elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy\n {\n $ip=$_SERVER['HTTP_X_FORWARDED_FOR'];\n }\n else\n {\n $ip=$_SERVER['REMOTE_ADDR'];\n }\n return $ip;\n}", "title": "" }, { "docid": "31f7e00d41e518833256be4d2451c90e", "score": "0.63328826", "text": "function getRealIpAddr()\n{\n if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet\n {\n $ip=$_SERVER['HTTP_CLIENT_IP'];\n }\n elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy\n {\n $ip=$_SERVER['HTTP_X_FORWARDED_FOR'];\n }\n else\n {\n $ip=$_SERVER['REMOTE_ADDR'];\n }\n return $ip;\n}", "title": "" }, { "docid": "72f04644bb1db58e946a3cd0022c3e83", "score": "0.6329981", "text": "function getUserIpAddr(){\n if(!empty($_SERVER['HTTP_CLIENT_IP'])){\n //ip from share internet\n $ip = $_SERVER['HTTP_CLIENT_IP'];\n }elseif(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){\n //ip pass from proxy\n $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n }else{\n $ip = $_SERVER['REMOTE_ADDR'];\n }\n return $ip;\n}", "title": "" }, { "docid": "f8f9ece5a01be44a3008063496b39247", "score": "0.6327507", "text": "function getIPAddress() {\n\t\t\t\tif(!empty($_SERVER['HTTP_CLIENT_IP'])) { \n\t\t\t\t\t\t\t$ip = $_SERVER['HTTP_CLIENT_IP']; \n\t\t\t\t\t} \n\t\t\t\t//whether ip is from the proxy \n\t\t\t\telseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { \n\t\t\t\t\t\t\t$ip = $_SERVER['HTTP_X_FORWARDED_FOR']; \n\t\t\t\t} \n\t\t\t//whether ip is from the remote address \n\t\t\t\telse{ \n\t\t\t\t\t\t$ip = $_SERVER['REMOTE_ADDR']; \n\t\t\t\t} \n\t\t\t\treturn $ip; \n\t\t\t}", "title": "" }, { "docid": "962f0595af120d4a5f42f44a065ac75c", "score": "0.63231474", "text": "function get_ip()\r\n{\r\n\tif(isset($_SERVER['HTTP_X_FORWARDED_FOR']))\r\n\t{\r\n\t\treturn $_SERVER['HTTP_X_FORWARDED_FOR'];\r\n\t}\r\n\tif(isset($_SERVER['HTTP_CLIENT_IP']))\r\n\t{\r\n\t\treturn $_SERVER['HTTP_CLIENT_IP'];\r\n\t}\r\n\treturn $_SERVER['REMOTE_ADDR'];\r\n}", "title": "" }, { "docid": "47d8bcb707fd44b09bcd9185138434c8", "score": "0.63230896", "text": "function getRealIPAddr()\n{\n if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet\n {\n $ip=$_SERVER['HTTP_CLIENT_IP'];\n }\n elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy\n {\n $ip=$_SERVER['HTTP_X_FORWARDED_FOR'];\n }\n else\n {\n $ip=$_SERVER['REMOTE_ADDR'];\n }\n return $ip;\n}", "title": "" }, { "docid": "11082ccd402925208196f3be3602a2d9", "score": "0.63226384", "text": "function getIPAddress() {\n if(!empty($_SERVER['HTTP_CLIENT_IP'])) {\n $ip = $_SERVER['HTTP_CLIENT_IP'];\n }\n //whether ip is from the proxy\n elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n }\n//whether ip is from the remote address\n else{\n $ip = $_SERVER['REMOTE_ADDR'];\n }\n return $ip;\n }", "title": "" }, { "docid": "4a909fecc8c2b6b24b0c3cd942684528", "score": "0.6318098", "text": "function get_user_ip()\n{\n if ( !empty( $_SERVER['HTTP_CLIENT_IP'] ) )//check ip from share internet\n {\n $ip = $_SERVER['HTTP_CLIENT_IP'];\n }\n elseif ( !empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) )//to check ip is pass from proxy\n {\n $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n }\n else //standard remote ip address\n {\n $ip = $_SERVER['REMOTE_ADDR'];\n }\n return $ip;\n}", "title": "" }, { "docid": "89d3230e1695aa9c3dd2f1dbe2980104", "score": "0.63156474", "text": "function getIP(){\n $this->ip = $this->input->ip_address();\n return $this->ip;\n }", "title": "" }, { "docid": "1e5a786f6ce073c83b3eaac83d18f31e", "score": "0.630887", "text": "function getIpAdd() {\n \t// check for shared internet/ISP IP\n \tif (!empty($_SERVER['HTTP_CLIENT_IP']) && validate_ip($_SERVER['HTTP_CLIENT_IP'])) {\n \treturn $_SERVER['HTTP_CLIENT_IP'];\n \t}\n\n \t// check for IPs passing through proxies\n \tif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n \t// check if multiple ips exist in var\n \tif (strpos($_SERVER['HTTP_X_FORWARDED_FOR'], ',') !== false) {\n \t$iplist = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);\n \tforeach ($iplist as $ip) {\n \tif (validate_ip($ip))\n \treturn $ip;\n \t}\n \t} else {\n \tif (validate_ip($_SERVER['HTTP_X_FORWARDED_FOR']))\n \treturn $_SERVER['HTTP_X_FORWARDED_FOR'];\n \t}\n \t}\n \tif (!empty($_SERVER['HTTP_X_FORWARDED']) && validate_ip($_SERVER['HTTP_X_FORWARDED']))\n \treturn $_SERVER['HTTP_X_FORWARDED'];\n \tif (!empty($_SERVER['HTTP_X_CLUSTER_CLIENT_IP']) && validate_ip($_SERVER['HTTP_X_CLUSTER_CLIENT_IP']))\n \treturn $_SERVER['HTTP_X_CLUSTER_CLIENT_IP'];\n \tif (!empty($_SERVER['HTTP_FORWARDED_FOR']) && validate_ip($_SERVER['HTTP_FORWARDED_FOR']))\n \treturn $_SERVER['HTTP_FORWARDED_FOR'];\n \tif (!empty($_SERVER['HTTP_FORWARDED']) && validate_ip($_SERVER['HTTP_FORWARDED']))\n \treturn $_SERVER['HTTP_FORWARDED'];\n\n\t // return unreliable ip since all else failed\n \treturn $_SERVER['REMOTE_ADDR'];\n\t}", "title": "" }, { "docid": "a627c1287bb641ae674195a1592c8294", "score": "0.63001", "text": "function Captura_IP() {\n unset($this->ip);\n unset($this->proxy);\n if (getenv(HTTP_X_FORWARDED_FOR)) {\n if (getenv(HTTP_CLIENT_IP)) {\n $this->ip = getenv(HTTP_CLIENT_IP);\n } else {\n $this->ip = getenv(HTTP_X_FORWARDED_FOR);\n }\n $this->proxy = getenv(REMOTE_ADDR);\n } else {\n $this->ip = getenv(REMOTE_ADDR);\n }\n /*------------------------------------------------------------------------\n RETURNA STRING COM PAGINACAO PRONTA\n ------------------------------------------------------------------------*/ \n return $this->proxy . (!empty($this->proxy) ? '-' : '') . $this->ip;\n }", "title": "" }, { "docid": "48558a2fd0a43f32360bb45bd4eb825b", "score": "0.62996453", "text": "function userIp()\n{\n $HTTP_CLIENT_IP = $_SERVER[\"HTTP_CLIENT_IP\"];\n $HTTP_X_FORWARDED_FOR = $_SERVER[\"HTTP_X_FORWARDED_FOR\"];\n $HTTP_X_FORWARDED = $_SERVER[\"HTTP_X_FORWARDED\"];\n $HTTP_X_CLUSTER_CLIENT_IP = $_SERVER[\"HTTP_X_CLUSTER_CLIENT_IP\"];\n $HTTP_FORWARDED_FOR = $_SERVER[\"HTTP_FORWARDED_FOR\"];\n $HTTP_FORWARDED = $_SERVER[\"HTTP_FORWARDED\"];\n $REMOTE_ADDR = $_SERVER[\"REMOTE_ADDR\"];\n $HTTP_VIA = $_SERVER[\"HTTP_VIA\"];\n\n $arrayIp = array(\n '1. HTTP_CLIENT_IP' => $HTTP_CLIENT_IP,\n '2. HTTP_X_FORWARDED_FOR' => $HTTP_X_FORWARDED_FOR,\n '3. HTTP_X_FORWARDED' => $HTTP_X_FORWARDED,\n '4. HTTP_X_CLUSTER_CLIENT_IP' => $HTTP_X_CLUSTER_CLIENT_IP,\n '5. HTTP_FORWARDED_FOR' => $HTTP_FORWARDED_FOR,\n '6. HTTP_FORWARDED' => $HTTP_FORWARDED,\n '7. REMOTE_ADDR' => $REMOTE_ADDR,\n '8. HTTP_VIA' => $HTTP_VIA\n );\n\n echo \"USER IP : <br>\";\n foreach ($arrayIp as $key => $value) {\n echo $key.\"=>\".$value.\"<br>\";\n }\n echo \"<br><br><br>\";\n\n return $arrayIp;\n}", "title": "" }, { "docid": "3efb91dbb76b70b704ab5f0a8e9bc1fe", "score": "0.629407", "text": "function getRealIpAddr() {\n\t if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet\n\t {\n\t $ip=$_SERVER['HTTP_CLIENT_IP'];\n\t }\n\t elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy\n\t {\n\t $ip=$_SERVER['HTTP_X_FORWARDED_FOR'];\n\t }\n\t else\n\t {\n\t $ip=$_SERVER['REMOTE_ADDR'];\n\t }\n\t return $ip;\n\t}", "title": "" }, { "docid": "7970c6c050b0d1dc8f126473e440a8a8", "score": "0.62865156", "text": "function getip(){\r\n\tif (getenv(\"HTTP_CLIENT_IP\") && strcasecmp(getenv(\"HTTP_CLIENT_IP\"),\"unknown\"))\r\n\t$ip = getenv(\"HTTP_CLIENT_IP\");\r\n\telseif (getenv(\"HTTP_X_FORWARDED_FOR\") && strcasecmp(getenv(\"HTTP_X_FORWARDED_FOR\"), \"unknown\"))\r\n\t$ip = getenv(\"HTTP_X_FORWARDED_FOR\");\r\n\telseif (getenv(\"REMOTE_ADDR\") && strcasecmp(getenv(\"REMOTE_ADDR\"), \"unknown\"))\r\n\t$ip = getenv(\"REMOTE_ADDR\");\r\n\telseif ($_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], \"unknown\"))\r\n\t$ip = $_SERVER['REMOTE_ADDR'];\r\n \telse\r\n\t$ip = \"unknown\";\r\n \r\n\treturn $ip;\r\n}", "title": "" }, { "docid": "61ea029442cb8c90a2502431e2375d99", "score": "0.62833095", "text": "function getIP()\n{\n $ip='0.0.0.0';\n if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip=$_SERVER['HTTP_CLIENT_IP']; }\n elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip=$_SERVER['HTTP_X_FORWARDED_FOR']; }\n else { $ip=$_SERVER['REMOTE_ADDR']; }\n return $ip;\n}", "title": "" }, { "docid": "7e822a71bd0bcdf0d481a996001b0275", "score": "0.62814164", "text": "function getUserIP() {\n $ipaddress = '';\n if (isset($_SERVER['HTTP_CLIENT_IP']))\n $ipaddress = $_SERVER['HTTP_CLIENT_IP'];\n else if(isset($_SERVER['HTTP_X_FORWARDED_FOR']))\n $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];\n else if(isset($_SERVER['HTTP_X_FORWARDED']))\n $ipaddress = $_SERVER['HTTP_X_FORWARDED'];\n else if(isset($_SERVER['HTTP_X_CLUSTER_CLIENT_IP']))\n $ipaddress = $_SERVER['HTTP_X_CLUSTER_CLIENT_IP'];\n else if(isset($_SERVER['HTTP_FORWARDED_FOR']))\n $ipaddress = $_SERVER['HTTP_FORWARDED_FOR'];\n else if(isset($_SERVER['HTTP_FORWARDED']))\n $ipaddress = $_SERVER['HTTP_FORWARDED'];\n else if(isset($_SERVER['REMOTE_ADDR']))\n $ipaddress = $_SERVER['REMOTE_ADDR'];\n else\n $ipaddress = 'UNKNOWN';\n return $ipaddress;\n}", "title": "" }, { "docid": "82f2cc0382a70eda58a5e8af38a0ac2c", "score": "0.62801534", "text": "public function getIp() {\n\t\treturn $this->ip;\n\t}", "title": "" }, { "docid": "d8bab39b0c9eb93990ca13608823ebc2", "score": "0.6279419", "text": "function get_ip()\n\t{\n\t\t$ip_address = !empty($_SERVER['HTTP_FAKE_ADDRESS']) ? $_SERVER['HTTP_FAKE_ADDRESS'] : $_SERVER['REMOTE_ADDR'];\n\n\t\terror_log(\"GET_IP=$ip_address\");\n\n\t\treturn $ip_address;\n\t}", "title": "" }, { "docid": "0df7d1f3cd7e3ce10e1f13dbc130a6ea", "score": "0.62714577", "text": "public function getIp()\n {\n return $this->ip;\n }", "title": "" }, { "docid": "0df7d1f3cd7e3ce10e1f13dbc130a6ea", "score": "0.62714577", "text": "public function getIp()\n {\n return $this->ip;\n }", "title": "" }, { "docid": "0df7d1f3cd7e3ce10e1f13dbc130a6ea", "score": "0.62714577", "text": "public function getIp()\n {\n return $this->ip;\n }", "title": "" }, { "docid": "0df7d1f3cd7e3ce10e1f13dbc130a6ea", "score": "0.62714577", "text": "public function getIp()\n {\n return $this->ip;\n }", "title": "" }, { "docid": "0df7d1f3cd7e3ce10e1f13dbc130a6ea", "score": "0.62714577", "text": "public function getIp()\n {\n return $this->ip;\n }", "title": "" }, { "docid": "0df7d1f3cd7e3ce10e1f13dbc130a6ea", "score": "0.62714577", "text": "public function getIp()\n {\n return $this->ip;\n }", "title": "" }, { "docid": "ac39d2d60146aac346dd02d4870df0b0", "score": "0.6265392", "text": "function getVisIPAddr() { \n try{\n if (!empty($_SERVER['HTTP_CLIENT_IP'])) { \n $ip= $_SERVER['HTTP_CLIENT_IP']; \n } \n else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { \n $ip= $_SERVER['HTTP_X_FORWARDED_FOR']; \n } \n else { \n $ip= $_SERVER['REMOTE_ADDR']; \n }\n $ipdat = @json_decode(file_get_contents(\"http://www.geoplugin.net/json.gp?ip=\" . $ip)); \n\n $location= $ipdat->geoplugin_countryName;\n } catch (Exception $e) {\n echo 'Caught exception: ', $e->getMessage(), \"\\n\";\n $location=\"unknow\";\n }\n\n return $location;\n }", "title": "" }, { "docid": "a45c0dc211b493cf93443b669d08b20f", "score": "0.6265383", "text": "function getUserIP()\n{\n if (isset($connecting_ip)) {\n $remote_addr = $connecting_ip;\n $client_ip = $connecting_ip;\n }\n $client = @$client_ip;\n $forward = @$forwarder_for;\n $remote = '';\n if(isset($_GET['remote_addr'])){\n $remote=$_GET['remote_addr'];\n }\n if(filter_var($client, FILTER_VALIDATE_IP))\n {\n $ip = $client;\n }\n elseif(filter_var($forward, FILTER_VALIDATE_IP))\n {\n $ip = $forward;\n }\n else\n {\n $ip = $remote;\n }\n\n return $ip;\n}", "title": "" }, { "docid": "6dda5bf71be0cf865b4247b6c7403882", "score": "0.6260988", "text": "function getIp() {\n $ip = $_SERVER['REMOTE_ADDR'];\n \n if (!empty($_SERVER['HTTP_CLIENT_IP'])) {\n $ip = $_SERVER['HTTP_CLIENT_IP'];\n } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n } //end of ifelse\n \n return $ip;\n}", "title": "" }, { "docid": "2ef8ecee3f557c07a8692db8287ddd8c", "score": "0.62597793", "text": "function get_ipn_url( $url ){\n return $this->url;\n }", "title": "" }, { "docid": "e9bf9e99aaeee8615ef039a1999c6d91", "score": "0.62570006", "text": "public function getIp()\n {\n return $this->_ip;\n }", "title": "" }, { "docid": "e9bf9e99aaeee8615ef039a1999c6d91", "score": "0.62570006", "text": "public function getIp()\n {\n return $this->_ip;\n }", "title": "" }, { "docid": "3c3cc54d17022c5f3f714ea6d1adb7b1", "score": "0.6255539", "text": "public function setServerIp()\r\n {\r\n exec('ifconfig|grep -A 1 eth0|grep \"inet addr\"|awk \\'{print $2}\\'|awk -F : \\'{print $2}\\'', $out);\r\n if (!$out) {\r\n //centos\r\n exec('ifconfig|grep -A 1 eth0|grep \"inet\"|awk \\'{print $2}\\'', $out);\r\n }\r\n if(!$out){\r\n exec('ifconfig|grep -A 1 ens33|grep \"inet\"|awk \\'{print $2}\\'', $out);\r\n }\r\n\r\n $this->serverIp = isset($out[0])?$out[0]:'miss'.time();\r\n }", "title": "" }, { "docid": "eddc5a4e4587c3eb365b65a424fa666b", "score": "0.62552994", "text": "function get_ip_address() {\n\t\t if (!empty($_SERVER['HTTP_CLIENT_IP']) && $this->validate_ip($_SERVER['HTTP_CLIENT_IP']))\n\t\t return $_SERVER['HTTP_CLIENT_IP'];\n\t\t\n\t\t // check for IPs passing through proxies\n\t\t if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n\t\t // check if multiple ips exist in var\n\t\t\t$iplist = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);\n\t\t\tforeach ($iplist as $ip) {\n\t\t\t if ($this->validate_ip($ip))\n\t\t\t return $ip;\n\t\t\t}\n\t\t }\n\t\t\n\t\t if (!empty($_SERVER['HTTP_X_FORWARDED']) && $this->validate_ip($_SERVER['HTTP_X_FORWARDED']))\n\t\t return $_SERVER['HTTP_X_FORWARDED'];\n\t\t if (!empty($_SERVER['HTTP_X_CLUSTER_CLIENT_IP']) && $this->validate_ip($_SERVER['HTTP_X_CLUSTER_CLIENT_IP']))\n\t\t return $_SERVER['HTTP_X_CLUSTER_CLIENT_IP'];\n\t\t if (!empty($_SERVER['HTTP_FORWARDED_FOR']) && $this->validate_ip($_SERVER['HTTP_FORWARDED_FOR']))\n\t\t return $_SERVER['HTTP_FORWARDED_FOR'];\n\t\t if (!empty($_SERVER['HTTP_FORWARDED']) && $this->validate_ip($_SERVER['HTTP_FORWARDED']))\n\t\t return $_SERVER['HTTP_FORWARDED'];\n\t\t\n\t\t // return unreliable ip since all else failed\n\t\t return $_SERVER['REMOTE_ADDR'];\n\t\t }", "title": "" }, { "docid": "c0dc7626f2c16fecd86f14236c61c0f7", "score": "0.6254639", "text": "function user_ip() {\n\t\t// TODO\n\t\treturn 'q.w.o.p';\n\t}", "title": "" }, { "docid": "2ab2c748e5ef1cb65065e27c6414e44f", "score": "0.62519914", "text": "function getIp() {\n\t\t\t$ip = $_SERVER['REMOTE_ADDR'];\n\n\t\t\tif (!empty($_SERVER['HTTP_CLIENT_IP'])) {\n\t\t\t\t$ip = $_SERVER['HTTP_CLIENT_IP'];\n\t\t\t\t\n\t\t\t}elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n\t\t\t\t$ip =$_SERVER['HTTP_X_FORWARDED_FOR'];\n\t\t\t}\n\n\t\t\treturn $ip;\n\n\t\t}", "title": "" }, { "docid": "ce852db058ddbeeecdc0a17a0e9f4254", "score": "0.6248667", "text": "public function getIp()\n {\n return($this->ip);\n }", "title": "" }, { "docid": "99a0a4e23dfa72124f3ab855868ed77d", "score": "0.6247561", "text": "function getIp() {\r\n $ip = $_SERVER['REMOTE_ADDR'];\r\n \r\n if (!empty($_SERVER['HTTP_CLIENT_IP'])) {\r\n $ip = $_SERVER['HTTP_CLIENT_IP'];\r\n } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\r\n $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\r\n }\r\n \r\n return $ip;\r\n}", "title": "" }, { "docid": "99a0a4e23dfa72124f3ab855868ed77d", "score": "0.6247561", "text": "function getIp() {\r\n $ip = $_SERVER['REMOTE_ADDR'];\r\n \r\n if (!empty($_SERVER['HTTP_CLIENT_IP'])) {\r\n $ip = $_SERVER['HTTP_CLIENT_IP'];\r\n } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\r\n $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\r\n }\r\n \r\n return $ip;\r\n}", "title": "" }, { "docid": "40c4e0ffb6ed039ec695dd317fa0bd3e", "score": "0.6247425", "text": "public function get_ip_address() {\n if (!empty($_SERVER['HTTP_CLIENT_IP']) && validate_ip($_SERVER['HTTP_CLIENT_IP'])) {\n return $_SERVER['HTTP_CLIENT_IP'];\n }\n\n// Check for IP addresses passing through proxies\n if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n\n// Check if multiple IP addresses exist in var\n if (strpos($_SERVER['HTTP_X_FORWARDED_FOR'], ',') !== false) {\n $iplist = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);\n foreach ($iplist as $ip) {\n if (validate_ip($ip))\n return $ip;\n }\n } else {\n if (validate_ip($_SERVER['HTTP_X_FORWARDED_FOR']))\n return $_SERVER['HTTP_X_FORWARDED_FOR'];\n }\n }\n if (!empty($_SERVER['HTTP_X_FORWARDED']) && validate_ip($_SERVER['HTTP_X_FORWARDED']))\n return $_SERVER['HTTP_X_FORWARDED'];\n if (!empty($_SERVER['HTTP_X_CLUSTER_CLIENT_IP']) && validate_ip($_SERVER['HTTP_X_CLUSTER_CLIENT_IP']))\n return $_SERVER['HTTP_X_CLUSTER_CLIENT_IP'];\n if (!empty($_SERVER['HTTP_FORWARDED_FOR']) && validate_ip($_SERVER['HTTP_FORWARDED_FOR']))\n return $_SERVER['HTTP_FORWARDED_FOR'];\n if (!empty($_SERVER['HTTP_FORWARDED']) && validate_ip($_SERVER['HTTP_FORWARDED']))\n return $_SERVER['HTTP_FORWARDED'];\n\n// Return unreliable IP address since all else failed\n return $_SERVER['REMOTE_ADDR'];\n }", "title": "" }, { "docid": "65ce66426a2af4ffe4c083490b613d09", "score": "0.62469536", "text": "public function getIp() {\n\t\treturn $this->_ip;\n\t}", "title": "" }, { "docid": "0bb47103531fa372c8954d5451a8e9c3", "score": "0.6246109", "text": "function get_ip_address() {\nif (!empty($_SERVER['HTTP_CLIENT_IP']) && validate_ip($_SERVER['HTTP_CLIENT_IP'])) {\nreturn $_SERVER['HTTP_CLIENT_IP'];\n}\n\n// check for IPs passing through proxies\nif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n// check if multiple ips exist in var\nif (strpos($_SERVER['HTTP_X_FORWARDED_FOR'], ',') !== false) {\n$iplist = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);\nforeach ($iplist as $ip) {\nif (validate_ip($ip))\nreturn $ip;\n}\n} else {\nif (validate_ip($_SERVER['HTTP_X_FORWARDED_FOR']))\nreturn $_SERVER['HTTP_X_FORWARDED_FOR'];\n}\n}\nif (!empty($_SERVER['HTTP_X_FORWARDED']) && validate_ip($_SERVER['HTTP_X_FORWARDED']))\nreturn $_SERVER['HTTP_X_FORWARDED'];\nif (!empty($_SERVER['HTTP_X_CLUSTER_CLIENT_IP']) && validate_ip($_SERVER['HTTP_X_CLUSTER_CLIENT_IP']))\nreturn $_SERVER['HTTP_X_CLUSTER_CLIENT_IP'];\nif (!empty($_SERVER['HTTP_FORWARDED_FOR']) && validate_ip($_SERVER['HTTP_FORWARDED_FOR']))\nreturn $_SERVER['HTTP_FORWARDED_FOR'];\nif (!empty($_SERVER['HTTP_FORWARDED']) && validate_ip($_SERVER['HTTP_FORWARDED']))\nreturn $_SERVER['HTTP_FORWARDED'];\n\n// return unreliable ip since all else failed\nreturn $_SERVER['REMOTE_ADDR'];\n}", "title": "" }, { "docid": "d02a89a859d59120d3c2c5867bb0c68f", "score": "0.6242621", "text": "public static function FetchIP()\n {\n return $_SERVER['REMOTE_ADDR'];\n }", "title": "" }, { "docid": "5343291c36a1417a6bc1bb1590e0eb68", "score": "0.62341726", "text": "function getVisitorIPAddress(){\n $userIP = '';\n if(isset($_SERVER['HTTP_CLIENT_IP'])){\n $userIP = $_SERVER['HTTP_CLIENT_IP'];\n }elseif(isset($_SERVER['HTTP_X_FORWARDED_FOR'])){\n $userIP = $_SERVER['HTTP_X_FORWARDED_FOR'];\n }elseif(isset($_SERVER['HTTP_X_FORWARDED'])){\n $userIP = $_SERVER['HTTP_X_FORWARDED'];\n }elseif(isset($_SERVER['HTTP_X_CLUSTER_CLIENT_IP'])){\n $userIP = $_SERVER['HTTP_X_CLUSTER_CLIENT_IP'];\n }elseif(isset($_SERVER['HTTP_FORWARDED_FOR'])){\n $userIP = $_SERVER['HTTP_FORWARDED_FOR'];\n }elseif(isset($_SERVER['HTTP_FORWARDED'])){\n $userIP = $_SERVER['HTTP_FORWARDED'];\n }elseif(isset($_SERVER['REMOTE_ADDR'])){\n $userIP = $_SERVER['REMOTE_ADDR'];\n }else{\n $userIP = 'UNKNOWN';\n }\n return $userIP;\n\n}", "title": "" }, { "docid": "72af24a44e5561bfff10760ffdc8fd33", "score": "0.62329346", "text": "function get_ip($is_light = false){\r\n\t\r\n\tif (!$is_light)\r\n\t\t$tmp = isset($_SERVER[\"REMOTE_HOST\"]) ? \"/\".$_SERVER[\"REMOTE_HOST\"] : \"\";\r\n\telse\r\n\t\t$tmp = '';\r\n\treturn Text::cleanupTags((isset($_SERVER['HTTP_X_REAL_IP']) ? $_SERVER['HTTP_X_REAL_IP'] : $_SERVER[\"REMOTE_ADDR\"]).$tmp);\r\n\r\n}", "title": "" }, { "docid": "19d51ceb8ed5b65dc03f853455eb1c18", "score": "0.62271565", "text": "function getIp() {\n\n $ip = $_SERVER['REMOTE_ADDR'];\n\n if (!empty($_SERVER['HTTP_CLIENT_IP'])) {\n\n $ip = $_SERVER['HTTP_CLIENT_IP'];\n\n } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n\n $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n\n }\n\n\n return $ip;\n\n}", "title": "" }, { "docid": "515306c9a8b3145637eb59b242b2f6c5", "score": "0.62231994", "text": "public function ip()\n {\n return $this->ip;\n }", "title": "" }, { "docid": "cc6cd6f6234b8b0d50daf1dc39c050fa", "score": "0.6223015", "text": "public function getIp() {\n $possibleSources = [\n 'HTTP_CLIENT_IP',\n 'HTTP_X_FORWARDED_FOR',\n 'HTTP_X_FORWARDED',\n 'HTTP_X_CLUSTER_CLIENT_IP',\n 'HTTP_FORWARDED_FOR',\n 'HTTP_FORWARDED',\n 'REMOTE_ADDR',\n 'HTTP_CF_CONNECTING_IP'\n ];\n foreach ($possibleSources as $key){\n if (array_key_exists($key, $_SERVER) === true){\n foreach (explode(',', $_SERVER[$key]) as $ip){\n $ip = trim($ip); // just to be safe\n if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE) !== false){\n return $ip;\n }\n }\n }\n }\n }", "title": "" }, { "docid": "68954e84e6386827437936bfc48eaf77", "score": "0.62228286", "text": "public function getIp()\n\t{\n\t \n\t\tif (!empty($_SERVER['HTTP_CLIENT_IP']))\n\t\t{\n\t \n\t\t\t$ip = $_SERVER['HTTP_CLIENT_IP'];\n\t \n\t\t}\n\t\telseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))\n\t\t{\n\t \n\t\t\t$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n\t \n\t\t}\n\t\telse{\n\t \n\t\t\t$ip = $_SERVER['REMOTE_ADDR'];\n\t \n\t\t}\n\t \n\t\treturn $ip;\n\t \n\t}", "title": "" } ]
d8f47c9642eb293bfb7d64da051f06bb
Get a map for the class of drug study constants to locale key.
[ { "docid": "0d33469b4743408dab852e58bfbd686c", "score": "0.6485785", "text": "function &getClassMap() {\n static $classMap;\n if (!isset($classMap)) {\n $classMap = array(\n ARTICLE_DRUG_INFO_CLASS_I => Locale::translate('proposal.drugInfo.class.I'),\n ARTICLE_DRUG_INFO_CLASS_II => Locale::translate('proposal.drugInfo.class.II'),\n ARTICLE_DRUG_INFO_CLASS_III => Locale::translate('proposal.drugInfo.class.III'),\n ARTICLE_DRUG_INFO_CLASS_IV => Locale::translate('proposal.drugInfo.class.IV') \n );\n }\n return $classMap;\n\t}", "title": "" } ]
[ { "docid": "da0113430690050db87ee59a0b6e562c", "score": "0.6568504", "text": "function &getTypeMap() {\n\t\tstatic $typeMap;\n\t\tif (!isset($typeMap)) {\n\t\t\t$typeMap = array(\n\t\t\t\tARTICLE_DRUG_INFO_TYPE_STUDY_DRUG => Locale::translate('proposal.drugInfo.type.studyDrug'),\n\t\t\t\tARTICLE_DRUG_INFO_TYPE_CONCOMITANT => Locale::translate('proposal.drugInfo.type.concomitant'),\n\t\t\t\tARTICLE_DRUG_INFO_TYPE_COMPARATOR => Locale::translate('proposal.drugInfo.type.comparator'),\n\t\t\t\tARTICLE_DRUG_INFO_TYPE_PLACEBO => Locale::translate('proposal.drugInfo.type.placebo')\n\t\t\t);\n\t\t}\n\t\treturn $typeMap;\n\t}", "title": "" }, { "docid": "d78f431a1ec4c0e1a6f7c928cdcd242c", "score": "0.6393965", "text": "function &getClassKeysMap() {\n static $classMap;\n if (!isset($classMap)) {\n $classMap = array(\n ARTICLE_DRUG_INFO_CLASS_I => 'proposal.drugInfo.class.I',\n ARTICLE_DRUG_INFO_CLASS_II => 'proposal.drugInfo.class.II',\n ARTICLE_DRUG_INFO_CLASS_III => 'proposal.drugInfo.class.III',\n ARTICLE_DRUG_INFO_CLASS_IV => 'proposal.drugInfo.class.IV' \n );\n }\n return $classMap;\n\t}", "title": "" }, { "docid": "bd68649d0d11563dd20660bd7338b41b", "score": "0.6106382", "text": "public static function get_key_map( ) {\n\n\t\t\t$queries['page_views'] = __( 'Page Views' , 'ma' );\n\t\t\t$queries['conversions'] = __( 'Conversions' , 'ma' );\n\t\t\t$queries['conversion_rate'] = __( 'Conversions Rate (Use decimal format. eg: 5% = .05)' , 'ma' );\n\n\t\t\treturn $queries;\n\t\t}", "title": "" }, { "docid": "a21ed7bd29b59d701d1f1eac4b6ce94b", "score": "0.5855306", "text": "function &getStorageMap() {\n\t\tstatic $storageMap;\n\t\tif (!isset($storageMap)) {\n\t\t\t$storageMap = array(\n ARTICLE_DRUG_INFO_STORAGE_FREEZER => Locale::translate('proposal.drugInfo.storage.freezer'),\n ARTICLE_DRUG_INFO_STORAGE_COLD => Locale::translate('proposal.drugInfo.storage.cold'),\n ARTICLE_DRUG_INFO_STORAGE_COOL => Locale::translate('proposal.drugInfo.storage.cool'),\n ARTICLE_DRUG_INFO_STORAGE_CONTCOLD => Locale::translate('proposal.drugInfo.storage.contCold'),\n ARTICLE_DRUG_INFO_STORAGE_ROOM => Locale::translate('proposal.drugInfo.storage.room'),\n ARTICLE_DRUG_INFO_STORAGE_CONTROOM => Locale::translate('proposal.drugInfo.storage.contRoom'),\n ARTICLE_DRUG_INFO_STORAGE_WARM => Locale::translate('proposal.drugInfo.storage.warm'),\n ARTICLE_DRUG_INFO_STORAGE_HEAT => Locale::translate('proposal.drugInfo.storage.heat')\n\t\t\t);\n\t\t}\n\t\treturn $storageMap;\n\t}", "title": "" }, { "docid": "4be107a482781e4abea47f111d64f16e", "score": "0.5734608", "text": "static public function getLocalizedLanguageNameMap() {\r\n\t\tif(!self::$localizedLanguageMapCache) {\r\n\t\t\tself::$localizedLanguageMapCache = self::getLanguageNameMap();\r\n\t\t\trequire dirname(__FILE__) . '/../include/localized_languages.php';\r\n\t\t\tforeach ($LOCALIZED_LANGUAGE_ARRAY as $key => $value) {\r\n\t\t\t\tself::$localizedLanguageMapCache[$key] = $value;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn self::$localizedLanguageMapCache;\r\n\t}", "title": "" }, { "docid": "ba883119a979e933622d387e984605d4", "score": "0.5655284", "text": "function &getFormMap() {\n\t\tstatic $formMap;\n\t\tif (!isset($formMap)) {\n\t\t\t$formMap = array(\n ARTICLE_DRUG_INFO_FORM_AEROSOLS => Locale::translate('proposal.drugInfo.form.aerosols'),\n ARTICLE_DRUG_INFO_FORM_CAPSULES => Locale::translate('proposal.drugInfo.form.capsules'),\n ARTICLE_DRUG_INFO_FORM_DPINHALEUR => Locale::translate('proposal.drugInfo.form.dpinhaleur'),\n ARTICLE_DRUG_INFO_FORM_EMULSIONS => Locale::translate('proposal.drugInfo.form.emulsions'),\n ARTICLE_DRUG_INFO_FORM_FOAMS => Locale::translate('proposal.drugInfo.form.foams'),\n ARTICLE_DRUG_INFO_FORM_GASES => Locale::translate('proposal.drugInfo.form.gases'),\n ARTICLE_DRUG_INFO_FORM_GELS => Locale::translate('proposal.drugInfo.form.gels'),\n ARTICLE_DRUG_INFO_FORM_GRANULES => Locale::translate('proposal.drugInfo.form.granules'),\n ARTICLE_DRUG_INFO_FORM_GUMS => Locale::translate('proposal.drugInfo.form.gums'),\n ARTICLE_DRUG_INFO_FORM_IMPLANTS => Locale::translate('proposal.drugInfo.form.implants'),\n ARTICLE_DRUG_INFO_FORM_INSERTS => Locale::translate('proposal.drugInfo.form.inserts'),\n ARTICLE_DRUG_INFO_FORM_LIQUIDS => Locale::translate('proposal.drugInfo.form.liquids'),\n ARTICLE_DRUG_INFO_FORM_LOZENGES => Locale::translate('proposal.drugInfo.form.lozenges'),\n ARTICLE_DRUG_INFO_FORM_OINTMENT => Locale::translate('proposal.drugInfo.form.ointment'),\n ARTICLE_DRUG_INFO_FORM_PASTES => Locale::translate('proposal.drugInfo.form.pastes'),\n ARTICLE_DRUG_INFO_FORM_PATCHES => Locale::translate('proposal.drugInfo.form.patches'),\n ARTICLE_DRUG_INFO_FORM_PELLETS => Locale::translate('proposal.drugInfo.form.pellets'),\n ARTICLE_DRUG_INFO_FORM_PILLS => Locale::translate('proposal.drugInfo.form.pills'),\n ARTICLE_DRUG_INFO_FORM_PLASTERS => Locale::translate('proposal.drugInfo.form.plasters'),\n ARTICLE_DRUG_INFO_FORM_POWDERS => Locale::translate('proposal.drugInfo.form.powders'),\n ARTICLE_DRUG_INFO_FORM_SOAPS => Locale::translate('proposal.drugInfo.form.soaps'),\n ARTICLE_DRUG_INFO_FORM_SOLUTIONS => Locale::translate('proposal.drugInfo.form.solutions'),\n ARTICLE_DRUG_INFO_FORM_SPRAYS => Locale::translate('proposal.drugInfo.form.sprays'),\n ARTICLE_DRUG_INFO_FORM_SUPPOSITORIES => Locale::translate('proposal.drugInfo.form.suppositories'),\n ARTICLE_DRUG_INFO_FORM_SUSPENSIONS => Locale::translate('proposal.drugInfo.form.suspensions'),\n ARTICLE_DRUG_INFO_FORM_TABLET => Locale::translate('proposal.drugInfo.form.tablet'),\n ARTICLE_DRUG_INFO_FORM_TAPES => Locale::translate('proposal.drugInfo.form.tapes')\n\t\t\t);\n\t\t}\n\t\treturn $formMap;\n\t}", "title": "" }, { "docid": "8a5c949681af666615d2f23147918365", "score": "0.55856353", "text": "function block_php_report_get_category_mapping() {\n //categories, in a pre-determined order\n return array(php_report::CATEGORY_CURRICULUM => get_string('curriculum_reports', 'block_php_report'),\n php_report::CATEGORY_COURSE => get_string('course_reports', 'block_php_report'),\n php_report::CATEGORY_CLASS => get_string('class_reports', 'block_php_report'),\n php_report::CATEGORY_CLUSTER => get_string('cluster_reports', 'block_php_report'),\n php_report::CATEGORY_PARTICIPATION => get_string('participation_reports', 'block_php_report'),\n php_report::CATEGORY_USER => get_string('user_reports', 'block_php_report'),\n php_report::CATEGORY_ADMIN => get_string('admin_reports', 'block_php_report'),\n php_report::CATEGORY_OUTCOMES => get_string('outcomes_reports', 'block_php_report'));\n}", "title": "" }, { "docid": "bb2b206257b368d37d8563a1c1ed2b44", "score": "0.5454461", "text": "public static function toDictionary()\n {\n $className = get_called_class();\n $reflectionClass = new ReflectionClass($className);\n $dictionary = $reflectionClass->getConstants();\n \n unset($dictionary['DEFAULT_VALUE']);\n\n return $dictionary;\n }", "title": "" }, { "docid": "bdaa73591d9c4629e235c39d947043dc", "score": "0.54399794", "text": "protected function getLocaleKey()\n {\n return config('translatable.locale_key', 'locale');\n }", "title": "" }, { "docid": "439991f4e4f114d5ee7f7cd43d158e0e", "score": "0.54227203", "text": "static public function getLanguageNameMap() {\r\n\t\tif(!self::$languageMapCache) {\r\n\t\t\trequire XOOPS_ROOT_PATH.'/modules/langrid/include/Languages.php';\r\n\t\t\tself::$languageMapCache = $LANGRID_LANGUAGE_ARRAY;\r\n\t\t}\r\n\t\treturn self::$languageMapCache;\r\n\t}", "title": "" }, { "docid": "6fccec2b7620c5d7a5a5f3db89c4871d", "score": "0.5413317", "text": "public static function map() {\n\t\t\treturn array(\n\t\t\t\t'name' => esc_html__( 'Lesson Day Title w/ Description', 'locale' ),\n\t\t\t\t'description' => esc_html__( 'Displays the Title/Description', 'locale' ),\n\t\t\t\t'base' => 'CBC_Veress_Module',\n\t\t\t\t'params' => array(\n\n\t\t\t\t\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t\t\t\t'heading' => __( 'Title', 'total' ),\n\t\t\t\t\t\t\t\t'param_name' => 'label',\n\t\t\t\t\t\t\t\t'admin_label' => false,\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t\t\t\t'heading' => __( 'Description', 'total' ),\n\t\t\t\t\t\t\t\t'param_name' => 'description',\n\t\t\t\t\t\t\t\t'admin_label' => false,\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\t),\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "52c78d37341eb09c2811608d564e14ad", "score": "0.54100764", "text": "protected static function determineKeyToValueMap(): array\n {\n // default behavior is to use all public constants of the current class\n $keyToValueMap = [];\n\n foreach ((new \\ReflectionClass(static::class))->getReflectionConstants() as $constant) {\n if ($constant->isPublic()) {\n $keyToValueMap[$constant->name] = $constant->getValue();\n }\n }\n\n return $keyToValueMap;\n }", "title": "" }, { "docid": "f6dcbadf8f0c2392d28abfc4677cdb61", "score": "0.5408581", "text": "function &getAdministrationMap() {\n\t\tstatic $administrationMap;\n\t\tif (!isset($administrationMap)) {\n\t\t\t$administrationMap = array(\n ARTICLE_DRUG_INFO_ADMINISTRATION_GASTRO => Locale::translate('proposal.drugInfo.administration.gastro'),\n ARTICLE_DRUG_INFO_ADMINISTRATION_INJECTION => Locale::translate('proposal.drugInfo.administration.injection'),\n ARTICLE_DRUG_INFO_ADMINISTRATION_MUCOSAL => Locale::translate('proposal.drugInfo.administration.mucosal'),\n ARTICLE_DRUG_INFO_ADMINISTRATION_TOPICAL => Locale::translate('proposal.drugInfo.administration.topical'),\n ARTICLE_DRUG_INFO_ADMINISTRATION_INHALATION => Locale::translate('proposal.drugInfo.administration.inhalation') \n\t\t\t);\n\t\t}\n\t\treturn $administrationMap;\n\t}", "title": "" }, { "docid": "316883af39270d670ab0c46e3d7af496", "score": "0.53788316", "text": "protected function _getFieldMapping()\n {\n return [\n 'store_switcher' => 'store_switcher',\n 'store_group_switcher' => 'store_group_switcher',\n 'website_switcher' => 'website_switcher',\n ];\n }", "title": "" }, { "docid": "57da247ebfa50b6aac6d23981b2e8328", "score": "0.5374385", "text": "function &getStatusMap() {\n\t\tstatic $statusMap;\n\t\tif (!isset($statusMap)) {\n\t\t\t$statusMap = array(\n\t\t\t\tSTATUS_ARCHIVED => 'submissions.archived',\n\t\t\t\tSTATUS_QUEUED => 'submissions.queued',\n\t\t\t\tSTATUS_PUBLISHED => 'submissions.published',\n\t\t\t\tSTATUS_DECLINED => 'submissions.declined',\n\t\t\t\tSTATUS_QUEUED_UNASSIGNED => 'submissions.queuedUnassigned',\n\t\t\t\tSTATUS_QUEUED_REVIEW => 'submissions.queuedReview',\n\t\t\t\tSTATUS_QUEUED_EDITING => 'submissions.queuedEditing',\n\t\t\t\tSTATUS_INCOMPLETE => 'submissions.incomplete'\n\t\t\t);\n\t\t}\n\t\treturn $statusMap;\n\t}", "title": "" }, { "docid": "0170595ee574f42407ecad247a1bf55d", "score": "0.53398544", "text": "function &getYesNoMap() {\n static $yesNoMap;\n if (!isset($yesNoMap)) {\n $yesNoMap = array(\n ARTICLE_DRUG_INFO_YES => Locale::translate('common.yes'),\n ARTICLE_DRUG_INFO_NO => Locale::translate('common.no') \n );\n }\n return $yesNoMap;\n\t}", "title": "" }, { "docid": "7a321185524e8eb371be21d96246eaa5", "score": "0.5256798", "text": "public static function getMap()\n\t{\n\t\treturn array(\n\t\t\t'ID' => array('primary' => true, 'data_type' => 'integer'),\n\t\t\t'ENTITY_TYPE_ID' => array('data_type' => 'integer'),\n\t\t\t'ENTITY_STATUS' => array('data_type' => 'string'),\n\t\t\t'TEMPLATE_ID' => array('data_type' => 'integer'),\n\t\t\t'START_RULES' => array(\n\t\t\t\t'data_type' => 'string',\n\t\t\t\t'serialized' => true\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "81dbc60757dde9bb09ae698e9e916517", "score": "0.52547324", "text": "static public function getDataCamelCaseMap()\n {\n return self::$dataCamelCaseMap;\n }", "title": "" }, { "docid": "81dbc60757dde9bb09ae698e9e916517", "score": "0.52547324", "text": "static public function getDataCamelCaseMap()\n {\n return self::$dataCamelCaseMap;\n }", "title": "" }, { "docid": "0e714138abe37ea5bdc3b12f0ebb0598", "score": "0.525296", "text": "public function getMap()\n {\n return [\n 'label_pos' => 'label_placement',\n 'instr_pos' => 'instruction_placement',\n 'order' => 'menu_order',\n 'hide' => 'hide_on_screen',\n 'desc' => 'description',\n ];\n }", "title": "" }, { "docid": "84a4600256d647cef63c6a02cda4e222", "score": "0.52220243", "text": "public function getLocaleKey(){\n return $this->localeKey;\n }", "title": "" }, { "docid": "31e1ec8c2e198acf639b95c1fab565c8", "score": "0.5193913", "text": "static function getMap(): array\n {\n self::ensureKeyToValueMapLoaded();\n\n return self::$keyToValueMap[static::class];\n }", "title": "" }, { "docid": "f56f6e4c08e98cc6677a709626a2c450", "score": "0.51557434", "text": "public static function getMap()\n {\n return array(\n 'ID' => array('primary' => true, 'data_type' => 'integer'),\n 'NAME' => array('data_type' => 'string'),\n 'CODE' => array('data_type' => 'string'),\n\n 'MODULE_ID' => array('data_type' => 'string'),\n 'ENTITY' => array('data_type' => 'string'),\n 'DOCUMENT_TYPE' => array('data_type' => 'string'),\n\n 'DOCUMENT_STATUS' => array('data_type' => 'string'),\n\n 'APPLY_RULES' => array(\n 'data_type' => 'string',\n 'serialized' => true\n )\n );\n }", "title": "" }, { "docid": "799595a100b696e93abda7dbbdc4930d", "score": "0.51499236", "text": "public static function attributeMap()\n {\n return [\n 'kty' => 'kty',\n 'use' => 'use',\n 'kid' => 'kid',\n 'alg' => 'alg',\n 'n' => 'n',\n 'e' => 'e'\n ];\n }", "title": "" }, { "docid": "fab9930819ccf1b7b65db9ab0190e10c", "score": "0.51392096", "text": "private function getTypesAliasMap()\n {\n return [\n self::TYPE_BOOLEAN_ALIAS => self::TYPE_BOOLEAN,\n self::TYPE_INTEGER_ALIAS => self::TYPE_INTEGER,\n self::TYPE_DOUBLE_ALIAS => self::TYPE_DOUBLE,\n ];\n }", "title": "" }, { "docid": "5021bc1ffabe91f8e8fcfd702895fe3c", "score": "0.51308256", "text": "abstract public function getErrorCodeMaps();", "title": "" }, { "docid": "9fa332d52b2ac3c82d1c26939fb60091", "score": "0.51300234", "text": "protected function l10n() {\n\t\treturn array(\n\t\t\t'left-top' => esc_attr__( 'Left Top', 'kirki' ),\n\t\t\t'left-center' => esc_attr__( 'Left Center', 'kirki' ),\n\t\t\t'left-bottom' => esc_attr__( 'Left Bottom', 'kirki' ),\n\t\t\t'right-top' => esc_attr__( 'Right Top', 'kirki' ),\n\t\t\t'right-center' => esc_attr__( 'Right Center', 'kirki' ),\n\t\t\t'right-bottom' => esc_attr__( 'Right Bottom', 'kirki' ),\n\t\t\t'center-top' => esc_attr__( 'Center Top', 'kirki' ),\n\t\t\t'center-center' => esc_attr__( 'Center Center', 'kirki' ),\n\t\t\t'center-bottom' => esc_attr__( 'Center Bottom', 'kirki' ),\n\t\t\t'font-size' => esc_attr__( 'Font Size', 'kirki' ),\n\t\t\t'font-weight' => esc_attr__( 'Font Weight', 'kirki' ),\n\t\t\t'line-height' => esc_attr__( 'Line Height', 'kirki' ),\n\t\t\t'font-style' => esc_attr__( 'Font Style', 'kirki' ),\n\t\t\t'letter-spacing' => esc_attr__( 'Letter Spacing', 'kirki' ),\n\t\t\t'word-spacing' => esc_attr__( 'Word Spacing', 'kirki' ),\n\t\t\t'top' => esc_attr__( 'Top', 'kirki' ),\n\t\t\t'bottom' => esc_attr__( 'Bottom', 'kirki' ),\n\t\t\t'left' => esc_attr__( 'Left', 'kirki' ),\n\t\t\t'right' => esc_attr__( 'Right', 'kirki' ),\n\t\t\t'center' => esc_attr__( 'Center', 'kirki' ),\n\t\t\t'size' => esc_attr__( 'Size', 'kirki' ),\n\t\t\t'height' => esc_attr__( 'Height', 'kirki' ),\n\t\t\t'spacing' => esc_attr__( 'Spacing', 'kirki' ),\n\t\t\t'width' => esc_attr__( 'Width', 'kirki' ),\n\t\t\t'height' => esc_attr__( 'Height', 'kirki' ),\n\t\t\t'invalid-value' => esc_attr__( 'Invalid Value', 'kirki' ),\n\t\t);\n\t}", "title": "" }, { "docid": "5825176603b2209e1c22ca40f4209866", "score": "0.51186985", "text": "protected function getDefaultMap(): array\n {\n return [\n 'open' => 'open',\n 'high' => 'high',\n 'low' => 'low',\n 'close' => 'close',\n 'volume' => 'volume',\n 'date' => 'date',\n ];\n }", "title": "" }, { "docid": "353b8d411168578b996ae9b3173a02ce", "score": "0.507273", "text": "function get_post_type_map() {\n \n $post_type_map = array( \"gp_news\" => \"news\", \n \t\t\t\t\t\t\"gp_events\" => \"events\", \n \"gp_advertorial\" => \"products\", \n \"gp_projects\" => \"projects\" );\n \n return $post_type_map;\n}", "title": "" }, { "docid": "a88d15d0ee2e4b4a3a0a4e1f34505b0d", "score": "0.50588053", "text": "public static function getMap()\n\t{\n\t\treturn array(\n\t\t\t'ID' => array('primary' => true, 'data_type' => 'integer'),\n\t\t\t'NAME' => array('data_type' => 'string'),\n\t\t\t'CODE' => array('data_type' => 'string'),\n\t\t\t'ENTITY_TYPE_ID' => array('data_type' => 'integer'),\n\t\t\t'ENTITY_STATUS' => array('data_type' => 'string'),\n\t\t\t'APPLY_RULES' => array(\n\t\t\t\t'data_type' => 'string',\n\t\t\t\t'serialized' => true\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "8d7aeee0c1c5cbcc900942c9f1d44daf", "score": "0.50565577", "text": "function getLocaleFieldNames() {\n\t\treturn array('name', 'acronym', 'abbreviation', 'description', 'masthead', 'history');\n\t}", "title": "" }, { "docid": "5ef5168019bb08fc21ab7b465d43c35f", "score": "0.5036246", "text": "public function typeMap()\n {\n return ['typeMap' => TypeService::$map];\n }", "title": "" }, { "docid": "3bfecd4055669ed645451fa929686300", "score": "0.50256366", "text": "function get_iucn_status_map() {\r\n $status_field = &drupal_static(__FUNCTION__);\r\n if (!isset($status_field)) {\r\n $status_field = variable_get('zoo_iucn_settings_iucn_status');\r\n }\r\n //get status array\r\n if ($status_field) {\r\n $status_field = field_info_field($status_field);\r\n $status_field = list_allowed_values($status_field);\r\n\r\n //get array of status field keys, since this is what we want to map to\r\n $status_field_keys = array_keys($status_field);\r\n\r\n\r\n // Set up array of IUCN status value => spelled out version, then modify so that the end result is: [iucn value] => [website list field key].\r\n // This will be used to map values to how the website does IUCN statuses\r\n $iucn_status_map = array(\r\n 'LC' => 'Least Concern',\r\n 'NT' => 'Near Threatened',\r\n 'VU' => 'Vulnerable',\r\n 'EN' => 'Endangered',\r\n 'CR' => 'Critically Endangered',\r\n 'EW' => 'Extinct in the Wild',\r\n 'EX' => 'Extinct',\r\n 'DD' => 'Data Deficient',\r\n 'NE' => 'Not Evaluated'\r\n );\r\n\r\n //get a lower-cased version for searching\r\n $status_field_keys_lower = array_map(\"strtolower\", $status_field_keys);\r\n\r\n //Figure out how the website stores its status data\r\n foreach ($iucn_status_map as $k => $v) {\r\n\r\n //first search for the abbreviated version\r\n if ($status_key = array_search( strtolower($k), array_map(\"strtolower\", $status_field_keys_lower) )) {\r\n $iucn_status_map[$k] = $status_field_keys[$status_key];\r\n }\r\n\r\n //then search for the spelled-out version\r\n elseif ($status_key = array_search( strtolower($v), array_map(\"strtolower\", $status_field_keys_lower) )) {\r\n $iucn_status_map[$k] = $status_field_keys[$status_key];\r\n }\r\n }\r\n return $iucn_status_map;\r\n }\r\n}", "title": "" }, { "docid": "e52c8d29eb2dd959c496d6f73648474b", "score": "0.5024069", "text": "static function getKeyMap(): array\n {\n self::ensureKeyMapLoaded();\n\n return self::$keyMap[static::class];\n }", "title": "" }, { "docid": "f204ab16eaf420c07316a2fbed9aeb12", "score": "0.5018856", "text": "protected function getRegionMappingForSpain()\n {\n return array(\n 'A Coruсa' => 'C',\n 'Alava' => 'VI',\n 'Albacete' => 'AB',\n 'Alicante' => 'A',\n 'Almeria' => 'AL',\n 'Asturias' => 'O',\n 'Avila' => 'AV',\n 'Badajoz' => 'BA',\n 'Baleares' => 'PM',\n 'Barcelona' => 'B',\n 'Caceres' => 'CC',\n 'Cadiz' => 'CA',\n 'Cantabria' => 'S',\n 'Castellon' => 'CS',\n 'Ceuta' => 'CE',\n 'Ciudad Real' => 'CR',\n 'Cordoba' => 'CO',\n 'Cuenca' => 'CU',\n 'Girona' => 'GI',\n 'Granada' => 'GR',\n 'Guadalajara' => 'GU',\n 'Guipuzcoa' => 'SS',\n 'Huelva' => 'H',\n 'Huesca' => 'HU',\n 'Jaen' => 'J',\n 'La Rioja' => 'LO',\n 'Las Palmas' => 'GC',\n 'Leon' => 'LE',\n 'Lleida' => 'L',\n 'Lugo' => 'LU',\n 'Madrid' => 'M',\n 'Malaga' => 'MA',\n 'Melilla' => 'ML',\n 'Murcia' => 'MU',\n 'Navarra' => 'NA',\n 'Ourense' => 'OR',\n 'Palencia' => 'P',\n 'Pontevedra' => 'PO',\n 'Salamanca' => 'SA',\n 'Santa Cruz de Tenerife' => 'TF',\n 'Segovia' => 'Z',\n 'Sevilla' => 'SG',\n 'Soria' => 'SE',\n 'Tarragona' => 'SO',\n 'Teruel' => 'T',\n 'Toledo' => 'TE',\n 'Valencia' => 'TO',\n 'Valladolid' => 'V',\n 'Vizcaya' => 'VA',\n 'Zamora' => 'BI',\n 'Zaragoza' => 'ZA',\n );\n }", "title": "" }, { "docid": "5063ad2145659655f58f243de7ac9c8d", "score": "0.50167644", "text": "public static function getPriorityMap();", "title": "" }, { "docid": "081e47a10642ab7180fd9d9996cf5b6a", "score": "0.50058126", "text": "function getConstants()\n {\n return [\n self::PAID,\n self::UNPAID,\n ];\n }", "title": "" }, { "docid": "d3ca5e318f30db661b13534dad5feb23", "score": "0.5001371", "text": "public static function getMapType(): string;", "title": "" }, { "docid": "c1e839f5ba7fd1b65107ed11579b711b", "score": "0.49975064", "text": "function getLocaleFieldNames() {\n\t\treturn array('name', 'designation', 'pluralName');\n\t}", "title": "" }, { "docid": "1641b515ebe77c59e59191ef6780d6cf", "score": "0.4995312", "text": "public static function getMap()\n\t{\n\t\treturn [\n\t\t\tnew Main\\Entity\\IntegerField('ID', [\n\t\t\t\t'primary' => true,\n\t\t\t\t'autocomplete' => true,\n\t\t\t]),\n\t\t\tnew Main\\Entity\\StringField('TITLE', [\n\t\t\t\t'required' => true,\n\t\t\t]),\n\t\t\tnew Main\\Entity\\StringField('LANGUAGE_ID'),\n\t\t\tnew Main\\Entity\\ExpressionField('CODE', '%d', 'ID'),\n\t\t\tnew Main\\Entity\\StringField('FORMAT_DATE'),\n\t\t\tnew Main\\Entity\\StringField('FORMAT_DATETIME'),\n\t\t\tnew Main\\Entity\\StringField('FORMAT_NAME'),\n\t\t\tnew Main\\Entity\\ReferenceField(\n\t\t\t\t'TEMPLATE',\n\t\t\t\t'\\Bitrix\\DocumentGenerator\\Model\\Template',\n\t\t\t\t['=this.ID' => 'ref.REGION']\n\t\t\t),\n\t\t];\n\t}", "title": "" }, { "docid": "15d7eedd7e42b961f8a0dcae3e873164", "score": "0.4984735", "text": "function lang($key){\n\treturn (defined($key) ? constant($key) : ucwords(strtolower(str_replace('_', ' ', $key))));\n}", "title": "" }, { "docid": "7b11c92a5ab2cddae36d04c72023f3b8", "score": "0.49770916", "text": "public static function getMap()\n\t{\n\t\treturn array(\n\t\t\t'ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t\t'primary' => true,\n\t\t\t\t'autocomplete' => true,\n\t\t\t\t'title' => Loc::getMessage('MICROM_ENTITY_ID_FIELD'),\n\t\t\t),\n\t\t\t'SITE_ID' => array(\n\t\t\t\t'data_type' => 'string',\n\t\t\t\t'required' => true,\n\t\t\t\t'validation' => array(__CLASS__, 'validateSiteId'),\n\t\t\t\t'title' => Loc::getMessage('MICROM_ENTITY_SITE_ID_FIELD'),\n\t\t\t),\n\t\t\t'CODE' => array(\n\t\t\t\t'data_type' => 'string',\n\t\t\t\t'validation' => array(__CLASS__, 'validateCode'),\n\t\t\t\t'title' => Loc::getMessage('MICROM_ENTITY_CODE_FIELD'),\n\t\t\t),\n\t\t\t'VALUE' => array(\n\t\t\t\t'data_type' => 'text',\n\t\t\t\t'serialized' => true,\n\t\t\t\t'validation' => array(__CLASS__, 'validateValue'),\n\t\t\t\t'title' => Loc::getMessage('MICROM_ENTITY_VALUE_FIELD'),\n\t\t\t),\n\t\t);\n\t}", "title": "" }, { "docid": "713161b1b4f653c5dd116b1a3b7eba60", "score": "0.49745068", "text": "function getLocaleFieldNames() {\n\t\treturn array('homeHeaderTitleType', 'homeHeaderTitle', 'pageHeaderTitleType', 'pageHeaderTitle', 'readerInformation', 'authorInformation', 'librarianInformation', 'journalPageHeader', 'journalPageFooter', 'homepageImage', 'journalFavicon', 'additionalHomeContent', 'description', 'navItems', 'homeHeaderTitleImageAltText', 'homeHeaderLogoImageAltText', 'journalThumbnailAltText', 'homepageImageAltText', 'pageHeaderTitleImageAltText', 'pageHeaderLogoImageAltText');\n\n\t}", "title": "" }, { "docid": "1f556fcb26bc85616fb6d3c40583e95f", "score": "0.49633422", "text": "function getLocaleFieldNames() {\n\t\treturn array('name', 'initials', 'description', 'customAboutItems', 'masthead');\n\t}", "title": "" }, { "docid": "4c8da0401b39e9d0cbc9aa456baf98d1", "score": "0.494437", "text": "static function statusNameMap()\n {\n return array( eZXApproveStatus::StatusSelectApprover => ezi18n( 'ezapprove2', 'Select approver' ),\n eZXApproveStatus::StatusInApproval => ezi18n( 'ezapprove2', 'In approval' ),\n eZXApproveStatus::StatusApproved => ezi18n( 'ezapprove2', 'Approved' ),\n eZXApproveStatus::StatusDiscarded => ezi18n( 'ezapprove2', 'Discarded' ),\n eZXApproveStatus::StatusFinnished => ezi18n( 'ezapprove2', 'Finnished' ) );\n }", "title": "" }, { "docid": "b5e57da8c05be0784797984fb0d67872", "score": "0.4935152", "text": "function getLocaleFieldNames() {\n\t\treturn array('title', 'initials', 'abbreviation', 'contactTitle', 'contactAffiliation', 'contactMailingAddress', 'sponsorNote', 'publisherNote', 'contributorNote', 'history', 'searchDescription', 'searchKeywords', 'customHeaders');\n\t}", "title": "" }, { "docid": "1efc6962900ef42d7d2a6c0a3b14424d", "score": "0.49261874", "text": "public function templateConstants()\n\t{\n\t\t$constantArray = array();\n\t\t$constantArray['Invoice'] = \"invoice\";\n\t\t$constantArray['Payment'] = \"payment\";\n\t\t$constantArray['Blank'] = \"blank\";\n\t\t$constantArray['Quotation'] = \"quotation\";\n\t\t$constantArray['Email_NewOrder'] = \"email_newOrder\";\n\t\t$constantArray['Email_DuePayment'] = \"email_duePayment\";\n\t\t$constantArray['Email_BirthDay'] = \"email_birthDay\";\n\t\t$constantArray['Email_AnniversaryDay'] = \"email_anniversary\";\n\t\t$constantArray['Sms_NewOrder'] = \"sms_newOrder\";\n\t\t$constantArray['Sms_DuePayment'] = \"sms_duePayment\";\n\t\t$constantArray['Sms_BirthDay'] = \"sms_birthDay\";\n\t\t$constantArray['Sms_AnniversaryDay'] = \"sms_anniversary\";\n\t\treturn $constantArray;\n\t}", "title": "" }, { "docid": "e898a9fb947c777f3404874b10e1d676", "score": "0.49169034", "text": "public static function getUrlLocaleKey()\n {\n $locale = 'EN';\n\n /** @var \\Packlink\\BusinessLogic\\Configuration $configService */\n $configService = ServiceRegister::getService(Configuration::CLASS_NAME);\n $userInfo = $configService->getUserInfo();\n $currentLang = $configService::getUICountryCode();\n\n if ($userInfo !== null) {\n $locale = $userInfo->country;\n } elseif ($currentLang) {\n $locale = strtoupper($currentLang);\n }\n\n return $locale;\n }", "title": "" }, { "docid": "5def8c0033d6fb59c3ce96aaff0f925b", "score": "0.4908714", "text": "function getActiveMap() {\r\n return $docTypeMap = array(\r\n APPROVAL_NOTICE_ACTIVE => Locale::translate('common.yes'),\r\n APPROVAL_NOTICE_INACTIVE => Locale::translate('common.no')\r\n );\r\n\t}", "title": "" }, { "docid": "64b4471c73d21171ad8df2ec448777ad", "score": "0.49032715", "text": "public static function getMap() {\n return array(\n 'ID' => array(\n 'data_type' => 'integer',\n 'primary' => true,\n 'autocomplete' => true,\n ),\n 'PARENT_ID' => array(\n 'data_type' => 'integer',\n ),\n 'NAME' => array(\n 'data_type' => 'string',\n 'required' => true,\n ),\n 'PARENT' => array(\n 'data_type' => 'Sotbit\\Crosssell\\Orm\\CrosssellCategory',\n 'reference' => array('=this.PARENT_ID' => 'ref.ID'),\n ),\n 'TIMESTAMP_X' => array(\n 'data_type' => 'datetime',\n ),\n 'DATE_CREATE' => array(\n 'data_type' => 'datetime',\n ),\n 'SITE_ID' => array(\n 'data_type' => 'string',\n ),\n 'SORT' => array(\n 'data_type' => 'string',\n ),\n /*'EXTRA_SETTINGS' => array(\n 'data_type' => 'string'\n ),*/\n 'SYMBOL_CODE' => array(\n 'data_type' => 'string',\n ),\n );\n }", "title": "" }, { "docid": "7e4a7c357f5b80ae6ae2636de916fe9f", "score": "0.49001288", "text": "public function toArray()\n {\n return [self::MATH_DEFAULT => __('Default'), self::MATH_FLOOR => __('Floor'), self::MATH_ROUND => __('Round'), self::MATH_CEIL => __('Ceil')];\n }", "title": "" }, { "docid": "6a6ff9b5a224ece7019e1779a17b27c9", "score": "0.4892796", "text": "public function getTitleLocaleKey(): string\n {\n return $this->titleLocaleKey;\n }", "title": "" }, { "docid": "8f1d3f9d05eb9b4d588c03ba3884bb8d", "score": "0.4886187", "text": "abstract public static function getFieldNameMap();", "title": "" }, { "docid": "e1013aeed767cff87feff21663099b79", "score": "0.4883222", "text": "public static function mainStatMap()\n {\n return [\n // HP Flat\n 1 => [\n 1 => 804,\n 2 => 1092,\n 3 => 1380,\n 4 => 1704,\n 5 => 2088,\n 6 => 2448,\n ],\n\n // HP%\n 2 => [\n 1 => 18,\n 2 => 20,\n 3 => 38,\n 4 => 43,\n 5 => 51,\n 6 => 63,\n ],\n\n // Atk Flat\n 3 => [\n 1 => 54,\n 2 => 74,\n 3 => 93,\n 4 => 113,\n 5 => 135,\n 6 => 160,\n ],\n\n // Atk%\n 4 => [\n 1 => 18,\n 2 => 20,\n 3 => 38,\n 4 => 43,\n 5 => 51,\n 6 => 63,\n ],\n\n // Def Flat\n 5 => [\n 1 => 54,\n 2 => 74,\n 3 => 93,\n 4 => 113,\n 5 => 135,\n 6 => 160,\n ],\n\n // Def%\n 6 => [\n 1 => 18,\n 2 => 20,\n 3 => 38,\n 4 => 43,\n 5 => 51,\n 6 => 63,\n ],\n\n // Spd\n 8 => [\n 1 => 18,\n 2 => 19,\n 3 => 25,\n 4 => 30,\n 5 => 39,\n 6 => 42,\n ],\n\n // Crit Rate\n 9 => [\n 1 => 18,\n 2 => 20,\n 3 => 37,\n 4 => 41,\n 5 => 47,\n 6 => 58,\n ],\n\n // Crit damage\n 10 => [\n 1 => 20,\n 2 => 37,\n 3 => 43,\n 4 => 58,\n 5 => 65,\n 6 => 80,\n ],\n\n // Resistance\n 11 => [\n 1 => 18,\n 2 => 20,\n 3 => 38,\n 4 => 44,\n 5 => 51,\n 6 => 64,\n ],\n\n // Accuracy\n 12 => [\n 1 => 18,\n 2 => 20,\n 3 => 38,\n 4 => 44,\n 5 => 51,\n 6 => 64,\n ]\n ];\n }", "title": "" }, { "docid": "044432d8c85ea2f0b7e2852c2cc9b629", "score": "0.48707244", "text": "function get_project_discussions_language_array()\r\n{\r\n $lang = array(\r\n 'discussion_add_comment' => _l('discussion_add_comment'),\r\n 'discussion_newest' => _l('discussion_newest'),\r\n 'discussion_oldest' => _l('discussion_oldest'),\r\n 'discussion_attachments' => _l('discussion_attachments'),\r\n 'discussion_send' => _l('discussion_send'),\r\n 'discussion_reply' => _l('discussion_reply'),\r\n 'discussion_edit' => _l('discussion_edit'),\r\n 'discussion_edited' => _l('discussion_edited'),\r\n 'discussion_you' => _l('discussion_you'),\r\n 'discussion_save' => _l('discussion_save'),\r\n 'discussion_delete' => _l('discussion_delete'),\r\n 'discussion_view_all_replies' => _l('discussion_view_all_replies'),\r\n 'discussion_hide_replies' => _l('discussion_hide_replies'),\r\n 'discussion_no_comments' => _l('discussion_no_comments'),\r\n 'discussion_no_attachments' => _l('discussion_no_attachments'),\r\n 'discussion_attachments_drop' => _l('discussion_attachments_drop')\r\n );\r\n return $lang;\r\n}", "title": "" }, { "docid": "2504adf236dffe879a1751a92c5654e8", "score": "0.48682472", "text": "public function maps()\n {\n return array (\n 'classes' => &$this->classes,\n 'prefixes' => &$this->prefixes,\n 'dirs' => &$this->dirs\n );\n }", "title": "" }, { "docid": "d46fe652ab258cb834444f9e2902eedc", "score": "0.48630673", "text": "public static function getLocales()\n {\n return array(\n 'aa' => array(\n 'name' => 'Afar',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'aa-DJ' => array(\n 'name' => 'Afar (Djibouti)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'aa-ER' => array(\n 'name' => 'Afar (Eritrea)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'aa-ET' => array(\n 'name' => 'Afar (Ethiopia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'af' => array(\n 'name' => 'Afrikaans',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'g:i a',\n 'dateTimeFormat' => 'Y-m-d g:i a'\n ),\n 'af-NA' => array(\n 'name' => 'Afrikaans (Namibia)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'g:i a',\n 'dateTimeFormat' => 'Y-m-d g:i a'\n ),\n 'af-ZA' => array(\n 'name' => 'Afrikaans (South Africa)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'g:i a',\n 'dateTimeFormat' => 'Y-m-d g:i a'\n ),\n 'agq' => array(\n 'name' => 'Aghem',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'agq-CM' => array(\n 'name' => 'Aghem (Cameroon)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'ak' => array(\n 'name' => 'Akan',\n 'dateFormat' => 'Y/m/d',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'Y/m/d g:i A'\n ),\n 'ak-GH' => array(\n 'name' => 'Akan (Ghana)',\n 'dateFormat' => 'Y/m/d',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'Y/m/d g:i A'\n ),\n 'sq' => array(\n 'name' => 'Albanian',\n 'dateFormat' => 'j.n.Y',\n 'timeFormat' => 'g:i a',\n 'dateTimeFormat' => 'j.n.Y g:i a'\n ),\n 'sq-AL' => array(\n 'name' => 'Albanian (Albania)',\n 'dateFormat' => 'j.n.Y',\n 'timeFormat' => 'g:i a',\n 'dateTimeFormat' => 'j.n.Y g:i a'\n ),\n 'sq-MK' => array(\n 'name' => 'Albanian (Former Yugoslav Republic of Macedonia)',\n 'dateFormat' => 'j.n.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j.n.Y H:i'\n ),\n 'sq-XK' => array(\n 'name' => 'Albanian (Kosovo)',\n 'dateFormat' => 'j.n.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j.n.Y H:i'\n ),\n 'am' => array(\n 'name' => 'Amharic',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'am-ET' => array(\n 'name' => 'Amharic (Ethiopia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'ar' => array(\n 'name' => 'Arabic',\n 'dateFormat' => 'd/m/y',\n 'timeFormat' => 'h:i A',\n 'dateTimeFormat' => 'd/m/y h:i A'\n ),\n 'ar-DZ' => array(\n 'name' => 'Arabic (Algeria)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd-m-Y G:i'\n ),\n 'ar-BH' => array(\n 'name' => 'Arabic (Bahrain)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'h:i A',\n 'dateTimeFormat' => 'd/m/Y h:i A'\n ),\n 'ar-TD' => array(\n 'name' => 'Arabic (Chad)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'ar-KM' => array(\n 'name' => 'Arabic (Comoros)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'ar-DJ' => array(\n 'name' => 'Arabic (Djibouti)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'ar-EG' => array(\n 'name' => 'Arabic (Egypt)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'h:i A',\n 'dateTimeFormat' => 'd/m/Y h:i A'\n ),\n 'ar-ER' => array(\n 'name' => 'Arabic (Eritrea)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'ar-IQ' => array(\n 'name' => 'Arabic (Iraq)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'h:i A',\n 'dateTimeFormat' => 'd/m/Y h:i A'\n ),\n 'ar-IL' => array(\n 'name' => 'Arabic (Israel)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j/n/Y G:i'\n ),\n 'ar-JO' => array(\n 'name' => 'Arabic (Jordan)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'h:i A',\n 'dateTimeFormat' => 'd/m/Y h:i A'\n ),\n 'ar-KW' => array(\n 'name' => 'Arabic (Kuwait)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'h:i A',\n 'dateTimeFormat' => 'd/m/Y h:i A'\n ),\n 'ar-LB' => array(\n 'name' => 'Arabic (Lebanon)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'h:i A',\n 'dateTimeFormat' => 'd/m/Y h:i A'\n ),\n 'ar-LY' => array(\n 'name' => 'Arabic (Libya)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'h:i A',\n 'dateTimeFormat' => 'd/m/Y h:i A'\n ),\n 'ar-MR' => array(\n 'name' => 'Arabic (Mauritania)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'ar-MA' => array(\n 'name' => 'Arabic (Morocco)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd-m-Y G:i'\n ),\n 'ar-OM' => array(\n 'name' => 'Arabic (Oman)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'h:i A',\n 'dateTimeFormat' => 'd/m/Y h:i A'\n ),\n 'ar-PS' => array(\n 'name' => 'Arabic (Palestinian Territories)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'ar-QA' => array(\n 'name' => 'Arabic (Qatar)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'h:i A',\n 'dateTimeFormat' => 'd/m/Y h:i A'\n ),\n 'ar-SA' => array(\n 'name' => 'Arabic (Saudi Arabia)',\n 'dateFormat' => 'd/m/y',\n 'timeFormat' => 'h:i A',\n 'dateTimeFormat' => 'd/m/y h:i A'\n ),\n 'ar-SO' => array(\n 'name' => 'Arabic (Somalia)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'ar-SS' => array(\n 'name' => 'Arabic (South Sudan)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'ar-SD' => array(\n 'name' => 'Arabic (Sudan)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'ar-SY' => array(\n 'name' => 'Arabic (Syria)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'h:i A',\n 'dateTimeFormat' => 'd/m/Y h:i A'\n ),\n 'ar-TN' => array(\n 'name' => 'Arabic (Tunisia)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd-m-Y G:i'\n ),\n 'ar-AE' => array(\n 'name' => 'Arabic (U.A.E.)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'h:i A',\n 'dateTimeFormat' => 'd/m/Y h:i A'\n ),\n 'ar-001' => array(\n 'name' => 'Arabic (World)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'ar-YE' => array(\n 'name' => 'Arabic (Yemen)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'h:i A',\n 'dateTimeFormat' => 'd/m/Y h:i A'\n ),\n 'hy' => array(\n 'name' => 'Armenian',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'hy-AM' => array(\n 'name' => 'Armenian (Armenia)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'as' => array(\n 'name' => 'Assamese',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'a g:i',\n 'dateTimeFormat' => 'd-m-Y a g:i'\n ),\n 'as-IN' => array(\n 'name' => 'Assamese (India)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'a g:i',\n 'dateTimeFormat' => 'd-m-Y a g:i'\n ),\n 'asa' => array(\n 'name' => 'Asu',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'asa-TZ' => array(\n 'name' => 'Asu (Tanzania)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'ast' => array(\n 'name' => 'Asturian',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'ast-ES' => array(\n 'name' => 'Asturian (Spain)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'az' => array(\n 'name' => 'Azeri',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'az-Cyrl' => array(\n 'name' => 'Azeri (Cyrillic)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd.m.Y G:i'\n ),\n 'az-Cyrl-AZ' => array(\n 'name' => 'Azeri (Cyrillic, Azerbaijan)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd.m.Y G:i'\n ),\n 'az-Latn' => array(\n 'name' => 'Azeri (Latin)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'az-Latn-AZ' => array(\n 'name' => 'Azeri (Latin, Azerbaijan)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'ksf' => array(\n 'name' => 'Bafia',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'ksf-CM' => array(\n 'name' => 'Bafia (Cameroon)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'bm' => array(\n 'name' => 'Bambara',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'bm-Latn' => array(\n 'name' => 'Bambara (Latin)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'bm-Latn-ML' => array(\n 'name' => 'Bambara (Latin, Mali)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'bas' => array(\n 'name' => 'Basaa',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'bas-CM' => array(\n 'name' => 'Basaa (Cameroon)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'ba' => array(\n 'name' => 'Bashkir',\n 'dateFormat' => 'd.m.y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd.m.y G:i'\n ),\n 'ba-RU' => array(\n 'name' => 'Bashkir (Russia)',\n 'dateFormat' => 'd.m.y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd.m.y G:i'\n ),\n 'eu' => array(\n 'name' => 'Basque',\n 'dateFormat' => 'Y/m/d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y/m/d H:i'\n ),\n 'eu-ES' => array(\n 'name' => 'Basque (Spain)',\n 'dateFormat' => 'Y/m/d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y/m/d H:i'\n ),\n 'be' => array(\n 'name' => 'Belarusian',\n 'dateFormat' => 'd.m.y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.y H:i'\n ),\n 'be-BY' => array(\n 'name' => 'Belarusian (Belarus)',\n 'dateFormat' => 'd.m.y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.y H:i'\n ),\n 'bem' => array(\n 'name' => 'Bemba',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'bem-ZM' => array(\n 'name' => 'Bemba (Zambia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'bez' => array(\n 'name' => 'Bena',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'bez-TZ' => array(\n 'name' => 'Bena (Tanzania)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'bn' => array(\n 'name' => 'Bengali',\n 'dateFormat' => 'd-m-y',\n 'timeFormat' => 'H.i',\n 'dateTimeFormat' => 'd-m-y H.i'\n ),\n 'bn-BD' => array(\n 'name' => 'Bengali (Bangladesh)',\n 'dateFormat' => 'd-m-y',\n 'timeFormat' => 'H.i',\n 'dateTimeFormat' => 'd-m-y H.i'\n ),\n 'bn-IN' => array(\n 'name' => 'Bengali (India)',\n 'dateFormat' => 'd-m-y',\n 'timeFormat' => 'H.i',\n 'dateTimeFormat' => 'd-m-y H.i'\n ),\n 'byn' => array(\n 'name' => 'Bilen',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'byn-ER' => array(\n 'name' => 'Bilen (Eritrea)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'bin' => array(\n 'name' => 'Bini',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:iA',\n 'dateTimeFormat' => 'j/n/Y g:iA'\n ),\n 'bin-NG' => array(\n 'name' => 'Bini (Nigeria)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:iA',\n 'dateTimeFormat' => 'j/n/Y g:iA'\n ),\n 'brx' => array(\n 'name' => 'Bodo',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'brx-IN' => array(\n 'name' => 'Bodo (India)',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'bs' => array(\n 'name' => 'Bosnian',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'bs-Cyrl' => array(\n 'name' => 'Bosnian (Cyrillic)',\n 'dateFormat' => 'j.n.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j.n.Y G:i'\n ),\n 'bs-Cyrl-BA' => array(\n 'name' => 'Bosnian (Cyrillic, Bosnia and Herzegovina)',\n 'dateFormat' => 'j.n.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j.n.Y G:i'\n ),\n 'bs-Latn' => array(\n 'name' => 'Bosnian (Latin)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'bs-Latn-BA' => array(\n 'name' => 'Bosnian (Latin, Bosnia and Herzegovina)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'br' => array(\n 'name' => 'Breton',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'br-FR' => array(\n 'name' => 'Breton (France)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'bg' => array(\n 'name' => 'Bulgarian',\n 'dateFormat' => 'j.n.Y г.',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j.n.Y г. G:i'\n ),\n 'bg-BG' => array(\n 'name' => 'Bulgarian (Bulgaria)',\n 'dateFormat' => 'j.n.Y г.',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j.n.Y г. G:i'\n ),\n 'my' => array(\n 'name' => 'Burmese',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'my-MM' => array(\n 'name' => 'Burmese (Myanmar)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'ca' => array(\n 'name' => 'Catalan',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j/n/Y G:i'\n ),\n 'ca-AD' => array(\n 'name' => 'Catalan (Andorra)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j/n/Y G:i'\n ),\n 'ca-FR' => array(\n 'name' => 'Catalan (France)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j/n/Y G:i'\n ),\n 'ca-IT' => array(\n 'name' => 'Catalan (Italy)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j/n/Y G:i'\n ),\n 'ca-ES' => array(\n 'name' => 'Catalan (Spain)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j/n/Y G:i'\n ),\n 'tzm' => array(\n 'name' => 'Central Atlas Tamazight',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd-m-Y G:i'\n ),\n 'tzm-Arab' => array(\n 'name' => 'Central Atlas Tamazight (Arabic)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j/n/Y G:i'\n ),\n 'tzm-Arab-MA' => array(\n 'name' => 'Central Atlas Tamazight (Arabic, Morocco)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j/n/Y G:i'\n ),\n 'tzm-Latn' => array(\n 'name' => 'Central Atlas Tamazight (Latin)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd-m-Y G:i'\n ),\n 'tzm-Latn-DZ' => array(\n 'name' => 'Central Atlas Tamazight (Latin, Algeria)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd-m-Y G:i'\n ),\n 'tzm-Latn-MA' => array(\n 'name' => 'Central Atlas Tamazight (Latin, Morocco)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'tzm-Tfng' => array(\n 'name' => 'Central Atlas Tamazight (Tifinagh)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd-m-Y G:i'\n ),\n 'tzm-Tfng-MA' => array(\n 'name' => 'Central Atlas Tamazight (Tifinagh, Morocco)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd-m-Y G:i'\n ),\n 'ku' => array(\n 'name' => 'Central Kurdish',\n 'dateFormat' => 'Y/m/d',\n 'timeFormat' => 'h:i A',\n 'dateTimeFormat' => 'Y/m/d h:i A'\n ),\n 'ku-Arab' => array(\n 'name' => 'Central Kurdish (Arabic)',\n 'dateFormat' => 'Y/m/d',\n 'timeFormat' => 'h:i A',\n 'dateTimeFormat' => 'Y/m/d h:i A'\n ),\n 'ku-Arab-IQ' => array(\n 'name' => 'Central Kurdish (Arabic, Iraq)',\n 'dateFormat' => 'Y/m/d',\n 'timeFormat' => 'h:i A',\n 'dateTimeFormat' => 'Y/m/d h:i A'\n ),\n 'ce' => array(\n 'name' => 'Chechen',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'ce-RU' => array(\n 'name' => 'Chechen (Russia)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'chr' => array(\n 'name' => 'Cherokee',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'chr-Cher' => array(\n 'name' => 'Cherokee',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'chr-Cher-US' => array(\n 'name' => 'Cherokee (United States)',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'cgg' => array(\n 'name' => 'Chiga',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'cgg-UG' => array(\n 'name' => 'Chiga (Uganda)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'zh' => array(\n 'name' => 'Chinese',\n 'dateFormat' => 'Y/n/j',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'Y/n/j G:i'\n ),\n 'zh-CN' => array(\n 'name' => 'Chinese (Simplified, China)',\n 'dateFormat' => 'Y/n/j',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'Y/n/j G:i'\n ),\n 'zh-Hans' => array(\n 'name' => 'Chinese (Simplified Han)',\n 'dateFormat' => 'Y/n/j',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'Y/n/j G:i'\n ),\n 'zh-Hans-HK' => array(\n 'name' => 'Chinese (Simplified Han, Hong Kong SAR)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'Ag:i',\n 'dateTimeFormat' => 'j/n/Y Ag:i'\n ),\n 'zh-Hans-MO' => array(\n 'name' => 'Chinese (Simplified Han, Macao SAR)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'Ag:i',\n 'dateTimeFormat' => 'j/n/Y Ag:i'\n ),\n 'zh-SG' => array(\n 'name' => 'Chinese (Simplified, Singapore)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'A g:i',\n 'dateTimeFormat' => 'j/n/Y A g:i'\n ),\n 'zh-Hant' => array(\n 'name' => 'Chinese (Traditional)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j/n/Y G:i'\n ),\n 'zh-HK' => array(\n 'name' => 'Chinese (Traditional, Hong Kong SAR)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j/n/Y G:i'\n ),\n 'zh-MO' => array(\n 'name' => 'Chinese (Traditional, Macao SAR)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j/n/Y G:i'\n ),\n 'zh-TW' => array(\n 'name' => 'Chinese (Traditional, Taiwan)',\n 'dateFormat' => 'Y/n/j',\n 'timeFormat' => 'A h:i',\n 'dateTimeFormat' => 'Y/n/j A h:i'\n ),\n 'zh-CHS' => array(\n 'name' => 'Chinese (Simplified) (zh-CHS)',\n 'dateFormat' => 'Y/n/j',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'Y/n/j G:i'\n ),\n 'zh-CHT' => array(\n 'name' => 'Chinese (Traditional) (zh-CHT)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j/n/Y G:i'\n ),\n 'cu' => array(\n 'name' => 'Church Slavic',\n 'dateFormat' => 'Y.m.d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y.m.d H:i'\n ),\n 'cu-RU' => array(\n 'name' => 'Church Slavic (Russia)',\n 'dateFormat' => 'Y.m.d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y.m.d H:i'\n ),\n 'ksh' => array(\n 'name' => 'Colognian',\n 'dateFormat' => 'j. n. Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j. n. Y H:i'\n ),\n 'ksh-DE' => array(\n 'name' => 'Colognian (Germany)',\n 'dateFormat' => 'j. n. Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j. n. Y H:i'\n ),\n 'kw' => array(\n 'name' => 'Cornish',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'kw-GB' => array(\n 'name' => 'Cornish (United Kingdom)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'co' => array(\n 'name' => 'Corsican',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'co-FR' => array(\n 'name' => 'Corsican (France)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'hr' => array(\n 'name' => 'Croatian',\n 'dateFormat' => 'j.n.Y.',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j.n.Y. G:i'\n ),\n 'hr-BA' => array(\n 'name' => 'Croatian (Latin, Bosnia and Herzegovina)',\n 'dateFormat' => 'd.m.Y.',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y. H:i'\n ),\n 'hr-HR' => array(\n 'name' => 'Croatian (Croatia)',\n 'dateFormat' => 'j.n.Y.',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j.n.Y. G:i'\n ),\n 'cs' => array(\n 'name' => 'Czech',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd.m.Y G:i'\n ),\n 'cs-CZ' => array(\n 'name' => 'Czech (Czech Republic)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd.m.Y G:i'\n ),\n 'da' => array(\n 'name' => 'Danish',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'da-DK' => array(\n 'name' => 'Danish (Denmark)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'da-GL' => array(\n 'name' => 'Danish (Greenland)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g.i A',\n 'dateTimeFormat' => 'd/m/Y g.i A'\n ),\n 'prs' => array(\n 'name' => 'Dari',\n 'dateFormat' => 'Y/n/j',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'Y/n/j g:i A'\n ),\n 'prs-AF' => array(\n 'name' => 'Dari (Afghanistan)',\n 'dateFormat' => 'Y/n/j',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'Y/n/j g:i A'\n ),\n 'dv' => array(\n 'name' => 'Divehi',\n 'dateFormat' => 'd/m/y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/y H:i'\n ),\n 'dv-MV' => array(\n 'name' => 'Divehi (Maldives)',\n 'dateFormat' => 'd/m/y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/y H:i'\n ),\n 'dua' => array(\n 'name' => 'Duala',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'dua-CM' => array(\n 'name' => 'Duala (Cameroon)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'nl' => array(\n 'name' => 'Dutch',\n 'dateFormat' => 'j-n-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j-n-Y H:i'\n ),\n 'nl-AW' => array(\n 'name' => 'Dutch (Aruba)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'nl-BE' => array(\n 'name' => 'Dutch (Belgium)',\n 'dateFormat' => 'j/m/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j/m/Y G:i'\n ),\n 'nl-BQ' => array(\n 'name' => 'Dutch (Bonaire, Sint Eustatius and Saba)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'nl-CW' => array(\n 'name' => 'Dutch (Curaçao)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'nl-NL' => array(\n 'name' => 'Dutch (Netherlands)',\n 'dateFormat' => 'j-n-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j-n-Y H:i'\n ),\n 'nl-SR' => array(\n 'name' => 'Dutch (Suriname)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'nl-SX' => array(\n 'name' => 'Dutch (Sint Maarten)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'dz' => array(\n 'name' => 'Dzongkha',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'ཆུ་ཚོད་ g སྐར་མ་ i A',\n 'dateTimeFormat' => 'Y-m-d ཆུ་ཚོད་ g སྐར་མ་ i A'\n ),\n 'dz-BT' => array(\n 'name' => 'Dzongkha (Bhutan)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'ཆུ་ཚོད་ g སྐར་མ་ i A',\n 'dateTimeFormat' => 'Y-m-d ཆུ་ཚོད་ g སྐར་མ་ i A'\n ),\n 'ebu' => array(\n 'name' => 'Embu',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'ebu-KE' => array(\n 'name' => 'Embu (Kenya)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en' => array(\n 'name' => 'English',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'en-AS' => array(\n 'name' => 'English (American Samoa)',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'en-AI' => array(\n 'name' => 'English (Anguilla)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-AG' => array(\n 'name' => 'English (Antigua & Barbuda)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-AU' => array(\n 'name' => 'English (Australia)',\n 'dateFormat' => 'j/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/m/Y g:i A'\n ),\n 'en-AT' => array(\n 'name' => 'English (Austria)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-BS' => array(\n 'name' => 'English (Bahamas)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-BB' => array(\n 'name' => 'English (Barbados)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-BE' => array(\n 'name' => 'English (Belgium)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-BZ' => array(\n 'name' => 'English (Belize)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-BM' => array(\n 'name' => 'English (Bermuda)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-BW' => array(\n 'name' => 'English (Botswana)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-IO' => array(\n 'name' => 'English (British Indian Ocean Territory)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-VG' => array(\n 'name' => 'English (British Virgin Islands)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-BI' => array(\n 'name' => 'English (Burundi)',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'en-CM' => array(\n 'name' => 'English (Cameroon)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-CA' => array(\n 'name' => 'English (Canada)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'Y-m-d g:i A'\n ),\n 'en-029' => array(\n 'name' => 'English (Caribbean)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-KY' => array(\n 'name' => 'English (Cayman Islands)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-CX' => array(\n 'name' => 'English (Christmas Island)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-CC' => array(\n 'name' => 'English (Cocos (Keeling) Islands)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-CK' => array(\n 'name' => 'English (Cook Islands)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-CY' => array(\n 'name' => 'English (Cyprus)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-DK' => array(\n 'name' => 'English (Denmark)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H.i',\n 'dateTimeFormat' => 'd/m/Y H.i'\n ),\n 'en-DM' => array(\n 'name' => 'English (Dominica)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-ER' => array(\n 'name' => 'English (Eritrea)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-150' => array(\n 'name' => 'English (Europe)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-FK' => array(\n 'name' => 'English (Falkland Islands)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-FJ' => array(\n 'name' => 'English (Fiji)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-FI' => array(\n 'name' => 'English (Finland)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'G.i',\n 'dateTimeFormat' => 'd/m/Y G.i'\n ),\n 'en-GM' => array(\n 'name' => 'English (Gambia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-DE' => array(\n 'name' => 'English (Germany)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-GH' => array(\n 'name' => 'English (Ghana)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-GI' => array(\n 'name' => 'English (Gibraltar)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-GD' => array(\n 'name' => 'English (Grenada)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-GU' => array(\n 'name' => 'English (Guam)',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'en-GY' => array(\n 'name' => 'English (Guyana)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-GG' => array(\n 'name' => 'English (Guernsey)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-HK' => array(\n 'name' => 'English (Hong Kong)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'en-IN' => array(\n 'name' => 'English (India)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'en-ID' => array(\n 'name' => 'English (Indonesia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd/m/Y G:i'\n ),\n 'en-IE' => array(\n 'name' => 'English (Ireland)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-IM' => array(\n 'name' => 'English (Isle of Man)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-IL' => array(\n 'name' => 'English (Israel)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd/m/Y G:i'\n ),\n 'en-JM' => array(\n 'name' => 'English (Jamaica)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'en-JE' => array(\n 'name' => 'English (Jersey)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-KE' => array(\n 'name' => 'English (Kenya)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-KI' => array(\n 'name' => 'English (Kiribati)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-LS' => array(\n 'name' => 'English (Lesotho)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-LR' => array(\n 'name' => 'English (Liberia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-MO' => array(\n 'name' => 'English (Macao SAR)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-MG' => array(\n 'name' => 'English (Madagascar)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-MY' => array(\n 'name' => 'English (Malaysia)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'en-MW' => array(\n 'name' => 'English (Malawi)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-MT' => array(\n 'name' => 'English (Malta)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-MH' => array(\n 'name' => 'English (Marshall Islands)',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'en-MU' => array(\n 'name' => 'English (Mauritius)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-FM' => array(\n 'name' => 'English (Micronesia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-MS' => array(\n 'name' => 'English (Montserrat)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-NA' => array(\n 'name' => 'English (Namibia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-NR' => array(\n 'name' => 'English (Nauru)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-NL' => array(\n 'name' => 'English (Netherlands)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-NZ' => array(\n 'name' => 'English (New Zealand)',\n 'dateFormat' => 'j/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/m/Y g:i A'\n ),\n 'en-NG' => array(\n 'name' => 'English (Nigeria)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-NU' => array(\n 'name' => 'English (Niue)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-NF' => array(\n 'name' => 'English (Norfolk Island)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-MP' => array(\n 'name' => 'English (Northern Mariana Islands)',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'en-PG' => array(\n 'name' => 'English (Papua New Guinea)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-PK' => array(\n 'name' => 'English (Pakistan)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-PW' => array(\n 'name' => 'English (Palau)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-PN' => array(\n 'name' => 'English (Pitcairn Islands)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-PR' => array(\n 'name' => 'English (Puerto Rico)',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'en-PH' => array(\n 'name' => 'English (Republic of the Philippines)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-RW' => array(\n 'name' => 'English (Rwanda)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-WS' => array(\n 'name' => 'English (Samoa)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-SC' => array(\n 'name' => 'English (Seychelles)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-SL' => array(\n 'name' => 'English (Sierra Leone)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-SG' => array(\n 'name' => 'English (Singapore)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'en-SX' => array(\n 'name' => 'English (Sint Maarten)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-SI' => array(\n 'name' => 'English (Slovenia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-SB' => array(\n 'name' => 'English (Solomon Islands)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-ZA' => array(\n 'name' => 'English (South Africa)',\n 'dateFormat' => 'Y/m/d',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'Y/m/d g:i A'\n ),\n 'en-SS' => array(\n 'name' => 'English (South Sudan)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-SH' => array(\n 'name' => 'English (St. Helena)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-KN' => array(\n 'name' => 'English (St. Kitts & Nevis)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-LC' => array(\n 'name' => 'English (St. Lucia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-VC' => array(\n 'name' => 'English (St. Vincent & Grenadines)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-SD' => array(\n 'name' => 'English (Sudan)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-SZ' => array(\n 'name' => 'English (Swaziland)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-SE' => array(\n 'name' => 'English (Sweden)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'en-CH' => array(\n 'name' => 'English (Switzerland)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-TZ' => array(\n 'name' => 'English (Tanzania)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-TK' => array(\n 'name' => 'English (Tokelau)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-TO' => array(\n 'name' => 'English (Tonga)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-TT' => array(\n 'name' => 'English (Trinidad and Tobago)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-TC' => array(\n 'name' => 'English (Turks & Caicos Islands)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-TV' => array(\n 'name' => 'English (Tuvala)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-UG' => array(\n 'name' => 'English (Uganda)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-GB' => array(\n 'name' => 'English (United Kingdom)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'en-US' => array(\n 'name' => 'English (United States)',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'en-UM' => array(\n 'name' => 'English (U.S. Outlying Islands)',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'en-VI' => array(\n 'name' => 'English (U.S. Virgin Islands)',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'en-VU' => array(\n 'name' => 'English (Vanuatu)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-001' => array(\n 'name' => 'English (World)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-ZM' => array(\n 'name' => 'English (Zambia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'en-ZW' => array(\n 'name' => 'English (Zimbabwe)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'eo' => array(\n 'name' => 'Esperanto',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'eo-001' => array(\n 'name' => 'Esperanto (World)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'et' => array(\n 'name' => 'Estonian',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd.m.Y G:i'\n ),\n 'et-EE' => array(\n 'name' => 'Estonian (Estonia)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd.m.Y G:i'\n ),\n 'ee' => array(\n 'name' => 'Ewe',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'A \\g\\a g:i',\n 'dateTimeFormat' => 'n/j/Y A \\g\\a g:i'\n ),\n 'ewo' => array(\n 'name' => 'Ewondo',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'ewo-CM' => array(\n 'name' => 'Ewondo (Cameroon)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'ee-GH' => array(\n 'name' => 'Ewe (Ghana)',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'A \\g\\a g:i',\n 'dateTimeFormat' => 'n/j/Y A \\g\\a g:i'\n ),\n 'ee-TG' => array(\n 'name' => 'Ewe (Togo)',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'n/j/Y H:i'\n ),\n 'fo' => array(\n 'name' => 'Faroese',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'fo-DK' => array(\n 'name' => 'Faroese (Denmark)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'fo-FO' => array(\n 'name' => 'Faroese (Faroe Islands)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'fil' => array(\n 'name' => 'Filipino',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'fil-PH' => array(\n 'name' => 'Filipino (Philippines)',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'fi' => array(\n 'name' => 'Finnish',\n 'dateFormat' => 'j.n.Y',\n 'timeFormat' => 'G.i',\n 'dateTimeFormat' => 'j.n.Y G.i'\n ),\n 'fi-FI' => array(\n 'name' => 'Finnish (Finland)',\n 'dateFormat' => 'j.n.Y',\n 'timeFormat' => 'G.i',\n 'dateTimeFormat' => 'j.n.Y G.i'\n ),\n 'fr' => array(\n 'name' => 'French',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-DZ' => array(\n 'name' => 'French (Algeria)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'fr-BE' => array(\n 'name' => 'French (Belgium)',\n 'dateFormat' => 'd-m-y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-y H:i'\n ),\n 'fr-BJ' => array(\n 'name' => 'French (Benin)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-BI' => array(\n 'name' => 'French (Burundi)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-BF' => array(\n 'name' => 'French (Burkina Faso)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-CM' => array(\n 'name' => 'French (Cameroon)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-CA' => array(\n 'name' => 'French (Canada)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'fr-029' => array(\n 'name' => 'French (Caribbean)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd/m/Y G:i'\n ),\n 'fr-CF' => array(\n 'name' => 'French (Central African Republic)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-TD' => array(\n 'name' => 'French (Chad)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'fr-KM' => array(\n 'name' => 'French (Comoros)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-CG' => array(\n 'name' => 'French (Congo - Brazzaville)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-CD' => array(\n 'name' => 'French (Congo - Kinshasa)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-CI' => array(\n 'name' => 'French (Côte d’Ivoire)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-DJ' => array(\n 'name' => 'French (Djibouti)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'fr-GQ' => array(\n 'name' => 'French (Equatorial Guinea)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-FR' => array(\n 'name' => 'French (France)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-GF' => array(\n 'name' => 'French (French Guiana)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-PF' => array(\n 'name' => 'French (French Polynesia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-GA' => array(\n 'name' => 'French (Gabon)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-GP' => array(\n 'name' => 'French (Guadeloupe)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-GN' => array(\n 'name' => 'French (Guinea)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-HT' => array(\n 'name' => 'French (Haiti)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-LU' => array(\n 'name' => 'French (Luxembourg)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-MG' => array(\n 'name' => 'French (Madagascar)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-ML' => array(\n 'name' => 'French (Mali)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-MQ' => array(\n 'name' => 'French (Martinique)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-MR' => array(\n 'name' => 'French (Mauritania)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'fr-MU' => array(\n 'name' => 'French (Mauritius)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-YT' => array(\n 'name' => 'French (Mayotte)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-MA' => array(\n 'name' => 'French (Morocco)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-NC' => array(\n 'name' => 'French (New Caledonia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-NE' => array(\n 'name' => 'French (Niger)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-MC' => array(\n 'name' => 'French (Principality of Monaco)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-RE' => array(\n 'name' => 'French (Réunion)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-RW' => array(\n 'name' => 'French (Rwanda)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-SN' => array(\n 'name' => 'French (Senegal)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-SC' => array(\n 'name' => 'French (Seychelles)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-BL' => array(\n 'name' => 'French (St. Barthélemy)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-MF' => array(\n 'name' => 'French (St. Martin)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-PM' => array(\n 'name' => 'French (St. Pierre & Miquelon)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-CH' => array(\n 'name' => 'French (Switzerland)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'fr-SY' => array(\n 'name' => 'French (Syria)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'fr-TG' => array(\n 'name' => 'French (Togo)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fr-TN' => array(\n 'name' => 'French (Tunisia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'fr-VU' => array(\n 'name' => 'French (Vanuatu)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'fr-WF' => array(\n 'name' => 'French (Wallis & Futuna)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fy' => array(\n 'name' => 'Frisian',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'fy-NL' => array(\n 'name' => 'Frisian (Netherlands)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'fur' => array(\n 'name' => 'Friulian',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'fur-IT' => array(\n 'name' => 'Friulian (Italy)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'ff' => array(\n 'name' => 'Fulah',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'ff-CM' => array(\n 'name' => 'Fulah (Cameroon)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'ff-GN' => array(\n 'name' => 'Fulah (Guinea)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'ff-Latn' => array(\n 'name' => 'Fulah (Latin)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'ff-Latn-SN' => array(\n 'name' => 'Fulah (Latin, Senegal)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'ff-MR' => array(\n 'name' => 'Fulah (Mauritania)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'ff-NG' => array(\n 'name' => 'Fulah (Nigeria)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j/n/Y G:i'\n ),\n 'gl' => array(\n 'name' => 'Galician',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'gl-ES' => array(\n 'name' => 'Galician (Spain)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'lg' => array(\n 'name' => 'Ganda',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'lg-UG' => array(\n 'name' => 'Ganda (Uganda)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'ka' => array(\n 'name' => 'Georgian',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'ka-GE' => array(\n 'name' => 'Georgian (Georgia)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'de' => array(\n 'name' => 'German',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'de-AT' => array(\n 'name' => 'German (Austria)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'de-BE' => array(\n 'name' => 'German (Belgium)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'de-DE' => array(\n 'name' => 'German (Germany)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'de-LI' => array(\n 'name' => 'German (Liechtenstein)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'de-LU' => array(\n 'name' => 'German (Luxembourg)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'de-CH' => array(\n 'name' => 'German (Switzerland)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'el' => array(\n 'name' => 'Greek',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i a',\n 'dateTimeFormat' => 'j/n/Y g:i a'\n ),\n 'el-CY' => array(\n 'name' => 'Greek (Cyprus)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i a',\n 'dateTimeFormat' => 'j/n/Y g:i a'\n ),\n 'el-GR' => array(\n 'name' => 'Greek (Greece)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i a',\n 'dateTimeFormat' => 'j/n/Y g:i a'\n ),\n 'kl' => array(\n 'name' => 'Greenlandic',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'kl-GL' => array(\n 'name' => 'Greenlandic (Greenland)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'gn' => array(\n 'name' => 'Guarani',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'gn-PY' => array(\n 'name' => 'Guarani (Paraguay)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'gu' => array(\n 'name' => 'Gujarati',\n 'dateFormat' => 'd-m-y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-y H:i'\n ),\n 'gu-IN' => array(\n 'name' => 'Gujarati (India)',\n 'dateFormat' => 'd-m-y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-y H:i'\n ),\n 'guz' => array(\n 'name' => 'Gusii',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'guz-KE' => array(\n 'name' => 'Gusii (Kenya)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'ha' => array(\n 'name' => 'Hausa',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'ha-Latn' => array(\n 'name' => 'Hausa (Latin)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'ha-Latn-GH' => array(\n 'name' => 'Hausa (Latin, Ghana)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'ha-Latn-NE' => array(\n 'name' => 'Hausa (Latin, Niger)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'ha-Latn-NG' => array(\n 'name' => 'Hausa (Latin, Nigeria)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'haw' => array(\n 'name' => 'Hawaiian',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'haw-US' => array(\n 'name' => 'Hawaiian (United States)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'he' => array(\n 'name' => 'Hebrew',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'he-IL' => array(\n 'name' => 'Hebrew (Israel)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'hi' => array(\n 'name' => 'Hindi',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'hi-IN' => array(\n 'name' => 'Hindi (India)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'hu' => array(\n 'name' => 'Hungarian',\n 'dateFormat' => 'Y. m. d.',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'Y. m. d. G:i'\n ),\n 'hu-HU' => array(\n 'name' => 'Hungarian (Hungary)',\n 'dateFormat' => 'Y. m. d.',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'Y. m. d. G:i'\n ),\n 'ibb' => array(\n 'name' => 'Ibibio',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:iA',\n 'dateTimeFormat' => 'j/n/Y g:iA'\n ),\n 'ibb-NG' => array(\n 'name' => 'Ibibio (Nigeria)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:iA',\n 'dateTimeFormat' => 'j/n/Y g:iA'\n ),\n 'is' => array(\n 'name' => 'Icelandic',\n 'dateFormat' => 'j.n.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j.n.Y H:i'\n ),\n 'is-IS' => array(\n 'name' => 'Icelandic (Iceland)',\n 'dateFormat' => 'j.n.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j.n.Y H:i'\n ),\n 'ig' => array(\n 'name' => 'Igbo',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g.i A',\n 'dateTimeFormat' => 'd/m/Y g.i A'\n ),\n 'ig-NG' => array(\n 'name' => 'Igbo (Nigeria)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g.i A',\n 'dateTimeFormat' => 'd/m/Y g.i A'\n ),\n 'id' => array(\n 'name' => 'Indonesian',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'id-ID' => array(\n 'name' => 'Indonesian (Indonesia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'ia' => array(\n 'name' => 'Interlingua',\n 'dateFormat' => 'Y/m/d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y/m/d H:i'\n ),\n 'ia-001' => array(\n 'name' => 'Interlingua (World)',\n 'dateFormat' => 'Y/m/d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y/m/d H:i'\n ),\n 'ia-fr' => array(\n 'name' => 'Interlingua (France)',\n 'dateFormat' => 'Y/m/d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y/m/d H:i'\n ),\n 'iu' => array(\n 'name' => 'Inuktitut',\n 'dateFormat' => 'j/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/m/Y g:i A'\n ),\n 'iu-Latn' => array(\n 'name' => 'Inuktitut (Latin)',\n 'dateFormat' => 'j/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/m/Y g:i A'\n ),\n 'iu-Latn-CA' => array(\n 'name' => 'Inuktitut (Latin, Canada)',\n 'dateFormat' => 'j/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/m/Y g:i A'\n ),\n 'iu-Cans' => array(\n 'name' => 'Inuktitut (Syllabics)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'iu-Cans-CA' => array(\n 'name' => 'Inuktitut (Syllabics, Canada)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'ga' => array(\n 'name' => 'Irish',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'ga-IE' => array(\n 'name' => 'Irish (Ireland)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'it' => array(\n 'name' => 'Italian',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'it-IT' => array(\n 'name' => 'Italian (Italy)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'it-SM' => array(\n 'name' => 'Italian (San Marino)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'it-CH' => array(\n 'name' => 'Italian (Switzerland)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'ja' => array(\n 'name' => 'Japanese',\n 'dateFormat' => 'Y/m/d',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'Y/m/d G:i'\n ),\n 'ja-JP' => array(\n 'name' => 'Japanese (Japan)',\n 'dateFormat' => 'Y/m/d',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'Y/m/d G:i'\n ),\n 'jv' => array(\n 'name' => 'Javanese',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H.i',\n 'dateTimeFormat' => 'd/m/Y H.i'\n ),\n 'jv-Java' => array(\n 'name' => 'Javanese (Javanese)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H.i',\n 'dateTimeFormat' => 'd/m/Y H.i'\n ),\n 'jv-Java-ID' => array(\n 'name' => 'Javanese (Javanese, Indonesia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H.i',\n 'dateTimeFormat' => 'd/m/Y H.i'\n ),\n 'jv-Latn' => array(\n 'name' => 'Javanese (Latin)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H.i',\n 'dateTimeFormat' => 'd/m/Y H.i'\n ),\n 'jv-Latn-ID' => array(\n 'name' => 'Javanese (Latin, Indonesia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H.i',\n 'dateTimeFormat' => 'd/m/Y H.i'\n ),\n 'dyo' => array(\n 'name' => 'Jola-Fonyi',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'dyo-SN' => array(\n 'name' => 'Jola-Fonyi (Senegal)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'kea' => array(\n 'name' => 'Kabuverdianu',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'kea-CV' => array(\n 'name' => 'Kabuverdianu (Cabo Verde)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'kab' => array(\n 'name' => 'Kabyle',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'kab-DZ' => array(\n 'name' => 'Kabyle (Algeria)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'kkj' => array(\n 'name' => 'Kako',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'kkj-CM' => array(\n 'name' => 'Kako (Cameroon)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'kln' => array(\n 'name' => 'Kalenjin',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'kln-KE' => array(\n 'name' => 'Kalenjin (Kenya)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'kam' => array(\n 'name' => 'Kamba',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'kam-KE' => array(\n 'name' => 'Kamba (Kenya)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'kn' => array(\n 'name' => 'Kannada',\n 'dateFormat' => 'd-m-y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-y H:i'\n ),\n 'kn-IN' => array(\n 'name' => 'Kannada (India)',\n 'dateFormat' => 'd-m-y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-y H:i'\n ),\n 'kr' => array(\n 'name' => 'Kanuri',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'kr-NG' => array(\n 'name' => 'Kanuri (Nigeria)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'ks' => array(\n 'name' => 'Kashmiri',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'ks-Deva' => array(\n 'name' => 'Kashmiri (Devanagari)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd-m-Y G:i'\n ),\n 'ks-Deva-IN' => array(\n 'name' => 'Kashmiri (Devanagari, India)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd-m-Y G:i'\n ),\n 'ks-Arab' => array(\n 'name' => 'Kashmiri (Perso-Arabic)',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'ks-Arab-IN' => array(\n 'name' => 'Kashmiri (Perso-Arabic, India)',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'kk' => array(\n 'name' => 'Kazakh',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'kk-KZ' => array(\n 'name' => 'Kazakh (Kazakhstan)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'km' => array(\n 'name' => 'Khmer',\n 'dateFormat' => 'd/m/y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd/m/y G:i'\n ),\n 'km-KH' => array(\n 'name' => 'Khmer (Cambodia)',\n 'dateFormat' => 'd/m/y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd/m/y G:i'\n ),\n 'quc' => array(\n 'name' => 'K\\'iche\\'',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i a',\n 'dateTimeFormat' => 'd/m/Y g:i a'\n ),\n 'quc-Latn' => array(\n 'name' => 'K\\'iche\\' (Latin)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i a',\n 'dateTimeFormat' => 'd/m/Y g:i a'\n ),\n 'quc-Latn-GT' => array(\n 'name' => 'K\\'iche\\' (Latin, Guatemala)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i a',\n 'dateTimeFormat' => 'd/m/Y g:i a'\n ),\n 'qut' => array(\n 'name' => 'K\\'iche\\' (qut)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i a',\n 'dateTimeFormat' => 'd/m/Y g:i a'\n ),\n 'qut-GT' => array(\n 'name' => 'K\\'iche\\' (qut, Guatemala)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i a',\n 'dateTimeFormat' => 'd/m/Y g:i a'\n ),\n 'ki' => array(\n 'name' => 'Kikuyu',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'ki-KE' => array(\n 'name' => 'Kikuyu (Kenya)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'rw' => array(\n 'name' => 'Kinyarwanda',\n 'dateFormat' => 'Y/m/d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y/m/d H:i'\n ),\n 'rw-RW' => array(\n 'name' => 'Kinyarwanda (Rwanda)',\n 'dateFormat' => 'Y/m/d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y/m/d H:i'\n ),\n 'sw' => array(\n 'name' => 'Kiswahili',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'sw-CD' => array(\n 'name' => 'Kiswahili (Congo DRC)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'sw-KE' => array(\n 'name' => 'Kiswahili (Kenya)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'sw-TZ' => array(\n 'name' => 'Kiswahili (Tanzania)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'sw-UG' => array(\n 'name' => 'Kiswahili (Uganda)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'kok' => array(\n 'name' => 'Konkani',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'kok-IN' => array(\n 'name' => 'Konkani (India)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'ko' => array(\n 'name' => 'Korean',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'A g:i',\n 'dateTimeFormat' => 'Y-m-d A g:i'\n ),\n 'ko-KP' => array(\n 'name' => 'Korean (North Korea)',\n 'dateFormat' => 'Y. m. d.',\n 'timeFormat' => 'A g:i',\n 'dateTimeFormat' => 'Y. m. d. A g:i'\n ),\n 'ko-KR' => array(\n 'name' => 'Korean (Korea)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'A g:i',\n 'dateTimeFormat' => 'Y-m-d A g:i'\n ),\n 'khq' => array(\n 'name' => 'Koyra Chiini',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'khq-ML' => array(\n 'name' => 'Koyra Chiini (Mali)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'ses' => array(\n 'name' => 'Koyraboro Senni',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'ses-ML' => array(\n 'name' => 'Koyraboro Senni (Mali)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'ku-Arab-IR' => array(\n 'name' => 'Kurdish (Perso-Arabic, Iran)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'nmg' => array(\n 'name' => 'Kwasio',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'nmg-CM' => array(\n 'name' => 'Kwasio (Cameroon)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'ky' => array(\n 'name' => 'Kyrgyz',\n 'dateFormat' => 'j-n-y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j-n-y H:i'\n ),\n 'ky-KG' => array(\n 'name' => 'Kyrgyz (Kyrgyzstan)',\n 'dateFormat' => 'j-n-y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j-n-y H:i'\n ),\n 'lkt' => array(\n 'name' => 'Lakota',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'lkt-US' => array(\n 'name' => 'Lakota (United States)',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'lag' => array(\n 'name' => 'Langi',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'lag-TZ' => array(\n 'name' => 'Langi (Tanzania)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'lo' => array(\n 'name' => 'Lao',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j/n/Y G:i'\n ),\n 'lo-LA' => array(\n 'name' => 'Lao (Lao P.D.R.)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j/n/Y G:i'\n ),\n 'la' => array(\n 'name' => 'Latin',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd/m/Y G:i'\n ),\n 'la-001' => array(\n 'name' => 'Latin (World)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd/m/Y G:i'\n ),\n 'lv' => array(\n 'name' => 'Latvian',\n 'dateFormat' => 'd.m.Y.',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y. H:i'\n ),\n 'lv-LV' => array(\n 'name' => 'Latvian (Latvia)',\n 'dateFormat' => 'd.m.Y.',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y. H:i'\n ),\n 'ln' => array(\n 'name' => 'Lingala',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'ln-AO' => array(\n 'name' => 'Lingala (Angola)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'ln-CD' => array(\n 'name' => 'Lingala (Congo DRC)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'ln-CF' => array(\n 'name' => 'Lingala (Central African Republic)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'ln-CG' => array(\n 'name' => 'Lingala (Congo)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'lt' => array(\n 'name' => 'Lithuanian',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'lt-LT' => array(\n 'name' => 'Lithuanian (Lithuania)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'dsb' => array(\n 'name' => 'Lower Sorbian',\n 'dateFormat' => 'j. n. Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j. n. Y H:i'\n ),\n 'dsb-DE' => array(\n 'name' => 'Lower Sorbian (Germany)',\n 'dateFormat' => 'j. n. Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j. n. Y H:i'\n ),\n 'lu' => array(\n 'name' => 'Luba-Katanga',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'lu-CD' => array(\n 'name' => 'Luba-Katanga (Congo DRC)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'luo' => array(\n 'name' => 'Luo',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'luo-KE' => array(\n 'name' => 'Luo (Kenya)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'lb' => array(\n 'name' => 'Luxembourgish',\n 'dateFormat' => 'd.m.y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.y H:i'\n ),\n 'lb-LU' => array(\n 'name' => 'Luxembourgish (Luxembourg)',\n 'dateFormat' => 'd.m.y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.y H:i'\n ),\n 'luy' => array(\n 'name' => 'Luyia',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'luy-KE' => array(\n 'name' => 'Luyia (Kenya)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'mk' => array(\n 'name' => 'Macedonian',\n 'dateFormat' => 'd.n.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.n.Y H:i'\n ),\n 'mk-MK' => array(\n 'name' => 'Macedonian (Former Yugoslav Republic of Macedonia)',\n 'dateFormat' => 'd.n.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.n.Y H:i'\n ),\n 'jmc' => array(\n 'name' => 'Machame',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'jmc-TZ' => array(\n 'name' => 'Machame (Tanzania)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'mgh' => array(\n 'name' => 'Makhuwa-Meetto',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'mgh-MZ' => array(\n 'name' => 'Makhuwa-Meetto (Mozambique)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'kde' => array(\n 'name' => 'Makonde',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'kde-TZ' => array(\n 'name' => 'Makonde (Tanzania)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'mg' => array(\n 'name' => 'Malagasy',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'mg-MG' => array(\n 'name' => 'Malagasy (Madagascar)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'ms' => array(\n 'name' => 'Malay',\n 'dateFormat' => 'j/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/m/Y g:i A'\n ),\n 'ms-BN' => array(\n 'name' => 'Malay (Brunei)',\n 'dateFormat' => 'j/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/m/Y g:i A'\n ),\n 'ms-MY' => array(\n 'name' => 'Malay (Malaysia)',\n 'dateFormat' => 'j/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/m/Y g:i A'\n ),\n 'ms-SG' => array(\n 'name' => 'Malay (Singapore)',\n 'dateFormat' => 'j/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/m/Y g:i A'\n ),\n 'ml' => array(\n 'name' => 'Malayalam',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'ml-IN' => array(\n 'name' => 'Malayalam (India)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'mt' => array(\n 'name' => 'Maltese',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'mt-MT' => array(\n 'name' => 'Maltese (Malta)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'mni' => array(\n 'name' => 'Manipuri',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'mni-IN' => array(\n 'name' => 'Manipuri (India)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'gv' => array(\n 'name' => 'Manx',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'gv-IM' => array(\n 'name' => 'Manx (Isle of Man)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'mi' => array(\n 'name' => 'Maori',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i a',\n 'dateTimeFormat' => 'd/m/Y g:i a'\n ),\n 'mi-NZ' => array(\n 'name' => 'Maori (New Zealand)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i a',\n 'dateTimeFormat' => 'd/m/Y g:i a'\n ),\n 'arn' => array(\n 'name' => 'Mapudungun',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd-m-Y G:i'\n ),\n 'arn-CL' => array(\n 'name' => 'Mapudungun (Chile)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd-m-Y G:i'\n ),\n 'mr' => array(\n 'name' => 'Marathi',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'mr-IN' => array(\n 'name' => 'Marathi (India)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'mas' => array(\n 'name' => 'Masai',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'mas-KE' => array(\n 'name' => 'Masai (Kenya)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'mas-TZ' => array(\n 'name' => 'Masai (Tanzania)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'mzn' => array(\n 'name' => 'Mazanderani',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'mzn-IR' => array(\n 'name' => 'Mazanderani (Iran)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'mer' => array(\n 'name' => 'Meru',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'mer-KE' => array(\n 'name' => 'Meru (Kenya)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'mgo' => array(\n 'name' => 'Metaʼ',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'mgo-CM' => array(\n 'name' => 'Metaʼ (Cameroon)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'moh' => array(\n 'name' => 'Mohawk',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'moh-CA' => array(\n 'name' => 'Mohawk (Canada)',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'mn' => array(\n 'name' => 'Mongolian',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'mn-Cyrl' => array(\n 'name' => 'Mongolian (Cyrillic)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'mn-MN' => array(\n 'name' => 'Mongolian (Cyrillic, Mongolia)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'mn-Mong' => array(\n 'name' => 'Mongolian (Traditional Mongolian)',\n 'dateFormat' => 'Y/n/j',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'Y/n/j G:i'\n ),\n 'mn-Mong-MN' => array(\n 'name' => 'Mongolian (Traditional Mongolian, Mongolia)',\n 'dateFormat' => 'Y/n/j',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'Y/n/j G:i'\n ),\n 'mn-Mong-CN' => array(\n 'name' => 'Mongolian (Traditional Mongolian, China)',\n 'dateFormat' => 'Y/n/j',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'Y/n/j G:i'\n ),\n 'mfe' => array(\n 'name' => 'Morisyen',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'mfe-MU' => array(\n 'name' => 'Morisyen (Mauritius)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'mua' => array(\n 'name' => 'Mundang',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'mua-CM' => array(\n 'name' => 'Mundang (Cameroon)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'naq' => array(\n 'name' => 'Nama',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'naq-NA' => array(\n 'name' => 'Nama (Namibia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'nqo' => array(\n 'name' => 'N\\'ko',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'A h:i',\n 'dateTimeFormat' => 'd/m/Y A h:i'\n ),\n 'nqo-GN' => array(\n 'name' => 'N\\'ko (Guinea)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'A h:i',\n 'dateTimeFormat' => 'd/m/Y A h:i'\n ),\n 'ne' => array(\n 'name' => 'Nepali',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'ne-IN' => array(\n 'name' => 'Nepali (India)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'Y-m-d g:i A'\n ),\n 'ne-NP' => array(\n 'name' => 'Nepali (Nepal)',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'nnh' => array(\n 'name' => 'Ngiemboon',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'nnh-CM' => array(\n 'name' => 'Ngiemboon (Cameroon)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'jgo' => array(\n 'name' => 'Ngomba',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'jgo-CM' => array(\n 'name' => 'Ngomba (Cameroon)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'nd' => array(\n 'name' => 'North Ndebele',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'nd-ZW' => array(\n 'name' => 'North Ndebele (Zimbabwe)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'lrc' => array(\n 'name' => 'Northern Luri',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'lrc-IR' => array(\n 'name' => 'Northern Luri (Iran)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'lrc-IQ' => array(\n 'name' => 'Northern Luri (Iraq)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'Y-m-d g:i A'\n ),\n 'no' => array(\n 'name' => 'Norwegian',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H.i',\n 'dateTimeFormat' => 'd.m.Y H.i'\n ),\n 'nb' => array(\n 'name' => 'Norwegian (Bokmål)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H.i',\n 'dateTimeFormat' => 'd.m.Y H.i'\n ),\n 'nb-NO' => array(\n 'name' => 'Norwegian (Bokmål, Norway)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H.i',\n 'dateTimeFormat' => 'd.m.Y H.i'\n ),\n 'nb-SJ' => array(\n 'name' => 'Norwegian (Bokmål, Svalbard and Jan Mayen)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H.i',\n 'dateTimeFormat' => 'd.m.Y H.i'\n ),\n 'nn' => array(\n 'name' => 'Norwegian (Nynorsk)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'nn-NO' => array(\n 'name' => 'Norwegian (Nynorsk, Norway)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'nus' => array(\n 'name' => 'Nuer',\n 'dateFormat' => 'j/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/m/Y g:i A'\n ),\n 'nus-SS' => array(\n 'name' => 'Nuer (South Sudan)',\n 'dateFormat' => 'j/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/m/Y g:i A'\n ),\n 'nyn' => array(\n 'name' => 'Nyankole',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'nyn-UG' => array(\n 'name' => 'Nyankole (Uganda)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'oc' => array(\n 'name' => 'Occitan',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H \\h i',\n 'dateTimeFormat' => 'd/m/Y H \\h i'\n ),\n 'oc-FR' => array(\n 'name' => 'Occitan (France)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H \\h i',\n 'dateTimeFormat' => 'd/m/Y H \\h i'\n ),\n 'or' => array(\n 'name' => 'Odia',\n 'dateFormat' => 'd-m-y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-y H:i'\n ),\n 'or-IN' => array(\n 'name' => 'Odia (India)',\n 'dateFormat' => 'd-m-y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-y H:i'\n ),\n 'om' => array(\n 'name' => 'Oromo',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'om-ET' => array(\n 'name' => 'Oromo (Ethiopia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'om-KE' => array(\n 'name' => 'Oromo (Kenya)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'os' => array(\n 'name' => 'Ossetic',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'os-GE' => array(\n 'name' => 'Ossetic (Georgia)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'os-RU' => array(\n 'name' => 'Ossetic (Russia)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'pap' => array(\n 'name' => 'Papiamento',\n 'dateFormat' => 'j-n-Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j-n-Y G:i'\n ),\n 'pap-029' => array(\n 'name' => 'Papiamento (Caribbean)',\n 'dateFormat' => 'j-n-Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j-n-Y G:i'\n ),\n 'ps' => array(\n 'name' => 'Pashto',\n 'dateFormat' => 'Y/n/j',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'Y/n/j G:i'\n ),\n 'ps-AF' => array(\n 'name' => 'Pashto (Afghanistan)',\n 'dateFormat' => 'Y/n/j',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'Y/n/j G:i'\n ),\n 'fa' => array(\n 'name' => 'Persian',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'h:i A',\n 'dateTimeFormat' => 'd/m/Y h:i A'\n ),\n 'fa-IR' => array(\n 'name' => 'Persian (Iran)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'h:i A',\n 'dateTimeFormat' => 'd/m/Y h:i A'\n ),\n 'pl' => array(\n 'name' => 'Polish',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'pl-PL' => array(\n 'name' => 'Polish (Poland)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'pt' => array(\n 'name' => 'Portuguese',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'pt-AO' => array(\n 'name' => 'Portuguese (Angola)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'pt-BR' => array(\n 'name' => 'Portuguese (Brazil)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'pt-CV' => array(\n 'name' => 'Portuguese (Cabo Verde)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'pt-GW' => array(\n 'name' => 'Portuguese (Guinea-Bissau)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'pt-MO' => array(\n 'name' => 'Portuguese (Macao SAR)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i a',\n 'dateTimeFormat' => 'd/m/Y g:i a'\n ),\n 'pt-MZ' => array(\n 'name' => 'Portuguese (Mozambique)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'pt-PT' => array(\n 'name' => 'Portuguese (Portugal)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'pt-ST' => array(\n 'name' => 'Portuguese (São Tomé and Príncipe)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'pt-TL' => array(\n 'name' => 'Portuguese (Timor-Leste)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'prg' => array(\n 'name' => 'Prussian',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'prg-001' => array(\n 'name' => 'Prussian (World)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'pa' => array(\n 'name' => 'Punjabi',\n 'dateFormat' => 'd-m-y',\n 'timeFormat' => 'A h:i',\n 'dateTimeFormat' => 'd-m-y A h:i'\n ),\n 'pa-Arab' => array(\n 'name' => 'Punjabi (Arabic)',\n 'dateFormat' => 'd-m-y',\n 'timeFormat' => 'g.i A',\n 'dateTimeFormat' => 'd-m-y g.i A'\n ),\n 'pa-Arab-PK' => array(\n 'name' => 'Punjabi (Arabic, Islamic Republic of Pakistan)',\n 'dateFormat' => 'd-m-y',\n 'timeFormat' => 'g.i A',\n 'dateTimeFormat' => 'd-m-y g.i A'\n ),\n 'pa-IN' => array(\n 'name' => 'Punjabi (India)',\n 'dateFormat' => 'd-m-y',\n 'timeFormat' => 'A h:i',\n 'dateTimeFormat' => 'd-m-y A h:i'\n ),\n 'quz' => array(\n 'name' => 'Quechua',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'h:i a',\n 'dateTimeFormat' => 'd/m/Y h:i a'\n ),\n 'quz-BO' => array(\n 'name' => 'Quechua (Bolivia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'h:i a',\n 'dateTimeFormat' => 'd/m/Y h:i a'\n ),\n 'quz-EC' => array(\n 'name' => 'Quechua (Ecuador)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd/m/Y G:i'\n ),\n 'quz-PE' => array(\n 'name' => 'Quechua (Peru)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'h:i a',\n 'dateTimeFormat' => 'd/m/Y h:i a'\n ),\n 'ro' => array(\n 'name' => 'Romanian',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'ro-MD' => array(\n 'name' => 'Romanian (Moldova)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'ro-RO' => array(\n 'name' => 'Romanian (Romania)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'rm' => array(\n 'name' => 'Romansh',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'rm-CH' => array(\n 'name' => 'Romansh (Switzerland)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'rof' => array(\n 'name' => 'Rombo',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'rof-TZ' => array(\n 'name' => 'Rombo (Tanzania)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'rn' => array(\n 'name' => 'Rundi',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'rn-BI' => array(\n 'name' => 'Rundi (Burundi)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'ru' => array(\n 'name' => 'Russian',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd.m.Y G:i'\n ),\n 'ru-BY' => array(\n 'name' => 'Russian (Belarus)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd.m.Y G:i'\n ),\n 'ru-KG' => array(\n 'name' => 'Russian (Kyrgyzstan)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd.m.Y G:i'\n ),\n 'ru-KZ' => array(\n 'name' => 'Russian (Kazakhstan)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd.m.Y G:i'\n ),\n 'ru-MD' => array(\n 'name' => 'Russian (Moldova)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd.m.Y G:i'\n ),\n 'ru-RU' => array(\n 'name' => 'Russian (Russia)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd.m.Y G:i'\n ),\n 'ru-UA' => array(\n 'name' => 'Russian (Ukraine)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'rwk' => array(\n 'name' => 'Rwa',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'rwk-TZ' => array(\n 'name' => 'Rwa (Tanzania)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'ssy' => array(\n 'name' => 'Saho',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'ssy-ER' => array(\n 'name' => 'Saho (Eritrea)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'sah' => array(\n 'name' => 'Sakha',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd.m.Y G:i'\n ),\n 'sah-RU' => array(\n 'name' => 'Sakha (Russia)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd.m.Y G:i'\n ),\n 'saq' => array(\n 'name' => 'Samburu',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'saq-KE' => array(\n 'name' => 'Samburu (Kenya)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'smn' => array(\n 'name' => 'Sami, Inari',\n 'dateFormat' => 'j.n.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j.n.Y G:i'\n ),\n 'smn-FI' => array(\n 'name' => 'Sami, Inari (Finland)',\n 'dateFormat' => 'j.n.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j.n.Y G:i'\n ),\n 'smj' => array(\n 'name' => 'Sami, Lule',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'smj-NO' => array(\n 'name' => 'Sami, Lule (Norway)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'smj-SE' => array(\n 'name' => 'Sami, Lule (Sweden)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'se' => array(\n 'name' => 'Sami, Northern',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'se-FI' => array(\n 'name' => 'Sami, Northern (Finland)',\n 'dateFormat' => 'j.n.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j.n.Y G:i'\n ),\n 'se-NO' => array(\n 'name' => 'Sami, Northern (Norway)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'se-SE' => array(\n 'name' => 'Sami, Northern (Sweden)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'sms' => array(\n 'name' => 'Sami, Skolt',\n 'dateFormat' => 'j.n.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j.n.Y G:i'\n ),\n 'sms-FI' => array(\n 'name' => 'Sami, Skolt (Finland)',\n 'dateFormat' => 'j.n.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j.n.Y G:i'\n ),\n 'sma' => array(\n 'name' => 'Sami, Southern',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'sma-NO' => array(\n 'name' => 'Sami, Southern (Norway)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'sma-SE' => array(\n 'name' => 'Sami, Southern (Sweden)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'sg' => array(\n 'name' => 'Sango',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'sg-CF' => array(\n 'name' => 'Sango (Central African Republic)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'sbp' => array(\n 'name' => 'Sangu',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'sbp-TZ' => array(\n 'name' => 'Sangu (Tanzania)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'sa' => array(\n 'name' => 'Sanskrit',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'sa-IN' => array(\n 'name' => 'Sanskrit (India)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'gd' => array(\n 'name' => 'Scottish Gaelic',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'gd-GB' => array(\n 'name' => 'Scottish Gaelic (United Kingdom)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'seh' => array(\n 'name' => 'Sena',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'seh-MZ' => array(\n 'name' => 'Sena (Mozambique)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'sr' => array(\n 'name' => 'Serbian',\n 'dateFormat' => 'j.n.Y.',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j.n.Y. H:i'\n ),\n 'sr-Cyrl' => array(\n 'name' => 'Serbian (Cyrillic)',\n 'dateFormat' => 'd.m.Y.',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd.m.Y. G:i'\n ),\n 'sr-Cyrl-BA' => array(\n 'name' => 'Serbian (Cyrillic, Bosnia and Herzegovina)',\n 'dateFormat' => 'j.n.Y.',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j.n.Y. G:i'\n ),\n 'sr-Cyrl-XK' => array(\n 'name' => 'Serbian (Cyrillic, Kosovo)',\n 'dateFormat' => 'j.n.Y.',\n 'timeFormat' => 'H.i',\n 'dateTimeFormat' => 'j.n.Y. H.i'\n ),\n 'sr-Cyrl-ME' => array(\n 'name' => 'Serbian (Cyrillic, Montenegro)',\n 'dateFormat' => 'j.n.Y.',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j.n.Y. G:i'\n ),\n 'sr-Cyrl-CS' => array(\n 'name' => 'Serbian (Cyrillic, Serbia and Montenegro (Former))',\n 'dateFormat' => 'j.n.Y.',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j.n.Y. G:i'\n ),\n 'sr-Cyrl-RS' => array(\n 'name' => 'Serbian (Cyrillic, Serbia)',\n 'dateFormat' => 'd.m.Y.',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd.m.Y. G:i'\n ),\n 'sr-Latn' => array(\n 'name' => 'Serbian (Latin)',\n 'dateFormat' => 'j.n.Y.',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j.n.Y. H:i'\n ),\n 'sr-Latn-BA' => array(\n 'name' => 'Serbian (Latin, Bosnia and Herzegovina)',\n 'dateFormat' => 'j.n.Y.',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j.n.Y. H:i'\n ),\n 'sr-Latn-XK' => array(\n 'name' => 'Serbian (Latin, Kosovo)',\n 'dateFormat' => 'j.n.Y.',\n 'timeFormat' => 'H.i',\n 'dateTimeFormat' => 'j.n.Y. H.i'\n ),\n 'sr-Latn-ME' => array(\n 'name' => 'Serbian (Latin, Montenegro)',\n 'dateFormat' => 'j.n.Y.',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j.n.Y. H:i'\n ),\n 'sr-Latn-CS' => array(\n 'name' => 'Serbian (Latin, Serbia and Montenegro (Former))',\n 'dateFormat' => 'j.n.Y.',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j.n.Y. G:i'\n ),\n 'sr-Latn-RS' => array(\n 'name' => 'Serbian (Latin, Serbia)',\n 'dateFormat' => 'j.n.Y.',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j.n.Y. H:i'\n ),\n 'nso' => array(\n 'name' => 'Sesotho sa Leboa',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'nso-ZA' => array(\n 'name' => 'Sesotho sa Leboa (South Africa)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'tn' => array(\n 'name' => 'Setswana',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'tn-BW' => array(\n 'name' => 'Setswana (Botswana)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'tn-ZA' => array(\n 'name' => 'Setswana (South Africa)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'ksb' => array(\n 'name' => 'Shambala',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'ksb-TZ' => array(\n 'name' => 'Shambala (Tanzania)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'sn' => array(\n 'name' => 'Shona',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'sn-Latn' => array(\n 'name' => 'Shona (Latin)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'sn-Latn-ZW' => array(\n 'name' => 'Shona (Latin, Zimbabwe)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'sd' => array(\n 'name' => 'Sindhi',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'sd-Arab' => array(\n 'name' => 'Sindhi (Arabic)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'sd-Arab-PK' => array(\n 'name' => 'Sindhi (Arabic, Islamic Republic of Pakistan)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'sd-Deva' => array(\n 'name' => 'Sindhi (Devanagari)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd/m/Y G:i'\n ),\n 'sd-Deva-IN' => array(\n 'name' => 'Sindhi (Devanagari, India)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd/m/Y G:i'\n ),\n 'si' => array(\n 'name' => 'Sinhala',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H.i',\n 'dateTimeFormat' => 'Y-m-d H.i'\n ),\n 'si-LK' => array(\n 'name' => 'Sinhala (Sri Lanka)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H.i',\n 'dateTimeFormat' => 'Y-m-d H.i'\n ),\n 'ss' => array(\n 'name' => 'siSwati',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'ss-ZA' => array(\n 'name' => 'siSwati (South Africa)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'ss-SZ' => array(\n 'name' => 'siSwati (Swaziland)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'sk' => array(\n 'name' => 'Slovak',\n 'dateFormat' => 'j.n.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j.n.Y G:i'\n ),\n 'sk-SK' => array(\n 'name' => 'Slovak (Slovakia)',\n 'dateFormat' => 'j.n.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j.n.Y G:i'\n ),\n 'sl' => array(\n 'name' => 'Slovenian',\n 'dateFormat' => 'j. m. Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j. m. Y H:i'\n ),\n 'sl-SI' => array(\n 'name' => 'Slovenian (Slovenia)',\n 'dateFormat' => 'j. m. Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j. m. Y H:i'\n ),\n 'so' => array(\n 'name' => 'Somali',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'so-DJ' => array(\n 'name' => 'Somali (Djibouti)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'so-ET' => array(\n 'name' => 'Somali (Ethiopia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'so-KE' => array(\n 'name' => 'Somali (Kenya)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'so-SO' => array(\n 'name' => 'Somali (Somalia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'xog' => array(\n 'name' => 'Soga',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'xog-UG' => array(\n 'name' => 'Soga (Uganda)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'st' => array(\n 'name' => 'Sotho',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'st-LS' => array(\n 'name' => 'Sotho (Lesotho)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'st-ZA' => array(\n 'name' => 'Sotho (South Africa)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'nr' => array(\n 'name' => 'South Ndebele',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'nr-ZA' => array(\n 'name' => 'South Ndebele (South Africa)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'es' => array(\n 'name' => 'Spanish',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd/m/Y G:i'\n ),\n 'es-AR' => array(\n 'name' => 'Spanish (Argentina)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'es-VE' => array(\n 'name' => 'Spanish (Bolivarian Republic of Venezuela)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i a',\n 'dateTimeFormat' => 'j/n/Y g:i a'\n ),\n 'es-BO' => array(\n 'name' => 'Spanish (Bolivia)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'es-CL' => array(\n 'name' => 'Spanish (Chile)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd-m-Y G:i'\n ),\n 'es-CO' => array(\n 'name' => 'Spanish (Colombia)',\n 'dateFormat' => 'j/m/Y',\n 'timeFormat' => 'g:i a',\n 'dateTimeFormat' => 'j/m/Y g:i a'\n ),\n 'es-CR' => array(\n 'name' => 'Spanish (Costa Rica)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'es-CU' => array(\n 'name' => 'Spanish (Cuba)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'es-DO' => array(\n 'name' => 'Spanish (Dominican Republic)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i a',\n 'dateTimeFormat' => 'j/n/Y g:i a'\n ),\n 'es-EC' => array(\n 'name' => 'Spanish (Ecuador)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j/n/Y G:i'\n ),\n 'es-SV' => array(\n 'name' => 'Spanish (El Salvador)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'es-GQ' => array(\n 'name' => 'Spanish (Equatorial Guinea)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j/n/Y G:i'\n ),\n 'es-GT' => array(\n 'name' => 'Spanish (Guatemala)',\n 'dateFormat' => 'j/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/m/Y H:i'\n ),\n 'es-HN' => array(\n 'name' => 'Spanish (Honduras)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'es-419' => array(\n 'name' => 'Spanish (Latin America)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'es-MX' => array(\n 'name' => 'Spanish (Mexico)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'h:i a',\n 'dateTimeFormat' => 'd/m/Y h:i a'\n ),\n 'es-NI' => array(\n 'name' => 'Spanish (Nicaragua)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'es-PA' => array(\n 'name' => 'Spanish (Panama)',\n 'dateFormat' => 'm/d/Y',\n 'timeFormat' => 'g:i a',\n 'dateTimeFormat' => 'm/d/Y g:i a'\n ),\n 'es-PY' => array(\n 'name' => 'Spanish (Paraguay)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'es-PE' => array(\n 'name' => 'Spanish (Peru)',\n 'dateFormat' => 'j/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/m/Y H:i'\n ),\n 'es-PH' => array(\n 'name' => 'Spanish (Philippines)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i a',\n 'dateTimeFormat' => 'j/n/Y g:i a'\n ),\n 'es-PR' => array(\n 'name' => 'Spanish (Puerto Rico)',\n 'dateFormat' => 'm/d/Y',\n 'timeFormat' => 'g:i a',\n 'dateTimeFormat' => 'm/d/Y g:i a'\n ),\n 'es-ES' => array(\n 'name' => 'Spanish (Spain)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd/m/Y G:i'\n ),\n 'es-US' => array(\n 'name' => 'Spanish (United States)',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'es-UY' => array(\n 'name' => 'Spanish (Uruguay)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j/n/Y G:i'\n ),\n 'zgh' => array(\n 'name' => 'Standard Morrocan Tamazight',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'zgh-Tfng' => array(\n 'name' => 'Standard Morrocan Tamazight (Tifinagh)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'zgh-Tfng-MA' => array(\n 'name' => 'Standard Morrocan Tamazight (Tifinagh, Morocco)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'sv' => array(\n 'name' => 'Swedish',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'sv-AX' => array(\n 'name' => 'Swedish (Åland Islands)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'sv-FI' => array(\n 'name' => 'Swedish (Finland)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'sv-SE' => array(\n 'name' => 'Swedish (Sweden)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'gsw' => array(\n 'name' => 'Swiss German',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'gsw-FR' => array(\n 'name' => 'Swiss German (France)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'gsw-LI' => array(\n 'name' => 'Swiss German (Liechtenstein)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'gsw-CH' => array(\n 'name' => 'Swiss German (Switzerland)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'syr' => array(\n 'name' => 'Syriac',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'h:i A',\n 'dateTimeFormat' => 'd/m/Y h:i A'\n ),\n 'syr-SY' => array(\n 'name' => 'Syriac (Syria)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'h:i A',\n 'dateTimeFormat' => 'd/m/Y h:i A'\n ),\n 'shi' => array(\n 'name' => 'Tachelhit',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'shi-Latn' => array(\n 'name' => 'Tachelhit (Latin)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'shi-Latn-MA' => array(\n 'name' => 'Tachelhit (Latin, Morocco)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'shi-Tfng' => array(\n 'name' => 'Tachelhit (Tifinagh)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'shi-Tfng-MA' => array(\n 'name' => 'Tachelhit (Tifinagh, Morocco)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'tg' => array(\n 'name' => 'Tajik',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'tg-Cyrl' => array(\n 'name' => 'Tajik (Cyrillic)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'tg-Cyrl-TJ' => array(\n 'name' => 'Tajik (Cyrillic, Tajikistan)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'ta' => array(\n 'name' => 'Tamil',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'ta-IN' => array(\n 'name' => 'Tamil (India)',\n 'dateFormat' => 'd-m-Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-Y H:i'\n ),\n 'ta-MY' => array(\n 'name' => 'Tamil (Malaysia)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'A g:i',\n 'dateTimeFormat' => 'j/n/Y a g:i'\n ),\n 'ta-SG' => array(\n 'name' => 'Tamil (Singapore)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'A g:i',\n 'dateTimeFormat' => 'j/n/Y a g:i'\n ),\n 'ta-LK' => array(\n 'name' => 'Tamil (Sri Lanka)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'tt' => array(\n 'name' => 'Tatar',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'tt-RU' => array(\n 'name' => 'Tatar (Russia)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.Y H:i'\n ),\n 'te' => array(\n 'name' => 'Telugu',\n 'dateFormat' => 'd-m-y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-y H:i'\n ),\n 'te-IN' => array(\n 'name' => 'Telugu (India)',\n 'dateFormat' => 'd-m-y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd-m-y H:i'\n ),\n 'teo' => array(\n 'name' => 'Teso',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'teo-KE' => array(\n 'name' => 'Teso (Kenya)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'teo-UG' => array(\n 'name' => 'Teso (Uganda)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'th' => array(\n 'name' => 'Thai',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j/n/Y G:i'\n ),\n 'th-TH' => array(\n 'name' => 'Thai (Thailand)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j/n/Y G:i'\n ),\n 'dav' => array(\n 'name' => 'Taita',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'dav-KE' => array(\n 'name' => 'Taita (Kenya)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'twq' => array(\n 'name' => 'Tasawaq',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'twq-NE' => array(\n 'name' => 'Tasawaq (Niger)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'bo' => array(\n 'name' => 'Tibetan',\n 'dateFormat' => 'Y/n/j',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y/n/j H:i'\n ),\n 'bo-IN' => array(\n 'name' => 'Tibetan (India)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'Y-m-d g:i A'\n ),\n 'bo-CN' => array(\n 'name' => 'Tibetan (China)',\n 'dateFormat' => 'Y/n/j',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y/n/j H:i'\n ),\n 'tig' => array(\n 'name' => 'Tigre',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'tig-ER' => array(\n 'name' => 'Tigre (Eritrea)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'ti' => array(\n 'name' => 'Tigrinya',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'ti-ER' => array(\n 'name' => 'Tigrinya (Eritrea)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'ti-ET' => array(\n 'name' => 'Tigrinya (Ethiopia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'to' => array(\n 'name' => 'Tongan',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'to-TO' => array(\n 'name' => 'Tongan (Tonga)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/Y g:i A'\n ),\n 'ts' => array(\n 'name' => 'Tsonga',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'ts-ZA' => array(\n 'name' => 'Tsonga (South Africa)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'tr' => array(\n 'name' => 'Turkish',\n 'dateFormat' => 'j.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j.m.Y H:i'\n ),\n 'tr-CY' => array(\n 'name' => 'Turkish (Cyprus)',\n 'dateFormat' => 'j.m.Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j.m.Y g:i A'\n ),\n 'tr-TR' => array(\n 'name' => 'Turkish (Turkey)',\n 'dateFormat' => 'j.m.Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j.m.Y H:i'\n ),\n 'tk' => array(\n 'name' => 'Turkmen',\n 'dateFormat' => 'd.m.y ý.',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.y ý. H:i'\n ),\n 'tk-TM' => array(\n 'name' => 'Turkmen (Turkmenistan)',\n 'dateFormat' => 'd.m.y ý.',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd.m.y ý. H:i'\n ),\n 'uk' => array(\n 'name' => 'Ukrainian',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd.m.Y G:i'\n ),\n 'uk-UA' => array(\n 'name' => 'Ukrainian (Ukraine)',\n 'dateFormat' => 'd.m.Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd.m.Y G:i'\n ),\n 'hsb' => array(\n 'name' => 'Upper Sorbian',\n 'dateFormat' => 'j.n.Y',\n 'timeFormat' => 'G.i \\h\\o\\dź.',\n 'dateTimeFormat' => 'j.n.Y G.i \\h\\o\\dź.'\n ),\n 'hsb-DE' => array(\n 'name' => 'Upper Sorbian (Germany)',\n 'dateFormat' => 'j.n.Y',\n 'timeFormat' => 'G.i \\h\\o\\dź.',\n 'dateTimeFormat' => 'j.n.Y G.i \\h\\o\\dź.'\n ),\n 'ur' => array(\n 'name' => 'Urdu',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'ur-IN' => array(\n 'name' => 'Urdu (India)',\n 'dateFormat' => 'j/n/y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'j/n/y g:i A'\n ),\n 'ur-PK' => array(\n 'name' => 'Urdu (Islamic Republic of Pakistan)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'ug' => array(\n 'name' => 'Uyghur',\n 'dateFormat' => 'Y-n-j',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'Y-n-j G:i'\n ),\n 'ug-CN' => array(\n 'name' => 'Uyghur (China)',\n 'dateFormat' => 'Y-n-j',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'Y-n-j G:i'\n ),\n 'uz' => array(\n 'name' => 'Uzbek',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'uz-Cyrl' => array(\n 'name' => 'Uzbek (Cyrillic)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'uz-Cyrl-UZ' => array(\n 'name' => 'Uzbek (Cyrillic, Uzbekistan)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'uz-Latn' => array(\n 'name' => 'Uzbek (Latin)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'uz-Latn-UZ' => array(\n 'name' => 'Uzbek (Latin, Uzbekistan)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'uz-Arab' => array(\n 'name' => 'Uzbek (Perso-Arabic)',\n 'dateFormat' => 'd/m Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd/m Y G:i'\n ),\n 'uz-Arab-AF' => array(\n 'name' => 'Uzbek (Perso-Arabic, Afghanistan)',\n 'dateFormat' => 'd/m Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'd/m Y G:i'\n ),\n 'vai' => array(\n 'name' => 'Vai',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'vai-Latn' => array(\n 'name' => 'Vai (Latin)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'vai-Latn-LR' => array(\n 'name' => 'Vai (Latin, Liberia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'vai-Vaii' => array(\n 'name' => 'Vai (Vai)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'vai-Vaii-LR' => array(\n 'name' => 'Vai (Vai, Liberia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'ca-ES-valencia' => array(\n 'name' => 'Valencian (Spain)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'G:i',\n 'dateTimeFormat' => 'j/n/Y G:i'\n ),\n 've' => array(\n 'name' => 'Venda',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 've-ZA' => array(\n 'name' => 'Venda (South Africa)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'vi' => array(\n 'name' => 'Vietnamese',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'vi-VN' => array(\n 'name' => 'Vietnamese (Vietnam)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'vo' => array(\n 'name' => 'Volapük',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'vo-001' => array(\n 'name' => 'Volapük (World)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'vun' => array(\n 'name' => 'Vunjo',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'vun-TZ' => array(\n 'name' => 'Vunjo (Tanzania)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'wae' => array(\n 'name' => 'Walser',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'wae-CH' => array(\n 'name' => 'Walser (Switzerland)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'cy' => array(\n 'name' => 'Welsh',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'cy-GB' => array(\n 'name' => 'Welsh (United Kingdom)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'wal' => array(\n 'name' => 'Wolaytta',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'wal-ET' => array(\n 'name' => 'Wolaytta (Ethiopia)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'wo' => array(\n 'name' => 'Wolof',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'wo-SN' => array(\n 'name' => 'Wolof (Senegal)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'xh' => array(\n 'name' => 'Xhosa',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'xh-ZA' => array(\n 'name' => 'Xhosa (South Africa)',\n 'dateFormat' => 'Y-m-d',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'Y-m-d H:i'\n ),\n 'yav' => array(\n 'name' => 'Yangben',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'yav-CM' => array(\n 'name' => 'Yangben (Cameroon)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'ii' => array(\n 'name' => 'Yi',\n 'dateFormat' => 'Y/n/j',\n 'timeFormat' => 'A g:i',\n 'dateTimeFormat' => 'Y/n/j A g:i'\n ),\n 'ii-CN' => array(\n 'name' => 'Yi (China)',\n 'dateFormat' => 'Y/n/j',\n 'timeFormat' => 'A g:i',\n 'dateTimeFormat' => 'Y/n/j A g:i'\n ),\n 'yi' => array(\n 'name' => 'Yiddish',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'yi-001' => array(\n 'name' => 'Yiddish (World)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'yo' => array(\n 'name' => 'Yoruba',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'yo-BJ' => array(\n 'name' => 'Yoruba (Benin)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'd/m/Y H:i'\n ),\n 'yo-NG' => array(\n 'name' => 'Yoruba (Nigeria)',\n 'dateFormat' => 'd/m/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'd/m/Y g:i A'\n ),\n 'dje' => array(\n 'name' => 'Zarma',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'dje-NE' => array(\n 'name' => 'Zarma (Niger)',\n 'dateFormat' => 'j/n/Y',\n 'timeFormat' => 'H:i',\n 'dateTimeFormat' => 'j/n/Y H:i'\n ),\n 'zu' => array(\n 'name' => 'Zulu',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n ),\n 'zu-ZA' => array(\n 'name' => 'Zulu (South Africa)',\n 'dateFormat' => 'n/j/Y',\n 'timeFormat' => 'g:i A',\n 'dateTimeFormat' => 'n/j/Y g:i A'\n )\n );\n }", "title": "" }, { "docid": "a3067384bf9b271965e3d21e3b60a6a3", "score": "0.48562402", "text": "function getMessageMap() {\n $errors = file(\"errors/\".$this->language.\".txt\");\n foreach($errors as $error) {\n //convert string content to list\n list($key,$value) = explode(\",\",$error,2);\n // push the value to array\n $errorArray[$key] = $value;\n }\n // return value from array according to error number\n return $errorArray[$this->errorcode];\n }", "title": "" }, { "docid": "cda5f6da065bcc83c747bd7090c1d7b3", "score": "0.48514897", "text": "function L($key)\n{\n\treturn Lang::get('weekafe.' . strtolower($key));\n}", "title": "" }, { "docid": "e12f00ab662b5754ac3a40328df6650b", "score": "0.48421913", "text": "protected function _getStepsNumberAndLocaleKeys() {\n\t\treturn array(\n\t\t\t1 => 'author.submit.start',\n\t\t\t2 => 'author.submit.upload',\n\t\t\t3 => 'author.submit.metadata',\n\t\t\t4 => 'author.submit.confirmation'\n\t\t);\n\t}", "title": "" }, { "docid": "6c40b2556e8f49e2f6b1f63f5e053e02", "score": "0.48388448", "text": "public function mappings()\n {\n return [\n 'fa' => [9],\n 'roster' => [1,2,3,4,5,6,7,8],\n 'all' => [1,2,3,4,5,6,7,8,9]\n ];\n }", "title": "" }, { "docid": "c58896c4caaafc57ec9d02b862e73eb4", "score": "0.4828146", "text": "function location_province_list_pg() {\n return array('BV' => \"Bougainville\",\n 'CE' => \"Central\",\n 'CH' => \"Chimbu\",\n 'EH' => \"Eastern Highlands\",\n 'EB' => \"East New Britain\",\n 'ES' => \"East Sepik\",\n 'EN' => \"Enga\",\n 'GU' => \"Gulf\",\n 'MD' => \"Madang\",\n 'MN' => \"Manus\",\n 'MB' => \"Milne Bay\",\n 'MR' => \"Morobe\",\n 'NC' => \"National Capital\",\n 'NI' => \"New Ireland\",\n 'NO' => \"Northern\",\n 'SA' => \"Sandaun\",\n 'SH' => \"Southern Highlands\",\n 'WE' => \"Western\",\n 'WH' => \"Western Highlands\",\n 'WB' => \"West New Britain\");\n}", "title": "" }, { "docid": "3790f2d310e63f0f33255e2beefed425", "score": "0.4818257", "text": "public function labelsFromTrans($key);", "title": "" }, { "docid": "a3a8f2d6bddc23079878380bc12e7b96", "score": "0.48065284", "text": "function GetRegionCodes()\n {\n $WPST_SDIF_REGION_CODES = array(\n 'Select Region' => WPST_NULL_STRING\n ,WPST_SDIF_REGION_CODE_REGION_1_LABEL => WPST_SDIF_REGION_CODE_REGION_1_VALUE\n ,WPST_SDIF_REGION_CODE_REGION_2_LABEL => WPST_SDIF_REGION_CODE_REGION_2_VALUE\n ,WPST_SDIF_REGION_CODE_REGION_3_LABEL => WPST_SDIF_REGION_CODE_REGION_3_VALUE\n ,WPST_SDIF_REGION_CODE_REGION_4_LABEL => WPST_SDIF_REGION_CODE_REGION_4_VALUE\n ,WPST_SDIF_REGION_CODE_REGION_5_LABEL => WPST_SDIF_REGION_CODE_REGION_5_VALUE\n ,WPST_SDIF_REGION_CODE_REGION_6_LABEL => WPST_SDIF_REGION_CODE_REGION_6_VALUE\n ,WPST_SDIF_REGION_CODE_REGION_7_LABEL => WPST_SDIF_REGION_CODE_REGION_7_VALUE\n ,WPST_SDIF_REGION_CODE_REGION_8_LABEL => WPST_SDIF_REGION_CODE_REGION_8_VALUE\n ,WPST_SDIF_REGION_CODE_REGION_9_LABEL => WPST_SDIF_REGION_CODE_REGION_9_VALUE\n ,WPST_SDIF_REGION_CODE_REGION_10_LABEL => WPST_SDIF_REGION_CODE_REGION_10_VALUE\n ,WPST_SDIF_REGION_CODE_REGION_11_LABEL => WPST_SDIF_REGION_CODE_REGION_11_VALUE\n ,WPST_SDIF_REGION_CODE_REGION_12_LABEL => WPST_SDIF_REGION_CODE_REGION_12_VALUE\n ,WPST_SDIF_REGION_CODE_REGION_13_LABEL => WPST_SDIF_REGION_CODE_REGION_13_VALUE\n ,WPST_SDIF_REGION_CODE_REGION_14_LABEL => WPST_SDIF_REGION_CODE_REGION_14_VALUE\n ) ;\n\n return $WPST_SDIF_REGION_CODES ;\n }", "title": "" }, { "docid": "9508773188398f1125de62167bbfef65", "score": "0.4803932", "text": "public static function getLabels()\n {\n return [\n self::CUSTOM => 'Custom',\n self::WEEKLY => 'Weekly',\n ];\n }", "title": "" }, { "docid": "ef36b327a5a748b84108163ace28cccc", "score": "0.48030564", "text": "public static function getResponseLanguageMap()\n {\n return ArrayData::create([\n 'json' => 'JSON',\n 'html' => 'XML'\n ]);\n }", "title": "" }, { "docid": "60f963d4f66ad8e482caccab5fd84465", "score": "0.4802397", "text": "function getLocaleFieldNames() {\n\t\treturn $this->registrationTypeDao->getLocaleFieldNames();\n\t}", "title": "" }, { "docid": "260cea0a0c6c033f4914b6d78747e004", "score": "0.48014253", "text": "protected function getRegionMappingForAustria()\n {\n return array(\n 'WI' => '9',\n 'NO' => '3',\n 'OO' => '4',\n 'SB' => '5',\n 'KN' => '2',\n 'ST' => '6',\n 'TI' => '7',\n 'BL' => '1',\n 'VB' => '8'\n );\n }", "title": "" }, { "docid": "c471cfa8abfbd8743720341c260b85a6", "score": "0.4795682", "text": "function lang($phrase)\n\t{\n // $stmt->execute();\n // $rows=$stmt->fetch();\n\n\t\tstatic $lang=array(\n\n\t\t\t\"ADMIN\"=>\"Home\",\n\t\t\t\"CATEGORIES\"=>\"Categories\",\n\t\t\t\"ITEMS\"=>\"items\",\n\t\t\t\"MEMBERS\"=>\"Members\",\n\t\t\t\"STATISTICS\"=>\"Statistics\",\n\t\t\t\"COMMENTS\"=>\"Comments\",\n\t\t\t\"LOGS\"=>\"Logs\",\n\t\t\t\"NAME\"=>\"Asmaa\",\n\t\t\t\"EDIT\"=>\"Edit Profile\",\n\t\t\t\"SETTING\"=>\"Settings\",\n\t\t\t\"LOGOUT\"=>\"Log Out\"\n\t\t\t\n\n\t\t);\n\n\t\treturn $lang[$phrase];\n\t}", "title": "" }, { "docid": "5aed7056d4a50ab9243cf7371da56a78", "score": "0.47954282", "text": "function getLocaleFieldNames() {\n\t\treturn array('name', 'description');\n\t}", "title": "" }, { "docid": "b4b34f641d54614301c7112f2025b0f4", "score": "0.4790212", "text": "protected function getMap()\n {\n $prefix = 'MCA';\n \n return $this->getPrefixedIdentityMap($prefix);\n }", "title": "" }, { "docid": "5561c4f273b9b0846e7d9ecd6fa2ba53", "score": "0.47844085", "text": "public static function map() {\n\t\t\treturn array(\n\t\t\t\t'name' => esc_html__( 'Digging Deeper', 'locale' ),\n\t\t\t\t'description' => esc_html__( 'Displays the Digging Deeper Content', 'locale' ),\n\t\t\t\t'base' => 'CBC_Digging_Deeper_Module',\n\t\t\t\t'params' => array(\n\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t'type' => 'textarea_html',\n\t\t\t\t\t\t\t\t'heading' => __( 'Description', 'total' ),\n\t\t\t\t\t\t\t\t'param_name' => 'content',\n\t\t\t\t\t\t\t\t'admin_label' => false,\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\t),\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "19ef8d6e013bae4aa8f943b771466125", "score": "0.47843373", "text": "public function toArray()\n {\n return [\n self::LEVEL_WARN => __('Error + Warn'),\n self::LEVEL_ERROR => __('Only Error'),\n self::LEVEL_ALL => __('Error + Warn + Debug Mode')\n ];\n }", "title": "" }, { "docid": "6ef8a30bc13e95c523a0f4c63deb7418", "score": "0.47821283", "text": "protected function _getNiceLabelMap()\n {\n if (Mage::getStoreConfig(\"watermarkplus_options/settings/use_filename_map_for_labels\")) {\n $map = Mage::getStoreConfig(\"watermarkplus_options/settings/map\");\n } else {\n $map = Mage::getStoreConfig(\"watermarkplus_options/settings/label_map\");\n }\n return $map;\n }", "title": "" }, { "docid": "7ef6c42e834409a639b35df9379497d6", "score": "0.47796565", "text": "function da_get_locale()\r\n {\r\n $Results = array(\r\n 'status' => true,\r\n 'payload' => array(\r\n 'DEEPANALYTICS_NO_DATA_ERROR' => \"No Data Available\",\r\n 'DEEPANALYTICS_GENERIC_ERROR' => \"DeepAnalytics Error (%s)\",\r\n 'DEEPANALYTICS_MONTHLY_USAGE' => \"Monthly Usage\",\r\n 'DEEPANALYTICS_DAILY_USAGE' => \"Daily Usage\",\r\n 'DEEPANALYTICS_DATA_SELECTOR' => \"Data\",\r\n 'DEEPANALYTICS_DATE_SELECTOR' => \"Date\",\r\n 'DEEPANALYTICS_DATA_ALL' => \"All\"\r\n )\r\n );\r\n\r\n Response::setResponseType(\"application/json\");\r\n print(json_encode($Results, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE));\r\n Response::finishRequest();\r\n exit(0);\r\n }", "title": "" }, { "docid": "8187ed0393f686bc2f81501ec0cb25e3", "score": "0.47766557", "text": "public function getJedLocaleData( $domain ) {\n\t\t$translations = get_translations_for_domain( $domain );\n\n\t\t$locale = [\n\t\t\t'' => [\n\t\t\t\t'domain' => $domain,\n\t\t\t\t'lang' => is_admin() && function_exists( 'get_user_locale' ) ? get_user_locale() : get_locale(),\n\t\t\t],\n\t\t];\n\n\t\tif ( ! empty( $translations->headers['Plural-Forms'] ) ) {\n\t\t\t$locale['']['plural_forms'] = $translations->headers['Plural-Forms'];\n\t\t}\n\n\t\tforeach ( $translations->entries as $msgid => $entry ) {\n\t\t\t$locale[ $msgid ] = $entry->translations;\n\t\t}\n\n\t\treturn $locale;\n\t}", "title": "" }, { "docid": "11724f1213d52b483d75b1a6f4cdca50", "score": "0.47733986", "text": "public static function defaults()\n {\n return [\n self::YUUKYU_1 => '有給',\n self::YUUKYU_2 => '有休',\n self::ZENKYUU_1 => '前給',\n self::ZENKYUU_2 => '前休',\n self::GOKYUU_1 => '後給',\n self::GOKYUU_2 => '後休',\n self::JIYUU => '時有',\n self::HANKYUU_1 => '半給',\n self::HANKYUU_2 => '半休',\n ];\n }", "title": "" }, { "docid": "cd270105117e4b0a4c743e2e71a9a481", "score": "0.47653964", "text": "public function cacheKeyComponent()\n {\n return 'fluentlocale-' . FluentState::singleton()->getLocale();\n }", "title": "" }, { "docid": "a392b04c0f997dac1d62a6f4fdbb9527", "score": "0.47601193", "text": "public function getResourceKey()\n {\n if (isset($this->resourceKey)) {\n $resourceKey = $this->resourceKey;\n } else {\n $reflect = new ReflectionClass($this);\n $resourceKey = strtolower(Pluralizer::plural($reflect->getShortName()));\n }\n\n return $resourceKey;\n }", "title": "" }, { "docid": "88659c55208dc93b77a71607449e9d7f", "score": "0.47515443", "text": "public static function map() {\n\t\t\treturn array(\n\t\t\t\t'name' => esc_html__( 'Bible Verse', 'locale' ),\n\t\t\t\t'description' => esc_html__( 'Displays the bible verse of choice', 'locale' ),\n\t\t\t\t'base' => 'CBC_Verse_Module',\n\t\t\t\t'params' => array(\n\n\t\t\t\t\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t\t\t\t'heading' => __( 'Bible Verse Title', 'total' ),\n\t\t\t\t\t\t\t\t'param_name' => 'label',\n\t\t\t\t\t\t\t\t'admin_label' => false,\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t'type' => 'textarea',\n\t\t\t\t\t\t\t\t'heading' => __( 'Bible Verse', 'total' ),\n\t\t\t\t\t\t\t\t'param_name' => 'description',\n\t\t\t\t\t\t\t\t'admin_label' => false,\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\t),\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "e1bcca6619407eff809ad3f6ea1864a3", "score": "0.47460943", "text": "public static function getMap()\n\t{\n\t\treturn array(\n\t\t\t'IBLOCK_ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t\t'primary' => true,\n\t\t\t\t'title' => Loc::getMessage('IBLOCK_SECTION_PROPERTY_ENTITY_IBLOCK_ID_FIELD'),\n\t\t\t),\n\t\t\t'SECTION_ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t\t'primary' => true,\n\t\t\t\t'title' => Loc::getMessage('IBLOCK_SECTION_PROPERTY_ENTITY_SECTION_ID_FIELD'),\n\t\t\t),\n\t\t\t'PROPERTY_ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t\t'primary' => true,\n\t\t\t\t'title' => Loc::getMessage('IBLOCK_SECTION_PROPERTY_ENTITY_PROPERTY_ID_FIELD'),\n\t\t\t),\n\t\t\t'SMART_FILTER' => array(\n\t\t\t\t'data_type' => 'boolean',\n\t\t\t\t'values' => array('N', 'Y'),\n\t\t\t\t'title' => Loc::getMessage('IBLOCK_SECTION_PROPERTY_ENTITY_SMART_FILTER_FIELD'),\n\t\t\t),\n\t\t\t'IBLOCK' => array(\n\t\t\t\t'data_type' => 'Bitrix\\Iblock\\Iblock',\n\t\t\t\t'reference' => array('=this.IBLOCK_ID' => 'ref.ID'),\n\t\t\t),\n\t\t\t'PROPERTY' => array(\n\t\t\t\t'data_type' => 'Bitrix\\Iblock\\Property',\n\t\t\t\t'reference' => array('=this.PROPERTY_ID' => 'ref.ID'),\n\t\t\t),\n\t\t\t'SECTION' => array(\n\t\t\t\t'data_type' => 'Bitrix\\Iblock\\Section',\n\t\t\t\t'reference' => array('=this.SECTION_ID' => 'ref.ID'),\n\t\t\t),\n\t\t);\n\t}", "title": "" }, { "docid": "8321d1d1c2dd88e39756bebed542aee9", "score": "0.473499", "text": "public function getLocale();", "title": "" }, { "docid": "8321d1d1c2dd88e39756bebed542aee9", "score": "0.473499", "text": "public function getLocale();", "title": "" }, { "docid": "8321d1d1c2dd88e39756bebed542aee9", "score": "0.473499", "text": "public function getLocale();", "title": "" }, { "docid": "8321d1d1c2dd88e39756bebed542aee9", "score": "0.473499", "text": "public function getLocale();", "title": "" }, { "docid": "95540cd5c63f0188997985e8315466c1", "score": "0.47328404", "text": "function getLocaleFieldNames() {\n\t\t$sectionDao = DAORegistry::getDAO('ImmersionSectionDAO');\n\t\treturn $sectionDao->getLocaleFieldNames();\n\t}", "title": "" }, { "docid": "7f75aa70276b2121e58efd68ef79d161", "score": "0.4732285", "text": "public static function getMap()\n\t{\n\t\treturn array(\n\t\t\t'IBLOCK_ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t\t'primary' => true,\n\t\t\t\t'title' => Loc::getMessage('IBLOCK_SITE_ENTITY_IBLOCK_ID_FIELD'),\n\t\t\t),\n\t\t\t'SITE_ID' => array(\n\t\t\t\t'data_type' => 'string',\n\t\t\t\t'primary' => true,\n\t\t\t\t'validation' => array(__CLASS__, 'validateSiteId'),\n\t\t\t\t'title' => Loc::getMessage('IBLOCK_SITE_ENTITY_SITE_ID_FIELD'),\n\t\t\t),\n\t\t\t'IBLOCK' => array(\n\t\t\t\t'data_type' => 'Bitrix\\Iblock\\Iblock',\n\t\t\t\t'reference' => array('=this.IBLOCK_ID' => 'ref.ID')\n\t\t\t),\n\t\t\t'SITE' => array(\n\t\t\t\t'data_type' => 'Bitrix\\Main\\Site',\n\t\t\t\t'reference' => array('=this.SITE_ID' => 'ref.LID'),\n\t\t\t),\n\t\t);\n\t}", "title": "" }, { "docid": "068dc07232ada850428321739436f18d", "score": "0.47248578", "text": "protected function getRegionsMappingForLatvia()\n {\n return array(\n 'Ādažu novads' => 'LV',\n 'Aglonas novads' => '001',\n 'Aizputes novads' => '003',\n 'Aknīstes novads' => '004',\n 'Alojas novads' => '005',\n 'Alsungas novads' => '006',\n 'Amatas novads' => '008',\n 'Apes novads' => '009',\n 'Auces novads' => '010',\n 'Babītes novads' => '012',\n 'Baldones novads' => '013',\n 'Baltinavas novads' => '014',\n 'Beverīnas novads' => '017',\n 'Brocēnu novads' => '018',\n 'Burtnieku novads' => '019',\n 'Carnikavas novads' => '020',\n 'Cesvaines novads' => '021',\n 'Ciblas novads' => '023',\n 'Dagdas novads' => '024',\n 'Dundagas novads' => '027',\n 'Durbes novads' => '028',\n 'Engures novads' => '029',\n 'Ērgļu novads' => 'LV',\n 'Garkalnes novads' => '031',\n 'Grobiņas novads' => '032',\n 'Iecavas novads' => '034',\n 'Ikšķiles novads' => '035',\n 'Ilūkstes novads' => '036',\n 'Inčukalna novads' => '037',\n 'Jaunjelgavas novads' => '038',\n 'Jaunpiebalgas novads' => '039',\n 'Jaunpils novads' => '040',\n 'Jēkabpils' => '042',\n 'Kandavas novads' => '043',\n 'Kārsavas novads' => 'LV',\n 'Ķeguma novads' => 'LV',\n 'Ķekavas novads' => 'LV',\n 'Kokneses novads' => '046',\n 'Krimuldas novads' => '048',\n 'Krustpils novads' => '049',\n 'Lielvārdes novads' => '053',\n 'Līgatnes novads' => 'LV',\n 'Līvānu novads' => '056',\n 'Lubānas novads' => '057',\n 'Mālpils novads' => '061',\n 'Mārupes novads' => '062',\n 'Mazsalacas novads' => '060',\n 'Naukšēnu novads' => '064',\n 'Neretas novads' => '065',\n 'Nīcas novads' => '066',\n 'Olaines novads' => '068',\n 'Ozolnieku novads' => '069',\n 'Pārgaujas novads' => 'LV',\n 'Pāvilostas novads' => '070',\n 'Pļaviņu novads' => '072',\n 'Priekules novads' => '074',\n 'Priekuļu novads' => '075',\n 'Raunas novads' => '076',\n 'Riebiņu novads' => '078',\n 'Rojas novads' => '079',\n 'Ropažu novads' => '080',\n 'Rucavas novads' => '081',\n 'Rugāju novads' => '082',\n 'Rūjienas novads' => '084',\n 'Rundāles novads' => '083',\n 'Salacgrīvas novads' => '085',\n 'Salas novads' => '086',\n 'Salaspils novads' => '087',\n 'Saulkrastu novads' => '089',\n 'Sējas novads' => 'LV',\n 'Siguldas novads' => '091',\n 'Skrīveru novads' => '092',\n 'Skrundas novads' => '093',\n 'Smiltenes novads' => '094',\n 'Stopiņu novads' => '095',\n 'Strenču novads' => '096',\n 'Tērvetes novads' => '098',\n 'Vaiņodes novads' => '100',\n 'Valmiera' => 'LV',\n 'Varakļānu novads' => '102',\n 'Vārkavas novads' => 'LV',\n 'Vecpiebalgas novads' => '104',\n 'Vecumnieku novads' => '105',\n 'Viesītes novads' => '107',\n 'Viļakas novads' => '108',\n 'Viļānu novads' => '109',\n 'Zilupes novads' => '110'\n );\n }", "title": "" }, { "docid": "a21f27d809b813244a7a3a0e568f0e07", "score": "0.47163823", "text": "public function get()\n\t{\n\t\treturn \t[\n\t\t\t\t\t'roda_2'\t\t=> 'Roda 2',\n\t\t\t\t\t'roda_4'\t\t=> 'Roda 4',\n\t\t\t\t\t'roda_6'\t\t=> 'Roda 6',\n\t\t\t\t];\n\t}", "title": "" }, { "docid": "b11911ce86abdafaa14346f079b0911e", "score": "0.47077447", "text": "public static function getMap()\n\t{\n\t\t/*\n\t\t\tboolean (наследует ScalarField)\n\t\t\tdate (наследует ScalarField)\n\t\t\tdatetime (наследует DateField)\n\t\t\tenum (наследует ScalarField)\n\t\t\tfloat (наследует ScalarField)\n\t\t\tinteger (наследует ScalarField)\n\t\t\tstring (наследует ScalarField)\n\t\t\ttext (наследует StringField)\n\t\t */\n\t\treturn array(\n\t\t\t'ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t\t'primary' => true,\n\t\t\t\t'autocomplete' => true,\n\t\t\t\t'title' => Loc::getMessage('AOS_LM_ID'),\n\t\t\t),\n\t\t\t'NAME' => array(\n\t\t\t\t'data_type' => 'string',\n\t\t\t\t'title' => Loc::getMessage('AOS_LM_NAME'),\n\t\t\t),\n\t\t\t'VALUE' => array(\n\t\t\t\t'data_type' => 'text',\n\t\t\t\t'title' => Loc::getMessage('AOS_LM_VALUE'),\n\t\t\t),\n\t\t\t'VALUE_TYPE' => array(\n\t\t\t\t'data_type' => 'string',\n\t\t\t\t'title' => Loc::getMessage('AOS_LM_VALUE_TYPE'),\n\t\t\t),\n\t\t\t'DATE_MODIFY' => array(\n\t\t\t\t'data_type' => 'datetime',\n\t\t\t\t'title' => Loc::getMessage('AOS_LM_DATE_MODIFY'),\n\t\t\t),\n\t\t\t'MODIFIED_BY' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t\t'title' => Loc::getMessage('AOS_LM_MODIFIED_BY'),\n\t\t\t),\n\t\t);\n\t}", "title": "" }, { "docid": "3bd6f452466a9f6534b2fed1f58f1c24", "score": "0.47047362", "text": "public function getTypes()\n {\n return ['A' => 'A', 'DO' => 'DO', 'P' => 'P', 'L' => 'L', 'H' => 'H', 'S' => 'S', 'Time' => 'Time'];\n }", "title": "" }, { "docid": "9ca10aa6d205ee628c126bfcc97ffbe2", "score": "0.47037953", "text": "function getLocaleFieldNames() {\n\t\treturn array('title');\n\t}", "title": "" }, { "docid": "ce28544fced4d0c68488286bf87260cd", "score": "0.46981907", "text": "function getLocaleFieldNames() {\n\t\treturn array();\n\t}", "title": "" }, { "docid": "ce28544fced4d0c68488286bf87260cd", "score": "0.46981907", "text": "function getLocaleFieldNames() {\n\t\treturn array();\n\t}", "title": "" }, { "docid": "960d65c719da13df414b5965f31472c0", "score": "0.46975243", "text": "public function getJurisdiction();", "title": "" }, { "docid": "7076203d88b7b74d47692172e5875ef1", "score": "0.46960923", "text": "protected function getRegionMappingForGermany()\n {\n return array(\n 'NDS' => 'NI',\n 'BAW' => 'BW',\n 'BAY' => 'BY',\n 'BER' => 'BE',\n 'BRG' => 'BB',\n 'BRE' => 'HB',\n 'HAM' => 'HH',\n 'HES' => 'HE',\n 'MEC' => 'MV',\n 'NRW' => 'NW',\n 'RHE' => 'RP',\n 'SAR' => 'SL',\n 'SAS' => 'SN',\n 'SAC' => 'ST',\n 'SCN' => 'SH',\n 'THE' => 'TH'\n );\n }", "title": "" }, { "docid": "e9410f07e79b80d46d39afd6572b37d4", "score": "0.46923342", "text": "public function getGlossaryTypeValuesForForm()\n {\n $enums = $this->app['db.utils']->getEnumValues(self::$table_name, 'glossary_type');\n $result = array();\n foreach ($enums as $enum) {\n $result[$enum] = $this->app['utils']->humanize($enum);\n }\n return $result;\n }", "title": "" }, { "docid": "4a347b865400dd04fd5475bd25452aa8", "score": "0.4690892", "text": "public static function getRegionsMilitary()\n {\n return [\n 'AA' => 'U.S. Military - America (AA)',\n 'AE' => 'U.S. Military - Overseas Europe (AE)',\n 'AP' => 'U.S. Military - Overseas Pacific (AP)',\n ];\n }", "title": "" }, { "docid": "3877e45c4267c9165bdf9b5545791fd4", "score": "0.46906206", "text": "public static function get_meta_map();", "title": "" }, { "docid": "aa128f77d825b92917342a4039253fcd", "score": "0.46898407", "text": "function location_province_list_cf() {\n return array('BBA' => \"Bamingui-Bangoran\",\n 'BKO' => \"Basse-Kotto\",\n 'HKO' => \"Haute-Kotto\",\n 'HMB' => \"Haut-Mbomou\",\n 'KEM' => \"Kemo\",\n 'LOB' => \"Lobaye\",\n 'MKD' => \"Mambere-Kade�\",\n 'MBO' => \"Mbomou\",\n 'NMM' => \"Nana-Mambere\",\n 'OMP' => \"Ombella-M'Poko\",\n 'OUK' => \"Ouaka\",\n 'OUH' => \"Ouham\",\n 'OPE' => \"Ouham-Pende\",\n 'VAK' => \"Vakaga\",\n 'NGR' => \"Nana-Grebizi\",\n 'SMB' => \"Sangha-Mbaere\",\n 'BAN' => \"Bangui\");\n}", "title": "" } ]
ab54c2e51fe6b1071fbcf46c7dcf7332
Elimina los espacios en blanco o caracteres raros.
[ { "docid": "00a86a26980d38d5b57185d96b342afa", "score": "0.0", "text": "function test_input($data) {\r\n $data = trim($data);\r\n // Quia las barras con comillas escapadas.\r\n $data = stripslashes($data);\r\n // Convierte caracteres especiales en entidades HTML.\r\n $data = htmlspecialchars($data);\r\n return $data;\r\n}", "title": "" } ]
[ { "docid": "30fa45e3f31c6d445cab8e3ffd49f015", "score": "0.65732825", "text": "function eliminar_acentos($cadena)\r\n {\r\n $cadena = str_replace(\r\n array('Á', 'À', 'Â', 'Ä', 'á', 'à', 'ä', 'â', 'ª'),\r\n array('A', 'A', 'A', 'A', 'a', 'a', 'a', 'a', 'a'),\r\n $cadena\r\n );\r\n\r\n //Reemplazamos la E y e\r\n $cadena = str_replace(\r\n array('É', 'È', 'Ê', 'Ë', 'é', 'è', 'ë', 'ê'),\r\n array('E', 'E', 'E', 'E', 'e', 'e', 'e', 'e'),\r\n $cadena\r\n );\r\n\r\n //Reemplazamos la I y i\r\n $cadena = str_replace(\r\n array('Í', 'Ì', 'Ï', 'Î', 'í', 'ì', 'ï', 'î'),\r\n array('I', 'I', 'I', 'I', 'i', 'i', 'i', 'i'),\r\n $cadena\r\n );\r\n\r\n //Reemplazamos la O y o\r\n $cadena = str_replace(\r\n array('Ó', 'Ò', 'Ö', 'Ô', 'ó', 'ò', 'ö', 'ô'),\r\n array('O', 'O', 'O', 'O', 'o', 'o', 'o', 'o'),\r\n $cadena\r\n );\r\n\r\n //Reemplazamos la U y u\r\n $cadena = str_replace(\r\n array('Ú', 'Ù', 'Û', 'Ü', 'ú', 'ù', 'ü', 'û'),\r\n array('U', 'U', 'U', 'U', 'u', 'u', 'u', 'u'),\r\n $cadena\r\n );\r\n\r\n //Reemplazamos la N, n, C y c\r\n $cadena = str_replace(\r\n array('Ñ', 'ñ', 'Ç', 'ç'),\r\n array('N', 'n', 'C', 'c'),\r\n $cadena\r\n );\r\n\r\n return $cadena;\r\n }", "title": "" }, { "docid": "eefc59b409ec0b97936ffc488fa230da", "score": "0.6472231", "text": "function eliminarTildes($cadena)\n{\n\n $cadena = str_replace(' ', '', $cadena);\n\n //Ahora reemplazamos las letras\n $cadena = str_replace(\n array('á', 'à', 'ä', 'â', 'ª', 'Á', 'À', 'Â', 'Ä'),\n array('a', 'a', 'a', 'a', 'a', 'A', 'A', 'A', 'A'),\n $cadena\n );\n\n $cadena = str_replace(\n array('é', 'è', 'ë', 'ê', 'É', 'È', 'Ê', 'Ë'),\n array('e', 'e', 'e', 'e', 'E', 'E', 'E', 'E'),\n $cadena\n );\n\n $cadena = str_replace(\n array('í', 'ì', 'ï', 'î', 'Í', 'Ì', 'Ï', 'Î'),\n array('i', 'i', 'i', 'i', 'I', 'I', 'I', 'I'),\n $cadena\n );\n\n $cadena = str_replace(\n array('ó', 'ò', 'ö', 'ô', 'Ó', 'Ò', 'Ö', 'Ô'),\n array('o', 'o', 'o', 'o', 'O', 'O', 'O', 'O'),\n $cadena\n );\n\n $cadena = str_replace(\n array('ú', 'ù', 'ü', 'û', 'Ú', 'Ù', 'Û', 'Ü'),\n array('u', 'u', 'u', 'u', 'U', 'U', 'U', 'U'),\n $cadena\n );\n\n $cadena = str_replace(\n array('ñ', 'Ñ', 'ç', 'Ç'),\n array('n', 'N', 'c', 'C'),\n $cadena\n );\n\n return $cadena;\n}", "title": "" }, { "docid": "fbd94f716f6d2d85e9d02353d55555d6", "score": "0.6267653", "text": "function eliminar_multiples_espacios($texto)\n {\n return preg_replace('/\\s\\s+/', ' ', $texto);\n }", "title": "" }, { "docid": "45c9b386444c3f34ee0a59ac94663006", "score": "0.62652946", "text": "function remCarEspeciales($cadena) {\n\t$especiales = array(\"ñ\", \"Ñ\", \"á\", \"Á\", \"é\", \"É\", \"í\", \"Í\", \"ó\", \"Ó\", \"ú\", \"Ú\", \"ü\", \"Ü\", \" \", \"'\");\n\t$reemplazos = array(\"n\", \"N\", \"a\", \"A\", \"e\", \"E\", \"i\", \"I\", \"o\", \"O\", \"u\", \"U\", \"u\", \"U\", \"\", \"\");\n\t$nuevaCadena = str_replace($especiales, $reemplazos, $cadena);\n\treturn $nuevaCadena;\n}", "title": "" }, { "docid": "eb007dd13ad5c1ffddd2150ac995d75d", "score": "0.61474085", "text": "static public function eliminar_simbolos($string)\n {\n\n $string = trim($string);\n\n $string = str_replace(\n array('á', 'à', 'ä', 'â', 'ª', 'Á', 'À', 'Â', 'Ä'),\n array('a', 'a', 'a', 'a', 'a', 'A', 'A', 'A', 'A'),\n $string\n );\n\n $string = str_replace(\n array('é', 'è', 'ë', 'ê', 'É', 'È', 'Ê', 'Ë'),\n array('e', 'e', 'e', 'e', 'E', 'E', 'E', 'E'),\n $string\n );\n\n $string = str_replace(\n array('í', 'ì', 'ï', 'î', 'Í', 'Ì', 'Ï', 'Î'),\n array('i', 'i', 'i', 'i', 'I', 'I', 'I', 'I'),\n $string\n );\n\n $string = str_replace(\n array('ó', 'ò', 'ö', 'ô', 'Ó', 'Ò', 'Ö', 'Ô'),\n array('o', 'o', 'o', 'o', 'O', 'O', 'O', 'O'),\n $string\n );\n\n $string = str_replace(\n array('ú', 'ù', 'ü', 'û', 'Ú', 'Ù', 'Û', 'Ü'),\n array('u', 'u', 'u', 'u', 'U', 'U', 'U', 'U'),\n $string\n );\n\n $string = str_replace(\n array('ñ', 'Ñ', 'ç', 'Ç'),\n array('n', 'N', 'c', 'C',),\n $string\n );\n\n $string = str_replace(\n array(\"\\\\\", \"¨\", \"º\", \"-\", \"~\",\n \"#\", \"@\", \"|\", \"!\", \"\\\"\",\n \"·\", \"$\", \"%\", \"&\", \"/\",\n \"(\", \")\", \"?\", \"'\", \"¡\",\n \"¿\", \"[\", \"^\", \"<code>\", \"]\",\n \"+\", \"}\", \"{\", \"¨\", \"´\",\n \">\", \"< \", \";\", \",\", \":\",\n \".\", \" \"),\n ' ',\n $string\n );\n return $string;\n }", "title": "" }, { "docid": "4f53e3119beb687bb635309437d97946", "score": "0.60912627", "text": "function normaliza ($cadena) //Funcion para eliminar caracteres incorrectos\r\n { \r\n\t\t$originales = 'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ \r\n\t\tßàáâãäåæçèéêëìíîïðñòóôõöøùúûýýþÿ?? '; \r\n\t\t$modificadas = 'aaaaaaaceeeeiiiidnoooooouuuuy \r\n\t\tbsaaaaaaaceeeeiiiidnoooooouuuyybyRr '; \r\n\t \r\n\t\t$cadena = strtr($cadena,($originales), $modificadas); \r\n\t\treturn $cadena;\r\n }", "title": "" }, { "docid": "6011391bd0826a0cfbe271564529e752", "score": "0.6058735", "text": "function reemplazaCaracteresEspeciales($cadena) {\n $novalido = array(\"á\", \"é\", \"í\", \"ó\", \"ú\", \"ñ\", \"Á\", \"É\", \"Í\", \"Ó\", \"Ú\", \"Ñ\", \"'\");\n $valido = array(\"a\", \"e\", \"i\", \"o\", \"u\", \"n\", \"A\", \"E\", \"I\", \"O\", \"U\", \"N\", \"\");\n $cadena = str_replace($novalido, $valido, $cadena);\n return $cadena;\n }", "title": "" }, { "docid": "a4a264a073acfcd1b6f234129f7edb1b", "score": "0.6052189", "text": "function strip_special_chars($cadena_a_ser_convertida, $mode='nospaces') {\n\t\n\t$search = array(\n\t\t/* A, E, I, O, U, N (acentos y enhes) */\n\t\t193, 201, 205, 211, 218, 209,\n\t\t/* a, e, i, o, u, n (acentos y enhes) */\n\t\t225, 233, 237, 243, 250, 241,\n\t\t\n\t\t/* A, E, I, O, U (dieresis) */\n\t\t196, 203, 207, 214, 220,\n\t\t/* a, e, i, o, u (dieresis) */\n\t\t228, 235, 239, 246, 252,\n\t\t\n\t\t/* A, E, I, O, U (casita) */\n\t\t194, 202, 206, 212, 219,\n\t\t/* a, e, i, o, u (casita) */\n\t\t226, 234, 238, 244, 251,\n\t\t\n\t\t/* A, E, I, O, U (acentos invertido) */\n\t\t192, 200, 204, 210, 217,\n\t\t/* a, e, i, o, u (acento invertido) */\n\t\t224, 232, 236, 242, 249\n\t);\n\t\n\t$replace = array(\n\t\t/* A, E, I, O, U, N */\n\t\t65, 69, 73, 79, 85, 78,\n\t\t/* a, e, i, o, u, n */\n\t\t97, 101, 105, 111, 117, 110,\n\t\t\n\t\t/* A, E, I, O, U */\n\t\t65, 69, 73, 79, 85,\n\t\t/* a, e, i, o, u */\n\t\t97, 101, 105, 111, 117,\n\t\t\n\t\t/* A, E, I, O, U */\n\t\t65, 69, 73, 79, 85,\n\t\t/* a, e, i, o, u */\n\t\t97, 101, 105, 111, 117,\n\t\t\n\t\t/* A, E, I, O, U */\n\t\t65, 69, 73, 79, 85,\n\t\t/* a, e, i, o, u */\n\t\t97, 101, 105, 111, 117\n\t);\n\t\n\t/*\n\tfor ($i=0; $i<count($search); $i++) {\n\t\techo chr($search[$i]).' : '.chr($replace[$i]).\"<br>\\n\\n\";\n\t}\n\t*/\n\t\n\t$cadena_a_ser_convertida = html_entity_decode($cadena_a_ser_convertida);\n\t\n\t$cadena_convertida = NULL;\n\t\n\tfor ($i=0; $i<strlen($cadena_a_ser_convertida); $i++):\n\t\t//echo $cadena_a_ser_convertida[$i].' = '.ord($cadena_a_ser_convertida[$i]).' ['.chr(ord($cadena_a_ser_convertida[$i])).\"]<br>\\n\";\n\t\t$chr = str_replace($search, $replace, ord($cadena_a_ser_convertida[$i]));\n\t\t$cadena_convertida .= chr($chr); \n\tendfor;\n\t\n\t$cadena_convertida = trim($cadena_convertida);\n\t\n\tif (empty($cadena_convertida))\n\t\t$cadena_convertida = $cadena_a_ser_convertida;\n\t\n\tif (strtolower($mode) == 'spaces') {\n\t\t$cadena_convertida = preg_replace('/[^a-z0-9\\%\\_\\-\\ \\-|]/i', '', $cadena_convertida);\n\t} else {\n\t\t$cadena_convertida = str_replace(' ', '_', $cadena_convertida);\n\t\t$cadena_convertida = preg_replace('/[^a-z0-9\\%\\_\\-|]/i', '', $cadena_convertida);\n\t} // else\n \n\t//echo \"antes = $cadena_a_ser_convertida<br>\\ndespues = $cadena_convertida\\n<br>\";\n\t\n\t//PK_debug('Strip_special_chars ANTES', $cadena_a_ser_convertida);\n\t//PK_debug('Strip_special_chars DESPUES', $cadena_convertida);\t\t\n\n\treturn $cadena_convertida;\n}", "title": "" }, { "docid": "f425f2da971008d7bb2a9392795c09c5", "score": "0.5991571", "text": "function clear_cadena(string $cadena){\n $cadena = str_replace(\n array('Á', 'À', 'Â', 'Ä', 'á', 'à', 'ä', 'â', 'ª'),\n array('A', 'A', 'A', 'A', 'a', 'a', 'a', 'a', 'a'),\n $cadena\n );\n\n //Reemplazamos la E y e\n $cadena = str_replace(\n array('É', 'È', 'Ê', 'Ë', 'é', 'è', 'ë', 'ê'),\n array('E', 'E', 'E', 'E', 'e', 'e', 'e', 'e'),\n $cadena );\n\n //Reemplazamos la I y i\n $cadena = str_replace(\n array('Í', 'Ì', 'Ï', 'Î', 'í', 'ì', 'ï', 'î'),\n array('I', 'I', 'I', 'I', 'i', 'i', 'i', 'i'),\n $cadena );\n\n //Reemplazamos la O y o\n $cadena = str_replace(\n array('Ó', 'Ò', 'Ö', 'Ô', 'ó', 'ò', 'ö', 'ô'),\n array('O', 'O', 'O', 'O', 'o', 'o', 'o', 'o'),\n $cadena );\n\n //Reemplazamos la U y u\n $cadena = str_replace(\n array('Ú', 'Ù', 'Û', 'Ü', 'ú', 'ù', 'ü', 'û'),\n array('U', 'U', 'U', 'U', 'u', 'u', 'u', 'u'),\n $cadena );\n\n //Reemplazamos la N, n, C y c\n $cadena = str_replace(\n array('Ñ', 'ñ', 'Ç', 'ç',',','.',';',':'),\n array('N', 'n', 'C', 'c','','','',''),\n $cadena\n );\n return $cadena;\n}", "title": "" }, { "docid": "f6ebeadf5d6ecda9f6ea7303f4b9e67e", "score": "0.5944534", "text": "function eliminar_tildes($cadena){\n $cadena = utf8_encode($cadena);\n \n //Ahora reemplazamos las letras\n $cadena = str_replace(\n array('á', 'à', 'ä', 'â', 'ª', 'Á', 'À', 'Â', 'Ä'),\n array('a', 'a', 'a', 'a', 'a', 'A', 'A', 'A', 'A'),\n $cadena\n );\n \n $cadena = str_replace(\n array('é', 'è', 'ë', 'ê', 'É', 'È', 'Ê', 'Ë'),\n array('e', 'e', 'e', 'e', 'E', 'E', 'E', 'E'),\n $cadena );\n \n $cadena = str_replace(\n array('í', 'ì', 'ï', 'î', 'Í', 'Ì', 'Ï', 'Î'),\n array('i', 'i', 'i', 'i', 'I', 'I', 'I', 'I'),\n $cadena );\n \n $cadena = str_replace(\n array('ó', 'ò', 'ö', 'ô', 'Ó', 'Ò', 'Ö', 'Ô'),\n array('o', 'o', 'o', 'o', 'O', 'O', 'O', 'O'),\n $cadena );\n \n $cadena = str_replace(\n array('ú', 'ù', 'ü', 'û', 'Ú', 'Ù', 'Û', 'Ü'),\n array('u', 'u', 'u', 'u', 'U', 'U', 'U', 'U'),\n $cadena );\n \n $cadena = str_replace(\n array('ñ', 'Ñ', 'ç', 'Ç'),\n array('n', 'N', 'c', 'C'),\n $cadena\n );\n \n return $cadena;\n}", "title": "" }, { "docid": "f6ebeadf5d6ecda9f6ea7303f4b9e67e", "score": "0.5944534", "text": "function eliminar_tildes($cadena){\n $cadena = utf8_encode($cadena);\n \n //Ahora reemplazamos las letras\n $cadena = str_replace(\n array('á', 'à', 'ä', 'â', 'ª', 'Á', 'À', 'Â', 'Ä'),\n array('a', 'a', 'a', 'a', 'a', 'A', 'A', 'A', 'A'),\n $cadena\n );\n \n $cadena = str_replace(\n array('é', 'è', 'ë', 'ê', 'É', 'È', 'Ê', 'Ë'),\n array('e', 'e', 'e', 'e', 'E', 'E', 'E', 'E'),\n $cadena );\n \n $cadena = str_replace(\n array('í', 'ì', 'ï', 'î', 'Í', 'Ì', 'Ï', 'Î'),\n array('i', 'i', 'i', 'i', 'I', 'I', 'I', 'I'),\n $cadena );\n \n $cadena = str_replace(\n array('ó', 'ò', 'ö', 'ô', 'Ó', 'Ò', 'Ö', 'Ô'),\n array('o', 'o', 'o', 'o', 'O', 'O', 'O', 'O'),\n $cadena );\n \n $cadena = str_replace(\n array('ú', 'ù', 'ü', 'û', 'Ú', 'Ù', 'Û', 'Ü'),\n array('u', 'u', 'u', 'u', 'U', 'U', 'U', 'U'),\n $cadena );\n \n $cadena = str_replace(\n array('ñ', 'Ñ', 'ç', 'Ç'),\n array('n', 'N', 'c', 'C'),\n $cadena\n );\n \n return $cadena;\n}", "title": "" }, { "docid": "d70af0a6da5220d0eef02bec00c5a8e0", "score": "0.59171426", "text": "function eliminar_tildes($cadena){\n $cadena = utf8_encode($cadena);\n\n //Ahora reemplazamos las letras\n $cadena = str_replace(\n array('á', 'à', 'ä', 'â', 'ª', 'Á', 'À', 'Â', 'Ä'),\n array('a', 'a', 'a', 'a', 'a', 'A', 'A', 'A', 'A'),\n $cadena\n );\n\n $cadena = str_replace(\n array('é', 'è', 'ë', 'ê', 'É', 'È', 'Ê', 'Ë'),\n array('e', 'e', 'e', 'e', 'E', 'E', 'E', 'E'),\n $cadena );\n\n $cadena = str_replace(\n array('í', 'ì', 'ï', 'î', 'Í', 'Ì', 'Ï', 'Î'),\n array('i', 'i', 'i', 'i', 'I', 'I', 'I', 'I'),\n $cadena );\n\n $cadena = str_replace(\n array('ó', 'ò', 'ö', 'ô', 'Ó', 'Ò', 'Ö', 'Ô'),\n array('o', 'o', 'o', 'o', 'O', 'O', 'O', 'O'),\n $cadena );\n\n $cadena = str_replace(\n array('ú', 'ù', 'ü', 'û', 'Ú', 'Ù', 'Û', 'Ü'),\n array('u', 'u', 'u', 'u', 'U', 'U', 'U', 'U'),\n $cadena );\n\n $cadena = str_replace(\n array('ñ', 'Ñ', 'ç', 'Ç'),\n array('n', 'N', 'c', 'C'),\n $cadena\n );\n\n return $cadena;\n}", "title": "" }, { "docid": "2bddd6bc96316efe31091c44223505b4", "score": "0.5893369", "text": "static function eliminar_tildes($cadena){\n // $cadena = utf8_encode($cadena);\n //Ahora reemplazamos las letras\n $cadena = str_replace(\n array('á', 'à', 'ä', 'â', 'ª', 'Á', 'À', 'Â', 'Ä'),\n array('a', 'a', 'a', 'a', 'a', 'A', 'A', 'A', 'A'),\n $cadena\n );\n $cadena = str_replace(\n array('é', 'è', 'ë', 'ê', 'É', 'È', 'Ê', 'Ë'),\n array('e', 'e', 'e', 'e', 'E', 'E', 'E', 'E'),\n $cadena );\n\n $cadena = str_replace(\n array('í', 'ì', 'ï', 'î', 'Í', 'Ì', 'Ï', 'Î'),\n array('i', 'i', 'i', 'i', 'I', 'I', 'I', 'I'),\n $cadena );\n\n $cadena = str_replace(\n array('ó', 'ò', 'ö', 'ô', 'Ó', 'Ò', 'Ö', 'Ô'),\n array('o', 'o', 'o', 'o', 'O', 'O', 'O', 'O'),\n $cadena );\n\n $cadena = str_replace(\n array('ú', 'ù', 'ü', 'û', 'Ú', 'Ù', 'Û', 'Ü'),\n array('u', 'u', 'u', 'u', 'U', 'U', 'U', 'U'),\n $cadena );\n\n $cadena = str_replace(\n array('ñ', 'Ñ', 'ç', 'Ç'),\n array('n', 'N', 'c', 'C'),\n $cadena\n );\n // $cadena = preg_replace(\"/[^a-zA-Z0-9\\_\\-]+/\", \"\", $cadena);\n\n return $cadena;\n }", "title": "" }, { "docid": "ecd529e6290d12454d44031d75af3fa9", "score": "0.5829396", "text": "function restarEspacioActual($espaciosInscritos) {\n foreach ($espaciosInscritos as $fila => $espacio)\n {\n if($espacio['CODIGO']==$this->datosInscripcion['codEspacio'])\n {\n unset ($espaciosInscritos[$fila]);\n }\n }\n return $espaciosInscritos;\n }", "title": "" }, { "docid": "94e2efd829d25476a21d2d17113a1461", "score": "0.5800461", "text": "function eliminar_saltos_linea($texto)\n {\n $cleaned_html = str_replace(\"\\r\", \"\", $texto);\n $cleaned_html = str_replace(\"\\n\", \"\", $cleaned_html);\n return $cleaned_html;\n }", "title": "" }, { "docid": "78f8d6e6d4bcb8d44f74fea5b07aebda", "score": "0.5693379", "text": "function eliminarTildes($cadena, $encode=true)\n {\n if($encode){\n $cadena = utf8_encode($cadena);\n }\n\n //Ahora reemplazamos las letras\n $cadena = str_replace(\n array('á', 'à', 'ä', 'â', 'ª', 'Á', 'À', 'Â', 'Ä'),\n array('a', 'a', 'a', 'a', 'a', 'A', 'A', 'A', 'A'),\n $cadena\n );\n\n $cadena = str_replace(\n array('é', 'è', 'ë', 'ê', 'É', 'È', 'Ê', 'Ë'),\n array('e', 'e', 'e', 'e', 'E', 'E', 'E', 'E'),\n $cadena );\n\n $cadena = str_replace(\n array('í', 'ì', 'ï', 'î', 'Í', 'Ì', 'Ï', 'Î'),\n array('i', 'i', 'i', 'i', 'I', 'I', 'I', 'I'),\n $cadena );\n\n $cadena = str_replace(\n array('ó', 'ò', 'ö', 'ô', 'Ó', 'Ò', 'Ö', 'Ô'),\n array('o', 'o', 'o', 'o', 'O', 'O', 'O', 'O'),\n $cadena );\n\n $cadena = str_replace(\n array('ú', 'ù', 'ü', 'û', 'Ú', 'Ù', 'Û', 'Ü'),\n array('u', 'u', 'u', 'u', 'U', 'U', 'U', 'U'),\n $cadena );\n\n $cadena = str_replace(\n array('ñ', 'Ñ', 'ç', 'Ç'),\n array('n', 'N', 'c', 'C'),\n $cadena\n );\n\n return $cadena;\n }", "title": "" }, { "docid": "8be9c13ca3c2f3665cd0c3e62ea9ef15", "score": "0.567215", "text": "public function EliminarAcentos($cadena) {\r\n $cadena = utf8_encode($cadena);\r\n\r\n //Ahora reemplazamos las letras\r\n $cadena = str_replace(\r\n array('á', 'à', 'ä', 'â', 'ª', 'Á', 'À', 'Â', 'Ä'),\r\n array('a', 'a', 'a', 'a', 'a', 'A', 'A', 'A', 'A'),\r\n $cadena\r\n );\r\n\r\n $cadena = str_replace(\r\n array('é', 'è', 'ë', 'ê', 'É', 'È', 'Ê', 'Ë'),\r\n array('e', 'e', 'e', 'e', 'E', 'E', 'E', 'E'),\r\n $cadena );\r\n\r\n $cadena = str_replace(\r\n array('í', 'ì', 'ï', 'î', 'Í', 'Ì', 'Ï', 'Î'),\r\n array('i', 'i', 'i', 'i', 'I', 'I', 'I', 'I'),\r\n $cadena );\r\n\r\n $cadena = str_replace(\r\n array('ó', 'ò', 'ö', 'ô', 'Ó', 'Ò', 'Ö', 'Ô'),\r\n array('o', 'o', 'o', 'o', 'O', 'O', 'O', 'O'),\r\n $cadena );\r\n\r\n $cadena = str_replace(\r\n array('ú', 'ù', 'ü', 'û', 'Ú', 'Ù', 'Û', 'Ü'),\r\n array('u', 'u', 'u', 'u', 'U', 'U', 'U', 'U'),\r\n $cadena );\r\n\r\n $cadena = str_replace(\r\n array('ñ', 'Ñ', 'ç', 'Ç'),\r\n array('n', 'N', 'c', 'C'),\r\n $cadena\r\n );\r\n \r\n return $cadena;\r\n }", "title": "" }, { "docid": "2bcd4c7640258c78b434b1f146b9c6c8", "score": "0.5558029", "text": "public function removerPreguntasAbiertas()\n\t{\n\t\t$manualIndex = -1;\n\t\tforeach($this->infoCuestionarios->competencias as $k => $v)\n\t\t{\n\t\t\tif($v->tipo == \"manual\")\n\t\t\t{\n\t\t\t\t$manualIndex = $k;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif($manualIndex >= 0)\n\t\t{\n\t\t\tunset($this->infoCuestionarios->competencias[$manualIndex]);\n\t\t\t$this->resetearCompetenciasIndices();\n\t\t}\n\t}", "title": "" }, { "docid": "3d9edfab51cdfaf52f9887a97ebc9419", "score": "0.55208635", "text": "function QuitarArticulos($palabra) \r\n {\r\n #$palabra = preg_replace('/\\bMC/', '', $palabra); \r\n $palabra = preg_replace('/\\b(DE(L)?|LA(S)?|LOS|Y|A|VON|VAN)\\s+/i', '', $palabra); \r\n return $palabra; \r\n }", "title": "" }, { "docid": "6619a6470e477e55c5bcac58f2a09bcb", "score": "0.5495463", "text": "private function validateAndReplaceOmocodia()\n {\n // check and replace omocodie\n $this->codiceFiscaleWithoutOmocodia = $this->codiceFiscale;\n for ($omocodiaCheck = 0; $omocodiaCheck < $this->foundOmocodiaLevel; $omocodiaCheck++) {\n $positionToCheck = $this->omocodiaPositions[$omocodiaCheck];\n $charToCheck = $this->codiceFiscaleWithoutOmocodia[$positionToCheck];\n if (!in_array($charToCheck, $this->omocodiaCodes)) {\n throw new \\Exception('The codice fiscale to validate has an invalid character');\n }\n $this->codiceFiscaleWithoutOmocodia[$positionToCheck] = array_search($charToCheck, $this->omocodiaCodes);\n }\n }", "title": "" }, { "docid": "2c25a2b40533ff78e7da2dd175bb0cf2", "score": "0.54780036", "text": "public function caracteres($cadena)\n {\n $a_tofind = array('À', 'Á', 'Â', 'Ã', 'Ä', 'Å', 'à', 'á', 'â', 'ã', 'ä', 'å',\n 'Ò', 'Ó', 'Ô', 'Õ', 'Ö', 'Ø', 'ò', 'ó', 'ô', 'õ', 'ö', 'ø',\n 'È', 'É', 'Ê', 'Ë', 'è', 'é', 'ê', 'ë', 'Ç', 'ç',\n 'Ì', 'Í', 'Î', 'Ï', 'ì', 'í', 'î', 'ï',\n 'Ù', 'Ú', 'Û', 'Ü', 'ù', 'ú', 'û', 'ü', 'ÿ', 'Ñ', 'ñ', ' ', '´', \"'\", \">\", \"<\", \"/\", \"-\");\n # Y LOS DEJA SIN TILDES, SIGNOS ETC\n\n $a_replac = array('A', 'A', 'A', 'A', 'A', 'A', 'a', 'a', 'a', 'a', 'a', 'a',\n 'O', 'O', 'O', 'O', 'O', 'O', 'o', 'o', 'o', 'o', 'o', 'o',\n 'E', 'E', 'E', 'E', 'e', 'e', 'e', 'e', 'C', 'c',\n 'I', 'I', 'I', 'I', 'i', 'i', 'i', 'i',\n 'U', 'U', 'U', 'U', 'u', 'u', 'u', 'u', 'y', 'N', 'n', '1', '_', '', '', '', '', \"\");\n $nombreLimpia = str_replace($a_tofind, $a_replac, $cadena);\n return $nombreLimpia; // me retorna la cadena sin caracteres especiales\n }", "title": "" }, { "docid": "3818392d4a392ce01ac5304cacfd9075", "score": "0.5448271", "text": "function quitar_tildes($cadena) {\n $no_permitidas = array(\"á\", \"é\", \"í\", \"ó\", \"ú\", \"Á\", \"É\", \"Í\", \"Ó\", \"Ú\", \"ñ\", \"À\", \"Ã\", \"Ì\", \"Ò\", \"Ù\", \"Ù\", \"à \", \"è\", \"ì\", \"ò\", \"ù\", \"ç\", \"Ç\", \"â\", \"ê\", \"î\", \"ô\", \"û\", \"Â\", \"Ê\", \"ÃŽ\", \"Ô\", \"Û\", \"ü\", \"ö\", \"Ö\", \"ï\", \"ä\", \"«\", \"Ò\", \"Ï\", \"Ä\", \"Ë\");\n $permitidas = array(\"a\", \"e\", \"i\", \"o\", \"u\", \"A\", \"E\", \"I\", \"O\", \"U\", \"n\", \"N\", \"A\", \"E\", \"I\", \"O\", \"U\", \"a\", \"e\", \"i\", \"o\", \"u\", \"c\", \"C\", \"a\", \"e\", \"i\", \"o\", \"u\", \"A\", \"E\", \"I\", \"O\", \"U\", \"u\", \"o\", \"O\", \"i\", \"a\", \"e\", \"U\", \"I\", \"A\", \"E\");\n $texto = str_replace($no_permitidas, $permitidas, $cadena);\n return $texto;\n }", "title": "" }, { "docid": "014384bec4571c5ce1643a8170eee620", "score": "0.5406166", "text": "function simplificar ($texto) {\n\t\t$busca = array ('á','é','í','ó','ú','à','è','ì','ò','ù','â','ê','î','ô','û','ä','ë','ï','ö','ü','Á','É','Í','Ó','Ú','À','È','Ì','Ò','Ù','Â','Ê','Î','Ô','Û','Ä','Ë','Ï','Ö','Ü','ñ','Ñ','ç','Ç',' ');\n\t\t$cambia = array ('a','e','i','o','u','a','e','i','o','u','a','e','i','o','u','a','e','i','o','u','A','E','I','O','U','A','E','I','O','U','A','E','I','O','U','A','E','I','O','U','n','N','c','C','_');\n\t\t$texto = str_replace($busca, $cambia, trim(strtolower($texto)));\n\t\t$texto = preg_replace('/[^a-z0-9_-]/', '', $texto);\n\t\treturn $texto;\n\t}", "title": "" }, { "docid": "e26a18fcd2c586b665263f70e2896b88", "score": "0.5366975", "text": "function tiraQuebrasDeLinha($str1, $marcador){\n //$str1=stripAccents($str1);\n if (!$marcador)\n //return preg_replace(\"/(\\r|\\n)/u\", ', ', $str1);\n return mb_ereg_replace (\"/(\\r|\\n)/u\", ', ', $str1);\n else\n return preg_replace(\"/(\\r|\\n)/u\", $marcador, $str1); \n}", "title": "" }, { "docid": "2dee7a68bdd92445a01b40a365fb068c", "score": "0.53084546", "text": "public function limpia_espacios($cadena){\n $cadena = str_replace(' ', '', $cadena);\n return $cadena;\n\t}", "title": "" }, { "docid": "504d8ae31be35af20c05c6bff53e67ca", "score": "0.52562726", "text": "function remove_char($pn){\n /** removes white space and non numeric characters from the phone number */\n return preg_replace(\"/[\\D\\s]/\", '', $pn);\n }", "title": "" }, { "docid": "f9bc87453d85511f06bc78937ee9ea40", "score": "0.52219325", "text": "private function cleanup_characters($text) {\n $search = [\n \"\\xC2\\xAB\", // « (U+00AB) in UTF-8\n \"\\xC2\\xBB\", // » (U+00BB) in UTF-8\n \"\\xE2\\x80\\x98\", // ‘ (U+2018) in UTF-8\n \"\\xE2\\x80\\x99\", // ’ (U+2019) in UTF-8\n \"\\xE2\\x80\\x9A\", // ‚ (U+201A) in UTF-8\n \"\\xE2\\x80\\x9B\", // ‛ (U+201B) in UTF-8\n \"\\xE2\\x80\\x9C\", // “ (U+201C) in UTF-8\n \"\\xE2\\x80\\x9D\", // ” (U+201D) in UTF-8\n \"\\xE2\\x80\\x9E\", // „ (U+201E) in UTF-8\n \"\\xE2\\x80\\x9F\", // ‟ (U+201F) in UTF-8\n \"\\xE2\\x80\\xB9\", // ‹ (U+2039) in UTF-8\n \"\\xE2\\x80\\xBA\", // › (U+203A) in UTF-8\n \"\\xE2\\x80\\x93\", // – (U+2013) in UTF-8\n \"\\xE2\\x80\\x94\", // — (U+2014) in UTF-8\n \"\\xE2\\x80\\xA6\" // … (U+2026) in UTF-8\n ];\n\n $replacements = [\n '<<',\n '>>',\n \"'\",\n \"'\",\n \"'\",\n \"'\",\n '\"',\n '\"',\n '\"',\n '\"',\n '<',\n '>',\n '-',\n '-',\n '...'\n ];\n\n $clean_text = str_replace($search, $replacements, $text);\n\n return $clean_text;\n }", "title": "" }, { "docid": "dcc306d759b3b898ba216e6e125c7a29", "score": "0.52008164", "text": "public static function quita_espacios ($con_espacios) {\n $con_espacios = trim($con_espacios); //ELIMINAMOS LOS ESPACIOS ANTES Y DESPUES DE LA CADENA\n $sin_espacios = ereg_replace(' +',' ',$con_espacios); // SUTITUIMOS LOS BLOQUES DE MAS DE UN ESPACIO POR UN ESPACIO SENCILLO\n return $sin_espacios; // RETORNAMOS LA VARIABLE SIN ESPACIOS\n }", "title": "" }, { "docid": "a347ca705ea49bd6b6631dcb957146dc", "score": "0.51968545", "text": "function remove_bad_characters($array)\n{\n\tstatic $bad_utf8_chars;\n\n\tif (!isset($bad_utf8_chars))\n\t{\n\t\t$bad_utf8_chars = array(\n\t\t\t\"\\xcc\\xb7\"\t\t=> '',\t\t// COMBINING SHORT SOLIDUS OVERLAY\t\t0337\t*\n\t\t\t\"\\xcc\\xb8\"\t\t=> '',\t\t// COMBINING LONG SOLIDUS OVERLAY\t\t0338\t*\n\t\t\t\"\\xe1\\x85\\x9F\"\t=> '',\t\t// HANGUL CHOSEONG FILLER\t\t\t\t115F\t*\n\t\t\t\"\\xe1\\x85\\xA0\"\t=> '',\t\t// HANGUL JUNGSEONG FILLER\t\t\t\t1160\t*\n\t\t\t\"\\xe2\\x80\\x8b\"\t=> '',\t\t// ZERO WIDTH SPACE\t\t\t\t\t\t200B\t*\n\t\t\t\"\\xe2\\x80\\x8c\"\t=> '',\t\t// ZERO WIDTH NON-JOINER\t\t\t\t200C\n\t\t\t\"\\xe2\\x80\\x8d\"\t=> '',\t\t// ZERO WIDTH JOINER\t\t\t\t\t200D\n\t\t\t\"\\xe2\\x80\\x8e\"\t=> '',\t\t// LEFT-TO-RIGHT MARK\t\t\t\t\t200E\n\t\t\t\"\\xe2\\x80\\x8f\"\t=> '',\t\t// RIGHT-TO-LEFT MARK\t\t\t\t\t200F\n\t\t\t\"\\xe2\\x80\\xaa\"\t=> '',\t\t// LEFT-TO-RIGHT EMBEDDING\t\t\t\t202A\n\t\t\t\"\\xe2\\x80\\xab\"\t=> '',\t\t// RIGHT-TO-LEFT EMBEDDING\t\t\t\t202B\n\t\t\t\"\\xe2\\x80\\xac\"\t=> '', \t\t// POP DIRECTIONAL FORMATTING\t\t\t202C\n\t\t\t\"\\xe2\\x80\\xad\"\t=> '',\t\t// LEFT-TO-RIGHT OVERRIDE\t\t\t\t202D\n\t\t\t\"\\xe2\\x80\\xae\"\t=> '',\t\t// RIGHT-TO-LEFT OVERRIDE\t\t\t\t202E\n\t\t\t\"\\xe2\\x80\\xaf\"\t=> '',\t\t// NARROW NO-BREAK SPACE\t\t\t\t202F\t*\n\t\t\t\"\\xe2\\x81\\x9f\"\t=> '',\t\t// MEDIUM MATHEMATICAL SPACE\t\t\t205F\t*\n\t\t\t\"\\xe2\\x81\\xa0\"\t=> '',\t\t// WORD JOINER\t\t\t\t\t\t\t2060\n\t\t\t\"\\xe3\\x85\\xa4\"\t=> '',\t\t// HANGUL FILLER\t\t\t\t\t\t3164\t*\n\t\t\t\"\\xef\\xbb\\xbf\"\t=> '',\t\t// ZERO WIDTH NO-BREAK SPACE\t\t\tFEFF\n\t\t\t\"\\xef\\xbe\\xa0\"\t=> '',\t\t// HALFWIDTH HANGUL FILLER\t\t\t\tFFA0\t*\n\t\t\t\"\\xef\\xbf\\xb9\"\t=> '',\t\t// INTERLINEAR ANNOTATION ANCHOR\t\tFFF9\t*\n\t\t\t\"\\xef\\xbf\\xba\"\t=> '',\t\t// INTERLINEAR ANNOTATION SEPARATOR\t\tFFFA\t*\n\t\t\t\"\\xef\\xbf\\xbb\"\t=> '',\t\t// INTERLINEAR ANNOTATION TERMINATOR\tFFFB\t*\n\t\t\t\"\\xef\\xbf\\xbc\"\t=> '',\t\t// OBJECT REPLACEMENT CHARACTER\t\t\tFFFC\t*\n\t\t\t\"\\xef\\xbf\\xbd\"\t=> '',\t\t// REPLACEMENT CHARACTER\t\t\t\tFFFD\t*\n\t\t\t\"\\xe2\\x80\\x80\"\t=> ' ',\t\t// EN QUAD\t\t\t\t\t\t\t\t2000\t*\n\t\t\t\"\\xe2\\x80\\x81\"\t=> ' ',\t\t// EM QUAD\t\t\t\t\t\t\t\t2001\t*\n\t\t\t\"\\xe2\\x80\\x82\"\t=> ' ',\t\t// EN SPACE\t\t\t\t\t\t\t\t2002\t*\n\t\t\t\"\\xe2\\x80\\x83\"\t=> ' ',\t\t// EM SPACE\t\t\t\t\t\t\t\t2003\t*\n\t\t\t\"\\xe2\\x80\\x84\"\t=> ' ',\t\t// THREE-PER-EM SPACE\t\t\t\t\t2004\t*\n\t\t\t\"\\xe2\\x80\\x85\"\t=> ' ',\t\t// FOUR-PER-EM SPACE\t\t\t\t\t2005\t*\n\t\t\t\"\\xe2\\x80\\x86\"\t=> ' ',\t\t// SIX-PER-EM SPACE\t\t\t\t\t\t2006\t*\n\t\t\t\"\\xe2\\x80\\x87\"\t=> ' ',\t\t// FIGURE SPACE\t\t\t\t\t\t\t2007\t*\n\t\t\t\"\\xe2\\x80\\x88\"\t=> ' ',\t\t// PUNCTUATION SPACE\t\t\t\t\t2008\t*\n\t\t\t\"\\xe2\\x80\\x89\"\t=> ' ',\t\t// THIN SPACE\t\t\t\t\t\t\t2009\t*\n\t\t\t\"\\xe2\\x80\\x8a\"\t=> ' ',\t\t// HAIR SPACE\t\t\t\t\t\t\t200A\t*\n\t\t\t\"\\xE3\\x80\\x80\"\t=> ' ',\t\t// IDEOGRAPHIC SPACE\t\t\t\t\t3000\t*\n\t\t);\n\t}\n\n\tif (is_array($array))\n\t\treturn array_map('remove_bad_characters', $array);\n\n\t// Strip out any invalid characters\n\t$array = utf8_bad_strip($array);\n\n\t// Remove control characters\n\t$array = preg_replace('%[\\x00-\\x08\\x0b-\\x0c\\x0e-\\x1f]%', '', $array);\n\n\t// Replace some \"bad\" characters\n\t$array = str_replace(array_keys($bad_utf8_chars), array_values($bad_utf8_chars), $array);\n\n\treturn $array;\n}", "title": "" }, { "docid": "9510ec586d86c66f861da00abe3b6fcb", "score": "0.51695555", "text": "private function eliminar_carritos_agregar_detalles(){\n $this->detailBillingController->eliminar_carritos();\n Cart::instance($this->docxpagar_otrabajo)->destroy();\n\n }", "title": "" }, { "docid": "767a398d5017e5c21b994f9bc1e754c3", "score": "0.5155313", "text": "public function eliminando(){\n\t\tif($this->eliminandoDatos=='1'){\n\t\t$archivo=fopen($this->nombre_txt,'w');\n\t\tfwrite($archivo,'');\n\t\tfclose($archivo);\n\t\techo '';\n\t\t}\n\t}", "title": "" }, { "docid": "1a8195f3262b8bfa3bafd40f66c3da91", "score": "0.51409185", "text": "private function escribir()\r\n\t{\r\n\t\t$idFichero = @fopen(\"diccionario.txt\",w)\r\n\t\t\tor die(\"<b>El fichero \\\"diccionario.txt\\\" no se ha podido abrir</b>\");\r\n\t\tforeach($this->palabras as $elemento)\r\n\t\t\tfputs($idFichero,implode(\"|\",$elemento).\"¬\\n\");\r\n\t\tfclose($idFichero);\r\n\t}", "title": "" }, { "docid": "d32ec9d59eaade041d6c4cdaf38533bf", "score": "0.51064557", "text": "function buscarEspacios($id,$red,$espacios,$cupos){\r\n\t\t$padre = $this->model_perfil_red->ConsultarPadre($id , $red);\r\n\t\t$frontales = (count($this->model_perfil_red->ConsultarHijos($padre,$red))-1);\t\r\n\t\t\r\n\t\tif($espacios<>0){\r\n\t\t\t$padre = $this->rotarPadres($espacios,$padre,$frontales,$cupos,$red);\r\n\t\t}\r\n\t\treturn $padre;\r\n\t}", "title": "" }, { "docid": "03b5366d7c1641cb3aae942e64ef5481", "score": "0.51019704", "text": "function RecortaAcomun($texto)\n\t{\n\t\twhile (strlen($texto)>18)\n\t\t{\n\t\t\t$texto=substr($texto, 0, -1);\n\t\t}\n\n\t\treturn $texto;\n\t}", "title": "" }, { "docid": "96f0528654bb5eccf21945deb06ebfcb", "score": "0.509711", "text": "function sansle($texte) {\n $pattern[0] = \"#^Les |La |Le |Lo |The[[:space:]]?#\"; \n $pattern[1] = \"#^L’?#\"; //apostrophe utf8\n $pattern[3] = \"#^&\\#171;?#\"; //guillemet\n $pattern[5] = \"#^&?#\"; //&\n $pattern[2] = \"#^&nbsp;?#\"; //espace\n $pattern[6] = \"#^[[:space:]]?#\"; //&\n $pattern[4] = \"#«#\"; //guillemet La « \n $texte = preg_replace($pattern, '', $texte); \n return $texte;\n}", "title": "" }, { "docid": "6cfcf49f07442e07ecabd6c21a31c1af", "score": "0.50864726", "text": "function removeXss($val) {\n // remove all non-printable characters. CR(0a) and LF(0b) and TAB(9) are allowed\n // this prevents some character re-spacing such as <java\\0script>\n // note that you have to handle splits with \\n, \\r, and \\t later since they *are* allowed in some inputs\n $sOriginal = $val;\n \n $val = preg_replace('/([\\x00-\\x08][\\x0b-\\x0c][\\x0e-\\x20])/', '', $val);\n \n // straight replacements, the user should never need these since they're normal characters\n // this prevents like <IMG SRC=&#X40&#X61&#X76&#X61&#X73&#X63&#X72&#X69&#X70&#X74&#X3A&#X61&#X6C&#X65&#X72&#X74&#X28&#X27&#X58&#X53&#X53&#X27&#X29>\n $search = 'abcdefghijklmnopqrstuvwxyz';\n $search .= 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';\n $search .= '1234567890!@#$%^&*()';\n $search .= '~`\";:?+/={}[]-_|\\'\\\\';\n for ($i = 0; $i < strlen($search); $i++) {\n // ;? matches the ;, which is optional\n // 0{0,7} matches any padded zeros, which are optional and go up to 8 chars\n // &#x0040 @ search for the hex values\n $val = preg_replace('/(&#[x|X]0{0,8}'.dechex(ord($search[$i])).';?)/i', $search[$i], $val); // with a ;\n // &#00064 @ 0{0,7} matches '0' zero to seven times\n $val = preg_replace('/(&#0{0,8}'.ord($search[$i]).';?)/', $search[$i], $val); // with a ;\n }\n \n // now the only remaining whitespace attacks are \\t, \\n, and \\r\n $ra1 = Array('javascript', 'vbscript', 'expression', 'applet', 'meta', 'xml', 'blink', 'link', 'style', 'script', 'embed', 'object', 'iframe', 'frame', 'frameset', 'ilayer', 'layer', 'bgsound', 'title', 'base');\n $ra2 = Array('onabort', 'onactivate', 'onafterprint', 'onafterupdate', 'onbeforeactivate', 'onbeforecopy', 'onbeforecut', 'onbeforedeactivate', 'onbeforeeditfocus', 'onbeforepaste', 'onbeforeprint', 'onbeforeunload', 'onbeforeupdate', 'onblur', 'onbounce', 'oncellchange', 'onchange', 'onclick', 'oncontextmenu', 'oncontrolselect', 'oncopy', 'oncut', 'ondataavailable', 'ondatasetchanged', 'ondatasetcomplete', 'ondblclick', 'ondeactivate', 'ondrag', 'ondragend', 'ondragenter', 'ondragleave', 'ondragover', 'ondragstart', 'ondrop', 'onerror', 'onerrorupdate', 'onfilterchange', 'onfinish', 'onfocus', 'onfocusin', 'onfocusout', 'onhelp', 'onkeydown', 'onkeypress', 'onkeyup', 'onlayoutcomplete', 'onload', 'onlosecapture', 'onmousedown', 'onmouseenter', 'onmouseleave', 'onmousemove', 'onmouseout', 'onmouseover', 'onmouseup', 'onmousewheel', 'onmove', 'onmoveend', 'onmovestart', 'onpaste', 'onpropertychange', 'onreadystatechange', 'onreset', 'onresize', 'onresizeend', 'onresizestart', 'onrowenter', 'onrowexit', 'onrowsdelete', 'onrowsinserted', 'onscroll', 'onselect', 'onselectionchange', 'onselectstart', 'onstart', 'onstop', 'onsubmit', 'onunload');\n $ra = array_merge($ra1, $ra2);\n \n $found = true; // keep replacing as long as the previous round replaced something\n while ($found == true) { \n $val_before = $val;\n\t for ($i = 0; $i < sizeof($ra); $i++) {\n $pattern = '/';\n for ($j = 0; $j < strlen($ra[$i]); $j++) {\n if ($j > 0) {\n $pattern .= '(';\n $pattern .= '(&#[x|X]0{0,8}([9][a][b]);?)?';\n $pattern .= '|(&#0{0,8}([9][10][13]);?)?';\n $pattern .= ')?';\n }\n $pattern .= $ra[$i][$j];\n }\n $pattern .= '/i';\n $replacement = substr($ra[$i], 0, 2).'<x>'.substr($ra[$i], 2); // add in <> to nerf the tag\n $val = preg_replace($pattern, $replacement, $val); // filter out the hex tags\n if ($val_before == $val) {\n // no replacements were made, so exit the loop\n $found = false;\n }\n }\n }\n \n if ($sOriginal == $val)\t#Valida si se encontro algun caracter no valido\n \t\treturn $iError=0;\n else\n\t\treturn $iError=1;\n}", "title": "" }, { "docid": "bd6e558d04540aaaf401f108d6df6adb", "score": "0.50804573", "text": "public function espacioBlanco($cadena)\n {\n $a_tofind = array('1');\n # Y LOS DEJA SIN TILDES, SIGNOS ETC\n\n $a_replac = array(' ');\n $nombreLimpia = str_replace($a_tofind, $a_replac, $cadena);\n return $nombreLimpia; // me retorna la cadena sin caracteres especiales\n }", "title": "" }, { "docid": "3e7bd715e1ef96fac0b7f5dda169991a", "score": "0.50673133", "text": "static function prelude()\n {\n $pattern_array = array(\"/Qu/\",\"/qu/\");\n $replacement_array = array(\"QU\",\"qU\");\n //Replace acute accents by grave accents\n self::$buffer = self::acuteByGrave(self::$buffer);\n /**\n * Convert u preceded by q and u,i preceded and followed by vowels\n * to upper case to mark them as non vowels\n */\n self::$buffer = preg_replace($pattern_array,$replacement_array,\n self::$buffer);\n for($i = 0; $i < strlen(self::$buffer) - 1; $i++){\n if($i >= 1 && (self::$buffer[$i] == \"i\" ||\n self::$buffer[$i] == \"u\")){\n if(self::isVowel(self::$buffer[$i-1]) &&\n self::isVowel(self::$buffer[$i+1]) &&\n self::$buffer[$i+1] !== '`')\n self::$buffer[$i] = strtoupper(self::$buffer[$i]);\n }\n }\n }", "title": "" }, { "docid": "61388d33afd40c5e5cd77e8bcf1a11f5", "score": "0.5022026", "text": "function insertarFraseDesDArxiu($frase)\n {\n /*\n * Fer split, per cada paraula: passar els caracters a minúscula\n * mirar si és un modificador de noms ($),\n * de tipus de frase (#) o de temps verbals (@). Aquests dos últims els guardem\n * per introduïr-los després com a propietats de la frase.\n * Les paraules normals les busquem i fem un afegirParaula\n * Els modificadors de nom, fem un afegirModifNom\n * Un cop introduïdes totes les paraules fem un insertarFrase amb els canvis\n * que calgui fer al codi\n */\n \n $idusu = $this->session->userdata('idusu');\n $userlanguage = $this->session->userdata('ulanguage'); // en número i no en abbr 'CA'...\n \n $frase = strtolower($frase);\n // eliminem tots els espais\n $frase = preg_replace('/\\s+/', '', $frase);\n $paraules = explode(\"/\", $frase);\n \n // Després de l'última barra / no hi ha cap paraula\n $numparaules = count($paraules)-1;\n $paraulesbones = 0;\n \n $tipusfrase = \"defecte\";\n $tempsverbal = \"defecte\";\n $negativa = false;\n \n $nounentered = false;\n $queuedmodif = false;\n $queuedmodifs = array();\n \n for ($i=0; $i<$numparaules; $i++) {\n \n $paraula = $paraules[$i];\n $primercaracter = $paraula[0];\n \n // si és un número vol dir que utilitza el format d'entrada d'ID's de pictograma\n if ($primercaracter == \"{\") {\n \n\t\t\t\t$paraula = substr($paraula, 1); // treiem el primer caràcter que és {\n\t\t\t\t$paraula = substr($paraula, 0, -1); // treiem l'últim caràcter que és }\n\t\t\t\t\n $pictoid = (int)$paraula; // l'id és la paraula introduïda\n \n $this->db->where('pictoid', $pictoid);\n $query = $this->db->get('Pictograms');\n \n if ($query->num_rows() > 0) {\n \n $aux = $query->result();\n $infoparaula = $aux[0];\n \n $taula = $infoparaula->pictoType;\n // afegim la paraula a la frase de l'usuari\n $this->afegirParaula($idusu, $pictoid, $taula);\n $paraulesbones++;\n if ($taula == \"name\" || $taula == \"adj\") {\n // si hi havia modificadors en espera que s'havien introduït abans del nom o adj\n if ($queuedmodif) {\n for ($j=0; $j < count($queuedmodifs); $j++) {\n $this->afegirModifNom($idusu, $queuedmodifs[$j]);\n }\n // reiniciem l'array\n $queuedmodif = false;\n unset($queuedmodifs);\n $queuedmodifs = array();\n }\n else {\n // indiquem que hi ha un nom a on s'hi poden afegir els modificadors\n $nounentered = true;\n }\n }\n // si és un altre tipus de paraula\n else {\n // els modificadors de nom han d'anar engatxats al nom, així que si la paraula\n // anterior és diferent d'un nom, no volem que s'hi associïn els modificadors de nom\n $nounentered = false;\n }\n }\n }\n \n // si no és un número poden ser modificadors, tipus de frase, temps verbals, negacions\n // o poden ser pictogrames introduïts en format text\n else {\n \n switch ($primercaracter) {\n \n case \"$\":\n $paraula = substr($paraula, 1);\n // si ja s'ha introduït un nom o adj, hi associem el modificador\n if ($nounentered) {\n $this->afegirModifNom($idusu, $paraula);\n }\n // si no esperarem a que hi hagi algun nom per associar-hi \n // els modificadors que estiguin a la cua\n else {\n $queuedmodif = true;\n $queuedmodifs[] = $paraula;\n }\n break;\n case \"#\":\n $paraula = substr($paraula, 1);\n $tipusfrase = $paraula;\n break;\n case \"@\":\n $paraula = substr($paraula, 1);\n $tempsverbal = $paraula;\n break;\n case \"%\":\n $paraula = substr($paraula, 1);\n $negativa = true;\n break;\n default:\n $this->db->where_in('Pictograms.ID_PUser', array('1', $this->session->userdata('idusu')));\n $this->db->where('pictotext', $paraula);\n $this->db->where('languageid', $userlanguage);\n $this->db->join('Pictograms', 'Pictograms.pictoid = PictogramsLanguage.pictoid', 'left');\n $query = $this->db->get('PictogramsLanguage');\n if ($query->num_rows() > 0) {\n $aux = $query->result();\n $infoparaula = $aux[0];\n // si hi ha més d'una paraula que fa match (2), fem les comparacions\n // per veure amb quina de les dues ens quedem\n if (count($aux) > 1) {\n $type1 = $aux[0]->pictoType;\n $type2 = $aux[1]->pictoType;\n switch ($type1) {\n case \"name\":\n switch ($type2) {\n case \"name\":\n $infoparaula = $aux[0];\n break;\n case \"verb\":\n $infoparaula = $aux[1];\n break;\n case \"adj\":\n $infoparaula = $aux[1];\n break;\n case \"adv\":\n $infoparaula = $aux[1];\n break;\n case \"expression\":\n $infoparaula = $aux[0];\n break;\n case \"modifier\":\n $infoparaula = $aux[1];\n break;\n case \"questpart\":\n $infoparaula = $aux[1];\n break;\n default:\n $infoparaula = $aux[0];\n break;\n }\n break;\n case \"verb\":\n switch ($type2) {\n case \"name\":\n $infoparaula = $aux[0];\n break;\n case \"verb\":\n $infoparaula = $aux[0];\n break;\n case \"adj\":\n $infoparaula = $aux[0];\n break;\n case \"adv\":\n $infoparaula = $aux[0];\n break;\n case \"expression\":\n $infoparaula = $aux[0];\n break;\n case \"modifier\":\n $infoparaula = $aux[0];\n break;\n case \"questpart\":\n $infoparaula = $aux[0];\n break;\n default:\n $infoparaula = $aux[0];\n break;\n }\n break;\n case \"adj\":\n switch ($type2) {\n case \"name\":\n $infoparaula = $aux[0];\n break;\n case \"verb\":\n $infoparaula = $aux[1];\n break;\n case \"adj\":\n $infoparaula = $aux[0];\n break;\n case \"adv\":\n $infoparaula = $aux[1];\n break;\n case \"expression\":\n $infoparaula = $aux[0];\n break;\n case \"modifier\":\n $infoparaula = $aux[1];\n break;\n case \"questpart\":\n $infoparaula = $aux[1];\n break;\n default:\n $infoparaula = $aux[0];\n break;\n }\n break;\n case \"adv\":\n switch ($type2) {\n case \"name\":\n $infoparaula = $aux[0];\n break;\n case \"verb\":\n $infoparaula = $aux[1];\n break;\n case \"adj\":\n $infoparaula = $aux[0];\n break;\n case \"adv\":\n $infoparaula = $aux[0];\n break;\n case \"expression\":\n $infoparaula = $aux[0];\n break;\n case \"modifier\":\n $infoparaula = $aux[1];\n break;\n case \"questpart\":\n $infoparaula = $aux[0];\n break;\n default:\n $infoparaula = $aux[0];\n break;\n }\n break;\n case \"expression\":\n switch ($type2) {\n case \"name\":\n $infoparaula = $aux[1];\n break;\n case \"verb\":\n $infoparaula = $aux[1];\n break;\n case \"adj\":\n $infoparaula = $aux[1];\n break;\n case \"adv\":\n $infoparaula = $aux[1];\n break;\n case \"expression\":\n $infoparaula = $aux[1];\n break;\n case \"modifier\":\n $infoparaula = $aux[1];\n break;\n case \"questpart\":\n $infoparaula = $aux[1];\n break;\n default:\n $infoparaula = $aux[0];\n break;\n }\n break;\n case \"modifier\":\n switch ($type2) {\n case \"name\":\n $infoparaula = $aux[0];\n break;\n case \"verb\":\n $infoparaula = $aux[1];\n break;\n case \"adj\":\n $infoparaula = $aux[0];\n break;\n case \"adv\":\n $infoparaula = $aux[0];\n break;\n case \"expression\":\n $infoparaula = $aux[0];\n break;\n case \"modifier\":\n $infoparaula = $aux[0];\n break;\n case \"questpart\":\n $infoparaula = $aux[0];\n break;\n default:\n $infoparaula = $aux[0];\n break;\n }\n break;\n case \"questpart\":\n switch ($type2) {\n case \"name\":\n $infoparaula = $aux[0];\n break;\n case \"verb\":\n $infoparaula = $aux[1];\n break;\n case \"adj\":\n $infoparaula = $aux[0];\n break;\n case \"adv\":\n $infoparaula = $aux[1];\n break;\n case \"expression\":\n $infoparaula = $aux[0];\n break;\n case \"modifier\":\n $infoparaula = $aux[1];\n break;\n case \"questpart\":\n $infoparaula = $aux[0];\n break;\n default:\n $infoparaula = $aux[0];\n break;\n }\n break;\n default:\n $infoparaula = $aux[0];\n break;\n }\n }\n $pictoid = $infoparaula->pictoid;\n $taula = $infoparaula->pictoType;\n $this->afegirParaula($idusu, $pictoid, $taula);\n $paraulesbones++;\n if ($taula == \"name\" || $taula == \"adj\") {\n // si hi havia modificadors en espera que s'havien introduït abans del nom o adj\n if ($queuedmodif) {\n for ($j=0; $j < count($queuedmodifs); $j++) {\n $this->afegirModifNom($idusu, $queuedmodifs[$j]);\n }\n // reiniciem l'array\n $queuedmodif = false;\n unset($queuedmodifs);\n $queuedmodifs = array();\n }\n else {\n // indiquem que hi ha un nom a on s'hi poden afegir els modificadors\n $nounentered = true;\n }\n }\n // si és un altre tipus de paraula\n else {\n // els modificadors de nom han d'anar engatxats al nom, així que si la paraula\n // anterior és diferent d'un nom, no volem que s'hi associïn els modificadors de nom\n $nounentered = false;\n }\n }\n break;\n }\n }\n } // Fi del for per cada paraula\n \n // si s'han introduït paraules, aleshores afegim la frase a la BBDD per expandir-la\n if ($paraulesbones > 0) {\n $this->passarFraseABBDD($idusu, $tipusfrase, $tempsverbal, $negativa);\n }\n }", "title": "" }, { "docid": "2106a665bdaa7f4a37bbadea09f10336", "score": "0.5021303", "text": "function replace_sepadaten($tmptext)\n{\n /*\n * Zulaessige Zeichen\n * Fuer die Erstellung von SEPA-Nachrichten sind die folgenden Zeichen in der\n * Kodierung gemaess UTF-8 bzw. ISO-885933 zugelassen.\n * ---------------------------------------------------\n * Zugelassener Zeichencode| Zeichen | Hexcode\n * Numerische Zeichen | 0 bis 9 | X'30' bis X'39'\n * Großbuchstaben | A bis Z | X'41' bis X'5A'\n * Kleinbuchstaben | a bis z | X'61' bis 'X'7A'\n * Apostroph | ' | X'27\n * Doppelpunkt | : | X'3A\n * Fragezeichen | ? | X'3F\n * Komma | , | X'2C\n * Minus | - | X'2D\n * Leerzeichen | | X'20\n * Linke Klammer | ( | X'28\n * Pluszeichen | + | X'2B\n * Punkt | . | X'2E\n * Rechte Klammer | ) | X'29\n * Schraegstrich | / | X'2F\n */\n $charMap = array(\n 'Ä' => 'Ae',\n 'ä' => 'ae',\n 'À' => 'A',\n 'à' => 'a',\n 'Ã�' => 'A',\n 'á' => 'a',\n 'Â' => 'A',\n 'â' => 'a',\n 'Æ' => 'AE',\n 'æ' => 'ae',\n 'Ã' => 'A',\n 'ã' => 'a',\n 'Ã…' => 'A',\n 'Ã¥' => 'a',\n 'Ç' => 'C',\n 'ç' => 'c',\n 'Ë' => 'E',\n 'ë' => 'e',\n 'È' => 'E',\n 'è' => 'e',\n 'É' => 'E',\n 'é' => 'e',\n 'Ê' => 'E',\n 'ê' => 'e',\n 'Ã�' => 'I',\n 'ï' => 'i',\n 'ÃŒ' => 'I',\n 'ì' => 'i',\n 'Ã�' => 'I',\n 'í' => 'i',\n 'ÃŽ' => 'I',\n 'î' => 'i',\n 'ß' => 'ss',\n 'Ñ' => 'N',\n 'ñ' => 'n',\n 'Å’' => 'OE',\n 'Å“' => 'oe',\n 'Ö' => 'Oe',\n 'ö' => 'oe',\n 'Ã’' => 'O',\n 'ò' => 'o',\n 'Ó' => 'O',\n 'ó' => 'o',\n 'Ô' => 'O',\n 'ô' => 'o',\n 'Õ' => 'O',\n 'õ' => 'o',\n 'Ø' => 'O',\n 'ø' => 'o',\n 'ß' => 'ss',\n 'Ü' => 'Ue',\n 'ü' => 'ue',\n 'Ù' => 'U',\n 'ù' => 'u',\n 'Ú' => 'U',\n 'ú' => 'u',\n 'Û' => 'U',\n 'û' => 'u',\n 'ÿ' => 'y',\n 'Ã�' => 'Y',\n 'ý' => 'y',\n '€' => 'EUR',\n '*' => '.',\n '$' => '.',\n '%' => '.',\n '&' => '+'\n );\n\n $ret = str_replace(array_keys($charMap), array_values($charMap), $tmptext);\n\n for ($i = 0; $i < strlen($ret); $i ++) {\n if (preg_match('/[^A-Za-z0-9\\'\\:\\?\\,\\-\\(\\+\\.\\)\\/]/', substr($ret, $i, 1))) {\n $ret = substr_replace($ret, ' ', $i, 1);\n }\n }\n return $ret;\n}", "title": "" }, { "docid": "05c05e4eeb028c1164f47eb986498a05", "score": "0.50207615", "text": "public function removeCharactersEspecial()\n\t{\n\t\t$this->info = preg_replace( '/[`^~\\'\"-]/', null, iconv( 'UTF-8', 'ASCII//TRANSLIT', $this->info));\n\n\t\treturn $this->info;\n\t}", "title": "" }, { "docid": "b4446eae315cf3236454f9c70f752666", "score": "0.5013703", "text": "public function remover() {\n\n $oDaoBpaMagnetico = new cl_lab_bpamagnetico();\n $oDaoFechaConferencia = new cl_lab_fechaconferencia();\n $oDaoFechamento = new cl_lab_fechamento();\n\n\n $oDaoBpaMagnetico->excluir(null, \" la55_i_fechamento = {$this->iCodigo}\");\n if ($oDaoBpaMagnetico->erro_status == 0) {\n throw new BusinessException(_M(MSG_COMPETENCIA.\"erro_ao_excluir_arquivo\"));\n }\n\n $oDaoFechaConferencia->excluir(null, \" la58_i_fechamento = {$this->iCodigo}\");\n if ($oDaoFechaConferencia->erro_status == 0) {\n throw new BusinessException(_M(MSG_COMPETENCIA.\"erro_ao_excluir_procedimentos\"));\n }\n\n $oDaoFechamento->excluir($this->iCodigo);\n\n if ($oDaoFechamento->erro_status == 0) {\n throw new BusinessException(_M(MSG_COMPETENCIA.\"erro_ao_excluir_fechamento\"));\n }\n\n\n }", "title": "" }, { "docid": "365792c4b13748c63f6254661325a836", "score": "0.50134695", "text": "function Borrar() {\n // Esborrem el contingut de l'arxiu\n $this->Arxiu = fopen($this->Nom, 'w+');\n // EL tanquem\n fclose($this->Arxiu);\n }", "title": "" }, { "docid": "061d9fbd3ee6a98357cf9b9cfa1bcc19", "score": "0.49925277", "text": "function buscarEspaciosReprobados($notaAprobatoria, $espaciosCursados) {\r\n \r\n $reprobados=isset($reprobados)?$reprobados:'';\r\n \r\n if (is_array($espaciosCursados)){\r\n foreach ($espaciosCursados as $value) {\r\n if (isset($value['NOTA'])&&($value['NOTA']<$notaAprobatoria||$value['CODIGO_OBSERVACION']==20||$value['CODIGO_OBSERVACION']==23||$value['CODIGO_OBSERVACION']==25)){\r\n if ($value['CODIGO_OBSERVACION']==19||$value['CODIGO_OBSERVACION']==22||$value['CODIGO_OBSERVACION']==24)\r\n {\r\n }else\r\n {\r\n $reprobados[]=$value['CODIGO'];\r\n }\r\n }\r\n }\r\n if(is_array($reprobados)){\r\n \r\n $reprobados= array_unique($reprobados);\r\n return $reprobados; \r\n \r\n }else{\r\n return 0; \r\n }\r\n \r\n }\r\n else\r\n {\r\n return 0;\r\n }\r\n }", "title": "" }, { "docid": "7d6047ff083edad924c5741c2b77c828", "score": "0.4991615", "text": "function strip_symbols( $text ) {\n\t$plus\t= '\\+\\x{FE62}\\x{FF0B}\\x{208A}\\x{207A}';\n\t$minus\t= '\\x{2012}\\x{208B}\\x{207B}';\n\n\t$units\t= '\\\\x{00B0}\\x{2103}\\x{2109}\\\\x{23CD}';\n\t$units .= '\\\\x{32CC}-\\\\x{32CE}';\n\t$units .= '\\\\x{3300}-\\\\x{3357}';\n\t$units .= '\\\\x{3371}-\\\\x{33DF}';\n\t$units .= '\\\\x{33FF}';\n\n\t$ideo\t= '\\\\x{2E80}-\\\\x{2EF3}';\n\t$ideo .= '\\\\x{2F00}-\\\\x{2FD5}';\n\t$ideo .= '\\\\x{2FF0}-\\\\x{2FFB}';\n\t$ideo .= '\\\\x{3037}-\\\\x{303F}';\n\t$ideo .= '\\\\x{3190}-\\\\x{319F}';\n\t$ideo .= '\\\\x{31C0}-\\\\x{31CF}';\n\t$ideo .= '\\\\x{32C0}-\\\\x{32CB}';\n\t$ideo .= '\\\\x{3358}-\\\\x{3370}';\n\t$ideo .= '\\\\x{33E0}-\\\\x{33FE}';\n\t$ideo .= '\\\\x{A490}-\\\\x{A4C6}';\n\n\treturn preg_replace(\n\t\t\tarray(\n\t\t\t// Remove modifier and private use symbols.\n\t\t\t'/[\\p{Sk}\\p{Co}]/u',\n\t\t\t// Remove mathematics symbols except + - = ~ and fraction slash\n\t\t\t'/\\p{Sm}(?<![' . $plus . $minus . '=~\\x{2044}])/u',\n\t\t\t// Remove + - if space before, no number or currency after\n\t\t\t'/((?<= )|^)[' . $plus . $minus . ']+((?![\\p{N}\\p{Sc}])|$)/u',\n\t\t\t// Remove = if space before\n\t\t\t'/((?<= )|^)=+/u',\n\t\t\t// Remove + - = ~ if space after\n\t\t\t'/[' . $plus . $minus . '=~]+((?= )|$)/u',\n\t\t\t// Remove other symbols except units and ideograph parts\n\t\t\t'/\\p{So}(?<![' . $units . $ideo . '])/u',\n\t\t\t// Remove consecutive white space\n\t\t\t'/ +/',\n\t\t\t),\n\t\t\t' ',\n\t\t\t$text );\n}", "title": "" }, { "docid": "2c1f5ea95b28997396ebe5b5ff0b16cf", "score": "0.49794888", "text": "function eliminarCarpeta(){\n //Recogemos el id de la carpeta actual \n $idCarpeta = $_SESSION[\"carpeta\"];\n //Recogemos la ruta\n $ruta = $_SESSION['ruta'];\n //Recogemos los datos de la carpeta para eliminarla fisicamente del sistema\n $datosCarpeta = $this->modelo->recogeCarpetaId($idCarpeta);\n //eliminamos las carpetas que pertenecen a esta de la base de datos y los archivos.\n $this->modelo->eliminarCarpeta($idCarpeta);\n //eliminamos las carpetas reales\n $this->DelTodo($ruta);\n $directorio = \"log/\" . $_SESSION['mail'] . \".txt\";\n $fp = fopen($directorio,\"a\");\n fwrite($fp, date(\"d-m-Y H:i:s\"). \" - Elimina la carpeta \" . $_SESSION['ruta'] . \" y todo lo que contiene.\" . PHP_EOL);\n fclose($fp);\n //Eliminaremos de la ruta el nombre de la carpeta\n $numLetras = strlen($datosCarpeta['NOM_CARPETA']);\n $numLetras++;//Añadimos 1 para eliminar '/'\n $numLetras = $numLetras - ($numLetras*2);//la hacemos negativa\n $_SESSION['ruta'] = substr($ruta, 0, $numLetras);\n //Recogemos la carpeta anterior \n $datosCarpeta = $this->modelo->recogeCarpetaId($datosCarpeta['ID_CARPETA_FORANA']);\n //ponermos la sesion carpeta con el nombre de la carpeta donde iremos.\n $_SESSION['carpeta']= $datosCarpeta['ID_CARPETA'];\n //Ahora recogemos todos los archivos de la carpeta\n require_once CARPETAMODELOS . \"archivos.php\";\n $this->modeloArchivo = new modeloArchivos;\n $archivosCarpeta = $this->modeloArchivo->archivosCarpeta($datosCarpeta['ID_CARPETA']);\n $carpetasCarpeta = $this->modelo->todasCarpetas($datosCarpeta['ID_CARPETA']);\n $todasCarpetas = $this->modelo->todasCarpetasUser($_SESSION['idUser']);\n require_once CARPETAVISTAS . \"usuari.php\";\n }", "title": "" }, { "docid": "23aa7acc61dccbb6e0e4ff720cd82e6d", "score": "0.49541897", "text": "function my_trim($chaine){\n $retour=\"\";\n for ($i=0; $i <tailleTableu($chaine) ; $i++) { \n if (!($chaine[$i]==\" \")) {\n $retour .= $chaine[$i];\n }\n }\n echo $retour;\n}", "title": "" }, { "docid": "896f96c59e90abfb2d594938315a3162", "score": "0.4953629", "text": "public function remove_car_ret($dirty)\n\t{\n\t\t$clean = preg_replace('/\\x0D/', '', $dirty);\n\t\treturn $clean;\n\t}", "title": "" }, { "docid": "e44f6bfe6f57f9f978842d803336f05e", "score": "0.49511427", "text": "public static function replaceAcents($texto1) {\r\n$find = array('á', 'é', 'í', 'ó', 'ú', 'ñ');\r\n$repl = array('&aacute;', '&eacute;', '&iacute;', '&oacute;', '&uacute;', '&ntilde;');\r\n$texto1 = str_replace ($find, $repl, $texto1);\r\n\r\n\r\n//Rememplazamos caracteres especiales latinos mayusculas\r\n$find = array('Á', 'É', 'Í', 'Ó', 'Ú', 'Ñ');\r\n$repl = array('&Aacute;', '&Eacute;', '&Iacute;', '&Oacute;', '&Uacute;', '&Ntilde;');\r\n$texto1 = str_replace ($find, $repl, $texto1);\r\n\r\nreturn $texto1;\r\n\r\n}", "title": "" }, { "docid": "26c416e126d8506a6fa1012ccf333799", "score": "0.49299946", "text": "public static function quitar_tildes($cadena) {\n $no_permitidas= array (\"á\",\"é\",\"í\",\"ó\",\"ú\",\"Á\",\"É\",\"Í\",\"Ó\",\"Ú\",\"ñ\",\"À\",\"Ã\",\"Ì\",\"Ò\",\"Ù\",\"Ù\",\"à \",\"è\",\"ì\",\"ò\",\"ù\",\"ç\",\"Ç\",\"â\",\"ê\",\"î\",\"ô\",\"û\",\"Â\",\"Ê\",\"ÃŽ\",\"Ô\",\"Û\",\"ü\",\"ö\",\"Ö\",\"ï\",\"ä\",\"«\",\"Ò\",\"Ï\",\"Ä\",\"Ë\");\n $permitidas= array (\"a\",\"e\",\"i\",\"o\",\"u\",\"A\",\"E\",\"I\",\"O\",\"U\",\"n\",\"N\",\"A\",\"E\",\"I\",\"O\",\"U\",\"a\",\"e\",\"i\",\"o\",\"u\",\"c\",\"C\",\"a\",\"e\",\"i\",\"o\",\"u\",\"A\",\"E\",\"I\",\"O\",\"U\",\"u\",\"o\",\"O\",\"i\",\"a\",\"e\",\"U\",\"I\",\"A\",\"E\");\n $texto = str_replace($no_permitidas, $permitidas ,$cadena);\n return $texto;\n }", "title": "" }, { "docid": "f0b2c3b9a393b6d8e45660ce3cec1fbb", "score": "0.4922998", "text": "function filter_char($text) {\n\t$content = str_replace(\"ð\",\"&#273;\",$text);\n\t$content = str_replace(\"õ\",\"&#417;\",$content);\n\treturn $content;\n}", "title": "" }, { "docid": "474b09c4c025c27655511266193070f0", "score": "0.49116918", "text": "function eliminarRubro(){\n\t\t$this->procedimiento='scger.ft_rubro_ime';\n\t\t$this->transaccion='SCGER_RUB_ELI';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_rubro','id_rubro','int4');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "96fcef878ed65c36f21d583d1a76853a", "score": "0.49110854", "text": "static function postlude()\n {\n $pattern_array_1 = array(\"/U/\",\"/I/\");\n $replacement_array_1 = array(\"u\",\"i\");\n $pattern_array_2 = array(\"/a`/\",\"/e`/\",\"/i`/\",\"/o`/\",\"/u`/\");\n $replacement_array_2 = array(\"à\",\"è\",\"ì\",\"ò\",\"ù\");\n self::$buffer = preg_replace($pattern_array_1, $replacement_array_1,\n self::$buffer);\n self::$buffer = preg_replace($pattern_array_2, $replacement_array_2,\n self::$buffer);\n }", "title": "" }, { "docid": "c7fa7599c72d2d2cf59e12c8c0644d9f", "score": "0.49079484", "text": "private function illegalCharacters() : void\n {\n // Replace - and _ and whitespace\n $this->vin = str_replace('-', '', $this->vin);\n $this->vin = str_replace(' ', '', $this->vin);\n $this->vin = str_replace('_', 0, $this->vin);\n\n // Replace the illegal characters\n foreach(VINConstants::EXCLUDED_LETTERS as $letter){\n if(strpos($this->vin, $letter) !== false)\n $this->vin = str_replace($letter, ($letter === 'I' ? 1 : 0), $this->vin);\n }\n }", "title": "" }, { "docid": "7b9a6e1155ceeb148641f1eb2a5d4f2b", "score": "0.49026656", "text": "public function quitar_tildes($cadena) {\n\t\t$no_permitidas = array (\"á\",\"é\",\"í\",\"ó\",\"ú\",\"Á\",\"É\",\"Í\",\"Ó\",\"Ú\",\"ñ\",\"À\",\"Ã\",\"Ì\",\"Ò\",\"Ù\",\"Ù\",\"à \",\"è\",\"ì\",\n\t\t \"ò\",\"ù\",\"ç\",\"Ç\",\"â\",\"ê\",\"î\",\"ô\",\"û\",\"Â\",\"Ê\",\"ÃŽ\",\"Ô\",\"Û\",\"ü\",\"ö\",\"Ö\",\"ï\",\n\t\t \"ä\",\"«\",\"Ò\",\"Ï\",\"Ä\",\"Ë\");\n\t\t$permitidas = array (\"a\",\"e\",\"i\",\"o\",\"u\",\"A\",\"E\",\"I\",\"O\",\"U\",\"n\",\"N\",\"A\",\"E\",\"I\",\"O\",\"U\",\"a\",\"e\",\"i\",\"o\",\"u\",\n\t\t \"c\",\"C\",\"a\",\"e\",\"i\",\"o\",\"u\",\"A\",\"E\",\"I\",\"O\",\"U\",\"u\",\"o\",\"O\",\"i\",\"a\",\"e\",\"U\",\"I\",\"A\",\"E\");\n\t\t$texto = str_replace($no_permitidas, $permitidas ,$cadena);\n\t\treturn $texto;\n\t}", "title": "" }, { "docid": "d75d7f1869c58d83dac03a1509120592", "score": "0.48992422", "text": "public function cleanData($value)\n\t{\n\t\t$value = preg_replace('/\\xA0/u', ' ', $value); //Elimina %C2%A0 del principio y resto de espacios\n\t\t$value = trim(str_replace(array(\"\\r\", \"\\n\"), '', $value)); //elimina saltos de linea al principio y final\n\t\treturn $value;\n\t}", "title": "" }, { "docid": "c3c998e42d40eefa07b6919cbe5f2d3f", "score": "0.48808867", "text": "function destacaBusca($texto,$busca) \n{\n\t$destbusca = \"<b>$busca</b>\";\n\t$retorno = str_ireplace($busca, $destbusca, $texto);\n\t\n\treturn $retorno;\n}", "title": "" }, { "docid": "8326cbbb30b350074d33a60454298a00", "score": "0.48782676", "text": "function eliminarMcoS(){\n\t\t$this->procedimiento='obingresos.ft_mco_s_ime';\n\t\t$this->transaccion='OBING_IMCOS_ELI';\n\t\t$this->tipo_procedimiento='IME';\n\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_mco','id_mco','int4');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n }", "title": "" }, { "docid": "ffc6cd68da0a97bc5667f7150f98130c", "score": "0.48577955", "text": "function normalizarCodificacionCruzarComprobantes($cadenaBusqueda,$cadenaReemplazo) {\n\t\t// Busca y reemplaza ocurrencias en una tabla\n\t\t\t$cnx= conectar_postgres();\n\t\t\t$cons = \"UPDATE Contabilidad.CruzarComprobantes SET compania = replace( compania,'$cadenaBusqueda','$cadenaReemplazo'), comprobante = replace( comprobante,'$cadenaBusqueda','$cadenaReemplazo'), cruzarcon = replace( cruzarcon,'$cadenaBusqueda','$cadenaReemplazo')\";\n\t\t\t\n\t\t\t$res = @pg_query($cnx , $cons);\n\t\t\t\tif (!$res) {\n\t\t\t\t\techo \"<p class='error1'> Error en la normalizacion de la codificacion </p>\".pg_last_error().\"<br>\";\n\t\t\t\t\techo \"<p class= 'subtitulo1'>Comando SQL </p> <br>\".$cons.\"<br/> <br/> <br/>\"; \n\t\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "bc57c61b4df6c0abecc75fc9aca67a73", "score": "0.48487312", "text": "function buscarDatosEspaciosReprobados($espaciosSinAprobar,$espaciosCursados) {\r\n\r\n $espacioNoAprobado=array();\r\n \r\n //para cada espacio sin aprobar\r\n foreach ($espaciosSinAprobar as $codigoEspacioSinAprobar) {\r\n //buscar los datos en los espacios cursados\r\n foreach ($espaciosCursados as $espacio) {\r\n\r\n if($espacio['CODIGO']==$codigoEspacioSinAprobar){\r\n $espacioNoAprobado[]=$espacio;\r\n //echo '<B>PERDIDA</B><br>';\r\n }else\r\n {\r\n //echo 'pasada<br>'; \r\n }\r\n }\r\n \r\n } \r\n \r\n return $espacioNoAprobado;\r\n }", "title": "" }, { "docid": "93c5f1cf4645bd7336f328e5bc0d2b6f", "score": "0.48486978", "text": "function borra(){\n $cartas = OperaBD::selec('datos.cartas',array('identificador'),null,array('idemisor'=>$this->idpersonas,'idreceptor'=>$this->idpersonas),null,'OR');\n if ($cartas) {\n $identificadores ='';\n foreach ($cartas as $key => $value) {\n $identificadores .= $value['identificador'].' - ';\n }\n return 'No se puede borrar porque está incluida en las cartas con los siguientes identificadores:\\n'.$identificadores;\n }\n $cual = array('idpersonas'=>$this->idpersonas);\n $resultado = OperaBD::borra('datos.personas',$cual);\n if ($resultado) {\n return $resultado;\n }\n }", "title": "" }, { "docid": "977d5dc619232706ffc59919611caff2", "score": "0.48408034", "text": "function suppEspace(){\n\t\t \t$this->var1=preg_replace('/ /','', $this->texte);\n\t\t \t$this->var1=strtoupper($this->var1);\n\t\t \treturn \t($this->var1);\n\t\t }", "title": "" }, { "docid": "7943d165010e256e16c34002c42ba23c", "score": "0.48314357", "text": "public function cleanDNA()\n {\n self::sanitise($this->dna);\n }", "title": "" }, { "docid": "7d57b9bdb588d26b30208b44796e4450", "score": "0.48253977", "text": "function setapellidos($value)\n {\n $this->apellidos = trim(preg_replace('/\\s\\s+/', ' ', $value));\n }", "title": "" }, { "docid": "252a11103a12a142698dbdbeb50ffe0b", "score": "0.48217162", "text": "function verificarBusquedaQuitOrdenamiento()\n {\n\n $cadena=$this->input->post('TextBuscar');\n\n $splitComas=explode(\",\",$cadena);\n\n $where='';\n $indice=0;\n\n $splitEspacios=explode(\" \",$cadena);\n\n foreach($splitEspacios as $valor)\n {\n ///verificar que no contenga el, la, los, las, ellos, cuando,por, una,un, en,es,para,cuándo, qué, porque,porqué,de\n if(strlen($valor)>0)\n {\n $like=' codigo like \"%'.$valor.'%\" ';\n $or=' or ';\n if($indice==0)\n {\n $where=$where.' '.$like;\n $indice=$indice+1;\n }\n else\n {\n $where=$where.' '.$or.' '.$like;\n }\n }\n\n }\n if(strlen($where)>0)\n $results=$this->Ordenamiento_models->regresaBusquedaCountDesactivar($where);\n else $results='0';\n echo $results;\n\n }", "title": "" }, { "docid": "9ac7d716d448b653e51a4b8ce5074beb", "score": "0.48165554", "text": "function verificarInscrito($retorno,$espaciosInscritos) {\n //verifica si el espacio ya ha sido inscrito\n $inscrito='0';\n foreach ($espaciosInscritos as $inscritos)\n {\n if($inscritos['CODIGO']==$this->datosInscripcion['codEspacio'])\n {\n $inscrito='ok';\n if ($inscritos['ID_GRUPO']!=$this->datosInscripcion['id_grupoAnterior'])\n {\n $inscrito=$inscritos['GRUPO'];\n break;\n }\n }\n }\n if($inscrito!='ok')\n {\n $retorno['mensaje']=\"El espacio académico no se encuentra inscrito en el grupo \".$this->datosInscripcion['grupoAnterior'].\". No se puede cambiar de grupo.\";\n $this->enlaceNoCambio($retorno);\n }\n }", "title": "" }, { "docid": "46acf86983e1489a32e733beca5ec784", "score": "0.48164976", "text": "function limpia_espacios($cadena)\n {\n $cadena = str_replace(' ', '_', $cadena);\n return $cadena;\n }", "title": "" }, { "docid": "0a2c6db1f4194bb8dd103a10f1e56bce", "score": "0.48008582", "text": "private function cleanConvertedText( string &$content ) {\n\t\t// Remove any non-breaking space\n\t\t$content = str_replace( ' ', ' ', $content );\n\t\t// Remove empty lines\n\t\t$content = preg_replace( '/(\\n=+) (<br \\/>)\\n/', '$1 ', $content );\n\t\t// Remove empty spans\n\t\t$content = preg_replace( '/\\R+<span> <\\/span>/', '', $content );\n\t}", "title": "" }, { "docid": "d04216bb9fa4dcddae15591a3f78df36", "score": "0.47749913", "text": "function cleansing($string){\n\t\t$newstr = html_entity_decode($string);\n\t\t$newstr = strip_tags($newstr);\n\n\t\t// 2. Menghapus angka (including Western Arabic)\n\t\t$newstr = preg_replace('/\\d+/u', ' ', $newstr);\n\n\t\t// 3. Menghapus tanda baca (punctuation)\n\t\t$newstr = preg_replace('/\\p{P}/', ' ', $newstr);\n\n\t\t// 4. Menghapus whitepace (karakter kosong)\n\t\t$newstr = preg_replace('/\\s/', ' ', $newstr);\n\n\t\treturn $newstr;\n\n\t}", "title": "" }, { "docid": "7bb7f17396c863bd7c7beb691d85456f", "score": "0.47736752", "text": "function eliminarPrueba(){\n\t\t$this->procedimiento='cobra.f_tcb_prueba_ime';\n\t\t$this->transaccion='CB_PRUEBA_ELI';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_prueba','id_prueba','int4');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "ea63d3a549959c8cf232089ff4a99edc", "score": "0.47716036", "text": "function deleteTooMuchSpacesAndStaffSlashS($deleteSpacesText)\n{\n \n \n //A bit longer timebreak right now\n return preg_replace(\"/\\)\\+\\)/\", \"Time break time break time break time break time break Time break time break time break time break time break Time break time break time break time break time break Time break time break time break time break time break Time break time break time break \", $deleteSpacesText);\n \n \n //return preg_replace(\"/[А-Яа-я]/\", \"\", $deleteSpacesText);\n //return preg_replace(\"/\\^\\/\\/w\\*\\r\\$/\", \"\", $deleteSpacesText);\n}", "title": "" }, { "docid": "3af67d55438e3ed16c280c9da91b3c50", "score": "0.47675225", "text": "function quele($texte){\n $txtsanse=sansle(trim($texte));\n if ($txtsanse!=trim($texte))\n $texte= str_replace(\"$txtsanse\",\"\",\"$texte\");\n else $texte='';\n return trim($texte); \n}", "title": "" }, { "docid": "a6923af7546e5d4fc95882318cd74102", "score": "0.47604147", "text": "function EliminaElemntoArray($Agujas,$pajar){\r\n\t$retorno=array();\r\n\t$comodin='';\r\n\t$cantidad=0;\r\n\tforeach ($Agujas as $Indice => $Valor){\r\n\t\t//Divide para buscar\r\n\t\t//$valActi=explode(';',$Valor['ACTIVIDAD']);\r\n\t\t//Buscar el valor en el Pajar, si NO esta\r\n\t\t//Eliminara todo el KEY del array\r\n\t\t//echo '<br>'.$valActi[0].'<br>';\r\n\r\n\t\tif(array_search(trim($Valor['TT']), $pajar)){\r\n\t\t\t\r\n\t\t\t$retorno[]=$Agujas[$Indice];\r\n\t\t\t\r\n\t\t}\r\n\t}\r\n\t//Retornamos el arreglo \"Depurado\"\r\n\treturn $retorno;\r\n}", "title": "" }, { "docid": "19bf2accc85a5b0dc123693b289eb131", "score": "0.4754818", "text": "function precofrete($origem='35300-190',$destino='35300-190',$peso='0.5',$servico='40010')\n{\n\t#####################################\n\t# Codigo dos Servicos dos Correios #\n\t# FRETE PAC = 41106 #\n\t# FRETE SEDEX = 40010 #\n\t# FRETE SEDEX 10 = 40215 #\n\t# FRETE SEDEX HOJE = 40290 #\n\t# FRETE E-SEDEX = 81019 #\n\t# FRETE MALOTE = 44105 #\n\t# FRETE NORMAL = 41017 #\n\t# SEDEX A COBRAR = 40045 #\n\t#####################################\n\t$servicos=array(\n\t\t41106=>\"PAC\",\n\t\t40010=>\"SEDEX\",\n\t\t40215=>\"SEDEX 10\",\n\t\t40290=>\"SEDEX HOJE\",\n\t\t81019=>\"E-SEDEX\",\n\t\t44105=>\"MALOTE\",\n\t\t41017=>\"NORMAL\",\n\t\t40045=>\"SEDEX A COBRAR\"\n\t);\n\tif (strlen($origem)<=0)$origem='35300-190';\n\tif (strlen($destino)<=0)$destino='35300-190';\n\tif (strlen($peso)<=0)$peso='0.5';\n\tif (strlen($servico)<=0 || !in_array($servico,array_keys($servicos)))$servico='40010';\n\t// Codigo do Servico que deseja calcular, veja tabela acima:\n\t// CEP de Origem, em geral o CEP da Loja\n\t// CEP de Destino, voce pode passar esse CEP por GET ou POST vindo de um formulario\n\t$destino = eregi_replace(\"([^0-9])\",\"\",$destino);\n\t$origem = eregi_replace(\"([^0-9])\",\"\",$origem);\n\t// Peso total do pacote em Quilos, caso seja menos de 1Kg, ex.: 300g, coloque 0.300\n\t// URL de Consulta dos Correios\n\t$correios = \"http://www.correios.com.br/encomendas/precos/calculo.cfm?resposta=xml&servico=\".$servico.\"&cepOrigem=\".$origem.\"&cepDestino=\".$destino.\"&peso=\".$peso.\"&MaoPropria=N&avisoRecebimento=N\";\n\t// Capta as informacoes da pagina dos Correios\n\t$correios_info = file($correios) or die('error');\n\t// Processa as informacoes vindas do site dos correios em um Array\n\t$info=implode(\"\",$correios_info);\n//\tforeach($correios_info as $info){\n\t\t// Busca a informacao do Preco da Postagem\n\t\tif(preg_match(\"/\\<servico_nome>(.*)\\<\\/servico_nome>/\",$info,$servico_nome)){\n\t\t\t$servico_nome= $servico_nome[0];\n\t\t}\n\t\tif(preg_match(\"/\\<preco_postal>(.*)\\<\\/preco_postal>/\",$info,$preco)){\n\t\t\t$preco = $preco[0];\n\t\t}\n\t\tif(preg_match(\"/\\<uf_destino>(.*)\\<\\/uf_destino>/\",$info,$uf_destino)){\n\t\t\t$uf_destino = $uf_destino[0];\n\t\t}\n\t\tif(preg_match(\"/\\<uf_origem>(.*)\\<\\/uf_origem>/\",$info,$uf_origem)){\n\t\t\t$uf_origem = $uf_origem[0];\n\t\t}\n\t\tif(preg_match(\"/\\<cep_destino>(.*)\\<\\/cep_destino>/\",$info,$cep_destino)){\n\t\t\t$cep_destino = $cep_destino[0];\n\t\t}\n\t\tif(preg_match(\"/\\<cep_origem>(.*)\\<\\/cep_origem>/\",$info,$cep_origem)){\n\t\t\t$cep_origem = $cep_origem[0];\n\t\t}\n\t\tif(preg_match(\"/\\<codigo>(.*)\\<\\/codigo>/\",$info,$coderro)){\n\t\t\t$coderro = $coderro[0];\n\t\t}\n\t\tif(preg_match(\"/\\<descricao>(.*)\\<\\/descricao>/\",$info,$errodesc)){\n\t\t\t$errodesc = $errodesc[0];\n\t\t}\n//\t}\n\t\tif (strlen($errodesc)>23){\n\t\t\t$erro=array($coderro,$errodesc);\n\t\t}else{\n\t\t\t$erro=0;\n\t\t}\n\t\treturn array($servico_nome,$preco.\" \".$matches[1][6],$uf_origem,$uf_destino,$cep_origem,$cep_destino,$erro);\n}", "title": "" }, { "docid": "b04d9e9dd017ef35e67e864ec61e282b", "score": "0.47395134", "text": "public function removeEncodedChars(): void {\n $csvArray = $this->csvData;\n $cleanCsv = [$csvArray[0]];\n \n $start = 1;\n $limit = count($csvArray);\n $step = 1;\n $generate = function(int $start, int $limit, int $step): Generator {\n // e.g. 0 <= 10\n if($start <= $limit) {\n if($step <= 0) {\n $info = \"Generator is counting up, the step has to be greater than 0\";\n throw new \\LogicException($info);\n }\n \n for($i = $start; $i < $limit; $i += $step) {\n yield $i;\n }\n }\n // e.g. 10 <= 0\n else /* start >= limit */ {\n if($step >= 0) {\n $info = \"Generator is counting down, so step has to be negative\";\n throw new \\LogicException($info);\n }\n \n for($i = $start; $i >= $limit; $i += $step) {\n yield $i;\n }\n }\n };\n \n try {\n /** LOOP OVER RECORDS **/\n foreach($generate($start, $limit, $step) as $i) {\n // $record will be the csv row\n $record = $csvArray[$i];\n $cleanCsv[$i] = $record; // initialize an array\n // $i is basically the row\n $row = $i;\n $firstField = '';\n \n /** LOOP OVER FIELDS **/\n for($f = 0; $f < count($record); $f++) {\n // field in the current record\n $field = trim($record[$f]);\n $multiSpacePattern = \"/\\s{2,}/\";\n $matchMultiSpace = preg_match($multiSpacePattern, $field);\n if($matchMultiSpace === 1) {\n preg_replace($multiSpacePattern, ' ', $field);\n }\n $cleanField = '';\n // $f is basically the column\n $column = $f;\n if($f === 0) {\n $firstField = $field;\n }\n // preg_match('/[^\\x20-\\x7e]/', $field)\n \n /** LOOP OVER EACH CHAR **/\n for($c = 0; $c < strlen($field); $c++) {\n $ch = $field[$c];\n \n // _ENCODE REPLACE\n if(!$this->isEncodedChar($ch, $row, $column, $firstField)) {\n $cleanField .= $ch;\n }\n //else {$cleanField .= \"\";}\n }\n \n $record[$f] = trim($cleanField);\n \n } // END OF: looping over each field\n \n $cleanCsv[$i] = $record;\n \n } // END OF: looping over each record\n }\n catch(\\Exception $e) {\n $exceptionMessage = $e->getMessage();\n exit(\"\\n__>> RSM Exception: $exceptionMessage\\n\");\n }\n \n $break = 'point';\n $cleanFileName = $this->fileName . '-sanitized';\n CsvParseModel::export2csv($cleanCsv, $this->path2directory, $cleanFileName);\n $this->sanitizedFilePath = $this->path2directory . DIRECTORY_SEPARATOR . $cleanFileName;\n \n }", "title": "" }, { "docid": "5ba22b49dcc53850f8d8f1fac1641812", "score": "0.4737236", "text": "function desformatarCPF ($aValor)\r\n\r\n{\r\n\treturn empty ($aValor) ? '' : substr (manterDigitosSomente ($aValor), 0, 11);\r\n}", "title": "" }, { "docid": "1bc13c923024581837453b0c3877e6d3", "score": "0.47334316", "text": "function armarCadenaNombres($datosEstudiante) {\n\t\tforeach ( $datosEstudiante as $key => $value ) {\n\t\t\t// echo $key.'=>'.$value['NOMBRE'].'<br>';\n\t\t\t$cadenaNombres .= $value ['NOMBRE'] . ',';\n\t\t}\n\t\t\n\t\t// quita el ultimo caracter de la cadena, en este caso la ultima coma (,)\n\t\t$cadenaNombres = substr ( $cadenaNombres, 0, strlen ( $cadenaNombres ) - 1 );\n\t\t\n\t\treturn $cadenaNombres;\n\t}", "title": "" }, { "docid": "660f0f61657a4e65b4a441f661f27626", "score": "0.47297683", "text": "function castellanizarSelectores () {\n\t\t$reglas = array();\n\t\t$encontrados = preg_split('/^(.*\\s?\\{)\\s*$/m', $this->css, -1, PREG_SPLIT_NO_EMPTY|PREG_SPLIT_DELIM_CAPTURE);\n\t\tfor ($i=0; $i<count($encontrados); $i++) {\n\t\t\tif (preg_match('/\\{/', $encontrados[$i])) {\n\t\t\t\t$reglas[$i] = $encontrados[$i] . $encontrados[$i+1];\n\t\t\t\t$i++;\n\t\t\t} else {\n\t\t\t\t$rest[$i] = $encontrados[$i];\n\t\t\t}\n\t\t}\n\t\tsort($reglas);\n\t\t$this->css = join(\"\\n\", $reglas);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bec54965801b450cde4d4b09aeb844df", "score": "0.47271875", "text": "public function removeAllExceptCharacters($data)\n {\n self::checkIfString($data);\n\n $output = '';\n foreach (str_split($data) as $character) {\n if (in_array($character, $this->characterList)) {\n $output .= $character;\n }\n }\n\n return $output;\n }", "title": "" }, { "docid": "f3baf95b6debb50f6af31c97c7bd7a70", "score": "0.4724027", "text": "function clean_up( $TEXT ){\n\t$FIND = array(',','\\'&#44;\\'');\n\t$REPLACE = array(\"&#44;\",\"','\");\n\treturn str_ireplace($FIND, $REPLACE, $TEXT);\n}", "title": "" }, { "docid": "a23920850b3356e1d37083275b985569", "score": "0.47098634", "text": "function substitution(){\n $Alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n $_alphabet = str_split($Alphabet);\n\n if(isset($_FILES['messagecode']) and trim($_FILES['messagecode']['tmp_name'])!='')\n MessageDansFichier();\n\n if( isset($_POST['message']) and isset($_POST['clef']) ){\n\n if( trim($_POST['message'])!='' and trim($_POST['clef'])!='' and preg_match(\"#^[A-Za-z]{26}$#\", $_POST['clef']) ){\n\n $estCorrecte = true;\n $_clef = strtoupper($_POST['clef']);\n foreach($_alphabet as $v){\n if(substr_count($_clef, $v)!=1){\n $estCorrecte = false;\n break;\n }\n }\n if($estCorrecte){\n $_POST['message'] = mb_strtoupper($_POST['message'], \"utf-8\");\n\n $_POST['message'] = preg_replace(\"#É|È|Ë|Ê#\", \"E\", $_POST['message']);\n $_POST['message'] = preg_replace(\"#Î|Ï#\", \"I\", $_POST['message']);\n $_POST['message'] = preg_replace(\"#Ô#\", \"O\", $_POST['message']);\n $_POST['message'] = preg_replace(\"#À|Â#\", \"A\", $_POST['message']);\n $_POST['message'] = preg_replace(\"#Ù#\", \"U\", $_POST['message']);\n $_POST['message'] = preg_replace(\"#Ç#\", \"C\", $_POST['message']);\n\n $Message = $_POST['message'];\n $_Message = str_split($Message);\n\n $_POST['clef'] = strtoupper($_POST['clef']);\n $_customAlphabet = str_split($_POST['clef']);\n\n foreach($_Message as $v){\n for($i=0; $i<26; $i++){\n if($v == $_alphabet[$i]){\n $_MessageCrypt[] = $_customAlphabet[$i];\n }\n }\n }\n\n $MessageCrypt = implode($_MessageCrypt);\n echo \"Votre message crypté: <br>\";\n echo '<p class=\"message\">'.$MessageCrypt.'</p>';\n }\n else\n echo \"Vérifiez la clef\";\n }\n else\n echo \"Vérifiez la clef\";\n }\n }", "title": "" }, { "docid": "29fa9dafa06096d86d39e0bc2716fbcd", "score": "0.4700931", "text": "static function step3a()\n {\n $vowels = array (\"a\",\"e\",\"i\",\"o\",\"a`\",\"e`\",\"i`\",\"o`\");\n\n //Get R1,R2 and RV\n self::getRegions();\n\n //If a character from the above is found in RV, delete it\n foreach($vowels as $character) {\n $pos = self::checkForSuffix(self::$buffer,$character);\n if($pos !== false){\n if(self::in(self::$rv_string,$character)){\n self::$buffer = substr_replace(self::$buffer, \"\", $pos,\n strlen($character));\n break;\n }\n }\n }\n //If preceded by i, delete if in RV\n self::getRegions();\n $pos = self::checkForSuffix(self::$buffer,\"i\");\n if($pos !== false){\n if(self::in(self::$rv_string,\"i\"))\n self::$buffer = substr_replace(self::$buffer,\"\",$pos,1);\n }\n }", "title": "" }, { "docid": "1faddaab7c3ee68ea498d0f0be75ebf1", "score": "0.4693094", "text": "function yz_remove_emoji( $content ) {\n\n // Clear Content .\n $content = preg_replace('/&#x[\\s\\S]+?;/', '', $content );\n\n return $content;\n}", "title": "" }, { "docid": "7b9aababae4bf136961f2f49c94983f2", "score": "0.4690649", "text": "private function procesaCiclo() {\n\t\tpreg_match_all ('/<ciclo ([a-zA-Z0-9\\-_]*?)>/', $this->_html, $_etiquetas);\n\t\tforeach ($_etiquetas[0] as $_clave => $_valor) {\n\t\t\t$_ciclo = preg_replace('/<ciclo ([a-zA-Z0-9\\-_]*?)>/', \"\\\\1\", $_valor);\n\t\t\tif(isset(get_object_vars($this)[$_ciclo])) {\n\t\t\t\t$_arreglo = get_object_vars($this)[$_ciclo];\n\t\t\t\t$_posInicial = strpos($this->_html, '<ciclo '.$_ciclo.'>') + strlen('<ciclo '.$_ciclo.'>');\n\t\t\t\t$_posInicialAux = (strpos($this->_html, '<ciclo '.$_ciclo.'>') - strlen('<ciclo '.$_ciclo.'>')) - 1;\n\t\t\t\t$_posFinal = strpos($this->_html, '</ciclo '.$_ciclo.'>');\n\t\t\t\t$_codigo = substr($this->_html, $_posInicial, $_posFinal-$_posInicial);\n\t\t\t\t$_codigoReemplazo = \"\";\n\t\t\t\tif(is_array($_arreglo)) {\n\t\t\t\t\tforeach ($_arreglo as $_elemento) {\n\t\t\t\t\t\t$_codigoReemplazo .= $_codigo;\n\t\t\t\t\t\tpreg_match_all ('#\\{([a-z0-9\\-_]*?)\\}#is', $_codigo, $_variables);\n\t\t\t\t\t\tforeach ($_variables[1] as $_variable) {\n\t\t\t\t\t\t\tif(isset($_elemento[$_variable])) {\n\t\t\t\t\t\t\t\tif(Sfphp::esEntero($_elemento[$_variable])) {\n\t\t\t\t\t\t\t\t\t$_codigoReemplazo = str_replace(\"{\".$_variable.\"}\", $_elemento[$_variable], $_codigoReemplazo);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(Sfphp::esFlotante($_elemento[$_variable])) {\n\t\t\t\t\t\t\t\t\t$_codigoReemplazo = str_replace(\"{\".$_variable.\"}\", number_format($_elemento[$_variable],2,\".\",\",\"), $_codigoReemplazo);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif($_fecha = Sfphp::esFecha($_elemento[$_variable])) {\n\t\t\t\t\t\t\t\t\t$_codigoReemplazo = str_replace(\"{\".$_variable.\"}\", date_format($_fecha, 'Y-m-d'), $_codigoReemplazo);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(Sfphp::esCadena($_elemento[$_variable])) {\n\t\t\t\t\t\t\t\t\t$_codigoReemplazo = str_replace(\"{\".$_variable.\"}\", trim($_elemento[$_variable]), $_codigoReemplazo);\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\t$this->_html=substr_replace($this->_html, $_codigoReemplazo, strpos($this->_html, '<ciclo '.$_ciclo.'>'), $_posFinal - $_posInicialAux);\n\t\t\t\t} else {\n\t\t\t\t\t$this->_html = str_replace(\"<ciclo \".$_ciclo.\">\", \"El ciclo {$_ciclo} no existe\", $this->_html);\n\t\t\t\t\t$this->_html = str_replace(\"</ciclo \".$_ciclo.\">\", \"\", $this->_html);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->_html = str_replace(\"<ciclo \".$_ciclo.\">\", \"El ciclo {$_ciclo} no existe\", $this->_html);\n\t\t\t\t$this->_html = str_replace(\"</ciclo \".$_ciclo.\">\", \"\", $this->_html);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a3a608857b647de486da573231374ccf", "score": "0.46901765", "text": "function desincluir() {\n\t\t$p =& $this->post;\n\t\tif( $this->_get_diagno($p->dg) and $this->_get_preg($p->pg,'diag') ) {\n\t\t\t$this->db()->un('objetos_diagnos_preguntas')->eliminar()\n\t\t\t\t->si('id = ?', $this->preg['id'])\n\t\t\t\t->si('id_diagnostico = ?', $this->diagno['id'])\n\t\t\t\t->ejecutar();\n\t\t\t$s = 'OK';\n\t\t} else {\n\t\t\t$s = 'NO_PERMISO';\n\t\t}\n\t\t$this->json->status = $s;\n\t}", "title": "" }, { "docid": "e3639c778b2aa50bc4032387f14d01f9", "score": "0.4686757", "text": "function ads_spaces_remove() {\n}", "title": "" }, { "docid": "edb51265eeae9255b2dae2968e502de8", "score": "0.4685389", "text": "public function removeAcentos($str) {\r\n\r\n\t\t// Variavel recebendo a string a ser tratada\r\n\t\t$var = $str;\r\n\r\n\t\t// Variavel recebendo a string já fazendo as substituições\r\n\t\t$var = ereg_replace(\"[ÁÀÂÃ]\",\"A\",$var);\r\n\t\t$var = ereg_replace(\"[áàâãª]\",\"a\",$var);\r\n\t\t$var = ereg_replace(\"[ÉÈÊ]\",\"E\",$var);\r\n\t\t$var = ereg_replace(\"[éèê]\",\"e\",$var);\r\n\t\t$var = ereg_replace(\"[Í]\",\"I\",$var);\r\n\t\t$var = ereg_replace(\"[í]\",\"i\",$var);\r\n\t\t$var = ereg_replace(\"[ÓÒÔÕ]\",\"O\",$var);\r\n\t\t$var = ereg_replace(\"[óòôõº]\",\"o\",$var);\r\n\t\t$var = ereg_replace(\"[ÚÙÛ]\",\"U\",$var);\r\n\t\t$var = ereg_replace(\"[úùû]\",\"u\",$var);\r\n\t\t$var = str_replace(\"Ç\",\"C\",$var);\r\n\t\t$var = str_replace(\"ç\",\"c\",$var);\r\n\r\n\t\t// Retorna o resultado das modificações\r\n\t\treturn $var;\r\n\r\n }", "title": "" }, { "docid": "f735ff0d60cc82fd6f6697a74a281955", "score": "0.46811715", "text": "function split_cadena_acotada($texto)\n {\n preg_match_all(\"([^,\\\"]*,|\\\"[^\\\"]*\\\",)\", $texto.\",\", $matching_data);\n array_walk($matching_data[0], 'trim_value');\n return $matching_data[0];\n }", "title": "" }, { "docid": "080554a4f2f52ea5583a1a8e888f3e28", "score": "0.46798947", "text": "function clean_out($str, $ellipse_at = 0){\r\n\r\n if(!isset($str))\r\n return '';\r\n\r\n if(is_array($str))\r\n $str = implode($this->delim, $str);\r\n elseif($ellipse_at > 0 && mb_strlen($str) > $ellipse_at)\r\n $str = mb_substr($str, 0, $ellipse_at, $this->charset) . \"...\";\r\n\r\n // remove illegal characters\r\n $str = mb_convert_encoding($str, $this->charset, mb_detect_encoding($str));\r\n\r\n return htmlspecialchars($str, ENT_QUOTES, $this->charset);\r\n }", "title": "" }, { "docid": "1b86b144b6ca576743a2e452b59854ff", "score": "0.4679482", "text": "function clean_whitespace($text) {\n\t\t$text = preg_replace('/[\\x{00A0}\\x{2002}-\\x{200A}\\x{202F}\\x{205F}\\x{3000}]/u', ' ', $text); // NO-BREAK SPACE, (EN SPACE, EM SPACE, THREE-PER-EM SPACE, FOUR-PER-EM SPACE, SIX-PER-EM SPACE, FIGURE SPACE, PUNCTUATION SPACE, THIN SPACE, HAIR SPACE), NARROW NO-BREAK SPACE, MEDIUM MATHEMATICAL SPACE, IDEOGRAPHIC SPACE\n\t\t$text = preg_replace('/[\\x{200B}-\\x{200D}]/u', '', $text); // ZERO WIDTH SPACE, ZERO WIDTH NON-JOINER, ZERO WIDTH JOINER\n\t\t$text = preg_replace('/\\R/u', \"\\n\", $text); // Any unicode newline sequence, including LINE SEPARATOR (\\x{2028}) and PARAGRAPH SEPARATOR (\\x{2029})\n\t\treturn $text;\n\t}", "title": "" }, { "docid": "9036a1236d2ff951314400e2ed9f4997", "score": "0.46747828", "text": "public static function contact_form_remove_span () : void\n {\n add_filter(\"wpcf7_form_elements\", function( string $content)\n {\n $content = preg_replace('/<(span).*?class=\"\\s*(?:.*\\s)?wpcf7-form-control-wrap(?:\\s[^\"]+)?\\s*\"[^\\>]*>(.*)<\\/\\1>/i', '\\2', $content);\n $content = str_replace('<br />', '', $content);\n $content = str_replace('<p>', '', $content);\n $content = str_replace('</p>', '', $content);\n\n return $content;\n });\n }", "title": "" }, { "docid": "0fbe5c362b8d87490cac9053f5fa358a", "score": "0.4661677", "text": "public function removeEmptyCues();", "title": "" }, { "docid": "fedd19d27e4cc4d83df1cc9e57a8fdf5", "score": "0.46615708", "text": "function specialCharacters($text) {\n $original = 'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜüÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûýýþÿRr\"!@#$%&*()_+={[}]/?;:,\\\\\\'<>°ºª';\n $to_replace = 'aaaaaaaceeeeiiiidnoooooouuuuuybsaaaaaaaceeeeiiiidnoooooouuuyybyRr-------------------------------';\n $special_characters = strtr(utf8_decode($text), utf8_decode($original), $to_replace);\n \n //Substituir o espaco em branco pelo traco\n $blank_space = str_replace(\" \", \"-\", $special_characters);\n \n //Reduzir os tracos\n $reduce_strokes = str_replace(array('----', '---', '--'), \"-\", $blank_space);\n \n //Converter para minusculo\n $tiny = strtolower($reduce_strokes);\n \n return $tiny;\n}", "title": "" }, { "docid": "0bcc619b9e3d5b3cf4faec6f1c4b1469", "score": "0.4659227", "text": "function limpiarDatos($datos){\n\t\t$datos = trim($datos);\n\t\t$datos = stripcslashes($datos);//quita las barras\n\t\t$datos = htmlspecialchars($datos);//quita los caracteres especiales\n\t\treturn $datos;\n\t}", "title": "" }, { "docid": "e6f7153ed0650f5f07fff60666eb9010", "score": "0.46578053", "text": "function palavras( $contar_silabas) {\r\n$vogais = array('a','e','i','o','u');\r\n$consoantes = array('b','c','d','f','g','h','nh','lh','ch',\r\n'j','k','l','m','n','p','qu','r','rr',\r\n's','ss','t','v','w','x','y','z',);\r\n\r\n$palavra = '';\r\n$tamanho_palavra = rand(2,5);\r\n$contar_silabas ;\r\nwhile($contar_silabas < $tamanho_palavra){\r\n $vogal = $vogais[rand(0,count($vogais)-1)];\r\n $consoante = $consoantes[rand(0,count($consoantes)-1)];\r\n $silaba = $consoante.$vogal;\r\n $palavra .=$silaba;\r\n $contar_silabas++;\r\n unset($vogal,$consoante,$silaba);\r\n}\r\necho \"<h3> $palavra</h3>\";\r\nunset($vogais,$consoantes,$palavra,$tamanho_palavra,$contar_silabas);\r\n}", "title": "" }, { "docid": "8f07073c112fdf8f99a6712e0ea5d6f0", "score": "0.4654437", "text": "function eliminarPolizaBoleta(){\r\n\t\t$this->procedimiento='leg.ft_poliza_boleta_ime';\r\n\t\t$this->transaccion='LG_DEBSGAR_ELI';\r\n\t\t$this->tipo_procedimiento='IME';\r\n\r\n\t\t//Define los parametros para la funcion\r\n\t\t$this->setParametro('id_anexo','id_anexo','int4');\r\n\r\n\t\t//Ejecuta la instruccion\r\n\t\t$this->armarConsulta();\r\n\t\t$this->ejecutarConsulta();\r\n\r\n\t\t//Devuelve la respuesta\r\n\t\treturn $this->respuesta;\r\n\t}", "title": "" }, { "docid": "7d9f8f713af664ee2c5a96cfd88ddebe", "score": "0.46451682", "text": "function QuitarAcentos($s) {\r\n $s = ereg_replace(\"[áàâãª]\",\"a\",$s);\r\n $s = ereg_replace(\"[ÁÀÂÃ]\",\"A\",$s);\r\n $s = ereg_replace(\"[ÍÌÎ]\",\"I\",$s);\r\n $s = ereg_replace(\"[íìî]\",\"i\",$s);\r\n $s = ereg_replace(\"[éèê]\",\"e\",$s);\r\n $s = ereg_replace(\"[ÉÈÊ]\",\"E\",$s);\r\n $s = ereg_replace(\"[óòôõº]\",\"o\",$s);\r\n $s = ereg_replace(\"[ÓÒÔÕ]\",\"O\",$s);\r\n $s = ereg_replace(\"[úùû]\",\"u\",$s);\r\n $s = ereg_replace(\"[ÚÙÛ]\",\"U\",$s);\r\n $s = str_replace(\"ç\",\"c\",$s);\r\n $s = str_replace(\"Ç\",\"C\",$s);\r\n return $s;\r\n}", "title": "" }, { "docid": "560738e4e86db7df21842463a992fadd", "score": "0.4635225", "text": "static function markRegions()\n {\n $word = self::$buffer;\n $vowel = static::$vowel;\n preg_match(\"/[$vowel][^$vowel]/u\", $word, $matches,\n PREG_OFFSET_CAPTURE);\n self::$r1 = \"\";\n $len = mb_strlen($word);\n self::$r1_index = isset($matches[0][1]) ? $matches[0][1] + 2 : $len;\n if(self::$r1_index != $len) {\n self::$r1 = mb_substr($word, self::$r1_index);\n }\n if(self::$r1_index != $len) {\n preg_match(\"/[$vowel][^$vowel]/u\", self::$r1, $matches,\n PREG_OFFSET_CAPTURE);\n self::$r2_index = isset($matches[0][1]) ? $matches[0][1] + 2 : $len;\n if(self::$r2_index != $len) {\n self::$r2 = mb_substr(self::$r1, self::$r2_index);\n self::$r2_index += self::$r1_index;\n }\n }\n if(self::$r1_index != $len && self::$r1_index < 3) {\n $tmp = mb_substr($word, 0, 2, \"UTF-8\");\n self::$r1_index = 3;\n if(strlen($tmp) == 3) {\n self::$r1_index = 4;\n }\n }\n }", "title": "" }, { "docid": "912542e156c962cdfdebcc4715030d2d", "score": "0.4635049", "text": "function nettoyer_exergues($texte){\n\n\t$texte = preg_replace(',<p><a name=\"exergue\"></a></p>,Uims','',$texte);\n\t$texte = preg_replace(',</?exergue ?/?>,Uims','',$texte);\n\n\t/* div et span */\n\n\tpreg_match_all(',<span class=\"spip_exergue\">(.*?)</span>,ims',$texte, $regs);\n\t$i = 0 ;\n\tforeach ($regs[0] as $reg) {\t\t\t\t\t\t\t\n\t\t$texte = str_replace($reg,$regs[1][$i],$texte);\n\t$i ++ ;\n\t}\n\n\tpreg_match_all(',<div class=\"spip_exergue\">(.*?)</div>,ims',$texte, $regs);\n\t$i = 0 ;\n\tforeach ($regs[0] as $reg) {\t\t\t\t\t\t\t\n\t\t$texte = str_replace($reg,$regs[1][$i],$texte);\n\t$i ++ ;\n\t}\n\n\treturn $texte ;\n}", "title": "" }, { "docid": "7828b5932816ff8343f1a6df48f9440c", "score": "0.46327114", "text": "public function supprimerRetourChariot($name)\n {\n $name = str_replace(\"\\n\", \"\", $name);\n $name = str_replace(\"\\r\", \"\", $name);\n $name = str_replace(\"\\t\", \"\", $name);\n\n\n return $name;\n }", "title": "" }, { "docid": "739a1bb0a6a193f8f8dfddaf120a133e", "score": "0.46317533", "text": "public function desligarMudo()\n {\n }", "title": "" } ]
500ff91b6cccefcbdcd765a036d6ee6a
Set image for the toast notification.
[ { "docid": "6d8a2cf76dbe35370c926c1a0b0e0a10", "score": "0.0", "text": "public function set_image($image)\n {\n $this->elements['image'] = $this->escape_string($image);\n\n return $this;\n }", "title": "" } ]
[ { "docid": "69babc441be1d5cf4ab832c3e998600f", "score": "0.5761279", "text": "public function setImage($image)\n {\n $this->placeholders['MSG_ProjectImage'] = $image;\n }", "title": "" }, { "docid": "05851651f66f096cfa9b457361dc2313", "score": "0.5754161", "text": "private function setImage(string $image = ''): void\n\t{\n\t\t$this->image = $image;\n\t}", "title": "" }, { "docid": "4c22af6373f80dea6461b5ea7594f229", "score": "0.56452626", "text": "public function setImage(string $image);", "title": "" }, { "docid": "8dabe092cce627d0bae10d0569f62c0f", "score": "0.563622", "text": "public function setTrackerImage($img)\n {\n $this->trackerImage = $img;\n }", "title": "" }, { "docid": "d1ec64e824743b76d91d06a0e3db35ab", "score": "0.5541047", "text": "public function setImg($value)\n {\n if (is_null($this->_img)) {\n $this->_img = $value;\n } else {\n $this->_img->setName($value);\n }\n }", "title": "" }, { "docid": "9e4bd2ff71cb17c17ae1a7bf3f12efcd", "score": "0.55351746", "text": "function setImage(Image $image);", "title": "" }, { "docid": "01da3b5b21c374d768cf943d13362ba5", "score": "0.5456903", "text": "function setImage($image)\n\t{\n\t\t$this -> image = $image ;\n\t}", "title": "" }, { "docid": "ba9b21eea592be5be4b653c597c9230b", "score": "0.5448513", "text": "public function setIconPutAttribute($value)\n {\n if ($value) {\n $path = public_path('tmp/' . $value);\n $this->icon = $path;\n }\n }", "title": "" }, { "docid": "e575006ac98de2ef776b36f02364975a", "score": "0.5395162", "text": "public function SetImage($image) {$this->commandType=\"image\"; $this->image = $image;}", "title": "" }, { "docid": "3c4566dd181241e1ebb2ed5e7d2a7c44", "score": "0.5385246", "text": "public function setImageStyle($style);", "title": "" }, { "docid": "dad78296460e5bec21e23a825dbebe09", "score": "0.53704214", "text": "public function setImage($image){$this->image = $image;}", "title": "" }, { "docid": "229e754b863145838d155f10f782f59b", "score": "0.5366221", "text": "public function setImage($image): void\n {\n $this->image = $image;\n }", "title": "" }, { "docid": "f08bc6929ecd67335594d2df1b4e2088", "score": "0.5364749", "text": "private function set_image_path() {\n $this->image_path = empty($this->attributes['image']) ? false : $this->image;\n }", "title": "" }, { "docid": "3434e1c6b0fb597fae970b18d4f8de67", "score": "0.5355799", "text": "public function setImage($image)\n {\n $this->image = $image;\n }", "title": "" }, { "docid": "b872d148cf81c05be177f44715e36d14", "score": "0.5324423", "text": "public function setTitleImg(\\service\\message\\common\\Image $value=null)\n {\n return $this->set(self::title_img, $value);\n }", "title": "" }, { "docid": "07e84d903c4b1e47a441ccdb13ed6433", "score": "0.5260667", "text": "public function updateImage($setting);", "title": "" }, { "docid": "35d4bb3c60b3e5dc5be2a028ce85c728", "score": "0.5259003", "text": "public function setImage($value) {\n return $this->set(self::IMAGE, $value);\n }", "title": "" }, { "docid": "6a0bc15190fc31c6ebb1d8473f9b7e44", "score": "0.51218367", "text": "public function actionSetIcon()\r\n\t{\r\n\t\tif ((isset($_POST['icon']) && !empty($_POST['icon']) &&\r\n\t\t\t($_FILES['icon']['tmp_name'] && $_FILES['icon']['name'])))\r\n\t\t{\r\n\t\t\t$service = include('app/service_func/fileChecker.php');\r\n\r\n\t\t\t$user_img = $_FILES['icon'];\r\n\t\t\t$filePath = $_FILES['icon']['tmp_name'];\r\n\t\t\t$errorCode = $_FILES['icon']['error'];\r\n\t\t\t$mime = getimagesize($filePath);\r\n\t\r\n\t\t\t$outputMessage = checkFile($errorCode, $filePath, $user_img, $mime['mime']);\r\n\t\t\tif (!empty($outputMessage))\r\n\t\t\t\t$this->_view->message($outputMessage);\r\n\r\n\t\t\t$contents = file_get_contents($filePath);\r\n\t\t\t$result = $this->_model->saveIcon($contents, $user_img['type']);\r\n\r\n\t\t\tif ($result)\r\n\t\t\t{\r\n\t\t\t\t$path = $result['path'];\r\n\r\n\t\t\t\t$image = getimagesize($path);\r\n\t\t\t\t$contents = file_get_contents($path);\r\n\t\t\t\t$base = \"data:image/\" . $image['mime'] . \";base64,\" . base64_encode($contents);\r\n\r\n\t\t\t\t$_SESSION['user']['icon'] = $base;\r\n\t\t\t\t\r\n\t\t\t\t$path = ['src' => $base];\r\n\t\t\t\texit(json_encode($path));\r\n\t\t\t}\r\n\t\t\texit();\r\n\t\t}\r\n\t\telse\r\n\t\t\tView::errorCode(404);\r\n\t}", "title": "" }, { "docid": "5a60f9dfef30da2b98a8608d223fc64d", "score": "0.511334", "text": "public function setImage($imageName);", "title": "" }, { "docid": "8f28b43dd380c0a2ea767702382d0fbe", "score": "0.50836307", "text": "public function setImage($image_uri);", "title": "" }, { "docid": "0372f8840ae6e95a685f2d3e107515ca", "score": "0.50813365", "text": "public function setImageAttribute($value)\n {\n $attribute_name = \"image\";\n $destination_path = \"articles\";\n\n // if the image was erased\n if ($value==null) {\n \\Storage::disk(\"public\")->delete($this->{$attribute_name});\n $this->attributes[$attribute_name] = null;\n }\n\n // if a base64 was sent, store it in the db\n if (starts_with($value, 'data:image'))\n {\n $image = \\Image::make($value);\n $filename = md5($value.time()).'.jpg';\n \\Storage::disk(\"public\")->put($destination_path.'/'.$filename, $image->stream());\n $this->attributes[$attribute_name] = 'storage/'.$destination_path.'/'.$filename;\n }\n }", "title": "" }, { "docid": "3e5106dee2e2ad3ec093c1edbbfe3321", "score": "0.5051512", "text": "protected function set_image(){\n /*\n if(empty($_POST['img_url'])){\n $this->setMsg(false, \"Vložte prosím url obrázku\");\n return;\n }\n\n */\n if(empty($this->intreview_data))\n $this->setData ();\n $this->intreview_data->info->img=$_POST['img_url'];\n if($this->saveInterview())\n $this->setMsg (true, \"Obrázok úspešne vložený\");\n else\n $this->setMsg (false, \"Nepodarilo sa vložiť obrázok\");\n }", "title": "" }, { "docid": "a53fcb07116483223a3d05f6ddc8ded9", "score": "0.5043144", "text": "protected function set_title_image($im){\n\t\t$this->form['titleImage'] = $im;\n\t}", "title": "" }, { "docid": "96ed84745973accbe61ff8479f8fdc46", "score": "0.5025583", "text": "function user_wttwitter_retweetIcon($content = '', $conf = array()) {\n\t\t// config\n\t\t$conf = $conf['userFunc.']; // ts config\n\t\t\n\t\t// let's go\n\t\t$string = $this->cObj->cObjGetSingle($conf['string'], $conf['string.']); // get string from ts\n\t\t$image = $this->cObj->cObjGetSingle($conf['image'], $conf['image.']); // get image from ts\n\t\t\n\t\treturn preg_replace('/RT /', $image . ' ', $string); // replace and return\n\t}", "title": "" }, { "docid": "b64288041da4fef36aaee7dab9559612", "score": "0.502091", "text": "public function setIcon($value)\n {\n return $this->set(self::icon, $value);\n }", "title": "" }, { "docid": "b64288041da4fef36aaee7dab9559612", "score": "0.502091", "text": "public function setIcon($value)\n {\n return $this->set(self::icon, $value);\n }", "title": "" }, { "docid": "8239b6d8b9596b213a2b0348fddf05cf", "score": "0.5014018", "text": "public function setImageAttribute($atr)\n {\n\n if ($atr instanceof UploadedFile ) {\n $this->attributes['image'] = $atr->hashName();\n }\n\n if (!$atr instanceof UploadedFile) {\n $this->attributes['image'] = $atr;\n }\n }", "title": "" }, { "docid": "be03acb553c3484a63da661d83d09e99", "score": "0.49978408", "text": "public function setIcon($value)\n {\n return $this->set(self::ICON, $value);\n }", "title": "" }, { "docid": "ab8e1b377b72fe88d4c6e1a20c3fb094", "score": "0.495537", "text": "public function setPicture()\n {\n\n $oUser = $this->getUser();\n $sPictureName = \"\";\n if ($this->getConfig()->getParameter('avatar_type') == 'gravatar') { //TODO inputfilter mail\n $sPictureName = $this->getConfig()->getParameter('gravatar_text');\n $sPictureName = $this->_getGravatarUrl($sPictureName);\n if ($sPictureName === false) {\n oxUtilsView::getInstance()->addErrorToDisplay('MUDE_AVATAR_ACCOUNT_WRONG_EMAIL_ERROR', false, true);\n return;\n }\n $oUser->oxuser__mude_avatar_picture_type->setValue('GRAVATAR');\n }elseif ($this->getConfig()->getParameter('avatar_type') == 'file') {\n $sPictureName = $this->_processPicture();\n if ($sPictureName === false) {\n oxUtilsView::getInstance()->addErrorToDisplay('MUDE_AVATAR_ACCOUNT_WRONG_PICTURE_ERROR', false, true);\n return;\n }\n $oUser->oxuser__mude_avatar_picture_type->setValue('FILE');\n }elseif ($this->getConfig()->getParameter('avatar_type') == 'none') {\n $sPictureName = \"\";\n $oUser->oxuser__mude_avatar_picture_type->setValue(null);\n }\n $oUser->oxuser__mude_avatar_picture->setValue($sPictureName);\n $oUser->save();\n }", "title": "" }, { "docid": "41f78e87a0bd9de1885bdb283bfa46e4", "score": "0.49490568", "text": "public function getImageURI(Notification $notification);", "title": "" }, { "docid": "039c42b26e14cf22a2aa86bb1c873985", "score": "0.489826", "text": "public function icon($value) {\n return $this->setProperty('icon', $value);\n }", "title": "" }, { "docid": "eba4af6d0d32e9f76ee037ccb1264430", "score": "0.4897593", "text": "private function imgTgif()\r\n {\r\n imagegif($this->thumb, null);\r\n }", "title": "" }, { "docid": "537997fc87057759ba9763ac01e66120", "score": "0.48819718", "text": "public function setImageAttribute($value)\n {\n $attribute_name = 'image';\n $disk = 'cloudinary';\n $destination_path = '/images/projects/';\n\n // if the image was erased\n if($value == null){\n // delete the image from cloud\n Cloudder::destoryImage(Cloudder::getPublicId());\n Cloudder::delete(Cloudder::getPublicId());\n }\n\n // if a base64 was sent, store it in the db\n if (starts_with($value, 'data:image'))\n {\n // Generate a public_id\n $public_id = md5($value.time());\n\n // upload the image to Cloudinary\n Cloudder::upload($value,null, ['folder' => $destination_path, 'public_id' => $public_id]);\n\n // get image url from cloudinary\n\t $image_url = Cloudder::secureShow(Cloudder::getPublicId(), ['width'=> 1600, 'height' => 1200, 'crop'=> 'fit', 'format' => 'jpg']);\n\n // Save the path to the database\n $this->attributes[$attribute_name] = $image_url;\n }\n }", "title": "" }, { "docid": "a112d26a71a70064d20639b1072012d6", "score": "0.4870075", "text": "final public function setImagePath($filename) {}", "title": "" }, { "docid": "ed02f8ce4bbbfe17453dc8d035fcbca1", "score": "0.48544815", "text": "public function getPlaceholderImage()\n {\n return 'https://via.placeholder.com/300x250.png';\n }", "title": "" }, { "docid": "6c36ef61f992a335c6de33cdc9f2977d", "score": "0.4853059", "text": "protected function setImageStatus()\n {\n $status = $this->meta->getStatus();\n if ($status == \\ShortPixelMeta::FILE_STATUS_SUCCESS)\n $this->is_optimized = true;\n\n $png2jpg = $this->meta->getPng2Jpg();\n if(is_array($png2jpg))\n {\n $this->is_png2jpg = true;\n }\n }", "title": "" }, { "docid": "c3b8d4098ee95a5f40c68ced6ff6aecf", "score": "0.4849562", "text": "public function setIcon($icon) {\n $this->icon = $icon;\n }", "title": "" }, { "docid": "6f33c26dcb96d27d6beffaa0ce593fd3", "score": "0.48434576", "text": "public function setIcon($icon , $size = 'xsmall')\n {\n\n $this->icon = $icon;\n $this->size = $size;\n\n }", "title": "" }, { "docid": "f06b5baea5eb0b0eae415a4ee073c254", "score": "0.48331887", "text": "public function uploadImage() {\r\r\n if (isset($this->icon)) {\r\r\n \r\r\n if (null === $this->icon) {\r\r\n return;\r\r\n }\r\r\n if(!$this->id){\r\r\n $this->icon->move($this->getTmpUploadRootDir(), $this->icon->getClientOriginalName());\r\r\n }else{\r\r\n $this->icon->move($this->getUploadRootDir(), $this->icon->getClientOriginalName());\r\r\n }\r\r\n $this->setIcon($this->icon->getClientOriginalName());\r\r\n \r\r\n }\r\r\n }", "title": "" }, { "docid": "317f439f181b8058a99d5c3e699390f2", "score": "0.48079818", "text": "public function setImage($val)\n {\n $this->_propDict[\"image\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "e5a9cf4fd80e85275a2c01b23ffe246c", "score": "0.4807804", "text": "public function setImagePosition($position);", "title": "" }, { "docid": "23820b79e52cbc59803b5c5f973b4161", "score": "0.48065826", "text": "function site_meta_image( $new_image = null, $absolute_url = false ) {\n\n\t// If the image parameter is not set then output the image.\n\tif ( $new_image != null ) {\n\n\t\t// If the image is set and not empty then set the new image value.\n\t\tif ( ! empty( $new_image ) ) {\n\n\t\t\tif ( ! $absolute_url ) {\n\t\t\t\t$new_image = 'https://prothemedesign.com/img/open-graph/' . $new_image . '?d=' . DECACHE_CSS;\n\t\t\t}\n\n\t\t\tFlight::set( 'site.meta-image', $new_image );\n\n\t\t}\n\n\t} else {\n\n\t\t$image = Flight::get( 'site.meta-image' );\n\n\t\tif ( $image ) {\n?>\n\t<meta itemprop=\"image\" content=\"<?php echo $image; ?>\">\n\t<meta property=\"og:image\" content=\"<?php echo $image; ?>\">\n\t<meta name=\"twitter:image:src\" content=\"<?php echo $image; ?>\">\n<?php\n\n\t\t}\n\n\t}\n\n}", "title": "" }, { "docid": "8d3776ab9a06be73cb6662e71bfa8ff2", "score": "0.4794656", "text": "protected function _setUrlImage($category)\n {\n $this->_defaultRow['url_image'] = $this->getImageUrl($category);\n }", "title": "" }, { "docid": "578b1150f07e816e1d7e76aa16f9269a", "score": "0.47885406", "text": "public function setWebsiteSImage($value) {\n //$bmp_file = image_create_from_bmp($value);\n //imagepng($bmp_file,$png_file);\n $imagedata = file_get_contents($value);\n $this->image = base64_encode($imagedata );\n }", "title": "" }, { "docid": "b6027326560a699be2dd44861e4feb56", "score": "0.47854555", "text": "public function setImage($filename, $textAlign = null, $vAlign = null)\n {\n $this->_image['filename'] = $filename;\n $this->setTextAlign($textAlign);\n $this->_vAlign = $vAlign;\n }", "title": "" }, { "docid": "edb904455f2c8888e90fdd03f2dff23b", "score": "0.4783372", "text": "public function setIcon(string $icon):void {\r\n\t\t$this->icon = $icon;\r\n\t}", "title": "" }, { "docid": "1f99e4ffd740b109bf8cc4c24b78f966", "score": "0.47803062", "text": "public function image(string $value, ?array $attributes = [], ?string $key = null) : string\n {\n return $this->button($value, $attributes, $key, 'image');\n }", "title": "" }, { "docid": "eabda060b6555949bd31609579c588c7", "score": "0.4779801", "text": "public function setImage($value)\n {\n $this->image = $value;\n\n return $this;\n }", "title": "" }, { "docid": "73c464732f2dae6837455c710934af8a", "score": "0.4770499", "text": "private function setImage(): Create\n {\n $this->loglnVeryVerbose('Setting image');\n return $this->setProviderProperty(\n 'Image',\n $this->oProvider->getImages($this->oAccount),\n $this->oInput->getOption('image'),\n $this->oImage\n );\n }", "title": "" }, { "docid": "1e93a04c554b7cb08644e6cbc488b37c", "score": "0.47667038", "text": "private function imgTpng()\r\n {\r\n imagepng($this->thumb, null, 0);\r\n }", "title": "" }, { "docid": "a1eb38657e5714c3320835112a4c7eb3", "score": "0.47464883", "text": "public function set_Icon($icon_in) {\n $this->icon = $icon_in;\n }", "title": "" }, { "docid": "17bd6d2308e32041f913da0639421bb2", "score": "0.47383675", "text": "public function setIcon($icon) //Icon - if you force the icon as type, the makimarker won't work...:(\n {\n $this->clientOptions['icon'] = $icon;\n }", "title": "" }, { "docid": "17bd6d2308e32041f913da0639421bb2", "score": "0.47383675", "text": "public function setIcon($icon) //Icon - if you force the icon as type, the makimarker won't work...:(\n {\n $this->clientOptions['icon'] = $icon;\n }", "title": "" }, { "docid": "8b2cc50b3624fb07766e622e529b7717", "score": "0.47360453", "text": "public function setDetailsImage($details_image);", "title": "" }, { "docid": "417b91a17cf23d972ae79e810a87f3c7", "score": "0.47318384", "text": "public function getAvatarAttribute($value)\n {\n\n return asset('storage/' . $value ?: '/images/default-avatar.png' );\n }", "title": "" }, { "docid": "bf7004ca74ef52ed19a1c9e24a65c475", "score": "0.47307375", "text": "public function setImage(Image $value) {\n return $this->set(self::IMAGE, $value);\n }", "title": "" }, { "docid": "dabdbf40fc693b70c0259fa9433a2f41", "score": "0.4719765", "text": "public function usePNG()\n\t{\n\t\t$this->imageType = 'png';\n\t\t$this->resetTemplate();\n\t}", "title": "" }, { "docid": "26e86eff31fc1bfb834855a9b16743fc", "score": "0.47086108", "text": "public function setSign($temp=null)\r\n {\r\n \r\n \r\n if($temp==1)\r\n\t\t\r\n {echo $this->Html->image('test-pass-icon.png');\r\n }else\r\n\t\t {echo $this->Html->image('test-fail-icon.png');}\r\n \r\n \r\n }", "title": "" }, { "docid": "7d9a82fbd89e52012c657bec88d06bd7", "score": "0.4671173", "text": "public function setImage($val)\n {\n $this->_data['image'] = $val;\n \n return $this;\n }", "title": "" }, { "docid": "b1c86057994818772194f424ba7efccd", "score": "0.4670008", "text": "protected function setupIcon() {\n $this->icon = new ExIcon([], $this->pluginId, $this->pluginDefinition);\n $this->icon->setStringTranslation($this->stringTranslation);\n }", "title": "" }, { "docid": "bfdfeb530467789d69d0afc982bd8685", "score": "0.46694782", "text": "public function setImageFrom($value) {\n return $this->set(self::IMAGE_FROM, $value);\n }", "title": "" }, { "docid": "1f6be760d2d6cdcafc72b404e3a33e74", "score": "0.46536762", "text": "public function setIconPosition($position);", "title": "" }, { "docid": "fd9b536348bf07969c205c7d3f6f835e", "score": "0.4650027", "text": "public function import_social_twitter_thumbnail( $value ) {\n\t\t$this->update_meta( 'twitter_image', $value );\n\t\t$this->update_meta( 'twitter_use_facebook', 'off' );\n\t}", "title": "" }, { "docid": "9e8e354c17b921a6ab6e5ad71de2dcbe", "score": "0.46395704", "text": "public function setImgAction() {\n $userId = Zend_Auth::getInstance()->getIdentity();\n if (empty($userId)) {\n $this->redirect('/');\n }\n $pluginModel = new Application_Model_DbTable_Plugins();\n $configModel = new Application_Model_DbTable_PluginsSettings();\n $heybroModel = new Heybro_Model_Heybro();\n $html = new Zend_View();\n $html->setScriptPath(APPLICATION_PATH . '/plugins/frontend/heybro/views/scripts/partials/');\n $html->assign('cardsReady', $heybroModel->getCardsByUserId($userId['id']));\n $html->assign('cardsEdit', $heybroModel->getCardsByUserId($userId['id'], 0));\n\n $config = $configModel->getSettingsByPluginsID($pluginModel->getBySystemName('heybro')['id']);\n\n $this->view->breadcrumbs = [\n ['name' => $this->view->translate('Cabinet'), 'active' => false, 'url' => '/cabinet'],\n ['name' => $this->view->translate('Heybro'), 'active' => true],\n ];\n $this->view->headTitle('Heybro');\n $this->view->headScript()->appendFile('/js/jquery-ui-1_11_4/jquery.ui.datepicker-ru.js');\n $this->view->card = $html->render('set-img-partial.phtml');\n $this->view->character = json_decode($config['character'], TRUE);\n }", "title": "" }, { "docid": "70d64f93c9b3705104a5b112185e671e", "score": "0.46368575", "text": "public function push($target, $message_id, $message1, $notif_url) {\n $toastMessage = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?>\" .\n \"<wp:Notification xmlns:wp=\\\"WPNotification\\\">\" .\n \"<wp:Toast>\" .\n \"<wp:Text1>\" . \"SendToast\" . \"</wp:Text1>\" .\n \"<wp:Text2>\" . $message1 . \"</wp:Text2>\" .\n \"<wp:Param>/BestDeal.xaml?=Toast Notification</wp:Param>\" .\n \"</wp:Toast> \" .\n \"</wp:Notification>\";\n \n // Create request to send\n $r = curl_init();\n curl_setopt($r, CURLOPT_URL,$notif_url);\n curl_setopt($r, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($r, CURLOPT_POST, true);\n curl_setopt($r, CURLOPT_HEADER, true); \n \n // add headers\n $httpHeaders=array('Content-type: text/xml; charset=utf-8', 'X-WindowsPhone-Target: toast',\n 'Accept: application/*', 'X-NotificationClass: 2','Content-Length:'.strlen($toastMessage));\n curl_setopt($r, CURLOPT_HTTPHEADER, $httpHeaders);\n \n // add message\n curl_setopt($r, CURLOPT_POSTFIELDS, $toastMessage);\n \n // execute request\n $output = curl_exec($r);\n curl_close($r);\n\n }", "title": "" }, { "docid": "1f252990e252de333e0450ffc96eab53", "score": "0.46361667", "text": "public function setIcon($icon)\n {\n $this->icon = $icon;\n }", "title": "" }, { "docid": "1f252990e252de333e0450ffc96eab53", "score": "0.46361667", "text": "public function setIcon($icon)\n {\n $this->icon = $icon;\n }", "title": "" }, { "docid": "b12687ef90dd2e253ebcf2e14ed8ad51", "score": "0.46323398", "text": "function mscw_speaker_img($speaker_id) {\n\t$image = get_the_post_thumbnail_url($speaker_id, 'large');\n\tif (!empty($image)) $image = ' style=\"background-image:url(' . $image . ')\"';\n\treturn '<div class=\"speaker-img\"' . $image . '></div>';\n}", "title": "" }, { "docid": "18a8dc5d7dd41b3575f60fcf836de704", "score": "0.46211743", "text": "function setImage($path) {\n \n $this->destroyResource();\n \n if (!is_file($path)) { throw new Exception('The file ' . $path . ' no exist', 0); }\n $this->imagePath = $path;\n \n $this->info_image = getimagesize($path);\n if (!$this->info_image) { throw new Exception('The uploaded file is not an image', 1); }\n \n $this->resource = $this->createSrcFromImage();\n if (!$this->resource) { throw new Exception('The uploaded file is not an image', 2); }\n \n }", "title": "" }, { "docid": "1e1068734d74d99d4a1506d2bf6b274a", "score": "0.4619792", "text": "public function getPic(){\n $pic=$this->_weather->current_observation->icon_url;\n return $pic;\n }", "title": "" }, { "docid": "e0102a8a0f89cd97ce6f592a59448596", "score": "0.46090162", "text": "public function getDefaultImageAttribute()\n {\n return 'https://via.placeholder.com/348x232?text='.$this->slug;\n }", "title": "" }, { "docid": "09d7f572a903715425d116a75f893f9b", "score": "0.46058598", "text": "public function showIcon($value) {\n return $this->setProperty('showIcon', $value);\n }", "title": "" }, { "docid": "6a771fd245ac93f9fc33d5e793e71864", "score": "0.46056148", "text": "public function setIcon($v) {\r\n\t\t\t$this->_icon = $v;\r\n\t\t\treturn $this;\r\n\t\t}", "title": "" }, { "docid": "3ea79fc294f4474f4f745de0592a2f0c", "score": "0.45910287", "text": "public function image($image)\n {\n return $this->setProperty('image', $image);\n }", "title": "" }, { "docid": "3ea79fc294f4474f4f745de0592a2f0c", "score": "0.45910287", "text": "public function image($image)\n {\n return $this->setProperty('image', $image);\n }", "title": "" }, { "docid": "3ea79fc294f4474f4f745de0592a2f0c", "score": "0.45910287", "text": "public function image($image)\n {\n return $this->setProperty('image', $image);\n }", "title": "" }, { "docid": "9800839e082c952e631895363f3c907d", "score": "0.45869", "text": "public function setImage($pathFile)\n\t{\n\t\tif (!$this->app['fs']->isFile($pathFile) && !$this->app['fs']->exists($pathFile)) {\n\t\t\tthrow new \\RuntimeException(\"The given image [$pathFile] is invalid\");\n\t\t}\n\n\t\t$pathFile = str_replace('/', DS, $pathFile);\n\t\t$this->image = str_replace('\\\\\\\\', DS, $pathFile);\n\t}", "title": "" }, { "docid": "a420d9284dffd7a77b47a08e3dfc1c68", "score": "0.45858777", "text": "public function icon()\n {\n if ($this->locked && $this->pinned) {\n $image = site('forum-thread-icon-locked-pinned');\n } elseif ($this->locked) {\n $image = site('forum-thread-icon-locked');\n } elseif ($this->pinned) {\n $image = site('forum-thread-icon-pinned');\n } else {\n $image = site('forum-thread-icon');\n }\n return url($image);\n }", "title": "" }, { "docid": "78e3b02f77e7e3c32825d7ad3b3fd5ee", "score": "0.45850882", "text": "public function setAvatar($avatar){\n $this->avatar = $avatar;\n }", "title": "" }, { "docid": "61d8098db0306153d14e85234da1b824", "score": "0.45836383", "text": "public function setImage(string $image) : self\n {\n $this->initialized['image'] = true;\n $this->image = $image;\n return $this;\n }", "title": "" }, { "docid": "42c000f867f16186a2f8bfdbba2c9da2", "score": "0.45802966", "text": "public function set_preview_image($image)\n\t{\n\t\t$this->preview_image = $image;\n\t}", "title": "" }, { "docid": "247b332ae79aa882c1b68d2516f45680", "score": "0.45763212", "text": "public function useTwemoji()\n\t{\n\t\t$this->imageSet = 'twemoji';\n\t\t$this->resetTemplate();\n\t}", "title": "" }, { "docid": "9da02982f4de3ff1c13e2c909813ac6f", "score": "0.45710975", "text": "public function setTaxRegistrationCertificateImg($value)\n {\n return $this->set(self::tax_registration_certificate_img, $value);\n }", "title": "" }, { "docid": "8712aba68799f559f2860c549c23bcdb", "score": "0.4569137", "text": "public function getCurrentStatusImage() {\n if($this->getCurrentStatus()) {\n return $this->getSuccessImage();\n } else {\n return $this->getFailImage();\n }\n }", "title": "" }, { "docid": "58f665a76626b97fb35d8dc001c1bdc7", "score": "0.45432162", "text": "public function setImg($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->img !== $v) {\n $this->img = $v;\n $this->modifiedColumns[] = ItemPeer::IMG;\n }\n\n\n return $this;\n }", "title": "" }, { "docid": "6563be26fc8c3680479657258f589585", "score": "0.45269966", "text": "function xprofile_screen_change_cover_image() {\n\t_deprecated_function( __FUNCTION__, '6.0.0', 'bp_members_screen_change_cover_image()' );\n\n\tbp_members_screen_change_cover_image();\n}", "title": "" }, { "docid": "3031091db210e53ace66e911c195bc4e", "score": "0.45061126", "text": "public function setImgUrl($value) {\n return $this->set(self::IMGURL, $value);\n }", "title": "" }, { "docid": "34c9e3c3b8b93384dc8fbe4add5f162a", "score": "0.45060936", "text": "public function setIm($value) {\n return $this->set(self::IM, $value);\n }", "title": "" }, { "docid": "c308e4c5e86970bfbbe176dbe38afacf", "score": "0.45025682", "text": "public function imageUrl($value) {\n return $this->setProperty('imageUrl', $value);\n }", "title": "" }, { "docid": "f5cd60836c1e6b30dde3a787eb05a676", "score": "0.44983202", "text": "function msg_image( $format = '' )\r\n\t{\r\n\t\treturn $this->getVar( 'msg_image', $format );\r\n\t}", "title": "" }, { "docid": "f7c7e1ec026166c69444e0c6de88b644", "score": "0.4497565", "text": "public function setGrouponImage($value) {\n return $this->set(self::GROUPON_IMAGE, $value);\n }", "title": "" }, { "docid": "dc03af4c4834ef223955fdb730fd1193", "score": "0.44877347", "text": "private function set_image($im){\n\t\t$this->image = $im;\n\t\t$this->width = imagesx($im);\n\t\t$this->height = imagesy($im);\n\t\t$this->ratio = $this->width / $this->height;\n\t}", "title": "" }, { "docid": "1207aff4b15750a1445081fcf2a13776", "score": "0.44785833", "text": "public function setImage($image)\n\t{\n\t\t$this->imgSrc = $image;\n\t\tlist($width, $height) = getimagesize($this->imgSrc);\n\t\t$parts = explode('.', $this->imgSrc);\n\t\t$file_type = end($parts);\n\t\t\n\t\tswitch(strtolower($file_type))\n\t\t{\n\t\t\tcase 'jpg':\n\t\t\tcase 'jpeg':\n\t\t\t$file_type = 'jpeg';\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'gif':\n\t\t\t$file_type = 'gif';\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'png':\n\t\t\t$file_type = 'png';\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t$imagecreatefromfile_type = 'imagecreatefrom' . strtolower($file_type);\n\t\t$this->myImage = $imagecreatefromfile_type($this->imgSrc) or die('Error: Cannot find image!'); \n\t\t$biggestSide = $width > $height ? $width : $height; # Find biggest length\n\t\t\n\t\t# The crop size will be half that of the largest side \n\t\t $cropPercent = .55; # Zoom.\n\t\t $this->cropWidth = $biggestSide * $cropPercent; \n\t\t $this->cropHeight = $biggestSide * $cropPercent;\n\t\t $this->x = ($width - $this->cropWidth) / 2;\n\t\t $this->y = ($height - $this->cropHeight) / 2;\n\t\t}", "title": "" }, { "docid": "92132eaea0655f64a52b1735b0ea3dad", "score": "0.44712976", "text": "function image($options = array())\n\t{\n\t\t$this->tag = 'image';\n\t\t$this->__doExternal($options);\n\t\treturn $this->__do_tag($options);\n\t}", "title": "" }, { "docid": "6d610e96691e36b04a6dec000788634e", "score": "0.44702062", "text": "public function setMainImageAttribute($value)\n {\n $attribute_name = \"main_image\";\n $image_disk = \"product_images\";\n $thumbnail_disk = 'thumbnails';\n // Set original file name attribute\n $originalFileName = $this->clean($value->getClientOriginalName());\n\n $this->original_image_name = $originalFileName;\n\n // Save image file to disk and set image attribute\n $this->customUploadFileToDisk($value, $attribute_name, $image_disk, $thumbnail_disk);\n }", "title": "" }, { "docid": "558b30c1113f4e0bc65310f77f580929", "score": "0.44634864", "text": "public function clear_social_twitter_thumbnail() {\n\t\t$this->delete_meta( 'twitter_image' );\n\t}", "title": "" }, { "docid": "d5eda83dd5f7fee391ac71dccb154955", "score": "0.44587323", "text": "public function image($alt = \"\", $attributes = []);", "title": "" }, { "docid": "08ec894adfa617588ed67950465cc012", "score": "0.44505447", "text": "public function getImageUrl() \n {\n // return a default image placeholder if your source avatar is not found\n $file = isset($this->image) ? $this->image : 'default.jpg';\n return Yii::getAlias('@web').\"/\".Yii::$app->controller->module->itemImagePath . $file;\n }", "title": "" }, { "docid": "3ec8f93caf00a41f6b413218bf843dcd", "score": "0.44416198", "text": "function img($src) {\r\n\t\t// Img element properties\r\n\t\t$img_data = array(\"src\" => $src);\r\n\r\n\t\t// Merge View::$properties\r\n\t\t$this->merge_properties($img_data);\r\n\r\n\t\t// Generate the tag\r\n\t\t$this->data = $this->tag(\"img\", $img_data, 0);\r\n\t}", "title": "" }, { "docid": "2e33488b1829d2db5119a1dd5bfacff2", "score": "0.44330376", "text": "public function setItemImage($itemImage)\n {\n if ($this->itemImage !== $itemImage) {\n $this->itemImage = $itemImage;\n }\n }", "title": "" }, { "docid": "8026226ef7bbdd1667b73b6aedd2e8b7", "score": "0.44320145", "text": "public function setAvatarAttribute($path)\n {\n // If the path isn't started with the \"http\" prefix,\n // It must come from xa(admin), fixs this URL.\n if (!starts_with($path, 'http')) {\n $path = config('app.url') . '/uploads/images/avatars/' . $path;\n }\n\n $this->attributes['avatar'] = $path;\n }", "title": "" } ]
37aedc30a751c8e8d0dcb0dda44b7ee1
Function: get_total_work_hours($data) Summary: Get work total hours from database, not Tempo API
[ { "docid": "c4b78ec4ba007f87e873cec67af55648", "score": "0.86278975", "text": "function get_total_work_hours($data)\n {\n\t\tif($data['dateFrom'] && $data['dateTo'])\n\t\t{\n\t\t\tif(isset($data['userName'])){\n\t\t\t\t$user_array = explode(\"~\", $data['userName']);\n\t\t\t\t$un = \" and username IN (\";\n\t\t\t\t$i = 0;\n\t\t\t\tforeach($user_array as $user)\n\t\t\t\t{\n\t\t\t\t\tif($i == 0){\n\t\t\t\t\t\t$un = $un.\"'\".$user.\"'\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$un = $un.\", '\".$user.\"'\";\n\t\t\t\t\t}\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t\t$un = $un.\")\";\n\t\t\t} else {\n\t\t\t\t$un = \"\";\n\t\t\t}\n\t\t\tif( isset($data['projectkey']) )\n\t\t\t{\n\t\t\t\t$pk = \" and project_key = '\".$data['projectkey'].\"'\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$pk = \"\";\n\t\t\t}\n\t\t\t$sql =\n\t\t\t\t\"select SUM(hours) AS total_hours from WORKLOGS where work_date \"\n\t\t\t\t.\">= cast( '\".$data['dateFrom'].\"' as datetime) and work_date \"\n\t\t\t\t.\"<= cast( '\".$data['dateTo'].\"' as datetime)\".$un.$pk;\n\t\t\t$query = $this->db->query($sql);\n\t\t\t$return_array = json_decode(json_encode($query->result()),true);\n\t\t\treturn round($return_array[0]['total_hours'], 2);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new Exception(\"Both start and end dates are required.\");\n\t\t}\n }", "title": "" } ]
[ { "docid": "07424d95b39c5464e95e93181e706eef", "score": "0.6828819", "text": "public function getTotalWork() {\n $hours_worked = 0;\n \n foreach($this->Work() as $work) {\n if($work->Hours)\n $hours_worked += $work->Hours;\n }\n \n return $hours_worked;\n }", "title": "" }, { "docid": "b4f0294e684f1d4143838aee78b49f58", "score": "0.6598301", "text": "function get_total_work_logs($data)\n {\n\t\tif($data['dateFrom'] && $data['dateTo'])\n\t\t{\n\t\t\tif(isset($data['userName'])){\n\t\t\t\t$user_array = explode(\"~\", $data['userName']);\n\t\t\t\t$un = \" and username IN (\";\n\t\t\t\t$i = 0;\n\t\t\t\tforeach($user_array as $user)\n\t\t\t\t{\n\t\t\t\t\tif($i == 0){\n\t\t\t\t\t\t$un = $un.\"'\".$user.\"'\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$un = $un.\", '\".$user.\"'\";\n\t\t\t\t\t}\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t\t$un = $un.\")\";\n\t\t\t} else {\n\t\t\t\t$un = \"\";\n\t\t\t}\n\t\t\tif( isset($data['projectkey']) )\n\t\t\t{\n\t\t\t\t$pk = \" and project_key = '\".$data['projectkey'].\"'\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$pk = \"\";\n\t\t\t}\n\t\t\t$sql =\n\t\t\t\t\"select count(*) from WORKLOGS where work_date \"\n\t\t\t\t.\">= cast( '\".$data['dateFrom'].\"' as datetime) and work_date \"\n\t\t\t\t.\"<= cast( '\".$data['dateTo'].\"' as datetime)\".$un.$pk;\n\t\t\t$query = $this->db->query($sql);\n\t\t\t$return_array = json_decode(json_encode($query->result()),true);\n\t\t\treturn $return_array[0]['count(*)'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new Exception(\"Both start and end dates are required.\");\n\t\t}\n }", "title": "" }, { "docid": "f46706086495f5b9153e100494d6a5d6", "score": "0.6579461", "text": "public function summary_hours(){\n // FROM (\n // SELECT \n // DATE(start_time) AS \"data\"\n // , SUM(TIMESTAMPDIFF(MINUTE, start_time, end_time)) AS \"work_time_day\"\n // , sw.work_schedule_id \n // , TRUNCATE((TIME_TO_SEC(ws.hours_per_day) / 60),0 ) AS \"time_day\"\n // , IFNULL(TRUNCATE((TIME_TO_SEC(ap.hours_absence) / 60),0 ), 0) AS \"absence_hours\"\n // FROM schedules_worked sw\n // LEFT JOIN work_schedule ws \n // ON sw.work_schedule_id = ws.id \n // LEFT JOIN absence_permission ap\n // ON ap.date = DATE(sw.start_time)\n // GROUP BY DATE(start_time)\n // ) as tmp\n }", "title": "" }, { "docid": "11514ad60469fcf8b4fdee67bdf0918c", "score": "0.61851674", "text": "public function get_hours_of_operation() {\n\n return json_decode($this->hours_of_operation);\n \n }", "title": "" }, { "docid": "a19cdb7f7ca2248c8788d924e7672711", "score": "0.60932535", "text": "public function hours() {\n //TODO prediction\n }", "title": "" }, { "docid": "7601e798eb6035999d6d4d1bbb9745e2", "score": "0.60911065", "text": "public function getWorkingHours()\n {\n if (array_key_exists(\"workingHours\", $this->_propDict)) {\n if (is_a($this->_propDict[\"workingHours\"], \"\\Beta\\Microsoft\\Graph\\Model\\WorkingHours\") || is_null($this->_propDict[\"workingHours\"])) {\n return $this->_propDict[\"workingHours\"];\n } else {\n $this->_propDict[\"workingHours\"] = new WorkingHours($this->_propDict[\"workingHours\"]);\n return $this->_propDict[\"workingHours\"];\n }\n }\n return null;\n }", "title": "" }, { "docid": "74017926f042f9f1b39f5dbdd143456b", "score": "0.6071271", "text": "public function workingHours()\n {\n return $this->workingHours;\n }", "title": "" }, { "docid": "08a80c8cfadd85d027b00ce03241b532", "score": "0.60710007", "text": "function get_total_work_data($from=null, $to=null)\r\n {\r\n $output = array();\r\n \r\n /*\r\n $sql = \"SELECT * FROM some_table WHERE id = ? AND status = ? AND author = ?\"; \r\n $this->db->query($sql, array(3, 'live', 'Rick'));\r\n */\r\n\r\n //total works view count\r\n $sql = \"SELECT count(id) as count FROM log_work_view WHERE regdate between ? and ?\"; \r\n $query = $this->db->query($sql, array($from, $to));\r\n foreach ($query->result() as $row)\r\n {\r\n $output['viewCount'] = $row->count;\r\n }\r\n\r\n //total works note count\r\n $sql = \"SELECT count(id) as count FROM log_work_note WHERE regdate between ? and ?\"; \r\n $query = $this->db->query($sql, array($from, $to));\r\n foreach ($query->result() as $row)\r\n {\r\n $output['noteCount'] = $row->count;\r\n }\r\n\r\n //total works comment count\r\n $sql = \"SELECT count(id) as count FROM work_comments WHERE regdate between ? and ?\"; \r\n $query = $this->db->query($sql, array($from, $to));\r\n foreach ($query->result() as $row)\r\n {\r\n $output['commentCount'] = $row->count;\r\n }\r\n\r\n return $output;\r\n }", "title": "" }, { "docid": "6ff6e551d1bedce1756d7d56e98cd42e", "score": "0.600827", "text": "public function actionWorkinghours(): array\n {\n $request = Yii::$app->request;\n\n if ($request->isPost) {\n return Appointments::WORKING_HOURS;\n }\n \n return [];\n }", "title": "" }, { "docid": "9dc1a85e36886c030977b545f81c8433", "score": "0.5974619", "text": "public function get_worker_hours($empID) \n {\n require_once('models/Timeslot.class.php');\n \n $q = $this->db->prepare(\"SELECT A.dateTime FROM TimeSlot A, CanWork C WHERE A.dateTime = C.dateTime AND C.empID = '$empID'\"); // grab all timeslots\n \n if (!$q)\n return false;\n \n if (!$q->execute())\n return false;\n \n $result = $q->get_result();\n $timeslots = array();\n \n while ($row = mysqli_fetch_array($result)) // set up timeslots\n {\n $start = new DateTime($row['dateTime']);\n $end = new DateTime($row['dateTime']);\n $end->modify('+'.MINIMUM_INTERVAL.' minutes');\n \n $now = new DateTime();\n \n if ($now > $start) // check timeslot isn't in the past\n continue;\n\n $timeslots[] = new Timeslot($start, $end); \n }\n \n $timeslots = $this->concatenate($timeslots); // convert into shifts\n \n // echo '<pre>'; print_r($timeslots); echo '</pre>';\n $this->time_sort($timeslots);\n \n // if ($timeslots == null)\n // return false;\n \n return $timeslots;\n }", "title": "" }, { "docid": "f3a4c17bf69aa029a4c4be7fe9147938", "score": "0.5933692", "text": "public function getwork($data = null){\n return isset($data) ? $this->bitcoin->getwork($data) : $this->bitcoin->getwork();\n }", "title": "" }, { "docid": "f8b6187201a85dc17f61a44181199da2", "score": "0.58456796", "text": "public static function aggregateEmployeeTotalWorkedHours($shift_info_id, $employee_id, $company_id, $companyCheckIn, $companyCheckOut) {\n $checkinDate = new DateTime($companyCheckIn);\n $checkoutDate = new DateTime($companyCheckOut);\n $pocetHodin = $checkoutDate->diff($checkinDate);\n $total_worked_hours = 0;\n $total_worked_hours = $total_worked_hours + $pocetHodin->h + ($pocetHodin->i/60);\n ShiftFacts::where(['shift_info_id' => $shift_info_id, 'employee_id' => $employee_id, 'company_id' => $company_id, 'time_id' => $shift_info_id])->update(['total_worked_hours' => $total_worked_hours]);\n }", "title": "" }, { "docid": "e5fb15116509bd0eabba85db85a0bc2e", "score": "0.57833683", "text": "public function getTotalHours() : float\n {\n return $this->totalHours;\n }", "title": "" }, { "docid": "3273938a1b917af4b1d0020e8be033c4", "score": "0.5781446", "text": "public function getHoursOfOperation()\n {\n return $this->hours_of_operation;\n }", "title": "" }, { "docid": "c44d5cb325bd02a3bcb3a45a7c457e38", "score": "0.5701459", "text": "function GetHours()\n {\n return $this->hours;\n }", "title": "" }, { "docid": "7580cd98dbe270afc71bc47b5cb8b66b", "score": "0.5641359", "text": "public static function aggregateShiftTotalHoursField($shift) {\n $shift_start = new DateTime($shift->shift_start);\n $shift_end = new DateTime($shift->shift_end);\n $hodinyRozdil = $shift_end->diff($shift_start);\n return ($hodinyRozdil->h + ($hodinyRozdil->i/60));\n }", "title": "" }, { "docid": "8453bf0357e65f31b84be52d6470a5fd", "score": "0.5581363", "text": "public function getTotalHt()\n {\n\n $conn = $this->getEntityManager()->getConnection();\n $sql = \"SELECT SUM(ht) AS total\n FROM cmdrobydelaiacceptereporte\n WHERE cmdrobydelaiacceptereporte.statut <> 'Terminé'\n \";\n $stmt = $conn->prepare($sql);\n $resultSet = $stmt->executeQuery();\n return $resultSet->fetchOne();\n }", "title": "" }, { "docid": "8a2b751c54364a0044708885c85dedae", "score": "0.5510485", "text": "function getTripData($db, $strTripID = \"\")\n{\n global $arrData;\n $strResult = \"\";\n if ($strTripID == \"\") {\n return \"\";\n }\n $strSQL = \"SELECT t1.*, (date_thru - date_from) AS durasi, t2.employee_id FROM hrd_trip AS t1 \";\n $strSQL .= \"LEFT JOIN hrd_employee AS t2 ON t1.id_employee = t2.id \";\n $strSQL .= \"WHERE t1.id = '$strTripID' \";\n $resDb = $db->execute($strSQL);\n if ($rowDb = $db->fetchrow($resDb)) {\n $arrData['dataLocation'] = $rowDb['location'];\n $arrData['dataPurpose'] = $rowDb['purpose'];\n $arrData['dataTask'] = $rowDb['task'];\n $arrData['dataEmployee'] = $rowDb['employee_id'];\n $arrData['dataDateFrom'] = $rowDb['date_from'];\n $arrData['dataDateThru'] = $rowDb['date_thru'];\n $arrData['dataAllowance'] = $rowDb['totalAllowance'];\n $arrData['dataDuration'] = $rowDb['durasi'] + 1;\n //$arrData['dataDuration'] = totalWorkDay($db,$rowDb['date_from'],$rowDb['date_thru']);\n }\n // cari apakah ada payment\n $strSQL = \"SELECT id FROM hrd_trip_payment WHERE id_trip = '$strTripID' \";\n $resDb = $db->execute($strSQL);\n if ($rowDb = $db->fetchrow($resDb)) {\n $strResult = $rowDb['id'];\n }\n $arrData['dataTotal'] += $arrData['dataAllowance'];\n return $strResult;\n}", "title": "" }, { "docid": "1a2995438861b6ab4de32ac06656ec07", "score": "0.54833347", "text": "function calculatePay($hours, $wage){\n global $errorCount;\n global $overtime;\n if($hours > 168){\n echo \"You can't work more than 168 hours in a week.<br>\";\n $errorCount++;\n $hours = 168;\n } else if($hours > 100){\n //if they are working more than 100 hours a week, they need sleep.\n echo \"You need sleep.<br>\";\n }\n $overtime = $hours - 40;\n $pay = $hours * $wage;\n if($overtime >= 0){\n $pay += $overtime * $wage/2;\n }\n $pay = round($pay,2);\n $pay = number_format($pay,2);\n return $pay;\n }", "title": "" }, { "docid": "c41b07ba864d505f0b4d961a07032c98", "score": "0.54805756", "text": "public function getTotalWeeklyJob()\n {\n return DB::table('work_orders')\n ->select([\n DB::raw('YEAR(work_orders.created_at) AS year'),\n DB::raw('WEEK(work_orders.created_at) AS week'),\n DB::raw('COUNT(work_orders.id) AS total'),\n ])\n ->groupBy([\n DB::raw('YEAR(work_orders.created_at)'),\n DB::raw('WEEK(work_orders.created_at)'),\n ])\n ->orderByDesc('year')\n ->orderBy('week');\n }", "title": "" }, { "docid": "b486afac2887fc0278c8dc89360da894", "score": "0.54672766", "text": "public function getReportEmployeeOvertime($data) {\n\t\t$sql = \"select a.employee_id, b.employeeid,\n CONCAT(b.employeefirstname,' ', b.employeemiddlename, ' ', b.employeelastname) employee,b.employeetitle,\n SUM(a.overtime) AS overtime,\n\t\t\t COUNT(DISTINCT(a.timesheetdate)) AS overday,\n d.department as department\n from timesheet a\n inner join employee b on a.employee_id = b.employee_id\n inner join department d on d.department_id=b.department_id\n where timesheet_approval=2 and overtime > 0 and overtime is not null\n and a.timesheetdate >= STR_TO_DATE('\" . $data ['date_from'] . \"', '%d/%m/%Y')\n and a.timesheetdate <= STR_TO_DATE('\" . $data ['date_to'] . \"', '%d/%m/%Y')\n and (b.employeetitle='Senior-2' OR b.employeetitle='Senior-1' OR b.employeetitle='Assistant')\n group by a.employee_id\n order by CONCAT(b.employeefirstname,' ', b.employeemiddlename, ' ', b.employeelastname)\";\n\t\treturn $this->rst2Array ( $sql );\n\t}", "title": "" }, { "docid": "7e826b704c0ea3a0b4d2054600c0fa7b", "score": "0.5461841", "text": "public function generate_hours() {\n\n\t\t\t$schema = get_theme_mod( 'schema' );\n\n\t\t\t$hours = isset( $schema['openingHoursSpecification'] ) ? $schema['openingHoursSpecification'] : false;\n\n\t\t\tif ( !$hours ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t$DAYS = array( 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday' );\n\t\t\t\n\t\t\tforeach( $DAYS as $day ) {\n\t\t\t\tforeach( $hours as $period ) {\n\t\t\t\t\tif ( in_array( $day, $period['dayOfWeek'] ) ) {\n\t\t\t\t\t\tif ( '00:00' === $period['opens'] ) {\n\t\t\t\t\t\t\tif ( '00:00' === $period['closes'] ) {\n\t\t\t\t\t\t\t\t$return[$day][0] = 'Closed';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif ( '23:59' === $period['closes'] ) {\n\t\t\t\t\t\t\t\t$return[$day][0] = 'Open 24 hours';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$return[$day][0] = $period['opens'];\n\t\t\t\t\t\t$return[$day][1] = $period['closes'];\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\n\t\t\treturn $return;\n\t\t}", "title": "" }, { "docid": "8eb5d149f27f822cdcfaf26ffe7b8d2c", "score": "0.5450208", "text": "public function addTime($data)\n\t{\n\t\t//check if we need to convert the time format to decimal\n\t\t$pos = strrpos($data['hours'], \":\");\n\t\tif ($pos !== false)\n\t\t{ \n\t\t\t$data['hours'] = $this->time_to_decimal($data['hours']);\n\t\t}\t\n\n\t\t//update the date to ensure we're dealing with the right format\n\t\t$date = strtotime($data['date']);\n\t\t$data['month'] = date('n', $date);\n\t\t$data['day'] = date('j', $date);\n\t\t$data['year'] = date('Y', $date);\n\t\t$sql = $this->getSQL($data);\n\t\t\n\t\t$sql['creator'] = $data['creator'];\n\t\t$sql['created_date'] = new \\Zend\\Db\\Sql\\Expression('NOW()');\n\n\t\t$time_id = $this->insert('times', $sql);\n\t\t\n\t\tif(is_numeric($data['project_id']))\n\t\t{\n\t\t\t$this->project->updateProjectTime($data['project_id'], $data['hours']);\n\t\t}\n\t\t\n\t\tif(is_numeric($data['task_id']))\n\t\t{\n\t\t\t$this->task->updateTaskTime($data['task_id'], $data['hours']);\n\t\t}\n\t\t\n\t\treturn $time_id;\n\t}", "title": "" }, { "docid": "0ab077e8f2b8db251da33eccb367c068", "score": "0.5436828", "text": "public function getHours($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "title": "" }, { "docid": "459c67af55602832e4c4bbcbc6bed7ce", "score": "0.54100543", "text": "public function getProgres($data)\n {\n $query = \"SELECT COUNT(id) FROM \".$this->table.\" WHERE from_id=:from_id AND YEAR(input_date)=YEAR(DATE_ADD(NOW(), INTERVAL 7 HOUR)) AND MONTH(input_date)=MONTH(DATE_ADD(NOW(), INTERVAL 7 HOUR)) AND DAY(input_date)=DAY(DATE_ADD(NOW(),INTERVAL 7 HOUR))\";\n\n $this->db->query($query);\n\n $this->db->bind('from_id', $data);\n\n return $this->db->single();\n }", "title": "" }, { "docid": "fc33528705613a24e622eeb467f060e2", "score": "0.54017794", "text": "public function getHoursToDeposit()\n {\n return $this->hoursToDeposit;\n }", "title": "" }, { "docid": "2a3d48c336f75e458bc10ac395b93f95", "score": "0.53990096", "text": "function get_weekday_stats(){\n if(!DashboardCommon::is_su()) return null;\n \n $sat = strtotime(\"last saturday\");\n $sat = date('w', $sat) == date('w') ? $sat + 7 * 86400 : $sat;\n $fri = strtotime(date(\"Y-m-d\", $sat) . \" +6 days\");\n $from = date(\"Y-m-d\", $sat);//for current week only\n $to = date(\"Y-m-d\", $fri);//for current week only\n $sql = \"SELECT DAYNAME(atr.call_start) as dayname,count(*) as total \n FROM week_days wd \n LEFT JOIN ( SELECT * FROM calls WHERE call_start >= '\" . $this->from . \"' AND call_start <= '\" . $this->to . \"') atr\n ON wd.week_day_num = DAYOFWEEK(atr.call_start)\n GROUP BY\n DAYOFWEEK(atr.call_start)\";\n\n $this_week_rec = DashboardCommon::db()->Execute($sql);\n $saturday = $sunday = $monday = $tuesday = $wednesday = 0;\n $thursday = $friday = 0;\n// $data = array();\n// while (!$this_week_rec->EOF) {\n// $k = $this_week_rec->fields['dayname'];\n// $data[$k]= $this_week_rec->fields['total'];\n// $this_week_rec->MoveNext();\n// }\n// \n// return array_keys($data, max($data));\n\n while (!$this_week_rec->EOF) {\n $daynames = $this_week_rec->fields['dayname'];\n $totalcalls = $this_week_rec->fields['total'];\n if ($daynames == 'Saturday') {\n $saturday = $this_week_rec->fields['total'];\n }\n if ($daynames == 'Sunday') {\n $sunday = $this_week_rec->fields['total'];\n }\n if ($daynames == 'Monday') {\n $monday = $this_week_rec->fields['total'];\n }\n if ($daynames == 'Tuesday') {\n $tuesday = $this_week_rec->fields['total'];\n }\n if ($daynames == 'Wednesday') {\n $wednesday = $this_week_rec->fields['total'];\n }\n if ($daynames == 'Thursday') {\n $thursday = $this_week_rec->fields['total'];\n }\n if ($daynames == 'Friday') {\n $friday = $this_week_rec->fields['total'];\n }\n\n $this_week_rec->MoveNext();\n }\n\n $arr = array('Saturday' => $saturday,\n 'Sunday' => $sunday,\n 'Monday' => $monday,\n 'Tuesday' => $tuesday,\n 'Wednesday' => $wednesday,\n 'Thursday' => $thursday,\n 'Friday' => $friday\n );\n $max_day = array_keys($arr, max($arr));\n \n $avg_calltime_sql = \"SELECT sum(duration) as total_call_time, count(*) as total_records, \n sum(duration) / count(*) as avg_time\n FROM \n (\n SELECT call_end-call_start as duration\n FROM calls\n WHERE call_start >= '\".$this->from.\"' AND call_start <= '\".$this->to.\"'\n ) as dt\";\n $avg_calltime_res = DashboardCommon::db()->Execute($avg_calltime_sql);\n \n \n return array('weekday'=>$max_day[0],'avg_call_time'=>$avg_calltime_res->fields['avg_time']);\n \n }", "title": "" }, { "docid": "92619b5a4e5ce014f91a2f6fd7c96d7c", "score": "0.5383314", "text": "public function getWorkingHours($state)\r\n {\r\n $sql = \"SELECT * FROM phone_order_callcenter\r\n WHERE 1 AND state = '$state' AND wtFrom > 0 AND wtTo > 0 LIMIT 1\";\r\n\r\n $all = $this->conn->fetchAssoc($sql);\r\n return $all;\r\n }", "title": "" }, { "docid": "573d444047c623eaeea35d4606e08d22", "score": "0.53629965", "text": "public function getWorkingHourByEmployee($start, $end, $refworkcenter)\n\t{\n\t\t$refworkcenter = $refworkcenter ? sprintf(' AND pbt.Ref_MaDVBT = %1$d ', $refworkcenter) : '';\n\t\t$sql = sprintf('\n\t\t\tSELECT\n\t\t\t\tifnull(cv.Ref_NguoiThucHien,pbt.Ref_NguoiThucHien) AS Ref_Worker\n\t\t\t\t, sum(ifnull(cv.ThoiGian, 0)) AS Time\n\t\t\t\t, cv.Ref_Ten AS Ref_Work\n\t\t\t\t, group_concat(concat(\\'<b>\\', pbt.SoPhieu , \\'</b>\\', \\'<br>\\' , cv.MoTa) SEPARATOR \\'<br>\\' ) AS CongViec\n\t\t\tFROM OPhieuBaoTri AS pbt\n\t\t\tLEFT JOIN OCongViecBTPBT AS cv ON pbt.IFID_M759 = cv.IFID_M759\n\t\t\tWHERE (pbt.NgayYeuCau BETWEEN %1$s AND %2$s) %3$s\n\t\t\tGROUP BY Ref_Worker,Ref_Work\n\t\t', $this->_o_DB->quote($start), $this->_o_DB->quote($end), $refworkcenter);\n\t\t//echo '<pre>'; print_r($sql); die;\n\t\treturn $this->_o_DB->fetchAll($sql);\n\n\t}", "title": "" }, { "docid": "a909279d6dad3449b5219d875aedc9b0", "score": "0.5352668", "text": "function calculateHours($clid){\n\t$result = mysql_query(\"Select sum(credit_hours) FROM(( Select credit_hours FROM take T, class Cl WHERE T.grade IS NOT NULL and T.grade<>'I' and T.grade <> 'NC' and T.grade<>'F' and T.grade <> 'W' and T.clid = '$clid' and Cl.section_num = T.section_num and Cl.semester = T.semester and Cl.year = T.year and Cl.course_num = T.course_num and Cl.course_dept = T.course_dept and Cl.credit_hours IS NOT NULL) UNION ALL (Select Co.credit_hours FROM spec_cred S, course Co WHERE S.grade IS NOT NULL and S.grade <> 'I' and S.grade <> 'NC' and S.grade <> 'F' and S.grade <> 'W' and S.clid = '$clid' and S.course_dept = Co.course_dept and S.course_num = Co.course_num) UNION ALL (Select Co.credit_hours FROM take T,course Co WHERE T.grade IS NOT NULL and T.grade<>'I' and T.grade <> 'NC' and T.grade<>'F' and T.grade <> 'W' and T.clid = '$clid' and T.course_dept = Co.course_dept and T.course_num = Co.course_num and NOT EXISTS(select * from class Cl WHERE Cl.course_dept = Co.course_dept and Cl.course_num = Co.course_num and Cl.credit_hours IS NOT NULL))) AS result;\") or die(mysql_error());\n\t$hours = mysql_result($result,0);\n\tif($hours == NULL) return 0;\n\telse return $hours;\n}", "title": "" }, { "docid": "4265c7319b2c6e4f6fef17c5e2b49675", "score": "0.53494465", "text": "public function getDeliveryHours()\n {\n return $this->apiClient->doCall(\n \"GET\",\n \"deliveryhours\"\n );\n }", "title": "" }, { "docid": "c73ef4ab0843564baa17bb4cd132388f", "score": "0.53450006", "text": "function get_hour()\n {\n $datearray=getdate($this->timestamp);\n return $datearray[\"hours\"];\n }", "title": "" }, { "docid": "544fe837129dbc94c06f9aeb37b5ca78", "score": "0.53426033", "text": "function getBusinessHours($prj_id, $customer_id)\n {\n $backend =& self::_getBackend($prj_id);\n return $backend->getBusinessHours($customer_id);\n }", "title": "" }, { "docid": "d33fe840a16adf1f681c68a7bef8ac29", "score": "0.5328717", "text": "public function totalRecord(){\n\t\t\t//lay bien ket noi csdl\n\t\t\t$conn = Connection::getInstance();\n\t\t\t//thuc thi truy van\n\t\t\t$query = $conn->query(\"select * from work inner join content_time on work.id=content_time.fk_work_id inner join work_time on work_time.id=content_time.fk_worktime_id\");\n\t\t\t//tra ve tong so luong ban ghi\n\t\t\treturn $query->rowCount();\n\t\t}", "title": "" }, { "docid": "6bd9fe952f1787f1fe3abd74284c70d8", "score": "0.5327951", "text": "public static function calcWorkDowntime($horaup, $horadown, $tempInds)\n {\n $ini_exp = 510; // inicio\n $fim_exp = 1050; // fim\n $total_exp = $fim_exp - $ini_exp;\n\n //separando data de hora\n $horacaiu = explode(' ', $horadown);\n $horavoltou = explode(' ', $horaup);\n\n //separando data, mes, ano\n $datacaiu = explode(\"-\", $horacaiu[0]);\n $datavoltou = explode(\"-\", $horavoltou[0]);\n\n // fragmentando horas, min, 00:00:0seg\n $horacaiuH = explode(\":\", $horacaiu[1]);\n $horavoltouH = explode(\":\", $horavoltou[1]);\n $tempIndsH = explode(\":\", $tempInds);\n\n // pegando o valor de horas e multiplicando por 60 pra converter em minutos\n $horacaiuMin = $horacaiuH[0] * 60;\n $horavoltouMin = $horavoltouH[0] * 60;\n $tempIndsMin = $tempIndsH[0] * 60;\n\n // somando o a conversão em minutos com os minutos restantes da hora\n $totalminC = $horacaiuMin + $horacaiuH[1];\n $totalminV = $horavoltouMin + $horavoltouH[1];\n $totaltempindsMIN = $tempIndsMin + $tempIndsH[1];\n\n //intervalo entre um exediente e outro\n $intervalo = 840; // são 14:00:00\n if ($totaltempindsMIN < 1440) {\n if ($totalminC >= $ini_exp and $totalminC <= $fim_exp) { // O bloco abaixo é executado quando o link cai durante o expediente.\n if ($totalminV >= $ini_exp and $totalminV <= $fim_exp) { // O bloco abaixo é executado quando o link volta durante o expediente.\n if ($totaltempindsMIN >= $intervalo) { // o bloco abaixo é executado quando o link cai durante o expediente e volta durante o expediente do outro dia\n $subtempo = $totaltempindsMIN - $intervalo;\n $conv_hora = floor($subtempo / 60);\n $resto = $subtempo % 60;\n $total = $conv_hora . ':' . $resto . ':00';\n return $total;\n } else { // esse bloco é executado quando o link cai durante o expediente e volta durante o mesmo expediente\n $subtempo = $totalminV - $totalminC;\n $conv_hora = floor($subtempo / 60);\n $resto = $subtempo % 60;\n $total = $conv_hora . ':' . $resto . ':00';\n return $total;\n }\n } else { // o bloco abaixo é executado quando o link cai durante o expediente e volta fora o expediente\n $totalminV = $fim_exp;\n $subtempo = $totalminV - $totalminC;\n $conv_hora = floor($subtempo / 60);\n $resto = $subtempo % 60;\n $total = $conv_hora . ':' . $resto . ':00';\n return $total;\n }\n } else { // esse bloco é executado quando o link cai fora do exediente\n if ($totalminV >= $ini_exp and $totalminV < $fim_exp) { // esse bloco é executado quando o link cai fora do expediente e volta durante o expediente\n $totalminC = $ini_exp;\n $subtempo = $totalminV - $totalminC;\n $conv_hora = floor($subtempo / 60);\n $resto = $subtempo % 60;\n $total = $conv_hora . ':' . $resto . ':00';\n return $total;\n } else { // esse bloco é executado quando o link cai fora do expediente e volta fora do expediente\n if ($totalminC >= $fim_exp and $totalminV <= $ini_exp) {\n $total = '00:00:00';\n return $total;\n } else {\n if ($totalminC > 360 and $totalminV < 480) {\n $total = '00:00:00';\n return $total;\n } else {\n $total = '9:00:00';\n return $total;\n }\n }\n }\n }\n } else { // esse bloco é executado quando o tempo de indisponibilidade é maior que 24 horas.\n $quebraDC = explode(\"-\", $horacaiu[0]);\n list($anoC, $mesC, $diaC) = $quebraDC;\n $quebraDV = explode(\" \", $horaup);\n list($dataV, $horaV) = $quebraDV;\n $datasp = explode(\"-\", $dataV);\n list($anoV, $mesV, $diaV) = $datasp;\n\n //converte para segundos\n $segC = mktime(00, 00, 00, $mesC, $diaC, $anoC);\n $segV = mktime(00, 00, 00, $mesV, $diaV, $anoV);\n $dif = $segV - $segC;\n $totaldias = (int) floor($dif / (60 * 60 * 24));\n\n if ($totaldias == 2) {\n $totaldias = $totaldias - 1;\n } else {\n if ($totaldias == 1) {\n $total = \"9:00:00\";\n return $total;\n return;\n } else {\n $totaldias = $totaldias - 2;\n }\n }\n\n $totaldias = $totaldias * $total_exp;\n $pri_dia = $totalminC <= $ini_exp ? $pri_dia = $total_exp : $pri_dia = $fim_exp - $totalminC;\n $ult_dia = $totalminV >= $fim_exp ? $ult_dia = $total_exp : $ult_dia = $totalminV - $ini_exp;\n $totalmin = $totaldias + $pri_dia + $ult_dia;\n $coverteHora = floor($totalmin / 60);\n $pegaresto = $totalmin % 60;\n $total = $coverteHora . ':' . $pegaresto . ':00';\n\n return $total;\n }\n }", "title": "" }, { "docid": "3f8edfdf0a699c42b97c60601cd157b5", "score": "0.5324913", "text": "public function count_user_weekday_availability_hours($availability_array){\n $total_hours = 0;\n $hours = 0;\n $days_count = 0;\n\n if(is_array($availability_array)){\n foreach ($availability_array as $key=>&$value) {\n if($key == 'hours'){\n // select hours value\n $hours = $value;\n }elseif($key != 'id'){\n //select availability days\n if($value != 0){\n $days_count++;\n }\n }\n }\n }\n\n $total_hours = $hours * $days_count;\n\n return $total_hours;\n\n }", "title": "" }, { "docid": "374a68f4ed5c9e95339c21e1ff2f06cb", "score": "0.5322082", "text": "public function getWorktimeDifference() {\n // Get work time in millis\n $workedTime = new DateTime($this->getWorkedTime());\n $workedTime = $workedTime->getTimestamp();\n\n // Get exp work time in millis\n $exp = new DateTime($this->getExp());\n $exp = $exp->getTimestamp();\n\n // substract actual worked time from extected tme\n // $diff are seconds\n $diff = -($exp - $workedTime);\n\n // check if the difference is negative\n if ($diff < 0) {\n // if so, set the flag to \"-\"\n $flag = \"-\";\n }\n $diff = abs($diff);\n\n // work out hours and minutes\n $minutes = ($diff / (60)) % 60;\n $hours = ($diff / (60 * 60)) % 24;\n\n // prepare values for return\n $hours = $hours <= 9 \n ? $hours < 0 \n ? str_split($hours)[0] . \"0\" . str_split($hours)[1] \n : \"0$hours\" \n : $hours;\n\n $minutes = $minutes <= 9 \n ? \"0$minutes\" \n : $minutes;\n\n // return the hours (with sign), minutes an total seconds\n // hours / minutes for rendering in views\n // total seconds (with sign) for further calculation\n return [\n $hours,\n $minutes,\n $diff,\n \"print\" => \"$flag$hours:$minutes\",\n \"flag\" => $flag\n ];\n }", "title": "" }, { "docid": "c100bc3d7ba4b2b4b90e298529029a79", "score": "0.5300714", "text": "public function getTotalTimesWhere($company_id = FALSE, $user_id = FALSE, $project_id = FALSE, $task_id = FALSE)\n\t{\t\t\n\t\t$sql = $this->db->select()->from(array('i'=>'times'))->columns(array('hours' => new \\Zend\\Db\\Sql\\Expression('SUM(hours)')));\n\t\tif($company_id)\n\t\t{\n\t\t\t$sql->where(array('company_id' => $company_id));\n\t\t}\n\t\t\n\t\tif($user_id)\n\t\t{\n\t\t\t$sql->where(array('user_id' => $user_id));\n\t\t}\n\n\t\tif($project_id)\n\t\t{\n\t\t\t$sql->where(array('project_id' => $project_id));\n\t\t}\n\n\t\tif($task_id)\n\t\t{\n\t\t\t$sql->where(array('task_id' => $task_id));\n\t\t}\n\t\t\t\t\n\t\t$total = $this->getRow($sql);\n\n\t\t\n\t\t$sql = $this->db->select()->from(array('i'=>'times'))->columns(array('hours' => new \\Zend\\Db\\Sql\\Expression('SUM(hours)')));\n\t\t$sql = $sql->where(array('bill_status' => 'sent', 'billable' => 1));\n\t\tif($company_id)\n\t\t{\n\t\t\t$sql->where(array('company_id' => $company_id));\n\t\t}\n\t\t\n\t\tif($user_id)\n\t\t{\n\t\t\t$sql->where(array('user_id' => $user_id));\n\t\t}\n\n\t\tif($project_id)\n\t\t{\n\t\t\t$sql->where(array('project_id' => $project_id));\n\t\t}\n\n\t\tif($task_id)\n\t\t{\n\t\t\t$sql->where(array('task_id' => $task_id));\n\t\t}\t\t\n\t\t$sent = $this->getRow($sql);\n\t\t\n\t\t$sql = $this->db->select()->from(array('i'=> 'times'))->columns( array('hours' => new \\Zend\\Db\\Sql\\Expression('SUM(hours)')));\n\t\t$sql = $sql->where(array('bill_status' => '', 'billable' => 1));\n\t\tif($company_id)\n\t\t{\n\t\t\t$sql->where(array('company_id' => $company_id));\n\t\t}\n\t\t\n\t\tif($user_id)\n\t\t{\n\t\t\t$sql->where(array('user_id' => $user_id));\n\t\t}\n\n\t\tif($project_id)\n\t\t{\n\t\t\t$sql->where(array('project_id' => $project_id));\n\t\t}\n\n\t\tif($task_id)\n\t\t{\n\t\t\t$sql->where(array('task_id' => $task_id));\n\t\t}\t\t\t\n\t\t$unsent = $this->getRow($sql);\n\t\t\n\t\t$sql = $this->db->select()->from(array('i'=>'times'))->columns( array('hours' => new \\Zend\\Db\\Sql\\Expression('SUM(hours)')));\n\t\t$sql = $sql->where(array('bill_status' => 'paid', 'billable' => '1'));\n\t\tif($company_id)\n\t\t{\n\t\t\t$sql->where(array('company_id' => $company_id));\n\t\t}\n\t\t\n\t\tif($user_id)\n\t\t{\n\t\t\t$sql->where(array('user_id' => $user_id));\n\t\t}\n\n\t\tif($project_id)\n\t\t{\n\t\t\t$sql->where(array('project_id' => $project_id));\n\t\t}\n\n\t\tif($task_id)\n\t\t{\n\t\t\t$sql->where(array('task_id' => $task_id));\n\t\t}\t\t\t\n\t\t$paid = $this->getRow($sql);\n\t\treturn array('total' => $total['hours'], 'sent' => $sent['hours'], 'unsent' => $unsent['hours'], 'paid' => $paid['hours']);\t\t\t\t\n\t}", "title": "" }, { "docid": "bd72a2c1a9390fec71323f2cf7556f4a", "score": "0.52989495", "text": "function calculateCompletedHours($clid){\n\t$result = mysql_query(\"Select sum(credit_hours) FROM(( Select credit_hours FROM take T, class Cl WHERE T.grade is not NULL and T.grade <> 'I' and T.grade <> 'NC' and T.grade <> 'W' and T.clid = '$clid' and Cl.section_num = T.section_num and Cl.semester = T.semester and Cl.year = T.year and Cl.course_num = T.course_num and Cl.course_dept = T.course_dept and Cl.credit_hours IS NOT NULL) UNION ALL (Select Co.credit_hours FROM take T,course Co WHERE T.grade is not NULL and T.grade <> 'I' and T.grade <> 'NC' and T.grade <> 'W' and T.clid = '$clid' and T.course_dept = Co.course_dept and T.course_num = Co.course_num and NOT EXISTS(select * from class Cl WHERE Cl.course_dept = Co.course_dept and Cl.course_num = Co.course_num and Cl.credit_hours IS NOT NULL))) AS result;\") or die(mysql_error());\n\t$hours = mysql_result($result,0);\n\tif($hours == NULL) return 0;\n\telse return $hours;\n}", "title": "" }, { "docid": "35b46bd28c05e779a123087d60e4f075", "score": "0.5283815", "text": "public function toHours($time) {\n \treturn intval($time / 3600000) % 60;\n }", "title": "" }, { "docid": "e759ea02a05793a8627141560e912212", "score": "0.5278781", "text": "public function fetchHours(){\n $sql = $this->db->query(\"SELECT * FROM posible_fisio ORDER BY dia, hora_i\");\n $list_db = $sql->fetchAll(PDO::FETCH_ASSOC);\n\n if($list_db != NULL) {\n return $list_db;\n } else {\n return NULL;\n }\n }", "title": "" }, { "docid": "b42493451de638822843efb3fe35fb98", "score": "0.52697736", "text": "public function calculate_man_hours($site_id = NULL, $date_limit = NULL, $user_id = NULL) {\r // Requires: $site_id and $date_limit. $date_limit must be in MySQL date format\r // $user_id is optional. \r \r $site_visits_table = $this->db->dbprefix('site_visits');\r \r // query looks up man_hours for individual school only\r $query_text = \"SELECT $site_visits_table.location_id, \r SEC_TO_TIME(SUM(TIME_TO_SEC($site_visits_table.time_worked))) as man_hours\r FROM $site_visits_table\r \r WHERE \r $site_visits_table.location_id = '$site_id' \r \";\r // If there is a date limit, use it. Date limit must be in date format.\r if ($date_limit)\r {\r $query_text .= \" AND date >= '$date_limit'\";\r }\r \r if ($user_id)\r {\r $query_text .= \" AND $site_visits_table.user_id = '$user_id' \";\r }\r $query_text .= \" GROUP BY $site_visits_table.location_id\";\r \r //echo \"<p>Query = $query_text</p>\";\r $query = $this->db->query($query_text);\r return $query->row();\r }", "title": "" }, { "docid": "4e9be069fdb5f6d4919c1f0dd86af65d", "score": "0.52696854", "text": "function hours_by_member($period, $site_id = NULL) {\n $site_id = is_null($site_id) ? kohana::config('chapterboard.site_id') : $site_id;\n $period = $this->parse_period($period);\n // var_dump($site_id);var_dump($period);die();\n return $this->db->select('user.*, SUM(hours) AS hours, SUM(dollars) as dollars')\n ->from('service_hours as hours')\n ->join('users AS user', 'hours.user_id', 'user.id', 'LEFT')\n ->join('service_events as event', 'event.id', 'hours.event_id', 'LEFT')\n ->where('user.site_id', $site_id)\n ->where('event.date >=', $period['start'])\n ->where('event.date <=', $period['end'])\n ->groupby('hours.user_id')\n ->get();\n }", "title": "" }, { "docid": "c5772ed061d2a4fd917719ed244485d2", "score": "0.52635276", "text": "public function work_info(): array { // 返回工作岗位信息\n $data = array();\n\n if ($this->InformationValid) {\n $data = array\n (\n '周一空课' =>$this->MondayEmptyTime, // 周一空课\n '周二空课' =>$this->TuesdayEmptyTime, // 周二空课\n '周三空课' =>$this->WednesdayEmptyTime, // 周三空课\n '周四空课' =>$this->ThursdayEmptyTime, // 周四空课\n '周五空课' =>$this->FridayEmptyTime, // 周五空课\n '所属组' =>$this->GroupBelonging, // 所属组\n '岗位' =>$this->Work, // 岗位\n '工资' =>$this->Wage, // 工资\n '备注' =>$this->Remark, // 备注\n '管理组' =>$this->GroupManagement, // 管理组\n '权限' =>$this->Authorization // 权限\n );\n }\n\n return ($data);\n }", "title": "" }, { "docid": "29f463d2e557dbe47e69c2fe27177123", "score": "0.52566403", "text": "public function getWorkingHours(): ?WorkingHours {\n $val = $this->getBackingStore()->get('workingHours');\n if (is_null($val) || $val instanceof WorkingHours) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'workingHours'\");\n }", "title": "" }, { "docid": "f51aa8005d0ce568c6248c20514fa769", "score": "0.52558446", "text": "public function fetchTotalHours($landscapeID) {\r\n\t \t$db = Zend_Db_Table::getDefaultAdapter();\r\n $sql = $db->select()\r\n ->from(array('a' => 'tbl_landscape'),array('a.TotalCreditHours')) \r\n ->where('a.IdLandscape = ?',$landscapeID);\r\n $result = $db->fetchRow($sql);\r\n return $result;\r\n }", "title": "" }, { "docid": "6a3d2a84bb70e60ee137feb5c0aba1c1", "score": "0.52469635", "text": "public function getHours(): ?float\n {\n return $this->hours;\n }", "title": "" }, { "docid": "ce6c2ae468470d32a2e7730fd959e34a", "score": "0.52456075", "text": "function calculate_footers($data){\n\t\t$sumQty = 0.0;\n\t\t$sumSales = 0.0;\n\t\tforeach($data as $row){\n\t\t\t$sumQty += $row[3];\n\t\t\t$sumSales += $row[4];\n\t\t}\n\t\treturn array('Total',null,null,$sumQty,$sumSales);\n\t}", "title": "" }, { "docid": "467b7d866673769fab9112ff6eb8cbc9", "score": "0.524301", "text": "public static function hours( $time )\n\t{\n\t\treturn self::minutes( $time ) * 60;\n\t}", "title": "" }, { "docid": "0837c50616e0f9fb47a0548d874b4132", "score": "0.5238136", "text": "public function fetchVolunteerHours()\n {\n $output = array();\n //database connection and SQL query\n $core = Core::dbOpen();\n \n $sql = \"( SELECT UNIX_TIMESTAMP( c.date ) as date, c.courtLocationID, cm.hours, cm.courtID \n FROM court_member cm, court c\n WHERE volunteerID = :id AND cm.courtID = c.courtID )\n UNION ( SELECT UNIX_TIMESTAMP( c.date ) as date, c.courtLocationID, cm.hours, cm.courtID \n FROM court_jury_volunteer cm, court c\n WHERE volunteerID = :id AND cm.courtID = c.courtID )\";\n $stmt = $core->dbh->prepare($sql);\n $stmt->bindParam(':id', $this->volunteerID );\n Core::dbClose();\n \n try {\n if( $stmt->execute() && $stmt->rowCount() > 0) {\n while( $row = $stmt->fetch(PDO::FETCH_ASSOC)) { \n $output[] = $row;\n }\n }\n } catch (PDOException $e) {\n echo \"Volunteer Hour Read Failed!\";\n }\n return $output;\n }", "title": "" }, { "docid": "063dc2beb61e17acbf1cc318ad3ce958", "score": "0.52266914", "text": "public function getworkingTable($org_user,$branch_id)\n { \n //Query To Get Branch information\n $sqlGetInfo=\"SELECT * FROM branch WHERE branch_id=? AND org_username=?\";\n $values=array($branch_id,$org_user);\n $brInformaion=$this->getInfo($sqlGetInfo,$values);\n \n //Query To Get Working List Of Specific Branch\n $sqlGetTable=\"SELECT * FROM work_hours WHERE branch_id=?\";\n $values=array($branch_id);\n $table=$this->getInfo($sqlGetTable,$values);\n \n $found=0;\n /* Fill The Table By The Data We Got From The DataBase Of Working Hours BY Day\n With Some Checks About Day Off And Break Time */\n ?>\n <thead> \n <tr>\n <th class=\"days\">יום</th>\n <th class=\"days\"><div><span>פתיחה</span></div></th>\n <th class=\"days\"><div><span>סגירה</span></div></th>\n <th class=\"days\"><div><span>הפסקה</span></div></th>\n </tr>\n </thead>\n <tbody>\n \n <tr>\n <th class=\"days\">ראשון</th>\n <?php \n foreach($table as $d)\n {\n if($d['day']==1 && $d['dayOFF']==1) //Check If It Is Not DayOff\n {\n if($d['endA']==\"00:00:00\" && $d['startB']==\"00:00:00\")//Check If There Is No BreakTime\n {\n $found=1;\n ?>\n <td><small><label><?php echo $d['startA']; ?></label></small></td>\n <td><small><label><?php echo $d['endB']; ?></label></small></td>\n <td><small><label>אין הפסקה</label></small></td>\n <?php\n }\n else\n {\n $found=1;\n ?>\n <td><small><label><?php echo $d['startA']; ?></label></small></td>\n <td><small><label><?php echo $d['endB']; ?></label></small></td>\n <td><small><label><?php echo $d['endA']; ?> - <?php echo $d['startB']; ?></label></small></td>\n <?php\n }\n }\n }\n if($found==0)//Its Mean This Is Day Off Work\n {\n ?>\n <td><label></label></td>\n <td><label>סגור</label></td>\n <td><label></label></td>\n <?php\n }\n $found=0;\n ?>\n </tr>\n <tr>\n <th class=\"days\">שני</th>\n <?php \n foreach($table as $d)\n {\n if($d['day']==2 && $d['dayOFF']==1)//Check If It Is Not DayOff\n {\n if($d['endA']==\"00:00:00\" && $d['startB']==\"00:00:00\")//Check If There Is No BreakTime\n {\n $found=1; //This Mean This Day Is Not Day Off\n ?>\n <td><small><label><?php echo $d['startA']; ?></label></small></td>\n <td><small><label><?php echo $d['endB']; ?></label></small></td>\n <td><small><label>אין הפסקה</label></small></td>\n <?php\n }\n else\n {\n $found=1;\n ?>\n <td><small><label><?php echo $d['startA']; ?></label></small></td>\n <td><small><label><?php echo $d['endB']; ?></label></small></td>\n <td><small><label><?php echo $d['endA']; ?> - <?php echo $d['startB']; ?></label></small></td>\n <?php\n }\n }\n }\n if($found==0)//Its Mean This Is Day Off Work\n {\n ?>\n <td><label></label></td>\n <td><label>סגור</label></td>\n <td><label></label></td>\n <?php\n }\n $found=0;\n ?>\n </tr>\n <tr>\n <th class=\"days\">שלישי</th>\n <?php \n foreach($table as $d)\n {\n if($d['day']==3 && $d['dayOFF']==1)//Check If It Is Not DayOff\n {\n if($d['endA']==\"00:00:00\" && $d['startB']==\"00:00:00\")//Check If There Is No BreakTime\n {\n $found=1;//This Mean This Day Is Not Day Off\n ?>\n <td><small><label><?php echo $d['startA']; ?></label></small></td>\n <td><small><label><?php echo $d['endB']; ?></label></small></td>\n <td><small><label>אין הפסקה</label></small></td>\n <?php\n }\n else\n {\n $found=1;\n ?>\n <td><small><label><?php echo $d['startA']; ?></label></small></td>\n <td><small><label><?php echo $d['endB']; ?></label></small></td>\n <td><small><label><?php echo $d['endA']; ?> - <?php echo $d['startB']; ?></label></small></td>\n <?php\n }\n }\n }\n if($found==0)//Its Mean This Is Day Off Work\n {\n ?>\n <td><label></label></td>\n <td><label>סגור</label></td>\n <td><label></label></td>\n <?php\n }\n $found=0;\n ?>\n </tr>\n \n <tr>\n <th class=\"days\">רביעי</th>\n <?php \n foreach($table as $d)\n {\n if($d['day']==4 && $d['dayOFF']==1)//Check If It Is Not DayOff\n {\n if($d['endA']==\"00:00:00\" && $d['startB']==\"00:00:00\")//Check If There Is No BreakTime\n {\n $found=1;//This Mean This Day Is Not Day Off\n ?>\n <td><small><label><?php echo $d['startA']; ?></label></small></td>\n <td><small><label><?php echo $d['endB']; ?></label></small></td>\n <td><small><label>אין הפסקה</label></small></td>\n <?php\n }\n else\n {\n $found=1;\n ?>\n <td><small><label><?php echo $d['startA']; ?></label></small></td>\n <td><small><label><?php echo $d['endB']; ?></label></small></td>\n <td><small><label><?php echo $d['endA']; ?> - <?php echo $d['startB']; ?></label></small></td>\n <?php\n }\n }\n }\n if($found==0)//Its Mean This Is Day Off Work\n {\n ?>\n <td><label></label></td>\n <td><label>סגור</label></td>\n <td><label></label></td>\n <?php\n }\n $found=0;\n ?>\n </tr>\n \n <tr>\n <th class=\"days\">חמישי</th>\n <?php \n foreach($table as $d)\n {\n if($d['day']==5 && $d['dayOFF']==1)//Check If It Is Not DayOff\n {\n if($d['endA']==\"00:00:00\" && $d['startB']==\"00:00:00\")//Check If There Is No BreakTime\n {\n $found=1;//This Mean This Day Is Not Day Off\n ?>\n <td><small><label><?php echo $d['startA']; ?></label></small></td>\n <td><small><label><?php echo $d['endB']; ?></label></small></td>\n <td><small><label>אין הפסקה</label></small></td>\n <?php\n }\n else\n {\n $found=1;\n ?>\n <td><small><label><?php echo $d['startA']; ?></label></small></td>\n <td><small><label><?php echo $d['endB']; ?></label></small></td>\n <td><small><label><?php echo $d['endA']; ?> - <?php echo $d['startB']; ?></label></small></td>\n <?php\n }\n }\n }\n if($found==0)//Its Mean This Is Day Off Work\n {\n ?>\n <td><label></label></td>\n <td><label>סגור</label></td>\n <td><label></label></td>\n <?php\n }\n $found=0;\n ?>\n </tr>\n <tr>\n <th class=\"days\">שישי</th>\n <?php \n foreach($table as $d)\n {\n if($d['day']==6 && $d['dayOFF']==1)//Check If It Is Not DayOff\n {\n if($d['endA']==\"00:00:00\" && $d['startB']==\"00:00:00\")//Check If There Is No BreakTime\n {\n $found=1;//This Mean This Day Is Not Day Off\n ?>\n <td><small><label><?php echo $d['startA']; ?></label></small></td>\n <td><small><label><?php echo $d['endB']; ?></label></small></td>\n <td><small><label>אין הפסקה</label></small></td>\n <?php\n }\n else\n {\n $found=1;\n ?>\n <td><small><label><?php echo $d['startA']; ?></label></small></td>\n <td><small><label><?php echo $d['endB']; ?></label></small></td>\n <td><small><label><?php echo $d['endA']; ?> - <?php echo $d['startB']; ?></label></small></td>\n <?php\n }\n }\n }\n if($found==0)//Its Mean This Is Day Off Work\n {\n ?>\n <td><label></label></td>\n <td><label>סגור</label></td>\n <td><label></label></td>\n <?php\n }\n $found=0;\n ?>\n </tr>\n \n <tr>\n <th class=\"days\">שבת</th>\n <?php \n foreach($table as $d)\n {\n if($d['day']==7 && $d['dayOFF']==1)//Check If It Is Not DayOff\n {\n if($d['endA']==\"00:00:00\" && $d['startB']==\"00:00:00\")//Check If There Is No BreakTime\n {\n $found=1;//This Mean This Day Is Not Day Off\n ?>\n <td><small><label><?php echo $d['startA']; ?></label></small></td>\n <td><small><label><?php echo $d['endB']; ?></label></small></td>\n <td><small><label>אין הפסקה</label></small></td>\n <?php\n }\n else\n {\n $found=1;\n ?>\n <td><small><label><?php echo $d['startA']; ?></label></small></td>\n <td><small><label><?php echo $d['endB']; ?></label></small></td>\n <td><small><label><?php echo $d['endA']; ?> - <?php echo $d['startB']; ?></label></small></td>\n <?php\n }\n }\n }\n if($found==0)//Its Mean This Is Day Off Work\n {\n ?>\n <td><label></label></td>\n <td><label>סגור</label></td>\n <td><label></label></td>\n <?php\n }\n $found=0;\n ?>\n </tr>\n <tr>\n <th class=\"days\" style=color:black;>פרטי סניף</th>\n <th class=\"days\" style=color:black;><div><span class=\"glyphicon glyphicon-map-marker\"><?php echo $brInformaion[0]['branch_address']; ?></span></div></th>\n <th class=\"days\" style=color:black;><div><span class=\"glyphicon glyphicon-phone-alt\"><?php echo $brInformaion[0]['branch_tel']; ?></span></div></th>\n <th class=\"days\" style=color:black;><div><span class=\"glyphicon glyphicon-envelope\"><?php echo $brInformaion[0]['branch_mail']; ?></span></div></th>\n </tr>\n\n </tbody>\n <?php\n }", "title": "" }, { "docid": "cf43bf124ee6da69d439635b6ed85a56", "score": "0.52207154", "text": "function total($userActivities, $weekdays, $exercises)\n{\n $totalHour = 0;\n foreach ($weekdays as $day) {\n foreach ($exercises as $exercise) {\n if (isset($userActivities[$_SESSION['user']['email']][$day][$exercise][$exercise . \"Hour\"])) {\n $totalHour = $totalHour + (int) $userActivities[$_SESSION['user']['email']][$day][$exercise][$exercise . \"Hour\"];\n }\n }\n }\n return $totalHour;\n}", "title": "" }, { "docid": "5c2cd39281e34f15845f42d8cf614177", "score": "0.521458", "text": "public function ntc_hours ($input) {\n $this->hours_input = substr($input, -11, 2);\n return $this->hours_output = date('h') - $this->hours_input;\n }", "title": "" }, { "docid": "d96f68ffbb9a0c16e1f64cb4b9dba74a", "score": "0.52128386", "text": "public function getRemainingHoursOfNewOrd(){\n return 0;\n }", "title": "" }, { "docid": "440cb7b1bf729b554111c77a487bde69", "score": "0.52127194", "text": "public function getHours()\n {\n $minutes = $this->getEndDate()->getDate()->diffInMinutes($this->getBeginDate()->getDate());\n if (!$minutes) {\n return 0.0;\n }\n return round($minutes / 60, 1);\n }", "title": "" }, { "docid": "16dafd33315c6529bbc24395c82919a1", "score": "0.5199848", "text": "public function actionAjaxGetTotalLoginHours()\n\t{\n\t\t$result = array(\n\t\t\t'status' => 'error',\n\t\t\t'value' => 0,\n\t\t);\n\t\t\n\t\tif( isset($_POST['ajax']) && isset($_POST['filter']) && isset($_POST['account_id']) )\n\t\t{\n\t\t\t$account = Account::model()->findByPk($_POST['account_id']);\n\t\t\t\n\t\t\tif( $account )\n\t\t\t{\n\t\t\t\t$payPeriodOptions = array();\n\t\t\t\t\n\t\t\t\tforeach( range(2015, 2018) as $year)\n\t\t\t\t{\n\t\t\t\t\tforeach( range( $year == 2015 ? 11 : 1 , 12) as $monthNumber )\n\t\t\t\t\t{\n\t\t\t\t\t\t$firstDayOfMonth = date('M d', strtotime($year.'-'.$monthNumber.'-01'));\n\t\t\t\t\t\t$fifteenthDayOfMonth = date('M d', strtotime($year.'-'.$monthNumber.'-16'));\n\t\t\t\t\t\t$lastDayOfMonth = date('d', strtotime('last day of this month', strtotime($firstDayOfMonth)));\n\t\t\t\t\t\t\n\t\t\t\t\t\t$payPeriodOptions[] = $firstDayOfMonth.' - 15 '.$year;\n\t\t\t\t\t\t$payPeriodOptions[] = $fifteenthDayOfMonth.' - '.$lastDayOfMonth.' '.$year;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif( $_POST['filter'] != '')\n\t\t\t\t{\n\t\t\t\t\t$filter = $_POST['filter'];\n\t\t\t\t\t\n\t\t\t\t\t$explodedDilterDate = explode(' - ', $payPeriodOptions[$filter]);\n\t\t\t\t\t$explodedElement1 = explode(' ', $explodedDilterDate[0]);\n\t\t\t\t\t$explodedElement2 = explode(' ', $explodedDilterDate[1]);\n\n\t\t\t\t\t$month = $explodedElement1[0];\n\t\t\t\t\t$start_day = $explodedElement1[1];\n\t\t\t\t\t$end_day = $explodedElement2[0];\n\t\t\t\t\t$year = $explodedElement2[1];\n\t\t\t\t\t\n\t\t\t\t\t$startDate = $year.'-'.$month.'-'.$start_day;\n\t\t\t\t\t$endDate = $year.'-'.$month.'-'.$end_day;\n\t\t\t\t\t\n\t\t\t\t\t$result['status'] = 'success';\n\t\t\t\t\t$result['value'] = $account->getTotalLoginHours($startDate, $endDate);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\techo json_encode($result);\n\t}", "title": "" }, { "docid": "e3650fbff60232d41f69548d42ce45d7", "score": "0.5194999", "text": "public function reportHourProductionTotal($start_date,$end_date,$hour1,$hour2){\n\t\t$mcoData = new Application_Model_DbTable_McoData();\n\t\t$select = $mcoData->select()->setIntegrityCheck(false);\n\t\t$select ->from(array(\"md\" => \"mco_data\"),array('md.start_hour','md.end_hour',\n\t\t'kilometric_production_a' => new Zend_Db_Expr('(sum(qr.ext_asphalt)/1000)'),\n\t\t'kilometric_production_t' => new Zend_Db_Expr('(sum(qr.ext_land)/1000)'),\n\t\t'kilometric_production_p' => new Zend_Db_Expr('(sum(qr.ext_poli)/1000)'),\n\t\t'ipk' => new Zend_Db_Expr('sum(md.amount_passenger)/sum(qr.ext_asphalt)'),\n\t\t'travel' => new Zend_Db_Expr('count(md.id)'),\n\t\t'travel_passenger' => new Zend_Db_Expr('sum(md.amount_passenger)/count(md.id)'),\n\t\t'total_passenger' => new Zend_Db_Expr('sum(md.amount_passenger)'),\n\t\t'km_hour' => new Zend_Db_Expr('((sum(qr.ext_asphalt)+sum(qr.ext_land)+sum(qr.ext_poli))/1000)/((sum(((substr(md.end_hour,1,2)*60)+substr(md.end_hour,4,2)) - ((substr(md.start_hour,1,2)*60)+substr(md.start_hour,4,2))))/60)'),\n\t\t'travel_time' => new Zend_Db_Expr('(sum(((substr(md.end_hour,1,2)*60)+substr(md.end_hour,4,2)) - ((substr(md.start_hour,1,2)*60)+substr(md.start_hour,4,2))))/count(md.id)'),\n\t\t'realized_travel' => new Zend_Db_Expr('sum(travel_interrupted)')))\n\t\t->joinInner(array('q' => 'qco'), 'md.line=q.number_communication')\n\t\t->joinInner(array('qr' => 'qco_route'), 'q.id=qr.qco_id')\n\t\t->where('md.start_date >= ?', Application_Model_General::dateToUs($start_date))\n\t\t->where('md.end_date <= ?', Application_Model_General::dateToUs($end_date))\n\t\t->where('md.start_hour >= ?', $hour1)\n\t\t->where('md.start_hour <= ?', $hour2)\n\t\t->where('qr.type_journey = 1')\n\t\t->where('md.status=1');\n\t\treturn $mcoData->fetchAll($select);\n\t}", "title": "" }, { "docid": "ed2d8ef0d902fd5127ddbc8c8fb29588", "score": "0.51707125", "text": "public function exporthours($id)\n {\n // $export = new HoursExport();\n // $export->setId($id);\n //\n // Excel::download($export, 'hours {{$id}}.xlsx');\n $hours = Hour::whereProjectId($id)->get();\n (new FastExcel($hours))->export('uren'.$id.'.xlsx', function ($hour) {\n return [\n 'Project' => $hour->project->projectname . ' '.$hour->project->customer->companyname,\n 'Naam' => $hour->user->name,\n 'Van' => date('d-m-Y', strtotime($hour->workedstartdate)),\n 'Begin' => $hour->workedstarttime,\n 'Tot' => date('d-m-Y', strtotime($hour->workedenddate)),\n 'Eind' => $hour->workedendtime,\n 'Totaal' => sprintf('%02d:%02d:%02d', ($hour->worked_hours/3600),($hour->worked_hours/60%60), $hour->worked_hours%60)\n ];\n});\nreturn FastExcel($hours)->download('uren'.$id.'.xlsx');\n$projects = Project::findOrFail($id);\n$tasks = Task::whereProjectId($id)->get()->all();\n$users = User::pluck('name','id')->all();\n // $hours = Hour::whereProjectId($id)->get()->all();\n $availables = Available::whereProjectId($id)->get()->all();\n $sumtaskhours = Task::whereProjectId($id)->sum('planned_hours');\n $sumhourhours = Hour::whereProjectId($id)->sum('worked_hours');\n\nreturn view('planner.projects');\n\n\n\n\n }", "title": "" }, { "docid": "1965ff3911c8cca5e15eb665ffdd43ce", "score": "0.5150034", "text": "public function getHoursPlayed() {\n return $this->hoursPlayed;\n }", "title": "" }, { "docid": "fb0e2b8f74ec70a280d2e35aab7f05f6", "score": "0.5149178", "text": "public function workHours($workHours)\n {\n return $this->setProperty('workHours', $workHours);\n }", "title": "" }, { "docid": "4972db7e305f7b4247dd702cdf0b05bc", "score": "0.5143575", "text": "public function getTotalHours(): float\n {\n return $this->getTotalMinutes() / 60;\n }", "title": "" }, { "docid": "7727eed1a5e035a06b863fe386b5ab7b", "score": "0.5143429", "text": "function getSumWeek($values)\n {\n if(!$values['Week']['is_empty'])\n {\n $total_hours_week = 0;\n $total_minutes_week = 0;\n $total_mileages_week = 0;\n $total_tolls_week = 0;\n \n $return = array();\n \n foreach($values['Day'] as $day)\n {\n if(!$day['is_empty'])\n {\n /*******hours*******/\n $hours = 0;\n $minutes = 0;\n foreach($day['DailyTime'] as $daily_time)\n {\n $hours=(int)$hours+$daily_time['hours'];\n $minutes=(int)$minutes+$daily_time['minutes'];\n }\n $hours+=(int)($minutes/60);\n $minutes=$minutes%60;\n if($minutes==0)$minutes=\"00\";\n \n if(strlen($minutes) == 1) $minutes = '0'.$minutes;\n $return['hours'][$day['id']] = $hours.\":\".$minutes;\n \n $total_hours_week+= $hours;\n $total_minutes_week+= $minutes;\n \n /**********mileages*********/\n $mileages = 0;\n foreach($day['DailyMileage'] as $daily_mileage)\n {\n $mult = $daily_mileage['round_trip'] ? 2 : 1;\n $find = false;\n foreach($daily_mileage['FromLocation']['StartMile'] as $miles)\n {\n if($miles['location_end'] == $daily_mileage['ToLocation']['id'])\n {\n $mileages+= $miles['distance'] * $mult;\n $find = true;\n }\n }\n foreach($daily_mileage['FromLocation']['EndMile'] as $miles)\n {\n if($miles['location_start'] == $daily_mileage['ToLocation']['id'] && !$find)\n {\n $mileages+= $miles['distance'] * $mult;\n $find = true;\n }\n }\n }\n $mileages+=$day['additional_mileage'];\n $return['mileages'][$day['id']] = $mileages;\n\t\t\t\t\n $total_mileages_week+= $mileages;\n \n /**********tolls***********/\n $total_tolls_week+=$day['tolls'];\n }\n else\n {\n $return['hours'][$day['id']] = '';\n $return['mileages'][$day['id']] = 0;\n }\n }\n\t\t\t\n\t\t\t $total_hours_week+=(int)($total_minutes_week/60);\n $total_minutes_week= $total_minutes_week%60;\n\t\t\t\t\n if(strlen($total_minutes_week) == 1) $total_minutes_week = '0'.$total_minutes_week;\n $return['hours']['total'] = $total_hours_week.\":\".$total_minutes_week;\n $return['mileages']['total'] = $total_mileages_week;\n $return['tolls']['total'] = $total_tolls_week;\n \n return $return;\n }\n else\n return false;\n }", "title": "" }, { "docid": "34d83b3cd7da1b2618968e75f525b070", "score": "0.51408666", "text": "public function calculateWeeklyCosts(){\n $view = $this->view;\n $view->setNoRender();\n \n \n Service::loadModels('user', 'user');\n Service::loadModels('team', 'team');\n Service::loadModels('people', 'people');\n Service::loadModels('league', 'league');\n Service::loadModels('car', 'car');\n Service::loadModels('rally', 'rally');\n $teamService = parent::getService('team','team');\n \n /*\n * Wydatki : \n * 1. Pensje zawodnikow\n * 2. Koszty utrzymania samochodu\n * \n * Przychody : \n * 1. Od sponsora (5000)\n */\n \n $teams = $teamService->getAllTeams();\n foreach($teams as $team):\n $playersValue = $teamService->getAllTeamPlayersSalary($team);\n if($playersValue!=0)\n $teamService->removeTeamMoney($team['id'],$playersValue,4,'Player salaries '); \n \n \n $carUpkeep = $teamService->getAllTeamCarsUpkeep($team);\n if($carUpkeep!=0)\n $teamService->removeTeamMoney($team['id'],$carUpkeep,5,'Cars upkeep'); \n \n if(!empty($team['sponsor_id'])){\n $teamService->addTeamMoney($team['id'],5000,2,'Money from '.$team['Sponsor']['name'].' received on '.date('Y-m-d')); \n }\n \n if($team['cash']<0){\n $negativeFinances = (int)$team->get('negative_finances');\n $negativeFinances++;\n $team->set('negative_finances',$negativeFinances);\n $team->save();\n \n if($negativeFinances>=5){\n $team->delete();\n $user = $team->get('User');\n $user->set('active',0);\n $user->save();\n }\n }\n else{\n $team->set('negative_finances',0);\n }\n \n $team->save();\n \n endforeach;\n echo \"done\";exit;\n }", "title": "" }, { "docid": "175aaa852adf4e9359bfb74f5c3b1d61", "score": "0.51376826", "text": "public function getCargaHrTotal()\n {\n return $this->carga_hr_total;\n }", "title": "" }, { "docid": "76804d24a502ce6b2f7d50214e00f7aa", "score": "0.51315767", "text": "public static function calculateTimesheetHours($times)\n {\n $minutes = 0;\n foreach($times as $time)\n {\n list($hour, $minute) = explode(':', $time);\n $minutes += $hour * 60;\n $minutes += $minute;\n }\n $hours = floor($minutes / 60);\n $minutes -= $hours * 60;\n\n return sprintf('%02d:%02d', $hours, $minutes);\n }", "title": "" }, { "docid": "9d57a540ff58d837531ae97fab9803c6", "score": "0.5128428", "text": "function get_worklogs($data)\n {\t\n\t\tif($data['dateFrom'] && $data['dateTo'])\n\t\t{\t\n\t\t\tif(isset($data['userName'])){\n\t\t\t\t$user_array = explode(\"~\", $data['userName']);\n\t\t\t\t$un = \" and username IN (\";\n\t\t\t\t$i = 0;\n\t\t\t\tforeach($user_array as $user)\n\t\t\t\t{\n\t\t\t\t\tif($i == 0){\n\t\t\t\t\t\t$un = $un.\"'\".$user.\"'\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$un = $un.\", '\".$user.\"'\";\n\t\t\t\t\t}\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t\t$un = $un.\")\";\n\t\t\t} else {\n\t\t\t\t$un = \"\";\n\t\t\t}\n\t\t\tif( isset($data['projectkey']) )\n\t\t\t{\n\t\t\t\t$pk = \" and project_key = '\".$data['projectkey'].\"'\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$pk = \"\";\n\t\t\t}\n\t\t\t\n\t\t\tif( isset($data['limit']) ){\n\t\t\t\t$limit_query = \" LIMIT \".$data['limit'];\n\t\t\t\tif( isset($data['offset']) ){\n\t\t\t\t\tif( $data['offset'] > 0)\n\t\t\t\t\t\t$limit_query = $limit_query.\" OFFSET \".$data['offset'];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$limit_query = \"\";\n\t\t\t}\n\t\t\t\n\t\t\t$sql =\n\t\t\t\t\"select * from WORKLOGS where work_date \"\n\t\t\t\t.\">= cast( '\".$data['dateFrom'].\"' as datetime) and work_date \"\n\t\t\t\t.\"<= cast( '\".$data['dateTo'].\"' as datetime)\"\n\t\t\t\t.$un.$pk.$limit_query;\n\t\t\t$query = $this->db->query($sql);\n\t\t\treturn json_decode(json_encode($query->result(), true));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new Exception(\"Both start and end dates are required.\");\n\t\t}\n }", "title": "" }, { "docid": "4656b9f2735e77a79b2fed83e2cce2f7", "score": "0.51274985", "text": "public function getRenderedHours(InputInterface $input, OutputInterface $output, Project $project)\n {\n $remaining = $project->remainingHours();\n\n if ($this->isForced && $hours = $input->getOption('hours')) {\n return $hours;\n }\n\n $hours = (float) $this->promptRenderedHours($input, $output, $remaining);\n\n if (! $hours) {\n $this->exit($output);\n }\n\n if ($hours > $remaining) {\n $output->writeln('<error>Rendered hours input is not valid.</error>');\n\n $this->exit($output);\n }\n\n return $hours;\n }", "title": "" }, { "docid": "e7fdfc8418db1f22f9a0a673be42ca58", "score": "0.51179034", "text": "function calculateRegisteredHours($clid){\n\t$result = mysql_query(\"Select sum(credit_hours) FROM(( Select credit_hours FROM take T, class Cl WHERE T.grade is not NULL and T.clid = '$clid' and Cl.section_num = T.section_num and Cl.semester = T.semester and Cl.year = T.year and Cl.course_num = T.course_num and Cl.course_dept = T.course_dept and Cl.credit_hours IS NOT NULL) UNION ALL (Select Co.credit_hours FROM take T,course Co WHERE T.grade is not NULL and T.clid = '$clid' and T.course_dept = Co.course_dept and T.course_num = Co.course_num and NOT EXISTS(select * from class Cl WHERE Cl.course_dept = Co.course_dept and Cl.course_num = Co.course_num and Cl.credit_hours IS NOT NULL))) AS result;\") or die(mysql_error());\n\t$hours = mysql_result($result,0);\n\tif($hours == NULL) return 0;\n\telse return $hours;\n}", "title": "" }, { "docid": "6b0b49f7d9f5157c72648707fe7777f4", "score": "0.51072603", "text": "public function getCostPerHour()\n {\n return $this->cost_per_hour;\n }", "title": "" }, { "docid": "c0d573c72814f81f8ee449137596c60d", "score": "0.5100947", "text": "public function getTotalHoursAttribute()\n {\n return $this->hours .\".\". $this->minutes;\n }", "title": "" }, { "docid": "c8931343faa6b206ec927936e2895dd7", "score": "0.5076823", "text": "private function calculateWeeklyPay($hoursWorked, $hourlyWage, $exemptFlag) {\n\n $baseHours = 40.0;\n $otMultiplier = 1.5;\n\n $basePay = round(($hoursWorked > 40 ? $baseHours : $hoursWorked) * $hourlyWage, 2);\n\n $overtimePay = 0.0;\n\n if ($exemptFlag == 'N' and $hoursWorked > 40) {\n\n $overtimePay = round(($hoursWorked - $baseHours) * ($hourlyWage * $otMultiplier), 2);\n\n }\n\n $grossPay = ($basePay) + ($overtimePay);\n\n $weekPay = [$basePay,$overtimePay,$grossPay];\n\n return $weekPay;\n\n }", "title": "" }, { "docid": "0f670a7d6d421e7996c092bfc9a8e513", "score": "0.50699764", "text": "public function hours_in_closed_timesheets($timesheets)\n\t{\n\t\tif (!is_array($timesheets)) $timesheets = [$timesheets];\n\n\t\t$hours = 0;\n\t\t$start = null;\n\t\t$stop = null;\n\n\t\tforeach ($timesheets as $timesheet) {\n\n\t\t\t// Check if closed\n\t\t\tif (!$timesheet->stop_hour) continue;\n\t\t\tif ($timesheet->lunch_time) continue;\n\n\t\t\t$start = Carbon::createFromFormat(\n\t\t\t\t'Y-m-d h:i A',\n\t\t\t\t$timesheet->date . ' ' . $timesheet->start_hour . ':' .$timesheet->start_min . ' ' . $timesheet->start_pmam\n\t\t\t);\n\n\t\t\t$stop = Carbon::createFromFormat(\n\t\t\t\t'Y-m-d h:i A',\n\t\t\t\t$timesheet->date . ' ' . $timesheet->stop_hour . ':' .$timesheet->stop_min . ' ' . $timesheet->stop_pmam\n\t\t\t);\n\n\t\t\t$hours += $start->diffInMinutes($stop) / 60;\n\t\t}\n\n\t\treturn number_format( (float)$hours, 2, '.', '');\n\t}", "title": "" }, { "docid": "cbfab087966877bc2b34dd1ce4fe44b5", "score": "0.50653225", "text": "protected function getHoursData(Request $request)\n {\n $rules = [\n 'id' => 'required|min:1',\n 'hours' => 'required'\n ];\n $data = $request->validate($rules);\n\n return $data;\n }", "title": "" }, { "docid": "e12d0f96e1636438a194383c1a889a92", "score": "0.5059186", "text": "public function getTotal($data)\n {\n $total = 0;\n\n foreach ($data as $nb) {\n $total += $nb;\n }\n\n return $total;\n }", "title": "" }, { "docid": "574ba1d4e7ac61eb8d4c8a7f5192dffb", "score": "0.50377613", "text": "public function totalSecondsExercising($workoutID)\n {\n $builder = $this->builder();\n $query = $builder->where('WorkoutID',$workoutID)->selectSum('ExerciseDuration')->get()->getResultArray();\n return $query[0]['ExerciseDuration'];\n }", "title": "" }, { "docid": "b828131d5dd8bcd7fbd5522153125f5f", "score": "0.5033701", "text": "public function getTotal()\n\t{\n\t\t$weeks_ids = FileStorage::getInstance()->getDirFileNames('weeks');\n\n\t\t$all_teams = Team::loadAll();\n\n\t\tforeach ($all_teams as $team) {\n\t\t\t$totals[$team->id] = (object)[\n\t\t\t\t'team_id' => $team->id,\n\t\t\t\t'Team' => $team->name,\n\t\t\t\t'PTS' => 0,\n\t\t\t\t'PLD' => max(array_merge($weeks_ids, [0])),\n\t\t\t\t'W' => 0,\n\t\t\t\t'D' => 0,\n\t\t\t\t'L' => 0,\n\t\t\t\t'GD' => 0,\n\t\t\t\t'numeric_pdc' => 0,\n\t\t\t];\n\t\t}\n\n\t\tforeach ($weeks_ids as $week_id) {\n\t\t\t$week = new LeagueWeek($week_id);\n\t\t\tforeach ($week->teams_results as $team_week_result) {\n\t\t\t\t$team_totals = $totals[$team_week_result->team_id];\n\n\t\t\t\t$team_totals->PTS = $team_totals->PTS + $team_week_result->PTS;\n\t\t\t\t$team_totals->W = $team_totals->W + $team_week_result->W;\n\t\t\t\t$team_totals->D = $team_totals->D + $team_week_result->D;\n\t\t\t\t$team_totals->L = $team_totals->L + $team_week_result->L;\n\t\t\t\t$team_totals->GD = $team_totals->GD + $team_week_result->GD;\n\t\t\t\t$team_totals->numeric_pdc = max(1, $team_totals->PTS + $team_totals->W - $team_totals->L + ($team_totals->GD));\n\n\t\t\t\t$totals[$team_week_result->team_id] = $team_totals;\n\t\t\t}\n\t\t}\n\n\t\t$common_numeric_pdc = array_reduce($totals, function($carry, $team_totals) {\n\t\t\treturn $carry + $team_totals->numeric_pdc;\n\t\t});\n\n\t\tforeach ($totals as $team_id => &$team_totals) {\n\t\t\tif($common_numeric_pdc <= 0) {\n\t\t\t\t$team_totals->PDC = 25 . '%';\n\t\t\t} else $team_totals->PDC = round(($team_totals->numeric_pdc / $common_numeric_pdc) * 100) . '%';\n\n\t\t}\n\n\t\tusort($totals, function ($a, $b) {\n\t\t\treturn $b->PTS > $a->PTS;\n\t\t});\n\n\t\treturn $totals;\n\t}", "title": "" }, { "docid": "a42d85803833f4b529749c7be3641876", "score": "0.5031439", "text": "private function getTotalDia($data)\n\t{\n\t\t$arrData = explode('/',$data);\n\t\t$condicoes['year(Lote.created)']\t= $arrData[2];\n\t\t$condicoes['month(Lote.created)']\t= $arrData[1];\n\t\t$condicoes['day(Lote.created)']\t\t= $arrData[0];\n\t\t$total = $this->find('count',array('conditions'=>$condicoes));\n\t\treturn $total;\n\t}", "title": "" }, { "docid": "8f96ccbeb05eae578812f277eae43f91", "score": "0.50290114", "text": "public function countWorkdays(Request $request)\n { \n /*\n * put weil Daten übertragen werden\n * In http/Middelware/VerifyCsrfToken.php ist Tokenprüfung für\n * diese Fruppe ausgeschaltet\n * \n */ \n $dt = new DateTools;\n $count = $dt->WorkDays($request->from, $request->to);\n //$count = $dt->WorkDays($from, $to);\n $arr = array('workdays' => $count, 'user' => 'tra');\n return json_encode($arr);\n }", "title": "" }, { "docid": "cbeb611d75f02437806d12d22d5ede18", "score": "0.50226235", "text": "public function hours_in_open_timesheets($timesheets)\n\t{\n\t\tif (!is_array($timesheets)) $timesheets = [$timesheets];\n\n\t\t$hours = 0;\n\t\t$start = null;\n\n\t\tforeach ($timesheets as $timesheet) {\n\n\t\t\t// Check if open\n\t\t\tif ($timesheet->stop_hour) continue;\n\n\t\t\t$start = Carbon::createFromFormat('Y-m-d H:i:s', $timesheet->submit_time);\n\n\t\t\t$hours += $start->diffInMinutes(Carbon::now()) / 60;\n\t\t}\n\n\t\treturn $hours;\n\t}", "title": "" }, { "docid": "8a6f089a11689f7df8c5aff5f508a870", "score": "0.50204045", "text": "public function getAllEntries($project, $user)\n {\n $sql = \"SELECT UserId, ProjectId, StartTime, EndTime, TIMESTAMPDIFF(MINUTE, StartTime, EndTime) AS WorkingMinutes FROM workingtime WHERE ProjectId=:Project AND UserId=:User AND TIMESTAMPDIFF(MINUTE, StartTime, EndTime) > 0\";\n $stmt = $this->dbConnection->prepare($sql);\n $res = $stmt->execute(array(\":User\" => $user->getUserId(), \":Project\" => $project->getProjectId()));\n if ($res !== false) {\n $stmt->setFetchMode(PDO::FETCH_CLASS, \"TimeEntry\");\n return new WorkingTime($stmt->fetchAll());\n }\n return null;\n }", "title": "" }, { "docid": "e5a7c47e7b5a7ddd61802f00f0eec52b", "score": "0.5000258", "text": "public function processTime()\n {\n $timeCalculator = new Time(self::$_query);\n $data = $timeCalculator->processQuery();\n\n return $data;\n }", "title": "" }, { "docid": "d1b4fd2b6d15540e3c2e6db906f40c63", "score": "0.49994522", "text": "public function getBillableHours() : float\n {\n return $this->billableHours;\n }", "title": "" }, { "docid": "3c14896c29eb9fe62174d686a7fa02cc", "score": "0.499828", "text": "function get_work_per_user()\r\n {\r\n $list = array(\r\n array(1),\r\n range(2, 5),\r\n range(6, 10),\r\n range(11, 15),\r\n range(16, 20),\r\n range(21, 25),\r\n range(26, 30),\r\n range(31, 35),\r\n range(36, 40),\r\n range(41, 45),\r\n range(46, 50),\r\n range(51, 100),\r\n range(101, 10000)\r\n );\r\n\r\n //select user_count as works, count(user_count) as count from (SELECT count(id) as user_count from works group by user_id) o group by works order by works asc \r\n $output = array(array('작품 수' , '회원 수'));\r\n $data = array();\r\n\r\n $i = 1;\r\n //query\r\n $sql = \"SELECT user_count as works, \r\n count(user_count) as count \r\n from (SELECT count(work_id) as user_count from works group by user_id) o \r\n group by works order by works asc \"; \r\n $query = $this->db->query($sql, array());\r\n foreach ($query->result() as $row)\r\n {\r\n if(empty($row->works))\r\n continue;\r\n else {\r\n foreach($list as $k=>$v){\r\n if(in_array($row->works, $v)){\r\n $data[$k] += round($row->count, 0);\r\n }\r\n }\r\n }\r\n }\r\n\r\n foreach($list as $k=>$v){\r\n $i = $k+1;\r\n $output[$i][0] = (string)((count($v)>1)?$v[0].\"~\".$v[count($v)-1]:\"{$v[0]}\");\r\n $output[$i][1] = round($data[$k], 0);\r\n }\r\n\r\n return $output;\r\n /*\r\n //---- dummy data\r\n $output = array(array('작품 수' , '회원 수'));\r\n\r\n $AxisX = array(\"0\", \"1\", \"2~5\", \"6~10\", \"11~15\", \"16~20\", \"21~25\", \"26~30\", \"31~35\", \"36~40\", \"41~45\", \"46~50\", \"51~100\", \"101~\");\r\n $i = 1;\r\n foreach($AxisX as $text){\r\n $normal = array(\"0\", \"16~20\", \"21~25\", \"26~30\", \"31~35\", \"36~40\", \"41~45\", \"46~50\", \"51~100\", \"101~\");\r\n $large = array(\"1\", \"2~5\", \"6~10\", \"11~15\");\r\n if(in_array($text, $normal)){\r\n $num = rand(0, 50);\r\n } else if(in_array($text, $large)){\r\n $num = rand(100, 400);\r\n } else{\r\n $num = 0;\r\n }\r\n $output[$i] = array($text, $num);\r\n $i++;\r\n }\r\n\r\n return $output;*/\r\n }", "title": "" }, { "docid": "8d0a18bb640a940d619a2e9668cd9ec4", "score": "0.49892125", "text": "public function get_time_hour() {\n return sprintf( '%02d', (int) edd_get_option( 'edd_commissions_payout_schedule_time_hr', '' ) );\n }", "title": "" }, { "docid": "7332ff9e22b8069c08374799b5d5bde7", "score": "0.49870616", "text": "public function getReportTransportEmployee($data) {\n\t\t$sql = \"select timesheetid,employee_id,date,project,client,charge,partner,\n office,\n intown,\n outtown,\n uknown,\n transport_cost,\n\t\t\t cost,transport_paid AS paid,\n\t\t\t hari\n from (\n select timesheetid, a.employee_id,c.project,d.client_name as client,a.cost,\n\t\t\t\t case WHEN d.client_no LIKE '%-PT%' THEN 'BKI' ELSE 'KAP' end charge,\n\t\t\t\t CONCAT(e.EmployeeFirstName,' ',e.EmployeeMiddleName,' ',e.EmployeeLastName) as partner,\n case when a.transport_type='1' then 1 else 0 end office,\n case when a.transport_type='2' then 1 else 0 end intown,\n case when a.transport_type='3' then 1 else 0 end outtown,\n case when a.transport_type='0' then 1 else 0 end uknown,\n transport_cost,transport_paid,DATE_FORMAT(a.timesheetdate, '%d/%m/%Y') as date,\n DATE_FORMAT(a.timesheetdate, '%W') hari\n from timesheet a\n inner join project c on a.project_id = c.project_id \n\t\t\t\t inner join client d on c.client_id=d.client_id\n\t\t\t\t left join employee e on e.employee_id = c.approveuser\n where a.timesheet_approval=2\n AND a.cost>0\n and (a.timesheetdate >= STR_TO_DATE('\" . $data ['date_from'] . \"', '%d/%m/%Y')\n and a.timesheetdate <= STR_TO_DATE('\" . $data ['date_to'] . \"', '%d/%m/%Y')) \n\t\t\t and a.employee_id='\" . $data ['employee_id'] . \"'\n \n\t\t\t\t \n ) x\n order by date\";\n\t\treturn $this->rst2Array ( $sql );\n\t}", "title": "" }, { "docid": "2e2b1ec106128177c44254db81d4d088", "score": "0.49808574", "text": "public function get_total_hospital($a_id){\n\t\t$this->db->select('count(hospital_list.h_id) as total_hos')->from('hospital_list');\t\t\n\t\t$this->db->where('hospital_list.create_by', $a_id);\n\t\t$this->db->where('hospital_list.status !=', 2);\n return $this->db->get()->row_array();\n\t}", "title": "" }, { "docid": "ab858cd760a4812916fb5e9ecd2970b1", "score": "0.4977171", "text": "function total_registros($data = NULL) {\n //Where\n $where = array('t1.estado != ' => 0);\n\n //Where\n if (!empty($data['estrellas'])) {\n $where[\"t1.estrellas\"] = $data['estrellas'];\n }\n \n if (!empty($data['id_provincia'])) {\n $where[\"t1.id_provincia\"] = $data['id_provincia'];\n }\n\n //Like\n if (!empty($data['campo']) && !empty($data['busqueda'])) {\n $like[$data['campo']] = $data['busqueda'];\n } else {\n $like[\"t1.nombre\"] = \"\";\n }\n\n $resultado = $this->db->select(\"t1.*, t2.provincia\")\n ->join(\"tblprovincia as t2\",\"t2.id = t1.id_provincia\")\n ->where($where)\n ->like($like)\n ->get(\"tblhotel as t1\")\n ->num_rows();\n\n return $resultado;\n }", "title": "" }, { "docid": "4a3d94d6314d9f9211801eba39ff2484", "score": "0.4971355", "text": "function get_total_days($the_time, $the_target) {\n\t\t\t\n\t\t\t\t\tswitch($the_time) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase 'days':\n\t\t\t\t\t\t\n\t\t\t\t\t\t$days = $the_target;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase 'weeks':\n\t\t\t\t\t\t\n\t\t\t\t\t\t$days = $the_target * 7;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase 'months':\n\t\t\t\t\t\t\n\t\t\t\t\t\t$days = $the_target * 30;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase 'years':\n\t\t\t\t\t\t\n\t\t\t\t\t\t$days = $the_target * 365;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\treturn $days;\n\t\t\t\n\t\t\t}", "title": "" }, { "docid": "08cb669f6db51f4f3d4e9e61b778d723", "score": "0.49656224", "text": "function calculateTermHours($clid,$semester,$year){\n\t$result = mysql_query(\"Select sum(credit_hours) FROM(( Select credit_hours FROM take T, class Cl WHERE T.grade IS NOT NULL and T.grade<>'I' and T.grade<>'F' and T.grade <> 'NC' and T.grade <> 'W' and T.clid = '$clid' and Cl.section_num = T.section_num and Cl.semester = T.semester and Cl.year = T.year and Cl.course_num = T.course_num and Cl.course_dept = T.course_dept and Cl.credit_hours IS NOT NULL and T.semester='$semester' and T.year='$year') UNION ALL (Select Co.credit_hours FROM take T,course Co WHERE T.grade IS NOT NULL and T.grade<>'I' and T.grade <> 'NC' and T.grade<>'F' and T.grade <> 'W' and T.clid = '$clid' and T.course_dept = Co.course_dept and T.course_num = Co.course_num and T.semester='$semester' and T.year='$year' and NOT EXISTS(select * from class Cl WHERE Cl.course_dept = Co.course_dept and Cl.course_num = Co.course_num and Cl.credit_hours IS NOT NULL))) AS result;\") or die(mysql_error());\n\t$hours = mysql_result($result,0);\n\tif($hours == NULL) return 0;\n\telse return $hours;\n}", "title": "" }, { "docid": "3f5235b8f0c51250134556910b256dcf", "score": "0.49563268", "text": "public function horas_trabajadas_dia(int $y,int $m,int $d):int{\n\t\t$hours=0;\n\t\t$date=$y.'-'.$m.'-'.$d;\n\t\t$checkins=Checkin::all(['conditions'=>['employee_id = ? AND DATE(fecha) = ?',$this->id,$date]]);\n\t\tforeach($checkins as $c){\n\t\t\tif($c->salida){\n\t\t\t\t$salida=strtotime($c->salida);\n\t\t\t\t$entrada=strtotime($c->entrada);\n\t\t\t\tif($salida-$entrada>0){\n\t\t\t\t\t$hours=$hours+$salida-$entrada;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn $hours;\n\t}", "title": "" }, { "docid": "de32b291a743ba38408583120a4629a7", "score": "0.49487758", "text": "private function getHoursField(){\n \n if(!$this->hoursfield)\n $this->setHoursField();\n \n return $this->hoursfield;\n }", "title": "" }, { "docid": "462f3b486f0f938f2397eb381d101125", "score": "0.49415654", "text": "public function getEntriesInterval($project, $user, $startTime, $endTime)\n {\n $sql = \"SELECT UserId, ProjectId, StartTime, EndTime, TIMESTAMPDIFF(MINUTE, StartTime, EndTime) AS WorkingMinutes FROM workingtime WHERE ProjectId=:Project AND UserId=:User AND TIMESTAMPDIFF(MINUTE, StartTime, EndTime) > 0 AND StartTime>:StartTime AND EndTime<:EndTime\";\n $stmt = $this->dbConnection->prepare($sql);\n $res = $stmt->execute(array(\":User\" => $user->getUserId(), \":Project\" => $project->getProjectId(), \":StartTime\"=>$startTime, \":EndTime\"=>$endTime));\n if ($res !== false) {\n $stmt->setFetchMode(PDO::FETCH_CLASS, \"TimeEntry\");\n return new WorkingTime($stmt->fetchAll());\n }\n return null;\n }", "title": "" }, { "docid": "7342d5ebaf49831de4a81e25b10746c3", "score": "0.49355757", "text": "function getTotalHoursWorked(Staff $staff, $start_date, $end_date) {\n if (isset($staff)) {\n /* Your code goes here */\n }\n return 0;\n}", "title": "" }, { "docid": "129d1dd64d5298707bfe49c109c3f765", "score": "0.4928912", "text": "protected function _getValueForTime($data = null, $returnTableRow = true) {\n\t\treturn $this->_getValueForDateTimeBase($data, $returnTableRow, '%X');\n\t}", "title": "" }, { "docid": "f3051981e16047d115763e19aef1ef99", "score": "0.49284798", "text": "function get_cell_hours($hour)\n\t{\n\t\t$hour = ($hour-1)%12+1;\n\t\t$am = $hour > 7 ? 'AM' : 'PM';\n\t\t\n\t\treturn \"<td class='hour' rowspan='4'>\n\t\t\t\t\t<p class='hour'>$hour</p>\n\t\t\t\t\t<p class='$am'>$am</p>\n\t\t\t\t</td>\";\n\t}", "title": "" }, { "docid": "ceb7ff1a04b27bed448bb84147c73dd2", "score": "0.49274302", "text": "public function plannedHours()\n {\n return $this->plannedHours;\n }", "title": "" }, { "docid": "0f6ad32f73846c8170116aa45b830fa3", "score": "0.4924409", "text": "public function Save_Task_Entry()\n {\n $master_id = $this->input->post('task_id');\n $user_id = $this->session->userdata['userid'];\n\n $get_data = $this->technical_user_model->get_total_logged_hours($master_id, $user_id);\n //print_r($get_data[0]['Logged_Hours']);\n\n if ($get_data[0]['Logged_Hours'] == \"\") {\n // print_r(\"empty\");\n $Total_logged = $this->input->post('work_hours');\n } else {\n //print_r(\"not empty\");\n $hours = $this->input->post('work_hours');\n $Lhours = $get_data[0]['Logged_Hours'];\n $Total_logged = $Lhours + $hours;\n\n }\n\n $data = array('Task_Master_Icode' => $this->input->post('task_id'),\n 'Task_Entry_Project_Icode' => $this->input->post('project_id'),\n 'Task_Phase_Icode' => $this->input->post('phase_id'),\n 'Task_Module_Icode' => $this->input->post('Module_Select'),\n 'Work_Progress' => $this->input->post('work_progress'),\n 'Logged_Hours' => $this->input->post('work_hours'),\n 'Total_Logged_Hours' => $Total_logged,\n 'Created_By ' => $this->session->userdata['userid']);\n $insert_entry = $this->technical_user_model->save_task_entry($data);\n if ($insert_entry == '1') {\n $this->session->set_flashdata('message', 'Task Updated Successfully..');\n redirect('/User_Controller/Task_Entry');\n } else {\n $this->session->set_flashdata('message', 'Failed..');\n redirect('/User_Controller/Task_Entry');\n }\n\n }", "title": "" }, { "docid": "e4b1f0b2ba8444465790cc22f092aa9f", "score": "0.4919671", "text": "public function hours()\n {\n return $this->hasMany(OfficeHour::class);\n }", "title": "" }, { "docid": "e4b1f0b2ba8444465790cc22f092aa9f", "score": "0.4919671", "text": "public function hours()\n {\n return $this->hasMany(OfficeHour::class);\n }", "title": "" }, { "docid": "8edf1f61c84c3d25436352af8c5d25af", "score": "0.4901377", "text": "public function addBusinessHoursProvider(): array\n {\n return [\n // Adding less than a day.\n ['Monday 2018-05-14 09:00', 0, 'Monday 2018-05-14 09:00'],\n ['Monday 2018-05-14 09:00', 0.25, 'Monday 2018-05-14 09:15'],\n ['Monday 2018-05-14 09:00', 0.5, 'Monday 2018-05-14 09:30'],\n ['Monday 2018-05-14 09:00', 0.75, 'Monday 2018-05-14 09:45'],\n ['Monday 2018-05-14 09:00', 1, 'Monday 2018-05-14 10:00'],\n ['Monday 2018-05-14 09:00', 1.25, 'Monday 2018-05-14 10:15'],\n ['Monday 2018-05-14 09:00', 1.5, 'Monday 2018-05-14 10:30'],\n ['Monday 2018-05-14 09:00', 1.75, 'Monday 2018-05-14 10:45'],\n ['Monday 2018-05-14 09:00', 2, 'Monday 2018-05-14 11:00'],\n ['Monday 2018-05-14 09:00', 7.75, 'Monday 2018-05-14 16:45'],\n // Adding a whole business day or more.\n ['Monday 2018-05-14 09:00', 8, 'Monday 2018-05-14 17:00'],\n ['Monday 2018-05-14 09:00', 8.25, 'Tuesday 2018-05-15 09:15'],\n ['Monday 2018-05-14 09:00', 8.5, 'Tuesday 2018-05-15 09:30'],\n ['Monday 2018-05-14 09:00', 8.75, 'Tuesday 2018-05-15 09:45'],\n ['Monday 2018-05-14 09:00', 9, 'Tuesday 2018-05-15 10:00'],\n ['Monday 2018-05-14 09:00', 16, 'Tuesday 2018-05-15 17:00'],\n ['Monday 2018-05-14 09:00', 23, 'Wednesday 2018-05-16 16:00'],\n ['Monday 2018-05-14 09:00', 24, 'Wednesday 2018-05-16 17:00'],\n // Negative values.\n ['Monday 2018-05-14 09:00', -0, 'Monday 2018-05-14 09:00'],\n ['Monday 2018-05-14 09:00', -0.25, 'Friday 2018-05-11 16:45'],\n ['Monday 2018-05-14 09:00', -0.5, 'Friday 2018-05-11 16:30'],\n ['Monday 2018-05-14 09:00', -0.75, 'Friday 2018-05-11 16:15'],\n ['Monday 2018-05-14 09:00', -1, 'Friday 2018-05-11 16:00'],\n ['Monday 2018-05-14 09:00', -1.25, 'Friday 2018-05-11 15:45'],\n ['Monday 2018-05-14 09:00', -1.5, 'Friday 2018-05-11 15:30'],\n ['Monday 2018-05-14 09:00', -1.75, 'Friday 2018-05-11 15:15'],\n ['Monday 2018-05-14 09:00', -2, 'Friday 2018-05-11 15:00'],\n ];\n }", "title": "" } ]
81581e264083cb6678e46d5b33415ce0
Called when the parser is cloned
[ { "docid": "0f23cc478b19569c440b0b1360e299f5", "score": "0.0", "text": "public static function parserCloned( $parser ) {\n\t\t$parser->scribunto_engine = null;\n\t\treturn true;\n\t}", "title": "" } ]
[ { "docid": "1ddea46ec9a2dc1d9bb7eb6268f3f471", "score": "0.68555415", "text": "public function __clone()\n {\n $this->dom = clone $this->dom;\n }", "title": "" }, { "docid": "a3b478c68177d798ab0485456aeac48f", "score": "0.65079135", "text": "function __clone()\n {\n $this->is_clone = true;\n $this->stack = array();\n $this->ppos = -1;\n $this->ppos_advance = 0;\n }", "title": "" }, { "docid": "d1b217a7ba4da9d2998442def1bdef24", "score": "0.64991754", "text": "protected function __clone ()\n\t{}", "title": "" }, { "docid": "9dba8c791cdb068cf7c86da739f73546", "score": "0.6491557", "text": "protected function __clone(){}", "title": "" }, { "docid": "9dba8c791cdb068cf7c86da739f73546", "score": "0.6491557", "text": "protected function __clone(){}", "title": "" }, { "docid": "9dba8c791cdb068cf7c86da739f73546", "score": "0.6491557", "text": "protected function __clone(){}", "title": "" }, { "docid": "9dba8c791cdb068cf7c86da739f73546", "score": "0.6491557", "text": "protected function __clone(){}", "title": "" }, { "docid": "fc745d88409564de8f2f0e9ae52c501e", "score": "0.64661986", "text": "protected function __clone() {\n\t}", "title": "" }, { "docid": "750a2124752b057105ca3e04124ab4ae", "score": "0.6448097", "text": "private function __clone () {\r\n\t}", "title": "" }, { "docid": "ece4a55a198074f68b27be93d791d2ab", "score": "0.6434595", "text": "private function __clone() {\n\t\t}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.6427922", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.6427922", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.6427922", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.6427922", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.6427922", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.6427922", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.6427922", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.6427922", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.6427922", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.6427922", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.6427922", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.6427922", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.6427922", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.6427922", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.6427922", "text": "private function __clone(){}", "title": "" }, { "docid": "ce14c4cdf31ba0d1acd99ea133f6f588", "score": "0.6427922", "text": "private function __clone(){}", "title": "" }, { "docid": "0c470c41ae837037d81df0845a4c7e81", "score": "0.6421876", "text": "function resetParser() {\n\t\t$this->fileName = '';\n\t\t$this->root = '';\n\t\t$this->nodes = array();\n\t\t$this->nodeIds = array();\n\t\t$this->path = '';\n\t\t$this->position = 0;\n\t\t$this->xPath = '';\n\t\t$this->cdataSection\t= 0;\n\t}", "title": "" }, { "docid": "0dcb8f80874f73876db7aef10fec4088", "score": "0.6411259", "text": "private function __clone()\r\n\t{\r\n\t}", "title": "" }, { "docid": "740ec90f23bbdc98428329cc81252872", "score": "0.6406125", "text": "protected function __clone() { }", "title": "" }, { "docid": "f87e99d3ccc5e93a6d152a43bb3adad8", "score": "0.6402379", "text": "protected function afterClone()\n {\n }", "title": "" }, { "docid": "902fff7f4930aaa225c868b843b44433", "score": "0.639902", "text": "protected function __clone() {}", "title": "" }, { "docid": "902fff7f4930aaa225c868b843b44433", "score": "0.6398075", "text": "protected function __clone() {}", "title": "" }, { "docid": "902fff7f4930aaa225c868b843b44433", "score": "0.6398075", "text": "protected function __clone() {}", "title": "" }, { "docid": "902fff7f4930aaa225c868b843b44433", "score": "0.6398075", "text": "protected function __clone() {}", "title": "" }, { "docid": "902fff7f4930aaa225c868b843b44433", "score": "0.6398075", "text": "protected function __clone() {}", "title": "" }, { "docid": "902fff7f4930aaa225c868b843b44433", "score": "0.6398075", "text": "protected function __clone() {}", "title": "" }, { "docid": "a76480e5ab6b7abc9e4f1a9c8fbcc6b3", "score": "0.63940173", "text": "private function __clone() {\n }", "title": "" }, { "docid": "a76480e5ab6b7abc9e4f1a9c8fbcc6b3", "score": "0.63940173", "text": "private function __clone() {\n }", "title": "" }, { "docid": "d1970dcf2a0271a1a87691dc61743c5c", "score": "0.63856757", "text": "protected function __clone()\r\n {\r\n }", "title": "" }, { "docid": "d1970dcf2a0271a1a87691dc61743c5c", "score": "0.63856757", "text": "protected function __clone()\r\n {\r\n }", "title": "" }, { "docid": "1645c0842c64831c3d1be37588d85efb", "score": "0.6377113", "text": "private function __clone()\n\t{\n\t}", "title": "" }, { "docid": "1645c0842c64831c3d1be37588d85efb", "score": "0.6377113", "text": "private function __clone()\n\t{\n\t}", "title": "" }, { "docid": "1645c0842c64831c3d1be37588d85efb", "score": "0.6377113", "text": "private function __clone()\n\t{\n\t}", "title": "" }, { "docid": "1645c0842c64831c3d1be37588d85efb", "score": "0.6377113", "text": "private function __clone()\n\t{\n\t}", "title": "" }, { "docid": "fe56c92d95363507d3dd4284ebd62b37", "score": "0.6370994", "text": "private function __clone () {}", "title": "" }, { "docid": "f7cbde397f097eb21e22894fa5febeca", "score": "0.6362738", "text": "public function reparse(){\n $this->parsed = false;\n return\n $this;\n }", "title": "" }, { "docid": "5498dd7d63d73dbe20a90478fca04a09", "score": "0.6360966", "text": "private function __clone() {\r\n \r\n }", "title": "" }, { "docid": "c8d16a4dd6dd9dd8b9365b4591e7c29f", "score": "0.63571244", "text": "private function __clone()\r\n\t{}", "title": "" }, { "docid": "10ded4a5c40260d18f8b459757f3d8b7", "score": "0.6352612", "text": "private function __clone(){};", "title": "" }, { "docid": "bec4c1652db40ed1283969a5aab65cfc", "score": "0.635024", "text": "private function __clone() {\n\t}", "title": "" }, { "docid": "bec4c1652db40ed1283969a5aab65cfc", "score": "0.635024", "text": "private function __clone() {\n\t}", "title": "" }, { "docid": "bec4c1652db40ed1283969a5aab65cfc", "score": "0.635024", "text": "private function __clone() {\n\t}", "title": "" }, { "docid": "bec4c1652db40ed1283969a5aab65cfc", "score": "0.635024", "text": "private function __clone() {\n\t}", "title": "" }, { "docid": "bec4c1652db40ed1283969a5aab65cfc", "score": "0.635024", "text": "private function __clone() {\n\t}", "title": "" }, { "docid": "7596e9ca688f1514453ab5593bead157", "score": "0.6339535", "text": "private function __clone()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "8827ddd8c89921d9f175ffe09630f24a", "score": "0.6332455", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "8827ddd8c89921d9f175ffe09630f24a", "score": "0.6332455", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "8827ddd8c89921d9f175ffe09630f24a", "score": "0.6332455", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "8827ddd8c89921d9f175ffe09630f24a", "score": "0.6332455", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "8827ddd8c89921d9f175ffe09630f24a", "score": "0.6332455", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "8827ddd8c89921d9f175ffe09630f24a", "score": "0.6332455", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "8827ddd8c89921d9f175ffe09630f24a", "score": "0.6332455", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "8827ddd8c89921d9f175ffe09630f24a", "score": "0.6332455", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "8827ddd8c89921d9f175ffe09630f24a", "score": "0.6332455", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "8827ddd8c89921d9f175ffe09630f24a", "score": "0.6332455", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "8827ddd8c89921d9f175ffe09630f24a", "score": "0.6332455", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "8827ddd8c89921d9f175ffe09630f24a", "score": "0.6332455", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "a17ca92fbf15bd775f2b3faaf6588c3b", "score": "0.6317236", "text": "private function __clone ()\n {\n }", "title": "" }, { "docid": "a17ca92fbf15bd775f2b3faaf6588c3b", "score": "0.6317236", "text": "private function __clone ()\n {\n }", "title": "" }, { "docid": "4b50411d586b88b1ce77d24e9b15f138", "score": "0.6308847", "text": "private function __clone()\n\t{\n \n }", "title": "" }, { "docid": "08f5232b76dbc0ac6d7c4da7d0216924", "score": "0.6301559", "text": "protected function __clone() {\n \n }", "title": "" }, { "docid": "08f5232b76dbc0ac6d7c4da7d0216924", "score": "0.6301559", "text": "protected function __clone() {\n \n }", "title": "" }, { "docid": "f2e7dcc9257428af22366b5531d48b2f", "score": "0.6299983", "text": "private function __clone()\r\n {\r\n }", "title": "" }, { "docid": "57a4cbb889c1b534a760fea4fe067259", "score": "0.6293928", "text": "private function __clone(){\n\t\t\n\t}", "title": "" }, { "docid": "208034a45828f7a50d498391af4c48f6", "score": "0.6292879", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "208034a45828f7a50d498391af4c48f6", "score": "0.6292879", "text": "protected function __clone()\n {\n }", "title": "" }, { "docid": "354ce1061cfced39ec668d815c80215a", "score": "0.62891865", "text": "private function __clone() {\n \n }", "title": "" }, { "docid": "354ce1061cfced39ec668d815c80215a", "score": "0.62891865", "text": "private function __clone() {\n \n }", "title": "" }, { "docid": "354ce1061cfced39ec668d815c80215a", "score": "0.62891865", "text": "private function __clone() {\n \n }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.62869895", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.62869895", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.62869895", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.62869895", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.62869895", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.62869895", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.62869895", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.62869895", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.62869895", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.62869895", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.62869895", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.62869895", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.62869895", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.62869895", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.62869895", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.62869895", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.62869895", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.62869895", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.62869895", "text": "private function __clone() { }", "title": "" }, { "docid": "476d1af86e7bae6f1031ef3a7a095c3d", "score": "0.62869895", "text": "private function __clone() { }", "title": "" }, { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.62832487", "text": "private function __clone() {}", "title": "" }, { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.62832487", "text": "private function __clone() {}", "title": "" } ]