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
file already included, no need to proceed.
public function init($class) { if(isset(self::$psrIncluded[$class])) { return; } $this->composerGetMap($class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function includeFile($once = true);", "function sw_include( $file ) {\n\t$_file_path = TEMPLATEPATH . '/inc/' . $file . '.php';\n\n\tif( file_exists( $_file_path ) ) :\n\t\tinclude $_file_path;\n\telse:\n\t\treturn 0;\n\tendif;\n}", "public function processIncludes() {}", "public function loadIncludes...
[ "0.71809965", "0.7156577", "0.6958148", "0.69274503", "0.67305917", "0.6722691", "0.6722691", "0.6704404", "0.6621242", "0.66034496", "0.65527356", "0.6498024", "0.63912016", "0.6371894", "0.63444877", "0.6331455", "0.63269925", "0.63163155", "0.63129747", "0.6302521", "0.628...
0.0
-1
An alternative approach to autoload composer base file without the need of vendor/autoload.php native file
private function composerGetMap($class) { if(! self::$psrs) { self::$psrs['cm'] = include $this->vendor.'composer/autoload_classmap.php'; self::$psrs['psr4'] = include $this->vendor.'composer/autoload_psr4.php'; self::$psrs['ns'] = include $this->vendor.'composer/autoload_namespaces.php'; } // check in class map first, since it the most simplest form. if(isset(self::$psrs['cm'][$class])) { $this->composerIncludeFile(self::$psrs['cm'][$class]); return self::$psrIncluded[$class] = 1; } // check file by \ separator if(! $this->getFileMap($class)) { $trace = debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 3)[2]; throw new LoaderException('Resource ' . $class . ' not available! please check your class or namespace name.', 0, 1, $trace['file'], $trace['line']); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function autoload()\n {\n if (file_exists(__DIR__ . '/Stringprep/vendor/autoload.php')) {\n require_once __DIR__ . '/Stringprep/vendor/autoload.php';\n } else {\n require_once __DIR__ . '/../../bundle/vendor/autoload.php';\n }\n }", "private static f...
[ "0.72390115", "0.7123591", "0.6885223", "0.65720206", "0.64921516", "0.63491267", "0.6346775", "0.63372886", "0.6309297", "0.628683", "0.62226224", "0.6203183", "0.61799353", "0.61720675", "0.6162339", "0.6152112", "0.61502373", "0.61457556", "0.60885745", "0.60857433", "0.60...
0.0
-1
Register an app by app ID to be routed to.
public function registerApp(string $appId, $appFactory): self { $this->apps[$appId] = $appFactory; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerApp($config, $id)\n {\n if (empty(trim($id))) {\n exit('App ID must not be empty!');\n }\n\n $this->config = $config;\n static::$id = $id;\n\n if (!isset(static::$services[$id])) {\n static::$services[$id] = [];\n }\n\n ...
[ "0.6868471", "0.6288491", "0.58129287", "0.57566226", "0.5702342", "0.563166", "0.5609148", "0.5588763", "0.55775374", "0.5504164", "0.54506826", "0.5321613", "0.5288652", "0.52772516", "0.5270781", "0.52413505", "0.5229614", "0.5224103", "0.52142864", "0.5212098", "0.5187815...
0.5356944
11
Get the app ID from the request.
protected function getApp(): Application { $appId = $this->getAppIdDetector()($this->getRequest()); if ($appId === null) { throw new HttpException('Cannot determine app ID'); } // Create the app for the app ID. $app = $this->instantiateApp($appId); // Reconcile the registered app ID with the App's configured ID. $configuredId = $app->getConfig()->getId(); if ($configuredId === null) { $app->getConfig()->withId($appId); } elseif ($configuredId !== $appId) { throw new HttpException("ID mismatch for app ID: {$appId}"); } // Set the App to the Server. $this->withApp($app); return parent::getApp(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getApplicationId()\n\t{\n\t\t$application_id = $this->request->input('session.application.applicationId', null);\n\n\t\tif (is_null($application_id) || $application_id === '') {\n\t\t\tthrow new AlexaVerificationException('Request verification failed: application ID not present in request.');\n\...
[ "0.7403556", "0.72770584", "0.72770584", "0.72770584", "0.72770584", "0.72770584", "0.72770584", "0.72770584", "0.7223579", "0.71840316", "0.6955504", "0.6922548", "0.68986446", "0.6809883", "0.67831844", "0.6761387", "0.67397696", "0.6713542", "0.67133427", "0.6707606", "0.6...
0.0
-1
Initialize the table attributes, columns and validators Relations are not initialized by this method since they are lazy loaded
public function initialize() { // attributes $this->setName('unit_usaha_kerjasama'); $this->setPhpName('UnitUsahaKerjasama'); $this->setClassname('DataDikdas\\Model\\UnitUsahaKerjasama'); $this->setPackage('DataDikdas.Model'); $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('mou_id', 'MouId', 'VARCHAR' , 'mou', 'mou_id', true, null, null); $this->addForeignPrimaryKey('unit_usaha_id', 'UnitUsahaId', 'VARCHAR' , 'unit_usaha', 'unit_usaha_id', true, null, null); $this->addForeignKey('sumber_dana_id', 'SumberDanaId', 'DECIMAL', 'ref.sumber_dana', 'sumber_dana_id', true, 196608, null); $this->addColumn('produk_barang_dihasilkan', 'ProdukBarangDihasilkan', 'VARCHAR', false, 200, null); $this->addColumn('jasa_produksi_dihasilkan', 'JasaProduksiDihasilkan', 'VARCHAR', false, 200, null); $this->addColumn('omzet_barang_perbulan', 'OmzetBarangPerbulan', 'DECIMAL', false, 1179648, null); $this->addColumn('omzet_jasa_perbulan', 'OmzetJasaPerbulan', 'DECIMAL', false, 1179648, null); $this->addColumn('prestasi_penghargaan', 'PrestasiPenghargaan', 'VARCHAR', false, 200, null); $this->addColumn('pangsa_pasar_produk', 'PangsaPasarProduk', 'VARCHAR', false, 200, null); $this->addColumn('pangsa_pasar_jasa', 'PangsaPasarJasa', 'VARCHAR', false, 200, null); $this->addColumn('create_date', 'CreateDate', 'TIMESTAMP', true, null, 'now()'); $this->addColumn('last_update', 'LastUpdate', 'TIMESTAMP', true, null, 'now()'); $this->addColumn('soft_delete', 'SoftDelete', 'DECIMAL', true, 65536, null); $this->addColumn('last_sync', 'LastSync', 'TIMESTAMP', true, null, '1901-01-01 00:00:00'); $this->addColumn('updater_id', 'UpdaterId', 'VARCHAR', true, null, null); // validators }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function initTable(){\n\t\t\t\n\t\t}", "protected function _initsTable() {}", "public function initialize()\n {\n $this->setSource('tblEntry');\n\n $this->hasOne('userId', '\\Soul\\Model\\User', 'userId', ['alias' => 'user']);\n $this->belongsTo('eventId', '\\Soul\\Model\\Event',...
[ "0.7580732", "0.7575299", "0.73270494", "0.717987", "0.7032933", "0.6993016", "0.69707245", "0.69584113", "0.6955107", "0.69499326", "0.6918305", "0.69061995", "0.69056875", "0.6903476", "0.68968755", "0.6856668", "0.684996", "0.6842488", "0.6808953", "0.67990875", "0.6773435...
0.0
-1
initialize() Build the RelationMap objects for this table relationships
public function buildRelations() { $this->addRelation('UnitUsaha', 'DataDikdas\\Model\\UnitUsaha', RelationMap::MANY_TO_ONE, array('unit_usaha_id' => 'unit_usaha_id', ), 'RESTRICT', 'RESTRICT'); $this->addRelation('Mou', 'DataDikdas\\Model\\Mou', RelationMap::MANY_TO_ONE, array('mou_id' => 'mou_id', ), 'RESTRICT', 'RESTRICT'); $this->addRelation('SumberDana', 'DataDikdas\\Model\\SumberDana', RelationMap::MANY_TO_ONE, array('sumber_dana_id' => 'sumber_dana_id', ), 'RESTRICT', 'RESTRICT'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function buildRelations()\n {\n $this->addRelation('Contact', 'Contact', RelationMap::MANY_TO_ONE, array('contact_id' => 'id', ), null, null);\n $this->addRelation('State', 'State', RelationMap::MANY_TO_ONE, array('state_id' => 'id', ), null, null);\n $this->addRelation('School', 'Sc...
[ "0.73681265", "0.72307146", "0.7225127", "0.7160457", "0.7108614", "0.70908445", "0.70744073", "0.7071587", "0.7071587", "0.7071587", "0.7071587", "0.7071587", "0.7071587", "0.7071587", "0.7071587", "0.7071587", "0.70415735", "0.7030082", "0.6997258", "0.6991801", "0.6983611"...
0.6473727
65
Handle an incoming request.
public function handle($request, Closure $next) { if(DB::table('apartment_sponsorship') -> count() > 0){ foreach (DB::table('apartment_sponsorship') -> get() as $value) { $apartment = Apartment::findOrFail($value -> apartment_id); $sponsorship = Sponsorship::findOrFail($value -> sponsorship_id); $date = Carbon::now(); switch ($sponsorship -> hours) { case 24: if($date -> diffInHours($value -> creation_date) > 24) DB::table('apartment_sponsorship') -> where('id', $value -> id) -> update(['expired' => true]); break; case 72: if($date -> diffInMinutes($value -> creation_date) > 5) DB::table('apartment_sponsorship') -> where('id', $value -> id) -> update(['expired' => true]); break; case 144: if($date -> diffInHours($value -> creation_date) > 144) DB::table('apartment_sponsorship') -> where('id', $value -> id) -> update(['expired' => true]); break; } } } return $next($request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function handle_request();", "public function handleRequest();", "public function handleRequest();", "public function handleRequest();", "protected abstract function handleRequest();", "abstract public function handleRequest($request);", "abstract public function handleRequest(Request $...
[ "0.8299201", "0.8147294", "0.8147294", "0.8147294", "0.8127764", "0.7993589", "0.7927201", "0.7912899", "0.7899075", "0.76317674", "0.75089735", "0.7485808", "0.74074036", "0.7377414", "0.736802", "0.7294553", "0.72389543", "0.7230166", "0.72108", "0.71808434", "0.7170364", ...
0.0
-1
/ EDIT.PHP Allows user to edit specific entry in database creates the edit record form since this form is used multiple times in this file, I have made it a function that is easily reusable
function renderForm($id, $first_name, $last_name, $login_name, $password, $email_id, $user_role, $user_permission , $contact_number, $address, $error) { ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta charset="utf-8" /> <title>Add user </title> <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <meta content="width=device-width, initial-scale=1" name="viewport" /> <meta content="" name="description" /> <meta content="" name="author" /> <!-- BEGIN GLOBAL MANDATORY STYLES --> <link href="//fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css" /> <link href="css/font-awesome.min.css" rel="stylesheet" type="text/css" /> <link href="css/simple-line-icons.min.css" rel="stylesheet" type="text/css" /> <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="css/uniform.default.css" rel="stylesheet" type="text/css" /> <link href="css/bootstrap-switch.min.css" rel="stylesheet" type="text/css" /> <!-- END GLOBAL MANDATORY STYLES --> <!-- Our css style sheet --> <link href="css/mystyle.css" rel="stylesheet" type="text/css" /> <!-- jQuery --> <script src="js/jquery.min.js"></script> <!-- Bootstrap Core JavaScript --> <script src="js/bootstrap.min.js"></script> <!-- Menu Toggle Script --> <!-- <script> $("#menu-toggle").click(function(e) { e.preventDefault(); $("#wrapper").toggleClass("toggled"); }); </script> --> </head> <body> <div class="navbar navbar-inverse navbar-fixed-top"> <div class="container-fluid" > <div class="navbar-header"> <a class="navbar-brand" href="#"><img src="img/redbeak.PNG" alt=""></a> </div> <div > <ul class="nav navbar-nav" id="topnav"> <li><a href="home.php">Home</a></li> <li><a href="view.php">All Users</a></li> <li><a href="#">My account</a></li> <li><a href="#">Update info</a></li> <li><a href="#">Notification</a></li> </ul> </div> <div class="collapse navbar-collapse"> <ul class="nav navbar-nav navbar-right" style="padding-top:10px;padding-right:10px;"> <a href="login.html" class="btn btn-info" role="button">Logout</a> </ul> </div> </div> </div> <div id="wrapper"> <!-- Sidebar --> <div id="sidebar-wrapper"> <ul class="sidebar-nav"> <li class="sidebar-brand"> <a href="#"> Admin Panel </a> </li> <li> <a href="edit.php">Update internal User</a> </li> <li> <a href="#">Assign Roles to User</a> </li> <li> <a href="#">Report</a> </li> <li> <a href="#">Feedback</a> </li> <li> <a href="#">Enquiry</a> </li> <li> <a href="#">HopOp</a> </li> </ul> </div> <!-- /#sidebar-wrapper --> <!-- Page Content --> <div id="page-content-wrapper"> <div class="container-fluid"> <form action=" " method="post" id="adduserform" name="sentMessage" > <div class="row"> <div class="col-lg-12" style="margin-left:200px;"> <div class="col-md-3"style="margin-top:20px"> <div class="form-group"> <input type="hidden"class="form-control" name="id" value="<?php echo $id; ?>"/> <p><strong>ID:</strong> <?php echo $id; ?></p> </div> <div class="form-group"> <input type="text" name="first_name" placeholder="First name" class="form-control" value="<?php echo $first_name; ?>" id="first_name" required/> </div> <div class="form-group"> <input type="text" name="last_name" placeholder="last name" class="form-control" value="<?php echo $last_name; ?>"id="last_name" required/> </div> <div class="form-group"> <input type="text" name="login_name" placeholder="login name" class="form-control" value="<?php echo $login_name; ?>" id="login_name" required/> </div> <div class="form-group"> <input type="password" name="password" placeholder="Password" class="form-control" value="<?php echo $password; ?>" id="password" required/> </div> <div class="form-group"> <input type="email" name="email_id" placeholder="Email" class="form-control" value="<?php echo $email_id; ?>" id="email_id" required/> </div> <div class="form-group"> <input type="text" name="user_role" placeholder="User role" class="form-control" value="<?php echo $user_role; ?>" id="user_role" required/> </div> <div class="form-group"> <input type="text" name="user_permission" placeholder="UserPermission" class="form-control" value="<?php echo $user_permission; ?>" id="user_permission" required/> </div> <div class="form-group"> <input type="number" name="contact_number" placeholder="Contact number" class="form-control" value="<?php echo $contact_number; ?>" id="contact_number" required/> </div> <div class="form-group"> <textarea name="address" placeholder="Enter address" class="form-control" value="<?php echo $address; ?>" id="address" required></textarea> </div> <div class="row"> <div class="form-group"> <a href="useradmin.html" class="btn btn-warning pull pull-right" id="cancel" role="button">Cancel</a> <button type="submit" name="submit" class="btn btn-primary pull pull-left" id="save">update</button> </div> </div> </div> </div> </div> </form> </div> </div> </div> <!-- /#page-content-wrapper --> <!--FOOTER SECTION --> <div class="copyright" > <footer id="footer" class="pull-right"> <div class="row"> <div class="col-md-12 col-sm-12"> &copy; 2016 www.redbeak.co.in | All Rights Reserved </div> </div> </footer> </div> </body> </html> <?php }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function doEdit()\n {\n global $_POST;\n$regs=explode(\":::\",$_POST[\"DROWS\"]);\n$id= $regs[0];\n if (strlen($id) <= 0)\n {\n echo \"Nao existe valores a serem editados\";\n echo \"<a href=./cadastra.php>Voltar</a> \";\n exit();\n }\n$result = lookup($id);\n\n presentInputForm(\n ...
[ "0.7816347", "0.7596679", "0.7523736", "0.7507866", "0.74850917", "0.7484996", "0.73916554", "0.73578036", "0.7320455", "0.72522503", "0.72508174", "0.7244742", "0.71608883", "0.71302754", "0.7108273", "0.7108121", "0.71059984", "0.71059984", "0.7095917", "0.7095345", "0.7091...
0.0
-1
default functin, redirects to login page if no teacher logged in yet
public function index() { if ($this->session->userdata('is_login') != 1) redirect(site_url('login'), 'refresh'); if ($this->session->userdata('etutor_login') == 1) redirect(site_url('etutor/dashboard'), 'refresh'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index() {\n if ($this->session->userdata('teacher_login') != 1)\n redirect(base_url() . 'login', 'refresh');\n if ($this->session->userdata('teacher_login') == 1)\n redirect(base_url() . 'teacher/dashboard', 'refresh');\n }", "public function index()\n {\...
[ "0.8073319", "0.798931", "0.72585934", "0.7137337", "0.6831261", "0.6826079", "0.67710876", "0.6706382", "0.6698855", "0.66926754", "0.66671413", "0.6651804", "0.6644545", "0.66041917", "0.6597004", "0.6596666", "0.65538514", "0.65429306", "0.65424216", "0.6528013", "0.652639...
0.65938145
16
set up constant fixtures
public function setUp(): void { self::$mockVerificationId = "intl_ver_fakeId"; self::$mockVerificationWritable = new IntlVerificationWritable(); self::$mockIntlVerificationResponse = new IntlVerification(); self::$mockIntlVerificationResponse->setId(self::$mockVerificationId); // Bulk Fixture $item1 = new MultipleComponentsIntl(); $item2 = new MultipleComponentsIntl(); $item3 = new MultipleComponentsIntl(); $item1->setPrimaryLine("123 street"); $item2->setPrimaryLine("456 street"); $item3->setPrimaryLine("789 street"); self::$mockMultipleComponentsList = new IntlVerificationsPayload(); self::$mockMultipleComponentsList->setAddresses([$item1, $item2, $item3]); $resp1 = new IntlVerificationOrError(); $resp2 = new IntlVerificationOrError(); $resp3 = new IntlVerificationOrError(); $resp1->setPrimaryLine("123 street"); $resp2->setPrimaryLine("456 street"); $resp3->setPrimaryLine("789 street"); self::$mockIntlVerificationBulkResponse = new IntlVerifications(); self::$mockIntlVerificationBulkResponse->setAddresses(array ($resp1, $resp2, $resp3)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setUp() {\n\t\t$options = [\n\t\t\t'db' => [\n\t\t\t\t'adapter' => 'Connection',\n\t\t\t\t'connection' => $this->_connection,\n\t\t\t\t'fixtures' => $this->_fixtures\n\t\t\t]\n\t\t];\n\n\t\tFixtures::config($options);\n\t\tFixtures::save('db');\n\t}", "public function setUp()\n {\n $fol...
[ "0.7087405", "0.7080009", "0.68825936", "0.68241495", "0.68148834", "0.6795175", "0.67844933", "0.6782415", "0.67604476", "0.671429", "0.6707923", "0.67047775", "0.66827434", "0.66385704", "0.6630408", "0.6606315", "0.6602686", "0.6594592", "0.6590731", "0.65746695", "0.65717...
0.0
-1
Register the service provider.
public function register() { $this->app->singleton('command.contractor.send.emails', function ($app) { return new SendEmails(); }); $this->commands('command.contractor.send.emails'); $this->app->singleton('command.contractor.check.emails', function ($app) { return new CheckDeadlines(); }); $this->commands('command.contractor.check.emails'); }
{ "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
Preform booting of services...
public function boot() { if (!$this->app->routesAreCached()) { $this->app->router->group(['namespace' => 'Kregel\Contractor\Http\Controllers'], function ($router) { require __DIR__.'/Http/routes.php'; }); } $this->loadViewsFrom(__DIR__.'/../resources/views', 'contractor'); $this->publishes([ __DIR__.'/../resources/views' => base_path('resources/views/vendor/contractor'), ], 'views'); $this->publishes([ __DIR__.'/../config/config.php' => config_path('kregel/contractor.php'), ], 'config'); $this->publishes([ __DIR__.'/../database/migrations/' => database_path('migrations/'), ], 'migrations'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function boot()\n {\n if ($this->booted) {\n return;\n }\n\n array_walk($this->loadedServices, function ($s) {\n $this->bootService($s);\n });\n\n $this->booted = true;\n }", "public function boot(): void\n {\n if ($this->booted) {\n...
[ "0.81306547", "0.79847085", "0.7729253", "0.7632548", "0.75944704", "0.7586324", "0.7586324", "0.7586324", "0.7586324", "0.75295055", "0.7468294", "0.7468294", "0.7468294", "0.7468294", "0.74171", "0.74171", "0.7377308", "0.73657596", "0.7357651", "0.73409384", "0.73409384", ...
0.0
-1
Get the services provided by the provider.
public function provides() { return []; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public function getServices()\n {\n if (is_null($this->serviceProviders)) {\n $this->serviceProviders = $this->getServiceProviders();\n }\n\n return $this->serviceProviders;\n }", "protected function getServices()\n {\n return $this->services;\n }", "pro...
[ "0.79039633", "0.7667588", "0.76229626", "0.75573224", "0.7470691", "0.7423859", "0.7423859", "0.7423859", "0.7409516", "0.736475", "0.736475", "0.7363987", "0.7322196", "0.71889", "0.7162814", "0.71509963", "0.7137116", "0.70622355", "0.7047945", "0.70362085", "0.70213807", ...
0.0
-1
Lists all States models.
public function actionIndex() { $searchModel = new StatesSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); if(Yii::$app->request->isAjax && Yii::$app->request->post('status_token')) { $id = Yii::$app->request->post('id'); $model = $this->findModel($id); return $this->changeStatus($model); } return $this->render('index', [ 'searchModel' => $searchModel, 'dataProvider' => $dataProvider, ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStateList() {\n $states = State::latest()->paginate(10);\n return $states;\n }", "public function fetchAll()\n\t{\n\t\t$states = $this->getStatesModel()->fetchAll();\n\t\treturn $states;\n\t}", "public static function get_all_states()\n {\n $query = new Query;\n ...
[ "0.7283279", "0.6977766", "0.68433505", "0.6832695", "0.6695995", "0.66493887", "0.6639326", "0.6548357", "0.6479111", "0.6472678", "0.6450991", "0.6395246", "0.6392002", "0.63797766", "0.63699", "0.6369236", "0.63400453", "0.6296572", "0.629589", "0.62736213", "0.62472576", ...
0.66998833
4
Displays a single States model.
public function actionView($id) { return $this->render('view', [ 'model' => $this->findModel($id), ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(State $state)\n {\n //\n }", "public function show($id)\n {\n\t\t$validUser = $this->CheckUser();\n\t\tif($validUser) return\tview('errors.404');\n\n $state = State::findOrFail($id);\n\n return view('state.show', compact('state'));\n }", "public function show($id)\...
[ "0.7362048", "0.70953625", "0.69689673", "0.6899548", "0.6869813", "0.67824715", "0.67346084", "0.6678377", "0.65433425", "0.6502715", "0.6462656", "0.64348304", "0.6431584", "0.6408287", "0.64033294", "0.6362452", "0.63256836", "0.63177353", "0.6308643", "0.6279305", "0.6275...
0.0
-1
Creates a new States model. If creation is successful, the browser will be redirected to the 'view' page.
public function actionCreate() { $model = new States(); if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['view', 'id' => $model->id]); } else { return $this->render('create', [ 'model' => $model, ]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n {\n $model = new callStates();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]...
[ "0.7756728", "0.7726155", "0.7225145", "0.7225145", "0.70582044", "0.701823", "0.69757575", "0.69082063", "0.6899653", "0.6861414", "0.68595314", "0.68527156", "0.6807314", "0.6777306", "0.6776655", "0.6759942", "0.67380154", "0.67326474", "0.66638076", "0.6638897", "0.661631...
0.8731533
0
Updates an existing States model. If update is successful, the browser will be redirected to the 'view' page.
public function actionUpdate($id) { $model = $this->findModel($id); if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['view', 'id' => $model->id]); } else { return $this->render('update', [ 'model' => $model, ]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionUpdate($id)\n\t{\n\t\t$this->addBreadCrumb(at('Update').' #'.$id);\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['ReferenceGeoStates']))\n\t\t{\n\t\t\t$model->attribut...
[ "0.70003664", "0.656805", "0.65471405", "0.64909405", "0.64526284", "0.6431694", "0.6364638", "0.6346686", "0.63202477", "0.63178647", "0.629842", "0.62715554", "0.6222383", "0.62068325", "0.6199387", "0.6197443", "0.6195178", "0.6171616", "0.6164162", "0.6147175", "0.6147103...
0.0
-1
Deletes an existing States model. If deletion is successful, the browser will be redirected to the 'index' page.
public function actionDelete($id) { $this->findModel($id)->delete(); return $this->redirect(['index']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionDelete()\n\t{\n\t\t// using the default layout 'protected/views/layouts/main.php'\n\t\t\n\t\t\n\t\t$this->checkUser();\n\t\t$this->checkActivation();\n\t//\t$model = new Estate;\n\t\t\n\t\tif($model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$model=Estate::model()->findbyPk($_GET['...
[ "0.7323108", "0.6855333", "0.6803719", "0.6726623", "0.66806775", "0.6647382", "0.65186155", "0.64857334", "0.64601755", "0.64239126", "0.6373411", "0.6368543", "0.6357057", "0.6349683", "0.6349683", "0.63431084", "0.63117504", "0.6309615", "0.630731", "0.630731", "0.62974644...
0.0
-1
Determine if the user is authorized to make this request.
public function authorize() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authorize()\n {\n if ($this->user() !== null) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }"...
[ "0.8401071", "0.8377486", "0.8377486", "0.8344406", "0.8253731", "0.824795", "0.8213121", "0.8146598", "0.81115526", "0.8083369", "0.7991986", "0.79907674", "0.79836637", "0.79604936", "0.79516214", "0.79494005", "0.79265946", "0.7915068", "0.79001635", "0.7894822", "0.789145...
0.0
-1
Get the validation rules that apply to the request.
public function rules() { return [ 'closes_at' => 'required|date_format:"d/m/Y"', 'limit' => 'required|numeric|min:500', ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "public function getRules()\n {\n return $this->validator->getRules();\n }", "public function getValidationRules()\n {\n $rules = [];\n\n // Get the sche...
[ "0.83426243", "0.8012348", "0.79353446", "0.79247683", "0.79231435", "0.7902978", "0.7858349", "0.7789196", "0.7782927", "0.7761698", "0.77361906", "0.7731824", "0.7709204", "0.7691742", "0.7685366", "0.7681417", "0.7681417", "0.7681417", "0.7681417", "0.7681417", "0.7681417"...
0.0
-1
Get custom messages for validator errors.
public function messages() { return [ 'closes_at.required' => 'Informe o próximo fechamento do cartão', 'closes_at.date_format' => 'A data de fechamento deve estar no formato "d/m/Y"', 'limit.required' => 'Informe o limite do cartão', 'limit.numeric' => 'O limite deve conter apenas números', 'limit.min' => 'O limite mínimo do cartão deve ser de R$ 500', ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getValidationErrorMessages() {}", "public function customValidationMessages()\n {\n return [\n 'role_id.required' => 'The role ID is required.',\n 'role_id.exists' => 'The role ID provided does not exist.',\n 'staff_code.required' => 'The staff code is r...
[ "0.7999786", "0.79715955", "0.7780957", "0.774656", "0.774656", "0.7706091", "0.77023476", "0.7665299", "0.76568407", "0.7629212", "0.7562246", "0.7557946", "0.7420745", "0.73959243", "0.73619086", "0.7361463", "0.7348927", "0.73398817", "0.7322716", "0.73136944", "0.7311983"...
0.0
-1
Returns the content set to this page
public function getContent() { return $this->_content; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getContent(){\n return $this->getPage();\n }", "public function get_content()\n\t\t{\n\t\t\tif (!$this->is_cached()) {\n\t\t\t\t$this->load();\n\t\t\t}\n\n\t\t\treturn $this->content;\n\t\t}", "public function getAllContent()\n {\n return $this->content;\n }", "...
[ "0.7974905", "0.7411684", "0.74112064", "0.7343837", "0.7343837", "0.7343837", "0.72913414", "0.72107834", "0.7181987", "0.7155147", "0.7154089", "0.71387756", "0.71318966", "0.71242785", "0.7115559", "0.7106862", "0.710645", "0.710645", "0.710645", "0.70942175", "0.7087297",...
0.6995587
62
Sets content to this page
public function setContent($content) { if ($content instanceof Zend_View) { $this->_content = $content; return $this; } if (is_scalar($content)) { $this->_content = (string) $content; return $this; } throw new Scil_Services_Form_Wizard_Exception(__METHOD__.' content type not recognised : '.gettype($content).', must be Zend_View or scalar.'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setContent() {}", "abstract function setContent();", "public function setContent($content, $data=null){\n\n\t\t$this->content = $content;\n\n\t\t$this->page_data = $data;\n\n\t\t$this->index();\n\n\t\t\n\n\t}", "public function setPageContent(string $content): void {\n\t\t$this->m_pageCont...
[ "0.79065496", "0.76950467", "0.7420616", "0.7338709", "0.7280615", "0.72548413", "0.7220917", "0.72158235", "0.7090891", "0.7086734", "0.70655435", "0.70655435", "0.70655435", "0.70655435", "0.70655435", "0.70655435", "0.70655435", "0.70655435", "0.70655435", "0.70655435", "0...
0.0
-1
Renders the page to a string ready for display
public function render(Zend_Form $form) { // Get the current view if ( ! ($view = $this->getView()) instanceof Zend_View) { throw new Scil_Services_Form_Wizard_Exception(__METHOD__.' no view found, unable to render'); } // Set the title and description $view->title = $this->getTitle(); $view->description = $this->getDescription(); // Apply rendered form to the view $view->content = $this->getContent(); $view->form = $form; // Return the view return $view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function render_page();", "public function render() {\n\t\t$this->render_page_content();\n\t}", "public function render() {\n\t\treturn $this->template( 'page' );\n\t}", "public function render_page() {\n\t\t$this->render_template();\n\t}", "public function render() {\n $vars = array('page' => ...
[ "0.8063094", "0.7739284", "0.7715196", "0.76336336", "0.76025796", "0.7519499", "0.75016433", "0.75016433", "0.7497792", "0.7445451", "0.7428782", "0.73872125", "0.7304046", "0.72549486", "0.72372395", "0.7212756", "0.71140224", "0.7106806", "0.7104489", "0.71034354", "0.7094...
0.0
-1
The pages valid state based on the models contained within. Always returns true in this case as content pages are static
public function isValid() { return TRUE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function isPage( )\n\t{\n\t\t/**\n\t\t * The only pages with directories are mobile pages and dynamic pages (commerce & blog)\n\t\t */\n\t\tif( isset( $this->request['directories'] ) === true\n\t\t\t&& count( $this->request['directories'] ) > 0\n\t\t\t&& $this->request['directories'] !== 'mobile' && $this-...
[ "0.65824765", "0.6548402", "0.6548402", "0.6518476", "0.6465392", "0.6456327", "0.6407298", "0.6320219", "0.63201", "0.6313125", "0.63009804", "0.62927365", "0.6277907", "0.62608427", "0.62452894", "0.62168944", "0.6193905", "0.6182601", "0.61791384", "0.6134977", "0.61348855...
0.0
-1
Serialises the model for persistent storage or transmission [SPL] Serializable
public function serialize(array $toSerialize = array()) { $toSerialize += array( '_content' => $this->_content, ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function serialize();", "abstract public function serialize();", "public abstract function serialize();", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public...
[ "0.71245605", "0.71245605", "0.7104734", "0.70749474", "0.70749474", "0.7074613", "0.7074613", "0.7074613", "0.7074613", "0.7074613", "0.7074613", "0.6881866", "0.6881866", "0.6881866", "0.67735595", "0.6748177", "0.6748177", "0.6696263", "0.6569031", "0.6396257", "0.6301981"...
0.0
-1
upon construction, map the values from the $sysmodules_row if available
public function __construct($applicantsfamilydatasiblings_row = null) { if( !is_null($applicantsfamilydatasiblings_row) && $applicantsfamilydatasiblings_row instanceof Zend_Db_Table_Row ) { $this->APPLICANTS_FAMILY_DATA_SIBLINGS_ID = $applicantsfamilydatasiblings_row->APPLICANTS_FAMILY_DATA_SIBLINGS_ID; $this->APPLICANTS_PERSONAL_DATA_ID = $applicantsfamilydatasiblings_row->APPLICANTS_PERSONAL_DATA_ID; $this->APPLICANTS_FAMILY_DATA_SIBLINGS_FULLNAME = $applicantsfamilydatasiblings_row->APPLICANTS_FAMILY_DATA_SIBLINGS_FULLNAME; $this->APPLICANTS_FAMILY_DATA_SIBLINGS_TELNO = $applicantsfamilydatasiblings_row->APPLICANTS_FAMILY_DATA_SIBLINGS_TELNO; $this->APPLICANTS_FAMILY_DATA_SIBLINGS_OCCUPATION = $applicantsfamilydatasiblings_row->APPLICANTS_FAMILY_DATA_SIBLINGS_OCCUPATION; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _customFieldsMapping($rowData)\n {\n foreach ($this->_fieldsMap as $systemFieldName => $fileFieldName) {\n if (array_key_exists($fileFieldName, $rowData)) {\n $rowData[$systemFieldName] = $rowData[$fileFieldName];\n }\n }\n\n $rowData = ...
[ "0.5945336", "0.56704086", "0.56704086", "0.56704086", "0.5653592", "0.55858815", "0.55317426", "0.5512988", "0.53946906", "0.53876394", "0.53248733", "0.5235498", "0.5235498", "0.5227403", "0.51914734", "0.51908815", "0.51805174", "0.5176732", "0.51482505", "0.5115132", "0.5...
0.0
-1
magic function __set to set the attributes of the User model
public function __set($name, $value) { switch($name) { case 'APPLICANTS_FAMILY_DATA_SIBLINGS_ID': //if the id isn't null, you shouldn't update it! if( !is_null($this->APPLICANTS_FAMILY_DATA_SIBLINGS_ID) ) { throw new Exception('Cannot update APPLICANTS_FAMILY_DATA_SIBLINGS_ID!'); } break; } //set the attribute with the value $this->$name = $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetUserAttributes()\n {\n }", "public function testSetAllUserAttributes()\n {\n }", "public function set()\n\t{\n\t\t$this->created_at = date(TIMESTAMP_FORMAT);\n $user = new SessionUser();\n\t\t$this->created_by = $user->getID();\t\t\n\t}", "private function _setIdenti...
[ "0.70624894", "0.6941756", "0.6779873", "0.6688796", "0.65628785", "0.6488684", "0.6429985", "0.64272714", "0.63778", "0.6330435", "0.62896156", "0.6260077", "0.625488", "0.6209203", "0.6181243", "0.61812425", "0.6176599", "0.61657405", "0.61397165", "0.6133676", "0.611486", ...
0.0
-1
Display a listing of the resource.
public function index() { $delivery_approvals = DeliveryApproval::all(); $users_array = Helpers::getUserArray(User::all()); return view('deliveryapprovals.index', [ 'delivery_approvals' => $delivery_approvals, 'users_array' => $users_array, ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Display the specified resource.
public function show($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
Includes the files needed for the Bookings
function wpbs_include_files_booking() { // Get booking dir path $dir_path = plugin_dir_path(__FILE__); // Include main Booking class if (file_exists($dir_path . 'class-booking.php')) { include $dir_path . 'class-booking.php'; } // Include the db layer classes if (file_exists($dir_path . 'class-object-db-bookings.php')) { include $dir_path . 'class-object-db-bookings.php'; } if (file_exists($dir_path . 'class-object-meta-db-bookings.php')) { include $dir_path . 'class-object-meta-db-bookings.php'; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function includes() {\n\t\trequire_once( PRODUCT_LIST_DIR . 'classes/class-product_list.php' );\n\t\t//require_once( PRODUCT_LIST_DIR . 'classes/class-yc_admin_cursos-settings.php' );\n\t}", "public function includes() {\n \n include_once( 'widgets/carousel.php' );\n include_once...
[ "0.663224", "0.64679646", "0.630916", "0.6302431", "0.63000786", "0.62894917", "0.6273061", "0.6270865", "0.62679005", "0.6245627", "0.6169133", "0.6150016", "0.6125727", "0.6090514", "0.608698", "0.6047844", "0.6034697", "0.5996444", "0.59885335", "0.5985435", "0.59595305", ...
0.69766146
0
Register the class that handles database queries for the Bookings
function wpbs_register_database_classes_bookings($classes) { $classes['bookings'] = 'WPBS_Object_DB_Bookings'; $classes['bookingmeta'] = 'WPBS_Object_Meta_DB_Bookings'; return $classes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cl_ing_ingreso_det() {\r\n\r\n $this->database = new Database();\r\n }", "public function __construct()\n {\n $this->customers = new CustomerDB();\n }", "public function dbInstance();", "public function __construct(){\n //autoloading\n $this->db = new \\Konekta();\n\n }...
[ "0.58525455", "0.55904526", "0.55553365", "0.55191755", "0.55009913", "0.54924935", "0.5457468", "0.54408234", "0.54261345", "0.54203653", "0.5407292", "0.5399944", "0.539701", "0.53891337", "0.5381633", "0.5380312", "0.5380189", "0.5363274", "0.53598493", "0.5358861", "0.533...
0.64219433
0
Returns an array with WPBS_Booking objects from the database
function wpbs_get_bookings($args = array(), $count = false) { $bookings = wp_booking_system()->db['bookings']->get_bookings($args, $count); /** * Add a filter hook just before returning * * @param array $bookings * @param array $args * @param bool $count * */ return apply_filters('wpbs_get_bookings', $bookings, $args, $count); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getBookings(){\r\n\t\t$inx = 0;\r\n\t\t$arrbook = array();\r\n\t\t$conn = getConnection();\r\n //These are the specific fields\r\n $stmt = $conn->prepare(\"SELECT B.idreservations, B.rs_checkin, B.rs_checkout, G.gs_name FROM booking B, guests G where G.reserva...
[ "0.7538633", "0.7255412", "0.7070308", "0.6983764", "0.6919388", "0.6912813", "0.68920493", "0.6808918", "0.6794719", "0.67831343", "0.6700685", "0.6690955", "0.6569792", "0.653663", "0.6495947", "0.64860266", "0.64771855", "0.6438866", "0.64347386", "0.6405363", "0.6398519",...
0.63275284
26
Gets a booking from the database
function wpbs_get_booking($booking) { return wp_booking_system()->db['bookings']->get_object($booking); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getBookingDetailsByBookingId($bookingid) {\n $query = \"SELECT * FROM `bookingdetails` WHERE BookingId='\".$bookingid.\"'\";\n $result = Database::selectQuery($query);\n if($result == null) {\n return null;\n } else {\n return $result;\n }\n }", ...
[ "0.68165016", "0.6689585", "0.6688761", "0.6624235", "0.6612698", "0.6609452", "0.66028154", "0.65940285", "0.6566788", "0.6486003", "0.6486003", "0.6486003", "0.6486003", "0.6486003", "0.64596516", "0.6439326", "0.6397243", "0.63886625", "0.6357851", "0.6353273", "0.6336224"...
0.7391453
0
Inserts a new booking into the database
function wpbs_insert_booking($data) { return wp_booking_system()->db['bookings']->insert($data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addBooking()\r\n {\r\n $loggedin = isset($_SESSION['user']);\r\n if(! $loggedin)\r\n {\r\n return redirect('');\r\n }\r\n $user = $_SESSION['user']->account_no;\r\n\r\n $showtime = $_POST['showtime'];\r\n $num_seats = $_POST['num_seats'];\r\n\r\n App::get('database')->...
[ "0.72324854", "0.7022042", "0.6997521", "0.6811457", "0.6730472", "0.65867186", "0.65729856", "0.6424492", "0.64137965", "0.63904387", "0.63881373", "0.637843", "0.63579226", "0.6351279", "0.6337271", "0.6236255", "0.62203753", "0.6162544", "0.6160961", "0.61572355", "0.61406...
0.7374026
0
Updates a booking from the database
function wpbs_update_booking($booking_id, $data) { return wp_booking_system()->db['bookings']->update($booking_id, $data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateBooking(Request $request, $id)\n{\n $booking = Booking::find($id);\n $booking->update($request->all());\n\n $response = [\n 'message'=>'Update Succesfully',\n 'booking' => $booking,\n \n \n ];\n\n return response($response); \n}", "public function...
[ "0.75703937", "0.7483067", "0.7483067", "0.7483067", "0.7483067", "0.7483067", "0.73871624", "0.71963525", "0.70911264", "0.7053978", "0.70034367", "0.70034367", "0.70034367", "0.70034367", "0.70034367", "0.70034367", "0.69936186", "0.6969666", "0.69580436", "0.69411355", "0....
0.7757144
0
Deletes a booking from the database
function wpbs_delete_booking($booking_id) { return wp_booking_system()->db['bookings']->delete($booking_id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionDelete($id)\n\t{\n\t\t$id = (int) $id;\n\t\tYii::app()->db->createCommand(\"DELETE FROM booking WHERE id='{$id}'\")->execute();\n\t}", "public function destroy(Booking $booking)\n {\n //\n }", "public function destroy(Booking $booking)\n {\n //\n }", "public fu...
[ "0.7600376", "0.7498229", "0.7498229", "0.7498229", "0.7390713", "0.7155909", "0.7040999", "0.70099884", "0.68403435", "0.6787544", "0.67712027", "0.67559654", "0.673261", "0.67140347", "0.6641528", "0.65998256", "0.65989393", "0.65809923", "0.6577738", "0.65526277", "0.65205...
0.7692047
0
Inserts a new meta entry for the booking
function wpbs_add_booking_meta($booking_id, $meta_key, $meta_value, $unique = false) { return wp_booking_system()->db['bookingmeta']->add($booking_id, $meta_key, $meta_value, $unique); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insert()\n {\n $this->_checkItem();\n $service = $this->getService();\n $entry = $service->newItemEntry();\n $this->setEntry($entry);\n $this->_prepareEnrtyForSave();\n $this->getEntry()->setItemType($this->_getItemType());\n $entry = $service->in...
[ "0.6270945", "0.6206249", "0.6186913", "0.6150272", "0.6046951", "0.60208124", "0.5947092", "0.58898914", "0.588254", "0.58805084", "0.58191466", "0.5761349", "0.5738335", "0.5727745", "0.57005835", "0.5673149", "0.5660738", "0.5649115", "0.5607448", "0.5578807", "0.5577788",...
0.7134083
0
Updates a meta entry for the booking
function wpbs_update_booking_meta($booking_id, $meta_key, $meta_value, $prev_value = '') { return wp_booking_system()->db['bookingmeta']->update($booking_id, $meta_key, $meta_value, $prev_value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update_booking_meta( $meta ) {\n foreach ( $meta as $key => $value ) {\n if ( $key !== 'services' ) {\n update_post_meta( $this->id, '_' . $key, $value );\n } else {\n wp_set_post_terms( $this->id, $value, YITH_WCBK_Post_Types:...
[ "0.705349", "0.6823063", "0.68111444", "0.66619456", "0.6560141", "0.6476049", "0.63927746", "0.6223144", "0.6060355", "0.6024493", "0.5988447", "0.5980762", "0.596906", "0.58837885", "0.58753985", "0.58753985", "0.58753985", "0.58753985", "0.58753985", "0.585582", "0.5834761...
0.75284314
0
Returns a meta entry for the booking
function wpbs_get_booking_meta($booking_id, $meta_key = '', $single = false) { return wp_booking_system()->db['bookingmeta']->get($booking_id, $meta_key, $single); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_booking_meta() {\n $meta = array();\n foreach ( $this->get_default_meta_data() as $key => $value ) {\n if ( $key !== 'services' ) {\n $meta[ $key ] = get_post_meta( $this->id, '_' . $key, true );\n } else {\n $me...
[ "0.66069955", "0.6369954", "0.61451024", "0.6119425", "0.6099613", "0.6099613", "0.6096732", "0.5950852", "0.59049326", "0.59042037", "0.5893344", "0.5893344", "0.58485353", "0.58485353", "0.58227235", "0.58227235", "0.58227235", "0.58227235", "0.58227235", "0.5778372", "0.57...
0.7402602
0
Returns the translated meta entry for the booking
function wpbs_get_translated_booking_meta($booking_id, $meta_key, $language_code) { $translated_meta = wpbs_get_booking_meta($booking_id, $meta_key . '_translation_' . $language_code, true); if (!empty($translated_meta)) { return $translated_meta; } return wpbs_get_booking_meta($booking_id, $meta_key, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wpbs_get_booking_meta($booking_id, $meta_key = '', $single = false)\n{\n\n return wp_booking_system()->db['bookingmeta']->get($booking_id, $meta_key, $single);\n\n}", "function get_booking_meta() {\n $meta = array();\n foreach ( $this->get_default_meta_data() as $key => $value )...
[ "0.67563593", "0.61785555", "0.5706054", "0.5674821", "0.5674821", "0.5669658", "0.5592495", "0.5554754", "0.5520171", "0.5511923", "0.5511923", "0.54742587", "0.5471152", "0.5466725", "0.5466725", "0.5459793", "0.545514", "0.5429134", "0.54226637", "0.5405048", "0.53978944",...
0.71295846
0
Removes a meta entry for the booking
function wpbs_delete_booking_meta($booking_id, $meta_key, $meta_value = '', $delete_all = '') { return wp_booking_system()->db['bookingmeta']->delete($booking_id, $meta_key, $meta_value, $delete_all); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function magazine_remove_entry_meta() {\n\tif ( ! is_single() ) {\n\t\tremove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 );\n\t\tremove_action( 'genesis_entry_footer', 'genesis_post_meta' );\n\t\tremove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 );\n\t}\n\n}"...
[ "0.6817855", "0.6588423", "0.65615815", "0.6523105", "0.6522162", "0.6520677", "0.6477579", "0.6446941", "0.64313036", "0.6418483", "0.63549185", "0.63247377", "0.6246762", "0.62242144", "0.62033534", "0.61713517", "0.6099392", "0.602397", "0.59930724", "0.59737945", "0.59490...
0.7063796
0
Check if a booking with that hash number exists
function wpbs_get_booking_by_hash($hash) { $bookings = wpbs_get_bookings(array('invoice_hash' => $hash)); if (empty($bookings)) { return false; } $booking = array_shift($bookings); return $booking; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hashExists($hash);", "function checkNextReserve($book_no)\n\t{\n\t\t$q = $this->db->query(\"SELECT book_no FROM reserves WHERE book_no LIKE '{$book_no}'\");\n\t\treturn $q->num_rows();\n\t}", "private function isBooked() {\n // count all bookings from program\n $statement = 'SELECT COUNT...
[ "0.65199524", "0.62317127", "0.60568327", "0.5945336", "0.5848142", "0.5742169", "0.5720801", "0.5694954", "0.56876147", "0.56856644", "0.5681887", "0.560934", "0.55948025", "0.5587978", "0.5565473", "0.55646443", "0.5513759", "0.55018055", "0.54998964", "0.5484474", "0.54803...
0.6886352
0
Display a listing of the resource.
public function index() { if(Input::has('o')){ $order = Input::get('o'); switch ($order) { case 'v': $orderBy = "fake_views"; $sortName = "Most Viewed"; break; case 'r': $orderBy = "rating"; $sortName = "Top Rated"; break; case 'f': $orderBy = "favorites"; $sortName = "Most Popular"; break; default: $orderBy = "publish_date"; $sortName = "Newest"; break; } } else { $order = ""; $orderBy = "publish_date"; $sortName = "Newest"; } $network = $this->network; $theme = $network->theme; $theme = check_for_tour_theme($theme); Theme::setActive($theme); $data = $this->data; $data['page_title'] = $network->name; $data['sliders'] = Content::ofNetwork($this->network->id)->published()->featured(1)->take(config('yppmembers.homepage_sliders'))->orderBy(\DB::raw("RAND()"))->get(); $data['contents'] = Content::ofNetwork($this->network->id)->published()->featured(0)->take(config('yppmembers.homepage_contents'))->orderBy($orderBy,'desc')->paginate( config('yppmembers.per_page') ); $data['mostviews'] = Content::ofNetwork($this->network->id)->published()->featured(0)->take(config('yppmembers.homepage_mostviews'))->orderBy('views','desc')->get(); $data['toprateds'] = Content::ofNetwork($this->network->id)->published()->featured(0)->take(config('yppmembers.homepage_toprateds'))->orderBy('rating','desc')->get(); $data['most_used_tags'] = Tag::ofNetwork($this->network->id)->mostUsedInNetwork($this->network->id)->take(config('yppmembers.homepage_most_used_tags'))->get(); $data['dvds'] = Dvd::ofNetwork($this->network->id)->take(config('yppmembers.homepage_dvds'))->orderBy('publish_date','desc')->get(); $tags = Tag::ofNetwork($network->id)->mostUsedInNetwork($network->id)->paginate( config('yppmembers.per_page') ); $ids = array(0); foreach($tags as $tag) { $tag_data = $tag->getTopThumb($ids, $this->network->id); $tag->top_thumb = $tag_data['thumb']; $ids[] = $tag_data['id']; } $data['tags'] = $tags; $data['sortname'] = $sortName; return Theme::view('video.index',$data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Display the specified resource.
public function show($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
Create a new message instance.
public function __construct( $nama, $kode, $password, $tanggalMulaiUjian, $tanggalSelesaiUjian, $realFileKartuUjian, $fileNameKartuUjian, $durasi, $kodeJadwalUjian ) { $this->nama = $nama; $this->kode = $kode; $this->kodeJadwalUjian = $kodeJadwalUjian; $this->durasi = $durasi; $this->password = $password; $this->realFileKartuUjian = $realFileKartuUjian; $this->fileNameKartuUjian = $fileNameKartuUjian; $this->tanggalMulaiUjian = $tanggalMulaiUjian; $this->tanggalSelesaiUjian = $tanggalSelesaiUjian; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createMessage()\n {\n $message = new Message(new Swift_Message);\n\n\n // If a global from address has been specified we will set it on every message\n // instances so the developer does not have to repeat themselves every time\n // they create a new message. We wi...
[ "0.81376195", "0.7959614", "0.77619994", "0.7713793", "0.76559645", "0.7553059", "0.7458076", "0.71510184", "0.6852663", "0.68347865", "0.67154217", "0.6689976", "0.6683088", "0.6644564", "0.6628052", "0.6549025", "0.6514292", "0.6501647", "0.645071", "0.645071", "0.645071", ...
0.0
-1
Display a listing of the resource.
public function index() { $data['allData'] = Supplier::all(); return view('backend.supplier.index',$data); }
{ "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('backend.supplier.add_supplier'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $data = New Supplier(); $data->name = $request->name; $data->email = $request->email; $data->mobile = $request->mobile; $data->address = $request->address; $data->created_by = Auth::user()->id; $data->save(); return redirect()->route('view-supplier')->with('success','Supplier inserted successfully!'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { $editData = Supplier::find($id); return view('backend.supplier.edit_supplier',compact('editData')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { $updateData = Supplier::find($id); $updateData->name = $request->name; $updateData->email = $request->email; $updateData->mobile = $request->mobile; $updateData->address = $request->address; $updateData->updated_by = Auth::user()->id; $updateData->update(); return redirect()->route('view-supplier')->with('success','Supplier updated successfully!'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { $daleteData = Supplier::find($id); $daleteData->delete(); 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
get questions of the profession
public function profQuestions($id) { $response = Profession::with('questions')->findOrFail($id); return response()->json($response, 200); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getQuestions()\n {\n return DB::table('questionbank_quizzes')\n ->where('quize_id','=',$this->id)\n ->orderBy('subject_id')\n ->get();\n }", "function getQuestions()\n\t{\n\t\treturn $this->aQuestion;\n\t}", "public funct...
[ "0.6646337", "0.6645264", "0.6597434", "0.6459876", "0.6459876", "0.64455765", "0.6444603", "0.64229804", "0.6393119", "0.6390109", "0.63793755", "0.63462096", "0.6325036", "0.6317388", "0.63144994", "0.6308607", "0.63046885", "0.629278", "0.62918615", "0.6217348", "0.6164616...
0.5743996
55
Loads the fixtures files and return the loaded objects.
public function load(array $fixturesFiles, array $parameters = [], array $objects = [], PurgeMode $purgeMode = null): array;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function myLoadFixtures()\n {\n $em = $this->getDatabaseManager();\n\n // load fixtures\n $client = static::createClient();\n $classes = array(\n // classes implementing Doctrine\\Common\\DataFixtures\\FixtureInterface\n 'Demofony2\\AppBundle\\DataFixtur...
[ "0.7155395", "0.6856502", "0.67478627", "0.66942835", "0.66443974", "0.6579319", "0.6578975", "0.65382236", "0.65232474", "0.64497346", "0.64298904", "0.6341999", "0.6339953", "0.63045686", "0.62995315", "0.6273572", "0.62697446", "0.62552804", "0.62326115", "0.6231441", "0.6...
0.7392318
0
$where = ['st' => ['',0]];
public static function getList($data=[],$field='*',$where=['st' => ['<>',0]]) { $order = "create_time desc"; if(!empty($data['title'])){ $where['title'] = ['like','%'.$data['title'].'%']; } if(!empty($data['city'])){ $where['city'] = ['like','%'.$data['city'].'%']; } if (!empty($data['paixu'])) { $order = $data['paixu'] . ' asc'; } if (!empty($data['paixu']) && !empty($data['sort_type'])) { $order = $data['paixu'] . ' desc'; } $list_ = self::where($where)->order($order)->field($field)->paginate(); return $list_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getValueAsWhereClause(): ?array;", "function where($s)\n{\n\t$this->tryModify();\n\tif(!isset($this->query['where'])) $this->query['where'] = array();\n\t$this->query['where'][] = $this->setWhereParams($s, func_get_args(), 1);\n\treturn $this;\n}", "public function where($table,$column,$data = ...
[ "0.60435176", "0.58912224", "0.57658046", "0.574386", "0.5701528", "0.56979966", "0.56979966", "0.5663098", "0.5644803", "0.5584505", "0.5571354", "0.5529872", "0.5518696", "0.5512297", "0.5491828", "0.547862", "0.54715496", "0.54708445", "0.546945", "0.5433582", "0.5426807",...
0.0
-1
Find similar usernames. This assumes you are using Eloquent with Laravel, if not, override this function in your class.
public function findSimilarUsernames(string $username) { $preferRegexp = $this->preferRegexp ?? $this->getModelGeneratorConfig()->getConfig('prefer_regexp', false); if (!$preferRegexp) { return $this->searchUsingLike($username); } try { return $this->searchUsingRegexp($username); } catch (QueryException $exception) { return $this->searchUsingLike($username); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _suggestUsername($name){\n $name = trim(strtolower($name));\n // pr($name); die('qq');\n $usernameCheck1 = $this->Players->find()->where(['username' => $name])->first();\n // pr($usernameCheck1); die('u name');\n if(!$usernameCheck1){\n $username = $name;\n }else{\n...
[ "0.63768333", "0.6048122", "0.5985277", "0.5898679", "0.5755743", "0.5739159", "0.57253975", "0.5658682", "0.5557933", "0.55320156", "0.5502373", "0.5493625", "0.54931307", "0.5472317", "0.54448634", "0.5443291", "0.54060113", "0.5381018", "0.5358927", "0.5234527", "0.5221841...
0.6832669
0
Check if the username is unique as is.
public function isUsernameUnique(string $username): bool { return static::where($this->getUsernameColumnName(), $username)->get()->count() === 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isUniqueUsername(){\n \tif(!empty($this->data['User']['username'])){\n \t\t$username = $this->data['User']['username'];\n\n \t\t$user = $this->find('first', array(\n \t\t\t'conditions' => array(\n \t\t\t\t'User.username' => $username,\n \t\t\t)\n \t\t));\n \t\tif(empty($user...
[ "0.8120353", "0.8064503", "0.7894779", "0.7833543", "0.7734784", "0.7693807", "0.75882375", "0.7586127", "0.7554866", "0.7505804", "0.7428888", "0.73944503", "0.73601353", "0.7324624", "0.7267923", "0.72563946", "0.72329223", "0.72272897", "0.7222256", "0.7212337", "0.7197369...
0.7845883
3
Search for similar usernames using LIKE.
private function searchUsingLike(string $username) { $exactMatches = static::where($this->getUsernameColumnName(), $username)->get(); if ($exactMatches) { return static::where($this->getUsernameColumnName(), 'LIKE', $username.'%')->get(); } return $exactMatches; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findSimilarUsernames(string $username)\n {\n $preferRegexp = $this->preferRegexp ?? $this->getModelGeneratorConfig()->getConfig('prefer_regexp', false);\n\n if (!$preferRegexp) {\n return $this->searchUsingLike($username);\n }\n\n try {\n return ...
[ "0.73186076", "0.6943806", "0.6847151", "0.6836033", "0.66249436", "0.658887", "0.65877783", "0.6481886", "0.6288706", "0.625853", "0.62211645", "0.62122476", "0.6207571", "0.6172583", "0.61368746", "0.61207384", "0.610137", "0.6099805", "0.6097742", "0.60674465", "0.6035184"...
0.73956454
0
Search for similar usernames using REGEXP. This will fail on some databases, so like should be used as a backup.
private function searchUsingRegexp(string $username) { return static::where($this->getUsernameColumnName(), 'REGEXP', $username.'('.$this->getSeparator().')?([0-9]*)?$')->get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findSimilarUsernames(string $username)\n {\n $preferRegexp = $this->preferRegexp ?? $this->getModelGeneratorConfig()->getConfig('prefer_regexp', false);\n\n if (!$preferRegexp) {\n return $this->searchUsingLike($username);\n }\n\n try {\n return ...
[ "0.68244237", "0.6714767", "0.6496078", "0.63577366", "0.6214287", "0.6056695", "0.6040509", "0.6009636", "0.5998991", "0.59309703", "0.5866985", "0.5843499", "0.576543", "0.574847", "0.5740015", "0.5717076", "0.5714146", "0.57130927", "0.5698051", "0.5696463", "0.5682797", ...
0.63068175
4
Alias for getUsernameColumnName for backwards compatibility.
private function getColumn(): string { return $this->getUsernameColumnName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUsernameColumnName(): string\n {\n return $this->usernameColumn ?? $this->getModelGeneratorConfig()->getConfig('column', 'username');\n }", "public function getColumnName();", "public function getFrontEndUserGroupColumnName() {}", "public function column_username($user)\n ...
[ "0.833809", "0.74434745", "0.68835133", "0.68434656", "0.6806118", "0.6771873", "0.67511886", "0.67086375", "0.6689292", "0.665468", "0.6491683", "0.64727765", "0.6428062", "0.640624", "0.63698393", "0.63567996", "0.635169", "0.6328611", "0.6318929", "0.6293386", "0.62755406"...
0.79381543
1
Get the username column name.
public function getUsernameColumnName(): string { return $this->usernameColumn ?? $this->getModelGeneratorConfig()->getConfig('column', 'username'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getColumn(): string\n {\n return $this->getUsernameColumnName();\n }", "public function username()\n {\n return backpack_authentication_column();\n }", "public static function username() {\n return 'user_id';\n }", "public function username() {\n re...
[ "0.8438552", "0.77026516", "0.7644313", "0.7595003", "0.74217266", "0.73610795", "0.73353124", "0.7290394", "0.7233597", "0.71988547", "0.71946585", "0.7169115", "0.71624476", "0.71230555", "0.70969915", "0.70937234", "0.7084786", "0.70772237", "0.7074892", "0.7073811", "0.70...
0.879286
0
Get the username separator.
private function getSeparator(): string { return $this->getModelGeneratorConfig()->getConfig('separator', ''); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUsername() : string\n {\n return explode(':', $this->uri->getUserInfo() ?: '')[0];\n }", "public function getUsername()\n {\n return $this->company_id.'+'.$this->username;\n }", "public function getSeparatorCharacter()\n\t{\n\t\treturn '_';\n\t}", "public function...
[ "0.6888869", "0.6585118", "0.6571701", "0.6551361", "0.65278155", "0.6439287", "0.6417153", "0.6412697", "0.63857436", "0.63857436", "0.63857436", "0.63857436", "0.63692605", "0.62867004", "0.6280606", "0.62644374", "0.6253215", "0.6227347", "0.6221849", "0.62177336", "0.6195...
0.0
-1
Get the model specific generator config. Since a model could extend the GeneratesUsernames trait, we need to check if it has any specific config that would change the behaviour of this trait. Eventually will deprecate the generatorConfig and change it to simply return an array that will then be passed to the generator.
private function getModelGeneratorConfig(): Generator { $generator = new Generator(); if (method_exists($this, 'generatorConfig')) { $this->generatorConfig($generator); } return $generator; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGeneratorConfig()\n {\n return $this->database->getGeneratorConfig();\n }", "protected function coreGenerators()\n {\n return [\n 'ultimate' => ['class' => 'dlds\\giixer\\generators\\ultimate\\Generator'],\n 'model' => ['class' => 'dlds\\giixer\\gen...
[ "0.728027", "0.5777113", "0.5775435", "0.5678496", "0.56554544", "0.5619798", "0.5557239", "0.55403304", "0.5513188", "0.55023575", "0.5497083", "0.547021", "0.5453373", "0.5358906", "0.5358226", "0.5326922", "0.5326106", "0.5317825", "0.5314144", "0.5311939", "0.5292985", ...
0.71254706
1
Display Attribute List details.
public function index() { return view('admin.attribute.attr_list'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Product Attributes\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the attributes.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/productsattributes/new/\", \"label\" => ...
[ "0.74649155", "0.7445827", "0.7364033", "0.7015769", "0.69824374", "0.69690114", "0.6943012", "0.68105793", "0.6781489", "0.6766011", "0.67005527", "0.66723764", "0.66669697", "0.6655513", "0.663444", "0.6621565", "0.6615252", "0.6615252", "0.6603645", "0.65911925", "0.658549...
0.7410825
2
Change status of the country.
public function changeStatus(ProductAttributeList $attribute) { // echo "<pre>";print_r($vendor);die; if($attribute->status == 'Active'){ $attribute->status ='Inactive'; }else{ $attribute->status ='Active'; } if($attribute->save()) { return redirect(route('attributes.index'))->with('success', trans('messages.attribute.change_status')); } return redirect(route('attributes.index'))->with('error', trans('messages.error')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCountry($newCountry){\n\t}", "public function changeStatus()\n {\n }", "function update_status() \n\t{\n global $order, $db;\n\n if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_PAYCO_ZONE > 0) ) {\n $check_flag = false;\n $check = $db->Execute(\"select zon...
[ "0.67059135", "0.6543043", "0.6426789", "0.6295612", "0.6251108", "0.62277246", "0.62194955", "0.62158203", "0.6193232", "0.61637706", "0.61616445", "0.60683995", "0.6038308", "0.60058403", "0.60058403", "0.59779584", "0.5977305", "0.5952288", "0.59486586", "0.5939312", "0.59...
0.0
-1
Show ProductAttributeList edit page.
public function edit(ProductAttributeList $attribute) { echo json_encode($attribute); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(ProductAttributes $productAttributes)\n {\n //\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Product Attributes\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the attributes.\");\n\t\t$this...
[ "0.7554106", "0.7398569", "0.7341087", "0.72376263", "0.6745065", "0.6731754", "0.6693674", "0.66428506", "0.66301566", "0.6622368", "0.6608486", "0.6559132", "0.65579516", "0.6517996", "0.6506437", "0.6474655", "0.64603204", "0.64603204", "0.64603204", "0.64603204", "0.64603...
0.74865043
1
Delete attribute by unique identifier.
public function destroy(ProductAttributeList $attribute) { if($attribute->delete()) { return redirect(route('attributes.index'))->with('success', trans('messages.attribute.deleted')); } return redirect(route('attributes.index'))->with('error', trans('messages.error')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($idAttrEam);", "public function deleteAttribute($id)\n {\n }", "public function delete_attribute($id = null)\n {\n\n ProductsAttributes::where(['id' => $id])->delete();\n\n Alert::warning('Deleted', ' Attribute Deleted Successfully');\n return redirect()->back();\n }", ...
[ "0.76510555", "0.7059918", "0.7029509", "0.6913595", "0.6607366", "0.6594937", "0.65839064", "0.6574793", "0.65560424", "0.65528905", "0.6500322", "0.64991325", "0.6473119", "0.645823", "0.64481634", "0.6439821", "0.6403662", "0.63713646", "0.63451535", "0.63451535", "0.63451...
0.0
-1
check attribute name unique.
public function checkAttrName(Request $request){ $attrId = $request->attr_id; if(isset($attrId) && !empty($attrId)){ $data = ProductAttributeList::where('attribute_name',$request->attrName)->where('id','!=',$attrId)->get(); if(count($data) > 0){ $responce = 1; }else{ $responce = 0; } }else{ $data = ProductAttributeList::where('attribute_name',$request->attrName)->get(); if(count($data) > 0){ $responce = 1; }else{ $responce = 0; } } echo $responce; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkNameForUnique($attribute): bool\n {\n $item = $this->getItem($this->name);\n\n if (null !== $item && $this->getOldName() !== $item->name) {\n $this->addError($attribute, Module::t('rbac', 'This name already exists.'));\n return false;\n }\n\n ...
[ "0.7610761", "0.70404905", "0.6928993", "0.65744764", "0.6541545", "0.6472002", "0.6395215", "0.638819", "0.63138664", "0.63116664", "0.6299251", "0.628398", "0.62809116", "0.62777054", "0.6268538", "0.6268445", "0.6225195", "0.6208252", "0.6195501", "0.61896056", "0.61853474...
0.0
-1
A basic test example.
public function basicTest() { $response = $this->call('GET', '/'); $this->assertEquals(200, $response->status()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testExample()\n {\n }", "public function test() {\n \t\n\t\tprint_r('hello stef');\n \t\n }", "public function testBasicExample()\n {\n $this->assertTrue(true);\n }", "public function testBasicExample()\n {\n $this->assertEquals(1, 1);\n }", "functio...
[ "0.7977854", "0.77753335", "0.76435244", "0.7610687", "0.754975", "0.75405073", "0.75393844", "0.74867696", "0.74400353", "0.7432722", "0.7412231", "0.73547494", "0.73383486", "0.7337478", "0.7308627", "0.7305436", "0.72681046", "0.7260569", "0.72460294", "0.7215908", "0.7195...
0.0
-1
Gets the coachmarkLocation The coachmark location.
public function getCoachmarkLocation() { if (array_key_exists("coachmarkLocation", $this->_propDict)) { if (is_a($this->_propDict["coachmarkLocation"], "\Beta\Microsoft\Graph\Model\CoachmarkLocation") || is_null($this->_propDict["coachmarkLocation"])) { return $this->_propDict["coachmarkLocation"]; } else { $this->_propDict["coachmarkLocation"] = new CoachmarkLocation($this->_propDict["coachmarkLocation"]); return $this->_propDict["coachmarkLocation"]; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCoachmarkLocation($val)\n {\n $this->_propDict[\"coachmarkLocation\"] = $val;\n return $this;\n }", "public function getLocation() {\n\t\treturn($this->location);\n\t}", "public function getLocation()\n\t{\n\t\treturn $this->location;\n\t}", "public function getLocatio...
[ "0.6907085", "0.6463573", "0.63533944", "0.63533944", "0.63533944", "0.63533944", "0.63495487", "0.63153625", "0.63101465", "0.63101465", "0.63101465", "0.63101465", "0.63101465", "0.63101465", "0.63101465", "0.63101465", "0.63101465", "0.63101465", "0.63101465", "0.63101465", ...
0.85421234
0
Sets the coachmarkLocation The coachmark location.
public function setCoachmarkLocation($val) { $this->_propDict["coachmarkLocation"] = $val; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCoachmarkLocation()\n {\n if (array_key_exists(\"coachmarkLocation\", $this->_propDict)) {\n if (is_a($this->_propDict[\"coachmarkLocation\"], \"\\Beta\\Microsoft\\Graph\\Model\\CoachmarkLocation\") || is_null($this->_propDict[\"coachmarkLocation\"])) {\n retu...
[ "0.6356563", "0.56165236", "0.5455847", "0.539666", "0.52562803", "0.52390504", "0.5126067", "0.50752324", "0.5073", "0.50416464", "0.50416464", "0.5037526", "0.49231446", "0.48471037", "0.48150584", "0.47880453", "0.47329837", "0.47106293", "0.47086388", "0.47046208", "0.469...
0.7585093
0
Gets the description The description about the coachmark.
public function getDescription() { if (array_key_exists("description", $this->_propDict)) { return $this->_propDict["description"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_description()\n\t{\n\t\treturn $this->m_description;\n\t}", "private function get_description()\n\t{\n\t\treturn $this->m_description;\n\t}", "public function get_description() {\r\n return $this->description;\r\n }", "public function get_description() {\n return $this->...
[ "0.7225935", "0.7225935", "0.7210332", "0.71980506", "0.7154407", "0.71478224", "0.71478224", "0.7143804", "0.710101", "0.7097348", "0.7059265", "0.70569336", "0.70569336", "0.70539963", "0.7029612", "0.70262444", "0.70082444", "0.70014447", "0.6999991", "0.6999991", "0.69979...
0.0
-1
Sets the description The description about the coachmark.
public function setDescription($val) { $this->_propDict["description"] = $val; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setDescription($description) {\r\n $this->description = $description;\r\n }", "public function setDesciption($description);", "function setDescription($description) {\n\t\t$this->description = $description;\n\t}", "public function setDescription($description){\n\t\t$this->description =...
[ "0.7636624", "0.7616953", "0.7593382", "0.7582772", "0.7576811", "0.75481546", "0.7496564", "0.747569", "0.7475582", "0.7457246", "0.7401291", "0.7395878", "0.7395878", "0.7395878", "0.7395878", "0.7395878", "0.7395878", "0.7395878", "0.7395878", "0.7395878", "0.7395878", "...
0.0
-1
Gets the indicator The coachmark indicator.
public function getIndicator() { if (array_key_exists("indicator", $this->_propDict)) { return $this->_propDict["indicator"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getIndicator() ;", "public function getIndicatorElement() {\n\t\treturn $this->indicator;\n\t}", "public function getFormattedIndicator()\n {\n return $this->formattedIndicator;\n }", "public function getAuctionConstraintIndicator()\n {\n return $this->auctionConstraintIndicat...
[ "0.6871639", "0.6764327", "0.60312074", "0.54736185", "0.5411955", "0.54088974", "0.54088974", "0.5402555", "0.53989804", "0.53844714", "0.53071046", "0.5295997", "0.5281968", "0.5263277", "0.52573156", "0.5253479", "0.5245824", "0.5219351", "0.5211711", "0.51964664", "0.5193...
0.68549293
1
Sets the indicator The coachmark indicator.
public function setIndicator($val) { $this->_propDict["indicator"] = $val; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setIndicator($indicator)\n {\n $this->indicator = $indicator;\n return $this;\n }", "public function setProgressIndicator(int $indicator) {\n $this->setValue(0x3C5, $indicator);\n }", "public function __construct($cashIndicator = null)\n {\n $this\n ...
[ "0.5895671", "0.55091476", "0.5131596", "0.512462", "0.5121745", "0.51140857", "0.49787202", "0.49094555", "0.48628163", "0.47848547", "0.4719203", "0.4656031", "0.458182", "0.45355946", "0.44918737", "0.4491703", "0.4468697", "0.44537216", "0.44352505", "0.4425843", "0.44167...
0.59351665
0
Gets the isValid Indicates whether the coachmark is valid or not.
public function getIsValid() { if (array_key_exists("isValid", $this->_propDict)) { return $this->_propDict["isValid"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIsValid()\n {\n return $this->isValid;\n }", "public function getIsValid(){\r\n\t\treturn $this->isValid;\r\n\t}", "public function isValid() {\n\t\treturn $this->is_valid;\n\t}", "public function isValid()\n {\n return $this->isValid;\n }", "public function isV...
[ "0.7673838", "0.7636281", "0.75833887", "0.7582684", "0.7541888", "0.75232756", "0.7522555", "0.7509746", "0.74905956", "0.74905956", "0.7465529", "0.7459131", "0.7432402", "0.74318254", "0.73070943", "0.7307087", "0.7137973", "0.71263367", "0.6983288", "0.69422", "0.6930487"...
0.6759073
32
Sets the isValid Indicates whether the coachmark is valid or not.
public function setIsValid($val) { $this->_propDict["isValid"] = $val; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setIsValid($isValid)\n {\n $this->isValid = $isValid;\n return $this;\n }", "public function setIsValid(bool $isValid): ValidationResult\n {\n $this->isValid = $isValid;\n return $this;\n }", "public function set_valid($is_valid){\n $this->is_valid...
[ "0.71219414", "0.6772537", "0.6744619", "0.67084914", "0.63374794", "0.60667044", "0.5844828", "0.5844828", "0.57504696", "0.5726487", "0.56165475", "0.5435902", "0.5415412", "0.5413312", "0.5413312", "0.54130715", "0.54130715", "0.54130715", "0.54130715", "0.54130715", "0.53...
0.6121735
5
Gets the language The coachmark language.
public function getLanguage() { if (array_key_exists("language", $this->_propDict)) { return $this->_propDict["language"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLanguage();", "public function getLanguage();", "public function getLanguage();", "public function getLanguage();", "public function getLanguage();", "public function getLanguage();", "public function getLanguage() {}", "private static function getLanguage()\n {\n if (iss...
[ "0.799344", "0.799344", "0.799344", "0.799344", "0.799344", "0.799344", "0.7948252", "0.7940443", "0.78448755", "0.7645013", "0.7645013", "0.7641888", "0.76383454", "0.7607193", "0.7580695", "0.75802904", "0.75553954", "0.75302", "0.75302", "0.75302", "0.75302", "0.75302", ...
0.7162161
72
Sets the language The coachmark language.
public function setLanguage($val) { $this->_propDict["language"] = $val; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function settingLanguage() {}", "protected function setLanguage() {\r\n\t\t$this->language = $GLOBALS['TSFE']->config['config']['language'];\r\n\t}", "public function setLanguage($language);", "public function setLanguage($l)\n {\n $this->setOption('language',$l);\n }", "public function setLang...
[ "0.7389163", "0.7225499", "0.7111213", "0.6934207", "0.6932444", "0.6865729", "0.6785691", "0.6725763", "0.67062086", "0.670138", "0.6684337", "0.66328335", "0.66307604", "0.65548295", "0.6498708", "0.645191", "0.64497316", "0.642572", "0.6355223", "0.6339561", "0.63312715", ...
0.5956712
40
Gets the order The coachmark order.
public function getOrder() { if (array_key_exists("order", $this->_propDict)) { return $this->_propDict["order"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder()\n {\n return $this->getQuote();\n }", "public function getOrder()\n {\n ...
[ "0.7879014", "0.7879014", "0.7879014", "0.7879014", "0.7879014", "0.7879014", "0.7803556", "0.7802501", "0.7745883", "0.7745883", "0.7745883", "0.7745883", "0.7745883", "0.7745883", "0.7745883", "0.7745883", "0.7745883", "0.7745883", "0.7745883", "0.77070343", "0.7689119", ...
0.0
-1
Sets the order The coachmark order.
public function setOrder($val) { $this->_propDict["order"] = $val; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setOrder($order);", "function setOrder($order){\n\t\t$this->order=$order;\n\t}", "public function setOrder($order);", "public function setOrder(string $order): void\n {\n $this->_order = $order;\n }", "public function setOrder(?string $order): void\n {\n $this->order = $orde...
[ "0.78249323", "0.7655479", "0.7575065", "0.7457658", "0.738177", "0.738177", "0.7149565", "0.6964631", "0.68200505", "0.6807214", "0.67889076", "0.67025256", "0.66972053", "0.6641806", "0.66116184", "0.65898466", "0.65705967", "0.6373387", "0.6371623", "0.6371623", "0.6323406...
0.5877699
50
this function named [module_name]_delete is called whenever a course content is deleted which includes when restoring a backup with override set, or when deleting an entire course. the function must delete all modulespecific material associated with this course. $course is the ID of the course to delete.
function cerify_delete($course) { global $db; /* // delete hello_world course table entries $sql = "DELETE FROM ".TABLE_PREFIX."certify, ".TABLE_PREFIX."certify_members, ".TABLE_PREFIX."certify_tests "; $sql .= "USING ".TABLE_PREFIX."certify INNER JOIN ".TABLE_PREFIX."certify_members INNER JOIN ".TABLE_PREFIX."certify_tests "; $sql .= "WHERE ".TABLE_PREFIX."certify.course = $course "; $sql .= "AND ".TABLE_PREFIX."certify.certify_id = ".TABLE_PREFIX."certify_members.certify_id "; $sql .= "AND ".TABLE_PREFIX."certify.certify_id = ".TABLE_PREFIX."certify_tests.certify_id"; mysql_query($sql, $db); */ // $sql = 'DELETE members FROM '.TABLE_PREFIX.'certify AS certify INNER JOIN '.TABLE_PREFIX.'certify_members AS members WHERE certify.course='.$course.' AND certify.certify_id=members.certify_id'; // mysql_query($sql, $db); $sql = 'DELETE tests FROM '.TABLE_PREFIX.'certify AS certify INNER JOIN '.TABLE_PREFIX.'certify_tests AS tests WHERE certify.course='.$course.' AND certify.certify_id=tests.certify_id'; mysql_query($sql, $db); $sql = 'DELETE FROM '.TABLE_PREFIX.'certify AS certify WHERE certify.course='.$course; mysql_query($sql, $db); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function course_module_deleted($event) {\n global $DB;\n $courseid = $event->courseid;\n $coursecontext = context_course::instance($courseid);\n $cmid = $event->contextinstanceid;\n \n $users = $this->get_google_authenticated_users($courseid);\n $filerecs = ...
[ "0.7288933", "0.6942202", "0.6931206", "0.6915351", "0.68791866", "0.6741476", "0.6739733", "0.67137927", "0.6680284", "0.66232497", "0.64945877", "0.6483116", "0.6421858", "0.642001", "0.642001", "0.6337263", "0.6266", "0.6248928", "0.62185496", "0.6170002", "0.61595005", ...
0.63419294
15
Returns the static model of the specified AR class.
public static function model($className=__CLASS__) { return parent::model($className); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function model()\r\n {\r\n return static::class;\r\n }", "public static function model() {\n return parent::model(get_called_class());\n }", "public static function model($class = __CLASS__)\n {\n return parent::model($class);\n }", "public static function model($cl...
[ "0.74850124", "0.73803526", "0.7154113", "0.71401674", "0.70629025", "0.703232", "0.69285315", "0.69285315", "0.6925706", "0.6902751", "0.6894916", "0.6894916", "0.68900806", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0....
0.0
-1
Retrieves a list of models based on the current search/filter conditions.
public function search() { // Warning: Please modify the following code to remove attributes that // should not be searched. $criteria=new CDbCriteria; $criteria->compare('nood_envelop_ID',$this->nood_envelop_ID); $criteria->compare('nood_envelop_name',$this->nood_envelop_name,true); $criteria->compare('event_ID',$this->event_ID); $criteria->compare('route_ID',$this->route_ID); $criteria->compare('nood_envelop_volgorde',$this->nood_envelop_volgorde); $criteria->compare('coordinaat',$this->coordinaat,true); $criteria->compare('opmerkingen',$this->opmerkingen,true); $criteria->compare('score',$this->score); $criteria->compare('create_time',$this->create_time,true); $criteria->compare('create_user_ID',$this->create_user_ID); $criteria->compare('update_time',$this->update_time,true); $criteria->compare('update_user_ID',$this->update_user_ID); return new CActiveDataProvider($this, array( 'criteria'=>$criteria, )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getModels();", "public function getModels();", "public function findAll($model);", "public function getListSearch()\n {\n //set warehouse and client id\n $warehouse_id = ( !is_numeric(request()->get('warehouse_id')) ) ? auth()->user()->current_warehouse_id : request()->get('w...
[ "0.6745192", "0.6745192", "0.6607936", "0.6480248", "0.6380478", "0.6346251", "0.6309924", "0.6302481", "0.62549895", "0.62511677", "0.62511677", "0.6111791", "0.60769993", "0.60728127", "0.60465515", "0.60351735", "0.6033834", "0.601554", "0.5982608", "0.59806865", "0.597930...
0.0
-1
Warning: Please modify the following code to remove attributes that
public function searchHints($event_id) { // should not be searched. $criteria=new CDbCriteria; $criteria->compare('nood_envelop_ID',$this->nood_envelop_ID); $criteria->compare('nood_envelop_name',$this->nood_envelop_name,true); $criteria->compare('event_ID',$this->event_ID); $criteria->condition = 'event_ID=:event_id'; $criteria->params=array(':event_id'=>$event_id); $criteria->order= 'route_ID ASC, nood_envelop_volgorde ASC'; $criteria->compare('route_ID',$this->route_ID); $criteria->compare('nood_envelop_volgorde',$this->nood_envelop_volgorde); $criteria->compare('coordinaat',$this->coordinaat,true); $criteria->compare('opmerkingen',$this->opmerkingen,true); $criteria->compare('score',$this->score); $criteria->compare('create_time',$this->create_time,true); $criteria->compare('create_user_ID',$this->create_user_ID); $criteria->compare('update_time',$this->update_time,true); $criteria->compare('update_user_ID',$this->update_user_ID); return new CActiveDataProvider($this, array( 'criteria'=>$criteria, )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeBlacklistedAttributes($attribs) \n { \n $this->_html = preg_replace('/[\\s]+('.$attribs.')=[\\s]*(\"[^\"]*\"|\\'[^\\']*\\')/i',\"\",$this->_html); \n $this->_html = preg_replace('/[\\s]+('.$attribs.')=[\\s]*[^ |^>]*/i',\"\",$this->_html); \n }", "public function removeAttribute...
[ "0.71117824", "0.7035495", "0.6810129", "0.6756575", "0.6662393", "0.64803207", "0.63691974", "0.6355436", "0.6354229", "0.6353134", "0.6352825", "0.6333506", "0.6317176", "0.627881", "0.6275085", "0.62605983", "0.6248935", "0.62345755", "0.61991394", "0.6188764", "0.6176879"...
0.0
-1
Retrieves the score of an post.
public function getNoodEnvelopScore($envelop_id) { $data = NoodEnvelop::model()->find('nood_envelop_ID =:envelop_id', array(':envelop_id' => $envelop_id)); return isset($data->score) ? $data->score : 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getScore()\n {\n return $this->score;\n }", "public function getScore()\n {\n return $this->score;\n }", "public function getScore()\n {\n return $this->score;\n }", "public function getScore()\n {\n return $this->score;\n }", "public func...
[ "0.69857526", "0.69857526", "0.69857526", "0.69857526", "0.68397343", "0.67610455", "0.6645196", "0.6607476", "0.6448374", "0.62609375", "0.6153722", "0.6100371", "0.6099186", "0.6007988", "0.5997752", "0.5966521", "0.5959901", "0.5913656", "0.5865251", "0.5767851", "0.573748...
0.51848197
58
Show all the roles in the system
public function indexAction() { $this->getFlashMessages(); $role = new Role_Model_Role(); $column = $this->getRequest()->getParam('column'); $sort = $this->getRequest()->getParam('sort'); $this->view->role = $this->paginate($role->fetchAll($column, $sort)); $this->view->sort = ( $sort=='ASC') ? 'DESC' : 'ASC'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n return Roles::all();\n }", "public function index()\n {\n $roles = App\\User::find(1)->roles()->orderBy('name')->get();\n }", "public function index()\n {\n return Role::all();\n }", "public function index()\n {\n return Role::all...
[ "0.8455415", "0.83602434", "0.8255102", "0.8255102", "0.81367034", "0.81322205", "0.8127872", "0.8115405", "0.8114395", "0.8101543", "0.8093251", "0.80901355", "0.80853444", "0.8081643", "0.8076624", "0.8062214", "0.8049331", "0.80478114", "0.8026725", "0.80244803", "0.801471...
0.0
-1
View module controller actions
public function viewactionsAction(){ $moduleId = $this->getRequest()->getParam('moduleId'); $moduleObj = new Modules_Model_Modules(); $moduleItem = $moduleObj->findById($moduleId); $controllerId = $this->getRequest()->getParam('controllerId'); $controllerObj = new Modules_Model_Controllers(); $controllerItem = $controllerObj->findById($controllerId); $permObj = new Permission_Model_Permission(); $permObj->setModuleId( $moduleId ); $permObj->setControllerId( $controllerId ); $this->view->module = $moduleItem; $this->view->controller = $controllerItem; $this->view->records = $permObj->fetchActionsByControllerModule(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionView() {}", "public function actionView() {}", "public function viewAction()\r\n {\r\n $this->indexAction();\r\n }", "public function indexAction () {\r\n $this->_helper->viewRenderer->setNoRender(false);\r\n $this->_helper->layout()->enableLayout();\r\n ...
[ "0.7992516", "0.7992516", "0.79832315", "0.7858633", "0.7796232", "0.76896656", "0.7637314", "0.7578816", "0.74148715", "0.738777", "0.7324321", "0.73125964", "0.7303295", "0.7303295", "0.7303295", "0.7303295", "0.7303295", "0.7303295", "0.7303295", "0.7303295", "0.7303295", ...
0.80764145
0
The index action for view allows a user to view his role.
public function viewAction() { $role = new Role_Model_Role(); $this->view->record = $role->findById($this->getRequest()->getParam('id')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n return view(\"permission.role.index\");\n }", "public function index()\n\t{\n\t\treturn view('role.index');\n\t}", "public function index()\n {\n //\n return view(\"admin.role.view-all\");\n }", "public function index()\n {\n //\n ...
[ "0.8076772", "0.80112755", "0.8008354", "0.7939557", "0.7933555", "0.7922165", "0.79122573", "0.7884108", "0.7873949", "0.7873332", "0.78178376", "0.78093266", "0.77648544", "0.77590454", "0.7748243", "0.77447236", "0.7740896", "0.77377594", "0.7733601", "0.773007", "0.772395...
0.75058997
74
============================ CMS LOGIN ==============================
public function show(Request $request){ $request->session()->forget('message'); return view('pages/user/login'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function login(){\n \n }", "public function login();", "public function login();", "function Login()\n{\n\tglobal $txt, $context;\n\n\t// You're not a guest, why are you here?\n\tif (we::$is_member)\n\t\tredirectexit();\n\n\t// We need to load the Login template/language file.\n\tloadLangua...
[ "0.77250427", "0.7725021", "0.7725021", "0.76449996", "0.76214397", "0.7504227", "0.7401909", "0.73800045", "0.7349641", "0.7327724", "0.73199964", "0.7317339", "0.72905535", "0.72885746", "0.72876453", "0.72339356", "0.7222017", "0.7215348", "0.7214828", "0.72126406", "0.720...
0.0
-1