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
Run the database seeds.
public function run() { DB::statement('SET FOREIGN_KEY_CHECKS=0;'); Departamento::truncate(); DB::statement('SET FOREIGN_KEY_CHECKS=1;'); for ($i=0; $i < 5; $i++) { Departamento::create([ 'departamento_uid' => $i, 'nome_exibicao' => "depart...
{ "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
return elapsed time so far, as text in microseconds, or blank if zero
function eQTimeElapsed() { if ($GLOBALS['qTimeTotal']) { return number_format($GLOBALS['qTimeTotal']*1000000.0,1); } else { return ''; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function time()\n {\n list($usec, $sec) = explode(\" \", microtime());\n return ((float)$usec + (float)$sec);\n }", "public function getTime()\n {\n return (float)sprintf(\"%.1f\", 1000*(microtime(true) - $this->startTime));\n }", "protected function getElapsedTi...
[ "0.7481391", "0.7460592", "0.74230224", "0.73629326", "0.71875054", "0.71714705", "0.71142924", "0.7083627", "0.704292", "0.7037006", "0.70314384", "0.70150477", "0.69790256", "0.6960451", "0.6941851", "0.6940625", "0.69194883", "0.6918831", "0.6917576", "0.6903698", "0.68923...
0.73058224
4
Build the main Schema instance that represents the final schema for this endpoint
public function schema() { $queryType = new ObjectType([ 'name' => 'Query', 'fields' => $this->queries, ]); $mutationType = new ObjectType([ 'name' => 'Mutation', 'fields' => $this->mutations, ]); return new Schema([ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function buildSchema()\n {\n $this->setEntityClass('\\\\LogEntries');\n return (new GDS\\Schema('LogEntries'))\n\t\t\t->addString('subject')\n ->addString('severity')\n ->addDatetime('timestamp')\n ->addString('x_details');\n }", "protected function ...
[ "0.6815099", "0.6651779", "0.657816", "0.65757114", "0.6536738", "0.6489927", "0.6483348", "0.647897", "0.6416798", "0.64158356", "0.63528144", "0.6348826", "0.6330172", "0.6278713", "0.6278713", "0.6278713", "0.6277286", "0.62501186", "0.6221811", "0.61739635", "0.6163045", ...
0.67535627
1
Execute an arbitrary operation (mutation / query) on this schema
public function query($query, $params = []) { $executionResult = $this->queryAndReturnResult($query, $params); if (!empty($executionResult->errors)) { return [ 'data' => $executionResult->data, 'errors' => array_map($this->errorFormatter, $executionResult...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function executeOperation(\\GraphQL\\Server\\ServerConfig $config, \\GraphQL\\Server\\OperationParams $op)\n {\n }", "public function operation($operation);", "abstract public function exec($query='');", "public function execute(): Statement;", "public function execute($query);", "ab...
[ "0.5976857", "0.5822814", "0.57272446", "0.56743884", "0.56255466", "0.5608098", "0.5574592", "0.55559886", "0.55559886", "0.55559886", "0.55559886", "0.55559886", "0.55559886", "0.55559886", "0.55559886", "0.55559886", "0.55559886", "0.55559886", "0.55559886", "0.55559886", ...
0.0
-1
Register a new type
public function addType(Type $type, $name = '') { if (!$name) { $name = (string)$type; } $this->types[$name] = $type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function register_type();", "public static function register_type()\n {\n }", "public static function register_type()\n {\n }", "public static function register_type()\n {\n }", "public static function register_type()\n {\n }", "publ...
[ "0.9019146", "0.877948", "0.877948", "0.877948", "0.877948", "0.877948", "0.877948", "0.877948", "0.877948", "0.877948", "0.877948", "0.877948", "0.877948", "0.877948", "0.877948", "0.877948", "0.877948", "0.877948", "0.877948", "0.877948", "0.877948", "0.877948", "0.8779...
0.0
-1
Return a type definition by name
public function getType($name) { if (isset($this->types[$name])) { return $this->types[$name]; } else { throw new \InvalidArgumentException("Type '$name' is not a registered GraphQL type"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getType($name);", "public function getType(string $name): ?Definition;", "public function getType(): TypeDefinition;", "public function getTypeFor(string $name): string\n {\n return $this->checkExist($name)->fieldDefinitions[$name];\n }", "public static function getType($name)\...
[ "0.7420581", "0.7382615", "0.68574065", "0.67550504", "0.6623441", "0.6503038", "0.6403751", "0.6360316", "0.6166353", "0.6080261", "0.59680474", "0.5928665", "0.59203035", "0.591931", "0.59100807", "0.58990496", "0.5822061", "0.5821335", "0.5811858", "0.5802108", "0.58002484...
0.5782936
22
Register a new Query
public function addQuery($query, $name) { $this->queries[$name] = $query; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addQuery() {}", "public function registerQuery($name, Horde_Kolab_Storage_Query $query)\n {\n $this->_list->registerQuery($name, $query);\n }", "public function newQuery();", "public function createQuery() {}", "public function createQuery() {}", "public function createQuery() {}", ...
[ "0.78446454", "0.7461842", "0.73028415", "0.7207438", "0.7207438", "0.7207438", "0.72058386", "0.7165653", "0.70037687", "0.68799454", "0.68313706", "0.67929655", "0.6773756", "0.6773756", "0.6773712", "0.6773712", "0.6773712", "0.6773712", "0.67436063", "0.67436063", "0.6743...
0.7253591
3
Get a query by name
public function getQuery($name) { return $this->queries[$name]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getQuery($name = null);", "public\tfunction\tgetQuery($name)\n\t\t{\n\t\t\tif(!isset(self::$_queries[$this->_class][$name])) {\n\t\t\t\tif($name == 'find')\t\treturn\t$this->_prepareFindQuery();\n\t\t\t\tif($name == 'save')\t\treturn\t$this->_prepareSaveQuery();\n\t\t\t\tif($name == 'filter')\tre...
[ "0.79219747", "0.7721535", "0.74441946", "0.7069631", "0.65908015", "0.6569983", "0.6569983", "0.6569983", "0.6569983", "0.6569983", "0.6569983", "0.6569983", "0.6569983", "0.6569983", "0.6501993", "0.64948213", "0.64644706", "0.64537424", "0.6396004", "0.6382031", "0.6359556...
0.82968616
0
Register a new mutation
public function addMutation($mutation, $name) { $this->mutations[$name] = $mutation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function register_mutation()\n {\n }", "public static function register_mutation()\n {\n }", "public static function register_mutation()\n {\n }", "public static function register_mutation()\n {\n }", "public static function register_mut...
[ "0.8146185", "0.8146185", "0.8146185", "0.8146185", "0.8146185", "0.8146185", "0.8146185", "0.8146185", "0.8146185", "0.8146185", "0.8146185", "0.8146185", "0.8146185", "0.8146185", "0.77128154", "0.7654564", "0.7466115", "0.7438965", "0.71764946", "0.64365125", "0.64365125",...
0.67022264
19
Get a mutation by name
public function getMutation($name) { return $this->mutations[$name]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function mutation(string $name, ?string $alias = null): MutationBuilder;", "public function addMutation($mutation, $name)\n {\n $this->mutations[$name] = $mutation;\n }", "public static function mutate_and_get_payload(\\WP_Taxonomy $taxonomy, string $mutation_name)\n {\n }", ...
[ "0.6427494", "0.61549467", "0.595812", "0.595812", "0.59507394", "0.5897483", "0.5897483", "0.5669289", "0.55645573", "0.55600256", "0.5527737", "0.54350907", "0.54108566", "0.5356093", "0.5335916", "0.5335916", "0.53229105", "0.5265567", "0.5263839", "0.52100754", "0.519733"...
0.85030496
0
Set the Member for the current context
public function setMember(Member $member) { $this->member = $member; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMember(\\Model\\Member $member){\n\t\t$this->member = $member;\n\t}", "public function __set(string $member, $value)\r\n {\r\n $this->$member = $value;\r\n }", "public function setMember($value)\n {\n if ($value !== null) {\n $this->_params['member'] = $val...
[ "0.67784894", "0.6705615", "0.6678364", "0.6287002", "0.6274125", "0.5923277", "0.58914477", "0.5855744", "0.58114606", "0.5804379", "0.5795023", "0.5783404", "0.57792735", "0.56875557", "0.55810356", "0.5535277", "0.55292153", "0.5523706", "0.5490006", "0.54844946", "0.54707...
0.58660775
7
Get the Member for the current context either from a previously set value or the current user
public function getMember() { return $this->member ?: Member::currentUser(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Member() {\n \t\t$member = null;\n\t\tif(is_numeric($this->urlParams['ID'])) {\n\t\t\t$member = DataObject::get_by_id('Member', $this->urlParams['ID']);\n\t\t} else {\n\t\t\t$member = Member::currentUser();\n\t\t}\n\n\t\treturn $member;\n\t}", "public function getMember()\n\t{\n\t\treturn $this->memberI...
[ "0.7767322", "0.718603", "0.71327496", "0.6983086", "0.69645214", "0.6849294", "0.6792129", "0.67782265", "0.6776476", "0.6708414", "0.6561445", "0.6460723", "0.6437021", "0.64282566", "0.6358084", "0.6322435", "0.6321555", "0.62902105", "0.62807536", "0.62581736", "0.6253524...
0.7697486
1
Get global context to pass to $context for all queries
protected function getContext() { return [ 'currentUser' => $this->getMember() ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function context() {\n\t\treturn self::get_context();\n\t}", "public static function context()\n {\n return self::$_context;\n }", "abstract public function get_context();", "protected function getContext() {}", "public function getContext();", "public function getContext();", ...
[ "0.7781127", "0.75301325", "0.7477324", "0.7348858", "0.73389554", "0.73389554", "0.73389554", "0.73389554", "0.73389554", "0.7264762", "0.7202083", "0.71788776", "0.7145581", "0.7095237", "0.7095237", "0.7063228", "0.70045495", "0.70045495", "0.69891596", "0.6915063", "0.690...
0.62533474
66
Run the database seeds.
public function run() { DB::table('open_hours')->truncate(); DB::table('open_hours')->insert( [ [ 'hour' => '8:00', 'title' => '8:00 AM' ], [ 'hour' => '8:30', ...
{ "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
calculating actual date by removing holidays
function SubmitLeave(Request $request) { $no_of_days=$request->get('total_days'); #Number of days entered by user $total_days=$request->get('no_of_days'); $faculty_id=\Session::get('faculty_id'); $department=\Session::get('department'); $dates=array(); $lea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function holidays () {\n\t$year = date(\"Y\");\n\t$p = date(\"N\", strtotime(\"February 1, $year\")) == 1 ? 'second' : 'third';\n\t$easter = date(\"Y-m-d\", easter_date($year));\n\n\t$holday_descriptions = array(\n\t\t\"January 1, $year\",\n\t\t\"January $year third Monday\",\n\t\t\"February $year $p Monday\",\n\t...
[ "0.69038564", "0.6723537", "0.6722597", "0.6717855", "0.6562868", "0.6496241", "0.6483442", "0.646535", "0.63959813", "0.63933265", "0.63862646", "0.6375235", "0.63364094", "0.6311497", "0.6310511", "0.62968916", "0.62843674", "0.6200843", "0.61858416", "0.6166769", "0.614364...
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.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(StoreTvListRequest $request) { $validatedData = auth()->user()->tvlists()->create($request->validated()); return response()->json($validatedData); }
{ "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(TvList $tvList) { // }
{ "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
Se obtiene el registro de la serie agregada por el User
public function checkUser($serie) { $tvCheck = TvList::where([['api_id', $serie],['user_id', Auth::id()]])->first(); return response()->json($tvCheck); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function agregarUsuario(){\n \n }", "public function registro() {\n \n if(Auth::is_valid()){\n return Router::redirect('/');\n }\n \n $this->title = 'Formulario de registro';\n\n if (Input::hasPost('usuario')) {\n $obj = Load::model...
[ "0.67239857", "0.65089524", "0.6493922", "0.64640033", "0.64367193", "0.6300026", "0.62690634", "0.62621146", "0.6221923", "0.61986685", "0.61951184", "0.6157196", "0.61403817", "0.61393726", "0.61263955", "0.6117269", "0.6115113", "0.6114532", "0.6114256", "0.6113549", "0.61...
0.0
-1
Show the form for editing the specified resource.
public function edit(TvList $tvList) { // }
{ "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(StoreTvListRequest $request, TvList $tvlist) { // $tvlist->update($request->all()); return response()->json($tvlist); }
{ "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(TvList $tvList) { // }
{ "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
Handle AdcreativesApi adcreativesAdd function
public function add(array $params = []) { return $this->handleMiddleware('add', $params, function(MiddlewareRequest $request) { $params = $request->getApiMethodArguments(); $data = $params; $response = $this->apiInstance->adcreativesAdd($data); return $this->h...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addads() \n\t{\n\t\t$view = $this->getView('ads');\n\t\t// Get/Create the model\n\t\tif ($model = $this->getModel('addads'))\n\t\t{\n\t\t\t//Push the model into the view (as default)\n\t\t\t//Second parameter indicates that it is the default model for the view\n\t\t\t$view->setModel($model, true);\n\t\t}\...
[ "0.5913132", "0.58678454", "0.58278376", "0.58107424", "0.57230884", "0.5622335", "0.5600925", "0.5542802", "0.551181", "0.5511493", "0.5466012", "0.54493946", "0.5449035", "0.5443068", "0.5326173", "0.53223664", "0.52826375", "0.52680004", "0.52639824", "0.5250351", "0.52379...
0.6543708
0
Handle AdcreativesApi adcreativesAddAsync function
public function addAsync(array $params = []) { return $this->handleMiddleware('add', $params, function(MiddlewareRequest $request) { $params = $request->getApiMethodArguments(); $data = $params; $response = $this->apiInstance->adcreativesAddAsync($data); retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add(array $params = [])\n {\n return $this->handleMiddleware('add', $params, function(MiddlewareRequest $request) {\n $params = $request->getApiMethodArguments();\n $data = $params;\n $response = $this->apiInstance->adcreativesAdd($data);\n retu...
[ "0.5798104", "0.5592207", "0.53391373", "0.5269319", "0.52489495", "0.5034818", "0.5017347", "0.5017347", "0.50024414", "0.4985131", "0.49709845", "0.49517524", "0.49458686", "0.48700982", "0.4832725", "0.48250785", "0.48247936", "0.48159555", "0.48019624", "0.479709", "0.479...
0.69396174
0
Handle AdcreativesApi adcreativesDelete function
public function delete(array $params = []) { return $this->handleMiddleware('delete', $params, function(MiddlewareRequest $request) { $params = $request->getApiMethodArguments(); $data = $params; $response = $this->apiInstance->adcreativesDelete($data); return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteAction() {\r\n\t\t$id = $this->getInput('id');\r\n\t\t$info = Gou_Service_Ad::getAd($id);\r\n\t\tif ($info && $info['id'] == 0) $this->output(-1, '无法删除');\r\n//\t\tUtil_File::del(Common::getConfig('siteConfig', 'attachPath') . $info['img']);\r\n\t\t$result = Gou_Service_Ad::deleteAd($id);\r\n...
[ "0.62508714", "0.62396455", "0.6223387", "0.61689055", "0.6130596", "0.6074272", "0.5975844", "0.59694594", "0.5891316", "0.58311903", "0.58303595", "0.5820093", "0.5786759", "0.57838917", "0.57807374", "0.5780611", "0.5680963", "0.5671262", "0.5666077", "0.5652374", "0.56248...
0.66548175
0
Handle AdcreativesApi adcreativesDeleteAsync function
public function deleteAsync(array $params = []) { return $this->handleMiddleware('delete', $params, function(MiddlewareRequest $request) { $params = $request->getApiMethodArguments(); $data = $params; $response = $this->apiInstance->adcreativesDeleteAsync($data); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete(array $params = [])\n {\n return $this->handleMiddleware('delete', $params, function(MiddlewareRequest $request) {\n $params = $request->getApiMethodArguments();\n $data = $params;\n $response = $this->apiInstance->adcreativesDelete($data);\n ...
[ "0.6238146", "0.6024383", "0.5937651", "0.5758007", "0.5752294", "0.5747543", "0.5658567", "0.564919", "0.56220895", "0.557961", "0.5566759", "0.5564715", "0.5559353", "0.5555197", "0.55336165", "0.5522851", "0.5502891", "0.548392", "0.5481326", "0.54716593", "0.5434618", "...
0.7209654
0
Handle AdcreativesApi adcreativesGet function
public function get(array $params = []) { return $this->handleMiddleware('get', $params, function(MiddlewareRequest $request) { $params = $request->getApiMethodArguments(); $accountId = isset($params['account_id']) ? $params['account_id'] : null; $filtering = isset($param...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function info_ad($id, $endpoint) {\n\n\techo \"getting info by ad id: \" . $id . \"\\r\\n\";\n\n\ttry {\n\n\t\t$page = json_decode(file_get_contents(sprintf($endpoint, $id) ), true);\n\n\t\tif (isset($page['errors'])) {\n\t\t\t//Возможно снято с публикации. Но скорее всего нет.\n\t\t\tadd_logs(\"get error with pag...
[ "0.568663", "0.5575248", "0.5560076", "0.5468266", "0.5422234", "0.5352861", "0.53416526", "0.5331108", "0.53300774", "0.5328966", "0.5314666", "0.5221521", "0.5175429", "0.513572", "0.5117382", "0.50658786", "0.5059331", "0.505496", "0.5018039", "0.5016311", "0.49996087", ...
0.59241635
0
Handle AdcreativesApi adcreativesGetAsync function
public function getAsync(array $params = []) { return $this->handleMiddleware('get', $params, function(MiddlewareRequest $request) { $params = $request->getApiMethodArguments(); $accountId = isset($params['account_id']) ? $params['account_id'] : null; $filtering = isset($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract function loadAvailableAds();", "public function get()\n {\n $this->_access(\"get\");\n $data = $this->Assets_model->getAdList(Assets_model::FULL_LIST);\n $this->_returnAjax(true, $data);\n }", "public function get(array $params = [])\n {\n return $this->h...
[ "0.521953", "0.519992", "0.51621616", "0.51501936", "0.50620633", "0.5038092", "0.4996416", "0.49428913", "0.49110538", "0.4882252", "0.48740214", "0.48275018", "0.48111647", "0.48100293", "0.47898126", "0.47725114", "0.47566193", "0.47478926", "0.47361758", "0.4721691", "0.4...
0.60292745
0
Handle AdcreativesApi adcreativesUpdate function
public function update(array $params = []) { return $this->handleMiddleware('update', $params, function(MiddlewareRequest $request) { $params = $request->getApiMethodArguments(); $data = $params; $response = $this->apiInstance->adcreativesUpdate($data); return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update($bannerclient);", "public function updateTempAd() {\n\t\ttry {\n\n\t\t\t$field_name = Request::input('name');\n\t\t\t$field_val = Request::input('value');\n\t\t\t$field_id = Request::input('pk');\n\t\t\t$child_content_date_id = Request::input('child_content_date_id');\n\t\t\t$check_client_...
[ "0.5910219", "0.59080756", "0.5905238", "0.5786378", "0.5711499", "0.56781733", "0.56271017", "0.55532646", "0.5463843", "0.5463843", "0.5426003", "0.5388615", "0.5388615", "0.53837216", "0.5344205", "0.5333398", "0.5281563", "0.5271078", "0.5271078", "0.5271078", "0.52469796...
0.6294538
0
Handle AdcreativesApi adcreativesUpdateAsync function
public function updateAsync(array $params = []) { return $this->handleMiddleware('update', $params, function(MiddlewareRequest $request) { $params = $request->getApiMethodArguments(); $data = $params; $response = $this->apiInstance->adcreativesUpdateAsync($data); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(array $params = [])\n {\n return $this->handleMiddleware('update', $params, function(MiddlewareRequest $request) {\n $params = $request->getApiMethodArguments();\n $data = $params;\n $response = $this->apiInstance->adcreativesUpdate($data);\n ...
[ "0.5917742", "0.5658925", "0.5595941", "0.55297655", "0.543105", "0.54243857", "0.53371656", "0.5321273", "0.522914", "0.51891714", "0.51891714", "0.516665", "0.516665", "0.5112772", "0.5105476", "0.5096989", "0.5077336", "0.5059539", "0.50487566", "0.50487566", "0.50448465",...
0.68615216
0
Function: create_task Description: Create a new task Return: Boolean result of the insert statement
function create_task() { try { $sql = $GLOBALS["db"]->prepare('SELECT MAX(sort_weight) as next FROM tasks WHERE category_id=:category_id AND bucket_id=:bucket_id'); $sql->bindParam(':category_id', $_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function CreateTask()\n {\n\n $data = $this->GetParamsFromRequestBody('create');\n\n if (!isset($data['status'])) {\n $data['status'] = \"open\";\n }\n\n $data['createdby'] = $this->loggedUser->getId();\n\n $this->insertArrayIntoDatabase('todo_task', $data);\...
[ "0.75463647", "0.7130442", "0.7112339", "0.70271516", "0.69677436", "0.6896468", "0.68656194", "0.68434995", "0.6809599", "0.67832875", "0.6771265", "0.6716941", "0.6711129", "0.6672405", "0.6654821", "0.6574902", "0.653698", "0.65368587", "0.6482588", "0.6431147", "0.6418339...
0.57380277
90
Function: update_task Description: Update an existing task Return: Boolean result of the update statement
function update_task() { try { $sql = $GLOBALS["db"]->prepare('UPDATE tasks SET category_id = :category_id, bucket_id = :bucket_id, task_name = :task_name, task_details = :task_deta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUpdateTask()\n {\n }", "public function testUpdate()\n {\n $this->actingAs(User::factory()->make());\n $task = new Task();\n $task->title = 'refined_task';\n $task->completed = false;\n $task->save();\n\n $response = $this->put('/tasks/' . $t...
[ "0.76275605", "0.747192", "0.7262245", "0.7070709", "0.70371747", "0.7030552", "0.6930336", "0.68910486", "0.6848782", "0.6845376", "0.6811839", "0.6771868", "0.6765229", "0.67493653", "0.673347", "0.6712802", "0.67086625", "0.6706393", "0.67040825", "0.6689585", "0.6678563",...
0.7002489
6
Function: load_task Description: Load details of a task Return: Boolean result of the insert statement
function load_task($task_id) { try { $sql = $GLOBALS["db"]->prepare('SELECT * FROM tasks WHERE task_id=:task_id AND user_id=:user_id'); $sql->bindParam(':task_id', $task_id); $sql->bindParam(':us...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insertTask() {\n\t\t$conn=parent::connect();\n\t\t$sql = \"INSERT INTO \" . TBL_TASK . \" (\n\t\t\ttask_name,\n\t\t\ttask_hourly_rate,\n\t\t\ttask_bill_by_default,\n\t\t\ttask_common\n\t\t\t) VALUES (\n\t\t\t:task_name,\n\t\t\t:task_hourly_rate,\n\t\t\t:task_bill_by_default,\n\t\t\t:task_common\n\t...
[ "0.63556695", "0.6114586", "0.6054531", "0.6013186", "0.5743756", "0.57344234", "0.56895983", "0.56435984", "0.5598191", "0.5594033", "0.5594033", "0.55607903", "0.55570465", "0.5515365", "0.55142146", "0.55142146", "0.5512232", "0.5495883", "0.54707927", "0.5426024", "0.5425...
0.61927474
1
Display a listing of the WorkorderHistory. GET|HEAD /workorderHistories
public function index(Request $request) { $this->workorderHistoryRepository->pushCriteria(new RequestCriteria($request)); $this->workorderHistoryRepository->pushCriteria(new LimitOffsetCriteria($request)); $workorderHistories = $this->workorderHistoryRepository->all(); return $this-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCron_jobs_history()\n {\n $request = Yii::app()->request;\n $model = new ConsoleCommandListHistory('search');\n $model->unsetAttributes();\n\n $model->attributes = (array)$request->getQuery($model->modelName, array());\n \n $this->setData(array(\...
[ "0.6847907", "0.676982", "0.6766585", "0.67549145", "0.6753486", "0.6400598", "0.632236", "0.6304589", "0.6229612", "0.6200605", "0.6188957", "0.6185267", "0.61846", "0.6176091", "0.61641043", "0.6146382", "0.6133392", "0.6102097", "0.6096873", "0.6071777", "0.6049144", "0....
0.6467477
5
Store a newly created WorkorderHistory in storage. POST /workorderHistories
public function store(CreateWorkorderHistoryAPIRequest $request) { $input = $request->all(); $workorderHistories = $this->workorderHistoryRepository->create($input); return $this->sendResponse($workorderHistories->toArray(), 'Workorder History saved successfully'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(StoreUpdateHistoria $request)\n {\n $data = $request->all();\n $this->historias->create($data);\n return redirect()->route('historia-index')->with('mensagem', 'História inserida com Sucesso!');\n }", "public function store(CreateElementPropertyHistoryRequest $requ...
[ "0.62712455", "0.6189629", "0.61258125", "0.5955997", "0.5929127", "0.5927758", "0.58444715", "0.5750454", "0.57278204", "0.57269835", "0.5695083", "0.56642234", "0.56497097", "0.5649544", "0.56371886", "0.5631975", "0.5623136", "0.5622733", "0.55795413", "0.5573542", "0.5572...
0.76488006
0
Attempt insert query execution
function insertmessage($name, $phone,$message) { $name = $this->dbh->getConn()->real_escape_string($name); $phone = $this->dbh->getConn()->real_escape_string($phone); $message = $this->dbh->getConn()->real_escape_string($message); $sql = "INSERT INTO messages (name, phone,message) VAL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _insert()\n\t{\n\t}", "function perform_insertion($statement) {\n $dbconn = new DBConnection();\n $conn = $dbconn->getConnection();\n // on the connection, we need to check if the insertion worked.\n // Check affected_rows\n if ($conn->query($statement) == FALSE) {\n retu...
[ "0.72821754", "0.7210543", "0.7191001", "0.71807134", "0.71807134", "0.71479076", "0.70092696", "0.6977297", "0.69654185", "0.6948748", "0.6920546", "0.68751895", "0.6874554", "0.6854166", "0.6837952", "0.6826002", "0.6823446", "0.6802932", "0.6783786", "0.67770296", "0.67673...
0.0
-1
Display a listing of the resource.
public function index() { $contatos = Contatos::all(); return view('contatos.index',['contatos'=>$contatos]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create() { return view('contatos.novo'); }
{ "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) { $contato = new Contatos(); $contato->nome = $request->nome; $contato->email = $request->email; $contato->UF = $request->UF; $contato->observacao = $request->observacao; $contato->endereco_id = Enderecos::create(['endereco'=>$...
{ "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) { $contato = Contatos::find($id); return view('contatos.show',['contato'=>$contato]); }
{ "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) { $contato = Contatos::find($id); return view('contatos.edit',['contato'=>$contato]); }
{ "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, $id) { $contato = Contatos::find($id); $endereco = Enderecos::find($contato->endereco_id); $endereco->endereco = $request->endereco; $endereco->save(); $tel = Telefones::find($contato->telefone_id); $tel->telefone = $request...
{ "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) { $contato = Contatos::find($id); Enderecos::destroy($contato->endereco->id); Telefones::destroy($contato->telefone->id); $contato->delete(); return redirect()->back()->with('mensagem','Contato excluído com sucesso'); }
{ "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
Bootstrap any application services.
public function boot() { view()->composer('admin.job._form', function ($view) { $view->with('tipe_job', JobType::query()); }); view()->composer('admin.job._form', function ($view) { $view->with('company', Company::query()); }); view()->composer(['visit...
{ "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
Creates a new pointer
public function __construct($path) { if ('' === $path) { $this->path= []; } else if (1 === strspn((string)$path, '/')) { $this->path= []; foreach (explode('/', substr($path, 1)) as $token) { $this->path[$token]= $this->address($token); } } else { throw new IllegalArgume...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function regularNew() {}", "function xptr_new_context()\n{\n}", "public function createNew();", "public static function createNew();", "abstract function &create();", "function _newobj()\n\t\t{\n\t\t\t$this->n++;\n\t\t\t$this->offsets[$this->n]=strlen($this->buffer);\n\t\t\t$this->_out($this->n.' ...
[ "0.5981811", "0.56818634", "0.5650713", "0.5644043", "0.5577867", "0.5533378", "0.5425616", "0.5425616", "0.54124284", "0.54108465", "0.5386438", "0.5375945", "0.53138", "0.5292441", "0.5292441", "0.52901727", "0.5276493", "0.52690923", "0.52026576", "0.51705545", "0.51340044...
0.0
-1
Resolves input to an address
public function resolve(&$input) { $address= new RootOf($input); foreach ($this->path as $resolver) { $address= $resolver($address); } return $address; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAddress();", "public function getAddress();", "public function getAddress() {}", "public function parseAddressesProvider() {}", "private function processAddress(bool $anonymize, ?string $address): ?string\n {\n if (! $anonymize || $address === null || $address === IpAddress::LO...
[ "0.6653128", "0.6653128", "0.6581496", "0.655808", "0.63244957", "0.6274565", "0.6260165", "0.6137691", "0.61244327", "0.60044897", "0.5935135", "0.5914391", "0.58331543", "0.5818694", "0.579091", "0.57752115", "0.5760041", "0.57568413", "0.57357705", "0.5734917", "0.5726397"...
0.6298539
5
/ name: getAirportsList params: return: desc: getAirportsList frontend
public static function getAirportsList($qryArray=array()){ $partnerslist = array(); $wheredata = array(); $partnerslist = DB::table('airports'); if(count($qryArray)>0) { if(isset($qryArray['lastAirports']) && $qryArray['lastAirports']=='1'){ $partner...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getAirportList()\n {\n $cache = new FilesystemAdapter();\n $airportCache = $cache->getItem('airportcache.list');\n\n if (!$airportCache->isHit()) {\n $client = $this->container->get('guzzle.avinor.client');\n $response = $client->get('/airportNames...
[ "0.79990906", "0.7924506", "0.72659403", "0.7230382", "0.6912281", "0.68131477", "0.67443", "0.67161447", "0.65922433", "0.64775115", "0.63593835", "0.63497937", "0.6311081", "0.62983954", "0.62945336", "0.625903", "0.61564213", "0.61474574", "0.6138124", "0.6116315", "0.6050...
0.61986846
16
/ name: getPartnersList Safe bag params: return: desc: getPartnersList Safe bag backend
public static function getPartnersList($qryArray=array()){ $partnerslist = array(); $wheredata = array(); $partnerslist = DB::table('sb24_partnercode'); if(count($qryArray)>0) { if(isset($qryArray['portId']) && $qryArray['portId']>'0'){ $partnerslis...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPartners()\n {\n return $this->partners;\n }", "public function getPartinUsersList(){\n return $this->_get(2);\n }", "public function getExtraAvailParts($sender, $param)\n\t{\n\t\t$html = \"No parts found!\";\n\t\ttry{\n\t\t\tif(!isset($param->CallbackParameter->selectedI...
[ "0.69985425", "0.63412243", "0.62474257", "0.62097883", "0.6190222", "0.6154883", "0.59547347", "0.5841146", "0.57983345", "0.5790147", "0.56611747", "0.56537765", "0.564951", "0.563663", "0.5634972", "0.56187016", "0.560761", "0.5605808", "0.5564277", "0.55610734", "0.556059...
0.0
-1
/ name: changeAirportStatus params: $stat, $airportid return: desc: change the status of the Airport
public static function changePartnerStatus($stat, $id) { $status = array('stat'=>'error', 'msg'=>'Something went wrong'); DB::table('sb24_partnercode')->where('id', $id)->update(array('status' => $stat)); $status = array('stat'=>'ok', 'msg'=>''); return $status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function changeStatus(int $id);", "public function update_status();", "public function change_status($id, $status) {\n $this -> advertisementsmodel -> change_status($id, $status);\n $this -> session -> set_userdata('success_message', \"Advertisement status updated successfully\");\n ...
[ "0.6651266", "0.62469065", "0.6023895", "0.6014302", "0.59663564", "0.59481096", "0.5946702", "0.59234804", "0.59024566", "0.589059", "0.5867588", "0.5858324", "0.5847636", "0.5839723", "0.58396506", "0.58299", "0.58052593", "0.57828337", "0.57567656", "0.5722767", "0.5715065...
0.57013905
23
/ name: insertPartner params: return: desc: insertPartner admin
public static function insertPartner($portData){ $status = array('stat'=>'error', 'msg'=>'Something went wrong'); $id = 0; $id = DB::table('sb24_partnercode')->insertGetId( $portData ); if($id>0){ $status = array('stat'=>'ok', 'msg'=>'Partner Added Successfully'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_partner($data_arr,$type,&$validation_passed,&$err_arr){\n global $g_mc;\n \n \n //$company_name = $g_mc->view_to_db($data_arr['name']);\n //validation\n $validation_passed = true;\n //first check if name is sent or not\n if($data_arr['firm...
[ "0.69005585", "0.6809805", "0.6563874", "0.65374297", "0.6372097", "0.6287225", "0.6282565", "0.6110784", "0.6109902", "0.6103865", "0.6040172", "0.60077983", "0.59547687", "0.5926165", "0.59252036", "0.5924226", "0.5904729", "0.5887969", "0.5864096", "0.58332485", "0.5829831...
0.6494465
4
/ name: checkPartnerCode params: PartnerCode return: desc: check if PartnerCode already exists
public static function checkPartnerCode($code){ $status = array('stat'=>'error', 'msg'=>'Something went wrong'); $ports = array(); $ports = DB::table('sb24_partnercode')->where('code', strtoupper($code) )->select('id')->orderBy ('id', 'desc')->take(1)->get(); if(count($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function check_partner() {\n global $_REQUEST;\n global $sess;\n global $config;\n if (! eregi(\"^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]$\",$_REQUEST['partner_id'])) { // czy format partner_id OK\n return false;\n } else $partner_id=$_REQUEST['partner_id'];\n ...
[ "0.8086262", "0.6407213", "0.63327724", "0.6244169", "0.6203155", "0.5983598", "0.5879071", "0.5845439", "0.57556194", "0.5736668", "0.57215846", "0.5675411", "0.5669275", "0.5653539", "0.56459343", "0.5577234", "0.5566618", "0.5557417", "0.552936", "0.5515569", "0.5508146", ...
0.7549789
1
/ name: updateAdminAirport params: $portdata, $airportid return: desc: change the details of the Airport Admin
public static function updatePartner($portdata, $id) { $status = array('stat'=>'error', 'msg'=>'Something went wrong'); DB::table('sb24_partnercode')->where('id', $id)->update( $portdata ); $status = array('stat'=>'ok', 'msg'=>'Partner Edited Successfully'); return $status; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Airport $airport)\n {\n //\n }", "public function testUpdateAirport()\n {\n $db=new Db();\n $this->airport->setAirportFromDB($db, 8);\n $actual=$this->airport->updateAirport($db);\n $this->assertEquals(true,$actual);\n }", "function updateAirp...
[ "0.6825978", "0.6721659", "0.6549448", "0.6472521", "0.6343022", "0.61399287", "0.609083", "0.6001199", "0.5985953", "0.58481944", "0.5838959", "0.5824509", "0.57748777", "0.5758576", "0.5755747", "0.575353", "0.57487", "0.5743395", "0.5741757", "0.5723085", "0.5716736", "0...
0.584427
10
Get all types associated with this provider
public function getTypes() { return get_object_vars($this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTypes();", "public function getTypes();", "public function getTypes();", "public function getTypes();", "public static function getAll()\r\n {\r\n return self::$typeRegistry;\r\n }", "protected function getTypes() {}", "public function typesProvider()\n {\n return [\n ...
[ "0.75747883", "0.75747883", "0.75747883", "0.75747883", "0.74928564", "0.7445555", "0.73903793", "0.73855627", "0.73395234", "0.7316055", "0.72919816", "0.7197441", "0.7197441", "0.7131269", "0.7069699", "0.70625514", "0.7060138", "0.7013119", "0.7007147", "0.6960054", "0.694...
0.6727703
31
Get the validation rules that apply to the request.
public function rules() { return [ // ]; }
{ "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
Run the database seeds.
public function run() { Game::query()->delete(); foreach(Player::all() as $player) { $numGames = rand(20,50); foreach(range(1,$numGames) as $num) { $game = Game::factory()->make(['game_number' => $num, 'player_id' => $player->id]); $player->gam...
{ "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() { if(!Auth::check()) return redirect() -> to('panel/login'); $categories = self::getCategories(1); return view('panel.category.table', [ 'table' => $categories ]); }
{ "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() { if(!Auth::check()) return redirect() -> to('panel/login'); $pageData = self::getPageData('Create new products category - general', 'panel/products/categories/new/general', 'general'); return view('panel.category.general', $pageData); }
{ "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) { $categoryResponse = ProductsCategory::newRecord($request -> all()); // var_dump($categoryResponse); switch($categoryResponse['type']) { case 'Unauthenticated': flash() -> error($categoryResponse['message']); if(...
{ "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
Store a newly created resource in storage.
public function storeTranslation(Request $request) { if(!Auth::check()) return redirect() -> to('panel/login'); }
{ "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) { if(!\Auth::check()) return redirect() -> to('/panel/login'); $category = ProductsCategory::find($id); $existCheck = ProductsCategory::checkExisting($category, $id); if($existCheck['error']['code']) return view('panel.errors.404', $existCheck['error']['data...
{ "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.7855196", "0.76957726", "0.7273917", "0.7241426", "0.71717227", "0.7064183", "0.70528984", "0.69836885", "0.694763", "0.69469565", "0.6941572", "0.69301945", "0.6903868", "0.68989486", "0.68989486", "0.68787694", "0.68641657", "0.6860115", "0.6857286", "0.68464494", "0.683...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { if(!Auth::check()) return redirect() -> to('panel/login'); $data = Input::all(); $validate = ProductsCategory::editRecord($id, $data); switch($validate['error']['type']) { case 'invalidData': return redirect() -> back() -> withI...
{ "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) { if(!Auth::check()) return redirect() -> to('panel/login'); $category = ProductsCategory::find($id); $childs = $category -> childs; foreach($childs as $child) { $child -> delete(); } $category -> delete(); return redirect(...
{ "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
/ Plugin Name: Site List Plugin URI: Description: This plugin will add a shortcode that can be used to generate and display a list of all the sites in a multisite network. Author: Jon Breitenbucher Author URI: Version: 1.0 License: GNU General Public License v2.0 (or later) License URI: Add a [sitelist] shortcode to li...
function jb_list_all_network_sites() { global $wpdb; $result = ''; $sites = array(); $blogs = $wpdb->get_results($wpdb->prepare("SELECT * FROM $wpdb->blogs WHERE spam = '0' AND deleted = '0' and archived = '0' and public='1'")); if(!empty($blogs)) { foreach($blogs as $blog) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ssc_location_shortcode( $atts ) {\n\textract( shortcode_atts( array(\n\t\t'sites' => get_current_blog_id(),\n\t\t'hours' => 'hide',\n\t\t'map' => 'hide',\n\t\t'address' => 'show'\n\t\t), $atts ) );\n\tif ( $sites == 'all' ) {\n\t\t$site_list = get_blog_list( 0, 'all' );\n\t}\n\telse {\n\t\t$site_list = ar...
[ "0.6257706", "0.6104162", "0.6043351", "0.5998293", "0.59878147", "0.5963538", "0.59376615", "0.5931486", "0.5903335", "0.58565223", "0.58479315", "0.5802282", "0.5801367", "0.5757627", "0.5757277", "0.56706434", "0.5638412", "0.5618527", "0.5581637", "0.55246913", "0.5523839...
0.5714013
15
Display a listing of the resource.
public function index() { if(NumberOfAutomaticEmail::find(1)){ $quantity = NumberOfAutomaticEmail::find(1); } else { $quantity = new NumberOfAutomaticEmail; } return view('automatic-emails.index', compact('quantity')); }
{ "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
Update the specified resource in storage.
public function update(Request $request, $id) { if (! $request->ajax()) abort(403, 'Unauthorized action.'); NumberOfAutomaticEmail::where('id', 1)->update([ 'quantity' => $request->input('quantity') ]); return response()->json([ 'mensaje'...
{ "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
Retornamos vista del login
public function showLoginForm() { return view('auth.login'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLogin();", "public function getLogin();", "public function getLogin();", "public function login();", "public function login();", "private function login(){\n \n }", "public function login() {\n\n $user_login = trim(in('id'));\n $user_pass = in('password');\n ...
[ "0.8125726", "0.8125726", "0.8125726", "0.7900083", "0.7900083", "0.7691457", "0.7314852", "0.726456", "0.72525424", "0.72496486", "0.724711", "0.7242342", "0.7233132", "0.7230456", "0.7219693", "0.72124535", "0.7185834", "0.71632224", "0.71632224", "0.71366656", "0.7135054",...
0.0
-1
Recibimos los datos del login
public function login(Request $request) { $request->validate([ 'email' => 'required|email|exists:users,email', 'password' => 'required|min:8' ]); if (Auth::attempt(['email' => $request->email, 'password' => $request->password])) { $request->session()->reg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function recibirdatos() {\n\t\t$passSha1 = sha1($this->input->post('password'));\n\t\t$datos = array(\n\t\t\t'usuario' => $this->input->post('usuario'),\n\t\t\t'password' => $passSha1\n\t\t\t);\n\t\t//Llamamos al modelo, Si la autentificacion es correcta damos paso a la aplicacion y sino devolvemos al login...
[ "0.74820656", "0.72105795", "0.71590203", "0.71439654", "0.7050494", "0.7050494", "0.70038426", "0.68975925", "0.6807479", "0.67741525", "0.67594564", "0.6730741", "0.66997397", "0.66890484", "0.6686962", "0.6656941", "0.66182745", "0.6609685", "0.6603099", "0.6603099", "0.66...
0.0
-1
Retornamos vista del signup
public function showSignupForm() { return view('auth.signup'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sign_up()\n {\n\n }", "public function signup()\n\t{\n\t\t$data = $this->check($this->as_array());\n\t\t\n\t\t$user = Sprig::factory('user');\n\t\t$user->values($data);\n\t\treturn $user->signup();\n\t}", "public function signup(){\n \n $this->data[\"title_tag\"]=\"L...
[ "0.72885686", "0.7177277", "0.71085703", "0.705001", "0.7016478", "0.7000323", "0.6994176", "0.69622046", "0.69166756", "0.6913767", "0.6899461", "0.68003833", "0.6796162", "0.67950934", "0.678543", "0.6776235", "0.6762969", "0.67415667", "0.67321587", "0.6721957", "0.670534"...
0.64262277
58
Recibimos los datos para crear un nuevo usuario
public function signup(Request $request) { $request->validate([ 'name' => 'required|min:5', 'email' => 'required|email|unique:users,email', 'password' => 'required|min:8|confirmed' ]); $user = new User; $user->name = $request->name; $user-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function crearUsuario() {\n\n\n if ($this->seguridad->esAdmin()) {\n $id = $this->usuario->getLastId();\n $usuario = $_REQUEST[\"usuario\"];\n $contrasenya = $_REQUEST[\"contrasenya\"];\n $email = $_REQUEST[\"email\"];\n $...
[ "0.7432558", "0.7358021", "0.7173905", "0.71074945", "0.69815356", "0.69193345", "0.6916324", "0.6897353", "0.68696743", "0.68475217", "0.6815028", "0.6812543", "0.6795319", "0.67737836", "0.67652774", "0.6739366", "0.67369163", "0.6735787", "0.6717279", "0.6709902", "0.67050...
0.0
-1
Change Method. More information on this method is available here:
public function change() { $table = $this->table('sales'); $table ->addColumn('seller_id', 'integer', [ 'null' => false, ]) ->addForeignKey('seller_id', 'sellers', 'id', [ 'delete' => 'CASCADE', 'update' => 'CASCADE'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function change();", "function change()\n {\n }", "public function change($changes);", "public function change()\n {\n echo '客户要求改变一个需求' . PHP_EOL;\n }", "public function change($options)\n\t{\n\n\t}", "public function setChanged()\n {\n\n $this->_changed = tr...
[ "0.84217495", "0.77721107", "0.7686793", "0.74927205", "0.7245604", "0.70412993", "0.6984869", "0.6883122", "0.68630093", "0.68287313", "0.68282807", "0.6820752", "0.68063927", "0.67938966", "0.67618406", "0.6757705", "0.65657175", "0.6544782", "0.65386945", "0.65318614", "0....
0.0
-1
Test the format method
public function testFormat($data, $expected) { $this->assertEquals($expected, (new VenueAddress(new Address(new DataHelperService())))->format($data)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function format();", "public function testFormat() {\n\t\t$is = $this->Numeric->format('22');\n\t\t$expected = '22,00';\n\t\t$this->assertEquals($expected, $is);\n\n\t\t$is = $this->Numeric->format('22.30', ['places' => 1]);\n\t\t$expected = '22,3';\n\t\t$this->assertEquals($expected, $is);\n\n\t\t$is =...
[ "0.79604435", "0.7687821", "0.75333744", "0.7338944", "0.72970957", "0.7291923", "0.7291923", "0.7291923", "0.7096427", "0.70041907", "0.69935006", "0.6931377", "0.6931377", "0.68999404", "0.68999404", "0.68999404", "0.68999404", "0.68999404", "0.68999404", "0.68495184", "0.6...
0.61821413
49
Channels goes to filter.php to perform filters then redirects back to channels.php
public function action_filter() { if (Input::post()){ if (Input::post('filter')){ require APPPATH.'likestv.php'; try { // Retrieve profile information since user is logged in $user_profile = $facebook->api('/me'); } catch (FacebookApiException $e) { error_log($e); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handleFilters()\n\t{\n\t\t$profile = $this->profile;\n\n\t\t$data = Input::get('filteroption');\n\t\tforeach($data as &$value)\n\t\t{\n\t\t\t$value = (array) $value;\n\t\t}\n\n\t\t$this->profileService->syncProfileProperties($profile, $data);\n\n\t\treturn Redirect::action('datacollector.controller...
[ "0.62741536", "0.5994517", "0.58285356", "0.5781243", "0.5771682", "0.56391186", "0.56228375", "0.5580656", "0.5515197", "0.5488576", "0.54471505", "0.542103", "0.53812265", "0.5380985", "0.53808117", "0.53610915", "0.5358624", "0.5314194", "0.530908", "0.53077877", "0.529676...
0.7178208
0
Set company by organization number.
public function setCompany(string $organizationNumber): Company { $this->company = $this->companies()->firstWhere('organizationNumber', $organizationNumber); return $this->company; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCompany($company_nid);", "protected function setOrganization() {}", "public function setCompany(string $company): void\n {\n $this->_company = $company;\n }", "public function setCompany($company)\n {\n $this->company = $company;\n }", "public function setOrgani...
[ "0.7244687", "0.671106", "0.66093653", "0.63743985", "0.6263388", "0.60430837", "0.5995699", "0.59500074", "0.5864759", "0.58495754", "0.5823558", "0.5783316", "0.5763185", "0.5664328", "0.5591494", "0.5584936", "0.5581775", "0.5543056", "0.55362064", "0.55198526", "0.5469348...
0.6551115
3
Get details about current user.
public function user(): User { return User::load('https://fiken.no/api/v1/whoAmI'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserInfo()\n {\n return $this->_process('user/info')->user;\n }", "public function getDetails()\n {\n if($user = $this->loadUser())\n \treturn $user;\n }", "public function getUserInfo()\n {\n $CI = &get_instance();\n if (!$this->loggedIn()) ...
[ "0.81497645", "0.8061888", "0.8002567", "0.77987933", "0.77955014", "0.7745731", "0.7744236", "0.7697352", "0.76636624", "0.76505744", "0.7622343", "0.7580785", "0.7580785", "0.7580785", "0.75805277", "0.75791794", "0.75661445", "0.7559261", "0.7557498", "0.7505841", "0.75011...
0.0
-1
Get all companies the current user can access.
public function companies(): Collection { return Company::all(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function allCompanies()\n {\n return Company::all();\n }", "public function getCompanyWithUsers();", "function Companies(){\n\t\t\t\treturn $this->companies;\n\t\t\t}", "public function index()\n {\n return Company::all();\n }", "public function index()\n {\n retu...
[ "0.79454535", "0.7457357", "0.717595", "0.7052864", "0.7052864", "0.7036546", "0.69246703", "0.6855041", "0.68033946", "0.6782179", "0.6768089", "0.67501235", "0.6738401", "0.6709291", "0.6623166", "0.6617485", "0.65839446", "0.65497184", "0.6545647", "0.6520803", "0.6514317"...
0.7277331
2
/////////////////////// get notifcation in backend
public static function Get_four_Notify() { $notfit= NotificationBackent::where('seen',0)->orderBy('created_at','desc')->take(7)->get(); return $notfit; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getNotification(){\n\n\n}", "public function getCustomerNoteNotify();", "public function get_notification_get(){\n $notification = $this->model->getAllwhere('notification');\n\n $resp = array(\n 'rccode' => 1,\n 'message' => 'SUCCESS',\n 'not...
[ "0.67583597", "0.666675", "0.6664898", "0.64351743", "0.62274694", "0.622248", "0.6150995", "0.60949", "0.6067228", "0.6056791", "0.6056791", "0.6049234", "0.5995948", "0.598779", "0.59843594", "0.5943982", "0.59261906", "0.58956194", "0.5836243", "0.58224106", "0.5818419", ...
0.0
-1
Remove unnecessary menu item classes
public static function nav_menu_css_class( $classes, $item, $args = array() ) { if(strpos($item->url, '#') !== false && ($key = array_search('current-menu-item', $classes)) !== false) { unset($classes[$key]); $classes[] = 'maybe-current-menu-item'; } return $classes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wd_clean_nav_menu_classes( $classes ) {\n\tif( ! is_array( $classes ) )\n\t\treturn $classes;\n\tforeach( $classes as $i => $class ) {\n\t\t// Remove class with menu item id\n\t\t$id = strtok( $class, 'menu-item-' );\n\t\tif( 0 < intval( $id ) )\n\t\t\tunset( $classes[ $i ] );\n\t\t// Remove menu-item-typ...
[ "0.7474491", "0.7447487", "0.70376986", "0.6999272", "0.69872403", "0.6969902", "0.6855018", "0.6828223", "0.67462105", "0.6737136", "0.66620994", "0.66472805", "0.66102123", "0.6585461", "0.6539161", "0.652962", "0.6479195", "0.64295536", "0.6428678", "0.6428245", "0.6424933...
0.5863518
65
Wrap oEmbeds in .wpvvideoframe
public function oembed_dataparse($output, $data, $url) { if($data->type == 'video') return '<div class="wpv-video-frame">'.$output.'</div>'; return $output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function wrapEmbeds()\n {\n add_filter( 'embed_oembed_html', function($html){\n $isYouTube = strpos($html, 'youtube.com/embed') !== false;\n $isVimeo = strpos($html, 'player.vimeo.com/video') !== false;\n\n if ($isYouTube || $isVimeo) {\n return '...
[ "0.7561903", "0.75531363", "0.75531363", "0.7405841", "0.7148239", "0.6967088", "0.6799514", "0.6698901", "0.6601806", "0.6538781", "0.6497364", "0.64909273", "0.64761406", "0.6460688", "0.6451055", "0.6430444", "0.6417358", "0.6371981", "0.63511556", "0.6330486", "0.6320806"...
0.0
-1
Returns the HTML for the column titles, based on their type
public function column_title($title, $type) { if($type === 'no-divider') return "<h2 class='column-title'>$title</h2>"; return WPV_Text_Divider::shortcode(array( 'more' => '', 'type' => $type, ), $title); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTitleColTemplate(): TitleColTemplate;", "function header() {\n //\n //Get the fields in this sql \n $cols= $this->fields->get_array();\n //\n //Loop through the fields and display the <tds>\n foreach ($cols as $col) {\n //\n $nam...
[ "0.74423784", "0.70470494", "0.6928609", "0.6759071", "0.6705128", "0.67030287", "0.6564116", "0.65252364", "0.64909834", "0.64689285", "0.64312834", "0.6428453", "0.6419739", "0.6393128", "0.6373143", "0.63673395", "0.6363197", "0.6347214", "0.6315264", "0.62970835", "0.6283...
0.6776873
3
Correct image size for the multiwidget images
public function posts_widget_img_size($img_size, $args) { if(strpos($args['id'], 'footer-sidebar') !== false) return 43; return 350; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function image_size(){\n\t\t//add_image_size( 'thumb-owl', 205, 205, true );\n//\tadd_image_size( 'thumb-150', 150, 150, true);\n//\tadd_image_size( 'thumb-120', 120, 120, true);\n//\tadd_image_size( 'thumb-100', 100, 100, true );\n//\tadd_image_size( 'thumb-250', 250, 250, true );\n// // add_image_size( ...
[ "0.72241586", "0.72085947", "0.71654737", "0.7053895", "0.70389926", "0.7023754", "0.6955483", "0.69494057", "0.69162506", "0.6912746", "0.6868146", "0.6838917", "0.68373936", "0.67575914", "0.6756643", "0.67295784", "0.66742134", "0.66678786", "0.6629777", "0.662493", "0.662...
0.62066513
44
Correct thumbnail name for the multiwidget images
public function posts_widget_thumbnail_name($img_size, $args) { if(strpos($args['id'], 'footer-sidebar') !== false) return 'posts-widget-thumb-small'; return 'posts-widget-thumb'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_thumb_name(){\n\t\treturn \"{$this->id}_thumb.png\";\n\t}", "function getName() \t\t { return 'NP_ImageCreateThumbnail'; }", "function makeThumbnailName($image)\n{\n $i = strrpos($image, '.');\n $image_name = substr($image, 0, $i);\n $ext = substr($image, $i);\n $image = $image_nam...
[ "0.7621408", "0.7425551", "0.6870915", "0.6870706", "0.6790062", "0.67330444", "0.67270553", "0.6707585", "0.6707585", "0.66884357", "0.6642252", "0.65671974", "0.6562075", "0.65507853", "0.65245175", "0.65006876", "0.646468", "0.6458054", "0.6414787", "0.63837826", "0.635767...
0.6760387
5
Sets the excerpt length
public function excerpt_length($length) { global $wpv_loop_vars; if(isset($wpv_loop_vars) && $wpv_loop_vars['news']) return 15; return $length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function t_excerpt_length(){\n\t// sets the amount of characters an excerpt contains\n\treturn 50;\n}", "public function excerpt($length = 300);", "function cheffism_custom_excerpt_length( $length ) {\n return 50;\n}", "function wpdocs_custom_excerpt_length( $length ) {\n return 20;\n }", "function ...
[ "0.8081721", "0.7576608", "0.7507579", "0.7507363", "0.75065815", "0.75009954", "0.7492817", "0.7492817", "0.7478013", "0.7435886", "0.74347025", "0.7429723", "0.7398464", "0.7388961", "0.7386184", "0.7376455", "0.73690224", "0.7359125", "0.7356135", "0.73504376", "0.73466796...
0.74925864
8
Sets the excerpt ending
public function excerpt_more($more) { return '...'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setExcerpt(string $excerpt): void\n {\n $this->_excerpt = $excerpt;\n }", "public function setExcerptAttribute($value)\n {\n $this->attributes['excerpt'] = $value ? $value : null;\n }", "public function setExcerpt($excerpt)\r\n\t\t{\r\n\t\t\t$this->setExcerpt = $excerp...
[ "0.59883", "0.5922214", "0.5890393", "0.5856856", "0.57968324", "0.5759573", "0.55200624", "0.5514128", "0.5493126", "0.54888433", "0.5480273", "0.54789585", "0.5445467", "0.5410916", "0.5407641", "0.53905845", "0.53852606", "0.5382787", "0.5370503", "0.5367101", "0.5358457",...
0.544739
12
Add the tabbed widget icons
public function multiwidget_tab_title($title, $slug, $single) { if($single) return ''; $icons = array( 'comment_count' => 'theme-heart', 'date' => 'theme-pencil', 'comments' => 'theme-comment', 'tags' => 'theme-tag', ); if(isset($icons[$slug])) { $title = esc_attr($title); return "<span t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function inkpro_set_customizer_tabs_icons() {\r\n\t$mods = inkpro_customizer_get_mods();\r\n\r\n\t$css = '';\r\n\r\n\tforeach ( $mods as $key => $value) {\r\n\t\t\r\n\t\tif ( isset( $value['icon'] ) && isset( $value['id'] ) ) {\r\n\r\n\t\t\t$section_id = $value['id'];\r\n\t\t\t$icon_slug = $value['icon'];\r\n\r\n\...
[ "0.6808254", "0.6362116", "0.62383133", "0.6144933", "0.60969317", "0.60567397", "0.6024435", "0.60198903", "0.6017377", "0.6002193", "0.60003424", "0.5975321", "0.5955275", "0.58772314", "0.5862733", "0.5848616", "0.58180535", "0.58064556", "0.5798938", "0.5744497", "0.57255...
0.0
-1
Show the tab title if only one tab is to be displayed
public function multiwidget_single_title($only, $title) { echo $title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTabTitle()\n {\n return __('Single Page Details');\n }", "public function getTabTitle()\r\n\t{\r\n\t\treturn Mage::helper('slider')->__('Banner Info');\r\n\t}", "public function getTabTitle()\r\n {\r\n return Mage::helper('slideshow')->__('Slide Information');\r\n }...
[ "0.7138815", "0.7108961", "0.7105105", "0.70524544", "0.70360774", "0.7021039", "0.7016205", "0.700888", "0.69673294", "0.6954351", "0.69278586", "0.69069386", "0.68949056", "0.6850852", "0.6848776", "0.68394005", "0.67961806", "0.67853516", "0.67739546", "0.67701215", "0.674...
0.0
-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.8401071", "0.8377486", "0.8377486", "0.8344406", "0.8253731", "0.824795", "0.8213121", "0.8146598", "0.81115526", "0.8083369", "0.7991986", "0.79907674", "0.79836637", "0.79604936", "0.79516214", "0.79494005", "0.79265946", "0.7915068", "0.79001635", "0.7894822", "0.789145...
0.0
-1
Get the validation rules that apply to the request.
public function rules() { if (str_contains($this->url(), 'course/sort/update')) { return [ 'course_ids' => 'required|array', 'course_ids.*' => 'sometimes|integer' ]; } else { return [ 'name' => 'required|max:64', ...
{ "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
Display a listing of the resource.
public function index() { $supplier = Supplier::orderBy('created_at', 'desc')->paginate(10); return view('supplier.index',['supplier' => $supplier]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create() { return view('supplier.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) { $supplier = new Supplier(); $supplier->supplier_name = $request->supplier_name; $supplier->company_name = $request->company_name; $supplier->telephone = $request->telephone; $supplier->email = $request->email; $supplier->addre...
{ "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) { $supplier = Supplier::find($id); return view('supplier.show',['supplier' => $supplier]); }
{ "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) { $supplier = Supplier::find($id); return view('supplier.edit',['supplier' => $supplier]); }
{ "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.7855196", "0.76957726", "0.7273917", "0.7241426", "0.71717227", "0.7064183", "0.70528984", "0.69836885", "0.694763", "0.69469565", "0.6941572", "0.69301945", "0.6903868", "0.68989486", "0.68989486", "0.68787694", "0.68641657", "0.6860115", "0.6857286", "0.68464494", "0.683...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { $supplier = Supplier::find($id); $supplier->supplier_name = $request->supplier_name; $supplier->company_name = $request->company_name; $supplier->telephone = $request->telephone; $supplier->email = $request->email; $supp...
{ "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
Array of property to type mappings. Used for (de)serialization.
public static function openAPITypes() : array { return self::$openAPITypes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTypes()\n {\n $types = PropertyType::all();\n $values = [];\n foreach ($types as $key) {\n $values[] = $key->id;\n }\n return $values;\n }", "public static function getTypesMap(): array\n {\n return self::$typesMap;\n }", "publ...
[ "0.68564117", "0.6678997", "0.66784334", "0.6625645", "0.65831053", "0.6510718", "0.65102845", "0.6483358", "0.6483358", "0.6483358", "0.6480469", "0.63242066", "0.62419933", "0.61962336", "0.6169887", "0.61274546", "0.61274546", "0.6111657", "0.611102", "0.611102", "0.610964...
0.0
-1
Array of property to format mappings. Used for (de)serialization.
public static function openAPIFormats() : array { return self::$openAPIFormats; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFormats()\n {\n\t $format_field = $this->getValue('format');\n\t return wed_decodeJSON($format_field,true);\n }", "protected function getFormats(): array\n {\n return [self::FORMAT_JSON, self::FORMAT_XML];\n }", "public function provideSetFormat()\n {\n ret...
[ "0.6369262", "0.6346422", "0.6287138", "0.6234832", "0.6135214", "0.60852677", "0.6045072", "0.60301864", "0.6028642", "0.60068315", "0.59978646", "0.5966637", "0.591387", "0.5900184", "0.5889949", "0.5855736", "0.5817106", "0.5792559", "0.57647765", "0.5756683", "0.57351196"...
0.0
-1
Array of attributes where the key is the local name, and the value is the original name.
public static function attributeMap() : array { return self::$attributeMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function changedAttributesName(): array\n {\n $changedAttributes = [];\n $attributes = $this->toArray();\n foreach ($attributes as $key => $value) {\n if (isset($this->originals[$key]) && $value !== $this->originals[$key] && ! ((is_array($this->originals[$key]) || is_objec...
[ "0.7510785", "0.70173377", "0.6707434", "0.6631744", "0.662846", "0.6551837", "0.6509276", "0.64513093", "0.6426274", "0.6422142", "0.641162", "0.6410572", "0.6409657", "0.63873124", "0.63873124", "0.63873124", "0.63873124", "0.6351699", "0.6349291", "0.63108206", "0.62710226...
0.0
-1