query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Cria o objeto button pesquisasAvancadas
function botaoPesquisasAvancadas(){ echo " <form method='post'> <button type='submit' class='btn btn-secondary btn-lg btn-block botao' name='pesquisasAvancadas' value='pesquisar'>Pesquisar</button> </form>";//só irá existir um botão iserir que vai executar a mesma função por isso o valor 'Inserir' }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addsButtons() {}", "public function constructArrayButton()\n { \n //- récupération des boutons par défaut\n $arra_bouton=parent::constructArrayButton();\n \n //- suppression des boutons superflus\n unset($arra_bouton['actionNew']);\n \n //- récupération du modèle\n $obj_...
[ "0.6726638", "0.6672699", "0.6364414", "0.6335001", "0.6268551", "0.61478263", "0.6110396", "0.6032276", "0.6020572", "0.6020431", "0.5988755", "0.59749895", "0.5925516", "0.590765", "0.5894619", "0.5894619", "0.5894619", "0.5894619", "0.5894619", "0.58930665", "0.58930665", ...
0.5774964
38
Cria tabela com todos os cadastros
function tabela($vetorComcadastros, $vetorComIndices){//Função que cria a tabela/lista recebe o vetor cos os cadsastros e outro com os indices retornaEscolhidos($vetorComcadastros, $vetorComIndices);//escreve a tabela }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function crearTablas(){\r\n\t\t\t$this->crearTablaUsuario();\r\n\t\t\t$this->crearTablaDeporte();\r\n\t\t\t$this->crearTablaUsuarioDeporte();\r\n\t\t\t$this->crearTablaPassw();\r\n\t\t}", "private function createTables() {\n \n foreach($this->G->tableInfo as $table) {\n $this->tables[...
[ "0.7983289", "0.7176846", "0.69564205", "0.69405997", "0.68363994", "0.6830564", "0.679096", "0.6786801", "0.6782443", "0.673063", "0.667875", "0.667559", "0.6673984", "0.6630019", "0.66134346", "0.6608749", "0.660753", "0.66041094", "0.6541714", "0.65347785", "0.6518815", ...
0.7003655
2
recebe os cadastros e os indices para imprimir a tabela
function retornaEscolhidos($vetorComcadastros, $vetorComIndices){ $limite = count($vetorComIndices);//limite conta quantos indices tem cabeçalhoTabela();//imprime o cabeçalho da tabela for($x=0; $x<$limite; $x++){//executa um for que percorre todos os indices do Vetor com os indices ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tabela($vetorComcadastros, $vetorComIndices){//Função que cria a tabela/lista recebe o vetor cos os cadsastros e outro com os indices\n retornaEscolhidos($vetorComcadastros, $vetorComIndices);//escreve a tabela\n }", "private function rebuildIndex()\n {\n foreach ($this->rows as $id =>...
[ "0.69087636", "0.66637504", "0.6091386", "0.60365283", "0.5995646", "0.5904496", "0.58716613", "0.58618194", "0.58019805", "0.57815003", "0.57768106", "0.57592136", "0.5737648", "0.5729976", "0.5723194", "0.5658606", "0.56407857", "0.5613896", "0.55904025", "0.5588438", "0.55...
0.6419685
2
Run the database seeds.
public function run() { factory(\App\Aluno::class, 100)->create()->each(function ($aluno) { factory(App\Cobranca::class)->create([ 'aluno_id' => [$aluno->id] ])->make(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n fact...
[ "0.8013876", "0.79804534", "0.7976992", "0.79542726", "0.79511505", "0.7949612", "0.794459", "0.7942486", "0.7938189", "0.79368967", "0.79337025", "0.78924936", "0.78811055", "0.78790957", "0.78787595", "0.787547", "0.7871811", "0.78701615", "0.7851422", "0.7850352", "0.78414...
0.0
-1
FinFunction ===================== Pour un element d'une ligne fournis transforme l'element de output mzn au format xml Cette fonction transforme un element sous forme de tableau en liste de node xml
function ElementTabToXML($nameLineElement,$lineElement,$xmlSolution,$solutionElementXML):bool{ //TODO LABEL IN OUTPUT union label part ect //print_r($nameLineElement); if($lineElement == "[]"){ return false; } if($nameLineElement == "group"){ $elementSub = $xmlSolution->createElement...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function genexml2($matricule,$nom,$prenom,$datenaissance,$lieunaissance,$telephone,$montantdu,$anneeacademique,$statut,$etablissement,$filiere,$nationalite, $type){\n\t$xml = new DOMDocument('1.0', 'utf-8');\n\t//$items = $xml->createElement('id_dataTable');\n\t\t$item = $xml->createElement('etudiant');\n\t\t$db_i...
[ "0.68557155", "0.6206027", "0.61460656", "0.59440696", "0.5769052", "0.57578874", "0.56679285", "0.565894", "0.5651716", "0.5623863", "0.5553963", "0.55262154", "0.5523353", "0.55115074", "0.5509418", "0.55032015", "0.5486776", "0.54853266", "0.54846513", "0.5452634", "0.5448...
0.6180034
2
/ Element can have data in just it's attributes as headers for csv element string as attribute=>value pairs in it's attributes and children as csv in it's childrens attributes as children element strings Algorithm If element has attributes print them Simple XML Reference
function createFileInterface($filePath) { //$sxe=simplexml_load_file( $filePath );//Default file type if (file_exists($filePath)) { $xml = simplexml_load_file($filePath); createSaveForm($filePath); dispFile( $xml); } else { exit('Failed to open' . $filePath); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _print_xml()\n\t{\n\t\n\t}", "function printAttributes( $element )\n{\n $NCardinalityDictionary = array(\"Species\",\"Phase\",\"Factor\",\"Cultivar\",\"PhotSynType\",\"Point\",\n\t\t\t\t\t\t\t\t\t\t\"Crop_Par\",\"Fert_Par\",\"Irr_Par\",\"Residue_Par\",\"Till_Par\",\n\t\t\t\t\t\t\t\t\t\t\"C)2_...
[ "0.5839374", "0.58043367", "0.5491073", "0.54253215", "0.53501207", "0.534647", "0.5321869", "0.5294871", "0.5265646", "0.5258384", "0.52418387", "0.5230716", "0.51886255", "0.51862425", "0.5178092", "0.5151374", "0.5146139", "0.5125324", "0.51124746", "0.50958115", "0.507143...
0.0
-1
print "Time to create: " . $diff>s . "seconds";
function createSaveForm($filename) { $filename = stripName($filename); echo "<br><button onclick='createXml()'>Save File As</button>"; echo "&nbsp<input type='text' id='fileName' onChange='validFileName()' value='$filename'>"; echo "<span id='validFile'></span><br />"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_duration() {\n\t\t$a = explode (' ',microtime()); \n \t$this->stop_time = (double) $a[0] + $a[1];\n \t$this->duration = number_format(($this->stop_time - $this->start_time),2);\n\n\t\treturn sprintf('<h2>%s</h2><div class=\"summarize-posts-errors\">%s</div>'\n\t\t\t, __('Execution Time', ...
[ "0.6148097", "0.6003378", "0.59160995", "0.588017", "0.5863196", "0.5834379", "0.58341795", "0.58156365", "0.5800747", "0.5798392", "0.57896733", "0.57697517", "0.57461727", "0.5727934", "0.57128894", "0.5692248", "0.5679417", "0.5675983", "0.5663957", "0.5657864", "0.5636893...
0.0
-1
Elements that can user can create. Reference salusClasses google doc
function printAttributes( $element ) { $NCardinalityDictionary = array("Species","Phase","Factor","Cultivar","PhotSynType","Point", "Crop_Par","Fert_Par","Irr_Par","Residue_Par","Till_Par", "C)2_Trend_XY","Soil_Bio_Kinectic_Par","Stations", "Storm_Intensity","Hourly_Rainfall","Soil","L...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function OnCreateElements() {}", "protected function OnCreateElements() {}", "protected function addElements() \n {\n \n // Add \"usuario\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'nombre',\n 'options' => [\n ...
[ "0.64054894", "0.64054894", "0.6003076", "0.58522654", "0.57850796", "0.57398254", "0.5706173", "0.5689124", "0.56776774", "0.56700766", "0.5660861", "0.5624495", "0.5624495", "0.5624495", "0.5624495", "0.5564325", "0.55449945", "0.55159026", "0.5499243", "0.5490656", "0.5487...
0.0
-1
Creates link for listing template
public function getUrl() { if ($this->isVisible()) { $sort = $this->isSortAsc() ? Sorter::DESC : Sorter::ASC; } else { $sort = $this->ascByDefault ? Sorter::ASC : Sorter::DESC; } return $this->dataGrid->getControl()->link('this', ['orderBy' => $this->sortableColumn, 'sort' => $sort]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _erpal_book_helper_book_templates_links(&$data) {\n //book template list context\n $query = array('destination' => $_GET['q'], 'field_is_template' => 1);\n erpal_make_action($data, t('Create a new template'), 'node/add/erpal-book', $query);\n _erpal_book_helper_book_global_menu_tabs($data, false, arra...
[ "0.6403879", "0.6263149", "0.6198326", "0.60856295", "0.60012376", "0.5999745", "0.59993917", "0.59458536", "0.5920606", "0.58805877", "0.5871899", "0.5864972", "0.5860529", "0.58593404", "0.583", "0.5815686", "0.5815256", "0.58023214", "0.5767034", "0.57533973", "0.5752371",...
0.0
-1
Display a listing of the resource.
public function index() { $events = $this->events->paginate(10); $no = $events->getFrom(); return $this->view('events.index', compact('events', 'no')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create() { return $this->view('events.create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store() { $data = $this->inputAll(); $rules = $this->events->getRules(); $properties = array(); unset($data['storage_events_id']); if(isset($data['properties_id']) && count($data['properties_id'])) { $properties = (is_array($data['pro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Display the specified resource.
public function show($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { try { $event = StorageEvents::findOrFail($id); return $this->view('events.edit', compact('event')); } catch(ModelNotFoundException $e) { return $this->redirectNotFound(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update($id) { $data = $this->inputAll(); $event = $this->events->findOrFail($id); $rules = $this->events->getUpdateRules(); unset($data['storage_events_id'], $data['properties_id']); $validator = $this->validator->make($data, $rules); if ($validat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { try { StorageEvents::destroy($id); return $this->redirect('events.index'); } catch(ModelNotFoundException $e) { return $this->redirectNotFound(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
You need to specify the foreign key name
public function getAuthorOfArticle() { // Because it infers from the METHOD NAME! return $this->belongsTo('App\Models\User', 'user_id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getForeignKey($name);", "public function getForeignKey();", "public function getForeignKey()\n {\n return 'owner_id';\n }", "protected function addForeignKeyConstraints()\n {\n \n \n }", "public function getForeignKey()\n {\n return 'nonmember_id';\n ...
[ "0.71967953", "0.694169", "0.68465173", "0.6748764", "0.6741049", "0.6723935", "0.6595742", "0.65819997", "0.6568214", "0.654094", "0.6513823", "0.6513272", "0.651092", "0.6496632", "0.6388737", "0.637014", "0.62831104", "0.627342", "0.6253555", "0.6253555", "0.6253555", "0...
0.0
-1
Example: require_once ('class.tx_cal_api.php'); $calAPI = &tx_cal_functions::makeInstance('tx_cal_api',$this>cObj, &$conf); $event = $calAPI>findEvent('2','tx_cal_phpicalendar');
function tx_cal_api_with(&$cObj, &$conf){ //global $TCA,$_EXTKEY; $this->cObj = &$cObj; $this->conf = &$conf; if(!$GLOBALS['TCA']){ $GLOBALS['TSFE']->includeTCA(); } $this->conf['useInternalCaching'] = 1; $this->conf['cachingEngine'] = 'cachingFramework'; $this->conf['writeCachingInfoToDevlog']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _getRecurEvent()\n {\n return new Calendar_Model_Event(array(\n 'summary' => 'Breakfast',\n 'dtstart' => '2010-05-20 06:00:00',\n 'dtend' => '2010-05-20 06:15:00',\n 'description' => 'Breakfast',\n 'rrule' => 'F...
[ "0.61911637", "0.61911637", "0.61595875", "0.61106616", "0.6103388", "0.6053598", "0.60464287", "0.6000605", "0.5976347", "0.5940125", "0.59264165", "0.5887486", "0.58792514", "0.5868849", "0.5839377", "0.5815823", "0.5802411", "0.57957554", "0.578182", "0.57710457", "0.57379...
0.62628776
0
Destructor to clean up when we're done with the API object.
function __destruct() { // If we created our own TSFE object earlier, get rid of it so that we don't interfere with other scripts. if ($this->unsetTSFEOnDestruct) { unset($GLOBALS['TSFE']); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __destruct() {\n\t\t\tparent::__destruct();\n\t\t\tunset($this->resource);\n\t\t\tunset($this->methods);\n\t\t\tunset($this->name);\n\t\t}", "public function __destruct() {\n curl_close($this->request);\n }", "protected function __del__() { }", "public function __destruct ()\n {\...
[ "0.74505544", "0.7292756", "0.7200354", "0.7197638", "0.71269494", "0.7107583", "0.7091856", "0.70856833", "0.70656615", "0.70656615", "0.70594245", "0.70525616", "0.7034325", "0.70201296", "0.7002017", "0.6966783", "0.6950203", "0.69495714", "0.69219756", "0.6898081", "0.687...
0.0
-1
/ !brief process the Typoscript array to final output
function __processTSObject($tsObjPath, $tag_content) { // Check for a non empty value if ($tsObjPath) { // Get complete TS template $tsObj = & $this -> __TSTemplate -> setup; // Get TS object hierarchy in template $tmplPath = explode('.',$tsObjPath); // Process TS object hierarchy for($i =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function convertPlainArrayToTypoScriptArrayTestdata() {}", "public function convertTypoScriptArrayToPlainArrayTestdata() {}", "public function convertPlainArrayToTypoScriptArrayTestdata()\n {\n return [\n 'simple typoscript' => [\n 'extbaseTS' => [\n ...
[ "0.7184449", "0.69898313", "0.6855142", "0.61161935", "0.5912508", "0.55427426", "0.5476128", "0.5442676", "0.5374367", "0.5347679", "0.53072786", "0.5286137", "0.527078", "0.52529246", "0.52392787", "0.5229137", "0.5207897", "0.51825726", "0.51793057", "0.517096", "0.516759"...
0.0
-1
Display a listing of the resource.
public function index(Request $request) { $limit = $request->limit; if ($limit) { $cities = $this->guiderRepository->paginate($limit); } else { $cities = $this->guiderRepository->all(); } return response()->json([ 'success' => true, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(CreateGuiderRequest $request) { $guider = [ 'guid_id' => $request->guid_id, 'guid_name' => $request->guid_name, 'guid_phone' => $request->guid_phone, 'guid_resident_number' => $request->guid_resident_number, 'manager_guid_id'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Display the specified resource.
public function show($id) { try { $guider = $this->guiderRepository->findGuider($id); return response()->json([ 'success' => true, 'data' => $guider, ]); } catch (ModelNotFoundException $e) { return response()->json([ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(UpdateGuiderRequest $request, $id) { $guider = [ 'guid_name' => $request->guid_name, 'guid_phone' => $request->guid_phone, 'guid_resident_number' => $request->guid_resident_number, 'manager_guid_id' => $request->manager_guid_id ? $reques...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { $guider = $this->companyRepository->deleteGuider($id); if ($guider) { return response()->json([ 'success' => true, 'message' => 'Delete guider successfully', ]); } return response()->json([ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
Print concatonated key and its value
function PrintData($DepthArray,$Value) { global $LastItem,$Item; if ((count($DepthArray) > 1 )) { $LastItem;} $DepthString=implode(":",$DepthArray); $DepthStringLength=strlen($DepthString); if( $DepthStringLength <80 ) { printf("%-80.80s%s\n",$DepthString,$Value); } else if( $DepthStringLength <120 ) { printf("%-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function output($key);", "function debugPair($key,$value){\n debugLog(\"<b>$key</b> -> $value\");\n}", "public function __toString() {\n\t\t$out = '';\n\t\tforeach($this as $key => $value) {\n\t\t\t$out .= \"\\n\\n$key=$value\";\t\n\t\t}\n\t\t$out = trim($out); \n\t\treturn $out; \n\t}", "private fun...
[ "0.6305631", "0.61827075", "0.616274", "0.60294205", "0.6013852", "0.5910464", "0.58695066", "0.5833334", "0.57660943", "0.5732719", "0.57325613", "0.5732216", "0.5721763", "0.5716508", "0.56985563", "0.5668172", "0.56644034", "0.5621089", "0.56184316", "0.5588964", "0.557413...
0.0
-1
Public methods Initializes the server with the given configuration. This method will also spawn any configured FastCGI processes required at startup, and load the configured request handlers. Once initialized, it starts the main server loop.
public static function start($config) { // Add the config if (!is_array($config)) { trigger_error("Cannot start server, invalid configuration settings", E_USER_ERROR); } MHTTPD::addConfig($config); // Load the mime types info $mimes = @parse_ini_file(MHTTPD::getExepath().'lib\minihttpd\config\mimes.ini...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function start()\n {\n $this->registerDefaultServices();\n\n $this->handle($this->request->createFromGlobals());\n }", "private function run()\n {\n error_reporting(E_ALL|E_STRICT);\n $namespace = 'cli';\n if (defined('NAMESPACE')) {\n $namespace = co...
[ "0.6591059", "0.61278903", "0.6025732", "0.5967823", "0.59510744", "0.5892644", "0.58199817", "0.57597095", "0.5740682", "0.5739555", "0.5731995", "0.56559885", "0.56442", "0.563607", "0.563023", "0.56243163", "0.56119245", "0.5531699", "0.5523953", "0.55203754", "0.55101335"...
0.7307075
0
Factory method for creating MiniHTTPD objects. This is a helper method used mainly for creating chainable objects.
public static function factory($type) { $class = 'MHTTPD_'.ucfirst($type); return new $class; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function create()\n {\n $contentType = isset($_SERVER['CONTENT_TYPE']) ? $_SERVER['CONTENT_TYPE'] : 'text/html';\n return (new Request(\n $_SERVER['REQUEST_METHOD'], $_SERVER['REQUEST_URI'] ,\n $_REQUEST, $contentType\n ))->processBody();\n }", "publ...
[ "0.6102798", "0.5686488", "0.5676856", "0.56387836", "0.5626504", "0.5542996", "0.5530503", "0.54471457", "0.5439173", "0.5395884", "0.5351625", "0.5317065", "0.5317065", "0.53085923", "0.5293327", "0.5268499", "0.523159", "0.5205661", "0.51904166", "0.51703006", "0.5164401",...
0.58542013
1
Gracefully closes any open socket.
public static function closeSocket($socket) { $pname = stream_socket_get_name($socket, false); if (MHTTPD::$debug) {cecho("Closing socket: {$socket} ({$pname})\n");} @stream_socket_shutdown($socket, STREAM_SHUT_WR); usleep(500); @stream_socket_shutdown($socket, STREAM_SHUT_RD); @fclose($socket); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function close()\n {\n socket_close($this->socket);\n }", "public function close(): void\n\t{\n\t\tif ($this->socket) {\n\t\t\t$this->socket->close();\n\t\t\t$this->socket = null;\n\t\t}\n\t}", "private function close_socket() {\n\t\tfclose($this->_socket);\n\t\tif ($this->_CBC) $this->_CB...
[ "0.79528046", "0.7870402", "0.7799632", "0.77599496", "0.76474595", "0.756666", "0.7502773", "0.72488785", "0.7231688", "0.7164551", "0.7123312", "0.6986614", "0.69509584", "0.6884274", "0.68612117", "0.6859118", "0.6711187", "0.6662875", "0.65347373", "0.6531965", "0.6520059...
0.6672524
17
Determines whether the server is running in its main loop.
public static function isRunning() { return MHTTPD::$running; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function isMyServer(): bool {\n\t\ttry {\n\t\t\treturn Server::singleton($this->application)->id() === $this->memberInteger('server');\n\t\t} catch (Throwable) {\n\t\t\treturn false;\n\t\t}\n\t}", "public function serverIsRunning(): bool\n {\n [\n 'masterProcessId' => $masterProcessI...
[ "0.6746405", "0.6707584", "0.6622919", "0.64110506", "0.63055545", "0.6265126", "0.62634087", "0.62634087", "0.62060827", "0.62021744", "0.61749005", "0.6170871", "0.6155611", "0.6134765", "0.6132051", "0.61135215", "0.61058754", "0.61058754", "0.61058754", "0.608774", "0.607...
0.68174803
0
Returns the configured server initialization path.
public static function getInipath() { return MHTTPD::$config['Paths']['inipath']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getConfiguredServerRoot()\n {\n return $this->server_root;\n }", "function base_path() {\n return (new Server)->get('DOCUMENT_ROOT');\n }", "public function getBasePath()\n {\n // Check if server base path is defined, if not define it.\n if ($this...
[ "0.696532", "0.68005496", "0.6665218", "0.6488607", "0.6487966", "0.64438957", "0.6435663", "0.6375996", "0.6356348", "0.63393474", "0.6337887", "0.6328963", "0.63075435", "0.630252", "0.62845254", "0.6282567", "0.6234196", "0.6224943", "0.6196469", "0.6171674", "0.6170165", ...
0.60807955
25
Returns the configured server root path.
public static function getExepath() { return MHTTPD::$config['Paths']['exepath']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getConfiguredServerRoot()\n {\n return $this->server_root;\n }", "public function getRootDir()\n {\n return $this->server['DOCUMENT_ROOT'];\n }", "public function getRootPath(): string\n {\n return $this->rootPath;\n }", "function base_path() {\n ...
[ "0.8406466", "0.79759794", "0.7959511", "0.79053634", "0.79015994", "0.7877276", "0.78529036", "0.7830621", "0.7762928", "0.7761078", "0.7708904", "0.766443", "0.7602493", "0.75899166", "0.7532611", "0.75215167", "0.7496133", "0.74255264", "0.7413808", "0.73899764", "0.738381...
0.0
-1
Returns the configured public docroot path.
public static function getDocroot() { return MHTTPD::$config['Paths']['docroot']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPublicRoot()\n {\n $this->initializeVendorDir();\n return realpath($this->public_root);\n }", "function public_path()\n {\n $paths = getPaths();\n\n return $paths['public'];\n }", "public function rootPath()\n {\n return public_path() . $this...
[ "0.79588366", "0.7954139", "0.78660136", "0.7685791", "0.76250887", "0.76140064", "0.76140064", "0.7585091", "0.75733835", "0.75661373", "0.7545899", "0.7538565", "0.74869585", "0.7439908", "0.7412197", "0.7378347", "0.73596746", "0.73179036", "0.73125345", "0.7305334", "0.72...
0.80986744
0
Returns the private server docroot path.
public static function getServerDocroot() { return MHTTPD::$config['Paths']['server_docroot']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getDocroot() \n\t{\n\t\treturn MHTTPD::$config['Paths']['docroot'];\n\t}", "public function getRootDir()\n {\n return $this->server['DOCUMENT_ROOT'];\n }", "function base_path() {\n return (new Server)->get('DOCUMENT_ROOT');\n }", "public static function ...
[ "0.74405473", "0.7284044", "0.7262614", "0.71985906", "0.7049879", "0.6978768", "0.69082654", "0.68648136", "0.6806023", "0.6805294", "0.67474943", "0.6711657", "0.6694753", "0.667781", "0.6663147", "0.663424", "0.6625719", "0.66089225", "0.66029876", "0.65919304", "0.658228"...
0.8346813
0
Returns the list of paths from which XSendFile requests may be served.
public static function getSendFilePaths() { if (!empty(MHTTPD::$send_file_paths)) { return MHTTPD::$send_file_paths; } // Store the absolute paths $paths = listToArray(MHTTPD::$config['Paths']['send_file']); $real_paths = array(); foreach ($paths as $path) { if (($rpath = realpath(MHTTPD::getInip...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_file_list()\n {\n return array(\n 'sources_custom/hooks/systems/addon_registry/trickstr.php',\n 'sources_custom/programe/.htaccess',\n 'sources_custom/programe/aiml/.htaccess',\n 'sources_custom/programe/aiml/index.html',\n 'sourc...
[ "0.66162944", "0.6567059", "0.6561348", "0.6464385", "0.6464098", "0.6408907", "0.6354905", "0.6340888", "0.63334733", "0.6308133", "0.6256872", "0.62493", "0.62493", "0.6247828", "0.6246778", "0.6213495", "0.6192444", "0.61869603", "0.61307496", "0.61296743", "0.61213833", ...
0.808459
0
Returns the maximum number of requests allowed for KeepAlive connections.
public static function getMaxRequests() { return MHTTPD::$config['Server']['keep_alive_max_requests']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function max_connections()\n {\n $channel = ChannelRepository::getPublic($this);\n\n return $channel->max_connections;\n }", "public function getMaxConnections() {\n return @$this->attributes['max_connections'];\n }", "public function getMaxInstanceRequestConcurrency()\n {\n ...
[ "0.7217943", "0.6995841", "0.684907", "0.68140244", "0.63810813", "0.6331577", "0.62962025", "0.62707025", "0.62273926", "0.6217283", "0.6155623", "0.60660195", "0.60581654", "0.5992669", "0.5967646", "0.59664196", "0.596065", "0.59484506", "0.5941985", "0.5936001", "0.587745...
0.8511005
0
Returns the configured timeout for KeepAlive connections.
public static function getAliveTimeout() { return MHTTPD::$config['Server']['keep_alive_timeout']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getConnectTimeout();", "public function getConnectionTimeout();", "public function getHeartbeatTimeout()\n {\n return $this->heartbeatTimeout;\n }", "public function getConnectTimeout() {\n\t\treturn $this->connectionTimeout;\n\t}", "public static function getTimeout()\n {\n...
[ "0.7273374", "0.7048277", "0.69791263", "0.6954576", "0.68341064", "0.6831145", "0.67914665", "0.6779526", "0.6732166", "0.6732166", "0.6732166", "0.6732166", "0.6732166", "0.67231953", "0.6705623", "0.6700998", "0.6695791", "0.6689187", "0.6688377", "0.6670053", "0.661954", ...
0.78974396
0
Returns the list of default directory index files.
public static function getIndexFiles() { if (empty(MHTTPD::$config['Server']['index_files'])) { return array(); } return MHTTPD::$config['Server']['index_files']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultIndexDirectoryPath();", "public function getIndexDirectoryPath();", "public function hasDefaultIndexDirectoryPath();", "function index($dir = '.') {\n\t\t$index = array();\n\t\tif ($handle = opendir($dir)) {\n\t\t\twhile (false !== ($file = readdir($handle))) {\n\t\t\t\tif ($file !=...
[ "0.81148845", "0.687959", "0.66285294", "0.65067387", "0.6299508", "0.6262346", "0.6238817", "0.6220107", "0.61614054", "0.61104447", "0.6050074", "0.6044287", "0.5988231", "0.5980011", "0.5911843", "0.5888357", "0.5887802", "0.5885508", "0.58421993", "0.5833251", "0.58232915...
0.7434387
1
Returns the list of file extensions to be interpreted by the PHP FastCGI processes.
public static function getFCGIExtensions() { if (empty(MHTTPD::$config['FCGI']['extensions'])) { return array(); } return MHTTPD::$config['FCGI']['extensions']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSupportedFileExtensions() {}", "public function getSupportedFileExtensions()\n {\n return array_keys($GLOBALS['TYPO3_CONF_VARS']['SYS']['fal']['onlineMediaHelpers']);\n }", "public function getAllowFileExtensions()\n\t{\n\t\treturn implode(',', array_merge($this->videoExtensions...
[ "0.75095266", "0.7450413", "0.7387379", "0.73495805", "0.72481513", "0.7211943", "0.7183596", "0.7134137", "0.7134137", "0.7122811", "0.70979065", "0.7062294", "0.7054121", "0.7054121", "0.70047903", "0.69241256", "0.69082946", "0.6902633", "0.68864197", "0.6818086", "0.68168...
0.80703557
0
Returns basic information about the running server.
public static function getServerInfo() { $pname = explode(':', stream_socket_get_name(MHTTPD::$listener, false)); $info = array( MHTTPD::$config['Server']['address'], $pname[0], // address $pname[1], // port MHTTPD::$config['SSL']['enabled'], ); return $info; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getServerInfo()\n {\n return $this->sendServerCommand(\"serverinfo\");\n }", "function serverInfo() {\n\t}", "function ServerInfo() {}", "public function getInfo()\n {\n return $this->getServer()->getInfo();\n }", "public function getServerInfo() {\n\t\treturn $thi...
[ "0.80710644", "0.7843614", "0.7798012", "0.76615924", "0.74010676", "0.73654026", "0.73238313", "0.7108589", "0.7074376", "0.69735265", "0.6858886", "0.6841407", "0.6835843", "0.67990357", "0.6692915", "0.6671211", "0.6608836", "0.66002417", "0.6567629", "0.6436016", "0.64224...
0.6934539
10
Returns the configured server signature for displaying on pages.
public static function getSignature() { return MHTTPD::$info['signature']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSignature() {\n $headers = $this->getHeaders();\n foreach ($headers as $key => $value) {\n if (strtolower($key) === 'x-hub-signature') {\n return $value;\n }\n }\n return '';\n }", "public function getSignature(): string\n {\n return $this->signature;\n ...
[ "0.64923227", "0.6383859", "0.6383859", "0.6373031", "0.6329084", "0.62366974", "0.6089666", "0.60710776", "0.60570353", "0.6019753", "0.60176116", "0.59977907", "0.59977907", "0.59977907", "0.59977907", "0.59977907", "0.5948271", "0.59415567", "0.5914705", "0.58922476", "0.5...
0.7002486
0
Returns information about the current server software.
public static function getSoftwareInfo() { return MHTTPD::$info['software']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function software() \n\t{\n\t\treturn $this->server( 'SERVER_SOFTWARE' );\n\t}", "public function getServerInfo()\n {\n return $this->sendServerCommand(\"serverinfo\");\n }", "public static function detectServerSoftware()\n\t{\n\n\t\tif(preg_match('/^lighttpd/', $_SERVER['SERVER_SOFTWARE'])...
[ "0.82948077", "0.71080875", "0.70880634", "0.6942562", "0.69406426", "0.693396", "0.68584883", "0.6842566", "0.6775766", "0.67655456", "0.6717535", "0.6596546", "0.65899944", "0.6583866", "0.6542156", "0.6489403", "0.64702284", "0.6460313", "0.64597917", "0.64231384", "0.6380...
0.8412379
0
Returns information for listing on the Server Status page.
public static function getServerStatusInfo() { return array( MHTTPD::getSoftwareInfo(), date('r', MHTTPD::$info['launched']), MHTTPD::getStatCount('up', true), MHTTPD::getStatCount('down', true), MHTTPD::getClientsSummary(), MFCGI::getScoreboard(true), MHTTPD::getAbortedSummary(), MHTTPD::get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function info() {\n return self::instance()->getClient()->get('api/status/info');\n }", "public function index()\n {\n try {\n $processStatuses = ProcessStatus::get();\n return $this->showAll($processStatuses);\n } catch (Exception $ex) {\n ...
[ "0.69967014", "0.6762573", "0.67358404", "0.67139465", "0.6638641", "0.6636018", "0.6619285", "0.65864766", "0.6580739", "0.6566443", "0.6557896", "0.651211", "0.65062374", "0.64727914", "0.64126945", "0.63449055", "0.6335868", "0.6325586", "0.63220274", "0.631772", "0.631498...
0.74566585
0
Returns the path to the configured access and error logs directory.
public static function getLogPath() { return MHTTPD::$config['Paths']['logs']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function getLogPathFolder(){\n return dirname(__FILE__).self::ERROR_LOGS_DIRECTORY;\n }", "public static function errorlogDirectory()\n\t{\n\t\treturn false;\n\t\treturn '../errorlogs';\n\t}", "public function getLogDir();", "public function getLogPath() {\r\n\t\treturn $this->getF...
[ "0.8142427", "0.7879407", "0.76910794", "0.7677407", "0.7656658", "0.7656572", "0.7411818", "0.740294", "0.7401859", "0.7195321", "0.7129751", "0.7070933", "0.70112145", "0.698613", "0.6974255", "0.69395703", "0.6938829", "0.6855665", "0.6851775", "0.6812543", "0.67810524", ...
0.8133025
1
Determines whether the Server Status page should be displayed or not.
public static function allowServerStatus() { return MHTTPD::$config['Admin']['allow_server_status']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function BeforePageDisplay( &$out ){\n\t\tglobal $wgRequest, $wgUser;\n\t\tglobal $wgUseAjax;\n\n\t\tif( $wgUser->isLoggedIn() && $wgUseAjax ){\n\t\t\t$out->addModules( 'ext.onlineStatus' );\n\t\t}\n\n\t\tif( !in_array( $wgRequest->getVal( 'action', 'view' ), array( 'view', 'purge' ) ) )\n\t\t\treturn true;...
[ "0.636028", "0.6359578", "0.63501185", "0.62520367", "0.62330663", "0.62324655", "0.6188043", "0.6183963", "0.61637515", "0.605326", "0.6037759", "0.5988386", "0.5972265", "0.59405714", "0.5925474", "0.5896578", "0.58809817", "0.5876161", "0.58642876", "0.58542144", "0.582569...
0.7045054
0
Determines whether the Server Info page should be displayed or not.
public static function allowServerInfo() { return MHTTPD::$config['Admin']['allow_server_info']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isInformationVisible()\n {\n return Mage::getStoreConfigFlag(self::XML_PATH_OPTIONS_DISPLAY_INFORMATION);\n }", "public function canShowInfo() {}", "public function isForServer()\n {\n return $this->server !== null;\n }", "public function isCatalogInformationVisible(...
[ "0.71416783", "0.6807295", "0.66978884", "0.6455347", "0.6452842", "0.64419526", "0.63281745", "0.62444586", "0.6220971", "0.6198597", "0.6167629", "0.61568666", "0.60403675", "0.5992973", "0.59840673", "0.5955948", "0.59019166", "0.5888251", "0.58680236", "0.58520234", "0.58...
0.73005015
0
Determines whether the API Documentation page should be displayed or not.
public static function allowAPIDocs() { return MHTTPD::$config['Admin']['allow_api_docs']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function isApi()\n {\n return (self::getRequestType() == 'api')?true:false;\n }", "public function documentation() {\n\t\t$this->display(API_VIEWS_BASE.'/backend/documentation/index'); \n }", "protected function is_list_page() {\n\t\treturn false;\n\t}", "public function ...
[ "0.6362983", "0.6280511", "0.6213664", "0.6171089", "0.6167899", "0.6056447", "0.6049501", "0.60412884", "0.59809875", "0.5977476", "0.59451985", "0.5838461", "0.5780866", "0.5777056", "0.57674026", "0.5739612", "0.5728993", "0.57217425", "0.5712196", "0.57112235", "0.5707998...
0.70562786
0
Determines whether the Extras private server directory is accessible or not.
public static function allowExtrasDir() { return MHTTPD::$config['Admin']['allow_extras_dir']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkDirectoryExistance()\n {\n if (!file_exists($this->event->getConfig()->router->global_router)) {\n return false;\n }\n if (!is_readable($this->event->getConfig()->router->global_router)) {\n return false;\n }\n\n return true;\n }",...
[ "0.6809828", "0.65296084", "0.6342331", "0.6276821", "0.62746143", "0.6253011", "0.62135607", "0.62121934", "0.61839813", "0.61316526", "0.6075743", "0.60223395", "0.60146224", "0.5998739", "0.5982526", "0.5981365", "0.5957552", "0.5944099", "0.59306145", "0.5923289", "0.5894...
0.63997537
2
Returns the configured user information for the server administrator.
public static function getAdminAuth() { if (empty(MHTTPD::$config['Admin']['admin_user'])) { return false; } return array( 'realm' => 'server admin', 'user' => MHTTPD::$config['Admin']['admin_user'], 'pass' => MHTTPD::$config['Admin']['admin_pass'], ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getUser() {\n return self::$ADMIN_USER;\n }", "public function getAdminUser()\n {\n return $this->registry->registry('current_admin_user');\n }", "public function getAdminUser()\n {\n $user = array(\n 'username' => $this->getConfiguration()->getValue...
[ "0.71476805", "0.71118903", "0.71110106", "0.71110106", "0.6934066", "0.692421", "0.69149846", "0.69060063", "0.68164015", "0.6707965", "0.65576684", "0.6525031", "0.64981616", "0.6476507", "0.6445292", "0.6391442", "0.6391442", "0.638917", "0.6382252", "0.6382135", "0.638103...
0.7352966
0
Returns the server URL for building links, based on the configured info.
public static function getBaseUrl() { list($host, $address, $port, $ssl) = MHTTPD::getServerInfo(); $url = $ssl ? 'https://' : 'http://'; $url .= $host.':'.$port; return $url; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLink()\n {\n $link = $this->getFunctionPath();\n $parameterCount = count($this->servers);\n\n if($parameterCount > 0)\n $link .= \"?\";\n\n $link .= $this->buildParameterArray('servers', $this->servers);\n\n return $link;\n }", "function crea...
[ "0.7244926", "0.7069801", "0.6990059", "0.6773709", "0.67620337", "0.6671914", "0.6634836", "0.6633927", "0.65699166", "0.65481246", "0.6480376", "0.6396187", "0.6386613", "0.638392", "0.63688636", "0.6360462", "0.6353042", "0.6308228", "0.6278625", "0.6269326", "0.6256036", ...
0.6229685
24
Returns a list of loaded request handlers as an array of objects or a formatted string, or a single handler object by configured type.
public static function getHandlers($asString=false, $type=null) { if (!$asString && !$type) { // Return the list of loaded objects return MHTTPD::$handlers; } elseif ($type && !$asString) { // Return a single loaded object if (!isset(MHTTPD::$handlers[$type])) {return false;} return MHTTPD:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function defaultHandlerTypes()\n {\n return [\n 'maintenance',\n 'notFound',\n 'notAllowed',\n 'error',\n 'phpError',\n ];\n }", "public function getTypeHandler()\n {\n return $this->handlers[$this->getType()];\n ...
[ "0.6279439", "0.61567026", "0.6139796", "0.59524524", "0.5945656", "0.5936977", "0.59269285", "0.58899313", "0.5876111", "0.5817937", "0.5660135", "0.5629119", "0.54595536", "0.5453537", "0.5377144", "0.527308", "0.52565545", "0.52547616", "0.5229512", "0.5192247", "0.5189388...
0.76155186
0
Returns the currently loaded handlers queue.
public static function getHandlersQueue($init=true) { if ($init) {MHTTPD::$handlersQueue->init();} return MHTTPD::$handlersQueue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHandlers()\n {\n return $this->handlers;\n }", "public function fetchQueue() {\n\t\tif (TRUE === self::$instance instanceof QueueInterface) {\n\t\t\treturn self::$instance;\n\t\t}\n\t\treturn $this->initializeQueue();\n\t}", "public function getQueue();", "public function getQ...
[ "0.69382656", "0.6792673", "0.67824286", "0.67824286", "0.67304206", "0.66839796", "0.6668459", "0.6668459", "0.66399014", "0.66365814", "0.66221076", "0.66018504", "0.6586128", "0.6577119", "0.6531101", "0.6521215", "0.6496578", "0.6447995", "0.6435249", "0.6395472", "0.6350...
0.74156415
0
Returns the list of configured access authentication details.
public static function getAuthList() { return !empty(MHTTPD::$config['Auth']) ? MHTTPD::$config['Auth'] : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getAuthenticationConfig() {\n\t\t$config = $this->getServiceLocator()->get('config');\n\t\tif (isset($config['authentication'])) return $config['authentication'];\n\t\telse return [];\n\t}", "public function getAccessList() {\n return $this->_get(16);\n }", "public function getAuthInfo...
[ "0.6853585", "0.672578", "0.66362697", "0.66301346", "0.64560455", "0.64475787", "0.6401969", "0.6383257", "0.63169754", "0.63145745", "0.6226347", "0.62010014", "0.61057127", "0.6086777", "0.6073327", "0.60561275", "0.6019459", "0.6019459", "0.60118395", "0.60103583", "0.596...
0.72461665
0
Returns any configured access authentication info for the given resource.
public static function getAuthInfo($uri) { if (isset(MHTTPD::$config['Auth'][$uri]) && MHTTPD::$config['Auth'][$uri] !== false) { if (!is_array(MHTTPD::$config['Auth'][$uri])) { MHTTPD::$config['Auth'][$uri] = array_combine( array('realm', 'user', 'pass'), listToArray(MHTTPD::$config['Auth'][$uri]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAuthenticationProvider();", "public function getAuthentication(): Authentication;", "public function retrieveAuthCredentials()\n\t{\n\t\t// Since PHP saves the HTTP Password in a bunch of places, we have to be able to test for all of them\n\t\t$username = $password = NULL;\n\t\t\n\t\t// mod_...
[ "0.595963", "0.59528685", "0.5917025", "0.58970016", "0.58970016", "0.58274233", "0.5814313", "0.57940847", "0.5725791", "0.56698674", "0.56585264", "0.56336594", "0.56069446", "0.5594222", "0.558398", "0.5569603", "0.5561421", "0.55521345", "0.55301976", "0.5517591", "0.5492...
0.5030749
78
Returns raw info from the stored configuration file.
public static function getConfig($section) { if (!empty(MHTTPD::$config[$section])) { return MHTTPD::$config[$section]; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getConfigData()\n\t\t{\n\t\t\t$sConfigFile = self::getConfigFile();\n\n\t\t\t// Detect DB settings via configuration file\n\t\t\tif(is_file($sConfigFile))\n\t\t\t{\n\t\t\t\treturn file_get_contents($sConfigFile);\n\t\t\t}\n\n\t\t\treturn '';\n\t\t}", "public static function read()\n {\n...
[ "0.69436586", "0.6808992", "0.67709106", "0.6716614", "0.6716614", "0.6704078", "0.66160136", "0.6555848", "0.65507436", "0.6530195", "0.6480771", "0.6468537", "0.64585316", "0.64549434", "0.63861126", "0.636386", "0.6302322", "0.6261803", "0.62369657", "0.62302035", "0.62142...
0.0
-1
Increments a named server statistic by the given amount.
public static function addStatCount($name, $count) { if (isset(MHTTPD::$stats[$name])) { MHTTPD::$stats[$name] += $count; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function increment() {\n\t\t$this->amount++;\n\t}", "public function incrementCount($amount = 1)\n {\n $this->increment('count', $amount);\n }", "public function inc($key, $amount = 1)\r\n {\r\n return $this->memcache->increment($key, $amount);\r\n }", "public function increa...
[ "0.66369057", "0.6224725", "0.5941056", "0.5762281", "0.57473993", "0.5723954", "0.5680255", "0.5634881", "0.555101", "0.55410725", "0.5508179", "0.5400829", "0.5377568", "0.5346672", "0.53219146", "0.5282716", "0.5229658", "0.52084774", "0.51877695", "0.51677805", "0.5155344...
0.5975928
2
Returns the server stat count of the given name.
public static function getStatCount($name, $formatted=false) { if (isset(MHTTPD::$stats[$name])) { return $formatted ? MHTTPD::formatSize(MHTTPD::$stats[$name]) : MHTTPD::$stats[$name]; } return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function countNameservers(): int {}", "public function getServerInfoCount()\n {\n return $this->count(self::_SERVER_INFO);\n }", "public function findServersCount()\r\n {\r\n \t$query = \"select count(*) as count from `servers`\";\r\n \r\n \t$result = $this->DB->fetchColumn($que...
[ "0.71840847", "0.69439983", "0.6360713", "0.6333928", "0.6242203", "0.62119746", "0.5971724", "0.59704536", "0.58511055", "0.57915604", "0.5768736", "0.57394224", "0.5716797", "0.5703957", "0.56953984", "0.5689674", "0.5650134", "0.55853677", "0.55847144", "0.556826", "0.5515...
0.72159755
0
Converts byte sizes to formatted strings.
public static function formatSize($bytes, $round=1) { $suffix = array('B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'); for ($i=0; $bytes > 1024 && isset($suffix[$i+1]); $i++) {$bytes /= 1024;} return round($bytes,$round)." ".$suffix[$i]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function format_bytes ( $size ) {\n\t\tswitch ( $size ) {\n\t\t\tcase $size > 1000000:\n\t\t\t\treturn number_format(ceil($size / 1000000)) . \"mb\";\n\t\t\t\tbreak;\n\t\t\tcase $size > 1000:\n\t\t\t\treturn number_format(ceil($size / 1000)) . \"k\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn number_format($s...
[ "0.7407032", "0.7371487", "0.71509856", "0.70885557", "0.7064164", "0.69926167", "0.6981278", "0.6960048", "0.69217414", "0.6918628", "0.68819255", "0.6869967", "0.68639225", "0.6860334", "0.6782538", "0.67792803", "0.6776988", "0.675925", "0.6752228", "0.6739843", "0.6721773...
0.6451167
39
Creates a brief summary list of the connected clients.
public static function getClientsSummary() { $summary = ''; foreach (MHTTPD::$clients as $client) { $summary .= $client->getSummary()."\n"; } return $summary; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clientList() {\n return $this->returnCommand(['CLIENT', 'LIST'], null, null, ResponseParser::PARSE_CLIENT_LIST);\n }", "public function client_list()\n {\n return ClientList::latest()->paginate(10);\n }", "public function listClients(){\n $mysql= $this->database->d...
[ "0.6483087", "0.63488656", "0.62941134", "0.62731576", "0.6247569", "0.6229187", "0.62164766", "0.61918414", "0.6045793", "0.5990428", "0.5954051", "0.5940975", "0.59273565", "0.59249496", "0.5913745", "0.5910921", "0.5909654", "0.5908593", "0.5892994", "0.587324", "0.5868813...
0.7423469
0
Creates a brief summary list of any aborted requests.
public static function getAbortedSummary() { $summary = ''; foreach (MHTTPD::$aborted as $num=>$ab) { $summary .= "({$num}) C: {$ab['client']}, F: {$ab['fcgi_client']}, " . "P: {$ab['process']} ({$ab['pid']}), T: {$ab['time']}\n"; } $summary = $summary != '' ? $summary : 'None'; return $summary; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function invalidRequests()\n {\n return [\n [\n HttpRequestMethod::GET,\n 'https://postman-echo.com/status/404',\n '',\n [],\n HttpClientErrorException::class\n ],\n [\n HttpR...
[ "0.5053492", "0.49973387", "0.4973631", "0.47482452", "0.47321114", "0.47072265", "0.4687579", "0.4658795", "0.46562237", "0.46489137", "0.46448314", "0.46394044", "0.46201023", "0.46197483", "0.46164912", "0.45974174", "0.45974174", "0.45554206", "0.454678", "0.45338333", "0...
0.692993
0
Returns the list of configured mime types.
public static function getMimeTypes() { return MHTTPD::$config['Mimes']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMimetypes()\n\t{\n\t\treturn $this->mimeTypes;\n\t}", "public function getMimeTypes() {\n return $this->mimeTypes;\n }", "public static function getAllMimeTypes():array;", "public function getAvailableMimeTypes()\n {\n return $this->availableMimeTypes;\n }", "stati...
[ "0.8294866", "0.82882845", "0.8181627", "0.807407", "0.7963864", "0.79494417", "0.7847374", "0.78200144", "0.77975315", "0.7652592", "0.7638057", "0.76056087", "0.7526512", "0.75212085", "0.7460236", "0.743895", "0.7347182", "0.7296489", "0.7280664", "0.7184006", "0.7124255",...
0.84952116
0
Returns the default formatted charset string.
public static function getDefaultCharset() { if (MHTTPD::$charset !== null) { return MHTTPD::$charset; } $charset = ini_get('default_charset'); if ($charset != '') {$charset = "; charset={$charset}";} MHTTPD::$charset = $charset; return $charset; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function get_formatted_charset(): string\n\t{\n\t\t$charset = $this->charset;\n\n\t\tif (!$charset)\n\t\t{\n\t\t\treturn '';\n\t\t}\n\n\t\tlist($charset, $collate) = explode('/', $charset) + [ 1 => null ];\n\n\t\treturn \"CHARSET $charset\" . ($collate ? \" COLLATE {$charset}_{$collate}\" : '');\n\t}", ...
[ "0.72111094", "0.680433", "0.67340255", "0.6672375", "0.6600745", "0.65656215", "0.6442014", "0.6424496", "0.6264112", "0.6264112", "0.61998695", "0.61642283", "0.61569554", "0.6154951", "0.6102674", "0.6069433", "0.6068933", "0.6043149", "0.6037679", "0.60196555", "0.6008426...
0.6977547
1
Protected/Private methods Parses the given configuration settings and stores them locally.
protected static function addConfig($config) { // Set debugging MHTTPD::$debug = $config['Debug']['enabled']; // Convert any config lists to arrays if (!empty($config['Server']['index_files'])) { $config['Server']['index_files'] = listToArray($config['Server']['index_files']); } if (!empty($config['F...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setupConfig()\n {\n registry::getInstance()->set('config', $this->parseConfig());\n }", "private static function readConfig()\n {\n $handler = self::getHandler();\n if (null == $handler->arrConfigGlobal && null == $handler->arrConfigLocal && null == $handler->arrConf...
[ "0.6371229", "0.62592137", "0.61571294", "0.61273247", "0.6098169", "0.6094855", "0.6072405", "0.605578", "0.60327446", "0.60324496", "0.60324496", "0.6030763", "0.6005863", "0.59881043", "0.5957281", "0.59542006", "0.5940675", "0.5848523", "0.5835763", "0.5831158", "0.578028...
0.0
-1
Creates a stream context for the main server listening socket based on the configured settings.
protected static function getContext() { $opts = array( 'socket' => array( 'backlog' => MHTTPD::$config['Server']['queue_backlog'], ), ); if (MHTTPD::$config['SSL']['enabled']) { // Find SSL certificate file $cert = MHTTPD::$config['SSL']['cert_file']; if ( !($cert_file = realpath($cert)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getStreamContext()\n {\n $ctx = stream_context_create();\n\n stream_context_set_option($ctx, \"ssl\", \"local_cert\", $this->pem);\n if (strlen($this->passphrase)) {\n stream_context_set_option($ctx, \"ssl\", \"passphrase\", $this->passphrase);\n }\n\n ...
[ "0.65937775", "0.63524294", "0.61987245", "0.6120276", "0.5942839", "0.5922673", "0.5695063", "0.56058484", "0.55532527", "0.5538928", "0.5454523", "0.54109675", "0.5406407", "0.53507173", "0.5337277", "0.5319977", "0.5292695", "0.5284051", "0.52714616", "0.5258502", "0.52135...
0.6733285
0
Creates the main server listening socket on the configured address/port. stream_socket_server() is used here rather than the sockets extension mainly due to its inbuilt support for SSL connections.
protected static function createListener($context) { $type = MHTTPD::$config['SSL']['enabled'] ? 'ssl' : 'tcp'; $addr = MHTTPD::$config['Server']['address']; $port = MHTTPD::$config['Server']['port']; if (!(MHTTPD::$listener = stream_socket_server("{$type}://{$addr}:{$port}", $errno, $errstr, STREAM_SERVE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createSocket()\n {\n //Create TCP/IP sream socket\n $this->socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);\n //reuseable port\n socket_set_option($this->socket, SOL_SOCKET, SO_REUSEADDR, 1);\n\n //bind socket to specified host\n socket_bind($this-...
[ "0.66744286", "0.66344595", "0.6532833", "0.6388822", "0.62629676", "0.6219293", "0.62053305", "0.60998553", "0.6059594", "0.6051707", "0.6030889", "0.5921175", "0.5849558", "0.5837673", "0.58367616", "0.5802052", "0.5749525", "0.57254183", "0.5706855", "0.5681658", "0.567672...
0.7015434
0
Handles the client response for any unfinished requests.
protected static function handleResponse(MiniHTTPD_Client $client) { if (!$client->isFinished()) { if ($client->isStreaming() && !$client->hasOpenStream()) { // Finish streaming a static file if (MHTTPD::$debug) {cecho("Client ({$client->getID()}) ... stream ended ");} $client->finish(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _handleResponse(){\n $this->_results[] = array(\n 'http_code' => $this->getInfoHTTPCode(),\n 'response' => $this->getResponse(),\n 'server' => $this->getUrl()\n );\n }", "private function responseHandle() {\n // call hook function\n ...
[ "0.67901564", "0.65624905", "0.6363065", "0.63299996", "0.624035", "0.6116563", "0.60525966", "0.60289574", "0.6005157", "0.5991418", "0.5961236", "0.58835244", "0.5871349", "0.58552", "0.58472234", "0.58288825", "0.5803994", "0.57994455", "0.57875293", "0.57654196", "0.57588...
0.5547866
30
Removes the client from the active queue. The client's finish() method will be called and its socket will be closed gracefully. If an active FCGI request has been aborted, the FCGI socket will be queued in the $aborted list for handling later.
protected static function removeClient(MiniHTTPD_Client $client) { $clientID = $client->getID(); if (MHTTPD::$debug) {cecho("Client ({$clientID}) ... removing client ");} // Has an FCGI request been aborted? if ($client->hasOpenFCGI()) { // Queue the aborted request for handling later MHTTPD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeClientOnClose($client)\n { \n $clientId = $client->getClientId();\n $clientIp = $client->getClientIp();\n $clientPort = $client->getClientPort();\n $resource = $client->getClientSocket();\n \n ...
[ "0.6252087", "0.59970576", "0.58153915", "0.578692", "0.5676663", "0.55063057", "0.5504417", "0.5493203", "0.54897493", "0.54486006", "0.5440492", "0.54104424", "0.5388799", "0.53721", "0.5368732", "0.5299782", "0.52900463", "0.52858347", "0.52604914", "0.5260002", "0.5231384...
0.58386075
2
This method should be called to gracefully shut down the server.
protected static function shutdown() { if (MHTTPD::$debug) {cecho("Shutting down the server ...\n");} MHTTPD::$running = false; // Close listener MHTTPD::closeSocket(MHTTPD::$listener); // Kill all running FCGI processes exec('taskkill /F /IM php-cgi.exe'); // Remove any active clients forea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function shutdown() {}", "public function shutdown() {}", "public function shutdown() {}", "public function shutdown() {}", "public function shutdown() {}", "public function shutdown() {\n\t\t$this->stop();\n\t}", "public function shutdown();", "public function shutdown();", "public function...
[ "0.78425866", "0.78425866", "0.78425866", "0.78425866", "0.78425866", "0.7825372", "0.7802271", "0.7802271", "0.76985943", "0.75290066", "0.7504021", "0.74799824", "0.7451315", "0.744412", "0.741093", "0.73860574", "0.7334429", "0.7305934", "0.7255227", "0.71839285", "0.71667...
0.8219987
0
Launches the default browser in the background and navigates to the default index page (after a brief delay). rundll32.exe/url.dll is called here using WScript over the other options due to its generally more reliable performance ('start $url' produces an annoying error popup if the browser isn't already open).
protected static function launchBrowser() { if (MHTTPD::$config['Other']['browser_autolaunch']) { $url = MHTTPD::$config['SSL']['enabled'] ? 'https://' : 'http://'; $url .= MHTTPD::$config['Server']['address'].':'.MHTTPD::$config['Server']['port'].'/'; $cmd = 'cmd.exe /C start /B /WAIT PING 127.0.0.1 -n 3 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function openBrowser($url, SymfonyStyle $io) {\n $is_windows = defined('PHP_WINDOWS_VERSION_BUILD');\n if ($is_windows) {\n // Handle escaping ourselves.\n $cmd = 'start \"web\" \"' . $url . '\"\"';\n }\n else {\n $url = escapeshellarg($url);\n }\n\n $is_linux = Process::...
[ "0.6087888", "0.56739134", "0.5212936", "0.5155909", "0.5042084", "0.49425703", "0.4905557", "0.48766857", "0.48760805", "0.48596776", "0.48519766", "0.48236823", "0.48012367", "0.47742614", "0.47495607", "0.47486478", "0.47334105", "0.4711", "0.4704783", "0.47029334", "0.469...
0.7576014
0
Runs the main server loop. This is where the server does most if its work. Once the listening socket is established, iterations of the the main loop are controlled entirely by stream_select() for both client connections and FCGI requests as well as any open file streams. Each loop should ideally finish as quickly as po...
protected static function main() { // Create a TCP/SSL server socket context $context = MHTTPD::getContext(); // Start the listener MHTTPD::createListener($context); // Initialize some handy vars $timeout = ini_get('default_socket_timeout'); $maxClients = MHTTPD::$config['Server']['max_clients']; $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function run() {\n while ($this->running) {\n $read = $this->readStreams;\n $write = $this->writeStreams;\n $except = null;\n\n if ($read || $write) {\n @stream_select($read, $write, $except, 0, 100);\n\n foreach ($read as $stream) {\...
[ "0.7016053", "0.69488436", "0.69133306", "0.67089456", "0.6646561", "0.63550645", "0.61900896", "0.6105044", "0.6089636", "0.6083241", "0.594207", "0.5900055", "0.57835525", "0.5762794", "0.5738868", "0.56662667", "0.5645363", "0.5559845", "0.550113", "0.5467251", "0.5466518"...
0.7146619
0
Prevents instantiation of this static class.
final private function __construct() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function __construct()\r\n {\r\n // Prevent direct instantiation\r\n }", "final public function __construct()\n\t{\n\t\tthrow new \\LogicException('Static class cannot be instantiated.');\n\t}", "final public function __construct() { throw new WeeboException(\"Cannot instantiate static cla...
[ "0.7332884", "0.70220786", "0.69938666", "0.6880627", "0.6863365", "0.6857586", "0.6831705", "0.6754727", "0.67092794", "0.6687075", "0.66717225", "0.666733", "0.65733314", "0.6405985", "0.634067", "0.62562174", "0.6191577", "0.6189758", "0.6189758", "0.61863416", "0.6078157"...
0.5918386
28
create a collapsible menue by iterating throug items
function createCollapsibleMenue($items,$current,$key){ unset($items[$key ]); ?> <!-- Schreibe aktuellen Eintrag in collapsible Header --> <?php if ($current['collapsible']) { $collapsible = '<i class="material-icons right">keyboard_arrow_down</i>'; $link = ''; } else { $collapsible = ""; if($cur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function build () {\n foreach ( $this->items as $item ) {\n if ( $item->id() == $this->current->id() ) {\n $this->menu[]=$item;\n $this->appendChildren();\n } else if ( $item->parent_id() == $this->current->parent_id() ) {\n $this->menu[]=$i...
[ "0.6325584", "0.5737215", "0.566524", "0.566524", "0.566524", "0.566524", "0.566524", "0.566524", "0.5544741", "0.5541232", "0.55274785", "0.5511908", "0.5474864", "0.5455559", "0.54525465", "0.54476434", "0.5440442", "0.5411988", "0.54038256", "0.5398209", "0.5396687", "0....
0.7483723
0
get al reacords with given user id or userName from database
public function getPlayerPaymentHistory($nameAndId) { $this->db->select('*'); $this->db->from('playerPayment'); $this->db->where('userRole', 'player'); $this->db->join('user', 'user.userId = playerPayment.playerId'); if ($nameAndId["playerId"] != "") { $this->db->where('userId', $nameAndId["playerId"]); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findByUser($id) {\n\t $this->db->select('*')\n\t ->from($this->getSource())\n\t ->where(\"userId = ?\");\n\t \n\t $this->db->execute([$id]);\n\t return $this->db->fetchAll();\n\t}", "public function readByUser(){\n //select all query\n $query...
[ "0.6523387", "0.64962673", "0.64654285", "0.6465354", "0.6393977", "0.6372325", "0.6372325", "0.6343408", "0.6343408", "0.6314325", "0.62757635", "0.62394613", "0.6224285", "0.6224285", "0.621981", "0.62195224", "0.6217786", "0.6206759", "0.62060946", "0.6183377", "0.61601275...
0.0
-1
Generate the html for the steplisting
public function generate() { $ret = $GLOBALS['TL_LANG']['tl_servitus_step']['tmpTbl'][0].": ".$this->tmpTbl.'<br>'; $objFile = \FilesModel::findByPk($this->csvFile); if(!$objFile || !is_file(TL_ROOT.'/'.$objFile->path)) { $ret = '<p class="tl_error">CSV-File not found!</p>'; } else { $ret .= $GLOBA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function renderLoadsHtml()\n {\n $steps = json_decode(file_get_contents($this->file), true);\n if (empty($_GET['operation'])) {\n $namespaces = $this->loadNamespaces($steps);\n\n $template = new Template();\n $template->assign('id', $this->id);\n ...
[ "0.6610232", "0.6597837", "0.6548976", "0.64678496", "0.6376613", "0.6364415", "0.6289941", "0.62080693", "0.6062338", "0.6044103", "0.6025855", "0.59870213", "0.59584314", "0.59313565", "0.5928711", "0.5914045", "0.5889255", "0.5884663", "0.5847394", "0.584494", "0.5833446",...
0.0
-1
Write a row into the temp table
protected function importRow($arrData) { $this->setRoundData('csvLine', $this->getRoundData('csvLine')+1); // validation if($this->useValidation) { foreach($this->constraints as $constraint) { $fld = $constraint['fld']; $constraint = $constraint['constraint']; if($constraint == 'notEmpty' &&...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function saveRow( $row );", "public function insertRow($row);", "public function writeRow($row, $data, $column_start = 0, $format = null) {\n\t}", "public function write($row, $column, $data, $format = null, $data_type = -1) {\n\t}", "public function writeHeaderRow() {\n $headers = $this->get...
[ "0.6111535", "0.5996051", "0.5985546", "0.55732423", "0.5492062", "0.5441002", "0.5352309", "0.530115", "0.5299427", "0.52712333", "0.5239521", "0.5229508", "0.51897144", "0.51842463", "0.51817966", "0.51458013", "0.5140613", "0.5121955", "0.5104666", "0.5090746", "0.5072563"...
0.0
-1
Create a temporary table and try to use the headlines for rownames
protected function generateTmpTable($firstLine) { $arrHeadline = $this->getHeadlines($firstLine); // Drop existing temp table if($this->Database->tableExists($this->tmpTbl)) { $this->Database->executeUncached('DROP TABLE '.$this->tmpTbl); $this->msg('Table '.$this->tmpTbl.' dropped.','info'); } // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDummyTable() {}", "private function _createTemporaryTable(){\n\n $tempTable = $this->getTemporaryTablename();\n $this->_liquetDatabase->query(\"DROP TABLE IF EXISTS {$tempTable}\")->run();\n $this->_liquetDatabase->query(\"CREATE TEMPORARY TABLE {$tempTable} LIKE {$thi...
[ "0.6863029", "0.6492692", "0.6335658", "0.62894595", "0.6214419", "0.6193982", "0.61939144", "0.6050768", "0.60431063", "0.59875673", "0.5984472", "0.5874888", "0.5863243", "0.58206713", "0.5747921", "0.57388544", "0.5723985", "0.57143", "0.5707151", "0.57059443", "0.5643449"...
0.66587317
1
Read a line from the CSVfile
protected function readLine() { if(!$this->handle) return false; $strLine = fgets($this->handle); if($strLine === false) return false; // reencode characters if($this->csvEncoding != 'UTF-8') { $strLine = iconv($this->csvEncoding, 'UTF-8', $strLine); } return str_getcsv($strLine,$this->csvDelimite...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function readLine(){\n $data = fgetcsv($this->handle,0,\";\");\n return $data; \n \n }", "public function getLine(){\n $obj = new SplFileObject($this->_csv_file);\n $obj->seek($this->_counter);\n if($this->_counter < $this->_number_of_lines){\n $this->_coun...
[ "0.76077473", "0.73653376", "0.6836819", "0.66346085", "0.65609217", "0.64579666", "0.6420143", "0.6225561", "0.61358243", "0.61098754", "0.608432", "0.606057", "0.5991197", "0.5971147", "0.5953649", "0.5930565", "0.585343", "0.58188003", "0.5791966", "0.57916206", "0.5778562...
0.7231493
2
Inserts a new billing assignment and returns the new assignment. Only one of advertiser_id or campaign_id is support per request. If the new assignment has no effect (assigning a campaign to the parent advertiser billing profile or assigning an advertiser to the account billing profile), no assignment will be returned....
public function insert($profileId, $billingProfileId, BillingAssignment $postBody, $optParams = []) { $params = ['profileId' => $profileId, 'billingProfileId' => $billingProfileId, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('insert', [$params], BillingAssignme...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(AssignmentRequest $request)\n { \n /** AssignmentRequest will automatically return all errors if validation failed */\n\n $input = $request->validated();\n $record = AssetAssignment::create($input);\n\n event(new AssignmentAlert(Auth()->user()));\n \n ...
[ "0.522903", "0.5226232", "0.51708555", "0.49826762", "0.4742517", "0.47291124", "0.4624129", "0.46131203", "0.46039164", "0.45879176", "0.45495614", "0.4543962", "0.45149127", "0.45074227", "0.4470292", "0.44189334", "0.4390513", "0.4387687", "0.43753195", "0.43630984", "0.43...
0.6681009
0
Retrieves a list of billing assignments. (billingAssignments.listBillingAssignments)
public function listBillingAssignments($profileId, $billingProfileId, $optParams = []) { $params = ['profileId' => $profileId, 'billingProfileId' => $billingProfileId]; $params = array_merge($params, $optParams); return $this->call('list', [$params], BillingAssignmentsListResponse::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAssignments()\n {\n return $this->queryBuilder('tx_deepl_settings')->select('*')\n ->from('tx_deepl_settings')\n ->execute()\n ->fetchAll();\n }", "public function listBillingAccounts($optParams = array())\n {\n $params = array();\n $params ...
[ "0.5390474", "0.53052366", "0.5003872", "0.49572343", "0.4950013", "0.4923144", "0.4899255", "0.4845753", "0.48416504", "0.48410812", "0.4840595", "0.4840595", "0.47305214", "0.47015536", "0.4641276", "0.4637623", "0.45906094", "0.45587975", "0.45277014", "0.45177555", "0.451...
0.74661344
0
Expected to return \Zend\ServiceManager\Config object or array to seed such an object.
public function getViewHelperConfig() { return array( 'invokables' => array( 'formBannerGlobals' => 'Grid\Banner\Form\View\Helper\FormBannerGlobals', 'formBannerLocales' => 'Grid\Banner\Form\View\Helper\FormBannerLocales', 'formBannerTags' => 'G...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createConfig()\n\t{\n\t}", "abstract public static function createConfig(): Config;", "public function getServiceConfig()\n {\n \treturn array(\n\t\t\t'factories' => array(\n\t\t\t\t\t\n\t\t\t\t//models\n\t\t\t\t'Api\\Model\\Key' => function($sm) {\n\t\t\t\t\t$hash = $sm->get('Application...
[ "0.68240935", "0.65426046", "0.63653755", "0.63090146", "0.6242645", "0.62405276", "0.619346", "0.6186003", "0.6161905", "0.6153487", "0.6120263", "0.6114904", "0.61059374", "0.6090943", "0.6066895", "0.60609215", "0.6041854", "0.60258365", "0.601604", "0.6014477", "0.6010896...
0.0
-1
Tests for "MongoCursorException: Cannot apply $push/$pushAll modifier to nonarray" error. Embedded document with provided id should not be upserted.
public function testUpsertEmbedManyDoesNotCreateObject(): void { $test = new UpsertTestUser(); $embedded = new UpsertTestUserEmbedded(); $embedded->test = 'test'; $test->embedMany[] = $embedded; $this->dm->persist($test); self::assertFalse($this->uow->isSche...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function upsertById($id)\n\t{\n\t\tif ($id > 0)\n\t\t{\n\t\t\t$this->id = $id;\n\t\t\treturn $this->update();\n\t\t}\n\t\telse\n\t\t\treturn $this->insert();\n\t}", "private function insertUnMatched()\n {\n $newElements = $this->unMatchedCollection->map(function ($item) {\n\n //Unset primary...
[ "0.60246205", "0.59903115", "0.59610593", "0.567923", "0.5667539", "0.56558675", "0.56102324", "0.54039866", "0.5270494", "0.5237586", "0.52173924", "0.5179021", "0.5130822", "0.51263905", "0.5076853", "0.5058752", "0.50581264", "0.5045449", "0.49722055", "0.4958831", "0.4957...
0.48263687
34
2. save, and put this script into the webdirectory on your server (e.g. /home/yourname/domains/dom.ain/public_html/hypha.php) 3. open this script in a browser (e.g. on first run, the script will ask some questions and create the files and folders it needs for operation 4. your website is ready to use ( you can now set ...
function isAllowedFile($file) { $path = pathinfo($file); $dir = preg_replace('#[\./]*(.*)/*#', '$1', $path['dirname']); $file = $path['basename']; if ($dir == '' && $file == '.htaccess') return true; if ($dir == '' && $file == 'index.php') return true; if ($dir == '' && $file == 'documentation.txt') return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function install() {\n\t\tglobal $errorMessage;\n\n\t\tif ($_POST['command'] == 'install' && is_writable('.')) {\n\t\t\t// upzip and install files\n\t\t\t$files = explode(',', data('index'));\n\t\t\tforeach ($files as $file) {\n\t\t\t\tif (!$file)\n\t\t\t\t\tcontinue;\n\t\t\t\t$path = pathinfo($file);\n\t\t\t\t$di...
[ "0.6496574", "0.600136", "0.59931827", "0.53521115", "0.53412634", "0.53129745", "0.5299724", "0.52759737", "0.5271338", "0.52329427", "0.51791656", "0.5162254", "0.5110638", "0.50781804", "0.50737286", "0.50308216", "0.50241446", "0.5008004", "0.49877208", "0.49853593", "0.4...
0.0
-1
/ Function: index compiles an array with hypha's system files and their creation timestamp Parameters: $dir directory needed for the recursive operation of this function
function index($dir = '.') { $index = array(); if ($handle = opendir($dir)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { if (isAllowedFile($dir.'/'.$file)) $index[preg_replace("/^\.\//i","",$dir.'/'.$file)] = filemtime($dir.'/'.$file); elseif (is_dir($dir.'/...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getFileStruct($dir){\n $command = \"find \". $dir . \" -name '*.md'\";\n $list = array();\n\n exec ( $command, $list );\n\n $output = new \\StdClass;\n $list = array_reverse($list);\n\n\n $pages = array();\n\n\n\n foreach ($list as $path) {\n ...
[ "0.60269266", "0.5949143", "0.58472645", "0.5707478", "0.5705214", "0.569494", "0.5678531", "0.56539243", "0.56381667", "0.55899674", "0.55722976", "0.5549382", "0.5529906", "0.55294245", "0.55207664", "0.551794", "0.5513688", "0.5500355", "0.5496562", "0.5441807", "0.5431651...
0.6792
0
/ Function: buildzip builds a hypha.php containing all system files as zipped strings and sends it to client for download
function buildzip() { // make list of files to include $files = array_keys(index()); foreach($_POST as $p => $v) if (substr($p, 0, 6) == 'build_') $files[] = substr($p, 6).'.php'; // get the base script to modify $hypha = file_get_contents('hypha.php'); // insert superuser name and password $hypha = pre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function build_zip() {\n\n\t\t$file_uploads = isset($_POST['file_uploads']) ? $_POST['file_uploads'] : '';\n\n\t\t$all_file_paths = array();\n\t\tif($file_uploads){\n\t\t\tforeach ($file_uploads as $key => $id) {\n\t\t\t\t$post_thumbnail_id = get_post_thumbnail_id( $id );\n\t\t\t\t$file_path = get_at...
[ "0.7098431", "0.67109716", "0.6523865", "0.64830923", "0.64051837", "0.6371909", "0.63708913", "0.63435286", "0.6339241", "0.6333282", "0.6309595", "0.6145113", "0.61130774", "0.61100155", "0.61039877", "0.6102134", "0.60285014", "0.5964613", "0.5953326", "0.5940628", "0.5930...
0.8474213
0
/ Function: tools generates a html table with all the system files and actions on them depending on possible changes between the local file and the version on a remote hypha Parameters: $hyphaServer url of remove hypha
function tools($hyphaServer) { global $errorMessage; switch($_POST['command']) { case 'add': $data = gzdecode(base64_decode(file_get_contents($hyphaServer.'?file='.$_POST['argument']))); if ($data) { file_put_contents($_POST['argument'], $data); chmod($_POST['argument'], 0664); } else $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show_changed_files() {\r\n\t\tcheck_admin_referer('plugin-name-action_wpidenonce'); \r\n\t\tif ( !is_super_admin() )\r\n\t\t\twp_die('<p>'.__('You do not have sufficient permissions to edit templates for this site. SORRY').'</p>');\r\n\t\t\r\n error_reporting(E_ALL);\r\n ini_set(\"dis...
[ "0.5896481", "0.574359", "0.57088673", "0.5664245", "0.5571651", "0.5555847", "0.55236053", "0.55213886", "0.54514915", "0.5437935", "0.5396095", "0.53941524", "0.5381396", "0.5348468", "0.5346898", "0.5336269", "0.5310747", "0.5294862", "0.52886534", "0.527385", "0.522084", ...
0.74232733
0
/ Function: install install new hypha
function install() { global $errorMessage; if ($_POST['command'] == 'install' && is_writable('.')) { // upzip and install files $files = explode(',', data('index')); foreach ($files as $file) { if (!$file) continue; $path = pathinfo($file); $dir = explode('/', $path['dirname']); $fold...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function install() {}", "function install(){}", "public function install();", "public function install();", "function install()\n {\n }", "public function install(){\r\n\t\t\r\n\t}", "public function install() {\n\n\n }", "public static function install(){\n\t}", "public function insta...
[ "0.7131105", "0.7053783", "0.7014293", "0.7014293", "0.68084145", "0.6804458", "0.676204", "0.66855407", "0.66785353", "0.66421556", "0.66421556", "0.6457096", "0.6437862", "0.64367026", "0.62964314", "0.6275614", "0.62715805", "0.62634015", "0.62391746", "0.62187296", "0.620...
0.70053244
4
/ Function: login login form
function login() { ob_start(); ?> <div style="width:600px;"> <h1>hypha superuser login</h1> Please log in with the superuser account. In case you forgot the password you'll have to look it up in the file 'hypha.php' on your server. </div> <table class="section"> <tr><th style="text-align:right; w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loginForm(){\n self::$loginEmail = $_POST['login-email'];\n self::$loginPassword = $_POST['login-password'];\n \n self::sanitize();\n $this->tryLogIn();\n }", "public function login(){\n \t\t//TODO redirect if user already logged in\n \t\t//TODO Seut up a for...
[ "0.8341818", "0.82227546", "0.8204332", "0.8204332", "0.80524", "0.80397207", "0.8039707", "0.7988027", "0.7985416", "0.7901336", "0.7895697", "0.7890811", "0.7883097", "0.787984", "0.7835461", "0.7780317", "0.77679354", "0.77466744", "0.77372056", "0.7733294", "0.77331686", ...
0.0
-1
/ Function: build produces html page for selecting hypha modules and languages to package in a new hypha.php install script
function build() { $localIndex = index(); arsort($localIndex); ob_start(); ?> <div style="width:600px;"> <h1>hypha builder</h1> Here you can compose your own hypha system. <ol> <li>First you have to enter a name and password for the so called 'superuser' account.</li> <li>Then you can sel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function install() {\n\t\tglobal $errorMessage;\n\n\t\tif ($_POST['command'] == 'install' && is_writable('.')) {\n\t\t\t// upzip and install files\n\t\t\t$files = explode(',', data('index'));\n\t\t\tforeach ($files as $file) {\n\t\t\t\tif (!$file)\n\t\t\t\t\tcontinue;\n\t\t\t\t$path = pathinfo($file);\n\t\t\t\t$di...
[ "0.68117386", "0.6257656", "0.6169114", "0.61197644", "0.60670847", "0.6035333", "0.5963818", "0.59474105", "0.59227645", "0.5908078", "0.58754194", "0.58266115", "0.5825155", "0.58153105", "0.5814015", "0.58116204", "0.5811198", "0.5806034", "0.57935363", "0.5782737", "0.577...
0.7260305
0
/ Function: setNodeHtml convenience function to write inner HTML content to a XML node, and suppress warnings from html parser
function setNodeHtml($node, $content) { while ($node->childNodes->length) $node->removeChild($node->childNodes->item(0)); libxml_use_internal_errors(true); $nodeXml = new DOMDocument('1.0', 'UTF-8'); if(!$nodeXml->loadHTML('<?xml encoding="UTF-8"><html><body><div xml:id="hyphaImport">'.preg_replace('/\r/i', '',...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetHtml()\n {\n $document = $this->createDomDocument();\n $element = $document->createElementNS(Atom::NS, 'content');\n $document->documentElement->appendChild($element);\n $content = new Content($this->createFakeNode(), $element);\n $content->setContent('<...
[ "0.6731877", "0.655108", "0.62616074", "0.6237627", "0.5918751", "0.5906924", "0.5657758", "0.5592191", "0.55770046", "0.55665153", "0.5505404", "0.546114", "0.54439807", "0.54349995", "0.5431439", "0.5400031", "0.53781843", "0.5377683", "0.53760046", "0.53624934", "0.5359384...
0.67978185
0
/ Function: data returns content of files stored as gzipped base64 encoded strings. This function is replaced by the build command. See Also:
function data($name) { switch ($name) { //START_OF_DATA case 'index': return ''; case 'system/languages/languages.json': return file_get_contents('system/languages/languages.json'); //END_OF_DATA } if ($zip) return gzdecode(base64_decode($zip)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBinaryContent();", "public function getZippedfile() {\r\n\r\n $data = implode(\"\", $this -> compressedData); \r\n $controlDirectory = implode(\"\", $this -> centralDirectory); \r\n\r\n return \r\n $data. \r\n $controlDirectory. \r\n ...
[ "0.61729825", "0.61260855", "0.6054435", "0.60441285", "0.59015214", "0.58542836", "0.57993424", "0.57759756", "0.57316166", "0.57066953", "0.5671884", "0.5590887", "0.5590368", "0.55902416", "0.55559456", "0.55046976", "0.5487916", "0.5468057", "0.5405073", "0.5404692", "0.5...
0.59598356
4
metodo que sirve para obtener todos los datos de la tabla
public function getAllArr($id) { if(! intval( $id )){ return false; } $id=$this->db->real_escape_string($id); $sql = "SELECT * FROM servicio_paquete where id_serviciopaquete=$id ;"; $res = $this->db->query($sql); $set = array(); if(!$res){ die("Error getting result getAllArr".$sql); } else{ while...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAll(){\n try{\n $sql = \"SELECT * FROM {$this->tabela}\";\n $stm = $this->pdo->prepare($sql);\n $stm->execute();\n $dados = $stm->fetchAll(PDO::FETCH_OBJ);\n return $dados;\n }catch(PDOException $erro){\n echo \"<scr...
[ "0.7498263", "0.736229", "0.72121096", "0.72063595", "0.7203771", "0.7174556", "0.71523345", "0.71467435", "0.71160847", "0.710955", "0.70507437", "0.7039127", "0.70376515", "0.7030211", "0.7030211", "0.7030211", "0.7024119", "0.69789684", "0.69789684", "0.697543", "0.6960562...
0.0
-1
metodo que sirve para hacer obtener datos en el editar
public function getTable($id) { if(! intval( $id )){ return false; } $id=$this->db->real_escape_string($id); $sql= "SELECT * FROM servicio_paquete WHERE id=$id;"; $res=$this->db->query($sql); if(!$res) {die("Error getting result servicio paquete");} $row = $res->fetch_assoc(); $res->close(); re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function editar ()\n {\n try {\n // Define a ação de editar\n $acao = Orcamento_Business_Dados::ACTION_EDITAR;\n \n if ( $this->_requisicao->isGet () ) {\n // Retorna parâmetros informados via get, após validações\n $paramet...
[ "0.73012656", "0.7291292", "0.724872", "0.72244614", "0.7185394", "0.71826017", "0.71561784", "0.7149788", "0.7129568", "0.71202576", "0.71077204", "0.7021593", "0.7003085", "0.69998276", "0.69971097", "0.6978638", "0.6978638", "0.6970921", "0.6959126", "0.69529355", "0.69447...
0.0
-1
metodo que sirve para hacer obtener datos en el editar
public function getTableServicios($id) { if(! intval( $id )){ return false; } $id=$this->db->real_escape_string($id); $sql= " SELECT ss.id,ss.codigo,ss.nombre,s.nombre paquete, s.descripcion FROM servicio_paquete sp INNER JOIN servicio s on s.id=sp.id_serviciopaquete INNER JOIN servicio ss on ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function editar ()\n {\n try {\n // Define a ação de editar\n $acao = Orcamento_Business_Dados::ACTION_EDITAR;\n \n if ( $this->_requisicao->isGet () ) {\n // Retorna parâmetros informados via get, após validações\n $paramet...
[ "0.73012656", "0.7291292", "0.724872", "0.72244614", "0.7185394", "0.71826017", "0.71561784", "0.7149788", "0.7129568", "0.71202576", "0.71077204", "0.7021593", "0.7003085", "0.69998276", "0.69971097", "0.6978638", "0.6978638", "0.6970921", "0.6959126", "0.69529355", "0.69447...
0.0
-1
metodo que sirve para agregar nuevo
public function addAll($idservicio, $idpaquete) { if(! intval( $idservicio ) || ! intval( $idpaquete )){ return false; } $idservicio=$this->db->real_escape_string($idservicio); $iduser=$this->db->real_escape_string($idpaquete); $sql= "INSERT INTO servicio_paquete (id_servicio,id_serviciopaquete) VALUES("....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createNew() {\n\t}", "public function create() //添加\n {\n\t\t//\n }", "public function createNew();", "public function crear()\n {\n //\n }", "public function nuevo() {\n }", "public function create(){\n\t\t//\n\t}", "public function create(){\n\t\t//\n\t}", "publi...
[ "0.7437746", "0.73258656", "0.7304588", "0.7231483", "0.7201239", "0.7046035", "0.7046035", "0.7046035", "0.7046035", "0.7018707", "0.69247115", "0.69069695", "0.68762505", "0.68747467", "0.68747467", "0.68747467", "0.68747467", "0.68747467", "0.68747467", "0.68747467", "0.68...
0.0
-1
metodo que sirve para hacer update
public function updateAll($id,$_request) { $_request["updated_date"]=date("Y-m-d H:i:s"); $data=fromArray($_request,'servicio_paquete',$this->db,"update"); $sql= "UPDATE servicio_paquete SET $data[0] WHERE id=".$id.";"; $row=$this->db->query($sql); if(!$row){ return false; }else{ return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function update() {}", "protected function _update()\n\t{\n\t}", "protected function _update()\n {\n \n }", "protected function _update()\n {\n \n }", "abstract protected function update ();", "public function update() {\r\n\r\n\t}", "public function update()\n\t{\n\...
[ "0.79925096", "0.79026407", "0.781918", "0.781918", "0.75774413", "0.75716734", "0.7546047", "0.7475939", "0.74518955", "0.7446066", "0.7446066", "0.7446066", "0.7446066", "0.74398196", "0.7434002", "0.7434002", "0.73949647", "0.73949647", "0.73297805", "0.7302855", "0.730120...
0.0
-1
metodo que sirve para hacer delete
public function deleteAll($id) { if(! intval( $id )){ return false; } $id = $this->db->real_escape_string($id); $sql = "DELETE FROM servicio_paquete WHERE id_serviciopaquete=".$id.";"; $row = $this->db->query($sql); if(!$row){ return false; }else{ return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function delete() {\n\t}", "public function deleting()\n {\n # code...\n }", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete()...
[ "0.7961053", "0.79557383", "0.79484385", "0.79484385", "0.79484385", "0.79484385", "0.79484385", "0.79484385", "0.79484385", "0.79484385", "0.79484385", "0.79484385", "0.79484385", "0.79484385", "0.79484385", "0.79484385", "0.79484385", "0.7943319", "0.7913217", "0.7837486", ...
0.0
-1
For internal only. DO NOT USE IT.
public function deserialize($param) { if ($param === null) { return; } if (array_key_exists("LoadBalancerId",$param) and $param["LoadBalancerId"] !== null) { $this->LoadBalancerId = $param["LoadBalancerId"]; } if (array_key_exists("SlaType",$param) an...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function __init__() { }", "private function __() {\n }", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}...
[ "0.6264963", "0.61523867", "0.59889513", "0.59889513", "0.59889513", "0.59889513", "0.59884864", "0.59884864", "0.59884864", "0.59884864", "0.59884864", "0.59884864", "0.598747", "0.598747", "0.5948157", "0.59385115", "0.5915636", "0.5915636", "0.5869959", "0.58661526", "0.58...
0.0
-1
Get application from name
public function getApp($appName) { /** @var array $apps */ $apps = $this->options->get('apps'); if (!is_array($apps)) { ConfigurationException::message('Please provide configuration for your podio application'); } $matchedApp = null; foreach ($apps as $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function GetAppByName($name)\r\n {\r\n return AppHelper::GetByName($this->Core, $name);\r\n }", "static public function GetApp($name = null) {\r\n if (is_null($name)) {\r\n if (count(self::$_apps) == 1)\r\n return array_pop(self::$_apps);\r\n ...
[ "0.8029991", "0.77614003", "0.7251576", "0.7122614", "0.70555353", "0.68985105", "0.6877933", "0.6877933", "0.6877933", "0.6810281", "0.68039024", "0.67635626", "0.6708645", "0.66962713", "0.6681037", "0.66683155", "0.66405374", "0.66039616", "0.6584788", "0.6570657", "0.6551...
0.6453972
29