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
Get the output for the recommandation categories list for a category
function getCategoryRecommandationListOutput($outputMode = 'pictos', $selectedRecommandationCategory = '', $arguments = array()) { $categoryListOutput = ''; $categoryList = evaRecommandationCategory::getCategoryRecommandationList(); $specific_container = !empty($arguments) && !empty($arguments['form_container']) ? $arguments['form_container'] . '_' : ''; if ($outputMode == 'pictos') { $i = 0; foreach($categoryList as $category) { $recommandationMainPicture = evaPhoto::checkIfPictureIsFile($category->photo, TABLE_CATEGORIE_PRECONISATION); if (!$recommandationMainPicture) { $recommandationMainPicture = ''; } else { $checked = $selectedClass = ''; if (($selectedRecommandationCategory != '') && ($selectedRecommandationCategory == $category->id)) { $checked = ' checked="checked" '; $selectedClass = 'recommandationCategorySelected'; } $recommandationMainPicture = ' <div class="alignleft recommandationCategoryBloc ' . $selectedClass . '" > <label for="' . $specific_container . 'recommandationCategory' . $category->id . '" > <img class="recommandationDefaultPictosList" src="' . $recommandationMainPicture . '" alt="' . ucfirst(strtolower($category->nom)) . '" title="' . ELEMENT_IDENTIFIER_P . $category->id . '&nbsp;-&nbsp;' . ucfirst(strtolower($category->nom)) . '" /> </label> <input class="hide ' . $specific_container . 'recommandationCategory" type="radio" ' . $checked . ' id="' . $specific_container . 'recommandationCategory' . $category->id . '" name="recommandationCategory" value="' . $category->id . '" /> </div>'; } $categoryListOutput .= $recommandationMainPicture; $i++; } } else if ($outputMode == 'selectablelist') { $categoryListOutput = EvaDisplayInput::afficherComboBox($categoryList, 'recommandationCategory', __('Cat&eacute;gorie', 'evarisk'), 'recommandationCategory', "", ""); } return $categoryListOutput; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function retrieve_category_description() {\n\t\treturn $this->retrieve_term_description();\n\t}", "function getCategoryRecommandationList(){\r\n\t\tglobal $wpdb;\r\n\r\n\t\t$query = $wpdb->prepare(\r\n\t\t\t\"SELECT RECOMMANDATION_CAT.*, PIC.photo\r\n\t\t\tFROM \" . TABLE_CATEGORIE_PRECONISATION . \" AS ...
[ "0.66375893", "0.6628101", "0.6549832", "0.6475605", "0.6454724", "0.6424433", "0.64082116", "0.6385193", "0.6338418", "0.6304909", "0.6304909", "0.62741977", "0.62741977", "0.6237723", "0.6224425", "0.62137187", "0.6212677", "0.6130184", "0.61257416", "0.6124295", "0.6121560...
0.6635155
1
Get the form to manage recommandation categories
function recommandation_category_form($argument){ $id_categorie_preconisation = $argument['idElement']; $nom_categorie = $impressionRecommandation = $tailleimpressionRecommandation = $impressionRecommandationCategorie = $tailleimpressionRecommandationCategorie = ''; if(($id_categorie_preconisation != '') && ($id_categorie_preconisation > 0)){ $recommandationCategoryInfos = evaRecommandationCategory::getCategoryRecommandation($id_categorie_preconisation); $nom_categorie = html_entity_decode($recommandationCategoryInfos->nom, ENT_QUOTES, 'UTF-8'); $impressionRecommandation = html_entity_decode($recommandationCategoryInfos->impressionRecommandation, ENT_QUOTES, 'UTF-8'); $tailleimpressionRecommandation = html_entity_decode($recommandationCategoryInfos->tailleimpressionRecommandation, ENT_QUOTES, 'UTF-8'); $impressionRecommandationCategorie = html_entity_decode($recommandationCategoryInfos->impressionRecommandationCategorie, ENT_QUOTES, 'UTF-8'); $tailleimpressionRecommandationCategorie = html_entity_decode($recommandationCategoryInfos->tailleimpressionRecommandationCategorie, ENT_QUOTES, 'UTF-8'); } ?> <p class="recommandationCategoryFormErrorMessage digirisk_hide" >&nbsp;</p> <form action="<?php echo EVA_INC_PLUGIN_URL; ?>ajax.php" id="recommandation_category_form" method="post" > <input type="hidden" name="post" id="post" value="true" /> <input type="hidden" name="table" id="table" value="<?php _e(TABLE_CATEGORIE_PRECONISATION); ?>" /> <input type="hidden" name="act" id="act" value="saveRecommandationCategorie" /> <input type="hidden" name="id_categorie_preconisation" id="id_categorie_preconisation" value="<?php _e($id_categorie_preconisation); ?>" /> <input type="hidden" name="impressionRecommandationCategorieValue" id="impressionRecommandationCategorieValue" value="<?php _e($impressionRecommandationCategorie); ?>" /> <input type="hidden" name="impressionRecommandationValue" id="impressionRecommandationValue" value="<?php _e($impressionRecommandation); ?>" /> <!-- Recommandation category name --> <label for="nom_categorie" ><?php _e('Nom', 'evarisk'); ?></label> <input type="text" name="nom_categorie" id="nom_categorie" class="recommandationInput" value="<?php _e($nom_categorie); ?>" /> <!-- Option recommandation category picture in document --> <div class="recommandationCategoryOption" ><?php _e('Param&egrave;tres pour l\'impression de la famille de pr&eacute;conisations', 'evarisk'); ?></div> <div class="recommandationCategoryOptionChoice" ><input type="radio" class="impressionRecommandationCategorie" name="impressionRecommandationCategorie" id="impressionRecommandationCategorie_textandpicture" value="textandpicture" <?php (($impressionRecommandationCategorie == '') || ($impressionRecommandationCategorie == 'textandpicture')) ? _e('checked = "checked"') : ''; ?> /><label for="impressionRecommandationCategorie_textandpicture" class="recommandationCategoryOptionLabel" ><?php _e('Nom + image', 'evarisk'); ?></label></div> <div class="recommandationCategoryOptionChoice" ><input type="radio" class="impressionRecommandationCategorie" name="impressionRecommandationCategorie" id="impressionRecommandationCategorie_textonly" value="textonly" <?php (($impressionRecommandationCategorie != '') && ($impressionRecommandationCategorie == 'textonly')) ? _e('checked = "checked"') : ''; ?> /><label for="impressionRecommandationCategorie_textonly" class="recommandationCategoryOptionLabel" ><?php _e('Nom uniquement', 'evarisk'); ?></label></div> <div class="recommandationCategoryOptionChoice" ><input type="radio" class="impressionRecommandationCategorie" name="impressionRecommandationCategorie" id="impressionRecommandationCategorie_pictureonly" value="pictureonly" <?php (($impressionRecommandationCategorie != '') && ($impressionRecommandationCategorie == 'pictureonly')) ? _e('checked = "checked"') : ''; ?> /><label for="impressionRecommandationCategorie_pictureonly" class="recommandationCategoryOptionLabel" ><?php _e('Image uniquement', 'evarisk'); ?></label></div> <div class="recommandationCategoryOptionPicSizeContainer" id="pictureRecommandationCategoryContainer" ><label for="tailleimpressionRecommandationCategorie" class="recommandationCategoryOptionLabel" ><?php _e('Taille de l\'image (en cm)', 'evarisk'); ?></label><input type="text" name="tailleimpressionRecommandationCategorie" id="tailleimpressionRecommandationCategorie" value="<?php _e($tailleimpressionRecommandationCategorie); ?>" /></div> <div class="clear" >&nbsp;</div> <!-- Option recommandation picture in document --> <div class="recommandationCategoryOption" ><?php _e('Param&egrave;tres pour l\'impression des pr&eacute;conisations de cette famille', 'evarisk'); ?></div> <div class="recommandationCategoryOptionChoice" ><input type="radio" class="impressionRecommandation" name="impressionRecommandation" id="impressionRecommandation_textandpicture" value="textandpicture" <?php (($impressionRecommandation == '') || ($impressionRecommandation == 'textandpicture')) ? _e('checked = "checked"') : ''; ?> /><label for="impressionRecommandation_textandpicture" class="recommandationCategoryOptionLabel" ><?php _e('Nom + image', 'evarisk'); ?></label></div> <div class="recommandationCategoryOptionChoice" ><input type="radio" class="impressionRecommandation" name="impressionRecommandation" id="impressionRecommandation_textonly" value="textonly" <?php (($impressionRecommandation != '') && ($impressionRecommandation == 'textonly')) ? _e('checked = "checked"') : ''; ?> /><label for="impressionRecommandation_textonly" class="recommandationCategoryOptionLabel" ><?php _e('Nom uniquement', 'evarisk'); ?></label></div> <div class="recommandationCategoryOptionChoice" ><input type="radio" class="impressionRecommandation" name="impressionRecommandation" id="impressionRecommandation_pictureonly" value="pictureonly" <?php (($impressionRecommandation != '') && ($impressionRecommandation == 'pictureonly')) ? _e('checked = "checked"') : ''; ?> /><label for="impressionRecommandation_pictureonly" class="recommandationCategoryOptionLabel" ><?php _e('Image uniquement', 'evarisk'); ?></label></div> <div class="recommandationCategoryOptionPicSizeContainer" id="pictureRecommandationContainer" ><label for="tailleimpressionRecommandation" class="recommandationCategoryOptionLabel" ><?php _e('Taille de l\'image (en cm)', 'evarisk'); ?></label><input type="text" name="tailleimpressionRecommandation" id="tailleimpressionRecommandation" value="<?php _e($tailleimpressionRecommandation); ?>" /></div> <input type="submit" name="save_recommancation_category" id="save_recommancation_category" class="clear alignright button-primary" value="<?php _e('Enregistrer', 'evarisk'); ?>" /> </form> <script type="text/javascript" > digirisk(document).ready(function(){ jQuery(".impressionRecommandation").click(function(){ jQuery("#impressionRecommandationValue").val(jQuery(this).val()); if(jQuery(this).val() == 'textonly'){ jQuery("#pictureRecommandationContainer").hide(); } else{ jQuery("#pictureRecommandationContainer").show(); } }); jQuery(".impressionRecommandationCategorie").click(function(){ jQuery("#impressionRecommandationCategorieValue").val(jQuery(this).val()); if(jQuery(this).val() == 'textonly'){ jQuery("#pictureRecommandationCategoryContainer").hide(); } else{ jQuery("#pictureRecommandationCategoryContainer").show(); } }); jQuery("#recommandation_category_form").ajaxForm({ target: "#ajax-response", beforeSubmit: validate_recommandation_category_form }); }); function validate_recommandation_category_form(formData, jqForm, options){ evarisk("#nom_categorie").removeClass("ui-state-error"); for(var i=0; i < formData.length; i++){ if((formData[i].name == "nom_categorie") && !formData[i].value){ checkLength( evarisk("#nom_categorie"), "", 1, 128, "<?php _e('Le champs nom de la famille de pr&eacute;conisation doit contenir entre !#!minlength!#! et !#!maxlength!#! caract&egrave;res', 'evarisk'); ?>" , evarisk(".recommandationCategoryFormErrorMessage")) return false; } } return true; } </script> <?php }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function CategoryForm() {\r\n\r\n\t\t$member = Member::currentUser();\r\n\r\n\t\t// Need to sort out how going to handle multiple instances of category\r\n\t\t// front end grid field : https://github.com/webbuilders-group/silverstripe-frontendgridfield\r\n\t\t// grid field extension : https://github.com/silverstri...
[ "0.7271398", "0.69954646", "0.69121104", "0.6819063", "0.6757278", "0.6731332", "0.67038345", "0.66973805", "0.66855335", "0.66353893", "0.65785646", "0.65640277", "0.6458903", "0.6446483", "0.64325154", "0.6408677", "0.6406369", "0.6388703", "0.63806856", "0.63789576", "0.62...
0.63338053
20
Display a listing of the resource.
public function index() { // }
{ "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.7447426", "0.73628515", "0.73007894", "0.7249563", "0.7164474", "0.7148467", "0.71320325", "0.7104678", "0.7103152", "0.7100512", "0.7048493", "0.6994995", "0.69899315", "0.6935843", "0.6899995", "0.68999326", "0.6892163", "0.6887924", "0.6867505", "0.6851258", "0.6831236"...
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(Request $request) { $request->validate([ 'comment'=>'required', ]); $eventStarter = EventStarter::find($request->event_starter_id); //dd($request->user_id); $comment = new Comment([ 'user_id' => $request->user_id, 'event_starter_id'=> $eventStarter->id, 'parent_id'=> $request->parent_id, 'comment'=> $request->comment, ]); $comment->save(); if(Auth::guest()){ return Redirect::guest("login")->withSuccess('You have to login first'); } return back(); }
{ "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.7285922", "0.714503", "0.71324795", "0.6639801", "0.6620405", "0.6568167", "0.65257645", "0.650948", "0.64484984", "0.6375281", "0.6373189", "0.63650924", "0.63650924", "0.63650924", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731",...
0.0
-1
Display the specified resource.
public function show(Comment $comment) { // }
{ "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(Comment $comment) { // }
{ "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.7854417", "0.7692986", "0.72741747", "0.72416574", "0.7173436", "0.706246", "0.70551765", "0.698488", "0.6948513", "0.694731", "0.69425464", "0.6929177", "0.6902573", "0.6899662", "0.6899662", "0.6878983", "0.6865711", "0.6861037", "0.6858774", "0.6847512", "0.6836162", ...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, Comment $comment) { // }
{ "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(Comment $comment) { // }
{ "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
This only exists for backwardscompatibiliy with DBAL 2.4
protected function throwInvalidArgumentException($message) { if (class_exists('Doctrine\DBAL\Exception\InvalidArgumentException')) { throw new InvalidArgumentException($message); } else { throw new DBALException($message); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function nativeDbType(array $type);", "protected function isDbalEnabled() {}", "protected function isDbalEnabled() {}", "protected function isDbalEnabled() {}", "protected function isDbalEnabled() {}", "abstract protected function _getSQL(): String;", "public function ormObject();", ...
[ "0.5989523", "0.59084326", "0.59073323", "0.59073323", "0.59073323", "0.56714606", "0.5535435", "0.5420769", "0.53785443", "0.53582126", "0.53561544", "0.53288215", "0.5324187", "0.5309221", "0.53019524", "0.527904", "0.52708215", "0.5226666", "0.5219393", "0.52001756", "0.51...
0.0
-1
Create a new controller instance.
public function __construct() { $this->middleware('auth'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this-...
[ "0.82679385", "0.81739837", "0.7811711", "0.7706132", "0.76824135", "0.76599807", "0.7486886", "0.7407581", "0.72973657", "0.72537446", "0.71976084", "0.7175448", "0.70148426", "0.6989921", "0.698332", "0.69719964", "0.6963479", "0.69347966", "0.6898294", "0.68923163", "0.687...
0.0
-1
Delete the given page.
public function __invoke(Page $page): void { $this->authorize('delete', $page); $page->delete(); abort(Response::HTTP_NO_CONTENT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function destroy(Page $page)\n {\n $page->delete();\n\n }", "public function deletePage() {\n\t\t\n\t\t$output = array();\n\t\t$url = Request::post('url');\n\t\t$title = Request::post('title');\n\n\t\t// Validate $_POST.\n\t\tif ($url && ($Page = $this->Automad->getPage($url)) && $url != '/' ...
[ "0.772782", "0.77253294", "0.76866454", "0.76588756", "0.7657103", "0.7644251", "0.7644251", "0.76235956", "0.75868237", "0.7536604", "0.7522216", "0.75117576", "0.7419789", "0.7414787", "0.7388147", "0.7360826", "0.73555714", "0.72706264", "0.7270079", "0.7256255", "0.724006...
0.76671845
3
Create a new job instance.
public function __construct() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createJob( $creationParameters ){ return $this->APICallSub( '/jobs', array( 'create' => $creationParameters ), \"Could not create new job with query \" . $creationParameters['query'] . \" and operation \" . $creationParameters['operation'] ); }", "abstract public function makeJob();", "abstract...
[ "0.6920272", "0.6905722", "0.6905722", "0.6869542", "0.6808916", "0.65271425", "0.65184414", "0.64918077", "0.6489135", "0.6468623", "0.6425879", "0.64058304", "0.63938236", "0.63899404", "0.63753885", "0.6304669", "0.6256802", "0.6241474", "0.620155", "0.61789167", "0.607414...
0.0
-1
Add nonce for security and authentication.
function fill_metabox( $post ) { wp_nonce_field( 'autore_id_nonce_action', 'autore_id_nonce' ); // Retrieve an existing value from the database. $autore_id = get_post_meta( $post->ID, 'autore_id', true ); //print_r($autore_id); global $post; // required $args=array( 'post_type'=>'hotel', 'post_per_page'=>-1, 'orderby'=> ID, 'order' => ASC ); $custom_posts = get_posts($args); foreach($custom_posts as $p) : $checked = ""; if(is_array( $autore_id )){ if( in_array( $p->ID, $autore_id ) ) $checked = 'checked="checked"'; } echo '<p><label><input type="checkbox" name="autore_id[]" class="check_autori_field" value="' . $p->ID . '" ' . $checked . '> ' . $p->post_title . '</label><p>'; endforeach; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setNonce($nonce) {}", "public function setNonce($nonce);", "public function generate_nonce() {\n\t\tWP_CLI::line( AMP_Validation_Manager::get_amp_validate_nonce() );\n\t}", "public function getNonce();", "public static function generateNonce()\n {\n self::$scriptNonce = hash('sha2...
[ "0.7351805", "0.72904134", "0.70569694", "0.68044084", "0.67492175", "0.66496146", "0.65936077", "0.65637004", "0.6545681", "0.6545059", "0.6541406", "0.64330024", "0.6392068", "0.62986654", "0.6278513", "0.62599474", "0.6245064", "0.6223602", "0.6203271", "0.61891425", "0.61...
0.0
-1
Utility function saves game stat
function gameStatUtil(){ $db = new DBIO(); if($_SERVER["REQUEST_METHOD"] == 'POST'){ if(isset($_POST["saveGame"])){ $db->setScore($this->title, $_SESSION['user'], $_POST["cookieScore"],$_POST["RPSWin"],$_POST["RPSLoss"]); } header("Location:" . $_SERVER["PHP_SELF"]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function saveStats()\r\n {\r\n }", "private function save() {\n $this->state->get()['score'] += $this->dice->sum();\n $this->state->get()['round'] += 1;\n\n if ($this->state->get()['score'] >= 100) {\n $this->message = \"Grattis! Du vann!\";\n $this->cleardice = TRUE;\n ...
[ "0.7586503", "0.6469614", "0.6434765", "0.63647336", "0.6363002", "0.6297978", "0.6279136", "0.6117659", "0.60549855", "0.6043253", "0.6042876", "0.59474075", "0.5902", "0.5888748", "0.5848548", "0.5847063", "0.5835252", "0.583419", "0.5731178", "0.57301545", "0.563913", "0...
0.63113064
5
Run the database seeds.
public function run() { $this->truncateTables([ 'facturas', 'clientes', 'especialidades', 'users', ]); $this->call(UsuariosTableSeeder::class); //$this->call(IngredienteSeeder::class); $this->call(EspecialidadesSeeder::class); $this->call(ClienteSeeder::class); $this->call(FacturasSeeder::class); $this->call(OrdenesSeeder::class); $this->call(ProductoSeeder::class); }
{ "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
Display a listing of the resource.
public function index(Request $request) { if ($request->ajax()) { $offset = ($request->page - 1) * $request->limit; $journeys = MeetingJourney::where([])->orderBy($request->get('field', 'id'), $request->get('order', 'desc')) ->with('meeting') ->offset($offset) ->limit($request->limit) ->get(); $count = MeetingJourney::where([])->count(); return ['code' => 0, 'data' => $journeys, 'msg' => '', 'count' => $count]; } return view('meeting_journeys.index'); }
{ "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() { $meetings = Meeting::where([])->get(); return view('meeting_journeys.create', compact('meetings')); }
{ "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.7594873", "0.7594873", "0.75862724", "0.7577369", "0.75727355", "0.7500874", "0.74348205", "0.74339336", "0.7389178", "0.73531044", "0.73364365", "0.73124814", "0.7296061", "0.72818893", "0.7274119", "0.72423935", "0.72292763", "0.72266877", "0.7187332", "0.717915", "0.717...
0.0
-1
Store a newly created resource in storage.
public function store(MeetingJourneyRequest $request) { if (!Meeting::where(['id' => $request->meeting_id])->count()) { return redirect()->back()->withInput()->withErrors('请选择行程所属的会议!'); } MeetingJourney::create($request->all()); return redirect()->route('meeting_journeys.index')->with('success', '会议行程添加成功!'); }
{ "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.7286258", "0.71454436", "0.7132821", "0.6640289", "0.6621105", "0.6566493", "0.65255576", "0.65087926", "0.6448317", "0.63752604", "0.63736314", "0.6365631", "0.6365631", "0.6365631", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0....
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(MeetingJourney $journey) { return view('meeting_journeys.edit', compact('journey')); }
{ "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.78557473", "0.76946205", "0.72731614", "0.7241571", "0.71700776", "0.70650244", "0.7052897", "0.698311", "0.69465625", "0.6944826", "0.69399333", "0.69286525", "0.69031185", "0.68969506", "0.68969506", "0.6878258", "0.6862812", "0.6859171", "0.68560475", "0.68436426", "0.6...
0.0
-1
Update the specified resource in storage.
public function update(MeetingJourneyRequest $request, MeetingJourney $journey) { if (!Meeting::where(['meeting_id' => $request->meeting_id])->count()) { return redirect()->back()->withInput()->withErrors('请选择行程所属的会议!'); } MeetingJourney::update($request->all()); return redirect()->route('meeting_journeys.index')->with('success', '会议行程修改成功!'); }
{ "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.7424884", "0.7062319", "0.70572054", "0.6897199", "0.658233", "0.6450576", "0.6347209", "0.6211253", "0.6146092", "0.6121878", "0.6114851", "0.61005586", "0.608833", "0.60537165", "0.60196865", "0.60068345", "0.5972924", "0.594671", "0.5940615", "0.5938648", "0.58927333", ...
0.0
-1
Remove the specified resource from storage.
public function destroy(MeetingJourney $journey) { $journey->delete(); return ['code' => 0, 'msg' => '删除成功!']; }
{ "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
Create a new AuthController instance.
public function __construct() { //$this->middleware('auth:api', ['except' => ['login','register','recovery']]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function factory($config = array())\n\t{\n\t\treturn new Auth($config);\n\t}", "public function newInstance()\n {\n return new Auth($this->segment);\n }", "private function makeInitiatedController()\n\t{\n\t\t$controller = new TestEntityCRUDController();\n\n\t\t$controller->setLogger...
[ "0.7055059", "0.6948648", "0.66441727", "0.6499543", "0.6262191", "0.62306565", "0.617785", "0.61735874", "0.6060623", "0.6017453", "0.60044205", "0.59742635", "0.596828", "0.588856", "0.58031136", "0.58029795", "0.5798353", "0.57597774", "0.5751612", "0.57512736", "0.5744536...
0.0
-1
Get a JWT via given credentials.
public function login(UserLoginRequest $request) { if (! $token = auth()->attempt( $request->validated() )){ return response()->json(['error' => 'Unauthorized'], 401); } return $this->respondWithToken($token); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getJWT();", "public function getJWT()\n {\n // Collect all the data\n $secret = static::getSecretKey();\n $currentTime = time();\n $expire = $currentTime + 86400; // 1 day\n $request = Yii::$app->request;\n $hostInfo = '';\n // There is also a \...
[ "0.68546844", "0.619579", "0.6153601", "0.6050922", "0.6005828", "0.6005828", "0.6005828", "0.5997815", "0.59959185", "0.59626955", "0.5942627", "0.5922473", "0.5909551", "0.5879693", "0.58108866", "0.5775995", "0.5770352", "0.5757317", "0.5690253", "0.56530917", "0.56380564"...
0.0
-1
Get the authenticated User.
public function me() { return response()->json(auth()->user()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getAuthenticatedUser()\n {\n return auth()->user();\n }", "public function getAuthenticatedUser()\n {\n // get the web-user\n $user = Auth::guard()->user();\n\n // get the api-user\n if(!isset($user) && $user == null) {\n $user = Auth::guard('api')-...
[ "0.8572953", "0.8565583", "0.84420604", "0.84420604", "0.8354281", "0.8297551", "0.81614834", "0.8072469", "0.8036144", "0.800262", "0.7990153", "0.7954066", "0.7948575", "0.7948575", "0.7921939", "0.7915742", "0.7897955", "0.78873825", "0.7861962", "0.78340834", "0.78295624"...
0.0
-1
Log the user out (Invalidate the token).
public function logout() { auth()->logout(); return response()->json(['message' => 'Successfully logged out']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function logout() {\n\t$new_token = sha1(TOKEN_SALT.$this->user->email.Utils::generate_random_string());\n\t\n\t# Create the data array we'll use with the update method\n\t# In this case, we're only updating one field, so our array only has one entry\n\t$data = Array(\"token\" => $new_token);\n\t\n\t# Do th...
[ "0.8452815", "0.8450766", "0.8448169", "0.8411725", "0.83866173", "0.83664024", "0.8346802", "0.82519895", "0.81790286", "0.8113731", "0.8050321", "0.7976354", "0.7968111", "0.79555553", "0.7938776", "0.79256284", "0.7922902", "0.78912675", "0.7861488", "0.7798542", "0.779237...
0.0
-1
Get the token array structure.
protected function respondWithToken($token) { return response()->json([ 'access_token' => $token, 'token_type' => 'bearer', 'expires_in' => auth()->factory()->getTTL() * 60 ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getToken()\n {\n return array($this->_token, $this->_token_secret);\n }", "public function getTokens(): array\n {\n return $this->tokens;\n }", "function &get_xoops_token()\n{\n\tif ( class_exists('XoopsMultiTokenHandler') )\n\t{\n\t\t$token =& XoopsMultiTokenHandler::...
[ "0.71393645", "0.71245617", "0.71064186", "0.7023479", "0.69822", "0.65953726", "0.6563174", "0.654563", "0.64619535", "0.64316744", "0.63753426", "0.6335638", "0.6307287", "0.6257231", "0.6188339", "0.6175191", "0.6066591", "0.60613745", "0.604052", "0.6028691", "0.60033476"...
0.0
-1
This command fetches the new versions of the packages.json from the known repositories This command fetches the new versions of the packages.json from the known repositories
public function updateCommand() { $this->browser->setRequestEngine($this->browserRequestEngine); $flowPackages = array(); foreach ($this->repositories as $baseUrl => $repository) { $domain = parse_url($repository, PHP_URL_HOST); #$baseUrl = dirname($repository) . '/'; $basePath = FLOW_PATH_DATA . 'Packages/' . $domain; if (!is_dir(FLOW_PATH_DATA . 'Packages/')) { mkdir(FLOW_PATH_DATA . 'Packages/'); } if (!is_dir(FLOW_PATH_DATA . 'Packages/' . $domain)) { mkdir(FLOW_PATH_DATA . 'Packages/' . $domain); } $response = $this->browser->request($repository); $packagesFile = $basePath . '/packages.json'; file_put_contents($packagesFile, $response->getContent()); $packageList = json_decode($response->getContent()); if (isset($packageList->includes)) { $includes = get_object_vars($packageList->includes); if (!empty($includes)) { foreach ($includes as $file => $meta) { $packagesFile = $basePath . '/' . $file; if (file_exists($packagesFile) && sha1_file($packagesFile) == $meta->sha1) { continue; } if (!is_dir(dirname(($packagesFile)))) { \TYPO3\Flow\Utility\Files::createDirectoryRecursively(dirname($packagesFile)); } try { $response = $this->browser->request($baseUrl . $file); file_put_contents($packagesFile, $response->getContent()); } catch(\Exception $e) { } } } } if (isset($packageList->providers)) { $providers = get_object_vars($packageList->providers); if (!empty($providers)) { foreach ($providers as $file => $meta) { $packagesFile = $basePath . '/' . $file; if (file_exists($packagesFile) && sha1_file($packagesFile) == $meta->sha1) { continue; } if (!is_dir(dirname(($packagesFile)))) { \TYPO3\Flow\Utility\Files::createDirectoryRecursively(dirname($packagesFile)); } try { $response = $this->browser->request($baseUrl . $file); file_put_contents($packagesFile, $response->getContent()); } catch(\Exception $e) { } } } } $files = \TYPO3\Flow\Utility\Files::readDirectoryRecursively($basePath, '.json'); foreach ($files as $file) { $packagesObject = json_decode(file_get_contents($file)); $flowPackages = array_merge($flowPackages, $this->filterFlowPackages($packagesObject->packages)); } } $flowPackagesFile = FLOW_PATH_DATA . 'Packages/packages-typo3-flow.json'; file_put_contents($flowPackagesFile, json_encode($flowPackages)); $this->checkForNewPackages($flowPackages); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function find_updatable_packages() {\n\tif ($this->updatable === null) {\n\t\t/**\n\t\t * @todo don't call installed_packages here\n\t\t * instead, make calls to installed_version find out if there are installed\n\t\t * and let them cache the composer.lock themselves\n\t\t */\n\t\t$installed_pac...
[ "0.63468957", "0.6128971", "0.5906176", "0.5762853", "0.5762853", "0.5762853", "0.575414", "0.5726493", "0.56422204", "0.55780244", "0.5555245", "0.5490769", "0.54845524", "0.54644066", "0.5426084", "0.5392912", "0.53787833", "0.5378026", "0.5365938", "0.53623855", "0.5354967...
0.6538907
0
/ To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor.
function auth() { loadTemplate("login_template", "welcomePage"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function __() {\n }", "public function library()\n\t{\n\t\n\t}", "public static function main(){\n\t\t\t\n\t\t}", "private function _i() {\n }", "public function main()\r\n {\r\n \r\n }", "public function main()\n\t{\n\t}", "public function __construct ()\n { // TODO ...
[ "0.61105454", "0.6072232", "0.59959894", "0.59885836", "0.5949097", "0.59370124", "0.59295547", "0.58852404", "0.57794154", "0.5777335", "0.5754763", "0.5737722", "0.573144", "0.5720117", "0.5719703", "0.571485", "0.5707871", "0.5702033", "0.5667513", "0.56666225", "0.5659823...
0.0
-1
=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=> A handler with which a specific file is searched for by conditions using callback <=<=<=<=<=<=<=<=<=<=<=<=<=<=<=<=<=<=<=<=<=<=<=<=<=<=
private function handlerFs(callable $handler): FinderInterface { $fs = $this->fs; foreach ($fs as $index => $value) { call_user_func($handler, $value, $index); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drush_drushutils_find_callback() {\n $matches = array();\n $match_type = drush_get_option('match');\n\n $args = drush_get_arguments();\n $path_to_find = $args[1];\n\n foreach (module_implements('menu') as $module) {\n $menu_callbacks = module_invoke($module, 'menu');\n if (!empty($menu_callback...
[ "0.63592476", "0.6012525", "0.5940096", "0.57891154", "0.5704988", "0.5681717", "0.5669224", "0.56426346", "0.5574544", "0.55109155", "0.54525214", "0.5448414", "0.5441939", "0.5396625", "0.53909993", "0.53756446", "0.53701353", "0.5345641", "0.5342261", "0.53383446", "0.5338...
0.503655
42
=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=> Deleting a file or directory from an array if they & do not match the conditions <=<=<=<=<=<=<=<=<=<=<=<=<=<=<=<=<=<=<=<=<=<=<=<=<=<=
private function removeFs(int $index): void { unset($this->fs[$index]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function deleteUnexistingFiles() {\n\t\t$files = array (\n\t\t\t\t// Release 2.0\n\t\t\t\t'/administrator/language/de-DE/de-DE.com_clm_turnier.sys.ini',\n\t\t\t\t'/administrator/language/en-GB/en-GB.com_clm_turnier.sys.ini',\n\t\t\t\t// Release 3.2.0\n\t\t\t\t'/administrator/components/com_clm_turnier/layo...
[ "0.66106516", "0.6483744", "0.64549696", "0.6329994", "0.63210326", "0.6314271", "0.6297784", "0.6268937", "0.62335813", "0.6220408", "0.6203115", "0.61983", "0.619324", "0.61395115", "0.6111142", "0.6102004", "0.6094711", "0.60868514", "0.6083106", "0.6061261", "0.6056968", ...
0.0
-1
Return identifiers for produced content
public function getIdentities() { return [\Ss\Collection\Model\Collection::CACHE_TAG . '_' . 'list']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdentifiers();", "public function getIdentifiers() {\n $fields = array('identifiers' => array(\n 'identifierDescriptor' => 'header',\n 'identifier',\n ));\n $result = TingOpenformatMethods::parseFields($this->_getDetails(), $fields);\n return (is_array($result)) ?...
[ "0.6873616", "0.65991735", "0.6573252", "0.63796294", "0.62793267", "0.6241312", "0.6005117", "0.5942072", "0.5913409", "0.5870353", "0.58580136", "0.57500046", "0.57181937", "0.57181937", "0.56822616", "0.5678575", "0.56774807", "0.5668337", "0.5668337", "0.5668337", "0.5668...
0.0
-1
Get Match Now Title
public function getMatchNowTitle() { return $this->getData('match_now_title'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function rep_title_callback($match) {\r\n\t\t\r\n\t\t$query = substr($match[0],3,-3);\t\t\r\n\t\t$title = '<h2>'.$query.'</h2>';\r\n\t\treturn $title;\r\n\t\t\r\n\t}", "private function titleGuess(): string {\n $collaboration = $this->containsCollaboration($this->title);\n return $collabora...
[ "0.73566365", "0.7144896", "0.670221", "0.66354424", "0.64411277", "0.64210975", "0.63641554", "0.63528347", "0.62879276", "0.627547", "0.6252517", "0.624463", "0.6240199", "0.6239946", "0.62379575", "0.62182564", "0.62112147", "0.6208389", "0.6202894", "0.6190242", "0.618897...
0.85028267
0
Get Match Now Url
public function getMatchNowUrl() { return $this->getData('match_now_url'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getCurrentUrlFromRoutes()\n {\n $input = &SGL_Registry::singleton();\n $url = $input->getCurrentUrl();\n $currUrl = $url->toString();\n $baseUrl = $url->getBaseUrl($skipProto = false, $includeFc = false);\n return str_replace($baseUrl, '', $currUrl);\n }", ...
[ "0.6147555", "0.597051", "0.59636706", "0.5956001", "0.59448093", "0.58937925", "0.5831257", "0.5823231", "0.58090425", "0.57796514", "0.577795", "0.577617", "0.5774891", "0.5774891", "0.5774891", "0.5774891", "0.5774891", "0.5774891", "0.57267094", "0.5710036", "0.57099426",...
0.8403448
0
Get Shop Now Title
public function getShopNowTitle() { return $this->getData('shop_now_title'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hestia_shop_title_callback() {\n\treturn get_theme_mod( 'hestia_shop_title' );\n}", "public function get_title () {\r\n\t\treturn $this->get_info()['title'];\r\n\t}", "protected function getTitle() {\r\n\t\treturn $this->newsItem->getTitle();\r\n\t}", "public function get_title(): string {\n\t\tretu...
[ "0.7708132", "0.753332", "0.7376903", "0.7373858", "0.7337966", "0.7273591", "0.716291", "0.7120857", "0.7113418", "0.71119654", "0.70995754", "0.70971644", "0.7095166", "0.7070589", "0.70700467", "0.7057545", "0.70480055", "0.70457923", "0.70331323", "0.70267814", "0.7011192...
0.86199474
0
Get Shop Now Url
public function getShopNowUrl() { return $this->getData('show_now_url'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getShopUri()\n {\n return sprintf(self::SHOP_URI, $this->getShopName());\n }", "function _getHellaspayUrl($method) {\r\n\r\n\t\t$url = $method->hellaspay_production == '1' ? $method->hellaspay_production_url : $method->hellaspay_test_url;\r\n\r\n\t\treturn $url;\r\n\t}", "public fu...
[ "0.7105449", "0.7083607", "0.6912421", "0.6779383", "0.67741054", "0.6689031", "0.66760945", "0.6673764", "0.65760225", "0.65040964", "0.65006465", "0.64723665", "0.64637905", "0.64625484", "0.64383256", "0.64369553", "0.6436007", "0.6433064", "0.64321524", "0.63954127", "0.6...
0.851698
0
Get source image url
public function getSrcMediaImage() { return $this->_designerHelper->getSrcMediaImage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getImageSrc()\n {\n return $this->imageSrc;\n }", "public function getImageURL() {\n\n return $this->image_url;\n }", "public function getImage() {\n return Mage::helper('landingpage/image')->getImageUrl($this->getData('image'));\n }", "public function getImag...
[ "0.79458183", "0.7918484", "0.7764495", "0.7702377", "0.7697044", "0.7694876", "0.7682878", "0.7671464", "0.7671464", "0.7661315", "0.76557606", "0.76474756", "0.76287943", "0.75579876", "0.751189", "0.7500117", "0.7485153", "0.747322", "0.7456374", "0.7433859", "0.7429461", ...
0.66500795
75
Remove nonnumeric characters from $cc_no
function clean_no ($cc_no) { return ereg_replace ('[^0-9]+', '', $cc_no); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function cleanCCNumber($cc = '') {\n $cc = preg_replace('/[^0-9]/', '', trim($cc));\n return (string)$cc;\n }", "protected function strip_non_numeric($cardno) {\n return preg_replace('/[^0-9]/', null, $cardno);\n }", "function cardNumberClean($number)\n {\n return preg_replace(\...
[ "0.8084143", "0.7543891", "0.73490924", "0.70768434", "0.6868711", "0.64037097", "0.63835174", "0.6351201", "0.6348136", "0.6306462", "0.61999434", "0.6092688", "0.6074876", "0.6041102", "0.60364217", "0.59928334", "0.596019", "0.593639", "0.5930621", "0.5922269", "0.5916077"...
0.87696636
0
Set the toolbar title
function display() { JToolBarHelper::title(JText::_('AKEEBA').':: <small>'.JText::_('AKEEBA_ACL_TITLE').'</small>','akeeba'); // Add some buttons JToolBarHelper::back('Back', 'index.php?option='.JRequest::getCmd('option')); JToolBarHelper::spacer(); // Add references to CSS and JS files AkeebaHelperIncludes::includeMedia(false); // Add live help AkeebaHelperIncludes::addHelp(); // Get the users from manager and above $model = JModel::getInstance('Acl','AkeebaModel'); $list =& $model->getUserList(); $this->assignRef('userlist', $list); parent::display(JRequest::getCmd('tpl',null)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setTitle()\n\t{\n\t\tglobal $APPLICATION;\n\n\t\tif ($this->arParams[\"SET_TITLE\"] == 'Y')\n\t\t\t$APPLICATION->SetTitle(Localization\\Loc::getMessage(\"SPOL_DEFAULT_TITLE\"));\n\t}", "function setTitle($title)\r\n {\r\n $this->title = $title;\r\n }", "public functi...
[ "0.73789245", "0.72489953", "0.7227653", "0.72212565", "0.7207196", "0.7207196", "0.7180871", "0.71783894", "0.7177645", "0.717257", "0.7164447", "0.7154137", "0.7154137", "0.7154137", "0.7146805", "0.7146805", "0.7146805", "0.7146805", "0.7146805", "0.7146805", "0.7146805", ...
0.0
-1
Get JSON WEB TOKEN methods.
public function getJWTIdentifier() { return $this->getKey(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionGetToken() {\n\t\t$token = UserAR::model()->getToken();\n\t\t$this->responseJSON($token, \"success\");\n\t}", "public function getToken();", "public function getToken();", "public function getToken();", "public function getToken();", "public function LoginToken_get()\n {\n $toke...
[ "0.6630293", "0.64589083", "0.64589083", "0.64589083", "0.64589083", "0.6390394", "0.6276102", "0.62331", "0.62292004", "0.6216538", "0.6216538", "0.6216538", "0.6216538", "0.6210375", "0.6193331", "0.6191475", "0.6158668", "0.613476", "0.61125845", "0.6083285", "0.6065921", ...
0.0
-1
Removes the comment user from the database when a user is deleted
function comments_remove_user($user_id) { PHPWS_Core::initModClass('comments', 'Comment_User.php'); $comment_user = new Comment_User($user_id); if (!$comment_user->user_id) { return; } return $comment_user->kill(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteUser()\n {\n $this->delete();\n }", "public function delete() {\n\t\t$query = \"DELETE FROM Users WHERE userId = :id\";\n\t\t$query_params = array(':id' => $this->userData['userId']);\n\t\texecuteSQL($query, $query_params);\n\t}", "public function delete(User $user, Comment $...
[ "0.77865046", "0.74046165", "0.7338357", "0.7260892", "0.72133267", "0.7169138", "0.71560746", "0.71560746", "0.71560746", "0.71455485", "0.7118569", "0.7052689", "0.70478714", "0.70478714", "0.70478714", "0.70478714", "0.70478714", "0.70478714", "0.70478714", "0.70478714", "...
0.6740312
48
FUNCION PARA OBTENER TODOS LOS REGISTROS
public function getAll() { $sql="CALL SP_APODERADOS_SELECT_ALL()"; return $this->mysqli->findAll($sql); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _reglas()\n\t{\n\t\t$reglas[] = array('field' => 'titulo', 'label' => 'lang:field_titulo', 'rules' => 'trim|required|max_length[100]');\n\t\t\n\t\t\t$reglas[] = array('field' => 'has_category', 'label' => 'lang:field_has_category', 'rules' => 'callback_has_categorys');\n\t\t\n\t\t\n\t\treturn ...
[ "0.6780367", "0.6612574", "0.61810625", "0.61094296", "0.60722345", "0.60569257", "0.60493064", "0.602756", "0.601529", "0.59810215", "0.59739685", "0.59667754", "0.59449035", "0.59412515", "0.5934055", "0.5932063", "0.59281844", "0.59187376", "0.59174913", "0.59036463", "0.5...
0.0
-1
FUNCION PARA OBTENER APODERADO CON ID
public function getByID($id) { $sql="CALL SP_APODERADOS_SELECT_BY_ID(?)"; return $this->mysqli->find($sql, $id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buscarPorId($id) {\r\n \r\n }", "abstract public function get_id();", "abstract function getId();", "abstract public function getId();", "public function getID();", "public function getID();", "public function getID();", "public function id();", "public function id();", "publi...
[ "0.76026964", "0.7062267", "0.7030332", "0.7028262", "0.70141155", "0.70141155", "0.70141155", "0.70048654", "0.70048654", "0.70048654", "0.70048654", "0.70048654", "0.70048654", "0.70048654", "0.70048654", "0.70048654", "0.7000209", "0.6968232", "0.6960433", "0.6960433", "0....
0.0
-1
FUNCION PARA OBTENER ALUMNOS POR ID APODERADO
public function getAllAlumnoByIDApoderado($id) { $sql="CALL SP_APODERADOS_SELECT_ALUMNOS_BY_IDAPODERADO(?)"; return $this->mysqli->find($sql, $id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buscarPorId($id) {\r\n \r\n }", "public function getIdfa();", "public function SalasPorId()\n{\n\tself::SetNames();\n\t$sql = \" select salas.codsala, salas.nombresala, salas.salacreada, mesas.codmesa, mesas.nombremesa, mesas.mesacreada, mesas.statusmesa FROM salas LEFT JOIN mesas ON salas.c...
[ "0.736666", "0.7058507", "0.6928126", "0.68775266", "0.6846759", "0.68421143", "0.6837424", "0.6823921", "0.68156093", "0.68072265", "0.6801877", "0.67782944", "0.6738109", "0.6716963", "0.67115736", "0.6708167", "0.67046213", "0.6672978", "0.6659489", "0.6652308", "0.6623716...
0.0
-1
FUNCION PARA AGREGAR UN NUEVO APODERADO
public function insert($apPaternoApoderado, $apMaternoApoderado, $nombresApoderado, $dniApoderado, $fechaNacApoderado, $direccionApoderado) { $sql="CALL SP_APODERADOS_INSERT(?,?,?,?,?,?)"; $conn = $this->mysqli->open(); $stmt = $conn->prepare($sql); $stmt -> bind_param('ssssss', $apPaternoApoderado, $apMaternoApoderado, $nombresApoderado, $dniApoderado, $fechaNacApoderado, $direccionApoderado); $result=$this->mysqli->executeIUD($stmt); $conn -> close(); return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function alta_compra(){\n\t\t$u= new Pr_pedido();\n\t\t$u->get_by_id($_POST['id']);\n\t\t$u->usuario_id=$GLOBALS['usuarioid'];\n\t\t$u->empresas_id=$GLOBALS['empresa_id'];\n\t\t$usuario=$this->usuario->get_usuario($GLOBALS['usuarioid']);\n\t\t//Encargada de Tienda\n\t\tif ($usuario->puesto_id==6 or $usuario->puest...
[ "0.635557", "0.63552326", "0.62349355", "0.62111616", "0.62100804", "0.62070215", "0.6202533", "0.6199596", "0.619888", "0.6178704", "0.6150873", "0.6138089", "0.60869896", "0.60787857", "0.60729885", "0.606127", "0.60530365", "0.6046606", "0.60459876", "0.6032204", "0.602887...
0.0
-1
FUNCION PARA EDITAR APODERADO
public function update($apPaternoApoderado, $apMaternoApoderado, $nombresApoderado, $dniApoderado, $fechaNacApoderado, $direccionApoderado, $idApoderado) { $sql = "CALL SP_APODERADOS_UPDATE(?,?,?,?,?,?,?)"; $conn = $this -> $mysqli -> open(); $stmt = $conn->prepare($sql); $stmt -> bind_param('ssssssi', $apPaternoApoderado, $apMaternoApoderado, $nombresApoderado, $dniApoderado, $fechaNacApoderado, $direccionApoderado, $idApoderado); $result = $this -> $mysqli -> executeIUD("$stmt"); $conn -> close(); return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function editar()\n {\n }", "public function editar()\n {\n }", "function procEdit($ar=NULL){\n $this->getComposedFullnam($ar);\n return parent::procEdit($ar);\n }", "public function edit_toko(){\n\t}", "public function edit() {\n\t\t\t\n\t\t}", "public function edit()\n\t{\n...
[ "0.7405901", "0.7074608", "0.6548474", "0.6481434", "0.64493936", "0.6429536", "0.6424435", "0.64093924", "0.6399432", "0.63721234", "0.6363312", "0.63542366", "0.62935376", "0.6282681", "0.6257702", "0.6234157", "0.6221439", "0.62150127", "0.6208706", "0.6208135", "0.6188598...
0.0
-1
FUNCION PARA ELIMINAR APODERADO
public function delete($id) { $sql = "DELETE FROM Apoderados WHERE idApoderado = ?"; return $this->$mysqli->delete($sql, $id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function obtener()\n {\n }", "public function AggiornaPrezzi(){\n\t}", "public function Executar()\r\n {\r\n require_once RAIZ.'/Module/Application/View/HTML/Pecas/Detalhes.php';\r\n }", "public function elso()\n {\n }", "function cl_procprocessodoc() { \n //...
[ "0.6219671", "0.61607575", "0.6137537", "0.6084427", "0.60750043", "0.6065209", "0.60042304", "0.59898716", "0.5988402", "0.5987645", "0.59820974", "0.5970289", "0.59498996", "0.5920213", "0.5918455", "0.5915346", "0.59130734", "0.5905342", "0.5896992", "0.5869345", "0.583256...
0.0
-1
FUNCION PARA LOGEARSE CON USUARIO APODERADO
public function logeo($userApoderado, $passApoderado) { $sql = "CALL SP_APODERADOS_SELECT_LOGIN(?,?)"; $conn = $this->mysqli->open(); $stmt = $conn->prepare($sql); $stmt->bind_param('ss', $userApoderado, $passApoderado); $result = $this->mysqli->search($stmt); $conn->close(); return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loginprofesor_post() //INICIAR SESION = http://localhost/foxweb/Api/login\n {\n $matricula = $this->post('matricula');\n $password = $this->post('password');\n $type = $this->post('type');\n\n $datauser = $this->ApiModel->flogin($matricula, $password, $type);\n\n ...
[ "0.56971747", "0.5600532", "0.5587733", "0.5512041", "0.5484873", "0.5473082", "0.5416958", "0.53811824", "0.536429", "0.5354299", "0.5352881", "0.5349036", "0.53437626", "0.5338213", "0.5336974", "0.52947927", "0.5290973", "0.52608234", "0.5259112", "0.5253053", "0.5201946",...
0.0
-1
function showCaption(); function hideCaption();
public function appendControl($name, $template);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCaption() {}", "function getCaption() {return $this->readCaption();}", "function getModifyCaption() \r\n \t{\r\n \t\treturn '';\r\n \t}", "function set_caption($caption)\n\t{\n\t\t$this->caption = $caption;\n\t}", "function image_add_caption($html, $id, $caption, $title, $align, $url,...
[ "0.69546986", "0.6826821", "0.6590315", "0.6435342", "0.6296099", "0.62184167", "0.62076336", "0.61951566", "0.61628914", "0.61320436", "0.61285245", "0.61215365", "0.6100613", "0.6077285", "0.6039066", "0.6033215", "0.60184425", "0.5994269", "0.59500486", "0.5883152", "0.588...
0.0
-1
Get Visitors mock data
public static function getMockData() { return [ 'page' => 'http://redumbrella.com.ua', 'ip' => "".mt_rand(0,255).".".mt_rand(0,255).".".mt_rand(0,255).".".mt_rand(0,255), 'open' => time(), 'location' => [], 'close' => time() + mt_rand(0, 1000), 'language' => array_rand(['RU', 'UA', 'DE', 'US'], 1)[0], 'ua' => 'Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.212.0 Safari/532.0' ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _getVisitorData() {\n $data = array();\n $customer = Mage::getSingleton('customer/session');\n $customerInfo = $customer->getCustomer();\n $primaryAddress = $customerInfo->getPrimaryShippingAddress();\n if ($customer->getCustomerId()){\n $data['visit...
[ "0.7270008", "0.7167265", "0.6720939", "0.6130239", "0.60254", "0.60190105", "0.58330005", "0.5827498", "0.580613", "0.55762523", "0.55515486", "0.5546295", "0.5541656", "0.55271274", "0.5512764", "0.54855126", "0.54641956", "0.5457979", "0.54552335", "0.54418224", "0.5346395...
0.6528647
3
Get returned result keys
public static function getReturnedResultKeys() { return [ 'ip', 'ua', 'browser', 'language', 'platform', 'mobile', 'tablet', 'pc', 'page', 'open', 'close', 'location' ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getKeys();", "public function getKeys() {}", "static function getKeys();", "abstract public function getKeys();", "public function getKeys(): array;", "public function getKeys()\n {\n if ($this->_queryResult === null) {\n return [];\n }\n\n return $this-...
[ "0.77945185", "0.77771175", "0.7681449", "0.76676846", "0.75974745", "0.7347882", "0.729458", "0.729458", "0.729458", "0.7294162", "0.72029704", "0.71652776", "0.7152434", "0.7105446", "0.7105446", "0.7054161", "0.6992623", "0.69894123", "0.69894123", "0.69894123", "0.6989412...
0.7790886
1
Run the database seeds.
public function run() { $faker = Factory::create(); $categories = []; // prepare array kosong // Prepare data dummy syukur for ($i=1; $i<=5; $i++) { $categories = [ [ 'name' => 'Ceritakan diri kamu.', 'description' => $faker->text, 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'), ], [ 'name' => 'Bagaimana orang lain kamu?', 'description' => $faker->text, 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'), ], [ 'name' => 'Bagaimana teman-temanmu memandang Kamu?', 'description' => $faker->text, 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'), ], [ 'name' => 'Bagaimana mahasiswa lain memandang Kamu?', 'description' => $faker->text, 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'), ], [ 'name' => 'Bagaimana dosen memandang Kamu?', 'description' => $faker->text, 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'), ], [ 'name' => 'Perkenalkan anggota keluargamu dan seberapa dekat dengan anggota keluargamu?', 'description' => $faker->text, 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'), ], ]; } // Insert data dummy ke db MyStoryCategory::insert($categories); }
{ "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
Sets up a URL endpoint for incoming HTTP requests This is a temporary implementation
public function endpoint() { global $bp; if ( bp_is_current_component( $bp->api->id ) ) { if ( bp_is_current_action( 'addclient' ) ) { if ( !empty( $_POST ) ) { $this->process_addclient(); } bp_api_load_template( 'api/addclient' ); } else if ( bp_is_current_action( 'request_token' ) ) { $this->process_request_token(); } else if ( bp_is_current_action( 'authorize' ) ) { $this->process_authorize(); } else if ( bp_is_current_action( 'access_token' ) ) { $this->process_access_token(); } require( CIAB_PLUGIN_DIR . 'lib/restler/restler.php' ); require( CIAB_PLUGIN_DIR . 'api/class.bp-restler.php' ); $this->restler = new BP_Restler; do_action( 'bp_api_init' ); /** * @todo Make this non-nonsense * * Be sure you know what you're doing before you disable OAuth! You can * enable admin access to your whole site if you're not careful! * * You can override OAuth by supplying your own BP_API_Auth class. Make sure * it's loaded before we get to this point, so that we don't load OAuth. */ if ( !class_exists( 'BP_API_Auth' ) ) { require( CIAB_PLUGIN_DIR . 'api/class.auth.php' ); } $this->restler->addAuthenticationClass( 'BP_API_Auth' ); require( CIAB_PLUGIN_DIR . 'api/class.api-server-actions.php' ); $this->restler->addAPIClass( 'BP_API_Server_Actions' ); $this->restler->handle(); die(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setEndpoint($url);", "protected function initiateUrl()\n\t{\n\t\t// base url\n\t\tif($this->app->config->has('app.url'))\n\t\t\t$this->setBase($this->app->config->get('app.url'));\n\n\t\t// asset url\n\t\tif($this->app->config->has('asset.url'))\n\t\t\t$this->setAsset($this->app->config->get('ass...
[ "0.6910181", "0.6479029", "0.64210504", "0.621488", "0.6157519", "0.6139891", "0.61287946", "0.61194694", "0.61072344", "0.6061941", "0.5996362", "0.59743464", "0.5924256", "0.5906302", "0.590461", "0.5888739", "0.5888635", "0.5860619", "0.58574474", "0.5851046", "0.58383703"...
0.0
-1
Run the database seeds.
public function run() { if(DB::table('students')->count() <= 0) { DB::table('students')->insert([ [ 'name' => 'Dang Minh', 'address' => 'My Dinh', 'university' => 'FPT Polytechnic', 'class_id' => 1 ], [ 'name' => 'Duong Manh Hoang', 'address' => 'Hoang Mai', 'university' => 'FPT Polytechnic', 'class_id' => 1 ], [ 'name' => 'Pham Quoc Can', 'address' => 'My Dinh', 'university' => 'FPT Polytechnic', 'class_id' => 1 ], ]); } }
{ "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.80140394", "0.7980541", "0.79775697", "0.79547316", "0.79514134", "0.79500794", "0.79444957", "0.794259", "0.79382807", "0.7937482", "0.7934376", "0.7892533", "0.7881253", "0.78794724", "0.7879101", "0.7875628", "0.787215", "0.7870168", "0.78515327", "0.7850979", "0.784195...
0.0
-1
Mark order as paid and send notifications
public static function processPayment($id) { $order = self::get($id); if (!$order) { return false; } self::markAsPaid($id); self::notifyAboutPurchase($id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function markPaid()\n {\n $this->order->update(['status' => OrderStatus::PAID]);\n\n $this->notify([\n 'title' => __('Update Status'),\n 'message' => __('This order is marked as paid.'),\n ]);\n }", "public function paid()\n {\n $this->paidAmount ...
[ "0.841011", "0.71405697", "0.7136052", "0.7108029", "0.7041382", "0.69036543", "0.68814504", "0.66102445", "0.6604549", "0.6562205", "0.6502775", "0.6489142", "0.6480585", "0.6467929", "0.6438515", "0.6420829", "0.6418595", "0.6304264", "0.62944794", "0.6294462", "0.6264376",...
0.0
-1
Returns $dat encoded to UTF8
protected static function utf8Encode($dat) { if (is_string($dat)) { if (mb_check_encoding($dat, 'UTF-8')) { return $dat; } else { return utf8_encode($dat); } } if (is_array($dat)) { $answer = array(); foreach ($dat as $i => $d) { $answer[$i] = self::utf8Encode($d); } return $answer; } return $dat; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function utf8Encode($dat)\n {\n if (is_string($dat)){\n return utf8_encode($dat);\n }\n if (!is_array($dat)){\n return $dat;\n }\n $ret = array();\n foreach ($dat as $i => $d){\n $ret[$i] = $this->utf8Encode($d);\n }\n ...
[ "0.70902044", "0.6691718", "0.6488349", "0.6484774", "0.63320524", "0.61628664", "0.6086392", "0.60392594", "0.60084146", "0.6004522", "0.5980297", "0.5915582", "0.59041953", "0.5881356", "0.5802224", "0.5793196", "0.575121", "0.573841", "0.573841", "0.573841", "0.5726693", ...
0.7488785
0
Get the books list
public function books() { return $this->get('/books'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBookList()\n {\n return $this->bookDao->getBookList();\n }", "public function listBooks()\n {\n //list all books in database\n $sql2 = \"SELECT * from book\";\n $userBooks = mysql_fetch_array(mysql_query($sql2));\n return $userBooks; \n }", ...
[ "0.85837394", "0.8120957", "0.81092685", "0.80654854", "0.8033083", "0.79663676", "0.7898337", "0.78913563", "0.7886133", "0.7874153", "0.7852792", "0.7781598", "0.7758843", "0.77148515", "0.7558639", "0.7542248", "0.74196696", "0.7380187", "0.73245835", "0.7269912", "0.72643...
0.78711903
10
Get the books by id
public function book($id) { return $this->get("/books/{$id}"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBooks($id) {\n }", "public function getBookById($id) {\n\t\t$book = null;\n\n foreach ($this->db-> query(\"SELECT * FROM book WHERE id=$id\") as $row){\n \n $book = new Book($row['title'], $row['author'], $row['description'], $row['id']);\n }\n\n r...
[ "0.8623019", "0.81779176", "0.8146076", "0.7855995", "0.7847217", "0.7789382", "0.7778965", "0.77668166", "0.7707386", "0.7695172", "0.76458347", "0.7565044", "0.75385535", "0.7455013", "0.7394145", "0.73688716", "0.733261", "0.7307886", "0.73040533", "0.7281313", "0.7171885"...
0.8379085
1
Insert into the database
public function insert(): bool { // Set a return value $return_value = TRUE; // The SQL statement $sql_info = "INSERT INTO employee_info (id,name_first,name_mid,name_last,address,email,city,zip,designation,gender,entry_epoch) VALUE (:id,:first,:mid,:last,:addr,:email,:city,:zip,:des,:sex,now())"; $sql_pass_usr = "INSERT INTO login_info (user_name,user_password,user_id) VALUE(:user_name,:user_password,:user_id)"; // Access the PDO and prepare the statement try { $prep_state1 = $this->db->prepare($sql_info); $prep_state2 = $this->db->prepare($sql_pass_usr); $prep_state1->execute([ ':id' => $this->emp['id'], ':first' => $this->emp['firstname'], ':mid' => $this->emp['middlename'], ':last' => $this->emp['lastname'], ':addr' => $this->emp['address'], ':email' => $this->emp['email'], ':city' => $this->emp['city'], ':zip' => $this->emp['zip'], ':des' => $this->emp['designation'], ':sex' => $this->emp['gender'] ]); $prep_state2->execute([ ':user_name' => $this->emp['emp_username'], ':user_password' => $this->emp['emp_password'], ':user_id' => $this->emp['id'] ]); } catch (\PDOException $PDOException) { $return_value = FALSE; } return $return_value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function insert()\n\t{\n\t\t$query = $this->connection->prepare\n\t\t(\"\n\t\t\tinsert into\n\t\t\t\tBooth (BoothNum)\n\t\t\t\tvalues (?)\n\t\t\");\n\n\t\t$query->execute(array_values($this->fields));\n\n\t}", "public function insert()\n {\n if(empty($this->attributes)){\n return;...
[ "0.7634987", "0.7632747", "0.7568848", "0.75107706", "0.7501519", "0.7456342", "0.7438138", "0.7431855", "0.74303544", "0.74060726", "0.7393575", "0.73646456", "0.7344687", "0.7340661", "0.7336584", "0.7336584", "0.73359144", "0.73348355", "0.72817194", "0.7276749", "0.725001...
0.0
-1
Create a new controller instance.
public function __construct() { $this->middleware('auth'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this-...
[ "0.82668066", "0.8173394", "0.78115296", "0.77052677", "0.7681875", "0.7659338", "0.74860525", "0.74064577", "0.7297601", "0.7252339", "0.7195181", "0.7174191", "0.70150065", "0.6989306", "0.69835985", "0.69732994", "0.6963521", "0.6935819", "0.68973273", "0.68920785", "0.687...
0.0
-1
Show the application dashboard.
public function index() { $plans = Plan::all()->sortByDesc("created_at"); return view('admin.plans.index', compact('plans')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dashboard()\n {\n\n $pageData = (new DashboardService())->handleDashboardLandingPage();\n\n return view('application', $pageData);\n }", "function dashboard() {\r\n\t\t\tTrackTheBookView::render('dashboard');\r\n\t\t}", "public function showDashboard() { \n\t\n ...
[ "0.77850926", "0.7760142", "0.7561336", "0.75147176", "0.74653697", "0.7464913", "0.73652893", "0.7351646", "0.7346477", "0.73420244", "0.7326711", "0.7316215", "0.73072463", "0.7287626", "0.72826403", "0.727347", "0.727347", "0.727347", "0.727347", "0.7251768", "0.7251768", ...
0.0
-1
Show the form for creating a new resource.
public function create() { $mainmodules = MainModule::orderBy('position','ASC')->get(); return view('admin.plans.create',compact('mainmodules')); }
{ "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.75934863", "0.75934863", "0.7587591", "0.75782615", "0.75711566", "0.74992937", "0.74349296", "0.7432467", "0.7387912", "0.7351958", "0.73380226", "0.73111826", "0.72957826", "0.72812104", "0.72734547", "0.7242778", "0.72294843", "0.7225723", "0.718609", "0.71780044", "0.7...
0.0
-1
Display the specified resource.
public function show($id) { $plan = Plan::find($id); return view('admin.plans.show', compact('plan')); }
{ "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) { $plan = Plan::findOrFail($id); $mainmodules = MainModule::orderBy('position','ASC')->get(); foreach($mainmodules as $module){ $collect = DB::table('plan_has_modules')->where('plan_id',$id)->where('module_id',$module->id)->pluck('enabled')->first(); $module->value = $collect; } return view('admin.plans.edit', compact('plan','mainmodules')); }
{ "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.78557473", "0.76946205", "0.72731614", "0.7241571", "0.71700776", "0.70650244", "0.7052897", "0.698311", "0.69465625", "0.6944826", "0.69399333", "0.69286525", "0.69031185", "0.68969506", "0.68969506", "0.6878258", "0.6862812", "0.6859171", "0.68560475", "0.68436426", "0.6...
0.0
-1
Update the specified resource in storage.
public function update($id, Request $request) { $customMessages = [ 'name' => 'The Plan Name field is required.', 'description' => 'The description field is required.', ]; $this->validate($request, [ 'name' => 'required|unique:plans,name,'.$request->id.',id', 'description' => 'required', ], $customMessages); $plan = Plan::findOrFail($id); $plan->name = $request->get('name'); $plan->description = $request->get('description'); if($request->has('status')) $plan->status = $request->get('status'); $plan->save(); $mainmodules = MainModule::all(); try{ $datetime = date('Y-m-d H:i:s'); $has_tally_integration = $request->has('tally'); DB::beginTransaction(); $plans_has_modules = DB::table('plan_has_modules')->where('plan_id', $plan->id)->first(); if($plans_has_modules) DB::table('plan_has_modules')->where('plan_id', $plan->id)->delete(); $insertData = array(); $clientSettingUpdatedArray = array(); foreach($mainmodules as $module){ $field = $module->field; $enabled = $request->$field ? 1 : 0; $clientSettingUpdatedArray[$field] = $enabled; $data = array( 'plan_id'=>$plan->id, 'module_id'=>$module->id, 'enabled'=>$enabled ); array_push($insertData, $data); } if(!empty($insertData)) DB::table('plan_has_modules')->insert($insertData); $companiesIDs = DB::table('company_plan')->where('plan_id',$plan->id)->pluck('company_id'); if(!empty($companiesIDs)){ $clientSettings = ClientSetting::whereIn('company_id',$companiesIDs)->get(); foreach($clientSettings as $clientSetting){ $clientSetting->update($clientSettingUpdatedArray); $company_id = $clientSetting->company_id; // AssignFullAccessPermission::dispatch($company_id, $clientSetting); // $limited_access_assign_permission_name = array('PartyVisit-view', 'PartyVisit-create'); // AssignLimitedAccessPermission::dispatch($company_id, $limited_access_assign_permission_name); $tallyInt = DB::table('tally_schedule')->where('company_id', $company_id)->first(); $companyname = Company::find($company_id); $domain = $companyname ? $companyname->domain : NULL; if($domain){ if (!$has_tally_integration && !empty($tallyInt)) { $affected = DB::table('tally_schedule') ->where('company_id', $company_id) ->update(['updated_at' => $datetime, 'deleted_at' => $datetime]); } elseif ($has_tally_integration) { if($tallyInt) $affected = DB::table('tally_schedule')->where('company_id', $company_id)->update(['updated_at' => $datetime, 'deleted_at' => NULL]); else $affected = DB::table('tally_schedule')->insert([ 'company_id' => $company_id, 'company_name' => $domain, 'created_at' => $datetime]); } } } } DB::commit(); if(isset($clientSettings)){ foreach($clientSettings as $clientSetting){ $fbIDs = DB::table('employees')->where(array(array('company_id', $clientSetting->company_id), array('status', 'Active')))->whereNotNull('firebase_token')->pluck('firebase_token'); $dataPayload = array("data_type" => "company_setting", "company_setting" => json_encode($clientSetting), "action" => "update"); sendPushNotification_($fbIDs, 12, null, $dataPayload); } } return redirect()->route('app.plan')->with('success', 'Information has been Updated'); }catch(\Exception $e){ DB::rollback(); dd($e->getMessage()); Log::error($e->getMessage()); } }
{ "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.7424884", "0.7062319", "0.70572054", "0.6897199", "0.658233", "0.6450576", "0.6347209", "0.6211253", "0.6146092", "0.6121878", "0.6114851", "0.61005586", "0.608833", "0.60537165", "0.60196865", "0.60068345", "0.5972924", "0.594671", "0.5940615", "0.5938648", "0.58927333", ...
0.0
-1
lets get the taken surveys first
public function getAllUserAvailableSurveys(){ // $takenSurveys = \App\TakenSurvey::where('user_id', \Auth::user()->id); $result = \DB::table('surveys')-> whereRaw('id not in (select distinct survey_id from taken_surveys where user_id = ?)', [\Auth::user()->id])->get(); // $surveys = \App\Survey:: // dd($result); echo $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_AllSurveys(){\r\n $sql = $this->db->prepare(\"SELECT DISTINCT s.SurveyID, s.SurveyTitle, s.DatePosted FROM SURVEYLOOKUP L LEFT JOIN SURVEY s ON s.SurveyID = L.SurveyID\r\n WHERE :chamberid = L.ChamberID or :chamberid = L.RelatedChamber ORDER BY s.DatePosted DESC...
[ "0.64826673", "0.60849106", "0.5902223", "0.58925384", "0.56816685", "0.5635475", "0.5619469", "0.55992436", "0.5588194", "0.54731953", "0.5472867", "0.54032755", "0.53898084", "0.53687656", "0.5366125", "0.53583175", "0.53583175", "0.5313885", "0.52884066", "0.52396154", "0....
0.5889542
4
Transform defines how data should be presented.
public function transform(Category $category) { return [ 'id' => (int)$category->id, 'name' => $category->name, 'slug' => $category->slug, 'description' => $category->description, 'sort_order' => $category->sort_order, ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function transform();", "public static function transformer();", "public function transform()\r\n {\r\n // Retrieve and set the column headings.\r\n $headings = $this->getDiscreteColumnValues(0);\r\n \r\n // One of the retrieved headings does not appear in the fir...
[ "0.70818293", "0.6368649", "0.60976124", "0.609137", "0.5990365", "0.57872236", "0.5766512", "0.57582337", "0.5722789", "0.56680095", "0.56552356", "0.5615466", "0.55892545", "0.556547", "0.55609167", "0.5547647", "0.55391484", "0.5510496", "0.5501925", "0.5493334", "0.548368...
0.0
-1
Get list of VIN Pattern using VIN only.
public function index($vin, VinRepository $vinRepository) { $result = $vinRepository->getVinPatterns($vin); if ($result instanceof ApiException) { return ApiResponse::error( $result->getResponseCode(), $result->getMessage(), $result->getData(), $result->getCode() ); } return ApiResponse::success('Here are your VIN Patterns.', $result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function findinvirtual($pattern)\n {\n $result = array();\n $virtual = null;\n\n if ($this->file)\n $virtual = file($this->file);\n\n if (empty($virtual))\n return $result;\n\n // check each line for matches\n foreach ($virtual as $line) {\...
[ "0.5229542", "0.5206358", "0.51823413", "0.49076906", "0.4897251", "0.48405182", "0.48405182", "0.48068368", "0.47646004", "0.47254863", "0.47246695", "0.4722298", "0.46968603", "0.4687372", "0.46547836", "0.46456403", "0.46222693", "0.46099022", "0.4602385", "0.45938125", "0...
0.58806443
0
will remove the uploaded images
public function tearDown(): void { unset($_FILES); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeImage()\n {\n // Suppression de l'image principale\n $fichier = $this->getAbsolutePath();\n\n if (file_exists($fichier))\n {\n unlink($fichier);\n }\n\n // Suppression des thumbnails\n foreach($this->thumbnails as $key => $thumbna...
[ "0.79675156", "0.78796256", "0.77181107", "0.76629716", "0.76242584", "0.75260824", "0.75230443", "0.750297", "0.74999183", "0.74731976", "0.7470765", "0.7451296", "0.74005854", "0.7368245", "0.7366393", "0.735528", "0.735394", "0.7333979", "0.72689027", "0.7230916", "0.72086...
0.0
-1
Function returns node string ready for insertion into database. If parameters are null or '', returns empty string (possibly delimited)
function new_node_str($flag = '', $parent_pos = null, $keys = null, $values_pos = null, $children_pos = null) { $empty_str = str_repeat(Database::$empty_char, $this->pos_len); $flag_str = $flag ? $flag : str_repeat(Database::$empty_char, $this->n_format['flag']['length']); $parent_pos_str = $parent_pos ? str_pad($parent_pos, $this->pos_len, Database::$empty_char, STR_PAD_LEFT) : $empty_str; $keys_str = $this->get_property_pos_str($keys, $this->t * 2 - 1); $values_pos_str = $this->get_property_pos_str($values_pos, $this->t * 2 - 1); $children_pos_str = $this->get_property_pos_str($children_pos, $this->t * 2); if ($this->is_delimited) { $d = $this->delimiter; return $flag_str . $d . $parent_pos_str . $d . $keys_str . $d . $values_pos_str . $d . $children_pos_str . "\n"; } else { return $flag_str . $parent_pos_str . $keys_str . $values_pos_str . $children_pos_str . "\n"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function to_str() {\n $smt=\"INSERT \\n\"\n //\n //Get the root of the sql \n . \"INTO {$this->root->fromexp()}\\n\"\n //The values\n . \"{$this->str_values()}\\n\"\n //\n //The joins if a...
[ "0.5991256", "0.5452782", "0.5351307", "0.52994555", "0.5198407", "0.5192369", "0.5127906", "0.51028", "0.5093311", "0.5076967", "0.50089824", "0.50012976", "0.5000416", "0.4995035", "0.49949732", "0.49794808", "0.49641508", "0.4957233", "0.49563095", "0.49465948", "0.4938763...
0.6110811
0
filling children nodes position
function get_property_pos_str($children_pos, $fill_num) { $str = ''; $d_empty_str = $this->empty_str . ($this->is_inner_delimited ? $this->delimiter : null); // var_dump($children_pos); if ($children_pos) { foreach ($children_pos as $pos) { $str .= str_pad($pos, $this->pos_len, Database::$empty_char, STR_PAD_LEFT); if ($this->is_inner_delimited) { $str .= $this->delimiter; } } $c_num = count($children_pos); if ($c_num < $fill_num) { for ($i = 0, $diff = $fill_num - $c_num; $i < $diff; $i++) { $str .= $d_empty_str; } } } else { $str = str_repeat($d_empty_str, $fill_num); } return $str; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function populateParentFromSortedByParentIdList() {\n for ($i = 0; $i < sizeof($this->nodeList); $i++) {\n $node = $this->nodeList[$i];\n// echo \"<br>Text: \".$node->getText();\n $this->insertNode($node);\n }\n }", "public function getChildNodes() {}", ...
[ "0.6655544", "0.6473671", "0.64735717", "0.6251944", "0.6241311", "0.61856717", "0.6158279", "0.6079425", "0.60539937", "0.59365493", "0.5872178", "0.5855873", "0.580003", "0.5780835", "0.5752802", "0.57238847", "0.5706202", "0.56814253", "0.5673971", "0.56584454", "0.5625407...
0.0
-1
Function builds BNode from string given. If get_values = true, fills node data with key=>values
function get_node($str, $pos, $get_data) { $start = 0; $len = $this->n_format['flag']['length'] + $this->d_len; $flag = $this->get_substr($str, $start, $len); $parent_pos = $this->get_pos_value($this->get_substr($str, $start, $this->pos_len + $this->d_len)); $keys = $this->get_property_arr('keys', $str); $children_pos = $this->get_property_arr('children_pos', $str); $values_pos = $this->get_property_arr('values_pos', $str); return new BNode($pos, $keys, $parent_pos, $children_pos, $values_pos); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function build($value, $key)\n {\n $key = str_replace(\"_\", \" \", $key);\n\n if ($value) {\n if (in_array($key, [\"code\", \"name\", \"native\"])) {\n $key = \"Language \" . $key;\n } else {\n $key = ucfirst($key);\n }\n ...
[ "0.4749919", "0.4705231", "0.46302524", "0.4597355", "0.44590124", "0.44415614", "0.4433053", "0.44121525", "0.43920425", "0.43707222", "0.43684363", "0.43556684", "0.43428394", "0.43185925", "0.4316652", "0.4286249", "0.42704257", "0.42618603", "0.4235861", "0.4225837", "0.4...
0.6251009
0
Function replaces $name property on position $pos with $new value in string $str
function edit_property(&$str, $new_value, $pos, $name = 'keys') { $prop_str = $this->get_pos_str($new_value); $start = $this->get_start_pos($name) + $pos * ($this->pos_len + $this->d_len); $str = substr($str, 0, $start) . $prop_str . substr($str, $start + strlen($prop_str)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _replaceVariable($str, $pos, $var, $repl)\n {\n $expr = substr($str, $pos, strpos($str, ')', $pos + 1) - $pos + 1);\n $eqsign = strpos($expr, '=');\n if (false !== $eqsign)\n {\n $name = substr($expr, $eqsign + 1, strlen($expr) - $eqsign - 2);\n }\n return...
[ "0.59950745", "0.5923943", "0.58378243", "0.5704068", "0.5572111", "0.54351354", "0.5431104", "0.5281488", "0.52504885", "0.5223439", "0.52060515", "0.5193551", "0.5186991", "0.5161758", "0.5124974", "0.5110818", "0.5088579", "0.5080547", "0.50745887", "0.5071972", "0.5036922...
0.7856642
0
this up() migration is autogenerated, please modify it to your needs
public function up(Schema $schema) : void { $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->addSql('CREATE TABLE estadistica (id INT AUTO_INCREMENT NOT NULL, id_equipo INT DEFAULT NULL, id_jornada SMALLINT DEFAULT NULL, puntos INT NOT NULL, jugados INT NOT NULL, ganados INT NOT NULL, ganados_local INT NOT NULL, ganados_visitante INT NOT NULL, empatados INT NOT NULL, empatados_local INT NOT NULL, empatados_visitante INT NOT NULL, perdidos INT NOT NULL, perdidos_local INT NOT NULL, perdidos_visitante INT NOT NULL, goles_favor INT NOT NULL, goles_favor_local INT NOT NULL, goles_favor_visitante INT NOT NULL, goles_contra INT NOT NULL, goles_contra_local INT NOT NULL, goles_contra_visitante INT NOT NULL, UNIQUE INDEX UNIQ_DF3A8544E2ABE6E6 (id_equipo), UNIQUE INDEX UNIQ_DF3A8544BF4FB5CF (id_jornada), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB'); $this->addSql('ALTER TABLE estadistica ADD CONSTRAINT FK_DF3A8544E2ABE6E6 FOREIGN KEY (id_equipo) REFERENCES equipo (id)'); $this->addSql('ALTER TABLE estadistica ADD CONSTRAINT FK_DF3A8544BF4FB5CF FOREIGN KEY (id_jornada) REFERENCES jornada (id)'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function up();", "abstract public function up();", "abstract public function up();", "abstract public function up();", "public function up()\n {\n $this->execute(\"\n ALTER TABLE `tcmn_communication` \n CHANGE `tcmn_pprs_id` `tcmn_pprs_id` SMALLINT(5) UNSIGNE...
[ "0.80062383", "0.791459", "0.791459", "0.791459", "0.757202", "0.75622094", "0.7528509", "0.74991167", "0.7495741", "0.7454034", "0.74464583", "0.74359256", "0.7432558", "0.7428393", "0.7419358", "0.73787934", "0.7376999", "0.7371375", "0.7365399", "0.735214", "0.733067", "...
0.0
-1
this down() migration is autogenerated, please modify it to your needs
public function down(Schema $schema) : void { $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->addSql('DROP TABLE estadistica'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function down()\n {\n //add your migration here \n }", "public function down()\n {\n //add your migration here\n }", "public function down()\n\t{\n $this->dropColumn('producto','fecha');\n\n //add column fecha in producto\n $this->addColumn('calculo'...
[ "0.7950277", "0.78636813", "0.76065636", "0.7493955", "0.7320625", "0.7245268", "0.7187498", "0.71543235", "0.715298", "0.7141911", "0.7135835", "0.71214414", "0.71154845", "0.71057886", "0.7098064", "0.70800334", "0.7078775", "0.70729095", "0.7068331", "0.7066272", "0.705336...
0.0
-1
Return list of template files or errors from data base
function fileList(){ chdir('./../cloud/books/'); //Move to template directory if ($handle = opendir(getcwd())) { //Open dir echo '<ul class="list-group">'; while (false !== ($entry = readdir($handle))) { //While directory not end - return files list if ($entry != "." && $entry != ".DS_Store" && $entry != "..") { //Filter trash if(is_dir($entry)){ //IF dir then return button with folder icon echo '<a href="#" class="list-group-item cat"><i class="fa fa-folder-o" aria-hidden="true"></i> '.$entry.'</a>'; }else{ //else return file button $FileInfo = new SplFileInfo($entry); //Get file info $ext = $FileInfo->getExtension(); //Get file extension if($ext == "png" or $ext == "jpg" or $ext == "bmp") //IF file is image then return button with image icon echo '<a href="/files/cloud/books/'.$entry.'" class="list-group-item file"><i class="fa fa-file-image-o" aria-hidden="true"></i> '.$entry.'</a>'; else //Else return button with file-code icon echo '<a href="/files/cloud/books/'.$entry.'" class="list-group-item file"><i class="fa fa-file-o" aria-hidden="true"></i> '.$entry.'</a>'; } } } echo '</ul>'; closedir($handle); //Close dir } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTemplates()\n {\n $finder = Finder::create()\n ->files()\n ->name('*.sql')\n ->in($this->rootDir.'/../templates')\n ;\n\n $templates = [];\n\n /** @var SplFileInfo $file */\n foreach ($finder as $file) {\n $templat...
[ "0.65550166", "0.63738954", "0.63034105", "0.62913644", "0.6211011", "0.6165265", "0.6149354", "0.6093235", "0.60354024", "0.5989646", "0.59763205", "0.59640527", "0.5950454", "0.5887699", "0.5817202", "0.5807475", "0.5804953", "0.57978374", "0.56372887", "0.5622289", "0.5615...
0.0
-1
Register and load the widget
function wpb_load_widget() { register_widget( 'dmv_widget' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wpb_load_widget() {\n register_widget( 'lrq_widget' );\n }", "public static function register() {\n\t register_widget( __CLASS__ );\n\t}", "public function register_widget() {\n register_widget( 'WPP_Widget' );\n }", "function abc_load_widget()\n{\n register_widget('awesome...
[ "0.8110661", "0.7967675", "0.78804576", "0.7738934", "0.7702892", "0.7682854", "0.76820266", "0.76244855", "0.7621846", "0.76101273", "0.7574632", "0.74874914", "0.741399", "0.7409604", "0.7409604", "0.7344513", "0.731742", "0.729245", "0.726935", "0.72691077", "0.724296", ...
0.8054664
1
Sets up the fixture, for example, opens a network connection. This method is called before a test is executed.
protected function setUp() { $this->object = new Sql(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function fixture_setup() {\r\n $this->service = SQLConnectionService::get_instance($this->configuration);\r\n test_data_setup($this->service);\r\n }", "public function setUp() {\n\t\t$options = [\n\t\t\t'db' => [\n\t\t\t\t'adapter' => 'Connection',\n\t\t\t\t'connection' => $this->_conn...
[ "0.7593145", "0.7171293", "0.69280165", "0.6909619", "0.68903273", "0.6883977", "0.68159807", "0.6802521", "0.67521834", "0.6750625", "0.6744658", "0.67317975", "0.67125857", "0.67070854", "0.67009753", "0.6682683", "0.6682683", "0.6682683", "0.6682683", "0.6682683", "0.66779...
0.0
-1
Tears down the fixture, for example, closes a network connection. This method is called after a test is executed.
protected function tearDown() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function tearDown(): void\n {\n parent::tearDown();\n\n Mockery::close();\n\n unset($this->faker, $this->waqi);\n }", "public function teardown()\n {\n //\n }", "protected function tearDown(): void\n\t{\n\t\tglobal $modSettings;\n\n\t\t// remove temporary test dat...
[ "0.7307815", "0.7238275", "0.72227454", "0.7188436", "0.71879613", "0.7149625", "0.71407133", "0.71349216", "0.7120695", "0.71045953", "0.7082413", "0.70795685", "0.7078695", "0.7053677", "0.7049754", "0.7033488", "0.70231533", "0.7015942", "0.70026475", "0.70015645", "0.7000...
0.0
-1
expense report date wise
public function expenseReportDate(Request $request){ if($request->pdf=='pdf_download'){ echo "<h1>Coming soon</h1>"; }else{ $start=$request->start; $end=$request->end; $company=Company::first(); $data=ExpenseAmount::whereBetween('expense_date',[$start,$end])->with('ExpenseCategorys','Warehouses','users')->get(); return view('report.expense.expense_date_wise',compact('start','end','company','data')); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dtexpensegroupreport()\n {\n $search_type = $this->input->post('search_type');\n $date_from = $this->input->post('date_from');\n $date_to = $this->input->post('date_to');\n $head = $this->input->post('head');\n\n $data['date_type'] = $this->custo...
[ "0.67331916", "0.66458374", "0.65866214", "0.64653", "0.6350249", "0.63116544", "0.62193227", "0.62185943", "0.6195381", "0.61095643", "0.6077952", "0.6049646", "0.60457355", "0.6018501", "0.5996672", "0.5992983", "0.59608483", "0.5937871", "0.59226084", "0.59129715", "0.5895...
0.66466373
1
Get the instance as an array.
public function toArray(): array;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function instanceToArray() : array{\n\n if(!method_exists(self::class,'instance')):\n return [];\n endif;\n\n return self::instance()->toArray();\n }", "public function toArray($instance): array;", "public function getAsArray();", "public function toArray() {\...
[ "0.85852945", "0.8148092", "0.8078163", "0.79248744", "0.7906661", "0.7836803", "0.7836803", "0.7836803", "0.7799238", "0.7780902", "0.7745101", "0.7713653", "0.77060854", "0.7674092", "0.7661095", "0.7654164", "0.7645176", "0.764169", "0.76324755", "0.76228744", "0.7599066",...
0.0
-1
Add a column sortable to column header.
public function sortable(string $column, string $cast);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function get_sortable_columns()\n {\n }", "protected function get_sortable_columns()\n {\n }", "protected function get_sortable_columns()\n {\n }", "public function get_sortable_columns() {\n return $sortable = array(\n \"col_user\"=>array(\"...
[ "0.66669786", "0.66662127", "0.66662127", "0.6531419", "0.65147686", "0.64952636", "0.64942104", "0.6404457", "0.6368186", "0.6360913", "0.63449246", "0.6340132", "0.63053817", "0.6296234", "0.6254682", "0.625152", "0.624032", "0.6231622", "0.62108856", "0.6207116", "0.617734...
0.582708
53
Retrieve all input data from request, include query parameters, parsed body and json body.
public function getParams();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRequestData();", "public static function getRequestBody() {}", "abstract public function getRequestBody();", "public function request(){\n\t\t$request = file_get_contents('php://input');\n\t\treturn json_decode($request,true);\n\t}", "public function readHttpRequest(){\n\t\t\t$incomingFo...
[ "0.70277137", "0.6773456", "0.67220247", "0.6685514", "0.6570688", "0.6566249", "0.65576935", "0.65446967", "0.6541294", "0.65155935", "0.64902806", "0.6467232", "0.64654815", "0.6464678", "0.6456292", "0.6413553", "0.64126134", "0.64126134", "0.6412435", "0.64104426", "0.640...
0.0
-1
delete image folder and all its content
function delete($record_id){ $rs=parent::get_record($record_id); if (is_dir(USER_IMAGES_FOLDER_ADDRESS.$rs->fields["image_folder"]."/")) { rm_dir_and_all_files(USER_IMAGES_FOLDER_ADDRESS.$rs->fields["image_folder"]."/"); } //--------------delete the user record parent::delete($record_id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public static function deleteImage(){}", "function imageAllDelete();", "function removeImage() {\n\t\t\n $image = $this->getImageByImageId();\n \n $file_image = $this->dir_path.$image['path_image']...
[ "0.7753651", "0.76678807", "0.7543783", "0.7405021", "0.7369806", "0.7352433", "0.72714585", "0.7263035", "0.72488004", "0.72072226", "0.7206396", "0.7204684", "0.7200274", "0.7162082", "0.7056499", "0.70295525", "0.6992369", "0.69893205", "0.6962709", "0.6958996", "0.6949038...
0.64474154
91
Display a listing of the resource.
public function index() { $faqs = Faq::all(); return view('admin.faqs.index', ['faqs' => $faqs]); }
{ "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.7446838", "0.7361646", "0.7299749", "0.7246801", "0.7163394", "0.7148201", "0.71318537", "0.7104601", "0.7101873", "0.709985", "0.70487136", "0.69936216", "0.6988242", "0.69347453", "0.68989795", "0.68988764", "0.68909055", "0.68874204", "0.68650436", "0.6848891", "0.68294...
0.0
-1
Show the form for creating a new resource.
public function create() { return view('admin.faqs.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.75934863", "0.75934863", "0.7587591", "0.75782615", "0.75711566", "0.74992937", "0.74349296", "0.7432467", "0.7387912", "0.7351958", "0.73380226", "0.73111826", "0.72957826", "0.72812104", "0.72734547", "0.7242778", "0.72294843", "0.7225723", "0.718609", "0.71780044", "0.7...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $messages = [ 'required' => 'Необходимо заполнить поле :attribute', 'min:5' => 'Минимальное количество символов должно быть 5' ]; $validator = Validator::make($request->all(), [ 'answer' => 'required|min:5', 'question' => 'required|min:5', ], $messages); $faq = new Faq(); $faq->fill($request->all()); if ($faq->save()) { return redirect('admin/faq'); } }
{ "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) { $faq = Faq::find($id); return view('admin.faqs.edit', ['faq' => $faq]); }
{ "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.78561044", "0.7695814", "0.72755414", "0.72429216", "0.71737534", "0.7064628", "0.7056257", "0.69859976", "0.6949863", "0.6948435", "0.6942811", "0.69298875", "0.69032556", "0.6900465", "0.6900465", "0.6880163", "0.6865618", "0.68620205", "0.6859499", "0.6847944", "0.68375...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { $messages = [ 'required' => 'Необходимо заполнить поле :attribute', 'min:5' => 'Минимальное количество символов должно быть 5', ]; $validator = Validator::make($request->all(), [ 'answer' => 'required|min:5', 'question' => 'required|min:5', ], $messages); if ($validator->fails()) { $messages = $validator->errors(); $errors = $messages->all(); $errorResults = 'Необходимо исправить следующие ошибки' . '<br>'; foreach ($errors as $error) { $errorResults .= '&nbsp;' . $error . '<br>'; } $request->session()->flash('danger', $errorResults); return back(); } $faq = Faq::where(['id' => $id])->first(); $faq->is_active = false; if ($request->is_active) { $faq->is_active = true; } $faq->answer = $request->answer; $faq->question = $request->question; $faq->order = $request->order; if ($faq->save()) { $request->session()->flash('success', 'Вы успешно изменили FAQ'); return redirect('admin/faq'); } }
{ "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.7423347", "0.70622426", "0.70568657", "0.6896551", "0.65835553", "0.64519453", "0.6348333", "0.6212436", "0.61450946", "0.6122591", "0.6114199", "0.6101911", "0.60876113", "0.60528636", "0.60177964", "0.6006609", "0.59725446", "0.594558", "0.59395295", "0.5938792", "0.5893...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { $faq = Faq::find($id); $faq->delete(); }
{ "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
die($_POST['email'] . " " . $_POST['password']);
public function confirm() { $email = $_POST['email']; $password = $_POST['password']; $confirmed = $this->login->CheckLogin($email, $password); $general_setting = $this->web->GetAll("g_s_id", "general_setting"); //die('we are here'); if ($confirmed) { $newdata = array( 'email' => $confirmed[0]->email, 'name' => $confirmed[0]->name, 'user_id' => $confirmed[0]->id, 'user_group_id' => $confirmed[0]->user_group_id, 'company_logo' => $general_setting[0]->company_logo, 'company_view_logo' => $general_setting[0]->company_view_logo, 'company_invoice_logo' => $general_setting[0]->company_invoice_logo, 'company_name' => $general_setting[0]->company_name, 'currency_symbol' => $general_setting[0]->currency_symbol, 'company_address' => $general_setting[0]->company_address, 'user_store_id' => $confirmed[0]->user_store_id, 'user_warehouse_id' => $confirmed[0]->user_warehouse_id, 'logged_in' => TRUE, 'failed' => false ); $this->session->set_userdata($newdata); echo "done"; } else { $newdata = array( 'failed' => TRUE ); $this->session->set_userdata($newdata); echo "failed"; } // die($email . " " . $password); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function login_obscure()\n {\n return '<strong>Whoops</strong>: Your username or password are incorrect, please try again.';\n }", "function died($error) {\r\n \r\n echo \"<h1>Whoops!</h1><h2>There appears to be something wrong with your submission.</h2>\";\r\n \r\n echo \"<strong><p>T...
[ "0.62466395", "0.6127143", "0.6029233", "0.60018635", "0.59776235", "0.59664917", "0.5846178", "0.57937956", "0.57752216", "0.5767569", "0.5766951", "0.576211", "0.5742378", "0.5742378", "0.57405674", "0.5737008", "0.5734198", "0.57230145", "0.57119", "0.57058793", "0.5704177...
0.0
-1
Encoding string according to RFC3986
protected function encode($value) { return str_replace(static::$characters_set_encoded, static::$characters_set, rawurlencode($value)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function encode_rfc3986($string)\n\t{\n\t\treturn str_replace('+', ' ', str_replace('%7E', '~', rawurlencode(($string))));\n\t}", "function p_enc($string) {\r\n $char_encoded = mb_convert_encoding($string, 'UTF-8', 'SJIS');\r\n return urlencode($char_encoded);\r\n}", "abstract function encode($s);"...
[ "0.72643566", "0.70784384", "0.7049284", "0.692924", "0.6846208", "0.6761426", "0.6655924", "0.6645543", "0.6614273", "0.66053146", "0.6595956", "0.65885293", "0.6510286", "0.650735", "0.6496986", "0.64969796", "0.6487117", "0.6451612", "0.64362377", "0.6435398", "0.6388115",...
0.59374064
85
This is effectively a constructorcall, since Magento doesn't call _construct for items loaded from the db.
protected function _afterLoad() { parent::_afterLoad(); if ($plexId = $this->getData('plex_id')) { $this->customer = Mage::getModel('customer/customer')->load($plexId); } else { $this->customer = Mage::getModel('customer/customer'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function __construct() {\r\n $this->items = $this->initItems();\r\n }", "public function _construct()\n {\n $this->_initProductCollection();\n parent::_construct();\n }", "public function __construct()\n {\n parent::__construct();\n $session = Mage::getS...
[ "0.76702815", "0.732443", "0.719515", "0.7031342", "0.6862528", "0.6862528", "0.683766", "0.6837236", "0.6825874", "0.681014", "0.6803631", "0.6788996", "0.67732745", "0.6768777", "0.67572993", "0.6743083", "0.6710229", "0.6689357", "0.6683816", "0.66826534", "0.66787773", ...
0.0
-1
Get the customer represented by this Plex User
public function getCustomer() { return $this->customer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCustomer()\n {\n return $this->hasOne(User::class, ['id' => 'customer_id']);\n }", "public function getCustomer()\n {\n return $this->hasOne(User::className(), ['id' => 'customer_id']);\n }", "public function customer()\n {\n return Customer::r...
[ "0.8600679", "0.8536459", "0.8350856", "0.8240036", "0.81745994", "0.8060675", "0.8058182", "0.8014956", "0.7872859", "0.7827071", "0.7789557", "0.7761184", "0.7719266", "0.7592633", "0.7531493", "0.7506492", "0.7506492", "0.7448405", "0.7430536", "0.7430536", "0.74242604", ...
0.81891966
5
Hace la consulta para seleccionar los tutores
public function allTutorModel($tabla){ $stmt = Conexion::conector()->prepare("SELECT * FROM $tabla"); $stmt->execute(); return $stmt->fetchAll(); $stmt->close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function seleccionarTodos();", "public function select(){\n\t$sql=\"SELECT * FROM tipousuario\";\n\treturn ejecutarConsulta($sql);\n}", "public function Select(){\n\t\t\t//Query para selecionar a tabela contatos\n\t\t\t$sql=\"SELECT p.*, e.* FROM tbl_paciente AS p INNER JOIN tbl_endereco AS e ON p.id_en...
[ "0.7032664", "0.70091945", "0.696269", "0.6933703", "0.6917176", "0.688792", "0.6878168", "0.6856485", "0.68518424", "0.6827299", "0.6801308", "0.6758395", "0.67441356", "0.6735374", "0.67289174", "0.6660712", "0.66454923", "0.6635402", "0.6618029", "0.6614077", "0.6607778", ...
0.0
-1
The annual rate that is charged for borrowing (or made by investing), expressed as a single percentage number that represents the actual yearly cost of funds over the term of a loan. This includes any fees or additional costs associated with the transaction.
public function annualPercentageRate($value) { $this->setProperty('annualPercentageRate', $value); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAnnualPrice(): float\n {\n $ratio = $this->getMonths() / 12;\n return $this->getPrice() / $ratio;\n }", "function it_returns_one_percent_for_one_payment_one_year_after_the_advance()\n {\n $this->addPayment(101, 365);\n\n $this->calculate()->shouldReturn(1.0...
[ "0.7048916", "0.6441658", "0.62440926", "0.6178631", "0.616266", "0.61594385", "0.60861105", "0.60031074", "0.5999476", "0.59917885", "0.59478843", "0.5942794", "0.59083617", "0.5865003", "0.5848721", "0.58162296", "0.5784676", "0.5766853", "0.5723153", "0.5710646", "0.564306...
0.67632556
1
The interest rate, charged or paid, applicable to the financial product. Note: This is different from the calculated annualPercentageRate.
public function interestRate($value) { $this->setProperty('interestRate', $value); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getInterestRate()\n {\n return (1 + ((float) $this->_webserviceHelper->getConfigData('interest_rate') / 100));\n }", "public function getAmountRate()\n {\n return $this->amountRate;\n }", "function interestRate($item_id){\n\t\treturn 0.1;\n\t}", "public function getC...
[ "0.7655486", "0.69028586", "0.6797481", "0.67399514", "0.643854", "0.64270866", "0.64270866", "0.64270866", "0.64270866", "0.64270866", "0.63610226", "0.63199997", "0.625513", "0.62267447", "0.62033004", "0.6155344", "0.6155344", "0.61388594", "0.60754204", "0.60649645", "0.6...
0.58847135
33
Description of fees, commissions, and other terms applied either to a class of financial product, or by a financial service organization.
public function feesAndCommissionsSpecification($value) { $this->setProperty('feesAndCommissionsSpecification', $value); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDiscountDescription();", "public function late_fee_text() {\n switch ($this->late_fee_type) {\n case 'percent':\n return sprintf('%s%%', number_format($this->late_fee));\n case 'amount':\n return money::display($this->late_fee);\n default:\n return '';\n ...
[ "0.63198", "0.58954066", "0.5836653", "0.5543391", "0.5529834", "0.55213416", "0.55158085", "0.54599667", "0.54230326", "0.54068226", "0.539984", "0.53977805", "0.5396218", "0.5394569", "0.538878", "0.5384064", "0.53805846", "0.53805846", "0.53741974", "0.5330823", "0.5329456...
0.0
-1