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
Returns the default area.
public function getDefault(): AreaContract;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getArea(){}", "abstract protected function getArea();", "public function getArea()\n {\n return $this->area;\n }", "public function getArea()\n {\n return $this->area;\n }", "public function getArea()\n {\n return $this->area;\n }", "public function getMinA...
[ "0.71531254", "0.703821", "0.70051736", "0.70051736", "0.70051736", "0.6843785", "0.6804903", "0.6653907", "0.6632202", "0.6630729", "0.6630361", "0.6607033", "0.6565798", "0.65325135", "0.64702046", "0.64623237", "0.63978213", "0.6356822", "0.6306662", "0.6298281", "0.627624...
0.778171
0
Checks if the route has area.
public function hasAreaInUri(): bool;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasAreas()\n\t{\n\t\treturn count($this->getAreas()) > 0 ? true : false;\n\t}", "public static function canDisplayAreasMenu()\n\t{\n\t\treturn PermissionValidator::hasPermission(PermissionConstants::VIEW_AREA);\n\t}", "public function hasMapareas(){\n return $this->_has(30);\n }", "pu...
[ "0.7603163", "0.69949114", "0.69821006", "0.6713858", "0.65964144", "0.6544885", "0.6253558", "0.61429286", "0.6127362", "0.6124531", "0.6122773", "0.6086456", "0.6034936", "0.6012592", "0.596994", "0.5922196", "0.589419", "0.58625555", "0.585383", "0.58433014", "0.58283865",...
0.7533639
1
Gets an area object based on the current authentication and URI..
public function getCurrentArea(): AreaContract;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function __determineArea() {\n\t\t$url = $this->Area->Url->findByUrl(Router::url('/', true));\n\t\t$area = $this->Area->findById($url['Url']['area_id']);\n\t\tif (!$area) {\n\t\t\t$this->cakeError('error404');\n\t\t}\n\t\treturn $area['Area'];\n\t}", "function getAreas()\n {\n if($this->initAdapter ===...
[ "0.71639353", "0.5839835", "0.58337224", "0.57626384", "0.5714214", "0.56563824", "0.5603818", "0.5573664", "0.55681014", "0.5548246", "0.5512833", "0.55104506", "0.54429555", "0.5393728", "0.5393728", "0.5348709", "0.53483814", "0.5346598", "0.5346179", "0.5306775", "0.52887...
0.61644125
1
Returns collection of frontend areas.
public function getFrontendAreas(): AreasCollection;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBackendAreas(): AreasCollection;", "public function getAreas(): AreasCollection;", "function getAreas()\n {\n if($this->initAdapter === false){\n $this->initAdapters();\n }\n return $this->areas;\n }", "function getAreas () {\n return $this->tem...
[ "0.8302107", "0.768433", "0.7483156", "0.67402995", "0.65598005", "0.6485121", "0.64217377", "0.6399152", "0.63838756", "0.6331877", "0.6327003", "0.6270569", "0.624795", "0.6233313", "0.6231023", "0.6228049", "0.61884534", "0.6188238", "0.60617375", "0.6052353", "0.5984779",...
0.8913702
0
Returns collection of backend areas.
public function getBackendAreas(): AreasCollection;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFrontendAreas(): AreasCollection;", "function getAreas()\n {\n if($this->initAdapter === false){\n $this->initAdapters();\n }\n return $this->areas;\n }", "public function getAreas(): AreasCollection;", "public static function getAllAreas() {\n\t\t$db ...
[ "0.7982292", "0.7863667", "0.7485426", "0.67022675", "0.6593737", "0.64866", "0.64379495", "0.63639337", "0.6276418", "0.61409205", "0.6113982", "0.6099114", "0.60839504", "0.6070243", "0.60538787", "0.5982377", "0.5981833", "0.59129614", "0.58314604", "0.58313364", "0.582948...
0.8922755
0
Checks if the current area belongs to the Frontend Areas.
public function isFrontendArea(): bool;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isBackendArea(): bool;", "public static function canDisplayAreasMenu()\n\t{\n\t\treturn PermissionValidator::hasPermission(PermissionConstants::VIEW_AREA);\n\t}", "public function hasAreas()\n\t{\n\t\treturn count($this->getAreas()) > 0 ? true : false;\n\t}", "public function is_frontend_edit...
[ "0.7264344", "0.65700805", "0.6398109", "0.63687813", "0.618559", "0.61806226", "0.6110364", "0.6110364", "0.60622245", "0.6055879", "0.60200214", "0.595142", "0.5877826", "0.58299637", "0.5816312", "0.5805617", "0.5796868", "0.57897466", "0.57710737", "0.575129", "0.5743461"...
0.79931414
0
Checks if the current area belongs to the Backend Areas.
public function isBackendArea(): bool;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isFrontendArea(): bool;", "public function hasAreas()\n\t{\n\t\treturn count($this->getAreas()) > 0 ? true : false;\n\t}", "public function isBackendContext() {}", "function is_tabber_tabs_area_active( $index ){\n global $wp_registered_sidebars;\n\n $widgetcolums = wp_get_sidebars_widgets()...
[ "0.7092595", "0.6393919", "0.63526136", "0.62928677", "0.6259223", "0.6258937", "0.62406784", "0.6200967", "0.6059259", "0.60461396", "0.60113114", "0.5998781", "0.59457684", "0.59419745", "0.592258", "0.5914644", "0.58738714", "0.58577", "0.58510315", "0.58357435", "0.581941...
0.8198973
0
Returns a collection with areas.
public function getAreas(): AreasCollection;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFrontendAreas(): AreasCollection;", "public function getBackendAreas(): AreasCollection;", "function getAreas()\n {\n if($this->initAdapter === false){\n $this->initAdapters();\n }\n return $this->areas;\n }", "public function panelAreas(): Collection ...
[ "0.79317886", "0.7533631", "0.7391379", "0.67795515", "0.6763452", "0.6625361", "0.65923315", "0.6533913", "0.6423929", "0.6423929", "0.6423929", "0.6423929", "0.6415804", "0.6271613", "0.62576985", "0.62463355", "0.61914504", "0.6172695", "0.61725247", "0.6172076", "0.614599...
0.86310095
0
Returns an area object based on ID. Null returns if not found.
public function getById(string $id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getByIdOrDefault(string $id): AreaContract;", "function particulararea($id)\n\t{\n\t\t$getarea=\"SELECT * from area where id = $id\";\n\t\t$ggetareadata = $this->get_results( $getarea );\n\t\treturn $ggetareadata;\n\t}", "public function getArea($area_id) {\n $query = $this->db->query(\"...
[ "0.7844528", "0.697127", "0.69233996", "0.67395186", "0.6738416", "0.6673488", "0.6654236", "0.6635589", "0.66235584", "0.6617881", "0.66049755", "0.66027564", "0.65379673", "0.6483594", "0.64486843", "0.6410323", "0.6405981", "0.6245775", "0.61804235", "0.6070779", "0.605846...
0.0
-1
Returns an area object based on ID. Default area returns if not found the desired one.
public function getByIdOrDefault(string $id): AreaContract;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function particulararea($id)\n\t{\n\t\t$getarea=\"SELECT * from area where id = $id\";\n\t\t$ggetareadata = $this->get_results( $getarea );\n\t\treturn $ggetareadata;\n\t}", "public function getArea($area_id) {\n $query = $this->db->query(\"SELECT a.area_id,a.code,a.status,a.name,c.city_id,z.zone_id,coun....
[ "0.6818367", "0.68054247", "0.675593", "0.66526365", "0.6623228", "0.65929544", "0.6525969", "0.6503645", "0.64695245", "0.64217967", "0.63493794", "0.63383394", "0.63373303", "0.6288028", "0.62364167", "0.61606807", "0.61251014", "0.598079", "0.5980592", "0.59436256", "0.592...
0.79509115
0
Determine if the user is authorized to make this request.
public function authorize() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authorize()\n {\n if ($this->user() !== null) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }"...
[ "0.8401071", "0.8377486", "0.8377486", "0.8344406", "0.8253731", "0.824795", "0.8213121", "0.8146598", "0.81115526", "0.8083369", "0.7991986", "0.79907674", "0.79836637", "0.79604936", "0.79516214", "0.79494005", "0.79265946", "0.7915068", "0.79001635", "0.7894822", "0.789145...
0.0
-1
Get the validation rules that apply to the request.
public function rules() { return [ 'title' => 'required|string', 'subtitle' => 'nullable|string', 'show_title' => 'required|boolean', 'show_subtitle' => 'required|boolean', 'slug' => 'required|string', 'parent_id' => 'nullable|exists:pages,id', 'model' => 'nullable|string', 'menu_id' => 'nullable|exists:menus,id', 'keyword' => 'nullable|string', 'components_order.*' => 'nullable|numeric', ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "public function getRules()\n {\n return $this->validator->getRules();\n }", "public function getValidationRules()\n {\n $rules = [];\n\n // Get the sche...
[ "0.8342703", "0.80143493", "0.7937251", "0.79264987", "0.79233825", "0.79048395", "0.78603816", "0.7790699", "0.77842164", "0.77628785", "0.7737272", "0.7733618", "0.7710535", "0.7691693", "0.76849866", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.76830...
0.0
-1
Default Initializer for Database include_once 'autoloader.php';
function getDatabase() { //override these params $host = "localhost"; $user = "sistemasmysql"; $password = "17sistemassql06"; $database_name = "reservas_disilab"; return new MySqlDB($host, $user, $password, $database_name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function init() {\n\t\tcore::loadClass(\"database\");\n\n\t\t/* Child tables */\n\t\tcore::loadClass(\"doorkey_model\");\n\t\tcore::loadClass(\"key_history_model\");\n\t}", "private function init() {\n\t\tlist(, $this->db, $this->table) = explode('_', get_called_class(), 3);\n\t\t$this->db = define...
[ "0.7245056", "0.68706197", "0.68459994", "0.6823817", "0.6803661", "0.6779608", "0.6779583", "0.67563415", "0.6752606", "0.6728735", "0.6714892", "0.67028445", "0.6698033", "0.66898966", "0.66789216", "0.667495", "0.6663331", "0.66579974", "0.66579974", "0.66579974", "0.66554...
0.0
-1
Get the value of an option with the given name
function get_option($name) { $setting = Setting::where('name', $name)->first(); if(!$setting) { return ""; } return $setting->value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOption($name);", "public function getOption($name);", "public function getOption($name);", "public function getOption(string $name);", "public function getOption(string $name);", "function getOption($name);", "private function getOption($name)\n {\n return $this->parsedOpti...
[ "0.8496648", "0.8496648", "0.8496648", "0.8420553", "0.8420553", "0.83395666", "0.8145721", "0.8136188", "0.80378383", "0.7894082", "0.7851551", "0.7803747", "0.76555085", "0.7630125", "0.7607874", "0.7583609", "0.7524459", "0.75034904", "0.7477392", "0.74416506", "0.7413018"...
0.7086858
39
Set an option with a given name to the given value
function set_option($name, $value) { $setting = Setting::where('name', $name)->first(); if(!$setting) { $setting = new Setting(); $setting->name = $name; } $setting->value = $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setOption(string $name, $value);", "public function setOption(string $name, $value);", "public function setOption($name, $value);", "public function setOption($name, $value);", "public function setOption($name, $value);", "public function setOption($name, $value);", "public function set...
[ "0.89746517", "0.89746517", "0.89606786", "0.89606786", "0.89606786", "0.89606786", "0.84381664", "0.83205795", "0.8276058", "0.8167426", "0.81287366", "0.8111719", "0.80623597", "0.80304605", "0.7989332", "0.7950182", "0.79201275", "0.7897551", "0.7827324", "0.77708775", "0....
0.66899437
76
Display a listing of the resource.
public function list() { $plugins = Plugin::orderBy('name', 'asc')->where('vsrepo', 0)->where('vs_included', 0)->with('categories')->get(); return view('vsrepo.list', compact('plugins')); }
{ "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 generate($id) { $plugin = Plugin::where('id', $id)->first(); $vspackage['name'] = $plugin->name; $vspackage['type'] = $plugin->type; $vspackage['description'] = $plugin->description; if(!empty($plugin->url_website)) { $vspackage['website'] = $plugin->url_website; } if(!empty($plugin->url_github)) { $vspackage['github'] = $plugin->url_github; } if(!empty($plugin->url_doom9)) { $vspackage['doom9'] = $plugin->url_doom9; } $vspackage['category'] = $plugin->categories['name']; if(empty($vspackage['category']) || $vspackage['category'] == "unknown") { $vspackage['category'] = "Other"; } $vs_version = ""; $vspackage['identifier'] = $plugin->identifier; if($plugin->type == "VSPlugin") { $vspackage['namespace'] = $plugin->namespace; $vs_version = [ 'version' => "", 'published' => "", 'win32' => [ 'url' => '', 'files' => [ 'changeme.dll' => [ 'win32/changeme.dll', "SHA256" ] ] ], 'win64' => [ 'url' => '', 'files' => [ 'changeme.dll' => [ 'win64/changeme.dll', "SHA256" ] ] ], ]; } if($plugin->type == "PyScript") { $vspackage['modulename'] = $plugin->namespace; $vspackage['dependencies'] = []; $vs_version = [ 'version' => "", 'published' => "", 'script' => [ 'url' => '', 'files' => [ 'changeme.py' => [ 'changeme.py', "SHA256" ] ] ], ]; } $vspackage['releases'] = [$vs_version]; return response()->json($vspackage, 200, [], JSON_PRETTY_PRINT+JSON_UNESCAPED_SLASHES); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Display the specified resource.
public function show($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
Returns all events for a given service
public function list(Domain $domain, $type, Module $module, $params = []) { if(request()->has('start')) $params['start'] = request('start'); if(request()->has('end')) $params['end'] = request('end'); if(!array_key_exists('user_id', $params)) $params['user_id'] = auth()->id(); $calendarTypeModel = \Uccello\Calendar\CalendarTypes::where('name', $type)->get()->first(); $calendarClass = $calendarTypeModel->namespace.'\EventController'; $calendarType = new $calendarClass(); return $calendarType->list($domain, $module, $params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEvents();", "public function getEvents();", "public function getEvents()\n {\n //\n\n return Event::all();\n }", "public function getAll(){\n //old : \n // $events = $this->events;\n // return $events;\n $repo = $this->om->getRepository(Event...
[ "0.6624157", "0.6624157", "0.66216063", "0.6568275", "0.6501186", "0.6457819", "0.6453667", "0.63847494", "0.63731664", "0.631968", "0.6279939", "0.6273979", "0.6270766", "0.6260455", "0.6255082", "0.6239554", "0.6218485", "0.6192519", "0.617947", "0.616671", "0.6137453", "...
0.0
-1
Determine if the user is authorized to make this request.
public function authorize() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authorize()\n {\n if ($this->user() !== null) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }"...
[ "0.8401071", "0.8377486", "0.8377486", "0.8344406", "0.8253731", "0.824795", "0.8213121", "0.8146598", "0.81115526", "0.8083369", "0.7991986", "0.79907674", "0.79836637", "0.79604936", "0.79516214", "0.79494005", "0.79265946", "0.7915068", "0.79001635", "0.7894822", "0.789145...
0.0
-1
Get the validation rules that apply to the request.
public function rules() { return [ // ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "public function getRules()\n {\n return $this->validator->getRules();\n }", "public function getValidationRules()\n {\n $rules = [];\n\n // Get the sche...
[ "0.8342703", "0.80143493", "0.7937251", "0.79264987", "0.79233825", "0.79048395", "0.78603816", "0.7790699", "0.77842164", "0.77628785", "0.7737272", "0.7733618", "0.7710535", "0.7691693", "0.76849866", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.76830...
0.0
-1
Apply discount/coupon on subscription
function applyDiscountOnSubscription($subscriptionId = null) { $db = new db(); $db->makeConnection(); if($subscriptionId != null) { \Stripe\Stripe::setApiKey(STRPIE_CLIENT_SECRET); $date = date('Y-m-d 00:00:00'); $discountTotal = 0; // Select plan having trial periods on // $query = "SELECT price FROM billing_products BP INNER JOIN user_subscription_items USI ON BP.plan_id = USI.plan_id WHERE BP.trial_period != 0 AND USI.subscription_id = '{$subscriptionId}' AND USI.coupon_trial_from <= '{$date}' AND USI.coupon_trial_to >= '{$date}'"; $query = "SELECT price FROM billing_products BP INNER JOIN user_subscription_items USI ON BP.plan_id = USI.plan_id WHERE BP.trial_period != 0 AND USI.subscription_id = '{$subscriptionId}' AND USI.coupon_trial_from <= '{$date}' AND USI.coupon_trial_to > '{$date}' AND USI.status = '1'"; $res = $db->query($query); if($db->numRows($res)) { while ($rs = mysqli_fetch_array($res)) { $discountTotal += $rs['price']; } // if($discountTotal) { // Fetch if coupon exist, otherwise create $couponId = 'OFF-'.$discountTotal; try { // Retrieve coupon $coupon = \Stripe\Coupon::retrieve($couponId); } catch (\Stripe\Error\Base $e) { // Create coupon $coupon = \Stripe\Coupon::create([ 'id' => $couponId, 'amount_off' => ($discountTotal*100), 'currency' => 'SEK', 'duration' => 'once', // 'duration' => 'repeating', // 'duration_in_months' => 3, ]); } // Apply coupon on subscription if($coupon) { try { // Update subscription \Stripe\Subscription::update( $subscriptionId, ['coupon' => $coupon->id] ); } catch (\Stripe\Error\Base $e) {} } } else { try { $sub = \Stripe\Subscription::retrieve($subscriptionId); if( isset($sub->discount) && ($sub->discount != null) ) { $sub->deleteDiscount(); } } catch (\Stripe\Error\Base $e) {} } } else { try { $sub = \Stripe\Subscription::retrieve($subscriptionId); if( isset($sub->discount) && ($sub->discount != null) ) { $sub->deleteDiscount(); } } catch (\Stripe\Error\Base $e) {} } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function applyCoupon()\n {\n // check if the current coupon we are trying to apply is associated to a booking.\n // if it is, we will have to calculate the discount based on the the used coupon.\n if ($this->booking->isUsingCoupon($this->coupon)) {\n $this->coupon = $this-...
[ "0.67926526", "0.6785508", "0.67720866", "0.6667279", "0.6549684", "0.65437543", "0.65316623", "0.6530725", "0.65135664", "0.6509255", "0.6507628", "0.6461083", "0.64513326", "0.64356816", "0.63701975", "0.635742", "0.6281496", "0.6249001", "0.6246762", "0.6207004", "0.620137...
0.83097464
0
Format date in short format
public function dateFormat($date) { return $this->formatDate($date, \IntlDateFormatter::SHORT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function format_short_date($val) {\n return format_date($val, '%e %b %y %H:%M:%S');\n }", "public static function short($date){\n if (empty($date)) return;\n $php_date = strtotime($date);\n $formatted_date = date('M. j, Y (D)', $php_date);\n return $formatted_date;\n }", "public function...
[ "0.795213", "0.7694334", "0.75786906", "0.74758744", "0.73488516", "0.73294926", "0.7293005", "0.72399443", "0.71848685", "0.7142987", "0.70940006", "0.70827395", "0.7039365", "0.70334053", "0.7018741", "0.7015728", "0.70152444", "0.70106465", "0.69913924", "0.6985755", "0.69...
0.7255678
9
Get the upload record associated with the post.
public function upload() { return $this->hasOne(Upload::class, 'id', 'upload_id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUpload()\n {\n return $this->upload;\n }", "public function getUpload() {\n\t\treturn $this->loadMediaUploadView();\n\t}", "public function getUploadId()\n {\n return $this->data['upload_id'];\n }", "public function getUploadField()\n {\n return $this->c...
[ "0.68857557", "0.6286055", "0.6051548", "0.58886594", "0.58886594", "0.5852826", "0.5711179", "0.57106704", "0.5685754", "0.5643944", "0.5630983", "0.560322", "0.55935234", "0.553235", "0.551803", "0.55074775", "0.5504258", "0.5504258", "0.5504258", "0.5497092", "0.5493714", ...
0.6689858
1
Makes a move using the $boardState $boardState contains 2 dimensional array of the game field X represents one team, O the other team, empty string means field is not yet taken. example [['X', 'O', ''] ['X', 'O', 'O'] ['', '', '']] Returns an array, containing x and y coordinates for next move, and the unit that now occupies it. Example: [2, 0, 'O'] upper right corner O player
public function makeMove($boardState, $playerUnit = 'X') { $opponentUnit = ($playerUnit == 'X' ? 'O' : 'X'); $playerWinCases = array(); $opponentWinCases = array(); $choosePlayerWinCase = -1; $chooseOpponentWinCase = -1; foreach (self::$winningCases as $key => &$winCase) { $playerWinCase = new WinningCase($boardState, $winCase, $playerUnit); if (!$playerWinCase->isBlocked()) { if ($playerWinCase->countRemainingMoves() == 0) { $this->winner = $playerUnit; $this->winningCase = $winCase; return; } else if (!$choosePlayerWinCase instanceof WinningCase || ( $choosePlayerWinCase instanceof WinningCase && $playerWinCase->countRemainingMoves() < $choosePlayerWinCase->countRemainingMoves() ) ) { $choosePlayerWinCase = $playerWinCase; } } if ($playerWinCase->countRemainingMoves() > 0) { $playerWinCases[$playerWinCase->countRemainingMoves()] = $playerWinCase; // array_push($playerWinCases, $playerWinCase); } $opponentWinCase = new WinningCase($boardState, $winCase, $opponentUnit); if (!$opponentWinCase->isBlocked()) { if ($opponentWinCase->countRemainingMoves() == 0) { $this->winner = $opponentUnit; $this->winningCase = $winCase; return; } else if ($opponentWinCase->countRemainingMoves() == 1) { $chooseOpponentWinCase = $opponentWinCase; } } if ($opponentWinCase->countRemainingMoves() > 0) { $opponentWinCases[$opponentWinCase->countRemainingMoves()] = $opponentWinCase; // array_push($opponentWinCases, $opponentWinCase); } } // Winning case if ($choosePlayerWinCase instanceof WinningCase && $choosePlayerWinCase->countRemainingMoves() == 1) { #if (DEBUG) echo 'Winning case:' . "\r\n"; $this->winner = $playerUnit; $this->winningCase = $choosePlayerWinCase->winCase; return array_merge($choosePlayerWinCase->getRemainingMoves()[0], [$playerUnit]); } // Block opponent winning case (to avoid loss) if ($chooseOpponentWinCase instanceof WinningCase && $chooseOpponentWinCase->countRemainingMoves() > 0) { #if (DEBUG) echo 'Block opponent winning case -> Avoid loss:' . "\r\n"; return array_merge($chooseOpponentWinCase->getRemainingMoves()[0], [$playerUnit]); } #if (DEBUG) echo 'No immediate winnning move found -> Best move:' . "\r\n"; if ($choosePlayerWinCase instanceof WinningCase && $choosePlayerWinCase->countRemainingMoves() > 0) { return array_merge($choosePlayerWinCase->getRemainingMoves()[0], [$playerUnit]); } $this->winner = 'Draw'; return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function makeMove(array $boardState, string $playerUnit = 'X'): array\n {\n $this->setBoard($boardState);\n // Check if opponent won.\n $result = false;\n if ($playerUnit == 'X') {\n $result = $this->checkWinning('O');\n } else {\n $result = $this-...
[ "0.75876766", "0.7515289", "0.73621815", "0.64494634", "0.61523694", "0.6112851", "0.60530734", "0.6023448", "0.59191066", "0.5918023", "0.59057367", "0.5902344", "0.5858347", "0.57410717", "0.5712116", "0.57070696", "0.5674686", "0.5651002", "0.5533293", "0.5514007", "0.5455...
0.7225069
3
Display a listing of the resource.
public function index(){ return view('profile.change_pass'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request){ $request->validate([ 'current_password' => ['required', 'min:8', 'password'], 'password' => ['required', 'min:8', 'confirmed', Rules\Password::defaults()], ]); $user = Auth::user(); /* if (Hash::check($request->current_password, $user->password)) { $request->user()->fill([ 'password' => Hash::make($request->password) ])->save(); }else{ ; } */ $request->user()->fill([ 'password' => Hash::make($request->password) ])->save(); //TODO success message return redirect(route('changepass.index')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Display the specified resource.
public function show($id){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { // }
{ "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) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
/ do not remove, useful for some modules
public function set_db($db_name) { return mysql_select_db($db_name, $this->_link); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function unsetHiddenModules() {}", "public function clearModules();", "function uninstall(){}", "public function cleanModuleList()\n {\n /**\n * @var \\Magento\\TestFramework\\ObjectManager $objectManager\n */\n $objectManager = \\Magento\\TestFramework\\Helper\\Boo...
[ "0.7147712", "0.69312936", "0.6777448", "0.67387074", "0.65542984", "0.6404781", "0.637178", "0.6369461", "0.6360918", "0.6333895", "0.6329514", "0.63178974", "0.6259196", "0.6231713", "0.6219588", "0.62155694", "0.61498487", "0.61498487", "0.61291355", "0.61204", "0.6105045"...
0.0
-1
Gets the fieldId The name of the field for this credential. e.g, username or password or phoneNumber. This is defined by the application. Must match what is in the html field on singleSignOnSettings/password object.
public function getFieldId() { if (array_key_exists("fieldId", $this->_propDict)) { return $this->_propDict["fieldId"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdentifier()\n {\n return static::FIELD_ID;\n }", "public function getIdFieldName()\n {\n return $this->_idFieldName;\n }", "public function get_field_key() {\n\t\treturn $this->get_field_attr( 'field_key' );\n\t}", "public function get_field_id() {\n\t\treturn $t...
[ "0.68584794", "0.67467034", "0.67020285", "0.6701952", "0.6701457", "0.65741616", "0.6547263", "0.6527757", "0.65267694", "0.651781", "0.6510918", "0.6506219", "0.6423867", "0.6386912", "0.6270117", "0.6203322", "0.61606234", "0.6155901", "0.61408395", "0.6105079", "0.6102215...
0.69585454
0
Sets the fieldId The name of the field for this credential. e.g, username or password or phoneNumber. This is defined by the application. Must match what is in the html field on singleSignOnSettings/password object.
public function setFieldId($val) { $this->_propDict["fieldId"] = $val; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setField(string $name, Field $field);", "public function setIDField(string $idField) {\n\t\t$this->idField = $idField;\n\t}", "public function setField(string $name, $value);", "public function setField($field);", "public function setField($field);", "public function setField($name, $valu...
[ "0.6615268", "0.657498", "0.6040826", "0.5983159", "0.5983159", "0.59300834", "0.58971214", "0.5869017", "0.57774943", "0.57726973", "0.57551867", "0.5751874", "0.5748077", "0.5740966", "0.5699964", "0.5699931", "0.5697626", "0.5686053", "0.5654974", "0.5628274", "0.558774", ...
0.5686849
17
Gets the type The type for this credential. Valid values: username, password, or other.
public function getType() { if (array_key_exists("type", $this->_propDict)) { return $this->_propDict["type"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserType()\n {\n return $this->type;\n }", "public function getGrantType();", "function getType ()\n\t{\n\t\tswitch ( $this->get () )\n\t\t{\n\t\t\tcase self::DB_TOKEN:\n\t\t\t\treturn self::DB_TOKEN ;\n\n\t\t\tcase self::SERVICES_TOKEN:\n\t\t\t\treturn self::SERVICES_TOKEN ;\n\...
[ "0.7025232", "0.6973036", "0.6936732", "0.69176936", "0.69176936", "0.6901397", "0.6883347", "0.6753229", "0.6743281", "0.6708523", "0.66788876", "0.6639786", "0.6638141", "0.6631788", "0.6569077", "0.6563433", "0.6553471", "0.6550366", "0.6528061", "0.6513957", "0.6513957", ...
0.0
-1
Sets the type The type for this credential. Valid values: username, password, or other.
public function setType($val) { $this->_propDict["type"] = $val; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setUserType($type)\n\t{\n\t\t$this->type = $type;\n\t}", "public function setAuthenticationType( $type ) {\n\t\t$this->_mAuthenticationType = $type;\n\t}", "public function setType(String $type){\n $type = strtoupper($type);\n if(!in_array($type, self::getUserTypes())){\n ...
[ "0.7528208", "0.7505746", "0.74428767", "0.7341522", "0.7334645", "0.7334645", "0.7334645", "0.7301998", "0.7260768", "0.72517014", "0.72517014", "0.7216806", "0.72134393", "0.72134393", "0.72134393", "0.72134393", "0.72134393", "0.72134393", "0.72134393", "0.72134393", "0.72...
0.0
-1
Gets the value The value for this credential. e.g, mysuperhiddenpassword. Note the value for passwords is writeonly, the value can never be read back.
public function getValue() { if (array_key_exists("value", $this->_propDict)) { return $this->_propDict["value"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPassword() {\n return $this->getValue('password');\n }", "public function getPassword()\n {\n $value = $this->get(self::PASSWORD);\n return $value === null ? (string)$value : $value;\n }", "public function getPassword()\n {\n return $this->__get(\"passwo...
[ "0.74091697", "0.72183377", "0.7125693", "0.7121005", "0.7020687", "0.7018301", "0.69965774", "0.69213426", "0.6910324", "0.69097495", "0.6905859", "0.6893049", "0.68809897", "0.68809897", "0.6880955", "0.68806404", "0.6878932", "0.6878932", "0.687639", "0.68753695", "0.68753...
0.0
-1
Sets the value The value for this credential. e.g, mysuperhiddenpassword. Note the value for passwords is writeonly, the value can never be read back.
public function setValue($val) { $this->_propDict["value"] = $val; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setPassword($value)\n {\n $this->_password = $value;\n }", "public function setPassword($value)\r\n\t{\r\n\t\t$this->password = $value;\r\n\t}", "public function setPassword($value);", "public function setPassword($value) {\n\t\tif(!check($value)) throw new Exception(lang('error_...
[ "0.7276578", "0.7245038", "0.70722586", "0.69757634", "0.6963446", "0.68579036", "0.68579036", "0.68579036", "0.68579036", "0.68579036", "0.68579036", "0.68579036", "0.68578017", "0.68578017", "0.68578017", "0.68578017", "0.68578017", "0.68578017", "0.68578017", "0.68578017", ...
0.0
-1
/ initialisation des proprietes
public function initOptions() { parent::initOptions(); $this->_options->setOpt("WTPSI Company ID",'wtpsicpnyid','text',array('compulsory'=>false), NULL ,'EPassLibre'); $this->_options->setOpt("WTPSI XML ID",'wtpsixmlid','text',array('compulsory'=>false), NULL ,'EPassLibre'); $this->_options->setOpt("WTPSI UserName",'wtpsiusername','text',array('compulsory'=>false), NULL ,'EPassLibre'); $this->_options->setOpt("WTPSI Password",'wtpsixmlpasswd','text',array('compulsory'=>false), NULL ,'EPassLibre'); $this->_options->setOpt("WTPSI WTP Login",'wtpsiwtplogin','text',array('compulsory'=>true), NULL ,'EPassLibre'); $this->_options->setOpt("WTPSI User Contact",'wtpsicontactuser','text',array('compulsory'=>true), NULL ,'EPassLibre'); $this->_options->setOpt("WTPSI Contact Password ",'wtpsicontactpasswd','text',array('compulsory'=>true), NULL ,'EPassLibre'); $this->_options->setOpt("WTPSI POSNO ",'wtpsiposno','text',array('compulsory'=>true), NULL ,'EPassLibre'); $this->_options->setOpt("Utiliser le login company",'wtpsiusecpny','text',array('compulsory'=>true), NULL ,'EPassLibre'); $this->_options->setOpt("WTPSI WSDL ",'wtpsiwsdl','text',array('compulsory'=>true), NULL ,'EPassLibre'); $this->_options->setOpt("WTPSI Add-Ons WSDL ",'wtpsiaddonswsdl','text',array('compulsory'=>true), NULL ,'EPassLibre'); $this->_options->setOpt("VALIDATION des WTP : allproj",'wtpvalidationallproj','boolean',array('compulsory'=>true), false ,'EPassLibre'); $this->_options->setOpt("VALIDATION des WTP 64 bits", 'wtp64bits', 'boolean',array('compulsory'=>true), false ,'EPassLibre'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function init() {\n\t\t// use this method to initialize default values.\n\t}", "public function __init(){}", "public function init(){\n\t\t\t\t}", "public function init(){\n\t\t}", "protected function __init__() { }", "public function init(){}", "public function init(){}", "public function ini...
[ "0.7695924", "0.76752", "0.74352556", "0.73756677", "0.737021", "0.7279837", "0.7279837", "0.72723824", "0.72723824", "0.7259793", "0.72481394", "0.72460175", "0.7230998", "0.7218519", "0.7218519", "0.7218519", "0.7218519", "0.7218519", "0.7218519", "0.7218519", "0.7218519", ...
0.0
-1
/ chargement effectif des tarifs
function loadTariffs($ar){ $p = new XParam($ar, array()); $periods = $p->get('period'); if (count($periods)==0){ XShell::setNextData('message', 'Auncune période seléctionnée'); return; } // recupération des produits à traiter $dscatalog = XDataSource::objectFactoryHelper8('BCLASS=XDSTable&SPECS='.XModEPassLibre::$tableCATALOG); $ar['tplentry'] = TZR_RETURN_DATA; $ar['getselectonly'] = 1; $select = $dscatalog->procQuery($ar); $selectedproductoids = array(); $rsc = selectQueryGetAll($select); foreach($rsc as $orsc){ $selectedproductoids[] = $orsc['KOID']; } $wtpsi = $this->getAWTPSI(); // lecture du tarif TA pour chaque produit à la date de ref de la période // ajout si necessaire de la période // mise à jour du prix sinon $new = 0; $upd = 0; $del = 0; // ??? $errsoap = 0; $errwtpsi = 0; $nbprod = 0; // lecture des produits $bp = $this->dswtscatalog->browse(array('_options'=>array('local'=>true), 'pagesize'=>999, 'first'=>0, 'tplentry'=>TZR_RETURN_DATA, 'options'=>array('tapool'=>array('target_fields'=>array('prjno', 'poolno', 'talabel')), 'taticket'=>array('target_fields'=>array('talabel', 'ttno')), 'taperson'=>array('target_fields'=>array('talabel', 'ptno'))))); $nbprod = count($bp['lines_oid']); foreach($periods as $periodoid){ // lecture de la periode $dp = $this->dswtsperiod->rdisplay($periodoid); $datedeb = $dp['odatedeb']->raw; $datefin = $dp['odatefin']->raw; $dateref = $dp['odateref']->raw; foreach($bp['lines_oid'] as $i=>$productoid){ if (!in_array($productoid, $selectedproductoids)) continue; $ar2 = array('ticketdata'=>array('NPERSONTYPENO'=>$bp['lines_otaperson'][$i]->link['optno']->raw, 'NPOOLNO'=>$bp['lines_otapool'][$i]->link['opoolno']->raw, 'NPROJECTNO'=>$bp['lines_otapool'][$i]->link['oprjno']->raw, 'NTICKETTYPENO'=>$bp['lines_otaticket'][$i]->link['ottno']->raw, 'SZVALIDFROM'=>$dateref) ); $soap = $bp['lines_otapool'][$i]->link['opoolno']->raw.'/'.$bp['lines_otapool'][$i]->link['otalabel']->raw.' ' .$bp['lines_otaticket'][$i]->link['ottno']->raw.'/'.$bp['lines_otaticket'][$i]->link['otalabel']->raw.' ' .$bp['lines_otaperson'][$i]->link['optno']->raw.'/'.$bp['lines_otaperson'][$i]->link['otalabel']->raw; $soap .= ' <br>['; foreach($ar2['ticketdata'] as $ak=>$av){ $soap .= ' '.$ak.':'.$av; } $soap.=']'; $tarif = $wtpsi->doGetTariff($ar2); if ($tarif === false || $tarif->NERRORNO != '0'){ $errsoap += 1; $mess .= "<tr><td>$soap</td>"; if ($tarif !== false){ $errwtpsi += 1; $mess .= '<td> impossible de lire le tarif '.$tarif->SZERRORMESSAGE.'</td>'; } else { $mess .= '<td>impossible de lire le tarif</td>'; } $mess .= '</tr>'; } else { $mess .= "<tr><td>$soap</td><td>".($tarif->NTARIFF/100).'</td></tr>'; // recherche de la ligne . maj ou creation $lar = array('_options'=>array('local'=>true), 'period'=>$periodoid, 'product'=>$productoid, 'dated'=>$datedeb, 'datef'=>$datefin, 'tariff'=>$tarif->NTARIFF/100); $rsc = selectQueryGetAll("select KOID from ".$this->dswtstariff->getTable()." where product='$productoid' and period='$periodoid'"); if (count($rsc) == 0){ $this->dswtstariff->procInput($lar); $new += 1; } else { $lar['oid'] = $rsc[0]['KOID']; $this->dswtstariff->procEdit($lar); $upd += 1; } } } } $nbprod = count($selectedproductoids); $mess = "<table><tr><th colspan='99'>Produits à traiter : $nbprod - tarifs ajoutés : $new, mis à jour : $upd, erreurs wtpsi $errwtpsi, erreurs soap $errsoap</th></tr><tr><th>Forfaits</th><th>Résultats</th></tr>".$mess.'</table>'; XShell::toScreen2('br', 'mess', $mess); XShell::changeTemplate('epasslibre/modeplresortta/loadtariffs.html'); $this->preLoadTariffs(array()); XShell::setNext(''); // XShell::setNextData('message', "Produits à traiter : $nbprod - tarifs ajoutés : $new, mis à jour : $upd"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tache_barre_avancement_charge($tache_tmp, $element=\"tache\")\r\n{\r\n\t//Init\r\n\tglobal $trad;\r\n\t$lib_avancement\t\t\t= ($element==\"dossier\") ? $trad[\"TACHE_avancement_moyen\"] : $trad[\"TACHE_avancement\"];\r\n\t$lib_charge_jour_homme\t= ($element==\"dossier\") ? $trad[\"TACHE_charge_jour_ho...
[ "0.64103985", "0.55963916", "0.55402535", "0.55207336", "0.55168706", "0.5511683", "0.5390687", "0.5386397", "0.5369688", "0.5351663", "0.53201807", "0.5292355", "0.5251867", "0.5231972", "0.5219433", "0.5215263", "0.5208859", "0.51781124", "0.5175525", "0.5140535", "0.513723...
0.55125165
5
/ creation d'un lot catalogue
function createCatalog($ar){ $rs = selectQueryGetAll('select count(distinct categ) as nb from '.$this->wtscatalog); $p= new XParam($ar, array('prdconf'=>NULL, 'categ'=>'Lot '.($rs[0]['nb']+1), 'wtspool'=>NULL, 'wtsticket'=>NULL, 'wtsperson'=>NULL)); $added = 0; $prdconf = $p->get('prdconf'); $categ = $p->get('categ'); $tapool = $p->get('tapool'); $wtspool = $p->get('wtspool'); $tatickets = $p->get('ticket'); $tapersons = $p->get('person'); $wtstickets = $p->get('wtsticket'); $wtspersons = $p->get('wtsperson'); $lar = array('_options'=>array('local'=>true), 'tplentry'=>TZR_RETURN_DATA, 'tapool'=>$tapool, 'wtspool'=>$wtspool, 'categ'=>$categ, 'prdconf'=>$prdconf, ); // on génère les produits pour les combinaison selectionnées de valeurs tatickets/tapools foreach($tatickets as $it=>$taticketoid){ $lar['wtsticket'] = NULL; $lar['taticket'] = $taticketoid; if (isset($wtstickets[$it])) $lar['wtsticket']= $wtstickets[$it]; foreach($tapersons as $ip=>$tapersonoid){ $lar['wtsperson'] = NULL; $lar['taperson'] = $tapersonoid; if (isset($wtspersons[$ip])) $lar['wtsperson'] = $wtspersons[$ip]; // creation de la ligne $added+=1; $this->dswtscatalog->procInput($lar); } } $mess = $added.' produits ajoutés'; XShell::setNextData('message', $mess); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function preCreateCatalog($ar){\n // lot\n $rs = selectQueryGetAll('select count(distinct categ) as nb from '.$this->wtscatalog);\n $newval = 'Groupe '.($rs[0]['nb']+1);\n $fdl = new XShortTextDef();\n $fdl->field = 'categ';\n $fdl->table = $this->wtscatalog;\n $fdl->fieldcount = '32';\n $f...
[ "0.74085134", "0.689524", "0.6711217", "0.62744534", "0.6160358", "0.5952195", "0.58899945", "0.5806396", "0.5796995", "0.57410246", "0.5710859", "0.5672943", "0.5601688", "0.5583919", "0.55301535", "0.55263233", "0.54898703", "0.5486411", "0.5461777", "0.54476166", "0.542186...
0.75418735
0
/ parametres de generation du catalogue
function preCreateCatalog($ar){ // lot $rs = selectQueryGetAll('select count(distinct categ) as nb from '.$this->wtscatalog); $newval = 'Groupe '.($rs[0]['nb']+1); $fdl = new XShortTextDef(); $fdl->field = 'categ'; $fdl->table = $this->wtscatalog; $fdl->fieldcount = '32'; $fdl->compulsory = 1; $fvl = $fdl->edit($newval); XShell::toScreen2('br', 'ocateg', $fvl); // configuration $fdl = new XLinkDef(); $fdl->field = 'prdconf'; $fdl->table = $this->wtscatalog; $fdl->target = $this->wtsprdconf; $fdl->fieldcount = '1'; $fdl->compulsory = 0; $fvl = $fdl->edit(); XShell::toScreen2('br', 'oprdconf', $fvl); // liste des secteurs wts $fdl = new XLinkDef(); $fdl->field = 'wtspool'; $fdl->table = $this->wtscatalog; $fdl->target = $this->wtspool; $fdl->fieldcount = '1'; $fdl->compulsory = 0; $fdl->checkbox = 0; $fvl = $fdl->edit(); XShell::toScreen2('br', 'owtspool', $fvl); // liste des personnes wts $this->dswtsperson->browse(array('selectedfields'=>'all', 'tplentry'=>'br_wtsperson', 'pagesize'=>999)); // liste des forfaits wts $this->dswtsticket->browse(array('selectedfields'=>'all', 'tplentry'=>'br_wtsticket', 'pagesize'=>999)); // liste des pools ta $bpools = $this->dstapool->browse(array('selectedfields'=>'all', 'tplentry'=>'br_pool', 'pagesize'=>999)); // liste des tickets ta par pool ta $tickets = array(); foreach($bpools['lines_oid'] as $poid){ $tickets[] = $this->dstaticket->browse(array('selectedfields'=>'all', 'tplentry'=>TZR_RETURN_DATA, 'pagesize'=>999, 'select'=>$this->dstaticket->select_query(array('cond'=>array('tapool'=>array('=', $poid)))) ) ); } XShell::toScreen2('br', 'ticket', $tickets); // liste des types de personnes ta $this->dstaperson->browse(array('selectedfields'=>'all', 'tplentry'=>'br_person', 'pagesize'=>999)); // date de recherche $fd = new XDateDef(); $fd->field = 'validfrom'; $r = $fd->edit(date('Y-m-d')); XShell::toScreen2('br', 'ovalidfrom', $r); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function catalogos() \n\t{\n\t}", "public function catalogo(){\n \n $inicio['recomendado'] = $this->carga_recomendado();\n $inicio['categorias'] = $this->carga_menu_categorias();\n $this->Plantilla(\"catalogo\", $inicio);\n \n }", "function createCatalog($ar){\n ...
[ "0.7260226", "0.70997226", "0.66661733", "0.62911063", "0.6072073", "0.5802324", "0.57416075", "0.5718352", "0.56467617", "0.56325865", "0.56166947", "0.55820686", "0.5573196", "0.5538057", "0.55378497", "0.54818815", "0.54806405", "0.54468113", "0.5428808", "0.5424612", "0.5...
0.65659344
3
/ parametres de lecture des tarifs
function preSeeTariffs($ar){ // liste des pools $bpools = $this->dstapool->browse(array('selectedfields'=>'all', 'tplentry'=>'br_pool', 'pagesize'=>999)); // liste des tickets par pool $tickets = array(); foreach($bpools['lines_oid'] as $poid){ $tickets[] = $this->dstaticket->browse(array('selectedfields'=>'all', 'tplentry'=>TZR_RETURN_DATA, 'pagesize'=>999, 'select'=>$this->dstaticket->select_query(array('cond'=>array('tapool'=>array('=', $poid)))) ) ); } XShell::toScreen2('br', 'ticket', $tickets); // liste des types de personnes $this->dstaperson->browse(array('selectedfields'=>'all', 'tplentry'=>'br_person', 'pagesize'=>999)); // date de recherche $fd = new XDateDef(); $fd->field = 'validfrom'; $r = $fd->edit(date('Y-m-d')); XShell::toScreen2('br', 'ovalidfrom', $r); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function lector()\n {\n // Posibles parametros\n // - 1: seccion\n // - 2: medio\n // - 3: Inicio - Total (separados por un guion) (opcional)\n $total_parametros = count($this->parametros);\n\n if ($total_parametros > 3) {\n throw new NoEncontrado404Ex...
[ "0.60850435", "0.6025278", "0.592312", "0.59081304", "0.5846841", "0.5772604", "0.57154924", "0.5695877", "0.5621037", "0.5618434", "0.56115663", "0.5609165", "0.55848306", "0.55684036", "0.55583066", "0.55369335", "0.55361503", "0.5529257", "0.55279803", "0.5524831", "0.5518...
0.0
-1
/ parametres de lecture d'un tarif
function preSeeTariff($ar){ $this->browseTable(array('boid'=>$this->dstaticket->getBoid(), 'tplentry'=>'brticket', 'options'=>array('tapool'=>array('target_fields'=>array('talabel', 'poolno'))))); $this->browseTable(array('boid'=>$this->dstaperson->getBoid(), 'tplentry'=>'brperson')); $fd = new XDateDef(); $fd->field = 'validfrom'; $r = array('ovalidfrom'=>$fd->edit(date('Y-m-d'))); XShell::toScreen1('br', $r); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function lector()\n {\n // Posibles parametros\n // - 1: seccion\n // - 2: medio\n // - 3: Inicio - Total (separados por un guion) (opcional)\n $total_parametros = count($this->parametros);\n\n if ($total_parametros > 3) {\n throw new NoEncontrado404Ex...
[ "0.62110287", "0.6169592", "0.614813", "0.6043451", "0.6036277", "0.60361636", "0.59510946", "0.5917078", "0.58849394", "0.58744967", "0.586472", "0.58500326", "0.58182764", "0.580482", "0.5801601", "0.5765436", "0.5744897", "0.5739802", "0.5736567", "0.57246494", "0.57076275...
0.0
-1
/ lecture directe d'un tarif
function seeTariff($ar){ $p = new XParam($ar, array('tplentry'=>'br', 'format'=>false)); $tpl = $p->get('tplentry'); $validfrom = $p->get('validfrom'); $format = $p->get('format'); $fd = new XDateDef(); $fd->field = 'validfrom'; $validfrom2 =$fd->post_edit($validfrom)->raw; $person = $p->get('person'); $ticket = $p->get('ticket'); $wtpsi = $this->getAWTPSI(); $dt = $this->dstaticket->rdisplay($ticket); $dp = $this->dstaperson->rdisplay($person); $do = $this->dstapool->rdisplay($dt['otapool']->raw); $ar2 = array('ticketdata'=>array('NPERSONTYPENO'=>$dp['optno']->raw, 'NPOOLNO'=>$do['opoolno']->raw, 'NPROJECTNO'=>$do['oprjno']->raw, 'NTICKETTYPENO'=>$dt['ottno']->raw, 'SZVALIDFROM'=>$validfrom2) ); if ($format == true){ $tr=''; $str=''; $td='<td>'; $std='</td>'; } else { $tr=$str=''; $td=''; $std='/'; } $tarif = $wtpsi->doGetTariff($ar2); $raw = sprintf("$tr $td pool : %s $std $td person : %s $std $td ticket : %s $std", $do['opoolno']->raw, $dp['optno']->raw, $dt['ottno']->raw); if ($tarif === false){ $ret = $raw.$td.$dp['otalabel']->html.$std.$td.$dt['otalabel']->html.$std.$td.$do['otalabel']->html.$std.$td.$validfrom.$std.$td.$std.$td.'Unexpected WTPSI error'.$std.$str; } else { if ($tarif->NERRORNO == '0'){ $ret = $raw.$ts.$dp['otalabel']->html.$std.$td.$dt['otalabel']->html.$std.$td.$do['otalabel']->html.$std.$td.$validfrom.$std.$td.$tarif->SZVALIDTILL.$std.$td.(sprintf('%5.2f %s', $tarif->NTARIFF/100, $tarif->SZCURRENCY)).$std.$str; } else { $ret = $raw.$td.$dp['otalabel']->html.$std.$td.$dt['otalabel']->html.$std.$td.$do['otalabel']->html.$std.$td.$validfrom.$std.$td.$std.$td.$tarif->NERRORNO.$tarif->SZERRORMESSAGE.$std.$str; } } if ($tpl == TZR_RETURN_DATA) return $ret; else die($ret); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cl_tarefa_lanc() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"tarefa_lanc\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "function cl_sau_triagemavulsa() { \n //classes dos rotulos dos campos\n $this->rotulo = n...
[ "0.6267156", "0.6239861", "0.6215505", "0.6176619", "0.60867584", "0.6063531", "0.60245216", "0.5973827", "0.59470844", "0.58890676", "0.5864929", "0.5851251", "0.58499503", "0.5849926", "0.584751", "0.584748", "0.58369243", "0.5809663", "0.58060986", "0.5804799", "0.58042914...
0.0
-1
/ browse d'une table de base
function browseTable($ar){ $p = new XParam($ar, array('tplentry'=>'br')); $boid = $p->get('boid'); $tplentry = $p->get('tplentry'); $options = $p->get('options'); $x = XDataSource::objectFactory8($boid); $lar = array('options'=>$options, '_options'=>array('local'=>true), 'pagesize'=>9999, 'first'=>0, 'selectedfields'=>'all', 'tplentry'=>$tplentry); $x->browse($lar); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "abstract public function getTable();", "abstract...
[ "0.69066596", "0.69066596", "0.69066596", "0.69066596", "0.69066596", "0.69066596", "0.69066596", "0.68663263", "0.6788869", "0.6788869", "0.6784087", "0.67251194", "0.6706494", "0.6637506", "0.6529571", "0.652892", "0.64077574", "0.63447714", "0.6343819", "0.63433725", "0.63...
0.7221671
0
/ affichage des contenus TA
function browse($ar){ $r = array('tables'=>array( array('label'=>$this->dstapool->getLabel(), 'name'=>$this->dstapool->getTable(), 'boid'=>$this->dstapool->getBoid()), array('label'=>$this->dstaticket->getLabel(), 'name'=>$this->dstaticket->getTable(), 'boid'=>$this->dstaticket->getBoid()), array('label'=>$this->dstaperson->getLabel(), 'name'=>$this->dstaperson->getTable(), 'boid'=>$this->dstaperson->getBoid())), 'ta'=>array('WTPSI_WSDL'=>$GLOBALS['TA_WTPSI_WSDL']) ); XShell::toScreen1('br', $r); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function abono();", "public function traerCualquiera()\n {\n }", "public abstract function Ataca();", "public function catalogos() \n\t{\n\t}", "public function tipo_tarjeta();", "public function listtabelAsetAction() {\n $this->view->tableList = $this->adm_listtabel_serv->getTableLis...
[ "0.6261663", "0.62385833", "0.6224223", "0.6176363", "0.6157944", "0.59532815", "0.59192324", "0.59086114", "0.5897542", "0.5890103", "0.58614606", "0.58535314", "0.58233213", "0.58046055", "0.57909197", "0.5736545", "0.5728249", "0.5700165", "0.5686755", "0.568466", "0.56781...
0.0
-1
/ charger une table TA
function loadComponents($ar=NULL){ $p = new XParam($ar, array()); $what = $p->get('what'); $clearbefore = $p->get('clearbefore'); if ($what == 'all' or $what == $this->tapool) $this->loadPools($clearbefore); elseif ($what == 'all' or $what == $this->tapersontype) $this->loadPersonTypes($clearbefore); elseif ($what == 'all' or $what == $this->tatickettype) $this->loadTicketTypes($clearbefore); else XShell::setNextData('message', 'unknown component '.$what); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTabla(){\n return $this->table;\n }", "function getTabla() {\r\n return $this->tabla;\r\n }", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "public funct...
[ "0.7206092", "0.67693496", "0.6707509", "0.6707509", "0.6707509", "0.6707509", "0.6707509", "0.6707509", "0.6707509", "0.66644", "0.6605473", "0.6583189", "0.6516892", "0.650959", "0.64829206", "0.64662623", "0.6425962", "0.6425962", "0.6364612", "0.6363951", "0.63349074", ...
0.0
-1
/ charger les pool
private function loadPools($clearbefore){ if ($clearbefore){ updateQuery('truncate '.$this->tapool); } $wtpsi = $this->getAWTPSI(); $rs = $wtpsi->doGetPools(array()); foreach($rs as $i=>$o){ if ($o->NERRORNO != 0){ XLogs::critical(get_class($this)." erreur lecture des pools : ${$o->SZERRORMESSAGE}"); continue; } $newoid = sprintf($this->tapool.':%06d%06d', $o->NPROJECTNO, $o->NPOOLNO); // recherche du pool via poolno et projet $rs1 = selectQuery($this->dstapool->select_query(array('cond'=>array('prjno'=>array('=', $o->NPROJECTNO), 'poolno'=>array('=', $o->NPOOLNO))))); if ($rs1 && $rs1->RowCount() > 0){ // on a deja } else { // ajout du pool $this->dstapool->procInput(array('_options'=>array('local'=>true), 'newoid'=>$newoid, 'oid'=>$newoid, 'prjno'=>addslashes($o->NPROJECTNO), 'poolno'=>addslashes($o->NPOOLNO), 'talabel'=>addslashes($o->SZPOOL) ) ); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPools()\r\n\t{\r\n\t\treturn $this->pools;\r\n\t}", "public function getPools()\n\t{\n\t\t$pools = array();\n\t\t$result = '';\n\t\t\n\t\tswitch( $this->db_link->getDriver() )\n\t\t{\n\t\t\tcase 'sqlite':\n\t\t\tcase 'mysql':\n\t\t\t\t$query \t\t= \"SELECT name, numvols, poolid FROM Pool\";\n...
[ "0.6658752", "0.6601869", "0.6526298", "0.6368762", "0.61773854", "0.6162004", "0.6159385", "0.6028109", "0.5927746", "0.59254056", "0.59254056", "0.59254056", "0.59254056", "0.59254056", "0.59254056", "0.59254056", "0.5921524", "0.5921524", "0.5759101", "0.57302046", "0.5692...
0.6814248
0
/ charger les types de tickets
private function loadTicketTypes($clearbefore=0){ if ($clearbefore == 1){ updateQuery('truncate '.$this->tatickettype); } $wtpsi = $this->getAWTPSI(); $rs = $wtpsi->doGetTicketTypes(array()); foreach($rs as $i=>$o){ if ($o->NERRORNO != 0){ XLogs::critical(get_class($this)." erreur lecture des types de tickets : ${$o->SZERRORMESSAGE}"); continue; } // recherche du pool via projectno et persontypeno $rs1 = selectQuery($this->dstapool->select_query(array('cond'=>array('prjno'=>array('=', $o->NPROJECTNO), 'poolno'=>array('=', $o->NPOOLNO))))); if (!$rs1 || ($rs1->RowCount() == 0)){ // pool inconnu - devrait pas, on a deja charge les pools XLogs::critical(get_class($this)." ticket type sur pool inconnu {$o->NPROJECTNO} {$o->NPOOLNO}"); continue; } $ors1 = $rs1->Fetch(); // recherche du type de ticket dans notre table $rs2 = selectQuery($this->dstaticket->select_query(array('cond'=>array('tapool'=>array('=', $ors1['KOID']), 'ttno'=>array('=', $o->NTICKETTYPENO))))); if ($rs2 && $rs2->RowCount() > 0){ // on a deja } else { $newoid = sprintf($this->tatickettype.':%06d', $o->NTICKETTYPENO); // erreur il faut le pool $rsc = selectQueryGetAll('select koid from '.$this->tatickettype.' where koid=\''.$newoid.'\''); if (count($rsc)>0){ $newoid = sprintf($this->tatickettype.':%06d%03d', $o->NTICKETTYPENO, $o->NPOOLNO); } // ajout $nb = 0; if (preg_match('/^([0-9]+).*$/', $o->SZTICKETTYPE, $resm)){ $nb = $resm[1]; } $this->dstaticket->procInput(array('_options'=>array('local'=>true), 'newoid'=>$newoid, 'oid'=>$newoid, 'tapool'=>$ors1['KOID'], 'ttno'=>addslashes($o->NTICKETTYPENO), 'talabel'=>addslashes($o->SZTICKETTYPE), 'label'=>'', 'jours'=>$nb, ) ); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _getTicketTypes()\n {\n return [\n [\n 'label' => 'PayPal',\n 'value' => $this->Tickets->find('all')\n ->where([\n 'paid' => 1,\n 'type' => 'paypal'\n ])\n ...
[ "0.732879", "0.6269827", "0.6264867", "0.62002033", "0.61863744", "0.61833805", "0.6107673", "0.60294855", "0.60167056", "0.6013962", "0.59638894", "0.59638894", "0.59638894", "0.59616095", "0.593306", "0.5914709", "0.5898617", "0.5890796", "0.5847659", "0.5806183", "0.580312...
0.6889689
1
/ charger les types de personnes
private function loadPersonTypes($clearbefore=0){ if ($clearbefore){ updateQuery('truncate '.$this->tapersontype); } $wtpsi = $this->getAWTPSI(); $rs = $wtpsi->doGetPersonTypes(array()); foreach($rs as $i=>$o){ if ($o->NERRORNO != 0){ XLogs::critical(get_class($this)." erreur lecture des types de personnes : ${$o->SZERRORMESSAGE}"); continue; } $newoid = sprintf($this->tapersontype.':%06d', $o->NPERSONTYPENO); // recherche du type de personne via person type no $rs1 = selectQuery($this->dstaperson->select_query(array('cond'=>array('ptno'=>array('=', $o->NPERSONTYPENO))))); if ($rs1 && $rs1->RowCount() > 0){ // on a deja } else { // ajout $this->dstaperson->procInput(array('_options'=>array('local'=>true), 'ptno'=>addslashes($o->NPERSONTYPENO), 'oid'=>$newoid, 'newoid'=>$newoid, 'talabel'=>addslashes($o->SZPERSONTYPE) ) ); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function erp_get_people_types() {\n return apply_filters( 'erp_people_types', [] );\n}", "protected function getTypes() {}", "public function get_types()\n {\n }", "public function get_desired_types();", "public static function get_possible_types()\n {\n }", "public static ...
[ "0.71190315", "0.6791145", "0.6602424", "0.65821797", "0.6441488", "0.6441488", "0.6441488", "0.63681716", "0.63536155", "0.63536155", "0.63536155", "0.63536155", "0.622103", "0.6186636", "0.61758435", "0.61592954", "0.60903585", "0.6069656", "0.60397035", "0.6015194", "0.601...
0.7029266
1
/ fonction internes /
function remoteLogout(){ if ($this->wtps == NULL) return; XLogs::notice(get_class($this), '::remoteLogout '.$this->wtps->getSessionId()); $this->wtps->forceLogout(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function AggiornaPrezzi(){\n\t}", "public function helper()\n\t{\n\t\n\t}", "final function velcom(){\n }", "public function accueil()\n {\n }", "public function abono();", "public function pasaje_abonado();", "function truc() {\n}", "public function elso()\n {\n }", "abs...
[ "0.66944665", "0.6495314", "0.6428912", "0.63971776", "0.63321793", "0.62718844", "0.61754805", "0.6173077", "0.61715376", "0.61678714", "0.6156949", "0.61326385", "0.60888183", "0.6066564", "0.60580266", "0.6026381", "0.60130376", "0.5997525", "0.59761614", "0.59681225", "0....
0.0
-1
/ instace des WTPSI
function getAWTPSI(){ if ($this->wtps == NULL){ if ($this->wtpsiusecpny == 1){ $this->wtps = TAWTPSI::objectFactory(array('wsdl'=>$this->wtpsiwsdl, 'cpnylogin'=>1, 'username'=>$this->wtpsiusername, 'userpassword'=>$this->wtpsixmlpasswd, 'wtplogin'=>$this->wtpsiwtplogin, 'wtpusername'=>$this->wtpsicontactuser, 'wtppassword'=>$this->wtpsicontactpasswd )); } else { $this->wtps = TAWTPSI::objectFactory(array('user'=>$this->wtpsiwtplogin, 'pwd'=>$this->wtpsicontactpasswd, 'wsdl'=>$this->wtpsiwsdl)); } } return $this->wtps; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAWTPSIAddsOn(){\n if ($this->wtpsaddson == NULL){\n $this->wtpsaddson = TAWTPSIAddsOn::objectFactory(array('user'=>$this->wtpsiwtplogin,\n 'pwd'=>$this->wtpsicontactpasswd,\n 'wsdl'=>$this->wtpsiaddonswsdl));\n }\n return $this->wtpsadds...
[ "0.61785626", "0.55700535", "0.55467254", "0.55089617", "0.5493206", "0.54186076", "0.53854", "0.53367203", "0.532515", "0.53076303", "0.5287357", "0.52626115", "0.52144355", "0.51818913", "0.5180667", "0.5177764", "0.51580375", "0.5153518", "0.51520914", "0.51497084", "0.512...
0.7157683
0
/ instace des WTPSI AddOns
function getAWTPSIAddsOn(){ if ($this->wtpsaddson == NULL){ $this->wtpsaddson = TAWTPSIAddsOn::objectFactory(array('user'=>$this->wtpsiwtplogin, 'pwd'=>$this->wtpsicontactpasswd, 'wsdl'=>$this->wtpsiaddonswsdl)); } return $this->wtpsaddson; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function __construct() {\n $this->plugin_dir = plugin_dir_path(__FILE__);\n $this->icon_dir = $this->plugin_dir . 'images/icons/';\n\n $this->plugin_url = plugins_url('',__FILE__);\n $this->icon_url = $this->plugin_url . 'images/icons/';\n $this->admin_page = admin_url() . 'admin...
[ "0.6000555", "0.57204646", "0.57073635", "0.56994313", "0.56773365", "0.5673357", "0.5672344", "0.5651897", "0.5647044", "0.5629927", "0.56260824", "0.5613327", "0.559047", "0.5581401", "0.55772233", "0.5565469", "0.55610055", "0.5556372", "0.55525196", "0.5547311", "0.554461...
0.72144175
0
/ recherche d'une personne
function lookForPerson($person){ return $this->lookForBOCPerson($person); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function search();", "public function search();", "public function search(){}", "function searchOrganisme($nom_organisme){\n $query = \"\n SELECT DISTINCT ob.body_value as body, ob.body_summary as bodysum, ob.bundle, ov.field_ville_value as ville, ol.field_lien_url as lien, oa.field_anne...
[ "0.70612884", "0.70612884", "0.68673486", "0.68439883", "0.6767094", "0.6729889", "0.6583993", "0.65111095", "0.65111095", "0.64319164", "0.64137644", "0.6408389", "0.6390694", "0.6388418", "0.6378252", "0.63527024", "0.6345231", "0.63314027", "0.6295362", "0.6248014", "0.624...
0.0
-1
/ implementation des fonctions abstraites de modresort
public function formatWTPParts($parts){ if (!is_array($parts)) $parts = explode('-', $parts); list($chipid, $crc, $accno) = $parts; return strtoupper($chipid.'-'.$crc.'-'.$accno); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function mod($params) {}", "public function testGetMod()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function operations();", "public function modify();", "public function helper()\n\t{\n\t\n\t}", "abstract protected function update ()...
[ "0.5836204", "0.57155573", "0.56134206", "0.5606711", "0.54832655", "0.5399067", "0.5375524", "0.53042305", "0.5295326", "0.52888703", "0.5284153", "0.5279925", "0.5277949", "0.5257116", "0.5252419", "0.5244745", "0.52049744", "0.52049744", "0.51914585", "0.51872766", "0.5171...
0.0
-1
/ controle d'un triplet chipid, accno, crc
function checkWTP($parts){ $is64 = false; list($chipid, $crc, $accno) = $parts; $wtpsi = $this->getAWTPSI(); $r1 = $wtpsi->doCheckWTPCRC(array('checkdata'=>array($chipid, $crc))); if (!$r1 && $this->wtp64bits){ $r3 = $wtpsi->doCheckWTP64Bit(array('checkdata'=>array($chipid, $crc, $accno))); if ($r3){ $r1 = true; $is64 = true; $r2 = true; $wtp32 = $wtpsi->doGet32BitWTPNo(array($chipid.'-'.$crc.'-'.$accno)); //SZACCEPTANCENO"]=> string(3) "380" ["SZCHIPID"]=> string(8) "A2D66104" ["SZCHIPIDCRC $messages[] = 'WTP 64 BITS -> '.$wtp32->SZCHIPID.' '.$wtp32->SZCHIPIDCRC.'-'.$wtp32->SZACCEPTANCENO; $chipid32 = $wtp32->SZCHIPID; $crc32 = $wtp32->SZCHIPIDCRC; $accno32 = $wtp32->SZACCEPTANCENO; } } if (!$is64){ if ($this->wtpvalidationallproj) $r2 = $wtpsi->doCheckWTPACCAllProj(array('checkdata'=>array($chipid, $accno))); else $r2 = $wtpsi->doCheckWTPACC(array('checkdata'=>array($chipid, $accno))); } else { // ... if ($this->wtpvalidationallproj) $r2 = $wtpsi->doCheckWTPACCAllProj(array('checkdata'=>array($chipid32, $accno32))); else $r2 = $wtpsi->doCheckWTPACC(array('checkdata'=>array($chipid32, $accno32))); } if (!$r1 || !$r2) return false; else return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function crcl_par($arr) {\n $out = \"\";\n foreach ($arr as $section => $card) {\n if ( is_array($card) ) {\n $out .= \"[\".$section.\"]\\n\"; \n foreach ($card as $parameter => $value) {\n $v1 = trim($value);\n $v1 = str_replace( '\\\\\"',\"'\",$v1 );\n $out .= \"$parameter = \...
[ "0.5783286", "0.5315939", "0.51880026", "0.48601902", "0.48248622", "0.4810036", "0.4781561", "0.47537", "0.4743012", "0.46763995", "0.46700913", "0.46684888", "0.4658388", "0.46336424", "0.46133554", "0.4597149", "0.45945203", "0.45847923", "0.456823", "0.45468768", "0.45422...
0.0
-1
/ resultat d'un cancel
function makeRef($ota){ $ref = ''; $ref = $ota->NPOSNR.'-'.$ota->NJOURNALNR.'-'.$ota->NSERIALNR.'-'.$ota->NPROJNR; return $ref; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cancel();", "public function cancel(): int;", "public function cancel(): void;", "protected function _cancelOperation() {}", "public function cancel()\n {\n }", "public function cancel()\n {\n }", "protected function cancel(): void\n {\n }", "function cancelar()\r\n\...
[ "0.8220708", "0.7871943", "0.78422564", "0.7789176", "0.768341", "0.768341", "0.7422344", "0.72518826", "0.71652347", "0.699229", "0.67060876", "0.6552445", "0.6552445", "0.6513662", "0.64873666", "0.647728", "0.6469926", "0.64690906", "0.64676", "0.642117", "0.6404102", "0...
0.0
-1
/ resultat d'un purchaseTicket/Product
function makeRef2($ota){ $ref = ''; $ref = $ota->NPOSNO.'-'.$ota->NJOURNALNO.'-'.$ota->NSERIALNO.'-'.$ota->NPROJECTNO; return $ref; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProduct();", "public function actionProductdetail()\n {\n $route = 'merchant.getProduct';\n $request = new getProductRequest();\n $request->setCustomerId($this->customer_id);\n $request->setAuthToken($this->auth_token);\n $request->setWholesalerId(33);\n ...
[ "0.69703585", "0.6583207", "0.65290964", "0.6469947", "0.64640164", "0.6421777", "0.63404334", "0.63180524", "0.62947434", "0.62636817", "0.6248838", "0.62388885", "0.6234835", "0.62324697", "0.6223079", "0.6220892", "0.6197384", "0.6194413", "0.61636716", "0.61629754", "0.61...
0.0
-1
/ passe un purchase ticket
function purchaseTicket($ar){ if (isset($GLOBALS['RRTESTSTA'])){ XLogs::critical(get_class($this), '::purchaseTicket RRTESTSTA'); throw new Exception('Coucou'); $ta = new StdClass(); $ta->NPOSNO = 0; $ta->NJOURNALNO = sprintf('%05d', '1'.date('ms')); $ta->NSERIALNO = sprintf('%05d', '2'.date('ms')); $ta->NPROJECTNO = 444; return $ta; } $wtpsi = $this->getAWTPSI(); $pt= $ar['tapt']; $pool = $ar['pool']; $tt = $ar['tatt']; $prj = $ar['projectno']; $firstname = $ar['firstname']; $lastname = $ar['lastname']; $dob = $ar['dob']; $pur = array(); list($chipid, $crc, $accno) = explode('-', $ar['wtpno']); $pur[0]['NPERSONTYPENO'] = $pt; $pur[0]['NPOOLNO'] = $pool; $pur[0]['NTICKETTYPENO'] = $tt; $pur[0]['NPROJECTNO'] = $prj; $pur[0]['SZVALIDFROM'] = $ar['validfrom']; // jcp 28/12/11, preco support TA : ne transmettre que le CHIPID // $pur[1]['SZACCEPTANCENO'] = $accno; // $pur[1]['SZCHIPIDCRC'] = $crc; $pur[1]['SZCHIPID'] = $chipid; // person data $pur[2]['SZLASTNAME'] = $lastname; $pur[2]['SZFIRSTNAME'] = $firstname; $pur[2]['SZDATEOFBIRTH'] = $dob; $pur[2]['SZSEX'] = NULL; $pur[2]['SZTITLE'] = NULL; $pur[2]['SZSALUTATION'] = NULL; // pas d'adress data $pur[3] = NULL; // adress data // articles -> faire un purchaseProduct if (isset($ar['articlesData'])){ $pur[4] = $ar['articlesData']; $soapfunc = 'doPurchaseProduct'; } else { $soapfunc = 'doPurchaseTicket'; } $cc = ''; foreach($pur as $foo=>$block){ $c = $foo . ' : '; if (isset($block)){ foreach($block as $name=>$value){ $c .= ' '.$name.'=>'.$value; } } $cc .= $c; XLogs::notice(get_class($this), get_class($this)."::purchaseTicket $c"); } // purchaseProduct / purchaseTicket $r = $wtpsi->$soapfunc(array('purchasedata'=>$pur)); return $r; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function handleSingleLogout($ticket) {\n\t$RCMAIL = rcmail::get_instance();\n\t$RCMAIL->session->destroy($ticket);\n }", "function destroy()\n\t{\n\t\tunset($this->_tour_voucher_contents);\n\n\t\t$this->_tour_voucher_contents['totals'] = array();\n\t\t$this->_tour_voucher_contents['total_itineraries'] = 0;\n\...
[ "0.6235973", "0.59620214", "0.593334", "0.5910358", "0.58993125", "0.5863652", "0.5822116", "0.58198017", "0.5812954", "0.5812898", "0.57678753", "0.5728038", "0.5721348", "0.5698336", "0.5698336", "0.5698336", "0.5698336", "0.5691511", "0.56814533", "0.56779355", "0.566921",...
0.55218357
31
traitement des commandes pro
function cronCloseProCmd(XModScheduler &$scheduler=NULL, &$o=NULL, &$more=NULL){ $xc = XDataSource::objectFactoryHelper8('BCLASS=XDSTable&SPECS='.$this->ordertable); $cr = ''; // si le vente pro existe, ne prendre que les commandes pro $cond = array('ETATFABRICATION'=>array('=', $this->getProEtatsValides())); if ($xc->fieldExists('ISPROORDER')){ $where = 'ifnull(ISPROORDER, "2") = 1'; $s = $xc->select_query(array('cond'=>$cond, 'where'=>$where)); } else { $cr = 'La vente pro n\'est pas active'; if ($scheduler != NULL) $scheduler->setStatusJob($o->KOID, 'finished', $cr); else XLogs::notice(get_class($this), $cr); } XLogs::debug(get_class($this), "::cronCloseProCmd $s"); $cr .= "\nquery : $s "; $rs = selectQuery($s); if (!$rs){ $cr .="\n erreur de lecture $s"; if ($scheduler != NULL) $scheduler->setStatusJob($o->KOID, 'finished', $cr); XLogs::critical(get_class($this),"::cronCloseProCmd erreur lecture $s"); return; } $cr .= "\n commandes pro à traiter : ".$rs->RowCount(); $nok = 0; $nko = 0; // client initial par defaut (xsalto) $wtps = $this->getAWTPSI(); while($ors = $rs->Fetch()){ XLogs::debug(get_class($this),"::cronCloseProCmd {$ors['KOID']} / ".$rs->RowCount()); // en commande pro, on deconnecte / reconnecte TA à chaque commande $customeroid = $ors['CUSTOMER']; $rsc = selectQuerygetAll('select skdb2bcode from '.XModEPasslibre::$tableCUSTOMER.' where LANG="FR" and KOID="'.$customeroid.'"'); if (count($rsc) != 1 || empty($rsc[0]['skdb2bcode'])){ XLogs::critical(get_class($this), 'Impossible de lire skdb2bcode pour le client '.$customeroid); continue; } // deconnexion du précédant et connexion pour le nouveau client de la commande $this->remoteLogout(); $this->cpnyLogin(explode(';', $rsc[0]['skdb2bcode'])); // traitement de la commande $r = $this->closeCmd($ors['KOID']); if ($r->closed){ $nok += 1; } else { $nko += 1; } } $cr .= "\n commandes pro closes : ".$nok; $cr .= "\n commandes pro non closes : ".$nko; if ($scheduler != NULL) $scheduler->setStatusJob($o->KOID, 'finished', $cr); else XLogs::notice(get_class($this), $cr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wtsProPaiement($ar){\n $p = new XParam($ar, array());\n $orderoid = $p->get('orderoid');\n // verification du client de la commande et du compte connecte\n list($okPaiement, $mess) = $this->paiementEnCompte($orderoid);\n if (!$okPaiement){\n XLogs::critical(get_class($this), 'paiement ...
[ "0.6960811", "0.64805377", "0.64769936", "0.6418037", "0.64159197", "0.6395518", "0.6329034", "0.63087463", "0.6299018", "0.6274909", "0.6268211", "0.61881196", "0.6165556", "0.6129821", "0.606173", "0.605984", "0.60274726", "0.6020168", "0.60190964", "0.6012609", "0.59802735...
0.56803375
64
lecture des informtations TA (en fait) d'un produit et des informations calendrier
function getProductInfos($oid){ if (!isset($this->products[$oid])){ $r = array('pool'=>NULL, 'ticket'=>NULL, 'person'=>NULL, 'taarticleno'=>NULL); $selectedfields = array('tapool', 'taperson', 'taticket', 'prdconf'); if ($this->xwtscatalog->fieldExists('taarticleno')){ $selectedfields[] = 'taarticleno'; } $dp = $this->xwtscatalog->display(array('oid'=>$oid, 'selectedfields'=>$selectedfields, 'options'=>array('tapool'=>array('target_fields'=>array('prjno', 'poolno')), 'taperson'=>array('target_fields'=>array('ptno')), 'prdconf'=>array('target_fields'=>array('calendar')), 'taticket'=>array('target_fields'=>array('tapool', 'ttno')) ) ) ); $r['project'] = $dp['otapool']->link['oprjno']->raw; $r['pool'] = $dp['otapool']->link['opoolno']->raw; $r['ticket'] = $dp['otaticket']->link['ottno']->raw; $r['person'] = $dp['otaperson']->link['optno']->raw; $r['calendartype'] = $dp['oprdconf']->link['ocalendar']->link['otype']->raw; if (isset($dp['otaarticleno'])) $r['taarticleno'] = $dp['otaarticleno']->raw; $this->products[$oid] = $r; } return $this->products[$oid]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cabecera_2020($com_id,$tp){\n $obj_est=$this->model_producto->list_oestrategico($com_id); /// Objetivos Estrategicos\n $componente = $this->model_componente->get_componente_pi($com_id); //// DATOS COMPONENTE\n $fase=$this->model_faseetapa->get_fase($componente[0]['pfec_id']); /// DAT...
[ "0.6195598", "0.6193013", "0.6167029", "0.6091063", "0.60434157", "0.6041697", "0.6034739", "0.60319084", "0.60058206", "0.5991538", "0.5967288", "0.5941453", "0.5933828", "0.59264076", "0.587463", "0.5872368", "0.5869905", "0.5862104", "0.58603877", "0.5839577", "0.5832781",...
0.0
-1
Retrieve all attributes for entity type
public function getList(SearchCriteriaInterface $searchCriteria) { // TODO: Implement getList() method. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public func...
[ "0.71133685", "0.71133685", "0.71133685", "0.71133685", "0.71133685", "0.71133685", "0.71133685", "0.71133685", "0.71133685", "0.70374835", "0.7036656", "0.69316727", "0.6871328", "0.6850903", "0.6737842", "0.67072254", "0.67072254", "0.6679501", "0.66525304", "0.66440773", "...
0.0
-1
Display a listing of the resource.
public function index() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Display the specified resource.
public function show(ResearchMember $researchMember) { // }
{ "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(ResearchMember $researchMember) { // }
{ "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, ResearchMember $researchMember) { // }
{ "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(ResearchMember $researchMember) { // }
{ "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
Show the Job Builder mini SPA
public function show() { return view( 'manager/job-builder-root' )->with([ 'title' => Lang::get('manager/job_builder.title'), ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Job $job)\n {\n //\n }", "public function getShow($jobtitle)\n\t{\n\t\t// redirect to the frontend\n\t}", "public function index()\n\t{\n\t\treturn view('sanatorium/job::index');\n\t}", "public function showInstallerApp() {\n\t\t$doc = JFactory::getDocument();\n\t\t$this->lo...
[ "0.6665023", "0.6536361", "0.63888204", "0.6380171", "0.62925464", "0.61752284", "0.6144173", "0.610938", "0.60875916", "0.60807264", "0.6065288", "0.6047928", "0.6037091", "0.6018285", "0.6015556", "0.6015556", "0.6015556", "0.6015556", "0.6010017", "0.60046476", "0.6001178"...
0.7357492
0
$n | $n+1 sets rightmost zero bit to 1 ($n | $n+1) + 1 sets all bits after second zero to 0 and second zero to 1 combining these terms with XOR (^) gives leading zeros until second rightmost zero of original term and then only 1s adding 1 again turns all 1s to zeros and adds only one 1 in front of them moving to the right one position returns the exact position of the second rightmost 0 Example: $n = 37 = 100101 $n | $n + 1 = 100111 ($n | $n + 1) + 1 = 101000 XOR of the above = 001111 +1 to that = 010000 >> 1 = 001000
function secondRightmostZeroBit($n) { return ((($n | $n+1) ^ (($n | $n + 1) + 1)) + 1) >> 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function getMaskOnes(int $n): int {\n // so (1 << 63) - 1 gets converted to float and loses precision (leading to incorrect result)\n // 2. (1 << 64) - 1 works fine, because (1 << 64) === 0 (it overflows) and -1 is exactly what we want\n // (`php -r 'var_dump(decbin(-1));'...
[ "0.62852633", "0.6116158", "0.6056246", "0.6055227", "0.60162616", "0.57413346", "0.55304277", "0.5477094", "0.5446826", "0.5413623", "0.53752816", "0.53333426", "0.53181046", "0.52793753", "0.5232766", "0.51740205", "0.5160071", "0.5099801", "0.5079656", "0.50759155", "0.504...
0.7070557
0
compilation_level = SIMPLE_OPTIMIZATIONS ADVANCED_OPTIMIZATIONS WHITESPACE_ONLY
private function on_matched_javascript($match) { $src_interns = split(',',$match[1]); $src_externs = split(',',$match[2]); $html = ''; if ($this->build_type === self::DEBUG) { foreach($src_externs as $src) { list($master,$extern) = split(':',$src); $filename = self::filename($master); $this->sources[$master] = $filename; $html .= "<script language=\"JavaScript\" type=\"text/javascript\" src=\"$filename\"></script>\n"; } foreach($src_interns as $src) { $filename = self::filename($src); $this->sources[$src] = $filename; $html .= "<script language=\"JavaScript\" type=\"text/javascript\" src=\"$filename\"></script>\n"; } return $html; } else { $opt_js = ''; foreach($src_interns as $src) { $opt_js .= "--js $src "; } $js = ''; $opt_ex = ''; foreach($src_externs as $src) { list($master,$extern) = split(':',$src); $js .= $this->load($master)."\n"; $opt_ex .= "--externs $extern "; } $tmp = tempnam(sys_get_temp_dir(),'shc'); $jar = self::JAR_CLOSURE; $cmd= "java -jar $jar $opt_js $opt_ex ". " --logging_level 1 ". " --compilation_level ADVANCED_OPTIMIZATIONS ". " --js_output_file $tmp"; $this->cmd($cmd); $js .= $this->load($tmp) ."\n"; unlink($tmp); return"<script language=\"JavaScript\" type=\"text/javascript\" >$js</script>"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function miniStatement() {\n ... function body ...\n }", "function tideways_sql_minify($sql)\n{\n}", "protected function linear_whitespace()\n {\n }", "public function optimize() {}", "function strict() {\r\n\t\treturn true;\r\n\t}", "function my_minify_html() {\n ob_start...
[ "0.5600915", "0.5514432", "0.5289767", "0.5189886", "0.5125221", "0.50642306", "0.50548375", "0.50067735", "0.49527705", "0.48724067", "0.48372898", "0.47557798", "0.4736448", "0.47301102", "0.47079363", "0.47052568", "0.46592763", "0.46522456", "0.4645152", "0.46073925", "0....
0.0
-1
Perform postregistration booting of services.
public function boot(){ /** * If your package contains routes, you may load them using the loadRoutesFrom method. This method will automatically determine if the application's routes are cached and will not load your routes file if the routes have already been cached: */ $this->loadRoutesFrom(__DIR__.'/routes/web.php'); /** * To register your package's views with Laravel, you need to tell Laravel where the views are located. You may do this using the service provider's loadViewsFrom method. The loadViewsFrom method accepts two arguments: the path to your view templates and your package's name. For example, if your package's name is courier, you would add the following to your service provider's boot method: */ $this->loadViewsFrom(__DIR__.'/resources/views','lara-lte'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function boot()\n {\n\n $this->app->bind(FileUploaderServiceInterface::class,FileUploaderService::class);\n $this->app->bind(ShopServiceInterface::class,ShopService::class);\n $this->app->bind(CategoryServiceInterface::class,CategoryService::class);\n $this->app->bind(ProductS...
[ "0.7523447", "0.72817886", "0.720491", "0.71984196", "0.7176205", "0.71662176", "0.71574175", "0.71444714", "0.714033", "0.7099516", "0.70984703", "0.70885664", "0.7087128", "0.70815575", "0.7077817", "0.7070107", "0.706762", "0.70658684", "0.7060647", "0.70550144", "0.705466...
0.0
-1
Handle an incoming request.
public function handle($request, Closure $next) { $openAmConfig = $this->app['config']['openam']; $user = $this->auth->user(); if(!$request->hasCookie($openAmConfig['cookieName']) && isset($user)) { $response = $next($request); return $response->withCookie( cookie( $openAmConfig['cookieName'], $user->getAuthIdentifier(), 0, $openAmConfig['cookiePath'], $openAmConfig['cookieDomain'] ) ); } return $next($request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function handle_request();", "public function handleRequest();", "public function handleRequest();", "public function handleRequest();", "protected abstract function handleRequest();", "abstract public function handleRequest($request);", "abstract public function handleRequest(Request $...
[ "0.8299201", "0.8147294", "0.8147294", "0.8147294", "0.8127764", "0.7993589", "0.7927201", "0.7912899", "0.7899075", "0.76317674", "0.75089735", "0.7485808", "0.74074036", "0.7377414", "0.736802", "0.7294553", "0.72389543", "0.7230166", "0.72108", "0.71808434", "0.7170364", ...
0.0
-1
usado para o validator
public function exchangeArray($data) { $logger = new \Zend\Log\Logger; $writer = new \Zend\Log\Writer\Stream(ROOT_PATH.'/log/log.txt'); $logger->addWriter($writer); $this-> id = (isset($data['id'])) ? $data['id'] : null; $this-> quantidade = (isset($data['quantidade'])) ? $data['quantidade'] : null; $this-> valueProduct = (isset($data['valueProduct'])) ? $data['valueProduct'] : null; $this-> dataCriacao = (isset($data['dataCriacao'])) ? $data['dataCriacao'] : null; $this-> produto = (isset($data['produto'])) ? $data['produto'] : null; $this-> fornecedor = (isset($data['fornecedor'])) ? $data['fornecedor'] : null; //$logger-> info("\n" . __LINE__ ." " .get_class($this) . "; isValid() \n : \n". print_r($data, true)); //$logger-> info("\n" . __LINE__ ." exchangeArray " . print_r($this-> produto, true) . ";"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validator()\n {\n }", "abstract function validator();", "protected function _validate() {\n\t}", "public function validation();", "public abstract function validation();", "public function validate();", "public function validate();", "public function validate();", "public func...
[ "0.7981254", "0.7959663", "0.7785725", "0.7641097", "0.7623371", "0.7578311", "0.7578311", "0.7578311", "0.7578311", "0.7578311", "0.7578311", "0.7578311", "0.7578311", "0.7578311", "0.7578311", "0.7578311", "0.7578311", "0.75624096", "0.7551029", "0.7536881", "0.75138146", ...
0.0
-1
assigns values to template variables
function Assign($tpl_var, $value = null) { $this->_smarty->assign( $tpl_var, $value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setTemplateVariables() {}", "private function assignValues() {\n $this->setIndicators('value');\n\n $leftIndicator = $this->sugarTemplateIndicators['valueLeft'] . $this->sugarTemplateIndicators['valueSeparator'];\n $rightIndicator = $this->sugarTemplateIndicat...
[ "0.73531276", "0.6979007", "0.69401985", "0.6900659", "0.6878766", "0.6865362", "0.67124397", "0.667568", "0.66405815", "0.66303796", "0.647031", "0.6466354", "0.64172065", "0.63511574", "0.633922", "0.6322639", "0.6278896", "0.6244114", "0.621548", "0.6206936", "0.61745113",...
0.5988034
33
assigns values to template variables by reference
function AssignByRef($tpl_var, &$value) { $this->_smarty->assign_by_ref($tpl_var, $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setTemplateVariables() {}", "public function assignTemplateVariable($varName, $varValue);", "function set_var($name, $value){ // set the template variable\n\tif (func_num_args()> 2){\n\t\tif (!$this->in_vars($name)) $this->vars[$name] = array();\n\t\t$this->vars[$name][func_get_arg(2)] = $va...
[ "0.66164047", "0.6479167", "0.64723015", "0.639003", "0.6382429", "0.63544494", "0.63020086", "0.6299898", "0.62878853", "0.6169415", "0.60753727", "0.60349894", "0.5933269", "0.59175247", "0.5907796", "0.5884635", "0.58379257", "0.5804054", "0.5797334", "0.5778417", "0.57782...
0.68295246
0
appends values to template variables
function Append($tpl_var, $value=null, $merge=false) { $this->_smarty->append( $tpl_var, $value, $merge ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addVariables($tvs = array());", "public function updateVaribles(){\n foreach( $this->globalVars as $key=>$val ){\n $this->template = str_replace( '%'. $key .'%', $val, $this->template );\n }\n }", "protected function _injectTplVariable()\r\n {\r\n $oConfig ...
[ "0.6841543", "0.66357034", "0.62741214", "0.61973214", "0.6181623", "0.6126486", "0.6095243", "0.60437936", "0.60385174", "0.6025386", "0.6015647", "0.59099835", "0.58734083", "0.58561206", "0.58533704", "0.57888323", "0.5764795", "0.5722482", "0.57148093", "0.5695702", "0.56...
0.6026642
9
appends values to template variables by reference
function AppendByRef($tpl_var, &$value, $merge=false) { $this->_smarty->append_by_ref($tpl_var, $value, $merge); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addVariables($tvs = array());", "public function updateVaribles(){\n foreach( $this->globalVars as $key=>$val ){\n $this->template = str_replace( '%'. $key .'%', $val, $this->template );\n }\n }", "function AssignByRef($tpl_var, &$value)\n {\n $this->_smart...
[ "0.6383608", "0.582568", "0.5783358", "0.57092637", "0.5691141", "0.5566079", "0.5545298", "0.5543698", "0.55160135", "0.546763", "0.5465623", "0.54495597", "0.5397482", "0.5372851", "0.5364306", "0.536316", "0.5343946", "0.53392595", "0.5325619", "0.53142554", "0.53100157", ...
0.7091639
0
clear the given assigned template variable.
function ClearAssign($tpl_var) { $this->_smarty->clear_assign( $tpl_var ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clear_assign($tpl_var)\n {\n $this->clearAssign($tpl_var);\n }", "function unset_var($name){ // unset the template variable\n\tif (isset($this->vars[$name])) unset($this->vars[$name]);\n}", "public function clearVars()\r\n {\r\n $this->_smarty->clearAllAssign();\r\n ...
[ "0.7566433", "0.7191758", "0.6726413", "0.67050195", "0.6686058", "0.66438085", "0.6436306", "0.6413052", "0.634062", "0.633813", "0.6132039", "0.6110073", "0.5961733", "0.59504163", "0.59501046", "0.5922669", "0.5908307", "0.585374", "0.5843332", "0.5801497", "0.5779502", ...
0.7491993
1
Registers custom function to be used in templates
function RegisterFunction($function, $function_impl, $cacheable=true, $cache_attrs=null) { $this->_smarty->register_function($function, $function_impl, $cacheable, $cache_attrs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_function ( $name ) {\r\n $this->_twig->addFunction( $name, new Twig_Function_Function( $name ) );\r\n }", "public static function custom($function)\n {\n if (!is_callable($function)) {\n throw new InvalidArgumentException('function', 'callable');\n }\n\n ...
[ "0.70889544", "0.6898967", "0.6834505", "0.67093325", "0.66338485", "0.64302397", "0.6236422", "0.6205652", "0.6198153", "0.6128553", "0.6128553", "0.6112905", "0.60597324", "0.6020054", "0.59796673", "0.59555554", "0.59466076", "0.5932221", "0.59192514", "0.59110564", "0.589...
0.61504173
9
Registers object to be used in templates
function RegisterObject($name, object $object, $allowedMethods = array(), $blockedMethods = array()) { $this->_smarty->register_object($name, $object, $allowedMethods, true, $blockedMethods); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register($object);", "public function register();", "public function register();", "public function register();", "public function register();", "public function register();", "public function register();", "public function register();", "public function register();", "private fun...
[ "0.7495578", "0.67476374", "0.67476374", "0.67476374", "0.67476374", "0.67476374", "0.67476374", "0.67476374", "0.67476374", "0.67117363", "0.66745496", "0.65908295", "0.6569787", "0.6569787", "0.6569787", "0.6448906", "0.643982", "0.6420002", "0.63779575", "0.63400036", "0.6...
0.61263525
32
Registers block function to be used in templates
function RegisterBlock($block, $block_impl, $cacheable=true, $cache_attrs=null) { $this->_smarty->register_block($block, $block_impl, $cacheable, $cache_attrs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register_blocks() {\n\t\t}", "public function register() {\n\n if ( ! function_exists( 'register_block_type' ) ) {\n return;\n }\n\n register_block_type( 'minervakb/' . $this->ID, array(\n 'attributes' => $this->get_block_attributes(),\n ...
[ "0.7357218", "0.70124435", "0.7006146", "0.6691178", "0.66569835", "0.66340315", "0.66186035", "0.6614542", "0.6574636", "0.6563391", "0.6514545", "0.64374423", "0.63956153", "0.6329823", "0.63023216", "0.6233707", "0.6227843", "0.6223542", "0.6218015", "0.6205024", "0.619082...
0.6400015
12
Registers modifier to be used in templates
function RegisterModifier($modifier, $modifier_impl) { $this->_smarty->register_modifier($modifier, $modifier_impl); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setModifiersFromTags(): void\n {\n $hasFinalTag = count($this->getTags('final')) > 0;\n $hasProtectedTag = count($this->getTags('protected')) > 0;\n $hasPrivateTag = count($this->getTags('private')) > 0;\n $hasPublicTag = count($this->getTags('public')) > 0;\...
[ "0.60812134", "0.60806346", "0.58428794", "0.58326817", "0.5765597", "0.5507245", "0.54941803", "0.54941803", "0.54941803", "0.54941803", "0.54858977", "0.54552186", "0.5378351", "0.5375182", "0.53622687", "0.5288103", "0.52584124", "0.5245696", "0.5225494", "0.52151906", "0....
0.6727884
0
Registers a resource to fetch a template
function RegisterResource($type, $functions) { $this->_smarty->register_resource($type, $functions); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function registerResource($id, $resource);", "public function resourceTemplateCreate(Event $event){\n\n $request = $event->getParam('request');\n $operation = $request->getOperation();\n $em = $this->getServiceLocator()->get('Omeka\\EntityManager');\n\n\n if ($operation == 'cre...
[ "0.6490403", "0.59619457", "0.59231186", "0.5901292", "0.5896978", "0.5744783", "0.5728302", "0.5714195", "0.56429535", "0.56036353", "0.55760074", "0.5564926", "0.55027294", "0.54903", "0.5484976", "0.54483396", "0.5439616", "0.5429816", "0.5421999", "0.54101574", "0.5402479...
0.59629935
1
Registers a prefilter function to apply to a template before compiling
function RegisterPrefilter($function) { $this->_smarty->register_prefilter($function); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function register_prefilter($smarty, $function)\n{\n $_name = (is_array($function)) ? $function[0] : $function;\n $smarty->registered_filters['pre'][$_name] = $function;\n}", "function _add_template_loader_filters()\n {\n }", "function RegisterPostfilter($function)\n {\n $this->_smarty->r...
[ "0.7772184", "0.6464766", "0.6291857", "0.62652165", "0.6119213", "0.61075324", "0.610526", "0.59339553", "0.59259903", "0.5877378", "0.58709174", "0.58709174", "0.58709174", "0.58544", "0.57992023", "0.5778107", "0.57774925", "0.57272476", "0.568918", "0.56596994", "0.560914...
0.77226025
1
Unregisters a prefilter function
function UnregisterPrefilter($function) { $this->_smarty->unregister_prefilter($function); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function UnregisterPostfilter($function)\n {\n $this->_smarty->unregister_postfilter( $function );\n }", "function UnregisterOutputfilter($function)\n {\n $this->_smarty->unregister_outputfilter($function);\n }", "function remove_filter($hook_name, $callback, $priority = 10)\n {\n ...
[ "0.71847147", "0.6910196", "0.68760026", "0.6465871", "0.62737244", "0.61718947", "0.6135773", "0.6060782", "0.6057684", "0.60540015", "0.60170066", "0.5993051", "0.5976774", "0.59508926", "0.5862169", "0.58367765", "0.5784914", "0.5777473", "0.5769011", "0.5754283", "0.57109...
0.8121243
0
Registers a postfilter function to apply to a compiled template after compilation
function RegisterPostfilter($function) { $this->_smarty->register_postfilter($function); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function UnregisterPostfilter($function)\n {\n $this->_smarty->unregister_postfilter( $function );\n }", "public function _post_filter()\n {\n }", "function RegisterOutputfilter($function)\n {\n $this->_smarty->register_outputfilter($function);\n }", "function dacig_register_f...
[ "0.6769889", "0.67541254", "0.64160013", "0.61654174", "0.6124806", "0.6036429", "0.5968456", "0.5938088", "0.58840364", "0.5806517", "0.5777778", "0.5724347", "0.567673", "0.5592164", "0.55697477", "0.5513224", "0.5494791", "0.54361206", "0.54172826", "0.5411904", "0.5398342...
0.7855613
0
Unregisters a postfilter function
function UnregisterPostfilter($function) { $this->_smarty->unregister_postfilter( $function ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function UnregisterPrefilter($function)\n {\n $this->_smarty->unregister_prefilter($function);\n }", "function UnregisterOutputfilter($function)\n {\n $this->_smarty->unregister_outputfilter($function);\n }", "function remove_filter($hook_name, $callback, $priority = 10)\n {\n }...
[ "0.7373712", "0.7237464", "0.7090996", "0.7086772", "0.70489526", "0.6832474", "0.6512555", "0.6500213", "0.6435823", "0.6412622", "0.6264999", "0.626009", "0.625832", "0.62490124", "0.62147146", "0.6205635", "0.610849", "0.61025256", "0.6054939", "0.584667", "0.582096", "0...
0.84386104
0
Registers an output filter function to apply to a template output
function RegisterOutputfilter($function) { $this->_smarty->register_outputfilter($function); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function UnregisterOutputfilter($function)\n {\n $this->_smarty->unregister_outputfilter($function);\n }", "function output_filter($value, array $params = null) {\n return trigger_hook('output', 'filter', $params, $value);\n}", "public function register_output_filter($callback_impl, $filter_nam...
[ "0.69695884", "0.6760678", "0.6554958", "0.62653446", "0.6249732", "0.62006086", "0.58895683", "0.58121794", "0.570733", "0.5635212", "0.56115025", "0.55993056", "0.55610776", "0.55592966", "0.54478925", "0.5439415", "0.54207575", "0.54160315", "0.5382728", "0.5358419", "0.53...
0.82037807
0
Unregisters an outputfilter function
function UnregisterOutputfilter($function) { $this->_smarty->unregister_outputfilter($function); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function UnregisterPostfilter($function)\n {\n $this->_smarty->unregister_postfilter( $function );\n }", "public static function clearOutput(): void\n {\n rex_extension::register('OUTPUT_FILTER', static function (rex_extension_point $ep) {\n $ep->setSubject(false);\n });\...
[ "0.7259042", "0.7225813", "0.71747553", "0.69519657", "0.6561708", "0.6369017", "0.6265941", "0.60260963", "0.59152585", "0.5888677", "0.58497226", "0.57535046", "0.5722606", "0.56916356", "0.56542957", "0.5641386", "0.5640007", "0.5637433", "0.5625069", "0.5573695", "0.55219...
0.854554
0
load a filter of specified type and name
function LoadFilter($type, $name) { $this->_smarty->load_filter($type, $name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loadFilter($type, $name)\n {\n $this->sm->loadFilter($type, $name);\n }", "public function getFilter(string $name);", "public function filterLoad($asset) {}", "private function loadFilters()\n {\n require __DIR__.'/filters.php';\n }", "function xh_fetchFilter($filt...
[ "0.82831115", "0.66329855", "0.65270823", "0.64686245", "0.63967836", "0.6263931", "0.6214276", "0.61723316", "0.60469997", "0.59775513", "0.5914508", "0.5875603", "0.58725786", "0.58587146", "0.58570546", "0.5819037", "0.58065164", "0.5792788", "0.5751806", "0.5688672", "0.5...
0.80405194
1
clear cached content for the given template and cache id
function ClearCache($tpl_file = null, $cache_id = null, $compile_id = null, $exp_time = null) { return $this->_smarty->clear_cache($tpl_file, $cache_id, $compile_id, $exp_time); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clear_cache($template, $cache_id=null, $compile_id=null, $expire=null)\n {\n\t\tif ($cache_id) {\n\t\t\t$cache_id = $this->module . '|' . $cache_id;\n\t\t} else {\n\t\t\t$cache_id = $this->module . '|' . $this->cache_id;\n\t\t}\n // the cache ID must not end on a |\n $cache_id = preg_repl...
[ "0.7592215", "0.7096242", "0.70380956", "0.6965272", "0.6942943", "0.68620425", "0.68620425", "0.6844782", "0.6817463", "0.67836106", "0.67661357", "0.6729451", "0.65751874", "0.65235907", "0.65177006", "0.646083", "0.63989264", "0.6385183", "0.6376696", "0.6371052", "0.63564...
0.69543785
4
clear all the assigned template variables.
function ClearAllAssign() { $this->_smarty->clear_all_assign(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearVars() {\n\t\t$this->_engine->clearAllAssign();\n\t}", "public function clearVars()\r\n {\r\n $this->_smarty->clearAllAssign();\r\n $this->assign('this', $this);\r\n }", "public static function resetTemplates()\n\t{\n\t\tself::$_template_names = array();\n\t}", "funct...
[ "0.8013096", "0.77730656", "0.7324429", "0.72979766", "0.7261793", "0.72500765", "0.724541", "0.7078874", "0.69639254", "0.6915226", "0.6865664", "0.67417043", "0.67349297", "0.66941816", "0.66923666", "0.6684486", "0.6645209", "0.6611824", "0.66013736", "0.65922165", "0.6579...
0.7531891
2