lang stringclasses 10
values | seed stringlengths 5 2.12k |
|---|---|
php | * @var int|null
*
* @ORM\Column(name="nombrePerson_Pack", type="integer", nullable=true)
*/
private $nombrepersonPack;
/**
* @var int|null
*
* @ORM\Column(name="nom_Pack", type="integer", nullable=true)
*/ |
php | /**
* @author <NAME> <<EMAIL>>
*/
class SendEmailCommand extends BaseObject implements SelfHandlingCommand
{
/**
* @var mixed
*/
public $from;
/**
* @var mixed |
php |
/**
* Number indicating which page to fetch for pagination. Default = 1, showing the first 10 results
*
* @var string
*/
public $startPage;
/**
* Defines the search collection for the query
*
* @var string
*/ |
php |
<div class="col-md-1">
<p class="form-control-plaintext">
<%= updateCount %>
</p>
</div>
</div>
</form>
</div>
<table class="table table-bordered">
<thead>
<tr>... |
php | 'gotoUrl' => 'https%3A%2F%2Fwww.thetimes.co.uk%2Fpuzzleclub%2Fcrosswordclub%2F',
'username' => $this->username,
'password' => $this->password,
'rememberMe' => 'on',
'Submit' => 'Login'
],
... |
php | $passes = $this->spec->summary()->logs('passed');
expect($passes)->toHaveLength(1);
$pass = reset($passes);
$expectation = $pass->children()[0];
$file = $expectation->file();
expect($file)->toMatch('~Specification.spec.php... |
php | table.blueTable thead th {
font-size: 14px;
font-weight: bold;
color: #FFFFFF;
text-align: center;
}
table.blueTable tfoot td {
font-size: 14px;
}
table.blueTable tfoot .links {
text-align: right;
}
table.blueTable tfoot .links a{
display: inline-block; |
php | top: '0%',
left: '40%',
bottom: '5%',
type: 'pie',
roseType: 'angle',
center: ['... |
php | $discussion->save();
// Now that the discussion has been created, we can add the first post.
// We will do this by running the PostReply command.
try {
$post = $this->bus->dispatch(
new PostReply($discussion->id, $actor, $data)
);
} catch ... |
php |
Autoloader::register();
SessionManager::ss();
(new DotEnv(__DIR__ . '/.env'))->load(); |
php | public function setUp(): void
{
parent::setUp();
$this->order = OrderFactory::new()->create();
$this->manager = $this->app->make(Manager::class);
$this->manager->extend('custom-driver', function () {
return new CustomShippingDriver;
});
}
/** @test ... |
php |
public function getTicketById($idTicket)
{
return $this->where("id", $idTicket)->find();
}
public function getTicketListByUid($uid, $since_id = 0, $length = 10)
{
$query = $this->match('User')->where("uid", $uid);
$since_id > 0 && $query->where('id', '>', $since_id);
... |
php | return $ano_diferencia;
}
function calculada_nombre($nombre)
{
$name = explode(" ", $nombre); |
php |
/**
* App\Models\SkillGroup
*
* @method static Builder|SkillGroup newModelQuery()
* @method static Builder|SkillGroup newQuery()
* @method static Builder|SkillGroup query()
* @mixin Eloquent
* @property int $id
* @property string $name
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
... |
php | * 获取用户角色
* @author 艾逗笔<<EMAIL>>
*/
public function get_user_roles() {
$results = M('rbac_role')->select();
foreach ($results as $k => $v) {
$roles[$v['id']] = $v['name'];
}
return $roles;
}
/**
|
php | namespace App;
use StoutLogic\AcfBuilder\FieldsBuilder;
$flex = new FieldsBuilder('flex');
$flex
->addGroup('flex_text', ['label'=>''])
->addText('label', ['label'=>'Napis nad tytułem'])
->addText('title', ['label'=>'Tytuł'])
->addWysiwyg('text', ['label'=>'Text'])
->addLink('ur... |
php |
class m171005_144905_fixed extends Migration
{
/** @inheritdoc */
public function up ()
{
$this->addColumn('auth_item', 'fixed', $this->boolean()->defaultValue(0));
$this->update('auth_item', [ 'fixed' => 1 ], [ 'name' => [ 'admin', 'registered' ] ]);
}
/** @inheritdoc */
public function down ()
... |
php | /*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contain... |
php | use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Spatie\Browsershot\Browsershot;
class CreateOgImageJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function __construct(
private BlogPost $post
) {
}
|
php | 'name' => '<NAME>',
'email' => '<EMAIL>',
'usertype' => 'admin',
'password' => <PASSWORD>('<PASSWORD>'),
'provider' => 'facebook',
'checker' => '1',
'provider_id' => NULL,
]);
$product = Product::create([
'product_name' => 'H... |
php | <div class="container-fluid">
<!-- Exportable Table -->
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="card"> |
php | unset($meta_data['_last_edit']);
unset($meta_data['_edit_lock']);
$encoder = new \Wprr\WprrEncoder();
if(function_exists('get_field_objects')) { |
php | <a href="#" class="d-block mb-4 h-100">
<img class="img-fluid img-thumbnail" src="http://placehold.it/400x300" alt="">
</a>
</div>
</div>
<h3 class="my-4 text-center text-lg-left">Gamergy 2018</h3>
<div class="row text-center text-lg-left">
<div cla... |
php | return $this->belongsTo('App\Models\aciudNoticias', 'id_noticia');
}
public function funcionario()
{
return $this->belongsTo('App\Models\rrhhFuncionario', 'id_funcionario' ); |
php | <div class="col-xs-10">
<input class="form-control" type="text" value="{{ $service->question }}" name="question" required id="question" placeholder="Question">
</div>
</div>
<div class="form-group row">
... |
php |
return [
/*
* Headers
*/
'header' => [
'login' => 'Logowanie',
'login2' => 'Zaloguj się',
'register' => 'Rejestracja',
'register2' => 'Załóż konto',
'active' => 'Aktywacja konta', |
php | <tbody>
@foreach($employees as $employee)
<tr>
<td align="center"><a href="/employees/{{ $employee->id }}/edit"><i class="feather icon-edit"></i></a></td>
<td>... |
php |
</div>
</div>
</form>
<!--Fin panel de busqueda-->
<!--Inicio panel de resultados-->
<div class="panel panel-default col-md-10 col-md-offset-1">
<div class="panel-heading">
<center><h3 class="panel-title">Usuarios</h3></center>
</div>
<div class="panel-body table-responsive">
... |
php | /**
* Table: assets
*/
Schema::create('assets', function (Blueprint $table) {
$table->increments('id')->unsigned();
$table->string('type', 10);
$table->string('name', 100)->unique();
$table->string('library', 100);
$table->str... |
php | public function getMapper(): AutoMapperAwareInterface
{
return $this->mapper;
}
/**
* @required |
php | {
public function register()
{
$this->app->set('redis_pool', function () {
return (new RedisPool)->init()->gcSpareObject();
});
$this->app->set('db_pool', function () {
return (new DBPool)->init()->gcSpareObject();
});
}
}
|
php |
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
|... |
php | public static function NewInstance($oImapResponse)
{
return new self($oImapResponse);
}
/**
* @param bool $bForce = false
*
* @return array|null
*/
public function GetEnvelope($bForce = false)
{
if (null === $this->aEnvelopeCache || $bForce)
{
|
php | $dLastVisit = date("Ymdhi", strtotime($this->get_session("last_visit")));
$dExpTime = date("Ymdhi", strtotime("-".SESSEXP." minutes"));
if (!empty($dLastVisit)) {
if ($dLastVisit > $dExpTime) {
$this->set_session("last_visit", date("YmdHi"));
return true;
} else {
return true;
} |
php | Route::get('cart/add', [CartController::class, 'add'])->name('cart.add');
Route::get('cart/back', [CartController::class, 'back'])->name('cart.back');
Route::get('cart/clear', [CartController::class, 'clear'])->name('cart.clear');
Route::get('cart/checkout', [CartController::class, 'checkout'])->name('cart.checkout');
... |
php | public function elimination_delete()
{
$data = $this->delete();
///VERIFICANDO SI EXISTE EL ID PRINCIPAL DE LA TABLA
if (!isset($data["id_servicios"])) {
$respuesta = array('err' => TRUE, 'mensaje' => 'No se encontro nungun identificador de servicio');
$this->resp... |
php | 'module' => !empty($d[0]) ? $d[0] : '',
'controller' => !empty($d[1]) ? $d[1] : 'index',
'action' => !empty($d[2]) ? $d[2] : 'index'
));
}
|
php |
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Course;
use App\Models\AksesCourse; |
php | <?php
namespace DDTrace\Sampling;
use DDTrace\Contracts\Span;
/**
* Defines a priority sampling value provider.
*/
interface Sampler
{
/** |
php | ]);
}
/**
* @return string |
php | //是否可评分
protected function flowdatalog($arr)
{
$pfrows = $this->getpfrows();
foreach($pfrows as $k=>&$rs){
$rs['xuhaos'] = $k+1;
$rs['defenstr'] = '<input type="number" min="0" max="'.$rs['fenshu'].'" class="inputs" onfocus="js.focusval=this.value" name="pingfen_'.$rs['id'].'" onblur="js.number(this)">';
... |
php | "{{ $value['gestion'] }}",
@endforeach
],
datasets: [{
label: '# recettes de fonctionnement',
data: [
@foreach ($communes['recette_fonctionnement'] as $value)
... |
php | </head>
<body style="overflow-x: hidden">
<div style="max-width: 1500px; margin:auto; display:flex;margin-top:40px;position:relative;justify-content:center; flex-wrap:wrap">
<div style="margin-left:5%;margin-right:5%;width:90%;display:flex;justify-content:center;position:relative;flex-wrap:wrap;align-items:center;f... |
php | public function __construct($message = null, $apiResponse = null, $code = 0, \EXception $previous = null)
{
parent::__construct($message, $code, $previous);
$this->apiResponse = $apiResponse;
}
public function getAPIResponse()
{
return $this->apiResponse;
}
}
|
php | $signature = $this->encode($sign);
$url = ($security ? 'https' : 'http')."://dysmsapi.aliyuncs.com/?Signature={$signature}{$sortedQueryStringTmp}";
try {
$content = $this->fetchContent($url); |
php | .register-heading{
text-align: center;
margin-top: 5%;
margin-bottom: -10%;
color: #495057;
}
</style>
</head>
<body> |
php | <!-- Caja ---------------------------------->
<div class="card col-sm-6 offset-lg-1 col-md-4 offset-md-1 col-lg-4 offset-lg-1">
<a href="#">
<img style="max-width: 100%; min-width: 20%" class="card-img-top" src="{{ asset('img/caja2.png')... |
php | @if ($paginator->onFirstPage())
<div class="item disabled">@lang('suitable::pagination.previous')</div>
@else
<a class="item" href="{{ $paginator->previousPageUrl() }}" rel="prev">@lang('suitable::pagination.previous')</a>
@endif
<!-- Next Page Link -->
@if ($paginator->hasMorePages())
... |
php |
@section('title', 'Produto')
@section('content')
@isset($product)
<div class="text-center mt-2">
<h3>Detalhe do produto: {{ $product->name }}</h3>
</div>
<div class="col" style="text-align: right;">
<a href="{{ route('products.index') }}" class="btn btn-primary mt-2 ... |
php | use Illuminate\Http\Request;
class ProductController extends Controller
{
public function index()
{
$fruits = array ('mango','orange','banana','apple','pineapple'); |
php | {
$registro = Pedido::withTrashed()->find($id);
$registro->restore();
$this->confirmando = '';
}
public function confirm($id) |
php | </a>
</li>
<!-- <-------------------Student-------------------- -->
<li class="nav-item py-1">
<a href="<?php echo base_url()?>logout" class="nav-link" href="#">
<i class="fas fa-sign-out-alt"></i>
<span class="ml-2">Logout</span>
</... |
php | }
// Relation one to many with grades
public function grade()
{
return $this->belongsTo('App\Models\Grade', 'Grade_id');
}
// Relation one to many with classes
public function classroom()
{
return $this->belongsTo('App\Models\Classroom', 'Classroom_id'); |
php | namespace App\Models\Auth;
use Illuminate\Database\Eloquent\Model;
use Altek\Accountant\Contracts\Recordable;
use Altek\Accountant\Recordable as RecordableTrait;
class Module extends Model implements Recordable
{
use RecordableTrait;
protected $table = 'modules'; |
php | <!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="/pink-wool.css">
|
php | use Sunlight\User;
use Sunlight\Util\Request;
use Sunlight\Xsrf;
defined('SL_ROOT') or exit; |
php | /**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return !blank(auth()->user());
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/ |
php | * @return array
*/
public function getJson()
{
return $this->json; |
php | * Show the form for editing the specified resource.
*
* @param \App\Post $post
* @return \Illuminate\Http\Response
*/
public function edit(Post $post)
{
return view('posts.edit', compact('post')); |
php | | This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
| example.com/class/method/id/
|
| In some instances, however, you may... |
php | <?php
/*
Copyright (c) 2009-2012, Dan "Ducky" Little & GeoMOOSE.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy... |
php | public $timestamps =true ;
protected $guarded = [];
public function users(){
return $this->belongsTo('App\Models\Users');
}
public function sender(){
return $this->belongsTo('App\Models\Users','sender_id');
} |
php | <?php declare(strict_types=1);
namespace xiio\ObjectSerializer\Exception;
class ClassNotFoundException extends \Exception
{
}
|
php | <?php
namespace com\zoho\crm\api\sharerecords;
interface ActionHandler
{
}
|
php |
/**
* Interface OauthClientsRepository
* @package namespace CodeProject\Repositories;
*/
interface OauthClientsRepository extends RepositoryInterface
{ |
php |
$factory->define(App\User::class, function (Faker\Generator $faker) {
return [
'name' => $faker->name,
'email' => $faker->safeEmail,
'password' => bcrypt(str_random(10)),
'remember_token' => str_random(10),
];
});
$factory->define(App\Admin\Message::class, function (Faker\Gener... |
php | include_once __DIR__ . '/../vendor/autoload.php';
use aymanrb\UnstructuredTextParser\TextParser;
try {
$parser = new TextParser(__DIR__ . '/templates');
$textFiles = new FilesystemIterator(__DIR__ . '/test_txt_files');
foreach ($textFiles as $txtFileObj) {
if ($txtFileObj->getExtension() == 'txt'... |
php | 'width' => 1600,
'height' => 460,
'flex-width' => true,
'flex-height' => true,
'video' => true
) ) );
|
php | $runner->run($input);
}
}
/** |
php | });
})
});
</script>
@endsection
@section("copyright") |
php | <div class="d-flex justify-content-between"></div>
<form method="POST" action="<?= base_url('Laporan/edit') . '/' . $laporan['id_laporan'] ?>" enctype="multipart/form-data">
<h1 class="text-center mt-2" style="margin-bottom: 2%; ">Edit Laporan</h1>
<div class="card mb-4">
<div class="card-body">
... |
php |
/**
* Commits active transaction.
*/
public function commit(): void;
/**
* Rollbacks active transaction.
*/ |
php | /**
* {@inheritdoc}
*/
public function safeUp()
{
$this->addColumn('startups','created_at', $this->string()->null());
$this->addColumn('startups','updated_at',$this->string()->null());
$this->addColumn('comments','startup_id',$this->integer()->notNull());
$this->add... |
php | class LoginController extends BaseController {
/**
*
* @return View
*/
public function index() {
// $secret= Crypt::encrypt('ryal');
// echo $secret;
return View::make('login.view');
}
/**
*
* @return Redirect
|
php |
namespace Orm;
class Observer_CreatedAt extends Observer
{
/**
* @var bool set true to use mySQL timestamp instead of UNIX timestamp |
php | $question = $qa["question"];
$sql_insert_question = "INSERT INTO question(test_id, question) values($topic_last_id, '$question')";
if ($conn->query($sql_insert_question) === TRUE) {
$question_last_id = $conn->insert_id;
$answers = $qa["choices"];
foreach ($answers as $ch) {
... |
php | <input type="text" class="form-control" id="title" name="title" placeholder="Nama submenu" required>
</div>
<div class="form-group">
<select name="menu_id" id="menu_id" class="form-control">
<option value="">Pilih Menu</opt... |
php | $system_transaction = Transaction::create( [
'type' => 'paypal' ,
'email' => $payer->getEmail() ,
'txn_id' => $payment->getId() ,
'amount' => $transaction->getAmount()->getTotal() ,
'currency' => config( 'paypal.currency' ) ,
'invoice_number' => $transaction->getInvoiceNumber()
] );
$this->data[... |
php | <?php
include ('data.php');
$exported = Porter::exportData ( User::getLyrics () );
?>
<html>
<head>
<title>The Plague's KPop Fan Page - Export Songs</title> |
php | 'objUrl' => $this->objUrl
));
echo Helper::json(array('error' => false, 'replace' => $replace));
} else {
$objValid->add2Errors('name', 'Record could not be added');
throw new Exception('Record could not be added');
} |
php | /**
* Run the migrations.
*
* @return void
*/
public function up() |
php | namespace App\AppModels;
use App\AppModels\Address;
use App\AppModels\Store;
use Illuminate\Database\Eloquent\Model;
class Order extends Model
{
protected $table = 'orders'; |
php | </div>
<?php if(isset($result) && $result == true): ?>
<strong class="text-info">Your image was uploaded successfully. You can share it via the URL below.</strong>
<br>
<br>
<a href="<?=base_url().$result?>"><?=base_url().$result?></a>
<br>
<br>
<img src="<?=base_url().'uploads'.'/'.$img_dir_name.'/'.$fi... |
php | <head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
|
php | $form = new BasicForm();
$form->addGroup('body');
$form->addText('name', 'Jméno:')->setRequired();
$form->addText('surname', 'Příjmení:')->setRequired();
|
php | var_dump($data);
var_dump($data2);
// Bug #34982
function myfunc($data)
{
array_walk_recursive($data, 'apply_changed');
}
function apply_changed(&$input, $key)
{
$input = 'changed';
} |
php | $input['password'] = <PASSWORD>($input['password']);
}
$this->validate($request, $validateRules);
$user->update($input);
if(!$request->input('password')){
$user->syncRoles($request->input('roles'));
... |
php |
<div class="form-group" style="margin-bottom: 20px">
<lavel style="width: 180px; display: inline-block;"></lavel>
<input style="width: 260px;" type="text" name="product_subcategory_name4" value="{{old('product_subcategory_name4')}}">
... |
php | <div class="input-wrap m-full-width">
<i class="icon-user"></i>
<input class="field-name" type="text" placeholder="Ваше имя (*)" name="name" data-content="" value="" required style="background:#fff;">
</div>
<div class="input-wrap m-full-width">
<i class="icon-phone"></i>
<input class="field-ph... |
php | else
{
$this->db->insert('eventos', $eventos);
}
$name=$eventos['foto'];
if($_FILES['foto']['error']==0)
{
move_uploaded_file($_FILES['foto']['tmp_name'],"imagenes/{$name}");
}
$link = base_url('eventos'); |
php | if (sizeof($adAttributeNameBuffer) <= 0) {
$adAttributeNameBuffer[$settings[0]] = true;
continue;
}
if (isset($adAttributeNameBuffer[$settings[0]])) {
return true;
}
$adAttributeNameBuffer[$settings[0]] = true;
}
|
php |
namespace Tests\Stubs;
class ApiPaginate extends \Illuminate\Database\Eloquent\Model
{
use \Media24si\Utilities\Scopes\ApiPaginate;
public function hydrate()
{
return collect(['item3', 'item4']);
}
} |
php | }
}
public function scopeStatistical()
{
return $this->where('status', 3)->sum('price');
}
public function payments(){
return $this->hasOne(Payments::class, 'order_id', 'id');
}
}
|
php | </div><div class="form-group">
<label class="control-label col-md-3">Product Quantity</label>
<div class="col-md-9">
<input type="number" class="form-control" name="product_quantity" />
<span class="text-d... |
php | <section class="main-sections">
<h2>Succès</h2>
<p><b><?= $title ?? 'Modification des rendez-vous';?></b></p>
<p>
<a href="<?php echo base_url('appointments/listAppointments') ;?>">Voir les rendez-vous</a>
</p>
<p>
<a href="<?php echo base_url('appointments/create') ;?>">Créer un nouveau rendez-vous</a>
</p>
</section> |
php | /**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
if($request->ajax()){
$equipament = new Equipament();
|
php | <h6 align="center"><strong>Liste des Agences</strong></h6>
<br>
<!-- Table row -->
<div class="row">
<div class="col-12 table-responsive">
<table class="table table-striped">
<thead>
<tr>
... |
php | <?php
/**
* Notes:
* User: shyir
* DateTime: 2021/11/6 16:43
*/
$api = app ('Dingo\Api\Routing\Router');
$api->version ('v1', function ($api) {
$api->group ([ 'prefix' => 'qiniu' ], function ($api){
// 创建一个文件(包含路径)create a file
$api->post('createFile', '\App\Http\Controllers\v1\Qiniu\FileControl... |
php |
trait AnswerPresenter
{
// ACCESORS
public function getCreatedDateAttribute() |
php | <div class="form-group">
<label for="name" class="col-sm-3 control-label">Nome do Evento*</label>
<div class="col-sm-4">
<input type="text" required="required" name="name" class="form-control" id="name" placeholder="Nome do Evento">
</div>
<div class="col-sm-5"></div>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.