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
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(' -- MySQL dump 10.16 Distrib 10.1.37-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: loc...
{ "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.80062366", "0.79145443", "0.79145443", "0.79145443", "0.7572342", "0.756089", "0.75283176", "0.7498379", "0.7493237", "0.7453656", "0.74463314", "0.7433381", "0.74307704", "0.7427088", "0.741794", "0.73779047", "0.7374933", "0.7370453", "0.73637444", "0.73505706", "0.73290...
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('ALTER TABLE grps_users DROP FOREIGN KEY FK_504D2FDC9D86650F'); $this->addSql('ALTER TABLE grps...
{ "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.7950951", "0.7864321", "0.76065856", "0.749362", "0.73204786", "0.7246153", "0.7187384", "0.7153066", "0.7152508", "0.7141645", "0.713585", "0.71221447", "0.7115249", "0.71047515", "0.7098218", "0.70794773", "0.7077714", "0.7072182", "0.70686823", "0.706502", "0.7052322", ...
0.0
-1
consulta en la base de datos para asignar las variables
function post($datos){ $this->id=$datos['id']; $this->titulo=$datos['tittle']; $this->texto=$datos['text']; $this->fecha=$datos['date']; $this->autor=$datos['author']; $this->idProducto=$datos['id_product']; $mysqli=Conectar::conexion(); $consulta="SELECT * FROM comentarios WHERE idPost='".$this->id."'"; $res...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function fillInfo()\n\t{\n\t\t$database = new db_Database();\n\n\t\t$database->query(\"select * from users where id=:id\");\n\t\t$database->bind(\":id\",$this->id);\n\t\t$set=$database->resultset();\n\t\t\n\t\t$this->password=$set[0]['pass'];\n\t\t$this->userName=$set[0]['userName'];\t\t\n\t\t$this->email=...
[ "0.67745656", "0.6558152", "0.6313911", "0.6187922", "0.6149306", "0.60735816", "0.6059837", "0.60107696", "0.5993709", "0.5987372", "0.5974184", "0.59424347", "0.59372497", "0.5933025", "0.59287006", "0.59287006", "0.5927794", "0.5905943", "0.58873796", "0.58712286", "0.5862...
0.0
-1
fecha 2011/11/15 > 15 de noviembre de 2011
public function formateaFecha($fecha){ $array=explode("-",$fecha); $numeromes=$array[1]; $dia=$array[2]; $año=$array[0]; if($numeromes<10){ $numeromes=substr($numeromes,1); } $meses=array("enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buscar_fecha ($fecha) {\n global $DB;\n $fechamin = buscar_menor_fecha();\n $fechamax = buscar_mayor_fecha();\n if ($fecha >= $fechamin->date && $fecha <= $fechamax->date) {\n return true;\n } else {\n return false;\n }\n}", "function validar_fecha_stock($fechaStock)\n{\n...
[ "0.6864199", "0.6661839", "0.6651957", "0.65215904", "0.64997655", "0.6469526", "0.64584357", "0.64488643", "0.64139926", "0.6316203", "0.6313122", "0.6311606", "0.631111", "0.62935126", "0.628975", "0.62737405", "0.62468064", "0.62410116", "0.6230888", "0.6224867", "0.617994...
0.58211017
64
This method will serve the properties index page of the admin dashboard it will list all the properties
public function index() { if(Auth::user()->is_admin) { $property = Property::all(); } else { $property = Property::where("user_id", Auth::id())->latest()->get(); } return view("admin.property.index", ["properties" => $property]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n $user_id = Auth::id();\n $properties = Property::where(\"user_id\", $user_id)->get();\n return view(\"admin.properties.index\", compact(\"properties\"));\n }", "public function index() {\n $properties = Property::orderBy('created_at','desc')->order...
[ "0.8065521", "0.794593", "0.7908514", "0.78448224", "0.7841635", "0.78043926", "0.7773657", "0.77700764", "0.7711758", "0.7691722", "0.76515454", "0.7501011", "0.7486978", "0.73916197", "0.73829234", "0.7368688", "0.7355758", "0.7336918", "0.72659457", "0.7212003", "0.7170919...
0.7955247
1
this method will be called to add a new property afresh. it will only add basic details, location info, and pricing info on success, it will redirect the user back to the edit page of the created property where the user can now add photos and property features.
public function add(Request $request) { if($request->isMethod("GET")) { return view("admin.property.add", [ "types" => PropertyType::all(), "states" => PropertyState::all(), "currencies" => Currency::all() ]); } else if($request->isMethod("POST")) { $this->valid...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store()\n\t{\n\t\t$validator = Validator::make(Input::all(), Property::$rules);\n\t\t//dd($validator) ;\n\t if ($validator->passes()) {\n\t\t $property = new Property;\n\t\t $property->name = Input::get('name');\n\t\t $property->key = Input::get('key');\n\t\t $property->value = Input...
[ "0.72755873", "0.6783344", "0.6649812", "0.6515382", "0.64898837", "0.6471323", "0.6460506", "0.64482766", "0.64041764", "0.6403086", "0.6321117", "0.6259629", "0.6201523", "0.6154337", "0.61452883", "0.6132091", "0.6129847", "0.6096012", "0.6054864", "0.6048137", "0.6021136"...
0.6691195
2
This will serve the editing page for a property
public function edit(Request $request, $id) { if($request->isMethod("GET")) { $property = Property::find($id); if(is_null($property)) { return redirect()->back()->with("error", "Invalid Request, Object Not Found"); } return view("admin.property.edit", [ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Property $property)\n {\n //\n }", "public function edit(Property $property)\n {\n //\n }", "public function edit(Property $property)\n {\n $locs = Location::pluck('area','id');\n $tags = Tag::pluck('property','id');\n return view('app.prop...
[ "0.79631835", "0.79631835", "0.72413117", "0.71995866", "0.7050617", "0.7014664", "0.69389445", "0.6938554", "0.68690866", "0.68670905", "0.6842158", "0.6813458", "0.67859155", "0.6758462", "0.6732217", "0.6732217", "0.6729612", "0.67035055", "0.67013127", "0.6677669", "0.665...
0.61310536
51
Async method for adding photos after creating property
public function addPhoto(Request $request) { // Log::info($request->all()); if(Input::hasFile('file') && Input::file('file')->isValid() && !is_null($request->id)) { $file = Input::file('file'); $extension = $file->getClientOriginalExtension(); $f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($id, AddPhotoRequest $request)\n {\n $property = Property::find($id);\n\n if($property->photos()->count() === 10) {\n\n return response()->json([\n \"Property cannot have more than 10 photos\"\n ], 403);\n \n }\n\...
[ "0.6306265", "0.63003373", "0.62811214", "0.62595695", "0.62441295", "0.61837286", "0.59660083", "0.594623", "0.59230673", "0.58977985", "0.5869958", "0.58518547", "0.581117", "0.5793872", "0.5783948", "0.5781305", "0.57774526", "0.5776408", "0.5765149", "0.57524174", "0.5740...
0.59204334
9
Async method for deleting photos of properties I am returning 200 status code, so as to be able to handle the response in the jQuery onSuccess method it's a known error afterall
public function deletePhoto(Request $request) { // Log::info("request image delete " . $request['image']); if(is_null($request->image) || is_null($request->id)) { return response()-json(["error" => "No Image Specified"], 200); } $photo = Photo::where([ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deletePoImage() {\n // return data\n $returnArray = array('status' => false, 'msg' => 'Something went to wrong. Try again!!');\n\n // Get values\n $imageId = Input::get('id');\n\n // set image as delete\n $status = DB::table('po_images')\n ->...
[ "0.66654944", "0.6664268", "0.64997065", "0.64413315", "0.6407811", "0.62276196", "0.62003267", "0.6162665", "0.6128029", "0.6125796", "0.60897624", "0.60713035", "0.6058961", "0.59991664", "0.5987356", "0.5982436", "0.5976687", "0.5953793", "0.59520704", "0.59408665", "0.589...
0.6157899
8
method for updating property location data a form will actually be submitted to this route
public function updateLocation(Request $request) { // Log::info($request->all()); //validate $validator = Validator::make($request->all(), [ 'property_id' => "required", 'street_address' => 'required', 'street_number' => 'required', 'city' =>...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updatelocationAction()\n {\n $userInfo = new UserInfo($_POST);\n if ($userInfo->hasIPUpdated())\n {\n $userInfo->saveIP();\n $userInfo->findLocationFromIP();\n $userInfo->saveLocation();\n }\n }", "public function editLocationActi...
[ "0.66786766", "0.62279534", "0.62124825", "0.6158833", "0.6119688", "0.60711944", "0.6018104", "0.5987565", "0.59830767", "0.5955898", "0.59451574", "0.59150356", "0.59138036", "0.59138036", "0.59138036", "0.58964556", "0.58889407", "0.58526474", "0.5839611", "0.5802127", "0....
0.7209083
0
This method will update the basic details of the property
public function updateBasicDetails(Request $request) { //validate $validator = Validator::make($request->all(), [ 'property_id' => "required", 'title' => 'required', 'description' => "required", 'type_id' => "required", "state_id" => "requir...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function update()\n {\n if (self::checkIfSpecifiedTimePassed()) {\n DB::table('apimo_properties')->truncate();\n self::addOrEditPropertiesToDB(self::getAllRealEstate('properties'));\n }\n }", "public function update() {\n\t\t// When loaded, fully sync the p...
[ "0.6923822", "0.68684703", "0.6446486", "0.6446486", "0.6444383", "0.64082736", "0.63853353", "0.6317912", "0.6306556", "0.6300753", "0.62676156", "0.62123805", "0.6200455", "0.61912125", "0.6191038", "0.61856204", "0.61530495", "0.6133714", "0.61332744", "0.6120821", "0.6107...
0.5910352
56
This method is used to update the pricing information form the Change Pricing tab in the admin dashboard of editing properties
public function updatePricing(Request $request) { //validate $validator = Validator::make($request->all(), [ 'property_id' => "required", 'currency_id' => 'required', ], [ "property_id.required" => "Invalid Request, Incomplete Parameter" ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function editPriceMoney(){\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public function editPricing($id_ressource, $id_pricing, $price_day, $price_night, $price_we){\n\t\t\t\n\t\t$sql = \"update sy_j_resource_pricing set price_day=?, price_night=?, price_we=? \n\t\t where id_resource=? AND id_pricing=?\";\n\t\t...
[ "0.68430704", "0.68157333", "0.6764425", "0.67298573", "0.6607594", "0.6414073", "0.6236079", "0.6221465", "0.6185648", "0.6138873", "0.6100062", "0.60785323", "0.6005486", "0.6000712", "0.5997405", "0.599604", "0.59807956", "0.5956066", "0.5949354", "0.59248626", "0.59095114...
0.68624085
0
This method will be called to add new features to the property if the features already exists for the property, it will not be created at all
public function addFeatures(Request $request) { Log::info($request->all()); //validate $validator = Validator::make($request->all(), [ 'property_id' => "required", 'ids' => 'required' ], [ "property_id.required" => "Invalid Reque...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addFeatures(\\iface\\Feature $value){\n return $this->_add(1, $value);\n }", "public static function customCollection()\n\t{\n // recupera as features encontradas\n $features = Arr::flatten(parent::$collection);\n // limpa a collection\n parent::$collection = []...
[ "0.61995745", "0.57590413", "0.57353187", "0.57074875", "0.5681652", "0.564757", "0.5640176", "0.5635975", "0.5563456", "0.5554418", "0.55422723", "0.55403256", "0.5521432", "0.5475551", "0.54207385", "0.5413157", "0.54047537", "0.5402976", "0.5398632", "0.53951234", "0.53869...
0.59007484
1
Gets as deleteFilter Indicates that a client defined filter has to be deleted.
public function getDeleteFilter() { return $this->deleteFilter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDeleteFilter($deleteFilter)\n {\n $this->deleteFilter = $deleteFilter;\n return $this;\n }", "public function filterDeleted()\n {\n $owner = $this->getOwner();\n if (!$this->_withDeleted) {\n $criteria = $owner->getDbCriteria();\n $col...
[ "0.6830434", "0.62440896", "0.594549", "0.5823477", "0.5771991", "0.5718605", "0.570719", "0.5645988", "0.5638006", "0.56221944", "0.5621123", "0.561526", "0.5610027", "0.5610027", "0.5610027", "0.5610027", "0.5610027", "0.5610027", "0.5610027", "0.5610027", "0.5610027", "0...
0.84103584
0
Sets a new deleteFilter Indicates that a client defined filter has to be deleted.
public function setDeleteFilter($deleteFilter) { $this->deleteFilter = $deleteFilter; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDeleteFilter()\n {\n return $this->deleteFilter;\n }", "public function setFilter(string $filter);", "public function setFilter($filter){ }", "function alm_filters_deleted(){\n\t \tif(isset($_GET['delete_filter'])) {\n\t\t\t\t$deleted_filter = $_GET['delete_filter'];\n\t\t\t...
[ "0.66005456", "0.5509006", "0.54547924", "0.5427314", "0.53733385", "0.5347185", "0.5263824", "0.51702267", "0.50573516", "0.50025105", "0.49644238", "0.4883031", "0.48772648", "0.48612165", "0.48581144", "0.4849801", "0.4849665", "0.4832452", "0.48290065", "0.4812893", "0.48...
0.73296773
0
Gets as filterOperationApproved Indicates that a client defined filter was either stored or deleted successfully.
public function getFilterOperationApproved() { return $this->filterOperationApproved; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setFilterOperationApproved($filterOperationApproved)\n {\n $this->filterOperationApproved = $filterOperationApproved;\n return $this;\n }", "protected function getFilterStatus()\n {\n }", "public function getApproved(Filter $filter): Collection;", "function getStatus...
[ "0.6984814", "0.6470359", "0.63011914", "0.62001854", "0.5822388", "0.5698878", "0.5698878", "0.5688255", "0.5598923", "0.556423", "0.55439013", "0.55411315", "0.55411315", "0.55411315", "0.55411315", "0.55411315", "0.55411315", "0.55411315", "0.55411315", "0.55411315", "0.55...
0.838592
0
Sets a new filterOperationApproved Indicates that a client defined filter was either stored or deleted successfully.
public function setFilterOperationApproved($filterOperationApproved) { $this->filterOperationApproved = $filterOperationApproved; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFilterOperationApproved()\n {\n return $this->filterOperationApproved;\n }", "public function setApproved($approved)\n {\n $this->approved = $approved;\n\n return $this;\n }", "public function enable( FilterInterface $filter, array $config = array(), $default...
[ "0.62396383", "0.52762145", "0.5208865", "0.5204036", "0.52015895", "0.5195404", "0.5065239", "0.5055884", "0.50375956", "0.50305444", "0.50298804", "0.5004777", "0.50019604", "0.49949902", "0.49583828", "0.4934602", "0.49284792", "0.48539025", "0.4835113", "0.48198298", "0.4...
0.7903269
0
Gets as keyFilterReference The unique key identifier of a supplier applied filter.
public function getKeyFilterReference() { return $this->keyFilterReference; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFilterKey(){\n\t\treturn $this->_filterKey;\n\t}", "public function key()\n {\n return key($this->_filters);\n }", "public static function getSelectedFilterKey(): string\n {\n return self::$selectedFilterKey;\n }", "public function onGetFilterKey_result()\n\t{\n\t...
[ "0.6761874", "0.6245413", "0.62109077", "0.6030534", "0.59840685", "0.58636916", "0.5846539", "0.57216066", "0.57053804", "0.5455456", "0.5313955", "0.5270656", "0.5252126", "0.52237964", "0.521088", "0.5204774", "0.51935375", "0.519162", "0.5164629", "0.5160807", "0.51568013...
0.7804184
0
Sets a new keyFilterReference The unique key identifier of a supplier applied filter.
public function setKeyFilterReference($keyFilterReference) { $this->keyFilterReference = $keyFilterReference; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getKeyFilterReference()\n {\n return $this->keyFilterReference;\n }", "public function setFilterKey($key,$value,$operator='='){\n\t\t$this->_filterKey[$key] = array('value'=>$value,'operator'=>$operator);\n\t\treturn $this;\n\t}", "public static function key_filter($key_filter) {\n...
[ "0.63166285", "0.598563", "0.58239126", "0.5715501", "0.5542207", "0.5518431", "0.54787844", "0.5218697", "0.5175748", "0.5174462", "0.5164177", "0.51517725", "0.5140545", "0.5136364", "0.5038275", "0.5032707", "0.5028099", "0.50257206", "0.49938095", "0.4960543", "0.4957798"...
0.7481508
0
Sets a new filterReferenceExtension
public function setFilterReferenceExtension(\Calcinai\Siri\Objects\Datex\ExtensionType $filterReferenceExtension) { $this->filterReferenceExtension = $filterReferenceExtension; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setFilter($filter){ }", "public function setFilter($extension, $filterName)\n\t{\n\t\tif (isset($this->filters[$extension]) && in_array($filterName, $this->filters[$extension])) {\n\t\t\treturn $this;\n\t\t}\n\t\t$this->filters[$extension][] = $filterName;\n\t\treturn $this;\n\t}", "public func...
[ "0.5960222", "0.591273", "0.5813022", "0.5742641", "0.57393473", "0.56935257", "0.5650696", "0.54920083", "0.5487053", "0.53326154", "0.5331065", "0.5282406", "0.519563", "0.5167404", "0.5155197", "0.51499355", "0.5143413", "0.51397234", "0.51138633", "0.5103506", "0.5083382"...
0.69410515
0
get all slider image
public function index(){ $data['sliders'] = $sliderInfo = DB::table('sliders')->orderBy('position', 'asc')->get(); return view('backend.pages.slider.index', $data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getSlider_images()\n\t\t{\n\t\t\t$slider_images = $this->manage_content->getValue('slider_info','*');\n\t\t\tforeach($slider_images as $slider_image)\n\t\t\t{\n\t\t\t\tif($slider_image['slider_status'] == 1)\n\t\t\t\t{\n\t\t\t\t\techo '<a href=\"'.$slider_image[\"slider_link\"].'\"><img src=\"images/'.$sl...
[ "0.8106454", "0.7675217", "0.7391688", "0.7288753", "0.7241974", "0.700451", "0.6981837", "0.69620293", "0.6919534", "0.6901993", "0.68731964", "0.6873049", "0.6863281", "0.68365794", "0.6816364", "0.6791003", "0.6788382", "0.67839664", "0.6778838", "0.6757794", "0.6739646", ...
0.0
-1
Logs in a user.
public function actionLogin() { $this->layout = 'main-login'; if (!\Yii::$app->user->isGuest) { if (!$this->funcionario) { $this->redirect(\yii\helpers\Url::to('index.php?r=estabelecimento/produto')); } else { $this->redirect(\yii\helpers\Url::to(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loginUser() {\n self::$isLoggedIn = true;\n $this->session->setLoginSession(self::$storedUserId, self::$isLoggedIn);\n $this->session->setFlashMessage(1);\n }", "public function signInAction()\n {\n $userData = $this->manager->findOneBy(['username' => $this->http...
[ "0.75781506", "0.7324238", "0.72898465", "0.72539926", "0.72523606", "0.72420436", "0.713991", "0.7139465", "0.7107931", "0.70777375", "0.70596415", "0.70445204", "0.70346266", "0.7022269", "0.70035136", "0.70011777", "0.6968064", "0.6928372", "0.6900205", "0.6899876", "0.688...
0.0
-1
Logs out the current user.
public function actionLogout() { Yii::$app->user->logout(); return $this->goLogin(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function logOut()\n {\n $auth = new AuthenticationService();\n\n if ($auth->hasIdentity()) {\n Session::getDefaultManager()->forgetMe();\n $auth->clearIdentity();\n }\n }", "public function LogOut() {\n\t\t$this->session->UnsetAuthenticatedUser();\n\t\t$thi...
[ "0.8112607", "0.8039954", "0.79536504", "0.794088", "0.7931162", "0.7927228", "0.7886047", "0.7871737", "0.7854892", "0.7783059", "0.77484393", "0.7744306", "0.77314657", "0.77302647", "0.77201074", "0.7706881", "0.76974803", "0.7685858", "0.7677316", "0.76711166", "0.7653739...
0.0
-1
/ Excluir o cashback e a variacao
public function deletePromocao($promocao) { CB07CASHBACK::deleteAll(['CB07_VARIACAO_ID' => $promocao]); CB06VARIACAO::deleteAll(['CB06_ID' => $promocao]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function desreservarStock(){\n $registrosReservas = ProductosTransacciones::obtenerTransacciones('pedido_id',$this->id_pedido);\n\n //Tengo que crear movimientos por reserva segun el stock disponible y prioridad de las bodegas\n foreach ($registrosReservas as $transaccion) {\n\n //Revi...
[ "0.578221", "0.5552638", "0.55135065", "0.55015993", "0.54113245", "0.5390799", "0.5388894", "0.53554195", "0.53416437", "0.5314374", "0.5308717", "0.52817506", "0.52706516", "0.52593285", "0.5217622", "0.5201188", "0.5194405", "0.5190084", "0.5178804", "0.5157779", "0.515608...
0.0
-1
altera status da entrega
public function setStatusDelivery($param) { $CB16PEDIDO = CB16PEDIDO::find()->where("CB16_ID = ".$param['pedido']." and CB16_STATUS >= 30")->all()[0]; if ($CB16PEDIDO) { $CB16PEDIDO->setAttribute('CB16_STATUS_DELIVERY', $param['new_status']); $CB16PEDIDO->save(); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update_status();", "function setStatus($new_status)\n {\n $this->status = $new_status;\n }", "public function change_status(){\n $data = array(\n 'status' => $this->input->post('status') ,\n 'status_changer' => $this->data[\"user_id\"] ,\n );\n ...
[ "0.73309135", "0.72572637", "0.7174051", "0.7148859", "0.70969886", "0.7033785", "0.7027022", "0.70061916", "0.6916643", "0.6906857", "0.6906857", "0.6801535", "0.6780195", "0.676849", "0.6758553", "0.6747038", "0.6740935", "0.6681312", "0.6670862", "0.6665013", "0.66554385",...
0.6475865
45
permite baixar apenas os pedidos pagos
public function saveBaixaCompra($param) { $CB16PEDIDO = CB16PEDIDO::find()->where("CB16_ID = ".$param['pedido']." and CB16_STATUS >= 30")->all()[0]; if ($CB16PEDIDO) { $CB16PEDIDO->setAttribute('CB16_STATUS', 20); $CB16PEDIDO->save(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function corrigirPlanosPagto()\n\t{\n\t\t$this->dbcrosier->trans_start();\n\n\t\t$query = $this->dbcrosier->query(\"SELECT * FROM ekt_venda WHERE cond_pag = '0.99'\") or $this->exit_db_error();\n\t\t$result = $query->result_array();\n\n\t\t// Pega todos os produtos da ekt_produto para o $mesano\n\t\t$i = 0...
[ "0.6366425", "0.61286443", "0.6070932", "0.60588753", "0.60412765", "0.60246855", "0.5995573", "0.59791434", "0.5965463", "0.5898063", "0.58923334", "0.5890007", "0.5868854", "0.5865253", "0.5859058", "0.583705", "0.5820905", "0.580117", "0.57949877", "0.57899576", "0.5783308...
0.0
-1
permite baixar apenas os pedidos pagos
public function saveAvaliacao($param) { $transaction = \Yii::$app->db->beginTransaction(); try { // CADASTRO -------------------------------------------------------- if(!($CB19_ID = $param['CB19_ID'])) { // salva a avaliacao ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function corrigirPlanosPagto()\n\t{\n\t\t$this->dbcrosier->trans_start();\n\n\t\t$query = $this->dbcrosier->query(\"SELECT * FROM ekt_venda WHERE cond_pag = '0.99'\") or $this->exit_db_error();\n\t\t$result = $query->result_array();\n\n\t\t// Pega todos os produtos da ekt_produto para o $mesano\n\t\t$i = 0...
[ "0.63670135", "0.61290604", "0.60711175", "0.60591596", "0.6041709", "0.6026482", "0.59963846", "0.5979023", "0.59657943", "0.5898914", "0.5894131", "0.5891553", "0.58703494", "0.58650833", "0.58602935", "0.58383495", "0.5821982", "0.58014363", "0.5795225", "0.5791302", "0.57...
0.0
-1
Generates the configuration tree builder.
public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('deployer'); $this->addServerSection($rootNode); $this->addFarmSection($rootNode); $this->addProjectSection($rootNode); return $treeBuilder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getConfigTreeBuilder()\n {\n }", "public function getConfigTreeBuilder()\n {\n $treeBuilder = new TreeBuilder('chameleon_system_core');\n $root = $treeBuilder->getRootNode();\n $root->isRequired();\n\n $root\n ->children()\n ->scalarN...
[ "0.7528792", "0.73049206", "0.72124696", "0.70483494", "0.7025038", "0.7012615", "0.6973417", "0.6945826", "0.68797654", "0.68684536", "0.6863819", "0.6863366", "0.6855712", "0.68030804", "0.6794495", "0.67527676", "0.6741344", "0.67340124", "0.6716738", "0.6703568", "0.66852...
0.6695264
20
Get the validation rules that apply to the request.
public function rules() { return [ 'category_id' => ['required', 'numeric'], 'title' => ['required', 'string', 'min:5', 'max:191'], 'author' => ['required', 'string', 'min:2', 'max:80'], 'status'=> ['sometimes'], 'description' => ['sometimes'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "public function getRules()\n {\n return $this->validator->getRules();\n }", "public function getValidationRules()\n {\n $rules = [];\n\n // Get the sche...
[ "0.8342703", "0.80143493", "0.7937251", "0.79264987", "0.79233825", "0.79048395", "0.78603816", "0.7790699", "0.77842164", "0.77628785", "0.7737272", "0.7733618", "0.7710535", "0.7691693", "0.76849866", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.76830...
0.0
-1
try logging in successfully
public function LoginSuccessfulTest(FunctionalTester $I){ $I->am('user'); $I->wantTo('go to register'); $I->lookForwardTo('getting registered successfully'); HelperController::common_login($I, $this->name, $this->email, $this->password); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function tryLogIn(){\n if(count(self::$loginErrors) === 0){\n $password = md5(self::$loginPassword);\n $query = self::$connection->db->prepare(\"SELECT * FROM users WHERE email = ? AND password = ?\");\n $query->bind_param(\"ss\", self::$loginEmail, $password);\n ...
[ "0.74838716", "0.73421144", "0.7287301", "0.7263146", "0.7194604", "0.71943456", "0.71316534", "0.70904535", "0.70663095", "0.69905967", "0.6978513", "0.69782495", "0.6976616", "0.69530475", "0.69530475", "0.6947338", "0.6939042", "0.69335675", "0.69001037", "0.6892607", "0.6...
0.0
-1
try logging in wrong password
public function loggingWithWrongPasswordTest(FunctionalTester $I){ HelperController::common_login($I, $this->name, $this->email, $this->password); HelperController::logout($I); $I->fillField('email', $this->email); $I->fillField('password', 'wrong_password'); $I->click( '#login_f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testLoginPassword(){\r\n\t\t\t$testLogin = [\r\n\t\t\t\t'username' => 'Right',\r\n\t\t\t\t'password' => ''\r\n\t\t\t];\r\n\t\t\t$validLogin = loginTest($testLogin);\r\n\t\t\t$this->assertFalse($validLogin);\r\n\t\t}", "private function loginFailed()\n {\n //Login failed...\n }", "f...
[ "0.6795576", "0.677217", "0.67683905", "0.67590916", "0.6731218", "0.6715763", "0.67052746", "0.6624566", "0.6568287", "0.6545035", "0.65382296", "0.65194476", "0.64950544", "0.6470538", "0.6459191", "0.6429465", "0.64276356", "0.64220965", "0.637601", "0.6360934", "0.6351592...
0.6593419
8
enter activation code twice as logged in user
public function visitActivationUrlTwiceAsLoggedUserTest(FunctionalTester $I){ $user = HelperController::common_login($I, $this->name, $this->email, $this->password); $I->assertFalse( (bool) $user->active); $I->see($this->name, '.logged_user'); $I->amOnPage( route('account_activation', $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function users_user_activation($args)\n{\n $code = base64_decode(FormUtil::getPassedValue('code', (isset($args['code']) ? $args['code'] : null), 'GETPOST'));\n $code = explode('#', $code);\n\n if (!isset($code[0]) || !isset($code[1])) {\n return LogUtil::registerError(__('Error! Could not activate ...
[ "0.7236365", "0.7130935", "0.70675623", "0.70266217", "0.69982743", "0.69931304", "0.6957549", "0.69444436", "0.6941962", "0.68534756", "0.6784595", "0.6778454", "0.67268944", "0.6683357", "0.6678812", "0.6661314", "0.6653845", "0.66179186", "0.6600756", "0.65985847", "0.6594...
0.0
-1
enter activation code twice as logged in user
public function visitActivationUrlTwiceAsGuestTest(FunctionalTester $I){ $user = HelperController::common_login($I, $this->name, $this->email, $this->password); $I->assertFalse( (bool) $user->active); HelperController::logout($I); $I->see( trans( 'text.log_in' ) , '.login_button'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function users_user_activation($args)\n{\n $code = base64_decode(FormUtil::getPassedValue('code', (isset($args['code']) ? $args['code'] : null), 'GETPOST'));\n $code = explode('#', $code);\n\n if (!isset($code[0]) || !isset($code[1])) {\n return LogUtil::registerError(__('Error! Could not activate ...
[ "0.7236365", "0.7130935", "0.70675623", "0.70266217", "0.69982743", "0.69931304", "0.6957549", "0.69444436", "0.6941962", "0.68534756", "0.6784595", "0.6778454", "0.67268944", "0.6683357", "0.6678812", "0.6661314", "0.6653845", "0.66179186", "0.6600756", "0.65985847", "0.6594...
0.0
-1
tests that a user can change password
public function changePasswordTest(FunctionalTester $I){ $I->amOnPage( route('change_password') ); $I->seeResponseCodeIs(403); $user = HelperController::common_login($I, $this->name, $this->email, $this->password); $current_password = $user->password; $I->amOnPage( route('chang...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testPasswordChange(): void\n {\n // Test strong password - should pass.\n $this->setUpUserPostData(Constants::SAFE_PASSWORD);\n $this->assertIsInt(\\edit_user($this->dummy_user_id));\n\n // Test weak password - should pass as well.\n $this->setUpUserPostData(Co...
[ "0.85630643", "0.8211274", "0.81336457", "0.8131726", "0.7933132", "0.7632666", "0.76032466", "0.75921154", "0.75810003", "0.75557506", "0.7528963", "0.748404", "0.7481379", "0.7481379", "0.7467652", "0.74315405", "0.7419309", "0.7411667", "0.7397919", "0.7383715", "0.7377609...
0.76581526
5
test forgotten password email
public function forgottenpasswordTest(FunctionalTester $I){ $user = HelperController::common_login($I, $this->name, $this->email, $this->password); HelperController::logout($I); $I->amOnPage( route('auth.password.reset') ); $I->fillField('.email_form', 'nonregistered email'); $I-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function testForgotPassword()\n {\n $result = $this->mailgunModel->forgotPassword($this->dataTest->to,\n $this->dataTest->pass,\n $this->dataTest->html\n );\n $this->assertEquals(\"200\", $result->http_res...
[ "0.8302528", "0.8201703", "0.7918458", "0.77633613", "0.774659", "0.75689036", "0.75074136", "0.7476264", "0.7460115", "0.7450665", "0.7439147", "0.74033874", "0.7403045", "0.73666114", "0.73210585", "0.7268299", "0.72494984", "0.72469765", "0.72402436", "0.7231359", "0.72309...
0.7880891
3
get all patient/case list
static function getVarPatientList($user_id) { //$sql = "select distinct p1.patient_id, p1.diagnosis, p2.case_id from patients p1, var_patients p2 where p1.patient_id=p2.patient_id order by patient_id"; //if (User::accessAll()) // $sql = "select distinct p4.id as project_id, p4.name as project_name, p1.patient_id...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,...
[ "0.693707", "0.6927906", "0.692165", "0.68596965", "0.6799311", "0.6661341", "0.6645735", "0.66317564", "0.6587334", "0.65788937", "0.6512201", "0.65121615", "0.6505002", "0.6388924", "0.6385009", "0.63823056", "0.6364671", "0.63350123", "0.63114154", "0.62936753", "0.6286863...
0.59338015
41
TODO: Implement deserialize() method.
public function deserialize($entity, $data) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deserialize($data);", "public function deserialize($data)\n {\n }", "abstract public function unserialize($serialized);", "public function unserialize($serialized);", "public function unserialize($serialized);", "public function toObject(){\r\n return json_decode($this->toJso...
[ "0.75697446", "0.7370792", "0.67385", "0.6601346", "0.6601346", "0.65343684", "0.65259534", "0.6524597", "0.6505942", "0.6475352", "0.6462801", "0.63833904", "0.6347862", "0.6347862", "0.63185483", "0.63142353", "0.62484187", "0.62484187", "0.62466055", "0.62466055", "0.62466...
0.5761206
51
TODO: Implement serialize() method.
public function serialize($entity) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "abstract public function se...
[ "0.8509704", "0.8509704", "0.8509408", "0.8509408", "0.8509408", "0.8509408", "0.8509408", "0.8509408", "0.8497572", "0.8497572", "0.8449715", "0.84394056", "0.84394056", "0.84394056", "0.81594163", "0.81594163", "0.8082829", "0.80625236", "0.7618936", "0.7478766", "0.7451927...
0.0
-1
Register any application services.
public function register() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register()\n {\n $this->registerServices();\n }", "public function register()\n {\n $this->registerAssets();\n $this->registerServices();\n }", "public function register()\n\t{\n\n $this->registerUserService();\n $this->registerCountryService();\n ...
[ "0.7879658", "0.7600202", "0.74930716", "0.73852855", "0.736794", "0.7306089", "0.7291359", "0.72896826", "0.72802424", "0.7268026", "0.7267702", "0.72658145", "0.7249053", "0.72171587", "0.7208486", "0.7198799", "0.7196415", "0.719478", "0.7176513", "0.7176227", "0.7164647",...
0.0
-1
Bootstrap any application services.
public function boot() { ListResource::withoutWrapping(); ListCollection::withoutWrapping(); ProductByCategoryResources::withoutWrapping(); ProductByCategoryCollection::withoutWrapping(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function bootstrap(): void\n {\n if (! $this->app->hasBeenBootstrapped()) {\n $this->app->bootstrapWith($this->bootstrappers());\n }\n\n $this->app->loadDeferredProviders();\n }", "public function boot()\n {\n // Boot here application\n }", "public func...
[ "0.7344842", "0.7212776", "0.7207748", "0.7123287", "0.7109729", "0.70822036", "0.7076881", "0.70718396", "0.7051853", "0.7025475", "0.7011949", "0.70043486", "0.6955807", "0.69322443", "0.69319373", "0.69272774", "0.6911386", "0.69069713", "0.6898877", "0.6898432", "0.689659...
0.0
-1
Calculate the total reward amount of the Monthly Service Excellence rewards program for each enrolled agency in a given year/month
public function calculateReward(int $year, int $month = null): array { $whereClause = [ ['achieved', true], ['agency_rewards_program.rewards_program_id', RewardsProgram::MONTHLY_SERVICE_EXCELLENCE_ID] ]; if ($year) { $whereClause[] = ['year', $year]; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function earnedTotal($id=null, $associate=null, $start_year=null, $end_year=null)\n {\n $attend = array();\n $leave = array();\n $total_earned = 0;\n $total_enjoyed = 0;\n $total_due = 0;\n $total_work = 0;\n\n #---------------------------------\n ...
[ "0.58534706", "0.55079216", "0.5489875", "0.5387489", "0.5344066", "0.5293691", "0.528958", "0.5258331", "0.5227522", "0.519151", "0.51081103", "0.507879", "0.50779545", "0.50777465", "0.5031171", "0.49952346", "0.49944076", "0.4994315", "0.49848998", "0.4982182", "0.4981929"...
0.7051478
0
/ is this a composite design pattern ?
private function array_to_xml($student_info, &$xml_student_info,$nodeName) { foreach($student_info as $key => $value) { $key = str_replace(array(' '),array(''),$key); if(is_array($value)) { if(!is_numeric($key)){ $subnode = $xml_student_info->addChild("$key")...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __CONSTRUCT(){\n\t}", "abstract protected function __construct();", "abstract function __construct();", "protected abstract function __construct();", "abstract protected function external();", "protected function __construct() {\r\r\n // contain shared code in its constructor\r\r\n...
[ "0.59798044", "0.59225744", "0.58293927", "0.5752177", "0.56989264", "0.56787235", "0.5659309", "0.5659309", "0.5659309", "0.5655723", "0.5634769", "0.56249774", "0.56249774", "0.56249774", "0.56249774", "0.56249774", "0.56249774", "0.5573394", "0.55598074", "0.55577993", "0....
0.0
-1
Display a listing of the resource.
public function index() { $id=Auth::user()->id; $userpr_ids=userchat::where('user_id','=',$id)->get()->pluck('pro_id')->toArray(); //$chat = DB::select( DB::raw("SELECT * FROM userchats WHERE user_id='$id'")); $chat = userchat::where('user_id',$id)->first(); $chatt = DB::sele...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { // }
{ "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.8233183", "0.81894475", "0.6830127", "0.6498529", "0.6496276", "0.6469191", "0.64627224", "0.63619924", "0.6308743", "0.62809277", "0.6218707", "0.61915004", "0.617914", "0.6172935", "0.6137578", "0.6118736", "0.6107122", "0.6106576", "0.60931313", "0.60798067", "0.6046669...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $request) { $request->validate([ 'name'=>'required', 'phone'=>'required', 'location_add'=>'required', 'country'=>'required' ]); $update = User::find($request->id); $update->name = $request->name; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "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
mengambil POST yang harus di approve olah user tersebut
public function getByApproveUser($user_id) { $query = <<< __query select a.*, c.NAME from B_POSTS a INNER JOIN B_POST_APPROVES b ON (a.ID = b.POST_ID) INNER JOIN B_USERS c ON (a.USER_ID = c.ID) where b.USER_ID = '$user_id' AND b.APPRO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function approve() {\n\n }", "public function publishuser(){\n $post = User::where('id', \\request(\"id\"))->first();\n $post->approved = $post->approved==\"pending\"?\"approved\":\"pending\";\n $post->save();\n return redirect(route('voyager.users.index'));\n }", ...
[ "0.72634614", "0.7230634", "0.70822245", "0.7035418", "0.70323926", "0.70258343", "0.70066947", "0.6881222", "0.68757385", "0.68666846", "0.6864265", "0.68475556", "0.6846282", "0.6743815", "0.67027783", "0.6675582", "0.65586007", "0.6529838", "0.6525549", "0.65224856", "0.64...
0.0
-1
Run the database seeds.
public function run() { DB::table('destinacijas')->insert([ 'Grad' => 'Beograd', 'Zemlja' => 'Srbija', 'Opisi' => 'Destinacija', 'Latitude' => '44.30812668488613', 'Longitude' => '21.189193725585938', 'created_at' => '2018-02-07 08:42:2...
{ "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
Gets the value of the TransactionId property.
public function getTransactionId() { return $this->_fields['TransactionId']['FieldValue']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTransactionID()\n\t{\n\t\treturn $this->transaction_id;\n\t}", "public function getTransactionID()\r\n\t{\r\n\t\treturn $this->root->getAttribute('transactionid');\r\n\t}", "public function getTransactionIdentifier()\n {\n return $this->transactionIdentifier;\n }", "public fun...
[ "0.8380556", "0.8225381", "0.8050818", "0.8015609", "0.8004488", "0.7982758", "0.7972595", "0.79565585", "0.79547995", "0.7942626", "0.79128546", "0.78801", "0.78801", "0.78801", "0.78311455", "0.78125185", "0.77974504", "0.7765088", "0.7728045", "0.7724168", "0.7680048", "...
0.7168297
26
Sets the value of the TransactionId property.
public function setTransactionId($value) { $this->_fields['TransactionId']['FieldValue'] = $value; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTransactionId($id)\n {\n $this->_data['trx_id'] = $id;\n }", "public function setTxId($var)\n {\n GPBUtil::checkString($var, True);\n $this->tx_id = $var;\n\n return $this;\n }", "public function setCustomerTransactionId($id) {\n \t$this->customerTr...
[ "0.7440668", "0.73687536", "0.6994135", "0.65264755", "0.6516705", "0.6362519", "0.60952514", "0.605746", "0.60227877", "0.5707884", "0.56591773", "0.56493515", "0.5627069", "0.5623414", "0.5526677", "0.5519431", "0.55075014", "0.5496418", "0.54957175", "0.54440516", "0.54440...
0.5608448
14
Sets the value of the TransactionId and returns this instance
public function withTransactionId($value) { $this->setTransactionId($value); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTransactionId($transactionId)\n {\n $this->transactionId = $transactionId;\n return $this;\n }", "public function setTransId($transId)\n {\n $this->transId = $transId;\n return $this;\n }", "public function setTxId($var)\n {\n GPBUtil::checkS...
[ "0.78278446", "0.71686506", "0.7119031", "0.66812027", "0.65610796", "0.64864177", "0.6478361", "0.6320493", "0.62555915", "0.6173719", "0.61566114", "0.61276656", "0.61233777", "0.6117405", "0.6088881", "0.6081403", "0.60770875", "0.60517526", "0.6038887", "0.6038887", "0.60...
0.6165917
10
Checks if TransactionId is set
public function isSetTransactionId() { return !is_null($this->_fields['TransactionId']['FieldValue']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function in_transaction() {\r\n return isset($this->sem_id) && $this->sem_id;\r\n }", "private function isTransactionExist($transactionId)\n {\n if (strlen($transactionId) <= 3) {\n return false;\n }\n\n $insertOrder = $this->db->fetchRow(\n 'SELECT id FRO...
[ "0.6433023", "0.6415373", "0.63016856", "0.6268571", "0.6195287", "0.61504877", "0.60925895", "0.6056837", "0.60351664", "0.6031524", "0.60262144", "0.59809947", "0.5930771", "0.59139407", "0.5894046", "0.58718264", "0.5870215", "0.58631074", "0.5844541", "0.5806273", "0.5772...
0.6665745
0
Gets the value of the TransactionDate property.
public function getTransactionDate() { return $this->_fields['TransactionDate']['FieldValue']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTransactionDate() {\n\t\treturn self::$_transactionDate;\n\t}", "public function getDateTransaction()\n {\n return $this->dateTransaction;\n }", "public function getTransactionDateAttribute(){\n return $this->format_date($this->attributes['transaction_date']);\n }", ...
[ "0.8441441", "0.8270813", "0.7253118", "0.71960604", "0.7015922", "0.6742537", "0.67181605", "0.67136", "0.66942775", "0.66942775", "0.66942775", "0.66942775", "0.66942775", "0.66942775", "0.66942775", "0.66942775", "0.66942775", "0.66942775", "0.66942775", "0.66942775", "0.6...
0.8536782
0
Sets the value of the TransactionDate property.
public function setTransactionDate($value) { $this->_fields['TransactionDate']['FieldValue'] = $value; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTransactionDate($value) {\n\t\tself::$_transactionDate = $value;\n\t}", "public function setTxnDate($date)\n\t{\n\t\treturn $this->setDateType('TxnDate', $date);\n\t}", "public function setDateTransaction($dateTransaction)\n {\n $this->dateTransaction = $dateTransaction;\n\n ...
[ "0.8202121", "0.7464201", "0.74367666", "0.67547405", "0.67321664", "0.67321664", "0.6634368", "0.6578614", "0.641355", "0.63304555", "0.6203483", "0.6146795", "0.6071096", "0.5977475", "0.5973856", "0.59625137", "0.5955056", "0.595319", "0.5939422", "0.5900034", "0.58811903"...
0.7589754
1
Sets the value of the TransactionDate and returns this instance
public function withTransactionDate($value) { $this->setTransactionDate($value); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTransactionDate($value) \n {\n $this->_fields['TransactionDate']['FieldValue'] = $value;\n return $this;\n }", "public function setDateTransaction($dateTransaction)\n {\n $this->dateTransaction = $dateTransaction;\n\n return $this;\n }", "public functi...
[ "0.83423644", "0.7978316", "0.76280487", "0.71316916", "0.6641158", "0.65859526", "0.6584126", "0.6565608", "0.65510494", "0.65486574", "0.6525574", "0.65180653", "0.65180653", "0.6491724", "0.6490778", "0.6485906", "0.6485906", "0.6485906", "0.6485906", "0.6485906", "0.64859...
0.77789026
2
Checks if TransactionDate is set
public function isSetTransactionDate() { return !is_null($this->_fields['TransactionDate']['FieldValue']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isSetTransactionPostedDate()\n {\n return !is_null($this->_fields['TransactionPostedDate']['FieldValue']);\n }", "public function issetPaymentDate(): bool\n {\n return isset($this->paymentDate);\n }", "public function setTransactionDate($value) {\n\t\ts...
[ "0.69332784", "0.6855565", "0.65742403", "0.65198755", "0.6270264", "0.624418", "0.6243844", "0.6243844", "0.61545384", "0.5987248", "0.596079", "0.5952231", "0.594129", "0.5886225", "0.5831047", "0.5816786", "0.578498", "0.5769643", "0.574846", "0.5746798", "0.57334036", "...
0.8191195
0
Gets the value of the TransactionSerialNumber property.
public function getTransactionSerialNumber() { return $this->_fields['TransactionSerialNumber']['FieldValue']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSerialNumber()\n {\n return $this->serialNumber;\n }", "public function getSerialNumber() {\n\t\treturn self::$_serialNumber;\n\t}", "public function setTransactionSerialNumber($value) \n {\n $this->_fields['TransactionSerialNumber']['FieldValue'] = $value;\n re...
[ "0.78678876", "0.7796591", "0.72673583", "0.7085732", "0.703391", "0.6638911", "0.6625839", "0.6535014", "0.6534574", "0.6502947", "0.6418346", "0.63189894", "0.6315975", "0.6288073", "0.6274891", "0.6246662", "0.6237993", "0.6237993", "0.6216595", "0.62128127", "0.6210147", ...
0.86894405
0
Sets the value of the TransactionSerialNumber property.
public function setTransactionSerialNumber($value) { $this->_fields['TransactionSerialNumber']['FieldValue'] = $value; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSerialNumber($value) {\n\t\tself::$_serialNumber = $value;\n\t}", "public function withTransactionSerialNumber($value)\n {\n $this->setTransactionSerialNumber($value);\n return $this;\n }", "public function setDeviceSerialNumber($deviceSerialNumber)\n {\n $this-...
[ "0.71494627", "0.7022598", "0.6847384", "0.6510159", "0.64565825", "0.62683654", "0.6162722", "0.61319673", "0.6049664", "0.6021285", "0.584186", "0.5558376", "0.55288124", "0.54489386", "0.5399534", "0.5309954", "0.51309836", "0.51309836", "0.51204187", "0.5115362", "0.51021...
0.8068719
0
Sets the value of the TransactionSerialNumber and returns this instance
public function withTransactionSerialNumber($value) { $this->setTransactionSerialNumber($value); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTransactionSerialNumber($value) \n {\n $this->_fields['TransactionSerialNumber']['FieldValue'] = $value;\n return $this;\n }", "public function setSerialNumber(string $serialNumber)\n {\n $this->serialNumber = $serialNumber;\n\n return $this;\n }", "pu...
[ "0.868964", "0.72709066", "0.70224476", "0.67633784", "0.6526414", "0.63606894", "0.62040895", "0.62040895", "0.60557324", "0.6014345", "0.5876965", "0.5850318", "0.57726574", "0.57658195", "0.5714459", "0.5632368", "0.562899", "0.5597167", "0.5593427", "0.55563664", "0.55221...
0.8291969
1
Checks if TransactionSerialNumber is set
public function isSetTransactionSerialNumber() { return !is_null($this->_fields['TransactionSerialNumber']['FieldValue']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTransactionSerialNumber($value) \n {\n $this->_fields['TransactionSerialNumber']['FieldValue'] = $value;\n return $this;\n }", "function isValidSerialNumber($serialNumber) {\n\tunset($serialNumber);\n\treturn true;\n}", "public function getTransactionSerialNumber() \n ...
[ "0.67066044", "0.64383197", "0.6247677", "0.5766729", "0.57062525", "0.567914", "0.56780404", "0.56637037", "0.56022024", "0.55418015", "0.5421898", "0.5371307", "0.52489585", "0.52266604", "0.51632077", "0.51622605", "0.51546293", "0.5148135", "0.5095377", "0.50729585", "0.5...
0.7930128
0
Gets the value of the TransactionAmount.
public function getTransactionAmount() { return $this->_fields['TransactionAmount']['FieldValue']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTransactionAmount()\n {\n return $this->transactionAmount;\n }", "public function getAmount()\r\n\t{\r\n\t\treturn $this->getTransaction()->getAmount();\r\n\t}", "public function getAmount()\n {\n return $this->get(self::_AMOUNT);\n }", "public function getAmount(...
[ "0.82374847", "0.79092526", "0.784267", "0.784267", "0.784267", "0.784267", "0.784267", "0.777276", "0.7733916", "0.77337676", "0.7674311", "0.76671994", "0.76671994", "0.76671994", "0.76671994", "0.76671994", "0.76671994", "0.76671994", "0.76671994", "0.76671994", "0.7667199...
0.85203886
0
Sets the value of the TransactionAmount.
public function setTransactionAmount($value) { $this->_fields['TransactionAmount']['FieldValue'] = $value; return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAmount($amount)\n {\n $this->amount = $amount;\n }", "public function setAmount($amount)\n {\n $this->amount = $amount;\n }", "public function setAmount($amount){\n\n $this->amount = $amount;\n\n }", "public function setAmount($amount)\n {\n $t...
[ "0.7185124", "0.7185124", "0.7093307", "0.69473004", "0.68589866", "0.68386364", "0.6837922", "0.682921", "0.67454344", "0.67162365", "0.65061307", "0.6404021", "0.64025396", "0.64025396", "0.64025396", "0.64025396", "0.6392744", "0.6290554", "0.62542206", "0.6233823", "0.619...
0.84026784
0
Sets the value of the TransactionAmount and returns this instance
public function withTransactionAmount($value) { $this->setTransactionAmount($value); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTransactionAmount($transactionAmount)\n {\n $this->transactionAmount = $transactionAmount;\n\n return $this;\n }", "public function setTransactionAmount($value) \n {\n $this->_fields['TransactionAmount']['FieldValue'] = $value;\n return;\n }", "public ...
[ "0.78807884", "0.749916", "0.7292957", "0.7219336", "0.72088444", "0.7125251", "0.7125251", "0.7125251", "0.7125251", "0.7098724", "0.7091187", "0.70649517", "0.7045191", "0.6979068", "0.69522476", "0.6917814", "0.68864", "0.6825232", "0.67293394", "0.67293394", "0.67250955",...
0.81374246
0
Checks if TransactionAmount is set
public function isSetTransactionAmount() { return !is_null($this->_fields['TransactionAmount']['FieldValue']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isSetAmount()\n {\n return !is_null($this->_fields['Amount']['FieldValue']);\n }", "public function isSetAmount()\n {\n return !is_null($this->_fields['Amount']['FieldValue']);\n }", "public function hasAmount()\n {\n return isset($this->amount);\n ...
[ "0.7200391", "0.7200391", "0.71448827", "0.70392334", "0.67845094", "0.6452792", "0.6353175", "0.6353175", "0.6347598", "0.61995703", "0.61812884", "0.60843307", "0.6049576", "0.6014087", "0.59796804", "0.5966889", "0.59611595", "0.5929776", "0.58868456", "0.588004", "0.58293...
0.7910636
0
Gets the value of the Description property.
public function getDescription() { return $this->_fields['Description']['FieldValue']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDescription()\n {\n return $this->_Description;\n }", "public function getDescription()\n {\n return $this->Description;\n }", "public function getDescription()\n {\n return $this->Description;\n }", "public function getDescription()\n {\n r...
[ "0.8674368", "0.8655266", "0.8655266", "0.8655266", "0.8627769", "0.8616051", "0.8612501", "0.8612501", "0.8602562", "0.8602562", "0.8592361", "0.85911113", "0.8588051", "0.8588051", "0.8588051", "0.85775054", "0.85694647", "0.85694647", "0.8562985", "0.8555007", "0.8555007",...
0.0
-1
Sets the value of the Description property.
public function setDescription($value) { $this->_fields['Description']['FieldValue'] = $value; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDesciption($description);", "protected function setDescription($description) {\r\n $this->description = $description;\r\n }", "public function setDescription($description) {\n $this->_description = $description;\n }", "public function setDescription($description)\n {...
[ "0.8369968", "0.8347932", "0.8298954", "0.8296914", "0.8288551", "0.82698596", "0.8261974", "0.824226", "0.82360035", "0.82360035", "0.82344484", "0.8229721", "0.82235324", "0.82129765", "0.8205581", "0.81937397", "0.81833684", "0.81833684", "0.81833684", "0.81833684", "0.818...
0.0
-1
Sets the value of the Description and returns this instance
public function withDescription($value) { $this->setDescription($value); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDescription($description)\n {\n $this->description = $description;\n \n return $this;\n }", "function setDescription($description) {\n $this->checkChange();\n\n $this->description = $description;\n...
[ "0.8145275", "0.8142418", "0.81168616", "0.81168616", "0.81168616", "0.81168616", "0.81168616", "0.81168616", "0.81168616", "0.81168616", "0.81168616", "0.81168616", "0.81168616", "0.81168616", "0.81168616", "0.8105258", "0.80708355", "0.8048417", "0.80425495", "0.80221486", ...
0.782893
51
Checks if Description is set
public function isSetDescription() { return !is_null($this->_fields['Description']['FieldValue']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function canSetDescription();", "public function issetDescription(): bool\n {\n return isset($this->description);\n }", "function hasDescription()\n {\n return !empty($this->description);\n }", "public function hasDescription()\n {\n return !empty($this->description...
[ "0.82300854", "0.8134343", "0.81005615", "0.79533756", "0.7952228", "0.784712", "0.77610886", "0.7739381", "0.7680391", "0.75904995", "0.75904995", "0.75484365", "0.75484365", "0.751256", "0.7493658", "0.7315125", "0.72400516", "0.72400516", "0.72284156", "0.72259915", "0.720...
0.8014825
3
Gets the value of the TransactionStatus property.
public function getTransactionStatus() { return $this->_fields['TransactionStatus']['FieldValue']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTxStatus()\n {\n return $this->tx_status;\n }", "public function getTransactionStatus()\n {\n if (isset($this->data['vnp_TransactionStatus'])) {\n return $this->data['vnp_TransactionStatus'];\n }\n\n return null;\n }", "public function getTr...
[ "0.8398796", "0.8267087", "0.8183328", "0.77334756", "0.7494258", "0.7341797", "0.7225201", "0.7058572", "0.70496655", "0.6931564", "0.69078606", "0.6877705", "0.68589807", "0.68368936", "0.6832583", "0.6812616", "0.6801818", "0.67812693", "0.67812693", "0.67802167", "0.67729...
0.87361765
1
Sets the value of the TransactionStatus property.
public function setTransactionStatus($value) { $this->_fields['TransactionStatus']['FieldValue'] = $value; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setIsTransaction($status)\n {\n $this->isTransaction = $status;\n }", "public function setTxStatus($var)\n {\n GPBUtil::checkUint32($var);\n $this->tx_status = $var;\n\n return $this;\n }", "public function setTransactionStatus($orderId, string $status);"...
[ "0.75081867", "0.7449571", "0.65930194", "0.6336991", "0.6336991", "0.6291813", "0.62873846", "0.6260752", "0.625411", "0.62540656", "0.62396157", "0.62396157", "0.62396157", "0.62396157", "0.61854595", "0.6177082", "0.6121016", "0.6094178", "0.6083474", "0.6083474", "0.60425...
0.7378196
3
Sets the value of the TransactionStatus and returns this instance
public function withTransactionStatus($value) { $this->setTransactionStatus($value); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTransactionStatus($value) \n {\n $this->_fields['TransactionStatus']['FieldValue'] = $value;\n return $this;\n }", "public function setTransactionStatus($value) \n {\n $this->_fields['TransactionStatus']['FieldValue'] = $value;\n return $this;\n }", "p...
[ "0.81935203", "0.81935203", "0.72910774", "0.6794184", "0.66818446", "0.6662966", "0.6639949", "0.6639949", "0.6639949", "0.6639949", "0.6639949", "0.6639949", "0.6639949", "0.6639949", "0.6639949", "0.6636072", "0.6609809", "0.66004133", "0.66004133", "0.66004133", "0.660041...
0.78903663
3
Checks if TransactionStatus is set
public function isSetTransactionStatus() { return !is_null($this->_fields['TransactionStatus']['FieldValue']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function _transaction_status_check()\n {\n if (!$this->_transaction_in_progress) {\n return;\n }\n $this->rollback();\n }", "abstract public function getTransactionStatus();", "public function isTransactionActive()\n {\n return $this->conn->isTransactionAc...
[ "0.7663412", "0.740672", "0.7025853", "0.69612014", "0.6917286", "0.68576574", "0.6821006", "0.6818238", "0.6816993", "0.6804201", "0.6804201", "0.67854434", "0.67733717", "0.66492033", "0.66448724", "0.6610371", "0.6589649", "0.6581168", "0.6577444", "0.6566916", "0.6544694"...
0.7207129
3
Retrieves the value from the data attribute of the owner that contains the json data.
public function getData($key) { return ArrayHelper::getValue($this->owner->{$this->dataAttribute}, $key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getValue() {\n\t\treturn $this->data[\"value\"];\n\t}", "public function getValue(){\n return $this->getData();\n }", "public function getValue()\n {\n return $this->getOriginData('value');\n }", "public function getValue()\n\t{\n\t\treturn $this->data['value'];\n\t}", ...
[ "0.63759", "0.6260205", "0.6256041", "0.6175896", "0.60385555", "0.6038527", "0.60280085", "0.60212064", "0.6011236", "0.60098493", "0.6004536", "0.5982341", "0.59819233", "0.5981154", "0.59721005", "0.59717286", "0.59668285", "0.5963967", "0.5949288", "0.5942025", "0.5931805...
0.61901444
3
Add or replace data into the data attribute of the owner that contains the json data.
public function setData($key, $value) { $this->owner->{$this->dataAttribute} = ArrayHelper::merge($this->owner->{$this->dataAttribute}, [$key => $value]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function appendData($data)\n {\n $this->sha1 = null;\n $this->data.=$data;\n }", "public function addData($data)\n {\n $data = $this->hydrateIfJsonToArray($data);\n $this->data[] = $data;\n }", "public function setData($data){\n\t\t$this->_storage = $data;\n\t\...
[ "0.65419877", "0.6495022", "0.63402015", "0.63267744", "0.6279147", "0.6258371", "0.6240555", "0.6199845", "0.6153221", "0.61444426", "0.61417437", "0.61406994", "0.6123292", "0.6098155", "0.60960984", "0.60939264", "0.6091255", "0.60849684", "0.6081072", "0.6080545", "0.6075...
0.0
-1
Encodes the data of [[dataAttribute]] of the owner
public function encodeData($event) { $this->owner->{$this->dataAttribute} = Json::encode($this->owner->{$this->dataAttribute}); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __toString()\n {\n return 'data:' . htmlspecialchars($this->type) .\n ($this->base64\n ? ';base64,' . base64_encode($this->data)\n : ',' . rawurlencode($this->data));\n }", "public function setDataAttribute($value)\n {\n $this->attri...
[ "0.61738855", "0.6072694", "0.60346025", "0.5997208", "0.5997051", "0.5997051", "0.5997051", "0.5997051", "0.596856", "0.58531106", "0.58531106", "0.58531106", "0.57226956", "0.5692222", "0.56712216", "0.5651261", "0.56419885", "0.5641182", "0.5637049", "0.5621782", "0.560973...
0.7223854
0
Decodes the data of [[dataAttribute]] of the owner
public function decodeData($event) { $this->owner->{$this->dataAttribute} = Json::decode($this->owner->{$this->dataAttribute}); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function get_decoded_data() {\n return json_decode($this->get_data());\n }", "public function decode($data) {}", "public function decode($data) {}", "public function decode($data) {}", "public function decode($data) {}", "public function decode($data) {}", "public function getDataUn...
[ "0.6856502", "0.6436015", "0.6436015", "0.6436015", "0.6436015", "0.6436015", "0.62921715", "0.6274611", "0.6170652", "0.61630946", "0.6126862", "0.60786825", "0.604672", "0.60413855", "0.601584", "0.5971527", "0.59484684", "0.58979553", "0.5894961", "0.5845057", "0.5841234",...
0.6739497
1
EXPLANATION: We are creating a fake "result" structure to enable us to have sourcelevel equivalent syntax to a query executed via mysqli_query(). $stmt = mysqli_prepare($conn, ""); mysqli_bind_param($stmt, "types", ...); $param1 = 0; $param2 = 'foo'; $param3 = 'bar'; mysqli_execute($stmt); $result _mysqli_stmt_get_resu...
function iimysqli_stmt_get_result($stmt) { $metadata = mysqli_stmt_result_metadata($stmt); $ret = new iimysqli_result; if (!$ret) return NULL; $ret->cols = array();//mysqli_num_fields($metadata); while ($field = $metadata->fetch_field()) { $ret->cols[] = $field->name; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fetch($result)\n{ \n// This function will turn mysqli results into an array\n\n $array = array();\n\n if($result instanceof mysqli_stmt)\n {\n $result->store_result();\n\n $variables = array();\n $data = array();\n $meta = $result->result_metadata();\n\n whi...
[ "0.7067054", "0.68512857", "0.66407526", "0.6548197", "0.6438824", "0.64226514", "0.6377546", "0.6370342", "0.63173866", "0.6311727", "0.62500453", "0.62096375", "0.6196134", "0.61815435", "0.61753", "0.6174514", "0.6174134", "0.6155934", "0.612532", "0.6120871", "0.61155635"...
0.65209544
4
Bounce user to public page or to error page.
protected function bounce() { if (get_class($this)=='HomePageController') { $controller = new HomePageController(true); return $controller->go(); } else { $config = Config::getInstance(); throw new Exception('You must <a href="'.$config->getValue('site_roo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function _route()\n\t{\n\t\tif(self::lock('ban'))\n\t\t{\n\t\t\tself::error_page('ban');\n\t\t\treturn;\n\t\t}\n\t}", "public function handleBounceEvent(object $message): void;", "public static function publicPage(){\n\t\tif(self::isAdmin()){\n\t\t\theader(\"Location: admin_users.php\");\n\t\t\texit;\n\...
[ "0.59189034", "0.5831648", "0.57221603", "0.5709116", "0.5467563", "0.5462037", "0.54536444", "0.5437065", "0.5370331", "0.5362743", "0.5352335", "0.5319451", "0.5317437", "0.5308784", "0.5300667", "0.5293686", "0.5286525", "0.5275444", "0.525163", "0.5243685", "0.52400464", ...
0.58543587
1
Determine if the user is authorized to make this request.
public function authorize() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authorize()\n {\n if ($this->user() !== null) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }"...
[ "0.8401075", "0.8377201", "0.8377201", "0.8344036", "0.8253612", "0.824826", "0.8212931", "0.8146173", "0.81110245", "0.80821866", "0.7991871", "0.7990792", "0.79829323", "0.7959539", "0.79514205", "0.7949228", "0.7925649", "0.7915602", "0.7900597", "0.789401", "0.78905416", ...
0.0
-1
Get the validation rules that apply to the request.
public function rules() { return [ 'title' => ['required', 'string', 'max:25'], 'body' => ['required', 'string'], 'is_open' => ['nullable'], 'pict' => ['image', 'max:5000'], //画像挿入の場合サイズ指定(キロバイト) ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "public function getRules()\n {\n return $this->validator->getRules();\n }", "public function getValidationRules()\n {\n $rules = [];\n\n // Get the sche...
[ "0.8342703", "0.80143493", "0.7937251", "0.79264987", "0.79233825", "0.79048395", "0.78603816", "0.7790699", "0.77842164", "0.77628785", "0.7737272", "0.7733618", "0.7710535", "0.7691693", "0.76849866", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.76830...
0.0
-1
npm Display a listing of the resource.
public function index() { $Visit = DB::table('tb_farmacia as f') ->join('sis_usuario as u', 'f.cd_representante', '=', 'u.cdusuario') ->join('sis_usuario as ua', 'f.cd_anjo', '=', 'ua.cdusuario') ->join('tb_cidade as c', 'f.cd_cidade', '=', 'c.cdcidade') ->select('f.cd_farmac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listing();", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $l...
[ "0.692139", "0.6878769", "0.64733917", "0.6408373", "0.6334086", "0.6203267", "0.6173417", "0.61317396", "0.6129983", "0.61224276", "0.60618937", "0.60461605", "0.6021306", "0.6020816", "0.6011931", "0.60089433", "0.5995623", "0.5976189", "0.59695303", "0.5966397", "0.5949023...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { // }
{ "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.8233183", "0.81894475", "0.6830127", "0.6498529", "0.6496276", "0.6469191", "0.64627224", "0.63619924", "0.6308743", "0.62809277", "0.6218707", "0.61915004", "0.617914", "0.6172935", "0.6137578", "0.6118736", "0.6107122", "0.6106576", "0.60931313", "0.60798067", "0.6046669...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "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
Register any application services.
public function register() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register()\n {\n $this->registerServices();\n }", "public function register()\n {\n $this->registerAssets();\n $this->registerServices();\n }", "public function register()\n\t{\n\n $this->registerUserService();\n $this->registerCountryService();\n ...
[ "0.7879658", "0.7600202", "0.74930716", "0.73852855", "0.736794", "0.7306089", "0.7291359", "0.72896826", "0.72802424", "0.7268026", "0.7267702", "0.72658145", "0.7249053", "0.72171587", "0.7208486", "0.7198799", "0.7196415", "0.719478", "0.7176513", "0.7176227", "0.7164647",...
0.0
-1
membuat akun klien baru
public function actionCreate(){ $clientModel = Client::model(); $this->render('/client/register', array('clientModel'=>$clientModel)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function masodik()\n {\n }", "public function kosongkanDataBarang() {\n $this->daftar_barang = [];\n $this->editData();\n }", "public function boleta()\n\t{\n\t\t//\n\t}", "public function AggiornaPrezzi(){\n\t}", "private function Zapis_kolize_formulare($pole, $idcka_skolizi, $iducast...
[ "0.6210718", "0.6168513", "0.60914934", "0.5911811", "0.58447385", "0.5834714", "0.58241546", "0.57659787", "0.5734265", "0.5713236", "0.5706717", "0.5706134", "0.5657543", "0.5651261", "0.5627302", "0.55415195", "0.5519746", "0.5502828", "0.54646456", "0.54607487", "0.541163...
0.0
-1
Initialization hook method. Use this method to add common initialization code like loading components. e.g. `$this>loadComponent('Security');`
public function initialize() { parent::initialize(); $this->loadComponent('RequestHandler', [ 'enableBeforeRedirect' => false, ]); $this->loadComponent('Flash'); $this->loadComponent('Auth', [ 'authenticate' => [ 'Form' => [ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function initialize()\n {\n parent::initialize();\n\n $this->loadComponent('RequestHandler');\n $this->loadComponent('Flash');\n\n /*\n * Enable the following components for recommended CakePHP security settings.\n * see https://book.cakephp.org/3.0/en/controll...
[ "0.8071931", "0.79452145", "0.7772107", "0.7750622", "0.77400285", "0.77101326", "0.7703049", "0.7696061", "0.75826657", "0.75264156", "0.75221425", "0.7495009", "0.7472849", "0.7451889", "0.7444448", "0.74339086", "0.7424633", "0.73894787", "0.7383402", "0.73724324", "0.7362...
0.0
-1
Used to get language name from ISO 6391 code
function weglotLanguage($iso639, $getEnglish = true) { $client = new Client(config('weglot-translate.api_key')); $translate = new Languages($client); $languageCollection = $translate->handle(); $language = $languageCollection->getCode($iso639); if (!$language instanceof Lang...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getName( $code )\n\t\t{\n\t\t\treturn ISO_Language::getInstance()->get( $code );\n\t\t}", "public function getLanguageNameByCode(string $code): string;", "abstract public function getLocaleCode();", "abstract public function getLocaleName();", "public function getFromLanguage(): stri...
[ "0.7533291", "0.74934596", "0.73608685", "0.7353975", "0.7344581", "0.7309227", "0.72891605", "0.7252683", "0.71529776", "0.71125054", "0.70535076", "0.70249027", "0.7010627", "0.6972554", "0.6956007", "0.6930124", "0.69105226", "0.68854946", "0.6838637", "0.68323815", "0.682...
0.6931029
15
Render hreflang links for SEO
function weglotHrefLangRender() { $url = weglotCurrentUrlInstance(); return $url->generateHrefLangsTags(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function generateLangLinks() {\n\t\tglobal $_SERVER;\n\t\tforeach( $this->mLanguages as $cur_lang ) {\n\t\t\tif( $cur_lang != $this->mLang ) {\n\t\t\t\n\t\t\t\t$url = \"//tools.wmflabs.org\".$_SERVER['REQUEST_URI'];\n\t\t\t\t\n\t\t\t\tif( in_string( 'uselang', $url ) ) $url = preg_replace( '/uselang=(.*?)&?/', '',...
[ "0.70817703", "0.6916768", "0.66326106", "0.6547247", "0.65092444", "0.64885676", "0.6364379", "0.61636275", "0.6024353", "0.5966619", "0.5943017", "0.5939772", "0.5892226", "0.5865002", "0.5851149", "0.58289874", "0.57947993", "0.57855225", "0.5750689", "0.57381016", "0.5700...
0.74719864
0
Render simple templates to switch between languages
function weglotButtonRender($index) { $url = weglotCurrentUrlInstance(); return \view( 'weglot-translate::language-button-' . $index, ['urls' => $url->currentRequestAllUrls()] )->render(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function render()\n {\n $current = MultiLanguage::config('default');\n $cookie_name = MultiLanguage::config('cookie-name', 'locale');\n if(Cookie::has($cookie_name)) {\n $current = Cookie::get($cookie_name);\n }\n $languages = MultiLanguage::config(\"language...
[ "0.6508316", "0.6339759", "0.6316444", "0.62473565", "0.6245543", "0.6232359", "0.620678", "0.6171727", "0.6153859", "0.61458117", "0.61096275", "0.61096275", "0.61037767", "0.608857", "0.6087974", "0.6055889", "0.6038459", "0.59714824", "0.5968545", "0.5966054", "0.5956075",...
0.0
-1
Returns Url instance for current URL
function weglotCurrentUrlInstance() { $url = Request::fullUrl(); return (new Url( $url, config('weglot-translate.original_language'), config('weglot-translate.destination_languages'), config('weglot-translate.prefix_path') ))->setExcludedUrls(c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCurrentUrl();", "public static function fromCurrentUrl():self\n {\n\n return new UrlParser($_SERVER[ 'REQUEST_URI' ]??'');\n }", "public static function getThisUrl() {}", "public static function getURL() {\n $url = self::getHost() . $_SERVER['REQUEST_URI'];\n ret...
[ "0.74521583", "0.73637575", "0.7318712", "0.7249878", "0.7195485", "0.71619844", "0.7127087", "0.7111775", "0.7110048", "0.7104576", "0.7103231", "0.7090018", "0.70871866", "0.7081099", "0.70801914", "0.70740765", "0.7071955", "0.7061976", "0.70465964", "0.70341074", "0.70341...
0.7367006
1
TODO: Implement __call() method.
public function __call($name, $arguments) { if (method_exists($this, $name)) { return $this->$name(...$arguments); } return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __invoke()\n {\n }", "public function call();", "public function call();", "public function __invoke()\n {\n\n }", "public function __invoke();", "public function __invoke();", "public function __invoke();", "public function __invoke();", "public function call()\n {\n...
[ "0.7465695", "0.74534816", "0.74534816", "0.73146445", "0.72799796", "0.72799796", "0.72799796", "0.72799796", "0.71619594", "0.6808789", "0.6746007", "0.67189497", "0.67139494", "0.67139494", "0.66643625", "0.6573642", "0.65496063", "0.65336317", "0.65336317", "0.65056145", ...
0.0
-1
Sends a test email.
public function handle(string $address): void { // In order to make sure, at the end or vice versa, a procedure error, the letter // is sent immediately. $this->mailer->to($address) ->sendNow(new Test()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function sendTestMail() {}", "public function sendTestMail()\n {\n $newsletterId = intval($_POST['newsletterId']);\n $email = $_POST['emailAddress'];\n\n // Get the preview to generate the mail\n $html = $this->core->getPreviewComponent()->renderPreview($newsletterId);\n $mail = Externa...
[ "0.86155057", "0.81800294", "0.81406033", "0.7860729", "0.7680232", "0.749088", "0.74646384", "0.7462616", "0.7226372", "0.72126526", "0.71924543", "0.71498483", "0.712039", "0.7105374", "0.70631266", "0.7024746", "0.7006999", "0.6953962", "0.69207984", "0.691834", "0.6916994...
0.0
-1
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) { $this->validate($request, [ 'email' => [ 'required', 'email', 'unique:users,email' ], 'name' => [ 'required' ], 'password' => [ 'required' ], 'public_key' => [ 'required' ], 'data' => [ 'required' ] ...
{ "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