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
Function used to get response from API (POST Method)
public function post($slug, $params) { $post_parameters = http_build_query($params); curl_setopt($this->handle, CURLOPT_URL, $this->base_uri . $slug); curl_setopt($this->handle, CURLOPT_POST, count($post_parameters)); curl_setopt($this->handle, CURLOPT_POSTFIELDS, $post_parameters);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getResponse() {}", "public function getResponse() {}", "public function getResponse();", "public function getResponse();", "public function getResponse();", "public function getResponse();", "public function getResponse();", "public function getResponse();", "public function getResp...
[ "0.7533215", "0.7533215", "0.74866843", "0.74866843", "0.74866843", "0.74866843", "0.74866843", "0.74866843", "0.74866843", "0.74866843", "0.74866843", "0.74866843", "0.74866843", "0.73141325", "0.7258936", "0.7258936", "0.7215269", "0.7164545", "0.707953", "0.7068367", "0.67...
0.0
-1
Function used convert json to array
public function jsonToArray($data, $flag = false) { return $flag ? json_decode($data, true) : json_decode($data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function convert_json_to_array($json)\n\t\t{\t\t \n\t\t\treturn json_decode($json,true);\n\t\t}", "public function convert(string $json): array;", "public static function arr($json)\n {\n return self::decode($json,TRUE);\n }", "function json2Array($json){\n if($json==null) return array();\n ...
[ "0.829026", "0.8062009", "0.79715663", "0.7846958", "0.752597", "0.7492974", "0.71999127", "0.718822", "0.70813465", "0.70300907", "0.70248795", "0.68863624", "0.68480635", "0.68254", "0.67642266", "0.66721636", "0.664401", "0.6634506", "0.6599843", "0.6595275", "0.65924424",...
0.0
-1
Array of property to type mappings. Used for (de)serialization
public static function swaggerTypes() { return [ 'tenant_id' => 'string', 'expires_in' => 'int', 'scopes' => 'string[]' ]; }
{ "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 function getTypes(): array\n {\n return $this->types;\n }", "public static fun...
[ "0.6779591", "0.6607671", "0.6598399", "0.65871716", "0.65820396", "0.6517233", "0.6510976", "0.6476572", "0.6432348", "0.6432348", "0.6432348", "0.6400341", "0.62290716", "0.6181703", "0.6181703", "0.6134249", "0.61259305", "0.6116482", "0.6116482", "0.61130923", "0.6104262"...
0.0
-1
Array of property to format mappings. Used for (de)serialization
public static function swaggerFormats() { return [ 'tenant_id' => null, 'expires_in' => 'int32', 'scopes' => null ]; }
{ "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 }", "public function provideSetFormat()\n {\n return [\n 'json' => [\n 'format' => 'json',\n ],\n 'html' => [\n...
[ "0.6251412", "0.61815494", "0.61307067", "0.60938716", "0.60423416", "0.60406804", "0.5927783", "0.59181404", "0.5906242", "0.58856034", "0.5882179", "0.5819605", "0.58044976", "0.57932156", "0.57928187", "0.5792361", "0.5774231", "0.57428837", "0.5727723", "0.5719939", "0.57...
0.0
-1
Array of attributes where the key is the local name, and the value is the original name
public static function attributeMap() { return [ 'tenant_id' => 'tenant_id', 'expires_in' => 'expires_in', 'scopes' => 'scopes' ]; }
{ "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.73336", "0.68268436", "0.65760714", "0.65756506", "0.65030116", "0.6489458", "0.64807576", "0.6445652", "0.64143735", "0.63852084", "0.6381065", "0.6349757", "0.62795633", "0.6254031", "0.6254031", "0.6254031", "0.6254031", "0.62487864", "0.6192782", "0.61687446", "0.61621...
0.0
-1
Array of attributes to setter functions (for deserialization of responses)
public static function setters() { return [ 'tenant_id' => 'setTenantId', 'expires_in' => 'setExpiresIn', 'scopes' => 'setScopes' ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAttributes();", "public static function setters();", "public static function setters()\n {\n return [\n 'status' => 'setStatus',\n 'quota' => 'setQuota'\n ];\n }", "public function setAttributes(array $attributes);", "public function setAttribute...
[ "0.680262", "0.66679907", "0.6505545", "0.64688873", "0.64688873", "0.64688873", "0.64303744", "0.63683504", "0.63627255", "0.63459826", "0.63396704", "0.61683947", "0.61683947", "0.61683947", "0.61683947", "0.61683947", "0.61683947", "0.61683947", "0.61683947", "0.61683947", ...
0.6124729
25
Array of attributes to getter functions (for serialization of requests)
public static function getters() { return [ 'tenant_id' => 'getTenantId', 'expires_in' => 'getExpiresIn', 'scopes' => 'getScopes' ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAttributes(): array\n {\n // Get all attributes using all the getters.\n $attributes = [];\n foreach(\\array_keys(\\get_object_vars($this)) as $attribute) {\n\n // Construct the getter name.\n $getter = \\lcfirst(\\str_replace('_', '', \\ucwords($att...
[ "0.7071254", "0.6628055", "0.6581621", "0.65085584", "0.65085584", "0.65085584", "0.65085584", "0.6499994", "0.64624524", "0.63637143", "0.6363414", "0.6315606", "0.6315606", "0.6315606", "0.6315606", "0.6315606", "0.6315606", "0.6315606", "0.6315606", "0.6315606", "0.6287656...
0.60473317
43
Array of attributes to checkers functions (for deserialization of responses)
public static function checkers() { return [ 'tenant_id' => 'hasTenantId', 'expires_in' => 'hasExpiresIn', 'scopes' => 'hasScopes' ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function checkers()\n {\n return [\n 'status' => 'hasStatus',\n 'time' => 'hasTime'\n ];\n }", "public static function checkers()\n {\n return [\n 'status' => 'hasStatus',\n 'quota' => 'hasQuota'\n ];\n }", "publi...
[ "0.6367499", "0.61115116", "0.59746855", "0.5890195", "0.58341813", "0.58154964", "0.5687151", "0.55934197", "0.55934197", "0.55934197", "0.55934197", "0.5588508", "0.5416173", "0.54105866", "0.5399686", "0.5370537", "0.53153825", "0.529721", "0.5274143", "0.52711713", "0.525...
0.6059545
2
Array of attributes to validators functions (for deserialization of responses)
public static function validators() { return [ 'tenant_id' => 'validateTenantId', 'expires_in' => 'validateExpiresIn', 'scopes' => 'validateScopes' ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function validators() {\n return [\n 'status' => 'validateStatus',\n 'time' => 'validateTime'\n ];\n }", "public static function validators() {\n return [\n 'status' => 'validateStatus',\n 'quota' => 'validateQuota'\n ];\n ...
[ "0.7298421", "0.7297301", "0.70108515", "0.67424077", "0.65981555", "0.6573553", "0.6400417", "0.63545716", "0.6328082", "0.632274", "0.6322361", "0.6322361", "0.6322361", "0.62947005", "0.6266664", "0.623286", "0.6224481", "0.622074", "0.62146735", "0.62031484", "0.61994165"...
0.712771
2
show all the invalid properties with reasons.
public function listInvalidProperties() { $invalid_properties = []; if (!empty($this->validateTenantId())) { $invalid_properties[] = $this->validateTenantId(); } if (!empty($this->validateExpiresIn())) { $invalid_properties[] = $this->validateExpiresIn(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listInvalidProperties();", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n $allowed_values = [\"CREDIT_CARD\", \"CASH\", \"THIRD_PARTY_CARD\", \"NO_SALE\", \"SQUARE_WALLET\", \"SQUARE_GIFT_CARD\", \"UNKNOWN\", \"OTHER\"];\n if (!in_array($this->c...
[ "0.7885589", "0.7704446", "0.7691335", "0.76856136", "0.76856136", "0.76856136", "0.7683929", "0.76756734", "0.7666285", "0.7653707", "0.7653707", "0.76334393", "0.7632623", "0.7632623", "0.7632623", "0.7632623", "0.7632623", "0.7632623", "0.76262254", "0.7612341", "0.7599556...
0.0
-1
validate all the properties in the model return true if all passed
public function valid() { if (!empty($this->validateTenantId())) { return false; } if (!empty($this->validateExpiresIn())) { return false; } if (!empty($this->validateScopes())) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validate(){\n\t\t$valid = true;\n\t\t$ref = new ReflectionObject($this);\n\t\tforeach($ref->getProperties() as $prop){\n\t\t\tif(isset($this->_atributosMetadata[$prop->getName()])){\n\t\t\t\t$propMetadata = $this->_atributosMetadata[$prop->getName()];\n\t\t\t\tif($propMetadata->needValidate){\n\t\t...
[ "0.7714811", "0.7492581", "0.73749787", "0.72615504", "0.7256669", "0.72510725", "0.7190045", "0.71770793", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919",...
0.0
-1
Display a listing of the resource.
public function index(Request $request) { $user = Auth::user(); if($user == null){ return redirect('/'); } $dataLimite = Carbon::today(); $dataLimite->addDays(7); $manutencoes = $this->model->with(['carro', 'carro.modelo'])->where('data_manutencao', '<='...
{ "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 agendar() { $user = Auth::user(); if($user == null){ return redirect('/'); } $carros = new Carro(); $user = Auth::user()->id; // dd($user); $carros = $carros->with('modelo')->where('user_id', '=', $user)->get(); return vie...
{ "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) { // dd($request->all()); $rules = [ 'carro_id' => 'required', 'data_manutencao' => 'required', ]; $feedback = [ 'required' => 'o campo :attribute é obrigatório', ]; $request->validate($rules,...
{ "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) { $manutencao = $this->model->with(['carro', 'carro.modelo'])->where('id','=',$id)->get(); // dd($manutencao); return view('manutencao.show', compact('manutencao')); // return response()->json($manutencao); }
{ "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) { $manutencao = $this->model->with(['carro', 'carro.modelo'])->where('id','=',$id)->get(); // dd($manutencao); return view('manutencao.edit', compact('manutencao')); }
{ "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) { $rules = [ 'data_manutencao' => 'required', ]; $feedback = [ 'required' => 'o campo :attribute é obrigatório', ]; $request->validate($rules, $feedback); $manutencao = $this->model->find($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) { $manutencao = $this->model->find($id); $manutencao->delete(); return redirect('/home')->with('success', 'Agendamento removido 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
Generate a reponse from a request.
abstract public function createResponse(AbstractRequestClient $request);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get($request) {\n \n $response = new Response($request);\n \n $etag = md5($request->uri);\n if ($request->ifNoneMatch($etag)) {\n \n $response->code = Response::NOTMODIFIED;\n \n } else {\n \n $response->code ...
[ "0.70882523", "0.6656595", "0.6575353", "0.6447545", "0.64081085", "0.6315267", "0.63011444", "0.6295999", "0.62708265", "0.61765665", "0.61694235", "0.6129639", "0.61217386", "0.6117422", "0.60477906", "0.6046573", "0.6039111", "0.60224676", "0.60142684", "0.5956012", "0.591...
0.6612611
2
Getter method for caching time.
public function getCache() { return $this->_cache; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCachingTime()\n {\n return $this->caching_time;\n }", "protected function getCacheTime()\n {\n return $this->_cacheTime;\n }", "public function getCacheTime()\n {\n return $this->_cacheTime;\n }", "protected function getCacheTime() {\n $time = ...
[ "0.8696254", "0.86087936", "0.85240805", "0.8466084", "0.8156797", "0.78342146", "0.7735914", "0.7692793", "0.75370854", "0.7498876", "0.7476101", "0.747194", "0.74226516", "0.74225503", "0.74225503", "0.7408339", "0.7316189", "0.7298312", "0.72981435", "0.7280878", "0.727356...
0.0
-1
Ensure whether the required args are provided or not.
protected function ensureRequiredArguments() { foreach ($this->_requiredArgs as $key) { if (!array_key_exists($key, $this->_args)) { throw new MissingArgumentsException("Missing required arguments detected."); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cli_validateArgs() {}", "public function validateArguments() {}", "function checkMandatoryArguments()\n \t{\n \t\tif($this->mStrAdGUID == \"\" || $this->mStrAdGUID == null)\n \t\t\treturn false;\n \t\telse if($this->mStrQuantity == \"\" || $this->mStrQuantity == null)\n \t\t\tret...
[ "0.7881258", "0.7554249", "0.73210883", "0.72487926", "0.694585", "0.69216114", "0.68941367", "0.6858215", "0.6818977", "0.6708397", "0.6635878", "0.6545998", "0.6537981", "0.65171134", "0.6471064", "0.646974", "0.6448005", "0.6384", "0.6307541", "0.6285083", "0.6285083", "...
0.80023456
0
Getter method for endpoint name
public function getEndpoint() { $tokens = ['{endpointName}' => $this->endpointObject->getEndpointName()]; return $this->parseTokens($this->_endpoint, array_merge($tokens, $this->_tokens)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEndpoint(): string;", "public function getEndpoint(): string;", "public function getEndpoint(): string;", "public function getEndpoint(): string;", "public function getName() {\n\t\treturn $this->selectedEndpoint['name'];\n\t}", "public function getEndpoint(): string\n {\n r...
[ "0.7869495", "0.7869495", "0.7869495", "0.7869495", "0.780383", "0.75142604", "0.74368936", "0.7436417", "0.7436417", "0.7436417", "0.6995193", "0.69802445", "0.69379824", "0.6935496", "0.6935496", "0.6935496", "0.6935496", "0.6935496", "0.6935496", "0.6929748", "0.6889808", ...
0.71641034
10
Parse tokens from a string.
protected function parseTokens($string, array $tokens) { return str_replace(array_keys($tokens), array_values($tokens), $string); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function parse($string);", "abstract public function parse($string);", "public function parse($string)\n {\n // names can be separated either by 'and' and by semicolons\n $state = 'default';\n\n foreach ($tokens as $token) {\n\n switch (true) {\n case 'J...
[ "0.7140114", "0.6724267", "0.6713711", "0.6451844", "0.6326673", "0.62670636", "0.6177846", "0.61567354", "0.61345536", "0.6062511", "0.6006842", "0.5987494", "0.5984926", "0.58889097", "0.5824129", "0.5770442", "0.5754", "0.5741022", "0.57151693", "0.57151693", "0.5649153", ...
0.58738005
14
Setter method for arguments (params). In GET context those are Url Parameters, in POST context its sent als POST fields.
public function setArgs(array $args) { $this->_args = array_merge($this->_args, $args); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setRequestArgumentsFromGetPost() {\n\t\t$validArguments = array('vendorName', 'extensionName', 'pluginName', 'controllerName', 'actionName', 'formatName', 'arguments');\n\t\tforeach ($validArguments as $argument) {\n\t\t\tif (GeneralUtility::_GP($argument)) {\n\t\t\t\t$this->requestArguments[$ar...
[ "0.69055426", "0.6634127", "0.66329473", "0.6552398", "0.6552398", "0.6505202", "0.64942443", "0.64368623", "0.6401226", "0.6392839", "0.62919885", "0.6271311", "0.6267767", "0.62528867", "0.6204221", "0.6194543", "0.6177922", "0.6153767", "0.61413807", "0.6088475", "0.606444...
0.0
-1
Getter method for arguments.
public function getArgs() { return $this->noramlizeArgs($this->_args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function args()\n {\n return $this->arguments->get();\n }", "public function getArguments() {}", "public function getArguments() {}", "public function getArguments() {}", "public function getArguments() {}", "public function getArgs();", "public function getArgs();", "public function getA...
[ "0.81067157", "0.8073984", "0.8073984", "0.8073984", "0.8073984", "0.8008223", "0.8008223", "0.79763675", "0.79763675", "0.79763675", "0.79763675", "0.77553654", "0.7714339", "0.7703491", "0.7624449", "0.76237386", "0.7600902", "0.7600902", "0.7600902", "0.7558071", "0.755807...
0.7135244
87
Find DynamicValue objects in arguments list and return the value for those objects.
private function noramlizeArgs(array $values) { foreach ($values as $k => $v) { if ($v instanceof DynamicValue) { $values[$k] = $v->getValue(); } elseif (is_array($v)) { $values[$k] = $this->noramlizeArgs($v); } } return $v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getValue()\n {\n return self::getInstance()->getValue(func_get_args());\n }", "protected function injectArguments($arguments, &$preparedArguments) {\n\t\tforeach ($arguments as $argument) {\n\t\t\tif ($argument !== NULL) {\n\t\t\t\t$argumentValue = $argument->getValue();\n\t\t...
[ "0.5629481", "0.55709344", "0.54686135", "0.5447687", "0.5352057", "0.5341479", "0.53297156", "0.5252069", "0.5194909", "0.5175022", "0.5175022", "0.5175022", "0.5175022", "0.50754225", "0.50438136", "0.50229204", "0.5011114", "0.49779207", "0.49777794", "0.49768987", "0.4924...
0.4682808
35
Set a default expand values. This should only used inside view, get, find methods in order to ensure a given expand is allways set.
public function setDefaultExpand(array $extraFields) { $this->_defaultExpand = $extraFields; return $this->setExpand([]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setExpand(array $expand)\n {\n $this->expand = $expand;\n\n return $this;\n }", "public function setExpand(?array $expand): self\n {\n $this->expand = $expand;\n\n return $this;\n }", "public function setExpand(?array $expand): self\n {\n $this-...
[ "0.68528765", "0.6818218", "0.6818218", "0.6818218", "0.6818218", "0.5826182", "0.5627352", "0.54655766", "0.54644483", "0.54194033", "0.53964543", "0.53831893", "0.53755015", "0.53520864", "0.5312847", "0.5301966", "0.5286027", "0.52836406", "0.52802455", "0.52696", "0.52286...
0.6379327
5
Expand a given field or relation.
public function setExpand(array $extraFields) { $extraFields = array_merge($this->_defaultExpand, $extraFields); return $this->setArgs(['expand' => implode(",", $extraFields)]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function expandRow(Row $row) {\n $item_id = $row->getSourceProperty('id');\n\n $item = $this->retrieveItem($item_id);\n $files = $this->retrieveItemFiles($item_id);\n $fields = $item->getFields();\n\n // Flatten field values.\n $field_values = [];\n foreach ($fields as $field) {\n ...
[ "0.5810371", "0.55128986", "0.53675485", "0.53668153", "0.53414", "0.53272176", "0.53272176", "0.53272176", "0.53272176", "0.52809846", "0.517364", "0.5103886", "0.50457895", "0.50358224", "0.5032398", "0.50260675", "0.49838132", "0.49816963", "0.49793229", "0.4967043", "0.49...
0.54538196
2
Set the current page which should be used.
public function setPage($id) { return $this->setArgs(['page' => $id]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCurrentPage( $page );", "function setCurrentPage($page) {\n $this->current_page = $page;\n }", "public function setCurrentPage($currentPage);", "public function setCurrentPage(int $currentPage): self;", "public function setCurrentPage($intValue = NULL) {\r\n\t\tif (is_null($int...
[ "0.8120011", "0.79944986", "0.751966", "0.73094565", "0.7223202", "0.71528757", "0.71011853", "0.7072986", "0.7023946", "0.6986984", "0.6969772", "0.6896556", "0.68702805", "0.6800068", "0.67811006", "0.6778331", "0.67495567", "0.6749504", "0.67475575", "0.67376894", "0.67376...
0.0
-1
Set a value of how many items to response for every page.
public function setPerPage($rows) { return $this->setArgs(['per-page' => $rows]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function MyMod_Paging_NPages_Set()\n {\n if ($this->NumberOfItems>$this->NItemsPerPage)\n {\n $this->MyMod_Paging_N=intval($this->NumberOfItems/$this->NItemsPerPage);\n $res=$this->NumberOfItems % $this->NItemsPerPage;\n if ($res>0) { $this->MyMod_Paging_N++; }\n ...
[ "0.7513619", "0.7227682", "0.70935506", "0.7087965", "0.704655", "0.69347864", "0.68795574", "0.6850418", "0.68500185", "0.6842582", "0.66863954", "0.66695243", "0.65117913", "0.64966804", "0.6494585", "0.6464908", "0.64453596", "0.6410382", "0.63779384", "0.63640356", "0.634...
0.0
-1
Provides the option to return only a certain amount of fields. This can speed up the request and reduce the transfer amount of data.
public function setFields(array $fields) { return $this->setArgs(['fields' => implode(",", $fields)]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fetchFields();", "public function fetch_fields() {}", "public function getFields() {}", "public function getFields() {}", "public function getFields() {}", "public function numberOfFields();", "function getFields($table,$fields=\"\",$condition=\"\",$limit=\"\",$calculateRows=false,$fast...
[ "0.66433877", "0.65048087", "0.6283739", "0.6283739", "0.6283739", "0.60722166", "0.6071138", "0.60344", "0.6028455", "0.6028455", "0.6028455", "0.6028455", "0.6028455", "0.6028455", "0.6023943", "0.6023943", "0.6023943", "0.6023943", "0.6023943", "0.6015323", "0.6009734", ...
0.0
-1
Set a sort order for a given field. ```php setSort(['id' => SORT_ASC]); ``` or the opposite way ```php setSort(['id' => SORT_DESC]); ``` + SORT_ASC = 1,2,3 + SORT_DESC = 3,2,1
public function setSort(array $sort) { $sortables = []; foreach ($sort as $field => $order) { $sortables[] = $order == SORT_ASC ? $field : '-' . $field; } return $this->setArgs(['sort' => implode(",", $sortables)]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSort($x) { $this->sort = $x; }", "public function setSortField ($value)\r\n\t{\r\n\t\t$this->sortField = $value;\r\n\t}", "public function SetSort(\n $in_sort_fields_array = null,\n // An array of strings. The array will deliniate the sort order, by field name.\n // Arra...
[ "0.68903214", "0.68764603", "0.68676996", "0.6691304", "0.66362303", "0.65209377", "0.6449973", "0.6426554", "0.634248", "0.62708473", "0.6249484", "0.62409294", "0.6216276", "0.6214688", "0.6205694", "0.62051475", "0.61564195", "0.6147412", "0.6133623", "0.6102947", "0.61022...
0.66313684
5
Set filter conditions. The filters must be enabled on the api side, otherwise it wont have any effect. Example usage assuming filters are configured on api: ```php setFilter(['lang_id' => 1]); // like a where condition lang_id=1 ``` greather then, smaller then operators: ```php setFilter(['publication_date' => ['lt' =>...
public function setFilter(array $filter) { return $this->setArgs(['filter' => $filter]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function SetFilters (array $filters = []);", "protected function setWhereFilters() : ApiGetService\n {\n if(count($this->where_filters) === 0){\n return $this;\n }\n\n // Traverse prepared filters\n foreach($this->where_filters as $column => $value){\n ...
[ "0.6955207", "0.6918812", "0.67278415", "0.64498264", "0.63623965", "0.63034654", "0.6262599", "0.61959195", "0.6177935", "0.6141407", "0.6060521", "0.60581094", "0.6056965", "0.6042256", "0.6000842", "0.5995981", "0.59938323", "0.59854305", "0.59365016", "0.58675766", "0.585...
0.5724999
30
Call the content process with the given content.
public function callContentProcessor($content) { if ($this->_contentProcessor) { return call_user_func($this->_contentProcessor, $content); } return $content; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function exec($content) {\n if ($this->isError()) return $content;\n // sofort wieder raus, wenn imageTweak ausgeschaltet ist\n if (! $this->settings[self::cfgTweakExec]) return $content;\n // pruefen ob die PAGE_ID ignoriere werden soll\n if (in_array(PAGE_ID, $this->sett...
[ "0.64243394", "0.6396475", "0.63360584", "0.626776", "0.6252102", "0.6252102", "0.6252102", "0.6252102", "0.6252102", "0.6252102", "0.6252102", "0.6252102", "0.6252102", "0.6252102", "0.6176902", "0.61707675", "0.61667", "0.6164431", "0.61343163", "0.61241746", "0.6122633", ...
0.7250567
0
Function to get role based picklist values.
public static function getRoleBasedValues(string $fieldName, string $roleId) { if (\App\Cache::has('Picklist::getRoleBasedValues', $fieldName)) { $allValues = \App\Cache::get('Picklist::getRoleBasedValues', $fieldName); } else { $allValues = (new \App\Db\Query())->select([$fieldName, 'roleid']) ->from("v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getValuesForForm()\n {\n $collection = $this->getCollection();\n $options = [];\n if ($collection->getSize() > 0) {\n foreach ($collection as $role) {\n $options[] = ['value' => $role->getId(), 'label' => $role->getData('display_name')];\n ...
[ "0.7393812", "0.7172339", "0.6570209", "0.64377993", "0.6408442", "0.6329241", "0.62448615", "0.6241064", "0.62374127", "0.61255157", "0.6118405", "0.6111821", "0.60565084", "0.60534954", "0.59979", "0.5947731", "0.59450847", "0.59325516", "0.593203", "0.5930951", "0.5919115"...
0.6314612
6
Function which will give the picklist values for a field.
public static function getValuesName($fieldName) { if (\App\Cache::has('Picklist::getValuesName', $fieldName)) { return \App\Cache::get('Picklist::getValuesName', $fieldName); } $primaryKey = static::getPickListId($fieldName); $dataReader = (new \App\Db\Query())->select([$primaryKey, $fieldName]) ->from(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSelectDataFields();", "public function getFieldInstanceByName($name)\n\t{\n\t\t$params = [];\n\t\t$qualifiedModuleName = 'Settings:Picklist';\n\t\t$tableName = $this->getTableName();\n\t\tswitch ($name) {\n\t\t\tcase 'name':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' ...
[ "0.6787255", "0.67535615", "0.66140825", "0.6407077", "0.6334931", "0.6319057", "0.6282326", "0.62708265", "0.6254492", "0.6217553", "0.6191865", "0.6181738", "0.6119202", "0.6075236", "0.60729784", "0.6072118", "0.60642034", "0.60548955", "0.6004274", "0.5985944", "0.5971641...
0.56862664
58
Check if the value exists in the picklist.
public static function isExists(string $fieldName, string $value): bool { return \in_array($value, static::getValuesName($fieldName)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isDuplicateValue(): bool\n\t{\n\t\t$picklistValues = \\App\\Fields\\Picklist::getValuesName($this->fieldModel->getName());\n\t\tif ($this->id) {\n\t\t\tunset($picklistValues[$this->id]);\n\t\t}\n\n\t\treturn \\in_array(strtolower($this->name), array_map('strtolower', $picklistValues));\n\t}", "fu...
[ "0.7074468", "0.66129243", "0.6469228", "0.6297872", "0.61645323", "0.61645323", "0.61645323", "0.61645323", "0.61645323", "0.61645323", "0.61645323", "0.61645323", "0.61645323", "0.61645323", "0.61262304", "0.6083465", "0.6060889", "0.6060889", "0.6060889", "0.6058728", "0.6...
0.5432554
94
Check if picklist exist.
public static function isPicklistExist(string $fieldName): bool { return \App\Db::getInstance()->isTableExists("vtiger_{$fieldName}"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isEmptyPicklistOptionAllowed()\n\t{\n\t\treturn false;\n\t}", "public function checkPicklistExist(App\\Request $request)\n\t{\n\t\t$response = new Vtiger_Response();\n\t\t$response->setResult(\\App\\Fields\\Picklist::isPicklistExist($request->getByType('fieldName', 'Alnum')));\n\t\t$response->emi...
[ "0.66227704", "0.6585442", "0.59476596", "0.5929428", "0.5852229", "0.56846845", "0.5641008", "0.5638053", "0.5638053", "0.5638053", "0.5637467", "0.5637467", "0.5637467", "0.5637467", "0.5636054", "0.5636054", "0.5583198", "0.5518461", "0.54961854", "0.5492724", "0.5448519",...
0.6767385
0
Function which will give the editable picklist values for a field.
public static function getEditableValues($fieldName) { $values = static::getValuesName($fieldName); $nonEditableValues = static::getNonEditableValues($fieldName); foreach ($values as $key => &$value) { if ('--None--' === $value || isset($nonEditableValues[$key])) { unset($values[$key]); } } return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFieldInstanceByName($name)\n\t{\n\t\t$params = [];\n\t\t$qualifiedModuleName = 'Settings:Picklist';\n\t\t$tableName = $this->getTableName();\n\t\tswitch ($name) {\n\t\t\tcase 'name':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $this->fieldModel->getName(),\n\t\t\t\t\t...
[ "0.61062753", "0.60052335", "0.59898674", "0.57769585", "0.577446", "0.57639956", "0.57491094", "0.5740771", "0.5736765", "0.5728808", "0.56998914", "0.5661264", "0.5645558", "0.56432754", "0.5628496", "0.562299", "0.56180054", "0.559701", "0.5592736", "0.5591101", "0.5567953...
0.0
-1
Function which will give the non editable picklist values for a field.
public static function getNonEditableValues($fieldName) { if (\App\Cache::has('Picklist::getNonEditableValues', $fieldName)) { return \App\Cache::get('Picklist::getNonEditableValues', $fieldName); } $primaryKey = static::getPickListId($fieldName); $dataReader = (new \App\Db\Query())->select([$primaryKey, $f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSelectDataFields();", "private static function show_options_for_get_values_field( $form_fields, $field = array() )\n {\n }", "function wppb_rf_epf_set_field_ids_on_field_select() {\r\n global $all_fields;\r\n $all_fields = get_option ( 'wppb_manage_fields', 'not_set' );\r\n\r\n ...
[ "0.59444743", "0.5864381", "0.58530223", "0.57899255", "0.5763925", "0.57387835", "0.57312274", "0.5707105", "0.5660606", "0.5638918", "0.5540838", "0.5537544", "0.55037165", "0.550106", "0.5478435", "0.5427912", "0.5415408", "0.5405727", "0.5387405", "0.5382944", "0.53654265...
0.64021623
0
Function to get picklist key for a picklist.
public static function getPickListId($fieldName) { $pickListIds = [ 'opportunity_type' => 'opptypeid', 'sales_stage' => 'sales_stage_id', 'rating' => 'rating_id', 'ticketpriorities' => 'ticketpriorities_id', 'ticketseverities' => 'ticketseverities_id', 'ticketstatus' => 'ticketstatus_id', 'salut...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getKey();", "public static function getKey();", "private function getKey() {\n\t\tif ( !$this->key )\n\t\t\t$this->key = \"mvn-maillists-\" . sanitize_key( $this->getName() );\n\n\t\treturn $this->key;\n\t}", "function getKey() \n {\n return $this->getValueByFieldName( 'label...
[ "0.6446975", "0.6446975", "0.6263517", "0.60962677", "0.6082947", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", ...
0.6104558
3
Function to get modules which has picklist values.
public static function getModules() { return (new \App\Db\Query())->select(['vtiger_tab.tabid', 'vtiger_tab.tablabel', 'tabname' => 'vtiger_tab.name'])->from('vtiger_field') ->innerJoin('vtiger_tab', 'vtiger_field.tabid = vtiger_tab.tabid')->where(['uitype' => [15, 16, 33, 115], 'vtiger_field.presence' => [0, 2],...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPicklistValues($skipCheckingRole = false)\n\t{\n\t\tif ($this->getName() === 'targetmodule') {\n\t\t\treturn Settings_Webforms_Module_Model::getsupportedModulesList();\n\t\t}\n\t\treturn array();\n\t}", "function getCustomFieldSupportedModules()\n{\n\tglobal $adb;\n\t$sql=\"select distinct ec_...
[ "0.7032577", "0.69758075", "0.67734075", "0.66234845", "0.63629067", "0.63629067", "0.6355324", "0.6213294", "0.61806166", "0.6179063", "0.6161479", "0.6133447", "0.61254054", "0.6092939", "0.60555154", "0.6044543", "0.60189724", "0.6008307", "0.5995511", "0.5992036", "0.5966...
0.6238776
7
Get modules with field names which are picklists.
public static function getModulesByName(string $moduleName = '') { if (\App\Cache::has('Picklist::getPicklistModulesByName', $moduleName)) { return \App\Cache::get('Picklist::getPicklistModulesByName', $moduleName); } $query = (new \App\Db\Query())->select(['vtiger_tab.name', 'vtiger_field.fieldname']) ->f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getVoteModulesFields() {\n return array_column(getVoteModulesList(), 'module');\n}", "function getCustomFieldSupportedModules()\n{\n\tglobal $adb;\n\t$sql=\"select distinct ec_field.tabid,name from ec_field inner join ec_tab on ec_field.tabid=ec_tab.tabid where ec_field.tabid not in(7,9,10,29)\";\n\t...
[ "0.6906023", "0.68250626", "0.6590724", "0.6468204", "0.64545494", "0.63285726", "0.623893", "0.6220597", "0.62052083", "0.6173933", "0.61434567", "0.60741097", "0.60655445", "0.6016399", "0.5992353", "0.59688175", "0.5945271", "0.58703107", "0.5866465", "0.5840745", "0.58323...
0.647184
3
Function to get picklist dependency data source.
public static function getDependencyForModule(string $moduleName) { if (\App\Cache::has('Picklist::getDependencyForModule', $moduleName)) { return \App\Cache::get('Picklist::getDependencyForModule', $moduleName); } $moduleModel = \Vtiger_Module_Model::getInstance($moduleName); $fields = $moduleModel->getFie...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDataSource()\n {\n return isset($this->DataSource) ? $this->DataSource : null;\n }", "public function getDataProvider();", "public function getDataProvider();", "public static function getDataSource()\n {\n return static::$_dataSource;\n }", "function getDataSource() { ...
[ "0.57415396", "0.5661283", "0.5661283", "0.5561729", "0.55355626", "0.55248123", "0.55216926", "0.5507069", "0.5488294", "0.54641753", "0.5443084", "0.5418726", "0.5393291", "0.5304119", "0.52787757", "0.5272472", "0.5271071", "0.5239136", "0.5234726", "0.523427", "0.523427",...
0.5077034
28
Check if field is dependent.
public static function isDependentField(string $moduleName, string $fieldName): bool { ['listener' => $listener, 'conditions' => $conditions] = self::getDependencyForModule($moduleName); return \in_array($fieldName, $listener) || isset($conditions[$fieldName]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isDependant();", "protected function _isDependentFormField($name) {\r\n \treturn array_key_exists($name, $this->_dependentFormFields);\r\n }", "public function hasDependent()\n {\n return (1 == $this->_hasDependent);\n }", "public function isDependant() {\n return $t...
[ "0.7431008", "0.7301194", "0.71485394", "0.6938086", "0.69200885", "0.69105256", "0.6451171", "0.6244367", "0.6212991", "0.6087695", "0.6068749", "0.6033312", "0.596899", "0.5960159", "0.59532917", "0.5881825", "0.5878985", "0.5854402", "0.5793324", "0.57930106", "0.5747953",...
0.6528218
6
Function which will give the picklist values rows for a field.
public static function getValues($fieldName) { if (\App\Cache::has('Picklist::getValues', $fieldName)) { return \App\Cache::get('Picklist::getValues', $fieldName); } $primaryKey = static::getPickListId($fieldName); $dataReader = (new \App\Db\Query()) ->from("vtiger_$fieldName") ->orderBy('sortorderid'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSelectDataFields();", "function getSelectFieldsValues($field_data) {\n \n $model = $this->getModel('comment_answers');\n \n $results = $model->getDataForView($field_data);\n \n foreach($results as $list) {\n $result = null;\n if($field_d...
[ "0.6803798", "0.64089125", "0.6270349", "0.617685", "0.6163077", "0.6105723", "0.60596246", "0.60014176", "0.59595585", "0.59471214", "0.5933139", "0.5926436", "0.5874762", "0.58585733", "0.5843007", "0.5837736", "0.5825939", "0.57930493", "0.5778314", "0.5747211", "0.5746373...
0.6583699
1
Get icon data for picklist value.
public static function getIcon(string $fieldName, string $value): array { $icon = []; if (self::isPicklistExist($fieldName) && ($iconValue = array_column(self::getValues($fieldName), 'icon', $fieldName)[$value] ?? [])) { $icon = \App\Json::isJson($iconValue) ? \App\Json::decode($iconValue) : ['type' => 'icon', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function image() {\n return data_field_admin::field_icon($this);\n }", "function get_icon() {\n\t\treturn $this->settings['icon'];\n\t}", "private function get_icon()\n\t{\n\t\treturn $this->m_icon;\n\t}", "private function get_icon()\n\t{\n\t\treturn $this->m_icon;\n\t}", "public function icon()...
[ "0.66001135", "0.65518945", "0.64381266", "0.64381266", "0.642488", "0.6412293", "0.6309743", "0.6261396", "0.6261396", "0.6261396", "0.6261396", "0.6261396", "0.6261396", "0.6261396", "0.62530684", "0.62530684", "0.6247234", "0.6213892", "0.619852", "0.619238", "0.619034", ...
0.64015746
6
Get colors for all fields or generate it if not exists.
public static function getColors($fieldName, bool $numericKey = true) { $colors = []; foreach (static::getValues($fieldName) as $id => &$value) { $value['color'] = trim($value['color'] ?? '', " #\\s\t\n\r"); if (empty($value['color'])) { $color = \App\Colors::getRandomColor($id); } else { $color =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFillColorsField()\n {\n return $this->fillColorsField;\n }", "public function getColor() {\n\n\t\t//return $query->rows;\n\t}", "protected function fetchColorsFromACF() : array\n {\n $settings = get_field('color_parameterizer');\n $leadingColor = $settings['lead...
[ "0.64941967", "0.59773594", "0.59546655", "0.59058577", "0.58916986", "0.58916986", "0.584668", "0.5807997", "0.57971203", "0.5797112", "0.5797112", "0.5797112", "0.5797112", "0.5797112", "0.5797112", "0.57938135", "0.57924396", "0.5788514", "0.5745798", "0.57421666", "0.5742...
0.58676636
6
Get picklist table name.
public static function getPickListTableName(string $fieldName) { if (empty($fieldName) || !preg_match('/^[_a-zA-Z0-9]+$/', $fieldName)) { throw new \App\Exceptions\AppException('Incorrect picklist name'); } return 'vtiger_' . $fieldName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTblName()\n {\n return $this->tbl_name;\n }", "protected function table () : string {\n return $this->guessName();\n }", "function table_name() {\n\t\tif ($this->table) {\n\t\t\treturn $this->table;\n\t\t} else {\n\t\t\treturn $this->_get_type();\n\t\t}\n\n\t}", "pub...
[ "0.7050413", "0.7038802", "0.70332676", "0.7028893", "0.6991733", "0.6961801", "0.69595426", "0.6889407", "0.6869909", "0.6868111", "0.68516374", "0.67977154", "0.6796232", "0.6786465", "0.67787886", "0.67583066", "0.67583066", "0.67583066", "0.67282283", "0.67097944", "0.670...
0.6525637
44
Check if the prefix exists in given picklist name.
public static function prefixExist(string $fieldName): bool { return !empty(array_filter(array_column(static::getValues($fieldName), 'prefix'))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkIsAllowedNamePrefix($field_name, $input) {\n $valid_titles = $this->lookup->getNamePrefixes();\n if (!in_array($input, $valid_titles)) {\n $this->throwValidationException($field_name, 'Title prefix does not match any of allowed values.');\n }\n return TRUE;\n }", "function ...
[ "0.6954764", "0.68668616", "0.6538544", "0.65072787", "0.6466333", "0.64589113", "0.643957", "0.63601106", "0.63559556", "0.63053817", "0.6218804", "0.62064755", "0.6146153", "0.60583305", "0.6052911", "0.5996886", "0.598337", "0.59725004", "0.5935117", "0.58236986", "0.57758...
0.65977156
2
Get picklist ID number.
public static function getPicklistIdNr(string $fieldName): int { return (int) (new \App\Db\Query())->select(['picklistid']) ->from('vtiger_picklist') ->where(['name' => $fieldName]) ->scalar(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getListID()\n\t{\n\t\treturn $this->get('ListID');\n\t}", "public function getId()\n {\n return $this->_list->getId();\n }", "public function list_id()\n\t{\n\t\treturn $this->list;\n\t}", "public static function getPickListId($fieldName)\n\t{\n\t\t$pickListIds = [\n\t\t\t'opport...
[ "0.68197846", "0.67317677", "0.6539979", "0.63566804", "0.63457805", "0.6314838", "0.62666935", "0.6240236", "0.62251645", "0.6027626", "0.6017708", "0.6003818", "0.5993511", "0.59922", "0.59705895", "0.5958947", "0.59577197", "0.5933465", "0.5932844", "0.5906544", "0.5895942...
0.7217913
0
Remove dependency condition field.
public static function removeDependencyConditionField(string $moduleName, string $fieldName): void { $tabId = \App\Module::getModuleId($moduleName); $fullFieldName = "{$fieldName}:{$moduleName}"; $dbCommand = \App\Db::getInstance()->createCommand(); $dataReader = (new \App\Db\Query())->select(['s_#__picklist_d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeCondition(ConditionInterface $condition);", "public function clearCondition(){\n\t\t$this->where=\"\";\n\t}", "public function removeFieldDefinition(FieldDefinitionInterface $field_definition);", "public function removeQuantity()\n\t{\n\t\tif(isset($this->searchFilters[$this->ref_quanti...
[ "0.6107537", "0.54564166", "0.53842205", "0.51452875", "0.51381606", "0.51334417", "0.5116349", "0.5092775", "0.5055619", "0.50327045", "0.5008828", "0.49984658", "0.49763364", "0.4971081", "0.49528888", "0.49489015", "0.49366048", "0.49343663", "0.49223763", "0.4916504", "0....
0.6473361
0
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 store(Request $request) { // }
{ "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
Display the specified resource.
public function show(CierreCajas $cierreCajas) { // }
{ "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(CierreCajas $cierreCajas) { // }
{ "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, CierreCajas $cierreCajas) { // }
{ "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(CierreCajas $cierreCajas) { // }
{ "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
Creates a new aggregator.
public function __construct($testpath, $codepath, $db = ':memory:') { $newcodepath = realpath($codepath); if (!$newcodepath) { if (!strpos($codepath, '://') || !file_exists($codepath)) { // stream wrapper not found throw new Exception('Can not find code pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function buildAggregation()\n {\n $aggregation = new TermsAggregation('test_agg');\n $aggregation->setField('description');\n $aggregation2 = new RangeAggregation('test_agg_2');\n $aggregation2->setField('price');\n $aggregation2->addRange(null, 20);\n $aggregat...
[ "0.6083938", "0.58259547", "0.57929265", "0.5244156", "0.5237435", "0.5135301", "0.4986235", "0.49483755", "0.49280804", "0.49243534", "0.4907878", "0.4890877", "0.48858482", "0.48030192", "0.48030192", "0.47848624", "0.4783473", "0.47678167", "0.47432992", "0.4713611", "0.46...
0.0
-1
Valida si el codigo existe en la tabla de usuarios y retorna los registros
protected function getUserById($userId) { if ($userId) { $repository = $this->getDoctrine()->getRepository('RocketSellerTwoPickBundle:User'); $user = $repository->findBy(array('id' => $userId)); if ($user) { return $user; } } re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function recuperarUsuario()\n {\n $_codigo=$this->codigo ; \n $this->dataBaseAccess(); \n $mySelect = 'select Codigo_empresa,Nome,Senha where Codigo = ' . $this->Codigo ;\n $ret = mysqli_query($this->myCon , $mySelect) ;\n $numRows= mysqli_num_rows($ret); \n...
[ "0.69579923", "0.69278306", "0.68571943", "0.6817543", "0.6767449", "0.6749466", "0.6731917", "0.6713844", "0.66919035", "0.66830355", "0.66782075", "0.6654937", "0.66345143", "0.6611666", "0.66047007", "0.65940994", "0.65689385", "0.65685016", "0.6522654", "0.6507683", "0.64...
0.0
-1
Assert that after delete a search term on grid page not displayed
public function processAssert(LocationIndex $indexPage, Location $locationTerm) { $locationText = $locationTerm->getDisplayName(); $grid = $indexPage->open()->getLocationsGrid(); $filters = [ 'webpos_staff_location' => $locationText, 'location_id' => $locationTerm->ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeleteWrongObjectTypeSubmitAsAdmin()\n {\n $crawler = $this->requestAsAdmin('/tasks');\n\n // Can't use assertSelectorTextContains() because it only checks the first selector occurrence\n // and the task we are looking for is not the first one in the displayed list of ta...
[ "0.6619145", "0.64568603", "0.6391541", "0.6372882", "0.62606907", "0.6231395", "0.6209363", "0.6123759", "0.61232966", "0.6114757", "0.6114757", "0.6100538", "0.6078252", "0.6073787", "0.607343", "0.6056999", "0.60497165", "0.60128564", "0.5964785", "0.59627616", "0.5953366"...
0.0
-1
Returns a string representation of the object
public function toString() { return 'AssertWebposCheckGUICustomerPriceCP54 Staff Location was not found in grid.'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toString()\n {\n return json_encode($this->obj);\n }", "public function __toString()\n\t{\n\t\treturn $this->dump();\n\t}", "public function __toString() {\n\t\treturn get_class($this) . '-object ' . \"\\n\" .\n\t\t\t 'attributes: ' . print_r($this->attributes, 1) . \"\\n\";\n\t}...
[ "0.8412044", "0.8298062", "0.82603896", "0.824937", "0.824653", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0...
0.0
-1
Transform the resource into an array.
public function toArray($request) { return [ 'id' => $this->id, 'parent_id' => $this->parent_id, 'player_id' => $this->player_id, 'table' => $this->on_table, 'type' => $this->cardable_type === Package::class ? 'package' : 'distributionCentre', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toArray(): array\n {\n if (is_null($this->resource)) {\n return [];\n }\n\n return is_array($this->resource)\n ? $this->resource\n : $this->resource->toArray();\n }", "public function toArray(): array\n {\n if (is_null($this->r...
[ "0.7750928", "0.7750928", "0.7715773", "0.75906307", "0.7310379", "0.7138024", "0.7134791", "0.7096877", "0.7096877", "0.70968604", "0.70968604", "0.70968604", "0.70968604", "0.70955557", "0.70955557", "0.70955557", "0.70955557", "0.70955557", "0.70955557", "0.70955557", "0.7...
0.0
-1
Check to see if the honeypot captcha field was filled in
function validate(){ if(trim($_POST['checking']) !== '') { $this->add_error('capthcaError', true); return; } if(!isset($_POST["cico_nonce"]) || !wp_verify_nonce( $_POST["cico_nonce"], wp_get_theme()->Name)){ $this->add_error('nonceError', true); return; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function check_the_field( $name ) {\n return @($_SESSION['reponse']['result']=='error' && ( isset($_SESSION['reponse']['message'][$name]) || $name==='captcha' ));\n}", "function check_the_field( $name ) {\n return @($_SESSION['reponse']['result']=='error' && ( isset($_SESSION['reponse']['message'][$name]) ...
[ "0.73600197", "0.73600197", "0.7222749", "0.7135259", "0.7097424", "0.70413125", "0.7015237", "0.69780856", "0.69344014", "0.6927632", "0.6807252", "0.6749336", "0.67282367", "0.668294", "0.6638356", "0.66358066", "0.6573138", "0.64955837", "0.6490238", "0.6487723", "0.646018...
0.5747789
77
/ Load data fixtures with the passed EntityManager
public function load(ObjectManager $manager) { $length = count($this->matches); $faker = \Faker\Factory::create(); for ($i = 0; $i < $length; $i++) { $schedule = $this->matches[$i]; $match = $this->createMatch($schedule, $manager, $faker); $ticket = new Ti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function loadData(ObjectManager $em);", "private function myLoadFixtures()\n {\n $em = $this->getDatabaseManager();\n\n // load fixtures\n $client = static::createClient();\n $classes = array(\n // classes implementing Doctrine\\Common\\DataFixtures\\F...
[ "0.7716538", "0.7529439", "0.7402691", "0.72777444", "0.7223488", "0.7209462", "0.7139631", "0.6915006", "0.68990153", "0.6875326", "0.6875137", "0.6855718", "0.6788501", "0.6783442", "0.67567796", "0.67101395", "0.66844124", "0.6680024", "0.6670111", "0.66346544", "0.6622005...
0.0
-1
Put data source for user
function sumo_put_datasource($id='') { GLOBAL $SUMO, $language; $list = "<select name='datasource_id' " ."onchange='if(this.value>1){if(document.forms[0].new_password!=null){document.forms[0].new_password.disabled=true;document.forms[0].renew_password.disabled=true;}}" ."else{if(document.forms[0].new_passw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDataSource()\n {\n $this->debug(\"Creating data source\");\n $this->dataSource = DataSourceRepository::createDataSource(\n $this->config['datasource']['key'],\n $this->config['datasource']['title'],\n 'SYSTEM'\n );\n $this->data...
[ "0.6292637", "0.5847796", "0.58341384", "0.58186746", "0.57857955", "0.56664735", "0.5662726", "0.56302536", "0.5615322", "0.5565223", "0.5536084", "0.55298954", "0.54895854", "0.54837894", "0.54572225", "0.54409975", "0.5409622", "0.5381819", "0.53377354", "0.5285447", "0.52...
0.48799723
61
Put user group and relative access_level
function sumo_put_user_grouplevel($id=FALSE) { $user = sumo_get_user_info($id, 'id', FALSE); $group_level = $user['group_level']; if(!empty($group_level)) { GLOBAL $SUMO, $language; $num_groups = count($group_level); $group = array_keys($group_level); $value = array_values($group_level); $list ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setGroup() {\n if (Request::has(\"include-group-read\") && Request::input(\"include-group-read\") === \"true\") { $permissionRead = 4; } else { $permissionRead = 0; }\n if (Request::has(\"include-group-write\") && Request::input(\"include-group-write\") === \"true\") { $permissionWri...
[ "0.6694954", "0.636006", "0.6294957", "0.6277538", "0.62108296", "0.6128672", "0.606399", "0.6010065", "0.59724665", "0.5963371", "0.5930659", "0.59160274", "0.5903983", "0.589186", "0.58901453", "0.5814587", "0.5813246", "0.58056825", "0.58027786", "0.57895553", "0.5750138",...
0.6356618
2
Get list of pages that user can access
function sumo_get_user_accesspoints($id=NULL, $html=FALSE) { if($id) { GLOBAL $SUMO, $language; $user_data = sumo_get_user_info($id, 'id', FALSE); $num_groups = count($user_data['group']); $group_query = ''; if(!in_array('sumo', $user_data['group'])) { $group_query = " WHERE "; for($g=0; $g<$n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPages();", "public function getAllPages()\n {\n // Get a list of all viewable pages\n $home = Page::getByID(1);\n $homeStr = $home->getCollectionPath();\n\n $pl = new PageList();\n $pl->filterByPath($homeStr, TRUE);\n $pl->ignoreAliases();\n\n ...
[ "0.7573449", "0.7536583", "0.7453839", "0.71516967", "0.69944286", "0.6877199", "0.6868186", "0.6834276", "0.6805929", "0.6751797", "0.6747323", "0.67380625", "0.663329", "0.6614863", "0.6583852", "0.65454894", "0.6506064", "0.64467156", "0.64376116", "0.6435704", "0.64352936...
0.0
-1
Verify if password was updated
function sumo_update_password_date($id=FALSE, $new_pwd=FALSE) { if($id) { GLOBAL $SUMO; $query = "SELECT password FROM ".SUMO_TABLE_USERS." WHERE id=".$id; $rs = $SUMO['DB']->Execute($query); $tab = $rs->FetchRow(); // update password date if($tab[0] != $new_pwd && $new_pwd) { $query = "UPD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function password_verifies() {\n\t\treturn AuthComponent::password($this->data[$this->alias]['old_password']) === $this->data[$this->alias]['password'];\n\t}", "public function testUpdatePasswordNotGiven(): void { }", "function m_verifyEditPass()\n\t{\n\t\t$this->errMsg=MSG_HEAD.\"<br>\";\n\t\tif(empty(...
[ "0.8249291", "0.7835361", "0.76838976", "0.7646079", "0.75162446", "0.74580765", "0.74356574", "0.73417705", "0.7280162", "0.7275946", "0.7260242", "0.7251221", "0.7219515", "0.7188272", "0.7176218", "0.7167692", "0.7164916", "0.7163952", "0.71435684", "0.7136418", "0.7135830...
0.0
-1
Combo box to add group and relative level to user
function sumo_add_user_grouplevel($form_name='', $group_exist=array()) { GLOBAL $SUMO; $groups_array = sumo_get_grouplevel(sumo_get_user_available_group($SUMO['user']['user'])); $groups_name = array_keys($groups_array); $form_name = $form_name ? $form_name : ucfirst($_SESSION['action']).ucfirst($_SESSION['mod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sumo_put_user_grouplevel($id=FALSE)\n{\n\t$user\t = sumo_get_user_info($id, 'id', FALSE);\n\t$group_level = $user['group_level'];\n\n\tif(!empty($group_level))\n\t{\n\t\tGLOBAL $SUMO, $language;\n\n\t\t$num_groups = count($group_level);\n\t\t$group \t\t= array_keys($group_level);\n\t\t$value\t\t= arra...
[ "0.6589393", "0.63100547", "0.61045957", "0.6056466", "0.5951794", "0.5906072", "0.5804027", "0.57859534", "0.5715032", "0.5626358", "0.5617798", "0.5588708", "0.5574987", "0.55238295", "0.5520334", "0.5508784", "0.5500513", "0.54942256", "0.54919964", "0.54823387", "0.546961...
0.71953136
0
Verify if in a group string there is administrator group.
function sumo_verify_sumogroup($group=array()) { if(is_array($group) && !empty($group)) { $num_group = count($group); for($g=0; $g<$num_group; $g++) { $group_level = explode(":", $group[$g]); if($group_level[0] == 'sumo') return 'sumo:'.$group_level[1]; } } else return FALSE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isCouAdminGroup($group) {\n return ($group['CoGroup']['group_type'] == GroupEnum::Admins\n && !empty($group['CoGroup']['cou_id']));\n }", "function is_admin($array) {\n global $userquery;\n extract($array);\n if (!@$groupid)\n e(lang('Unknown group')...
[ "0.68641746", "0.6828965", "0.67900985", "0.67118156", "0.6695179", "0.6694232", "0.66465706", "0.65762436", "0.64642215", "0.6455326", "0.6421155", "0.6342011", "0.63225305", "0.6309849", "0.6253698", "0.62411594", "0.6217164", "0.61095804", "0.6107043", "0.6079614", "0.6069...
0.6504394
8
The configuration of this Structure
public function configuration() { return array( 'uniquename' => 'text', 'extension' => '.txt', 'type' => 'text', 'viewable' => true, 'removable' => true, 'installable' => false, 'executable' => ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function config()\n {\n }", "public function getConfiguration();", "public function getConfiguration();", "public function getConfiguration();", "public function getConfiguration() {}", "public function getConfiguration() {}", "protected function getConfiguration() {}", "public static fu...
[ "0.7617266", "0.7471242", "0.7471242", "0.7471242", "0.7403366", "0.7402185", "0.72337025", "0.7201638", "0.7007635", "0.6997054", "0.6947026", "0.6907836", "0.68893486", "0.68893486", "0.68893486", "0.68893486", "0.68893486", "0.68893486", "0.68893486", "0.68893486", "0.6883...
0.65699035
38
Default size of 16.0
public function getDefaultSize() { return 16.0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getSize() ;", "function getSize() { return $this->_size; }", "public function getSize()\n {\n return 0;\n }", "public function getSize() {}", "public function getSize() {}", "public function getSize() {}", "public function getSize() {}", "public function getSize() {}", "...
[ "0.6417494", "0.6411294", "0.6395799", "0.6395283", "0.63939905", "0.63938457", "0.63938457", "0.63938457", "0.63938457", "0.6357715", "0.6350477", "0.6342044", "0.6294065", "0.6263397", "0.62267184", "0.62229484", "0.62229484", "0.62229484", "0.62229484", "0.62229484", "0.62...
0.82963765
0
Default level of 2.2
public function getDefaultLevel() { return 2.2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultLevel()\n {\n return 5; # level binh thuong\n }", "function version() {\n\t\treturn 2;\n\t}", "public function getVersion()\n {\n return 2;\n }", "public function getDefaultAllLevel()\n {\n return 100; # dung chon loc thong tin\n }", "abstrac...
[ "0.6657274", "0.6528692", "0.6376654", "0.6209509", "0.6036789", "0.59814835", "0.5944007", "0.5918303", "0.5902884", "0.5896877", "0.58793926", "0.5874584", "0.5835072", "0.5828635", "0.57994044", "0.5774966", "0.5741831", "0.5708294", "0.5705493", "0.5674099", "0.5645869", ...
0.79486316
0
Sets the value to the container
public function set($id, $value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($va...
[ "0.7102084", "0.7102084", "0.7102084", "0.7102084", "0.7102084", "0.7102084", "0.7102084", "0.7102084", "0.7102084", "0.7102084", "0.7102084", "0.7101816", "0.7101816", "0.70642626", "0.70180964", "0.70180964", "0.70180964", "0.70180964", "0.70180964", "0.70180964", "0.701809...
0.0
-1
Process callback, Remove Drupal specific items from the image array.
protected function imageProcess($value) { if (static::isArrayNumeric($value)) { $output = array(); foreach ($value as $item) { $output[] = $this->imageProcess($item); } return $output; } return array( 'id' => $value['fid'], 'self' => file_create_url($value['uri'])...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function postProcessArray() {\n foreach (self::$files as $key => $item) {\n // remove link from tree nodes\n if (in_array($item['id'], self::$_treenodes)) {\n self::$files[$key]['href'] = ModUtil::url('DocTastic', $this->userType, 'view');\n }\n ...
[ "0.6406336", "0.59731966", "0.5943757", "0.58205813", "0.57911533", "0.5788095", "0.57488906", "0.57400554", "0.56093574", "0.5605099", "0.5604629", "0.5564108", "0.55628806", "0.5541043", "0.5505003", "0.5489502", "0.5471697", "0.5461608", "0.5456661", "0.54153174", "0.53839...
0.0
-1
This feels wrong because you'd expect the file entity to be loaded already.
protected function fileProcess($value) { $value = (array) file_load($value); return array( 'id' => $value['fid'], 'self' => file_create_url($value['uri']), 'filemime' => $value['filemime'], 'filesize' => $value['filesize'], 'width' => $value['width'], 'height' => $value['heig...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEntity() {\n return $this->file;\n }", "abstract protected function load();", "abstract protected function load();", "abstract protected function load();", "abstract protected function load();", "public function testPersistLoad()\n {\n// $this->configSetter->configEntityI...
[ "0.65437484", "0.63507384", "0.63507384", "0.63507384", "0.63507384", "0.63197213", "0.6272631", "0.6252562", "0.62238395", "0.6217116", "0.6217116", "0.61789775", "0.6150566", "0.60920423", "0.5984254", "0.5981016", "0.59498394", "0.59375244", "0.5843301", "0.5843301", "0.58...
0.0
-1
Sets a new mensagemErro
public function setMensagemErro(\ans\schemes\CtMotivoGlosaType $mensagemErro) { $this->mensagemErro = $mensagemErro; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setError ($msg) {\r\n $this->errors[]=$msg;\r\n }", "public function setErrorMessage($e){\n //checks if error message is cause due to invalid characters\n if($e -> getMessage() == EnumStatus::$InvalidCharactersError){\n //if so those are removed.\n $this -> ...
[ "0.6972349", "0.69227725", "0.68863857", "0.67053187", "0.66909474", "0.6592707", "0.6592707", "0.65883535", "0.6585051", "0.6559726", "0.65563816", "0.652356", "0.6463059", "0.6432911", "0.6422364", "0.6384249", "0.63543844", "0.63313353", "0.62857044", "0.62674004", "0.6266...
0.5824352
55
Sets a new autorizacaoServico
public function setAutorizacaoServico(array $autorizacaoServico) { $this->autorizacaoServico = $autorizacaoServico; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAutorizacaoDosServicos(\\ans\\schemes\\CtmAutorizacaoServicoType $autorizacaoDosServicos)\n {\n $this->autorizacaoDosServicos = $autorizacaoDosServicos;\n return $this;\n }", "public function setObservacao( $observacao )\n {\n \t$this->observacao = $observacao;\n }...
[ "0.6389776", "0.59604025", "0.5704447", "0.5694507", "0.56284547", "0.56152624", "0.5605525", "0.5588263", "0.55619097", "0.5558911", "0.5553606", "0.5534095", "0.5508881", "0.54668474", "0.5465926", "0.5463528", "0.5432571", "0.5429347", "0.54110444", "0.5402906", "0.5382412...
0.74405515
0
Sets a new autorizacaoProrrogacao
public function setAutorizacaoProrrogacao(\ans\schemes\OperadoraPrestadorType\SituacaoAutorizacaoAType\AutorizacaoProrrogacaoAType $autorizacaoProrrogacao) { $this->autorizacaoProrrogacao = $autorizacaoProrrogacao; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function aprova()\n {\n $this -> estadoAtual -> aprova($this);\n }", "function setComprobantePagoARegistroPago() {\n\t\tglobal $bd;\t\t\n\t\tglobal $x_correlativo_comprobante;\n\t\t$correlatico_comprobante = $x_correlativo_comprobante;\n\t\t$x_array_comprobante = $_POST['p_comprobante'];\n\t\...
[ "0.60401285", "0.5911878", "0.58902484", "0.5828432", "0.56989944", "0.55687463", "0.5503695", "0.54488707", "0.54244053", "0.5401204", "0.53342164", "0.53277564", "0.5327665", "0.5281202", "0.5280218", "0.52641606", "0.5253771", "0.522291", "0.521371", "0.52098244", "0.52083...
0.56136644
5
Sets a new autorizacaoOdonto
public function setAutorizacaoOdonto(array $autorizacaoOdonto) { $this->autorizacaoOdonto = $autorizacaoOdonto; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAcomodacaoAutorizada($acomodacaoAutorizada)\n {\n $this->acomodacaoAutorizada = $acomodacaoAutorizada;\n return $this;\n }", "public function setAutorizacaoServico(array $autorizacaoServico)\n {\n $this->autorizacaoServico = $autorizacaoServico;\n return $t...
[ "0.61293983", "0.60429966", "0.57300586", "0.56411153", "0.56100005", "0.5594401", "0.5588765", "0.5562215", "0.55596477", "0.55418444", "0.55403554", "0.5539124", "0.55029655", "0.5472833", "0.54647994", "0.545957", "0.54375345", "0.54313296", "0.54254663", "0.53807145", "0....
0.71633023
0
/ Plugin Name: Custom Cornerstone Elements Plugin URI: Description: A Wordpress Plugin that registers new custom elements for Cornerstone editor Elements included: Extended Accordion, Feature Box Author: lucastobrazil Author URI: Version: 0.1.1 Notes: Instead of making the one plugin = one CS element, I wanted to make ...
function loadCustomElements() { define( 'EXTENSION_PATH', plugin_dir_path( __FILE__ ) ); define( 'EXTENSION_URL', plugin_dir_url( __FILE__ ) ); define( 'ELEMENTS_URL', EXTENSION_URL . '/includes/' ); $elements = array( 'SI_Feature_Box' => array( 'name' => 'si-feature-box', 'directory' => 'si-feature-box'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function plugin_version_itilcategorygroups() {\n return array('name' => __('ItilCategory Groups', 'itilcategorygroups'),\n 'version' => '0.90+1.0.3',\n 'author' => \"<a href='http://www.teclib.com'>TECLIB'</a>\",\n 'homepage' => 'http://...
[ "0.6294805", "0.61994964", "0.6085358", "0.59934855", "0.5982559", "0.59812176", "0.59600335", "0.59597266", "0.59216386", "0.59137356", "0.58999705", "0.58946747", "0.58770806", "0.58717877", "0.5857315", "0.58494806", "0.5814598", "0.57994807", "0.57551235", "0.57475483", "...
0.67817694
0
/ Mapping of SVG icon so when you're searching in CS Elements, it has a nice graphic.
function si_custom_elements_icon_map( $icon_map ) { $icon_map['si_custom_elements'] = EXTENSION_URL . '/assets/svg/icons.svg'; return $icon_map; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSvgIcon();", "public function getIcon();", "public function getIcon();", "function image_svg_to_icon($svg_abspath, $icon_abspath, &$height = 0, &$width = 0, $color = false)\n{\n $svg_string = file_get_contents($svg_abspath);\n $im = image_svg_string_to_icon_obj($svg_string, $height, ...
[ "0.6999608", "0.69789857", "0.69789857", "0.68403715", "0.68152136", "0.6776805", "0.67712474", "0.6766607", "0.6754724", "0.6704358", "0.66776484", "0.6675892", "0.66582996", "0.66251254", "0.6610303", "0.6610303", "0.65508574", "0.6540511", "0.6525886", "0.64934444", "0.649...
0.70691717
0
make a submit button Returns a string for the opening of a table wrapped in a form. This can be wrapped in other functions because it's a string each table is also wrapped in a container div.
protected function openTable($name, $form_id=null, $form_class=null, $table_id=null, $table_class=null){ $form_attribs = ''; $table_attribs = ''; if($form_class != null){$form_attribs .= ' class="' . $form_class . '"';} if($form_id != null){$form_attribs .= ' id="' . $form...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tac_form_submit_button( $button, $form ) {\n\treturn \"<button id='gform_submit_button_{$form['id']}'>Submit form</button>\";\n}", "public function submit(){\n return $this->surround('<button type=\"submit\">Envoyer</button>');\n }", "private function closeTable($extra=null){\n $output = ...
[ "0.6988693", "0.6967622", "0.6670591", "0.66690964", "0.6645443", "0.6624684", "0.658716", "0.6538637", "0.6507767", "0.6494923", "0.64940757", "0.64526343", "0.6443237", "0.6441278", "0.6436432", "0.64330584", "0.6420573", "0.64115244", "0.6406136", "0.6391669", "0.63805896"...
0.60222083
51
/ closeTable() Returns a string to close up a table of the form opened by the openTable() function.
private function closeTable($extra=null){ $output = ''; if($this->_makeButton){$output .=$this->updateButton($this->_name);} $output =' </tbody> </table>'; if($extra != null) {$output .= $extra;} if($this->_makeButton){$output .=$this->updateButton($this->_name, $this->_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function tableClose(Table $table) {\n $charset = explode('_', $table->getCollation())[0];\n return sprintf(config('sql.table.close'), $charset, $table->getCollation(), $table->getRowFormat(), $table->getEngine()) . \"\\n\";\n }", "abstract public function closeTableHead();", "function ...
[ "0.741302", "0.7045103", "0.67309123", "0.6493328", "0.63494724", "0.63455665", "0.618616", "0.6072577", "0.5910637", "0.58796483", "0.5637625", "0.56033975", "0.55941254", "0.55237365", "0.5503085", "0.5453474", "0.5402733", "0.53734887", "0.53462714", "0.53325015", "0.52458...
0.64357775
4
Transforms a user record into a user model
public function __invoke(array $record) : UserModelInterface;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function transform(array $record) : UserModelInterface;", "protected function getUserModel() {\n return new User();\n }", "protected function buildDomainObject($row) {\n $user = new User();\n $user->setId($row['user_id']);\n $user->setEmail($row['user_email']);\n $u...
[ "0.7220252", "0.65936023", "0.6463212", "0.64536816", "0.64434385", "0.6423807", "0.6384725", "0.631523", "0.62826633", "0.6281497", "0.62374645", "0.6223688", "0.61040735", "0.6021661", "0.6016665", "0.5993482", "0.598545", "0.59591013", "0.59255373", "0.592377", "0.5911184"...
0.5764002
26
Transforms a user record into a user model
public function transform(array $record) : UserModelInterface;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getUserModel() {\n return new User();\n }", "protected function buildDomainObject($row) {\n $user = new User();\n $user->setId($row['user_id']);\n $user->setEmail($row['user_email']);\n $user->setLastname($row['user_lastname']);\n $user->setFirstnam...
[ "0.65936023", "0.6463212", "0.64536816", "0.64434385", "0.6423807", "0.6384725", "0.631523", "0.62826633", "0.6281497", "0.62374645", "0.6223688", "0.61040735", "0.6021661", "0.6016665", "0.5993482", "0.598545", "0.59591013", "0.59255373", "0.592377", "0.5911184", "0.58780557...
0.7220252
0
Updates an event setup
public function update(Setup $setup) { $data = request()->validate([ 'address' => 'required|string', 'description' => 'nullable|string', 'fee' => 'nullable|numeric', 'setup_on' => 'required|date', ]); $setup->update([ 'address' => ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update() {\n\t\t$vars = $this->params['url'];\n\t\t$this->Event->id = $vars['id'];\n\t\t$this->Event->saveField('start', $vars['start']);\n\t\t$this->Event->saveField('end', $vars['end']);\n\t\t$this->Event->saveField('all_day', $vars['allday']);\n\t}", "public function update() {\n $hasduedate =...
[ "0.60127246", "0.58263695", "0.5720697", "0.5712233", "0.5689446", "0.55262816", "0.552204", "0.5509711", "0.5507458", "0.5450546", "0.53661466", "0.53401077", "0.53303635", "0.5314388", "0.53040814", "0.5302242", "0.52967834", "0.5287145", "0.5271933", "0.5264535", "0.524681...
0.0
-1
NOTE: We could make this a little more accurate
protected static function resolveCreationPage(Listing $listing, int $step): int { if ($step === 3) { return self::whatPageAreWeOnInStepThree($listing); } return self::whatPageAreWeOnInStepTwo($listing); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _optimize() {}", "protected function _findStartOffset() {}", "function old_calculate_position($fingerPrints, $user_signals)\n{\n\n\t$closest_distance = 100000000.0;\n\t$closest_coordinates = \"000,000\";\n\t$closest_room = \"default\";\n\t$a = 0;\n\tforeach ($fingerPrints as $outer) {\n\t\t$te...
[ "0.5136586", "0.50057435", "0.4993706", "0.49306294", "0.48735332", "0.4860269", "0.47675383", "0.4668856", "0.46285024", "0.46274737", "0.4621285", "0.46117407", "0.45841452", "0.45833224", "0.45741442", "0.45657668", "0.4565457", "0.4550401", "0.454471", "0.45403668", "0.45...
0.0
-1
NOTE: Hard to tell if step 3 has been completed
protected static function resolveStatus(Listing $isting, int $step): string { // if 3 of the last steps are just pages with no data collected return 'in progress'; /*if ($step < 3) { return 'in progress'; }*/ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function step_3()\n {\n }", "protected function isWizardDone() {}", "public function step_1()\n {\n }", "public function step_2()\n {\n }", "function getCurrentStep()\r\n\t{\r\n\t\tif( empty( $this->source_import ) ) // no file loaded -> usually step 1\r\n\t...
[ "0.7416883", "0.72073454", "0.7009279", "0.6747985", "0.6720952", "0.6715144", "0.6639763", "0.6615076", "0.655056", "0.6529945", "0.6465029", "0.6335472", "0.6319638", "0.6257744", "0.61902326", "0.61844146", "0.6178971", "0.6120092", "0.60057116", "0.59665155", "0.59371495"...
0.0
-1
Get the user that owns upload.
public function empleado() { return \App\Models\Empleado::where('user_id', $this->user_id)->first(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOwner() {\n // no need to check whether exist because of database constrain\n return User::getUserById($this->owner_id);\n }", "public function getUploader()\n\t{\n\t\t$sfUsers = sfCore::getClass('sfUsers');\n\t\treturn $sfUsers::fetchUser($this->uploader);\n\t}", "public fu...
[ "0.7415099", "0.71698207", "0.7128878", "0.7072788", "0.70495456", "0.6897739", "0.6883353", "0.6865489", "0.68354607", "0.6794", "0.67929673", "0.678493", "0.6709247", "0.66997236", "0.66690147", "0.6667886", "0.6654228", "0.66012186", "0.659541", "0.6588848", "0.65875214", ...
0.0
-1
Create a new controller instance.
public function __construct() { // $this->middleware('auth'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this-...
[ "0.82668066", "0.8173394", "0.78115296", "0.77052677", "0.7681875", "0.7659338", "0.74860525", "0.74064577", "0.7297601", "0.7252339", "0.7195181", "0.7174191", "0.70150065", "0.6989306", "0.69835985", "0.69732994", "0.6963521", "0.6935819", "0.68973273", "0.68920785", "0.687...
0.0
-1
Show the application dashboard.
public function index($proertyId) { $property = Property::where('id', $proertyId)->get(); return view('property', ['property' => $property[0]]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dashboard()\n {\n\n $pageData = (new DashboardService())->handleDashboardLandingPage();\n\n return view('application', $pageData);\n }", "function dashboard() {\r\n\t\t\tTrackTheBookView::render('dashboard');\r\n\t\t}", "public function showDashboard() { \n\t\n ...
[ "0.77850926", "0.7760142", "0.7561336", "0.75147176", "0.74653697", "0.7464913", "0.73652893", "0.7351646", "0.7346477", "0.73420244", "0.7326711", "0.7316215", "0.73072463", "0.7287626", "0.72826403", "0.727347", "0.727347", "0.727347", "0.727347", "0.7251768", "0.7251768", ...
0.0
-1
Apply criteria in query repository
public function apply($model, RepositoryInterface $repository) { if (is_null($this->parameters)) { return $model->{$this->scopeName}(); } return $model->{$this->scopeName}(...$this->parameters); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function applyCriteria(){\n\n if( $this->skipCriteria === true )\n return $this;\n\n $criteria = $this->getCriteria();\n\n foreach($criteria as $c){\n if( $c instanceof Criteria ){\n $this->query = $c->apply($this->query, $this);\n }\n...
[ "0.6811799", "0.6661819", "0.6607693", "0.65704405", "0.6328398", "0.6313058", "0.6246386", "0.6239954", "0.6103051", "0.6103051", "0.60741377", "0.603045", "0.6022999", "0.5984234", "0.5976314", "0.5937813", "0.59150434", "0.58896244", "0.5838984", "0.58384633", "0.57891655"...
0.0
-1
Helper functions for the TLP theme
function tlp_show_process_noop ($text) { return $text; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function theme()\n {\n }", "public function setup_theme()\n {\n }", "function preview_theme()\n {\n }", "function display_themes()\n {\n }", "function yatta_theme_setup_child() {\n\n\n\n}", "function GetHorMenuTheme()\n{\n\t$s='';\n\tswitch (template())\n\t{...
[ "0.6975341", "0.6934761", "0.6923352", "0.6846098", "0.6800352", "0.67814887", "0.67778784", "0.6696275", "0.6578756", "0.65785867", "0.656765", "0.6509342", "0.64821887", "0.6477647", "0.64766395", "0.6450171", "0.6445676", "0.6411165", "0.6311811", "0.63048834", "0.62879354...
0.0
-1
create the show gallery
function tlp_show_process_gallery () { $ret = ''; $images = return_special_field('images'); $images_arr = array(); if (!empty($images)) { $images_arr = explode('||', $images); } $gallerylink = return_special_field('gallery'); $gallerycredit = return_special_field('gallerycredit'); if (!empty($images_arr) |...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buildGallery ()\t{\n\t\t\t// Get the needed Information\n\t\t\t\n\t\t}", "public function run()\n {\n $initials = array(\n ['url' => 'winners-chapel-owerri-0-1542948878.jpg'],\n ['url' => 'winners-chapel-owerri-1-1542948878.jpg'],\n ['url' => 'winners-chapel-ow...
[ "0.7478964", "0.6882237", "0.6727784", "0.66520244", "0.65690035", "0.65487844", "0.6531793", "0.65195656", "0.6504642", "0.6503334", "0.64912874", "0.64634514", "0.64429766", "0.643742", "0.64273566", "0.6422972", "0.64060414", "0.6404806", "0.6382659", "0.6378416", "0.63652...
0.6143019
55
take a "person list" and return a table
function tlp_show_process_personlist ($text) { $ret = ''; if (!empty($text)) { $ret .= '<table class="show-person-list"><tbody>'; $lines = explode("\n", $text); foreach ($lines as $line) { list($left, $right) = preg_split('/(?:\s*\.\.\.\s*)|(?:\|)/', $line); if (!empty($left) || !empty($right)) { $f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function GetPersons()\n {\n require ('../phpQuery/phpQuery.php');\n\t $motrinfo = file_get_contents('http://motr-online.com/tops/person');\n $document = phpQuery::newDocument($motrinfo);\n $res = [];\n\n $hentry = $document->find('table.tableBord');\n \n $pqm=pq($hentry)->e...
[ "0.655278", "0.6511811", "0.63206947", "0.6309132", "0.6250523", "0.60714024", "0.5931309", "0.592629", "0.5924371", "0.5810208", "0.5801356", "0.5779468", "0.575342", "0.5710706", "0.570937", "0.57077265", "0.5701726", "0.5689879", "0.5689657", "0.5687867", "0.5637745", "0...
0.66819394
0
return the slugs of shows, sorted by sequence order, matching the provided tag
function tlp_showlisting_filter ($tag) { $shows = array(); // retrieve the shows, filtering on the provided tag foreach (getChildrenMulti('productions', array('slug', 'meta', 'special', 'sequence')) as $page) { if (array_key_exists('special', $page) && $page['special'] === 'show') { if (in_array($tag, explode(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function slugs();", "public function findBySlugWithCategoryAndTags($slug);", "public function show($tag)\n {\n $tag = Tag::where('slug', $tag)->firstOrFail();\n return $tag;\n }", "public static function getSlugList(){\n return Arr::flatten(self::all('slug')->toArray());\n ...
[ "0.58124113", "0.54973036", "0.5472134", "0.5435748", "0.53881925", "0.5305022", "0.5230149", "0.5227472", "0.5177352", "0.51557267", "0.51504016", "0.5150039", "0.5097893", "0.508732", "0.5084329", "0.5081011", "0.5081011", "0.5081011", "0.5081011", "0.5081011", "0.5081011",...
0.8010079
0
return the front page items up to num
function tlp_frontpage_newsitems_slugs ($num = 3, $minforpinned = 2) { // get all news items, and sort them by slug descending $items = getChildrenMulti('news', array('slug', 'pin')); usort($items, function ($a, $b) { return strcmp($b['slug'], $a['slug']); }); // grab the first two. Then, look for any that have b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPageNumbers();", "private function pagenav($num) {\n $lastpage = ceil($this->factory->getCount('history') / $this->itemsPerPage);\n $parms = array(\n 'first' => 1,\n 'previous' => (max($num-1,1)),\n 'next' => min($num+1,$lastpage),\n 'l...
[ "0.64494616", "0.64218956", "0.60716707", "0.59012496", "0.5877985", "0.58541745", "0.5773441", "0.5773441", "0.57074344", "0.57061714", "0.57061714", "0.5687755", "0.56631523", "0.5654094", "0.5630804", "0.56141955", "0.5609396", "0.5609094", "0.5608395", "0.5574949", "0.557...
0.5747513
8
Returns Singl News Item with $id
public static function getProgramsList() { $db = Db::getConnection(); $result = $db->query('SELECT * FROM `programs` ORDER BY `id` DESC'); $programs = $result->fetchAll(); return $programs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getNewsItemByID($id)\r\n\t{\r\n\t\t$id = intval($id);\r\n\r\n\t\tif ($id) {\r\n/*\t\t\t$host = 'localhost';\r\n\t\t\t$dbname = 'php_base';\r\n\t\t\t$user = 'root';\r\n\t\t\t$password = '';\r\n\t\t\t$db = new PDO(\"mysql:host=$host;dbname=$dbname\", $user, $password);*/\r\n\t\t\t$db = Db::get...
[ "0.83137465", "0.7868074", "0.7861217", "0.7516281", "0.75045323", "0.7484838", "0.7278758", "0.7250294", "0.7199441", "0.7167824", "0.71005446", "0.70543206", "0.70092785", "0.6972041", "0.69547355", "0.6913196", "0.6866611", "0.6862965", "0.68626535", "0.6849191", "0.683194...
0.0
-1