query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Get arguments form route attributes
private function extractAttributes(Route $route): array { $arguments = [ 'namespace' => null, 'controller' => null, 'action' => null, 'args' => [] ]; foreach (array_keys($arguments) as $name) { $arguments[$name] = array_key_exists($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getArgs(){\n\t\t\treturn $this->matchingRoute->getParam($this->url->getLastPartOfUrl());\n\t\t}", "public function getRouteParams();", "protected function getViewArgumentsFromRoute() {\n // The code of this function is taken in part from the view page controller\n // method (Drupal\\views...
[ "0.74414504", "0.7331408", "0.7162782", "0.71134603", "0.69666344", "0.6838794", "0.6723102", "0.64822227", "0.64280057", "0.64280057", "0.63545305", "0.6306821", "0.6284238", "0.6284238", "0.6284238", "0.6284238", "0.6283856", "0.6283856", "0.6283856", "0.6283856", "0.626225...
0.6741904
6
Create a controller dispatch with provided arguments
private function createDispatch(array $arguments): ControllerDispatch { $arguments['controller'] = $this->filterName($arguments['controller']); $data = [ 'controllerClassName' => ltrim( "{$arguments['namespace']}"."\\"."{$arguments['controller']}", "\\" ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function controller()\r\n {\r\n $collector = $this->getControllerCollector();\r\n \r\n foreach (func_get_args() as $controller) {\r\n call_user_func([$collector, 'controller'], $controller);\r\n }\r\n }", "public function createController( ezcMvcRequest $reques...
[ "0.6747391", "0.6745231", "0.66545177", "0.6643778", "0.6583779", "0.6445065", "0.64262486", "0.6365146", "0.63440603", "0.6268208", "0.62662405", "0.62603784", "0.6251924", "0.62374294", "0.6217345", "0.6202858", "0.618361", "0.61825645", "0.6180855", "0.61748445", "0.615751...
0.7837791
0
Filters the controller class name
private function filterName(string $name): string { $name = str_replace(['-', '_'], ' ', $name); $words = explode(' ', $name); $filtered = ''; foreach ($words as $word) { $filtered .= ucfirst($word); } return $filtered; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function controller_class($name) {\n return str_replace('/', '_', Support_Inflector::camelize($name)) . 'Controller';\n }", "protected function controller_name($class) {\n if (substr($class, -10) == 'Controller')\n $class = substr($class, 0, -10);\n return Support_Inflector::underscore(s...
[ "0.69612956", "0.6936231", "0.69133884", "0.6862592", "0.6854327", "0.67791575", "0.66970015", "0.66307503", "0.66307503", "0.6606847", "0.65630096", "0.65108544", "0.64830035", "0.6474367", "0.64485365", "0.644106", "0.6389805", "0.6370622", "0.6349202", "0.63423467", "0.629...
0.0
-1
return parent::tableName(); // TODO: Change the autogenerated stub
public static function tableName() { return 'category'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function tableName();", "abstract public function tableName();", "public function getTableName() ;", "abstract function tableName();", "abstract public static function tableName() : string;", "public static function tableName()\n { \n }", "public function getTableName() {}", ...
[ "0.8302625", "0.8302625", "0.8217285", "0.8197948", "0.81828916", "0.80893034", "0.8055762", "0.8055762", "0.8042884", "0.80181956", "0.79507", "0.79507", "0.79507", "0.7935169", "0.7935169", "0.78988624", "0.7804104", "0.77872133", "0.77872133", "0.7774345", "0.7774345", "...
0.0
-1
/ Prepare the display components
protected function renderOutput() { // $menu = $this->getMenu(); //dd($menu); // $navigation = view(config('settings.theme').'.navigation')->with('menu',$menu)->render(); // $this->vars = array_add($this->vars,'navigation',$navigation); // if($this->contentRightBar) { // $rightBar = view(co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function prepareRendering() {}", "public function __construct(){\n // 表示部分で使うオブジェクトを作成\n $this->initDisplayObj();\n }", "public function __construct() {\n // 表示部分で使うオブジェクトを作成\n $this->initDisplayObj();\n }", "function init() {\n\t\t\t$this->showHeaders();\n\n\t\t\t...
[ "0.7091118", "0.6887432", "0.687508", "0.6731369", "0.66677177", "0.65562993", "0.6517842", "0.64948046", "0.64781326", "0.6380909", "0.63737863", "0.6319885", "0.6249163", "0.6242524", "0.6183418", "0.61748147", "0.6170796", "0.61700994", "0.6144558", "0.6144294", "0.6141457...
0.0
-1
Register the service provider.
public function register() { App::after(function($request, $response) { $turbo = new Turbo; if ($turbo->isPjax()) { if (is_a($response, 'Illuminate\Http\Response')) { // Extract the body from the response $content = (string)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register()\n {\n $this->registerServices();\n }", "public function register()\n {\n // service 由各个应用在 AppServiceProvider 单独绑定对应实现\n }", "public function register()\n {\n //\n if (env('APP_DEBUG', false) && $this->app->isLocal()) {\n $this->a...
[ "0.71774215", "0.7054453", "0.6968271", "0.69677705", "0.6952019", "0.6931252", "0.6926226", "0.6918423", "0.6899592", "0.6895726", "0.6894278", "0.68906504", "0.68906504", "0.6883112", "0.6872877", "0.6865099", "0.68640506", "0.68627584", "0.68624485", "0.68491566", "0.68236...
0.0
-1
/ vai pegar o diretorio e conctenar com uma barra
function carregarArquivoDaClasse($nomeDaClasse) { // echo "$nomeDaClasse.<br>"; //pra mostrar o nome da classe // echo APLICACAO_RAIZ . str_replace('\\', '/', $nomeDaClasse) . '.php<br>'; require_once APLICACAO_RAIZ . str_replace('\\', '/', $nomeDaClasse) . '.php'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buscar($dir,&$archivo_buscar) \n{ // Funcion Recursiva \n // Autor DeeRme \n // http://deerme.org \n if ( is_dir($dir) ) \n { \n // Recorremos Directorio \n $d=opendir($dir); \n while( $archivo = readdir($d) ) \n { \n if ( $archivo!=\".\" AND...
[ "0.6627353", "0.6205105", "0.616723", "0.61662024", "0.6151188", "0.61188716", "0.605855", "0.60457575", "0.6029456", "0.602386", "0.59780496", "0.5905318", "0.58719784", "0.5846262", "0.58400464", "0.5830163", "0.58189213", "0.5818728", "0.5810488", "0.5809075", "0.5806266",...
0.60248816
9
required by \ElggEntity when setting the owner/container
public function setUp() { _elgg_services()->setValue('session', \ElggSession::getMock()); $this->obj = $this->getMockBuilder('\ElggUpgrade') ->setMethods(null) ->getMock(); $this->obj->_callable_egefps = array($this, 'mock_egefps'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ownerClass()\n\t{\n\t\t$this->m_owner = array('pkowner_id'=>\"\", 'organization_name'=>\"\", 'owner_name'=>\"\", 'owner_address'=>\"\", 'owner_phone_bus'=>\"\", 'owner_phone_res'=>\"\", 'owner_fax'=>\"\", 'email'=>\"\", 'foip'=>\"\", 'owner_type'=>\"\"); \n\t}", "public function setOwner($owner)\n {\...
[ "0.6673393", "0.65395683", "0.64460945", "0.63913244", "0.63568753", "0.63568753", "0.62809", "0.626706", "0.626706", "0.626608", "0.626608", "0.626608", "0.6264501", "0.61453485", "0.61453485", "0.61453485", "0.59189296", "0.58522445", "0.5807902", "0.5784922", "0.5742636", ...
0.0
-1
return sprintf('Type: %d', get_called_class()::SHAPE_TYPE);
public static function getTypeDescription(): string { $class = get_called_class()::SHAPE_TYPE; return <<<EOF Type: $class EOF; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_type() { return substr( strrchr( get_called_class(), '\\\\' ), 1 ); }", "private function get_type() {\n\n\t}", "public function shape(): string\n\t{\n\t\treturn \"Rectangle\";\n\t}", "public function type_name(){\r\n \r\n //sends back the name of the class running\r\n ...
[ "0.678919", "0.65449953", "0.65407544", "0.65268636", "0.64523995", "0.6403081", "0.64014417", "0.63031447", "0.62598175", "0.625583", "0.6250725", "0.61975014", "0.6178347", "0.61620945", "0.61575496", "0.61400235", "0.61400235", "0.6136779", "0.61318934", "0.61282885", "0.6...
0.68682086
0
Register the package routes.
private function registerRoutes() { Route::group($this->routeConfiguration(), function () { $this->loadRoutesFrom(__DIR__.'/Http/routes.php'); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register_routes()\n {\n }", "public function register_routes()\n {\n }", "public function register_routes()\n {\n }", "public function register_routes()\n {\n }", "public function register_routes()\n {\n }", "public fun...
[ "0.7811851", "0.7811813", "0.7811813", "0.7811813", "0.7811813", "0.7811813", "0.7811813", "0.7811813", "0.7811813", "0.7811813", "0.7811813", "0.7811813", "0.7811813", "0.7811813", "0.7811813", "0.7811813", "0.7811813", "0.7811813", "0.7811813", "0.7811813", "0.7811813", "...
0.73670006
42
Get the SmsUp route group configuration array.
private function routeConfiguration() { return [ 'domain' => null, 'namespace' => 'SquareetLabs\LaravelSmsUp\Http\Controllers', 'prefix' => 'smsup' ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getModuleRoutes()\n {\n return isset($this->config['module']['routes']) ? $this->config['modules']['routes'] : [];\n }", "private function channelRouteConfiguration(): array\n {\n return [\n 'domain' => config('messenger.routing.channels.domain'),\n 'p...
[ "0.6031849", "0.58362293", "0.56833667", "0.55728996", "0.5564905", "0.5552051", "0.5552051", "0.549341", "0.5482768", "0.54676056", "0.5458091", "0.5456056", "0.54407257", "0.5424809", "0.5396576", "0.5396225", "0.5386024", "0.53809965", "0.5367173", "0.5355695", "0.53519416...
0.6102408
0
Init and hook in the integration.
public function __construct() { global $woocommerce; $this->id = 'integration-demo'; $this->method_title = __( 'Integration Demo', PLUGIN_TXT ); $this->method_description = __( 'An integration demo to show you how easy it is to extend WooCommerce.', PLUGIN_TXT ); // Load the settings. ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function init() {\n\n // register plugin controller under /gallery/\n DatawrapperHooks::register(DatawrapperHooks::GET_PLUGIN_CONTROLLER, array($this, 'process'));\n\n DatawrapperHooks::register(DatawrapperHooks::ALTERNATIVE_SIGNIN, array($this, 'showTwitterSignInButton'));\n\n $...
[ "0.73466086", "0.7142319", "0.7132424", "0.7132424", "0.7132424", "0.7132424", "0.7131661", "0.7131661", "0.7131661", "0.7131661", "0.7131661", "0.7131661", "0.71309155", "0.71309155", "0.7108623", "0.7004135", "0.6973049", "0.6973049", "0.69557065", "0.69180995", "0.6912076"...
0.70193917
15
Initialize integration settings form fields.
public function init_form_fields() { $this->form_fields = array( 'api_key' => array( 'title' => __( 'API Key', PLUGIN_TXT ), 'type' => 'text', 'description' => __( 'Enter with your API Key. You can find this in "User Profile" drop-down (top right corner) > API Keys.', PLU...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function init_form_fields() {\n\t\t$this->form_fields = include( 'settings-xendit.php' );\n\t}", "public function init_form_fields() {\n\t\t$this->form_fields = include( 'data/data-settings.php' );\n\t}", "public function init_settings() {\n // Load form_field settings\n $this->set...
[ "0.7855228", "0.7790488", "0.7708803", "0.74731517", "0.7387096", "0.7244973", "0.72300494", "0.72235256", "0.7203678", "0.71672106", "0.7128408", "0.7102611", "0.70766985", "0.707528", "0.7049004", "0.7048586", "0.7020751", "0.7016585", "0.69959944", "0.69361174", "0.6924499...
0.71847093
9
Display a listing of the resource.
public function index() { //1 $companies = Company::all(); return view('admin.companies.index',compact('companies')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create() { // return view('admin.companies.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(CompanyRequest $request) { // Company::create($request->all()); Session::flash('success','Companie adugat cu succes'); return redirect()->route('companies.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.7286258", "0.71454436", "0.7132821", "0.6640289", "0.6621105", "0.6566493", "0.65255576", "0.65087926", "0.6448317", "0.63752604", "0.63736314", "0.6365631", "0.6365631", "0.6365631", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0....
0.0
-1
Display the specified resource.
public function show(Company $company) { // }
{ "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(Company $company) { // return view('admin.companies.edit',compact('company')); }
{ "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, Company $company) { // $company->update($request->all()); Session::flash('success','Compania modificata cu succes'); return redirect()->route('companies.index'); }
{ "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(Company $company) { // $company->delete(); Session::flash('success','Compania a fost stearsa'); return redirect()->back(); }
{ "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
List of Related Episodes.
public static function accessorRelatedEpisodes($return, $method_name, $episode, $post, $args = []) { $episodes = []; foreach (EpisodeRelation::get_related_episodes($episode->id, ['only_published' => true]) as $related_episode) { $episodes[] = new Template\Episode(Model\Episode::find_by_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function episodes() {\n return $this->hasMany(Episode::class);\n }", "public function episodes()\n {\n return $this->hasMany('App\\Models\\Episode');\n }", "public function episodes()\n {\n return $this->hasMany('App\\Episode','tvmazeid','tvmazeid');\n }", "public f...
[ "0.73645663", "0.7239512", "0.6712023", "0.6679537", "0.6378966", "0.6341266", "0.6295791", "0.60210484", "0.60062057", "0.5887623", "0.5808207", "0.5715674", "0.5563025", "0.5551839", "0.55122566", "0.5471275", "0.54391813", "0.5346677", "0.5346677", "0.5346677", "0.5346677"...
0.5803866
11
This function is the stn.
public static function start() { require_once dirname ( __FILE__ ) . '/MenuElement.php'; require_once dirname ( __FILE__ ) . '/Service.php'; $services = \tuts\Service::getListOfTypeService ( array ( 'forAutocompletion' => false ) ); // echo ' 41: <pre>';var_dump($services); echo '</pre>'; $block...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function serch()\n {\n }", "public function nadar()\n {\n }", "public function helper()\n\t{\n\t\n\t}", "function lcs()\n {\n }", "public function temporality();", "final function velcom(){\n }", "public function emitirSom()\n {\n }", "public function og...
[ "0.6605253", "0.6103045", "0.57836616", "0.5660675", "0.5651666", "0.5637023", "0.5633314", "0.55806845", "0.55149317", "0.543905", "0.5396693", "0.5347013", "0.5345173", "0.5326002", "0.5293218", "0.5279829", "0.52611876", "0.52491206", "0.52416015", "0.52251226", "0.5222697...
0.0
-1
Display a listing of the resource.
public function index() { $operacion = Operacion::all(); return $this->showAll($operacion); }
{ "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
Store a newly created resource in storage.
public function store(Request $request) { $rules = [ 'operacion'=>'required', ]; $this->validate($request,$rules); $campos = $request->all(); $operacion = Operacion::create($campos); return $this->showOne($operacion,201); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.7286258", "0.71454436", "0.7132821", "0.6640289", "0.6621105", "0.6566493", "0.65255576", "0.65087926", "0.6448317", "0.63752604", "0.63736314", "0.6365631", "0.6365631", "0.6365631", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0....
0.0
-1
Display the specified resource.
public function show(Operacion $operacione) { return $this->showOne($operacione); }
{ "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
Update the specified resource in storage.
public function update(Request $request, Operacion $operacion) { if($request->has('operacion')) { $operacion->operacion = $request->operacion; } if($request->has('descripcion')) { $operacion->descripcion = $request->descripcion; } if(...
{ "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(Operacion $operacion) { // }
{ "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
$dsn = "mysql:host =". $this>host . ";dbname = ". $this>dbname;
public function __construct(){ try{ $this->db = new PDO('mysql:host=localhost;dbname=ccj','root',''); }catch(PDOException $e){ $e->getMessage(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function buildDSN()\n {\n return \"mysql:host=$this->host;dbname=$this->dbname;charset=$this->charset\";\n }", "function __construct() {\r\n// \t\t$this->connection = mysql_connect($this->host,$this->username,$this->password,$this->dbname);\r\n// echo $this->host + \"zxdgfzxfg\";\r\n// echo...
[ "0.73361707", "0.72940654", "0.72549796", "0.7231859", "0.72005224", "0.72003317", "0.71967", "0.71333915", "0.71325946", "0.71273994", "0.7079833", "0.70784134", "0.7069399", "0.7046157", "0.7037754", "0.70239943", "0.6975812", "0.6957836", "0.6948587", "0.69426465", "0.6940...
0.0
-1
Display the specified resource.
public function show($id) { $user = User::find($id); if ( is_null($user) ) { return $this->sendError('User not found.'); } return $this->sendResponse(new UserResource($user), 'User retrieved successfully.'); }
{ "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
Update the specified resource in storage.
public function update(Request $request, $id) { $input = $request->all(); $user = Auth::user(); $validator = Validator::make($input, [ 'first_name' => 'required', 'last_name' => 'required', 'phone_number' => 'required', 'email' =>...
{ "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
Run the database seeds.
public function run() { $departamento = App\Http\Controllers\Departamento::first(); DB::table('usuario')->delete(); DB::table('usuario')->insert([ 'nm_usuario' => "Administrador", 'nm_email' => "adm@sig.com.br", 'nm_senha' => "senhaadm", ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n fact...
[ "0.8013876", "0.79804534", "0.7976992", "0.79542726", "0.79511505", "0.7949612", "0.794459", "0.7942486", "0.7938189", "0.79368967", "0.79337025", "0.78924936", "0.78811055", "0.78790957", "0.78787595", "0.787547", "0.7871811", "0.78701615", "0.7851422", "0.7850352", "0.78414...
0.0
-1
verify_logistic Check if delivery address is attended by logistics
public function verify_logistic() { # Clear the delivery address saved in session $this->session->unset_userdata('delivery_address_id'); # Check if the address is a user default address or cames from the delivery address list if( $this->input->post('delivery_address_id') == 'default' ) { $data ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isValidForDelivery();", "public function test_should_deliver_status() {\n\n\t\t$webhook = LLMS_REST_API()->webhooks()->create( array(\n\t\t\t'delivery_url' => 'https://mock.tld',\n\t\t\t'topic' => 'student.created',\n\t\t) );\n\n\t\t// Inactive.\n\t\t$this->assertFalse( LLMS_Unit_Test_Util::call_...
[ "0.55464864", "0.51403135", "0.5114555", "0.5101803", "0.5084732", "0.5070056", "0.503418", "0.503383", "0.5028527", "0.49749124", "0.49424875", "0.48795176", "0.48772293", "0.48682237", "0.48483664", "0.48474276", "0.4845719", "0.48379055", "0.48240072", "0.48130557", "0.479...
0.67062056
0
The subscriber classes to register.
public function boot() { parent::boot(); // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function registerSubscribers()\n {\n $extensions = $this->dataGridFactory->getExtensions();\n\n foreach ($extensions as $extension) {\n $extension->registerSubscribers($this);\n }\n }", "public static function registerListeners()\n {\n static::creating('Wil...
[ "0.6959309", "0.68337286", "0.677041", "0.6584533", "0.6566439", "0.65212345", "0.65051955", "0.6474598", "0.64124864", "0.63344884", "0.62822944", "0.61335224", "0.6133493", "0.6128859", "0.61268526", "0.61158365", "0.60067147", "0.5923109", "0.5922395", "0.5919775", "0.5904...
0.0
-1
/ACTIVATING SINGLE ADMIN /DECLINING SINGLE ADMIN
public function declineSingle(){ if(isset($_SESSION['admin_email'])){ $this->model("AdminApproveModel"); if(isset($_POST['admin_decline'])){ $this->sanitizeString($_POST['admin_decline']); $id = $this->sanitizeString($_POST['id']); AdminApproveModel::where('id', $id)->delete(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function requireAdmin(){\n if( ! Authentifiacation::isAdmin()){\n Authentifiacation::rememberRequestedPage();\n Flash::addMessage('You need to have admin status to access this page', Flash::INFO);\n self::redirect('/login/new');\n }\n }", "function Admin_authet...
[ "0.71095085", "0.7026808", "0.7010578", "0.6986166", "0.69407046", "0.69147134", "0.67336965", "0.6733146", "0.66202265", "0.6595781", "0.65949076", "0.6579862", "0.65641105", "0.65605295", "0.65589577", "0.6549584", "0.65375936", "0.6537554", "0.6527101", "0.6499236", "0.646...
0.0
-1
/DECLINING SINGLE ADMIN /ACTIVATING MULTIPLE ADMIN
public function approveMultiple(){ if(isset($_SESSION['admin_email'])){ $this->model("AdminApproveModel"); if(isset($_POST['admin_approve_all'])){ $approve_all = $this->sanitizeString($_POST['admin_approve_all']); $id = $this->sanitizeString($_POST['id']); $check_all = $this->sanitizeString($_POST['ad...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function action_adminAccount()\n\t{\n\t\tglobal $txt, $db_type, $db_connection, $databases, $incontext, $db_prefix, $db_passwd, $webmaster_email;\n\t\tglobal $db_persist, $db_server, $db_user, $db_port;\n\t\tglobal $db_type, $db_name, $mysql_set_mode;\n\n\t\t$incontext['sub_template'] = 'admin_account';\n\...
[ "0.6450845", "0.643702", "0.64239943", "0.6396119", "0.6369838", "0.63427883", "0.6240558", "0.6168838", "0.61657673", "0.616491", "0.6155982", "0.6105694", "0.6054148", "0.60504663", "0.60470927", "0.6045934", "0.6024513", "0.6014664", "0.60117465", "0.6006739", "0.60036343"...
0.57161516
70
/ACTIVATING MULTIPLE ADMIN /DECLINING MULTIPLE ADMIN
public function declineMultiple(){ if(isset($_SESSION['admin_email'])){ $this->model("AdminApproveModel"); if(isset($_POST['admin_decline_all'])){ $approve_all = $this->sanitizeString($_POST['admin_decline_all']); $id = $this->sanitizeString($_POST['id']); $check_all = $this->sanitizeString($_POST['adm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function action_adminAccount()\n\t{\n\t\tglobal $txt, $db_type, $db_connection, $databases, $incontext, $db_prefix, $db_passwd, $webmaster_email;\n\t\tglobal $db_persist, $db_server, $db_user, $db_port;\n\t\tglobal $db_type, $db_name, $mysql_set_mode;\n\n\t\t$incontext['sub_template'] = 'admin_account';\n\...
[ "0.65529096", "0.64864045", "0.6442194", "0.64154714", "0.6401228", "0.6386811", "0.63789535", "0.6328153", "0.631584", "0.62842196", "0.6272429", "0.6272332", "0.6265186", "0.624716", "0.6241716", "0.6233676", "0.62327284", "0.6230447", "0.6224395", "0.6224395", "0.6205569",...
0.0
-1
$profile: the profile string
public function createUser($name, $pass, $profile, array $extra = []) { $users = $this->getStore(); // find unique index (next natural index) $max = 0; foreach ($users as $k => $v) { if (is_integer($k) && $k > $max) { $max = $k; } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function profile(): string\n {\n if ($this->profile) {\n return $this->profile;\n }\n\n return $this->app['opx.profile'] ?? 'default';\n }", "public function __construct($profile)\n {\n $this->profile = $profile;\n }", "public function setProfileInfo($p...
[ "0.6936708", "0.6620254", "0.66049176", "0.6582227", "0.6400141", "0.63510674", "0.63477474", "0.6312965", "0.6247962", "0.6231384", "0.62196213", "0.6213184", "0.6186457", "0.6171319", "0.6155258", "0.6139497", "0.6131965", "0.6080451", "0.6073175", "0.60528034", "0.60528034...
0.0
-1
vypocte cenu bez DPH
public function calculate_price_without_vat($price_with_vat, $vat_rate = FALSE) { if ($this->loaded()) { $coeff = $this->coefficient_without_vat; } else { $coeff = round($vat_rate / (100 + $vat_rate), 4); } $vat = $price_with_vat * $coeff; return round($price_with_vat - $vat, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function AggiornaPrezzi(){\n\t}", "public function valorpasaje();", "public function baseCjenovnik()\n\t{\n\t\t\n\t\t$p = array();\n\t\t$this->red = Cjenovnik::model()->findAll(\"id>0\");\n $this->red1 = TekstCjenovnik::model()->findAllByAttributes(array('jezik'=>Yii::app()->session[\"lang\"]));\...
[ "0.67696047", "0.6603877", "0.64166373", "0.63255084", "0.62057585", "0.6201147", "0.61908066", "0.61804223", "0.61725456", "0.61657244", "0.6164894", "0.616436", "0.60838443", "0.6070053", "0.60449684", "0.60445213", "0.60096365", "0.59895116", "0.5977189", "0.59762317", "0....
0.0
-1
vypocte cenu s DPH
public function calculate_price_with_vat($price_without_vat, $vat_rate = FALSE) { if ($this->loaded()) { $coeff = $this->coefficient_with_vat; } else { $coeff = round($vat_rate->value / 100, 2); } $vat = $price_without_vat * $coeff; return round($price_without_vat + $vat, 2); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function AggiornaPrezzi(){\n\t}", "final function velcom(){\n }", "public function hapus_toko(){\n\t}", "public function extra_voor_verp()\n\t{\n\t}", "public function baseCjenovnik()\n\t{\n\t\t\n\t\t$p = array();\n\t\t$this->red = Cjenovnik::model()->findAll(\"id>0\");\n $this->red1 ...
[ "0.6281511", "0.6240328", "0.622835", "0.620833", "0.6160221", "0.604297", "0.59489053", "0.58636576", "0.58580315", "0.58020836", "0.57684654", "0.57603705", "0.57461154", "0.5734437", "0.5728496", "0.5725108", "0.5671108", "0.56310016", "0.5624734", "0.5615135", "0.559837",...
0.0
-1
recursive function for getting field info and related tables TODO: verify we can't get in an infinte loop TODO: need to but the query in a try/catch
public function inspectDB($table,$depth){ //check the session //if(!isset($_SESSION[$table])) $fields = array(); $related = array(); $sql = "DESCRIBE $table"; $stmt = $this->_pdo->prepare($sql); $stmt->execute(); while($qobj = $stmt->fetch()){ $fields[$qobj->Field] = array("ty...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getReferencedTableData($entity)\n{\n $tables = array();\n foreach($entity['fields'] as $f){\n $fk = getFK($entity['tablename'], $f['name']);\n \n $referenced_table = \"\";\n $title_field = \"\";\n $likely_page = \"\";\n // Get the referenced table and the ti...
[ "0.635392", "0.6318603", "0.6258989", "0.61585826", "0.60921466", "0.6032159", "0.5966981", "0.5910059", "0.5909886", "0.58679664", "0.58073854", "0.5769454", "0.57187", "0.5684303", "0.5678846", "0.5625253", "0.56190884", "0.5594342", "0.5546417", "0.5542956", "0.5542956", ...
0.6012319
6
table is the db table qData is query data including field and value obj is the class instance from api.php
public function get_request($obj,$qData){ $response = array(); //in the event that an empty obj gets passed in if(empty($obj)) return $response; //build the sql query $sql = "SELECT * FROM $obj->table"; $first = true; foreach($qData as $key => $val){ if($first){ $sql .= " WHERE $key = :$key"; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getData($objData) {\n \t\t$start \t= 'SELECT ';\n \t\t$joinPart = $wherePart = $groupBy= $orderBy ='';\n \t\t// field validation\n \t\tif($objData->fields) \t\t$fieldPart \t= $objData->fields;\n \t\telse \t\t\t\t\t\t$fieldPart \t= ' * ';\n \t\t\n \t\t// table specification\n \t\tif($objData->table)\t\t\t$...
[ "0.61773235", "0.61346346", "0.6022659", "0.58992887", "0.58486164", "0.58401656", "0.58184034", "0.5818092", "0.5797533", "0.5787485", "0.57364666", "0.57317257", "0.5715858", "0.56953174", "0.56577474", "0.5655057", "0.5655057", "0.5655057", "0.564691", "0.56062585", "0.559...
0.5822777
6
Create token password reset
public function request(RequestPasswordReset $request) { $user = User::where('email', $request->validated())->first(); if (!$user) return response()->error('Email tidak ditemukan', StatusCode::UNPROCESSABLE_ENTITY); $resetPassword = PasswordReset::updateOrCreate( ['email' => $use...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function generatePasswordResetToken()\n {\n $this->password = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->reset_token = \"P\" . Yii::$app->security->generateRandomString() . '_' . time();\n }", "pu...
[ "0.80527616", "0.79847896", "0.79786503", "0.7936979", "0.7891862", "0.7882117", "0.787267", "0.787267", "0.787267", "0.7861713", "0.78612155", "0.78612155", "0.78612155", "0.78612155", "0.78612155", "0.78612155", "0.78612155", "0.78612155", "0.78612155", "0.78612155", "0.786...
0.0
-1
Find token password reset
public function find($token) { $resetPassword = PasswordReset::where('token', $token)->first(); if (!$resetPassword) return response()->error('Reset password token is invalid!'); if (Carbon::parse($resetPassword->updated_at)->addMinutes(720)->isPast()) { $resetPassword->delete()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resetToken() {\n $token = $this->generateSecureToken(8);\n\n // Check if that there isn't already a Password Reset with the same token\n while(PasswordReset::where('token', $token)->count() != 0) {\n // If there is already a Password Reset with the same token, genera...
[ "0.7536813", "0.7254049", "0.7175221", "0.71548027", "0.71306026", "0.71240515", "0.7086724", "0.69619274", "0.69555783", "0.6938892", "0.6935091", "0.69178563", "0.68704724", "0.68521863", "0.6838332", "0.6773534", "0.6748277", "0.674786", "0.6722352", "0.66963625", "0.66628...
0.66141355
23
Checks if database connection is opened and open it if not
private function databaseConnection() { // connection already opened if ($this->db_connection != null) { return true; } else { // create a database connection, using the constants from config/config.php try { // Generate a database connecti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _open() {\n\t\tif (!$this->DbConnection) {\n\t\t\t$db = &GetDatabase();\n\t\t\tif (!$db) return false;\n\t\t\t$this->DbConnection = &$db;\n\t\t}\n\t\treturn true;\n\t}", "private function checkOpenDB(){\r\n if($this->connected){\r\n return true;\r\n }\r\n \r\n //No ...
[ "0.8270589", "0.80481344", "0.76318526", "0.7609206", "0.759871", "0.7516326", "0.745048", "0.7399882", "0.736889", "0.73644257", "0.7345927", "0.7337658", "0.7311356", "0.7285169", "0.72412014", "0.7141178", "0.71143585", "0.71004367", "0.70963025", "0.7088647", "0.703881", ...
0.7083101
20
checks the id/verification code combination and set the user's activation status to true (=1) in the database
public function get_info() { // if database connection opened if ($this->databaseConnection()) { // try to update user with specified information $query_user = $this->db_connection->prepare('SELECT * FROM directory WHERE username = :user_name AND id = :id'); $quer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function activate_user()\n{\n if($_SERVER['REQUEST_METHOD'] == \"GET\"){\n if(isset($_GET['email'])){\n $email=clean($_GET['email']);\n $validation_code=clean($_GET['code']);\n $sql=\"SELECT id FROM users WHERE email='\".escape($_GET['email']).\"' AND validation_code='\"....
[ "0.72398067", "0.70517457", "0.70087266", "0.70011276", "0.69078094", "0.6879758", "0.67924815", "0.67737544", "0.6770032", "0.6704799", "0.6689967", "0.6659004", "0.659927", "0.6586354", "0.65828675", "0.6580857", "0.65530944", "0.65491647", "0.6547932", "0.65355414", "0.653...
0.0
-1
Static function to calculate age with a birth date
static function calculateAge($birthDate) { if (empty($birthDate)) { return 0; } $birthDay = new DateTime($birthDate); $toDay = new DateTime(date('Y-m-d')); $dateDiff = $toDay->diff($birthDay); $age = $dateDiff->y; return $age; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ageCalculator($dob)\n{\n\tif(!empty($dob))\n\t{\n\t\t$birthdate = new DateTime($dob);\n\t\t$today = new DateTime('today');\n\t\t$age = $birthdate->diff($today)->y;\n\t\treturn $age;\n\t}\n\telse\n\t{\n\t\treturn 0;\n\t}\n}", "function get_age($date_of_birth) //day-month-year\n\t\t{\n\t\t\t$bdate = exp...
[ "0.83211786", "0.82315415", "0.8100732", "0.8084519", "0.80513287", "0.80364805", "0.79857326", "0.793816", "0.7904201", "0.79014033", "0.78561753", "0.78420603", "0.7822622", "0.7777678", "0.77693295", "0.7754276", "0.77417105", "0.7737767", "0.7717078", "0.7714205", "0.7689...
0.7704629
20
Static function to retrieve custom value with entity id and field label
static function getSingleCustomValue( $entityId, $customFieldLabel, $entityType = "Contact") { $value = ''; if (empty($entityId) || empty($customFieldLabel)) { return $value; } $apiParams = array( 'version' => 3, 'entity_id' => $entityId, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getValue(ContentEntityInterface $entity, $field);", "function _doesoe_theme_entity_get_value($entity_type, $entity, $field) {\n if (empty($entity)) {\n return NULL;\n }\n $entity_w = entity_metadata_wrapper($entity_type, $entity);\n if (isset($entity_w->{$field}) && !empty($entity_w->{$fie...
[ "0.6889181", "0.65778357", "0.6566542", "0.6518875", "0.6511518", "0.6479505", "0.6430689", "0.63849026", "0.6360047", "0.6330542", "0.62819505", "0.62806946", "0.6268203", "0.6244071", "0.6235161", "0.62296283", "0.62207985", "0.619831", "0.6186993", "0.61814636", "0.6163507...
0.7473264
0
Static function to retrieve activity type id for Enkelvoude Hulpvraag
static function getEnkelvoudigeHulpvraagTypeId() { $actTypeId = 0; $apiParams = array( 'version' => 3, 'option_group_id' => 2, 'label' => "Enkelvoudige Hulpvraag" ); $actType = civicrm_api('OptionValue', 'Getsingle', $apiPara...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function activityActorId();", "public function getActivityId();", "abstract protected function get_typeid();", "public function get_type()\n {\n return self::$_id;\n }", "public function typeId()\n {\n return config('entities.ids.' . $this->type);\n }", "public function g...
[ "0.62448317", "0.62155926", "0.6198939", "0.6143468", "0.6130929", "0.6107719", "0.6035379", "0.6030141", "0.60049987", "0.59926337", "0.5992089", "0.59343773", "0.5855107", "0.5843588", "0.5843307", "0.5827969", "0.5824882", "0.58170307", "0.5788696", "0.57830644", "0.574719...
0.69880265
0
Static function to retrieve the first contact date for a customer first contact date means the first date of any case or activity Enkelvoudige Hulpvraag
static function getContactFirstDate($contactId) { $firstContactDate = ''; if (empty($contactId)) { return $firstContactDate; } /* * retrieve first date for contact for activities */ $apiParams = array( 'version' => 3, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFirstDate()\n {\n $query = \"SELECT MIN(stat_date) AS first FROM \" . $this->tableName;\n $data = $this->SelectData($query, PDO::FETCH_ASSOC);\n\n if (false === $data) {\n return false;\n } else {\n return $data[0]['first'];\n }\n }"...
[ "0.66933733", "0.63704073", "0.63404536", "0.63132966", "0.6234883", "0.60384035", "0.603287", "0.6024802", "0.5996857", "0.5894629", "0.58405346", "0.58069503", "0.5731643", "0.56996036", "0.5659405", "0.5656215", "0.56338644", "0.5597858", "0.5568438", "0.55662316", "0.5552...
0.7987506
0
Static function to get number of Enkelvoudige Hulpvraag for contact
static function getCountEnkelvoudigeHulpvraag($contactId) { $countAct = 0; $apiParams = array( 'version' => 3, 'contact_id'=> $contactId ); $actTypeId = self::getEnkelvoudigeHulpvraagTypeId(); $apiActs = civicrm_api('Activity', 'Get', $apiParams); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHouseNumber();", "public function getTotalHT(){\n\t\t$HT=0;\n\t\tforeach ($this->_leslignes->getAll() as $uneligne){\n\t\t\t$HT+=$uneligne->getTotal();\n\t\t}\n\t\treturn $HT;\n\t}", "public function getNumber()\n {\n foreach ($this->getGame()->getLegs() as $idx=>$leg) {\n ...
[ "0.6399133", "0.60220885", "0.5798944", "0.5786423", "0.5723072", "0.5722873", "0.5702131", "0.5684648", "0.5679618", "0.56184244", "0.56121504", "0.5603582", "0.5578582", "0.55683124", "0.5556056", "0.5549493", "0.55044395", "0.55020386", "0.5490096", "0.548095", "0.54788834...
0.62961245
1
Static function to get number of Cases for contact
static function getCountCases($contactId) { $countCases = 0; $apiParams = array( 'version' => 3, 'client_id' => $contactId ); $apiCaseCount = civicrm_api('Case', 'Getcount', $apiParams); if (!isset($apiCaseCount['is_error'])) { $cou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function countPersonContacts()\n {\n\n $db = $this->getDb();\n \n $sql = <<<SQL\nSELECT\n count(contact.rowid) as number\nFROM\n core_contact_r contact\nJOIN core_person_r person\n ON contact.id_person = person.rowid\nWHERE person.type = 1;\n \nSQL;\n \n return $db->select(...
[ "0.6418083", "0.63452077", "0.6336976", "0.6270917", "0.61164045", "0.60708827", "0.6052671", "0.6009567", "0.5981927", "0.5959526", "0.5836256", "0.5813202", "0.5774399", "0.57698685", "0.5769089", "0.5766176", "0.57283413", "0.5704701", "0.56846887", "0.5683003", "0.5654920...
0.6989548
0
Static function to calculate a percentage
static function calculatePercentage($aantal, $totaal) { return round(($aantal / $totaal) * 100,1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAmountAsPercentage();", "public function getPercent()\n {\n return $this->helper->getPercent();\n }", "public function getPercentage()\n {\n return $this->percentage;\n }", "public function calculateTotalPercentage()\n {\n return round((($this->totalcove...
[ "0.77726406", "0.7378893", "0.7255446", "0.70780504", "0.7057557", "0.70326245", "0.7001085", "0.699023", "0.6968947", "0.69631743", "0.69230354", "0.6915114", "0.68936694", "0.68877536", "0.6887708", "0.6875989", "0.67683953", "0.67548496", "0.6753149", "0.67349285", "0.6728...
0.7034966
5
Static function to check if case has activities in period
static function checkActivityInCase($caseId, $periodFrom, $periodTo) { $activityInCase = false; if (empty($caseId)) { return $activityInCase; } $apiParams = array( 'version' => 3, 'case_id' => $caseId ); $apiCase = civicrm_api('Ca...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function isActivatedViaEndDateAndTime() {}", "protected function isActivatedViaStartDateAndTime() {}", "protected function isWithin() {\n if(isset($this->listeners['within']) && \n $this->start_time instanceof \\DateTime &&\n $this->since_start instanceof \\Da...
[ "0.6129946", "0.608839", "0.59263957", "0.57652843", "0.57059205", "0.56851333", "0.5671095", "0.5654171", "0.564009", "0.56324595", "0.55978054", "0.55362135", "0.5536183", "0.5535323", "0.55160743", "0.5508851", "0.54894686", "0.54801834", "0.5477013", "0.54604495", "0.5460...
0.6769645
0
Returns DB table name for entity.
public static function getTableName() { return 'b_disk_onlyoffice_document_info'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTableName(): string\n {\n return $this->getEntityDao()->getTableName();\n }", "public static function getTableName()\n {\n return _DB_PREFIX_ . self::$definition['table'];\n }", "public static function getTableName()\n {\n return self::getDatabaseName() . ...
[ "0.8195651", "0.7825781", "0.77575964", "0.77522725", "0.7682072", "0.7679911", "0.7655929", "0.7643668", "0.7620185", "0.7599329", "0.7584867", "0.7509939", "0.7507627", "0.74633884", "0.7452192", "0.74252176", "0.74170417", "0.7393153", "0.7393153", "0.7393153", "0.73864293...
0.0
-1
Returns entity map definition.
public static function getMap() { return [ (new StringField('EXTERNAL_HASH')) ->configurePrimary() ->configureAutocomplete() ->configureSize(128) , new IntegerField('OBJECT_ID'), new IntegerField('VERSION_ID'), (new IntegerField('OWNER_ID')) ->configureRequired() , (new DatetimeF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getMap()\n\t{\n\t\treturn array(\n\t\t\t'ID' => new Entity\\IntegerField('ID', array(\n\t\t\t\t'primary' => true,\n\t\t\t\t'autocomplete' => true\n\t\t\t)),\n\t\t\t'ORDER_NEW_TASK' => new Entity\\StringField('ORDER_NEW_TASK', array(\n\t\t\t\t'required' => true\n\t\t\t))\n\t\t);\n\t}", "pub...
[ "0.6637542", "0.6594023", "0.648225", "0.64311457", "0.64077604", "0.6392645", "0.6384917", "0.6319827", "0.629275", "0.6263408", "0.6239673", "0.6159177", "0.61396015", "0.6062293", "0.60510415", "0.59983045", "0.59882057", "0.5968825", "0.59648436", "0.596274", "0.596274", ...
0.5350025
57
Create the event listener.
public function __construct() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addRequestCreateListener($listener);", "public function onEvent();", "private function init_event_listeners() {\n\t\t// add_action('wp_ajax_example_action', [$this, 'example_function']);\n\t}", "public function listener(Listener $listener);", "protected function setupListeners()\n {\n ...
[ "0.656817", "0.62854403", "0.6221445", "0.61955786", "0.6161211", "0.6128959", "0.6094744", "0.60562915", "0.6050664", "0.60421985", "0.59603083", "0.59593344", "0.5956495", "0.5945495", "0.58809704", "0.58809704", "0.58737487", "0.5862446", "0.5854378", "0.5845639", "0.58226...
0.0
-1
Handle User Profile Creation Event.
public function handle($table) { // Add additional user profile base on project here $table->string('idnumber'); $table->text('photo'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function create_user_handler($event)\n {\n //get the event data.\n $event_data = $event->get_data();\n\n try {\n //user data\n $userid=false;\n if(array_key_exists('relateduserid', $event_data)){\n ...
[ "0.6839326", "0.6519557", "0.6429307", "0.6349028", "0.6180859", "0.6167281", "0.60826916", "0.60597295", "0.60545886", "0.60141456", "0.59867096", "0.598572", "0.5956071", "0.59364104", "0.58905786", "0.5871619", "0.5857083", "0.58481306", "0.5844022", "0.58338356", "0.58300...
0.0
-1
Constructor function of CategoryRepository
public function __construct(Category $model) { parent::__construct($model); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct(CategoryRepository $category)\n {\n $this->category = $category;\n\n }", "public function __construct(\n CategoryRepository $categoryRepository\n ) {\n $this->categoryRepository = $categoryRepository;\n }", "public function __construct(CategoryRepo $r...
[ "0.8309143", "0.80564696", "0.78581125", "0.7823766", "0.7742342", "0.76505667", "0.74075615", "0.7318511", "0.7288167", "0.7176974", "0.7089984", "0.705166", "0.6941576", "0.6939461", "0.685942", "0.6849061", "0.6823687", "0.6798244", "0.6796409", "0.6779477", "0.6777811", ...
0.6210552
49
Retrieve courses in term. Filters main query to only include immediate children of the current term.
function get_courses() { global $wp_query; $wp_query->set('tax_query', get_immediate_children()); $wp_query->get_posts(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function courses(){\n return Catalog::where('active',1)\n ->where('for_sale', 1)\n ->where('litmos_deleted', 0)\n ->orderBy('name')\n ->lists( 'name', 'id');\n }", "function i4_lms_get_courses() {\...
[ "0.6011304", "0.58016616", "0.579713", "0.5718078", "0.5711828", "0.553655", "0.5533967", "0.54997486", "0.54840714", "0.5471198", "0.5442092", "0.54361", "0.5424699", "0.53994745", "0.538072", "0.5361214", "0.53362775", "0.5317572", "0.53126884", "0.5290739", "0.5289793", ...
0.68748456
0
Retrieve child courses. Gets child courses of the term which are not assigned to any of its children.
function get_immediate_children( $course_type = null ) { if (empty($course_type)) { $course_type = get_term_by('slug', get_query_var('term'), 'course_type'); } return array( 'relation' => 'AND', array( 'taxonomy' => 'course_type', 'terms' => $course_type->term_id ), array( 'taxonomy' => 'course_t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_courses() {\n\tglobal $wp_query;\n\t$wp_query->set('tax_query', get_immediate_children());\n\t$wp_query->get_posts();\n}", "function listDescendantCourses() {\n $courses = courselist_roftools::get_courses_from_parent_rofpath($this->getRofPathId());\n return array_keys($courses);\n }...
[ "0.62711805", "0.61526525", "0.60297596", "0.6005408", "0.5975901", "0.5933081", "0.59169036", "0.5855563", "0.5770813", "0.57053745", "0.5672227", "0.56508994", "0.56422013", "0.5620668", "0.5602331", "0.5601563", "0.5600888", "0.55978495", "0.5594242", "0.558314", "0.556502...
0.52464694
33
Determine if the given object is a JSON string or not.
function cargo_is_json( $obj ) { return is_string( $obj ) && is_array( json_decode( $obj, true ) ) && json_last_error() === JSON_ERROR_NONE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function isJson($str) {}", "public static function stringIsJson($string){\n\t\treturn ((is_string($string) && (is_object(json_decode($string)) || is_array(json_decode($string)))))\n\t\t\t? true\n\t\t\t: false;\n\t}", "public static function IsJsonString (& $jsonStr);", "function scrappy_isJson(...
[ "0.8324791", "0.82409954", "0.818418", "0.8180131", "0.80365753", "0.80116314", "0.7934439", "0.7911927", "0.78953326", "0.7875186", "0.78594965", "0.7819225", "0.78180635", "0.781272", "0.7805148", "0.77762353", "0.7750688", "0.773509", "0.7715607", "0.7681814", "0.76390886"...
0.80206466
5
Probably a quite common scenario
public function testDatabaseToCache() { $cache = Services::cache(); $databaseHandler = new DatabaseHandler($this->config, 'tests'); $cacheHandler = new CacheArchiver($this->config, $cache); $this->schemas->draft([$databaseHandler])->archive([$cacheHandler]); $th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _refine() {\n\n\t}", "abstract protected function _preProcess();", "private function _i() {\n }", "public function inOriginal();", "public function helper()\n\t{\n\t\n\t}", "abstract protected function external();", "abstract protected function _process();", "abstract protected fu...
[ "0.5336312", "0.5325988", "0.5264919", "0.52455705", "0.5167349", "0.5144876", "0.5121248", "0.5121248", "0.5106834", "0.50930464", "0.50695276", "0.50695276", "0.5054875", "0.5039326", "0.50328285", "0.5004211", "0.50015074", "0.4996553", "0.49907273", "0.49593315", "0.49476...
0.0
-1
Draft & archive a copy of the schema so we can test reading it
public function testGetReturnsSchemaWithReader() { $result = $this->schemas->draft()->archive(); $this->assertTrue($result); $this->schemas->reset(); $schema = $this->schemas->read()->get(); $this->assertInstanceOf('\Tatter\Schemas\Reader\BaseReader', $schema->tables); // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function importSchema(){\n\t\t\t$this->exportsSchema = false;\n\t\t}", "function exportSchema(){\n\t\t\t$this->exportsSchema=true;\n\t\t\t$this->slugField='slug';\n\t\t\t$this->spaceCharacter='-';\n\t\t}", "public function backup_database()\n\t{\n\t\t$db = Database::instance();\n\n\t\t$tables_to_dump = array('...
[ "0.64980197", "0.6304061", "0.5998986", "0.5993768", "0.5992397", "0.59454143", "0.5918905", "0.58127356", "0.5762355", "0.5558237", "0.55109763", "0.5503556", "0.5491102", "0.5472427", "0.54613036", "0.5451827", "0.5375669", "0.5366491", "0.5337373", "0.5333932", "0.53098863...
0.57859164
8
delete userfolder and all related data DISABLED
function delete() { // DISABLED return false; // always call parent delete function first!! if (!parent::delete()) { return false; } // put here userfolder specific stuff // always call parent delete function at the end!! return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteFolder($user_dir){\r\n\t\t\t\t// open the user's directory\r\n\t\t\t\t\t$path = './cloud/'.$_SESSION['SESS_USER_ID'].'/'.$user_dir; // '.' for current\r\n\r\n\t\t\t\t\t\r\n\t\t\t}", "function delete_all_user_settings()\n {\n }", "function delete() {\n global $USER;\n if($this->Di...
[ "0.72324634", "0.6870372", "0.68367755", "0.68110836", "0.67341226", "0.6719706", "0.67173404", "0.6685661", "0.6685661", "0.65394586", "0.6536882", "0.6536043", "0.64834577", "0.64283425", "0.6392182", "0.6314095", "0.63099146", "0.6300209", "0.6283243", "0.62703806", "0.625...
0.6578102
9
Get the location of the export directory for the user accounts Get the location of the export directory for the user accounts
function getExportDirectory() { $export_dir = ilUtil::getDataDir()."/usrf_data/export"; return $export_dir; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getExportDirectory()\n\t{\n\t\tinclude_once \"./Services/Utilities/classes/class.ilUtil.php\";\n\t\t$export_dir = ilUtil::getDataDir().\"/svy_data\".\"/svy_\".$this->getId().\"/export\";\n\n\t\treturn $export_dir;\n\t}", "function getExportPath() {\n\t\t$exportPath = Config::getVar('files', 'files_dir')...
[ "0.77157414", "0.7433574", "0.70509726", "0.6722199", "0.6703358", "0.6395572", "0.63304895", "0.63304895", "0.6227603", "0.61589086", "0.6032105", "0.60036784", "0.5987433", "0.59700906", "0.5887101", "0.5882436", "0.5869087", "0.58589864", "0.5856343", "0.5844826", "0.58379...
0.8034237
0
Get a list of the already exported files in the export directory Get a list of the already exported files in the export directory
function getExportFiles() { $dir = $this->getExportDirectory(); // quit if export dir not available if (!@is_dir($dir) or !is_writeable($dir)) { return array(); } // open directory $dir = dir($dir); // initialize array $file = array(); // get files and save the in the array while ($entr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function FetchExporterList()\n\t{\n\t\t$exporterRoot = APP_ROOT.\"/includes/converter/exporters/\";\n\t\t$files = scandir($exporterRoot);\n\n\t\tforeach($files as $file) {\n\t\t\tif(!is_file($exporterRoot.$file) || isc_substr($file, -3) != \"php\") {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\trequire_once $exp...
[ "0.73119366", "0.6505552", "0.64573514", "0.63354045", "0.6275798", "0.62234676", "0.6104274", "0.60710806", "0.6069981", "0.60503703", "0.59917426", "0.59884036", "0.59783393", "0.59728575", "0.5964481", "0.5882239", "0.58674145", "0.5851655", "0.58128285", "0.57794315", "0....
0.8022613
0
Get all exportable user defined fields
function getUserDefinedExportFields() { include_once './Services/User/classes/class.ilUserDefinedFields.php'; $udf_obj =& ilUserDefinedFields::_getInstance(); $udf_ex_fields = array(); foreach($udf_obj->getDefinitions() as $definition) { if ($definition["export"] != FALSE) { $udf_ex_fields[] = arr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getExportFields(): array;", "public function getFieldsForExport()\n {\n return $this->fields;\n }", "public function getFieldsForExport()\n {\n return $this->fields;\n }", "public function getAllFields();", "public function exportFields()\r\n\t{\r\n\t\treturn $this...
[ "0.8024037", "0.76265126", "0.76265126", "0.7204274", "0.71236205", "0.7002998", "0.7002998", "0.7002998", "0.7002998", "0.7002998", "0.7002998", "0.6957784", "0.6915152", "0.69085884", "0.69043565", "0.69043565", "0.69043565", "0.6840719", "0.6826699", "0.68175596", "0.68175...
0.804589
0
build xml export file
function buildExportFile($a_mode = "userfolder_export_excel_x86", $user_data_filter = FALSE) { global $ilBench; global $log; global $ilDB; global $ilias; global $lng; //get Log File $expDir = $this->getExportDirectory(); //$expLog = &$log; //$expLog->delete(); //$expLog->setLogFormat(""); //$exp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function master_xml_export()\n\t{\n\t\t//-----------------------------------------\n\t\t// INIT\n\t\t//-----------------------------------------\n\n\t\t$entry = array();\n\n\t\t//-----------------------------------------\n\t\t// Get XML class\n\t\t//-----------------------------------------\n\n\t\trequire_once( KE...
[ "0.7585008", "0.71546763", "0.71497726", "0.70407176", "0.6882637", "0.68497276", "0.6842053", "0.68106157", "0.6776037", "0.6774941", "0.6756682", "0.6721928", "0.67107326", "0.66853225", "0.66129136", "0.65997577", "0.6576241", "0.65615356", "0.6556655", "0.6555185", "0.655...
0.0
-1
creates data directory for export files (data_dir/usrf_data/export, depending on data directory that is set in ILIAS setup/ini)
function createExportDirectory() { if (!@is_dir($this->getExportDirectory())) { $usrf_data_dir = ilUtil::getDataDir()."/usrf_data"; ilUtil::makeDir($usrf_data_dir); if(!is_writable($usrf_data_dir)) { $this->ilias->raiseError("Userfolder data directory (".$usrf_data_dir .") not writeable.",$thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createExportDirectory()\n\t{\n\t\tinclude_once \"./Services/Utilities/classes/class.ilUtil.php\";\n\t\t$svy_data_dir = ilUtil::getDataDir().\"/svy_data\";\n\t\tilUtil::makeDir($svy_data_dir);\n\t\tif(!is_writable($svy_data_dir))\n\t\t{\n\t\t\t$this->ilias->raiseError(\"Survey Data Directory (\".$svy_data_...
[ "0.71233654", "0.6599585", "0.6466034", "0.6425255", "0.6224391", "0.59461343", "0.58316", "0.5826815", "0.5776275", "0.577291", "0.5707089", "0.5669395", "0.5567984", "0.5466869", "0.5404557", "0.5390497", "0.5372604", "0.53137654", "0.5299719", "0.5281254", "0.5279568", "...
0.77968264
0
Get profile fields (DEPRECATED, use ilUserProfile() instead)
static function &getProfileFields() { include_once("./Services/User/classes/class.ilUserProfile.php"); $up = new ilUserProfile(); $up->skipField("username"); $up->skipField("roles"); $up->skipGroup("preferences"); $fds = $up->getStandardFields(); foreach ($fds as $k => $f) { $profile_fields[] = $k; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getProfileFields(){\n \n\t\tif(self::$profileFields == null){\n\t\t\t$prefix = Engine_Db_Table::getTablePrefix();\n\t\t\t$adapter = Engine_Db_Table::getDefaultAdapter();\n\t\t\t$sql = \"SELECT engine4_user_fields_meta.* FROM `engine4_user_fields_maps` \n\t\t\t\t\tjoin engine4_user_fields...
[ "0.76904273", "0.7676826", "0.75186956", "0.7189752", "0.711803", "0.69145244", "0.6889209", "0.67853636", "0.66062826", "0.6600881", "0.6552911", "0.6533339", "0.6508206", "0.64770323", "0.6473083", "0.6392423", "0.6363981", "0.6363373", "0.6332004", "0.63207716", "0.6320771...
0.8419101
0
Update user folder assignment Typically called after deleting a category with local user accounts. These users will be assigned to the global user folder.
public static function _updateUserFolderAssignment($a_old_id,$a_new_id) { global $ilDB; $query = "UPDATE usr_data SET time_limit_owner = ".$ilDB->quote($a_new_id, "integer")." ". "WHERE time_limit_owner = ".$ilDB->quote($a_old_id, "integer")." "; $ilDB->manipulate($query); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateFolder() {\n if (isset($this->params['folder_id']) && $this->params['folder_id'] > 0) {\n $folderData = $this->getFolder($this->params['folder_id']);\n $data = array(\n 'permission_mode' => $this->params['permission_mode'],\n );\n $params = array(\n 'folder_id' =...
[ "0.57592154", "0.5544456", "0.5530402", "0.5491209", "0.5377705", "0.5372368", "0.5371325", "0.5353898", "0.53189975", "0.5292237", "0.5277547", "0.5261769", "0.5208596", "0.5164006", "0.5154794", "0.5138336", "0.5127323", "0.5094131", "0.5090181", "0.5084386", "0.50835055", ...
0.6122778
0
Run the database seeds.
public function run() { $title = Str::random(10); DB::table('channels')->insert([ 'title' => $title, 'slug' => Str::of($title)->slug(), 'description' => Str::random(100) ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n fact...
[ "0.80140394", "0.7980541", "0.79775697", "0.79547316", "0.79514134", "0.79500794", "0.79444957", "0.794259", "0.79382807", "0.7937482", "0.7934376", "0.7892533", "0.7881253", "0.78794724", "0.7879101", "0.7875628", "0.787215", "0.7870168", "0.78515327", "0.7850979", "0.784195...
0.0
-1
Create a new middleware instance. The guard instance is used to check if a user is authenticated
public function __construct(Guard $guard) { $this->guard = $guard; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n\t{\n\t\treturn $this->middleware('auth');\n\t}", "public function __construct()\n {\n return $this->middleware('auth');\n }", "public function __construct()\n {\n return $this->middleware('auth');\n }", "public function __construct()\n {\n r...
[ "0.7289842", "0.7189362", "0.7189362", "0.7189362", "0.7024287", "0.7024287", "0.7024287", "0.70035505", "0.70035505", "0.69610375", "0.69133663", "0.6910622", "0.6907369", "0.6895478", "0.68921906", "0.6888729", "0.68884206", "0.68799824", "0.68718266", "0.68654084", "0.6864...
0.0
-1
Handle an incoming request.
public function handle(Request $request, Closure $next) : Response { if ($this->guard->check()) { return $next($request); } return ($request->ajax()) ? response('Unauthorized.', 401) : redirect()->guest('login'); }
{ "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
Gets the public 'doctrine.dbal.default_connection' shared service.
protected function getDoctrine_Dbal_DefaultConnectionService() { $a = new \Doctrine\DBAL\Logging\LoggerChain(); $a->addLogger(new \Symfony\Bridge\Doctrine\Logger\DbalLogger(${($_ = isset($this->services['logger']) ? $this->services['logger'] : $this->services['logger'] = new \Symfony\Component\HttpK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultConnection()\n {\n return $this->getConnection('default');\n }", "public function getDefaultConnection()\n {\n return $this->resolver->getDefaultConnection();\n }", "public static function getConnection() {\n return self::$defaultConnection;\n }", ...
[ "0.81350857", "0.79463524", "0.7825295", "0.77760863", "0.7753064", "0.77185494", "0.7701747", "0.74805605", "0.7440557", "0.7440329", "0.7239404", "0.723882", "0.7122834", "0.70731086", "0.70431226", "0.70157063", "0.6971493", "0.6964537", "0.6956631", "0.6914261", "0.689303...
0.8255185
0
Gets the public 'doctrine.orm.default_entity_manager' shared service.
protected function getDoctrine_Orm_DefaultEntityManagerService($lazyLoad = true) { $a = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain(); $a->addDriver(new \Doctrine\ORM\Mapping\Driver\AnnotationDriver(${($_ = isset($this->services['annotation_reader']) ? $this->services['annotat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getEntityManager()\n {\n $em = $this->getServiceLocator()->get('doctrine.entitymanager.orm_default');\n return $em;\n }", "public function getEntityManager()\n {\n if (null === $this->em) {\n $this->em = $this->getServiceLocator()\n ->get...
[ "0.78133297", "0.73285985", "0.73075217", "0.72936225", "0.6995809", "0.6995809", "0.6857994", "0.6844832", "0.67233014", "0.6634966", "0.66219455", "0.6621674", "0.66114146", "0.6610785", "0.6606717", "0.6572906", "0.65723026", "0.65720654", "0.65678066", "0.65587914", "0.65...
0.59983355
60
Gets the public 'doctrine_cache.providers.doctrine.orm.default_metadata_cache' shared service.
protected function getDoctrineCache_Providers_Doctrine_Orm_DefaultMetadataCacheService() { $this->services['doctrine_cache.providers.doctrine.orm.default_metadata_cache'] = $instance = new \Doctrine\Common\Cache\ArrayCache(); $instance->setNamespace('sf_orm_default_ffac7d8ed8da8c1e8ea974c49c51bce96...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getDoctrineCache_Providers_Doctrine_Orm_DefaultMetadataCacheService()\n {\n $this->services['doctrine_cache.providers.doctrine.orm.default_metadata_cache'] = $instance = new \\Doctrine\\Common\\Cache\\ArrayCache();\n\n $instance->setNamespace('sf2orm_default_8bf1da162ef326421c99...
[ "0.853291", "0.75862014", "0.7562599", "0.72116524", "0.71779937", "0.6434227", "0.634034", "0.609408", "0.6056222", "0.5939375", "0.5939375", "0.5705965", "0.56817466", "0.56808627", "0.5647003", "0.5617541", "0.56172186", "0.5580735", "0.5568569", "0.55595183", "0.5544308",...
0.85365456
0
Gets the public 'doctrine_cache.providers.doctrine.orm.default_query_cache' shared service.
protected function getDoctrineCache_Providers_Doctrine_Orm_DefaultQueryCacheService() { $this->services['doctrine_cache.providers.doctrine.orm.default_query_cache'] = $instance = new \Doctrine\Common\Cache\ArrayCache(); $instance->setNamespace('sf_orm_default_ffac7d8ed8da8c1e8ea974c49c51bce96663f58...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getDoctrineCache_Providers_Doctrine_Orm_DefaultQueryCacheService()\n {\n $this->services['doctrine_cache.providers.doctrine.orm.default_query_cache'] = $instance = new \\Doctrine\\Common\\Cache\\ArrayCache();\n\n $instance->setNamespace('sf2orm_default_8bf1da162ef326421c99a13a9a...
[ "0.86607194", "0.76459724", "0.76295567", "0.73168004", "0.7298351", "0.6500934", "0.6238524", "0.59537226", "0.5944275", "0.58803606", "0.58335924", "0.5699514", "0.5644874", "0.5579449", "0.5557641", "0.5508757", "0.54441965", "0.5409987", "0.5409987", "0.5357156", "0.53184...
0.8665333
0
Gets the public 'doctrine_cache.providers.doctrine.orm.default_result_cache' shared service.
protected function getDoctrineCache_Providers_Doctrine_Orm_DefaultResultCacheService() { $this->services['doctrine_cache.providers.doctrine.orm.default_result_cache'] = $instance = new \Doctrine\Common\Cache\ArrayCache(); $instance->setNamespace('sf_orm_default_ffac7d8ed8da8c1e8ea974c49c51bce96663f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getDoctrineCache_Providers_Doctrine_Orm_DefaultResultCacheService()\n {\n $this->services['doctrine_cache.providers.doctrine.orm.default_result_cache'] = $instance = new \\Doctrine\\Common\\Cache\\ArrayCache();\n\n $instance->setNamespace('sf2orm_default_8bf1da162ef326421c99a13a...
[ "0.86435807", "0.76219445", "0.76211333", "0.6833611", "0.6819532", "0.6507174", "0.6368295", "0.6008313", "0.5956899", "0.5604679", "0.548948", "0.5455574", "0.544233", "0.5436743", "0.5431846", "0.54301", "0.5398462", "0.539615", "0.53681433", "0.5363936", "0.5323601", "0...
0.86590713
0
Gets the public 'event_dispatcher' shared service.
protected function getEventDispatcherService() { $this->services['event_dispatcher'] = $instance = new \Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher($this); $instance->addListener('kernel.request', array(0 => function () { return ${($_ = isset($this->services['App\Eve...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getEventDispatcherService()\n {\n if (isset($this->shared['event_dispatcher'])) return $this->shared['event_dispatcher'];\n\n $class = $this->getParameter('event_dispatcher.class');\n $instance = new $class($this);\n $this->shared['event_dispatcher'] = $instance;\n...
[ "0.8082547", "0.74879193", "0.7415656", "0.7333091", "0.7270868", "0.7212724", "0.7150881", "0.714787", "0.70383567", "0.7026146", "0.68868333", "0.68865883", "0.6856445", "0.6848307", "0.6814494", "0.6797737", "0.67601585", "0.67200613", "0.65991396", "0.6566795", "0.6543914...
0.7233883
5
Gets the public 'http_kernel' shared service.
protected function getHttpKernelService() { return $this->services['http_kernel'] = new \Symfony\Component\HttpKernel\HttpKernel(${($_ = isset($this->services['event_dispatcher']) ? $this->services['event_dispatcher'] : $this->getEventDispatcherService()) && false ?: '_'}, new \Symfony\Bundle\FrameworkBundl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getTwig_Runtime_HttpkernelService()\n {\n return $this->services['twig.runtime.httpkernel'] = new \\Symfony\\Bridge\\Twig\\Extension\\HttpKernelRuntime($this->get('fragment.handler'));\n }", "protected function getHttpKernelService()\n {\n return $this->services['http_ke...
[ "0.67457736", "0.6699442", "0.635468", "0.62597084", "0.6193187", "0.6108665", "0.6105956", "0.6099569", "0.6099569", "0.60915345", "0.60650516", "0.6057159", "0.6057159", "0.6057159", "0.6057159", "0.600807", "0.5995665", "0.58177453", "0.5733615", "0.57020676", "0.5669944",...
0.5720247
19
Gets the public 'request_stack' shared service.
protected function getRequestStackService() { return $this->services['request_stack'] = new \Symfony\Component\HttpFoundation\RequestStack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getRouter_RequestContextService()\n {\n return $this->services['router.request_context'] = new \\Symfony\\Component\\Routing\\RequestContext('', 'GET', 'localhost', 'http', 80, 443);\n }", "protected function getRouter_RequestContextService()\n {\n return $this->services...
[ "0.59371424", "0.59371424", "0.586726", "0.58414614", "0.5828912", "0.5803156", "0.5797442", "0.5726076", "0.5706834", "0.5706307", "0.5705448", "0.5669906", "0.5582079", "0.55666167", "0.5537205", "0.55328083", "0.5504719", "0.54949635", "0.5491874", "0.54605293", "0.5459252...
0.777501
2
Gets the public 'router' shared service.
protected function getRouterService() { $this->services['router'] = $instance = new \Symfony\Bundle\FrameworkBundle\Routing\Router($this, 'kernel:loadRoutes', array('cache_dir' => $this->targetDirs[0], 'debug' => true, 'generator_class' => 'Symfony\\Component\\Routing\\Generator\\UrlGenerator', 'generator_b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRouterService() {\n return $this->routerService;\n }", "protected function getRouterService()\n {\n return $this->services['router'] = new \\phpbb\\routing\\router($this, ${($_ = isset($this->services['routing.chained_resources_locator']) ? $this->services['routing.chained_...
[ "0.81344014", "0.7998334", "0.78059834", "0.77026695", "0.76789755", "0.7648378", "0.76094735", "0.75945336", "0.7498437", "0.74634534", "0.7445047", "0.7445047", "0.7423577", "0.7413018", "0.740041", "0.740041", "0.7296917", "0.72839135", "0.7259575", "0.72379416", "0.716305...
0.7372492
16
Gets the public 'security.token_storage' shared service.
protected function getSecurity_TokenStorageService() { return $this->services['security.token_storage'] = new \Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStorageService();", "public function getStorageService()\n {\n $class = $this->app['config']->get('shoppingcart.storage','session');\n\n switch ($class)\n {\n case 'session':\n return 'session';\n break;\n case 'database':...
[ "0.70061004", "0.69544894", "0.6743185", "0.6726429", "0.6493238", "0.64293724", "0.64108723", "0.6380058", "0.63707745", "0.63647574", "0.63508135", "0.62439954", "0.6182945", "0.61813575", "0.6169047", "0.61324614", "0.61092895", "0.60971105", "0.6093218", "0.6093218", "0.6...
0.80226177
1
Gets the private 'App\EventSubscriber\RestSubscriber' shared autowired service.
protected function getRestSubscriberService() { return $this->services['App\EventSubscriber\RestSubscriber'] = new \App\EventSubscriber\RestSubscriber(${($_ = isset($this->services['annotation_reader']) ? $this->services['annotation_reader'] : $this->getAnnotationReaderService()) && false ?: '_'}, ${($_ = i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getEventDispatcherService()\n {\n $this->services['event_dispatcher'] = $instance = new \\Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatcher($this);\n\n $instance->addListener('kernel.request', array(0 => function () {\n return ${($_ = isset($this->ser...
[ "0.6869794", "0.6032906", "0.59967154", "0.5986137", "0.59064466", "0.5882892", "0.5875221", "0.5854544", "0.5829561", "0.5825283", "0.58147025", "0.57799953", "0.5775164", "0.57709503", "0.57209134", "0.57184684", "0.57043725", "0.5691644", "0.5673127", "0.56611854", "0.5610...
0.8636062
0
Gets the private 'annotation_reader' shared service.
protected function getAnnotationReaderService() { return $this->services['annotation_reader'] = new \Doctrine\Common\Annotations\CachedReader(${($_ = isset($this->services['annotations.reader']) ? $this->services['annotations.reader'] : $this->getAnnotations_ReaderService()) && false ?: '_'}, ${($_ = isset(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getAnnotationReaderService()\n {\n return $this->services['annotation_reader'] = new \\Doctrine\\Common\\Annotations\\CachedReader(${($_ = isset($this->services['annotations.reader']) ? $this->services['annotations.reader'] : $this->getAnnotations_ReaderService()) && false ?: '_'}, new...
[ "0.78386486", "0.7793118", "0.75140715", "0.6867563", "0.6572512", "0.64137864", "0.6359297", "0.62259763", "0.6131553", "0.5929245", "0.5681704", "0.5652193", "0.558437", "0.5562851", "0.5559268", "0.5553822", "0.5501414", "0.54617417", "0.5460059", "0.5460059", "0.5460035",...
0.7894564
0
Gets the private 'annotations.reader' shared service.
protected function getAnnotations_ReaderService() { $this->services['annotations.reader'] = $instance = new \Doctrine\Common\Annotations\AnnotationReader(); $a = new \Doctrine\Common\Annotations\AnnotationRegistry(); $a->registerUniqueLoader('class_exists'); $instance->addGlobalIgn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getAnnotationReaderService()\n {\n return $this->services['annotation_reader'] = new \\Doctrine\\Common\\Annotations\\CachedReader(${($_ = isset($this->services['annotations.reader']) ? $this->services['annotations.reader'] : $this->getAnnotations_ReaderService()) && false ?: '_'}, ${(...
[ "0.8015223", "0.7964286", "0.7922955", "0.72738236", "0.7099812", "0.705272", "0.6221672", "0.61354625", "0.61225814", "0.6007353", "0.600729", "0.6004071", "0.5830038", "0.5638752", "0.5625458", "0.5625458", "0.5625458", "0.5625458", "0.5625458", "0.5625458", "0.5625458", ...
0.7759862
3
Gets the private 'config_cache_factory' shared service.
protected function getConfigCacheFactoryService() { return $this->services['config_cache_factory'] = new \Symfony\Component\Config\ResourceCheckerConfigCacheFactory(new RewindableGenerator(function () { yield 0 => ${($_ = isset($this->services['dependency_injection.config.container_parameters_re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getConfigCacheFactoryService()\n {\n return $this->services['config_cache_factory'] = new \\Symfony\\Component\\Config\\ResourceCheckerConfigCacheFactory(array());\n }", "protected function getCacheService()\n {\n return $this->services['cache'] = new \\phpbb\\cache\\ser...
[ "0.85419357", "0.7490239", "0.69463694", "0.6896996", "0.6809103", "0.66566825", "0.6515313", "0.6390726", "0.6376414", "0.63504124", "0.63116676", "0.6310457", "0.62856317", "0.6273551", "0.6257921", "0.6257274", "0.6251199", "0.6251199", "0.62475675", "0.62276244", "0.62117...
0.83640254
1
Gets the private 'controller_name_converter' shared service.
protected function getControllerNameConverterService() { return $this->services['controller_name_converter'] = new \Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser(${($_ = isset($this->services['kernel']) ? $this->services['kernel'] : $this->get('kernel', 1)) && false ?: '_'}); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getControllerNameConverterService()\n {\n return $this->services['controller_name_converter'] = new \\Symfony\\Bundle\\FrameworkBundle\\Controller\\ControllerNameParser($this->get('kernel'));\n }", "protected function getResolveControllerNameSubscriberService()\n {\n ret...
[ "0.87402654", "0.75222164", "0.6778608", "0.6602507", "0.6602507", "0.6550051", "0.65097094", "0.64549685", "0.6215908", "0.6212425", "0.6212425", "0.6200901", "0.617198", "0.61692774", "0.614288", "0.61354715", "0.6130968", "0.6097719", "0.60866785", "0.60866785", "0.6084919...
0.8904801
0
Gets the private 'debug.debug_handlers_listener' shared service.
protected function getDebug_DebugHandlersListenerService() { return $this->services['debug.debug_handlers_listener'] = new \Symfony\Component\HttpKernel\EventListener\DebugHandlersListener(NULL, ${($_ = isset($this->services['logger']) ? $this->services['logger'] : $this->services['logger'] = new \Symfony\C...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getDebug_DebugHandlersListenerService()\n {\n return $this->services['debug.debug_handlers_listener'] = new \\Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener(NULL, $this->get('monolog.logger.php', ContainerInterface::NULL_ON_INVALID_REFERENCE), -1, 0, false, ${($_ ...
[ "0.8282563", "0.6258716", "0.62494403", "0.61819434", "0.6104834", "0.61011034", "0.59818786", "0.59299964", "0.5870668", "0.5847579", "0.5801385", "0.5797447", "0.5788257", "0.5761843", "0.57312024", "0.57001466", "0.56827587", "0.56806254", "0.56712466", "0.5661961", "0.565...
0.82447433
1
Gets the private 'doctrine.dbal.connection_factory' shared service.
protected function getDoctrine_Dbal_ConnectionFactoryService() { return $this->services['doctrine.dbal.connection_factory'] = new \Doctrine\Bundle\DoctrineBundle\ConnectionFactory(array()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getDoctrine_Dbal_DefaultConnectionService()\n {\n $a = new \\Doctrine\\DBAL\\Logging\\LoggerChain();\n $a->addLogger(new \\Symfony\\Bridge\\Doctrine\\Logger\\DbalLogger(${($_ = isset($this->services['logger']) ? $this->services['logger'] : $this->services['logger'] = new \\Symfo...
[ "0.7696066", "0.7554053", "0.7129665", "0.68138146", "0.6775207", "0.6718847", "0.6718172", "0.6692915", "0.6646955", "0.6597594", "0.65972865", "0.6595268", "0.6595268", "0.65097743", "0.6505646", "0.65036124", "0.65036124", "0.6482762", "0.6459367", "0.6436997", "0.64220536...
0.80488616
1
Gets the private 'doctrine.orm.default_entity_listener_resolver' shared service.
protected function getDoctrine_Orm_DefaultEntityListenerResolverService() { return $this->services['doctrine.orm.default_entity_listener_resolver'] = new \Doctrine\Bundle\DoctrineBundle\Mapping\ContainerAwareEntityListenerResolver($this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getDoctrine_Orm_DefaultListeners_AttachEntityListenersService()\n {\n return $this->services['doctrine.orm.default_listeners.attach_entity_listeners'] = new \\Doctrine\\ORM\\Tools\\AttachEntityListenersListener();\n }", "protected function getDoctrine_Orm_DefaultListeners_AttachEn...
[ "0.6966117", "0.6966117", "0.6498643", "0.63196063", "0.62522846", "0.61482424", "0.60225236", "0.59778345", "0.5947468", "0.5942576", "0.5942576", "0.5940109", "0.57047516", "0.5683288", "0.5628644", "0.56167156", "0.55560815", "0.5549502", "0.55389035", "0.55319613", "0.552...
0.85726523
1
Gets the private 'doctrine.orm.default_listeners.attach_entity_listeners' shared service.
protected function getDoctrine_Orm_DefaultListeners_AttachEntityListenersService() { return $this->services['doctrine.orm.default_listeners.attach_entity_listeners'] = new \Doctrine\ORM\Tools\AttachEntityListenersListener(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getDoctrine_Orm_DefaultEntityListenerResolverService()\n {\n return $this->services['doctrine.orm.default_entity_listener_resolver'] = new \\Doctrine\\Bundle\\DoctrineBundle\\Mapping\\ContainerAwareEntityListenerResolver($this);\n }", "protected function getDoctrine_Orm_DefaultEnt...
[ "0.64334244", "0.64334244", "0.5869672", "0.57529545", "0.57149476", "0.5712496", "0.557874", "0.55479974", "0.5502006", "0.549932", "0.5481192", "0.5437904", "0.54050857", "0.5402216", "0.5402216", "0.53823227", "0.5362008", "0.53454226", "0.53084135", "0.53084135", "0.52549...
0.839687
1
Gets the private 'doctrine.orm.default_manager_configurator' shared service.
protected function getDoctrine_Orm_DefaultManagerConfiguratorService() { return $this->services['doctrine.orm.default_manager_configurator'] = new \Doctrine\Bundle\DoctrineBundle\ManagerConfigurator(array(), array()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static protected function getConfigurationManager()\n\t{\n\t\tif (!is_null(static::$configurationManager)) {\n\t\t\treturn static::$configurationManager;\n\t\t}\n\t\t$objectManager = GeneralUtility::makeInstance(ObjectManager::class);\n\t\t$configurationManager = $objectManager->get(ConfigurationManagerInterface::...
[ "0.7327674", "0.6912394", "0.67747617", "0.6763204", "0.65604854", "0.6474837", "0.6451315", "0.64095104", "0.6408204", "0.6408204", "0.6408204", "0.6408204", "0.6408204", "0.6408204", "0.6408204", "0.6386998", "0.635874", "0.63547593", "0.6352963", "0.6260632", "0.6260632", ...
0.88063693
1
Gets the private 'locale_listener' shared service.
protected function getLocaleListenerService() { return $this->services['locale_listener'] = new \Symfony\Component\HttpKernel\EventListener\LocaleListener(${($_ = isset($this->services['request_stack']) ? $this->services['request_stack'] : $this->services['request_stack'] = new \Symfony\Component\HttpFounda...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getLocaleListenerService()\n {\n return $this->services['locale_listener'] = new \\Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener($this->get('request_stack'), 'en', $this->get('router', ContainerInterface::NULL_ON_INVALID_REFERENCE));\n }", "protected function getLa...
[ "0.82841414", "0.72171485", "0.72171485", "0.72171485", "0.716531", "0.7074446", "0.7026078", "0.69089997", "0.6866057", "0.6721692", "0.6721692", "0.6721692", "0.6721692", "0.6721692", "0.6721692", "0.6721692", "0.6720305", "0.6720305", "0.67196417", "0.67196417", "0.6719641...
0.8450227
0
Gets the private 'logger' shared service.
protected function getLoggerService() { return $this->services['logger'] = new \Symfony\Component\HttpKernel\Log\Logger(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLogger()\n {\n if (!$this->logger)\n {\n $this->logger = $this->getDi()->getShared('logger');\n }\n return $this->logger;\n }", "public function getLogger()\n {\n return $this->getService('logger');\n }", "private function getLogger()...
[ "0.78902847", "0.77114844", "0.7637587", "0.7612341", "0.7612341", "0.7612341", "0.7590496", "0.7582935", "0.7576", "0.75731695", "0.7532807", "0.7498358", "0.748957", "0.748957", "0.748957", "0.7403776", "0.73789334", "0.73789334", "0.7314383", "0.73050183", "0.72859967", ...
0.77782667
1
Gets the private 'resolve_controller_name_subscriber' shared service.
protected function getResolveControllerNameSubscriberService() { return $this->services['resolve_controller_name_subscriber'] = new \Symfony\Bundle\FrameworkBundle\EventListener\ResolveControllerNameSubscriber(${($_ = isset($this->services['controller_name_converter']) ? $this->services['controller_name_con...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getControllerNameConverterService()\n {\n return $this->services['controller_name_converter'] = new \\Symfony\\Bundle\\FrameworkBundle\\Controller\\ControllerNameParser(${($_ = isset($this->services['kernel']) ? $this->services['kernel'] : $this->get('kernel', 1)) && false ?: '_'});\n ...
[ "0.73876977", "0.7332215", "0.68224996", "0.66770595", "0.6594536", "0.6594536", "0.64360017", "0.63503516", "0.62597805", "0.61912596", "0.61863446", "0.6181331", "0.61558515", "0.61314017", "0.6104685", "0.61045015", "0.61045015", "0.6005062", "0.597336", "0.5938183", "0.59...
0.8670332
0
Gets the private 'response_listener' shared service.
protected function getResponseListenerService() { return $this->services['response_listener'] = new \Symfony\Component\HttpKernel\EventListener\ResponseListener('UTF-8'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getSecurity_Rememberme_ResponseListenerService()\n {\n return $this->services['security.rememberme.response_listener'] = new \\Symfony\\Component\\Security\\Http\\RememberMe\\ResponseListener();\n }", "protected function getSecurity_Rememberme_ResponseListenerService()\n {\n ...
[ "0.6912883", "0.6912883", "0.67666113", "0.65895987", "0.65895987", "0.6515243", "0.6493368", "0.64684206", "0.63182724", "0.614903", "0.6133055", "0.6073726", "0.6070657", "0.6015426", "0.5980343", "0.5924861", "0.5920159", "0.5861435", "0.5733203", "0.57256013", "0.57254016...
0.72640127
1
Gets the private 'router.request_context' shared service.
protected function getRouter_RequestContextService() { return $this->services['router.request_context'] = new \Symfony\Component\Routing\RequestContext('', 'GET', 'localhost', 'http', 80, 443); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getContext()\n {\n if ($this->context === null) {\n $this->context = $this->container->get('security.context');\n }\n return $this->context;\n }", "private function getContext()\n {\n $context = $this->request->getData('context');\n\n return...
[ "0.69826", "0.6805456", "0.66820264", "0.6676382", "0.66699517", "0.66699517", "0.6661133", "0.6650406", "0.6615614", "0.6587547", "0.65424395", "0.6526213", "0.6516481", "0.6516481", "0.6516481", "0.64759976", "0.6470407", "0.6438179", "0.6438179", "0.6438179", "0.6438179", ...
0.7954178
1
Gets the private 'router_listener' shared service.
protected function getRouterListenerService() { return $this->services['router_listener'] = new \Symfony\Component\HttpKernel\EventListener\RouterListener(${($_ = isset($this->services['router']) ? $this->services['router'] : $this->getRouterService()) && false ?: '_'}, ${($_ = isset($this->services['reques...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getRouter_ListenerService()\n {\n return $this->services['router.listener'] = new \\Symfony\\Component\\HttpKernel\\EventListener\\RouterListener(${($_ = isset($this->services['router']) ? $this->services['router'] : $this->getRouterService()) && false ?: '_'}, ${($_ = isset($this->ser...
[ "0.8276841", "0.8165629", "0.7084269", "0.7073615", "0.690444", "0.6756071", "0.6664331", "0.66598713", "0.6636435", "0.65806144", "0.65275", "0.6508153", "0.64837", "0.63579327", "0.63359207", "0.6311225", "0.62716293", "0.6208841", "0.62075686", "0.61822754", "0.617295", ...
0.813125
2