lang
stringclasses 10
values | seed
stringlengths 5
2.12k
|
---|---|
php | * @param string[][] $lines
* @param int[] $headMap indexes are strings
* @return int
* @throws CatalogValidateException
* @throws CatalogErrorException
*/
public function importCategoriesData( $lines, $headMap ) {
/** @var Category[] $categories */
$categories = [];
/** @var CategoryLanguage[] $categoriesLanguages */
$categoriesLanguages=[]; |
php | if (!function_exists("Folded\getAllConfig")) {
/**
* Returns all the configurations.
*
* @param string $path The configuration path.
*
* @throws InvalidArgumentException If the path is empty.
*
* @return array<string,mixed>
*
* @since 0.1.0
* |
php | $tglakhir = date('Y-m-d');
}
$sql = "SELECT spbhd.cNoSPB,spbhd.dTglSPB,spbhd.cKdProyek,supp.vNmSupplier,spbhd.cKdSupplier,spbdt.cKdBarang,brg.vNmBarang,spbdt.nqty ";
$sql .= "FROM tr_spbhd spbhd ";
$sql .= "LEFT JOIN tr_spbdt spbdt ON spbhd.cNoSPB = spbdt.cNoSPB ";
$sql .= "LEFT JOIN tm_barang brg ON brg.cKdBarang=spbdt.cKdBarang "; |
php | <div class="form-group">
<label for="birth">Birth:</label>
<input type="text" class="form-control" placeholder="Enter birth" id="birth" name="birth" value="{{$user->birth}}">
</div>
<div class="form-group">
<label for="date_grad">Date of grad:</label>
<input type="text" class="form-control" placeholder="Enter date_grad" id="date_grad" name="date_grad" value="{{$user->date_grad}}">
</div> |
php | namespace Zimbra\Enum\Tests;
use \PHPUnit_Framework_TestCase;
use Zimbra\Enum\DistributionListSubscribeOp;
/**
* Testcase class for DistributionListSubscribeOp.
*/
class DistributionListSubscribeOpTest extends PHPUnit_Framework_TestCase
{
public function testDistributionListSubscribeOp() |
php | <gh_stars>0
<?php
require 'vistas/smarty/libs/Smarty.class.php';
$smarty = new Smarty;
$smarty->caching = true;
$smarty->cache_lifetime = 120; |
php | $email = new VerifyEmailSend($this->details);
Mail::to($this->details['email'])->send($email);
}
public function setMailDetail($mail_driver, $mail_host, $mail_port, $mail_username, $mail_password, $mail_encryption){
$config = array(
'pretend' => false,
'host' => $mail_host,
'port' => $mail_port,
'driver' => $mail_driver,
'username' => $mail_username, |
php | <?php
defined('BASEPATH') or exit('No direct script access allowed');
class Admin extends CI_Controller
{
public function __construct() |
php | return GWF_HTML::err('ERR_MODULE_MISSING', array('Category'));
}
$langid = GWF_Language::getCurrentID();
$data = array('0' => $mod_cat->lang('th_sel'));
if (false !== ($cats = GWF_Category::getAllCategoriesCached()))
{
foreach ($cats as $cat)
{
$cat instanceof GWF_Category;
$cat->loadTranslations();
$trans = $cat->getTranslation($langid); |
php | <div class="container" style="padding-top:15%; padding-bottom:10%; padding-left:15%; padding-right:15%;">
<div class="border border-start" style="padding:2em; border-radius:25px; background:#b4b4b4; box-shadow:-8px -8px 16px #b3a3a3, 8px 8px 16px #000000;">
<h3>Crear Usuario</h3>
<form action="/crearUser" method="get">
<div class="row">
<div class="col-md-4">
<label class="form-label">Nombre:</label> |
php | * @var string
*/
protected $passportEndpoint;
/**
* List of supported API versions.
*
* @var array
*/ |
php | function disp()
{
$this->load->view('display');
}
function tutorial()
{
$this->load->view('tutorial');
}
|
php | * @link http://github.com/paulgb/simplediff/blob/master/simplediff.php
*
* @access private
* @param string $old The old block of data
* @param string $new The new block of data
*/
private function diff($old, $new) {
$maxlen = 0;
// Go through each old line.
foreach ($old as $old_line => $old_value) { |
php | <gh_stars>0
30 mtime=1556801617.668340669
24 SCHILY.fflags=extent
|
php | /**
* Run the migrations.
*
* @return void
*/ |
php | </thead>
<tbody id="tbl_customersearch">
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
|
php | 'rrr',
'order_id',
'description',
'period',
|
php | return $this->endpointsByIds[$fullIdentifier] ?? null;
}
/**
* Attaches a middleware to the API.
* |
php | $idgbr = $this->uri->segment(3);
$path= 'adminBSB/images/Kategori/';
$where = array('idKategori'=>$idgbr);
$rowdel = $this->Kategori_model->get_byimage($where);
@unlink($path.$rowdel->ikon);
$this->Kategori_model->get_delete($where);
$this->session->set_flashdata('msg',
'<div data-notify="container" class="bootstrap-notify-container alert alert-dismissible bg-light-green p-r-35 animated rotateInUpRight" role="alert" data-notify-position="top-right" style="display: inline-block; margin: 0px auto; position: fixed; transition: all 0.5s ease-in-out; z-index: 1031; top: 20px; right: 20px;"> |
php | public function artEdit(){
$art_id = I('get.art_id');
$list = M('article')->where('art_id='.$art_id)->find();
$this->assign('list',$list);
$p_cate = M('category'); |
php | <?php
namespace App\Modules\v1\Models;
use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\SoftDeletes;
Class Reservation extends Model
{ |
php | protected $slug;
public function preInsert()
{
$this->createdAt = new \DateTime();
$this->preUpdate();
}
|
php | </div>
</div>
<div class="form-group mt-3">
<button type="submit" class="button button-contactForm btn_4">Send Message</button>
</div>
</form>
</div> |
php |
$this->load->view('template/mahasiswa-header.php', $data);
$this->load->view('mahasiswa/main.php', $data);
$this->load->view('mahasiswa/main-2.php', $data);
$this->load->view('mahasiswa/main-3.php', $data);
$this->load->view('template/mahasiswa-footer.php', $data);
|
php | <?php
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class Pengunjung extends Migration |
php | $id_sensor = $_REQUEST['id_sensor'];
$temperatura = ($_REQUEST['temperatura']/100);
$temp_chip = ($_REQUEST['temp_chip']/100);
$umidade = ($_REQUEST['umidade']/100);
$pressao = ($_REQUEST['pressao']/100);
$altitude = ($_REQUEST['altitude']/100);
$solo = ($_REQUEST['solo']);
$sql = $conn->query("INSERT INTO composteira(id_sensor, time, temperatura, temp_chip, umidade, pressao, solo, altitude) VALUES ('".$id_sensor."', '".$data."', '".$temperatura."', '".$temp_chip."', '".$umidade."', '".$pressao."' , '".$solo."' , '".$altitude."')") or die(mysqli_error());
//echo $sql."adicionado com sucesso";
}
else{
// echo "campo vazio";
}
|
php | window.livewire.emit('selectedDestroy');
swal({
title:'Deleted!',
text:'your selected file has been deleted',
icon:'success',
})
}
});
}); |
php | switch( $interval ) {
case 500: { //
echo "Do Thing A at interval 500\n";
break;
}
case 1000:{
echo "Do Thing B at interval 1000\n";
break;
} |
php | namespace Biz\Content\Dao\Impl;
use Biz\Content\Dao\BlockTemplateDao;
use Codeages\Biz\Framework\Dao\GeneralDaoImpl;
class BlockTemplateDaoImpl extends GeneralDaoImpl implements BlockTemplateDao
{
protected $table = 'block_template'; |
php | /**
* @return $this
*/
public function webroot($webroot)
{
if (!empty($webroot)) {
$this->option('--webroot', $webroot);
}
return $this;
}
/**
* @return $this
*/
public function name($name) |
php |
<p>{{$ad->user->name}}</p>
<p>{{$ad->created_at->diffForHumans()}}</p>
<p style="margin-bottom: 20px">{{$ad->description}}</p>
@endforeach
{{$ads->links()}}
@endsection |
php | <p style="text-align:justify;">3. I hereby voluntarily release, forever discharge, and agree to indemnify and hold harmless DF from any and all claims, demands, or causes of action, which are in any way connected with my participation in this activity or my use of DC equipment or facilities, including any such claims which allege negligent acts or omissions of DC.</p>
<p style="text-align:justify;">4. Should DC or anyone acting on their behalf, be required to incur attorney's fees and costs to enforce this agreement, I agree to indemnify and hold them harmless for all such fees and costs.</p>
<p style="text-align:justify;">5. I certify that I have adequate insurance to cover any injury or damage I may cause or suffer while participating, or else I agree to bear the costs of such injury or damage myself. I further certify that I have no medical or physical conditions which could interfere with my safety in this activity, or else I am willing to assume - and bear the costs of -- all risks that may be created, directly or indirectly, by any such condition.</p>
<p style="text-align:justify;">6. I agree to abide by the rules of the facility. <strong>[initial]</strong></p>
<p style="text-align:justify;">By signing this document, I acknowledge that if anyone is hurt or property is damaged during my participation in this activity, I may be found by a court of law to have waived my right to maintain a lawsuit against DC on the basis of any claim from which I have released them herein.</p>
<p style="text-align:justify;"> </p>
<p style="text-align:justify;"><strong>I HAVE HAD SUFFICIENT OPPORTUNITY TO READ THIS ENTIRE DOCUMENT. I HAVE READ AND UNDERSTAND IT, AND I AGREE TO BE BOUND BY ITS TERMS. </strong></p>
<p style="text-align:justify;"><strong>Today's Date: </strong>[date]</p>
BODY;
// Allow our template to have adults |
php | {
use Queueable, SerializesModels;
public $pedido;
/**
* Create a new message instance.
*
* @param Pedido $pedido |
php | return $this->t('Delete');
}
/**
* {@inheritdoc}
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->entity->delete();
drupal_set_message($this->t('Profile %name has been deleted.', ['%name' => $this->entity->label()]));
$form_state->setRedirectUrl($this->getCancelUrl());
}
} |
php | */
public function scenarios()
{
// bypass scenarios() implementation in the parent class
return Model::scenarios();
}
/**
* Creates data provider instance with search query applied
*
* @param array $params |
php | {
$handle = opendir($filePath);
while (($filename = readdir($handle)) !== false)
{
if ($filename != "." && $filename != "..")
{
$zip->addFile($filePath .DIRECTORY_SEPARATOR.$filename, $filename);
}
}
@closedir($handle);
} |
php | * // prints "a" at t=0.5s
* // prints "b" at t=1.0s
* // prints "c" at t=1.5s
* ```
*
* See also the [`async()` function](#async) for more details.
*
* Once the promise is fulfilled, this function will return whatever the promise
* resolved to.
*
* Once the promise is rejected, this will throw whatever the promise rejected
* with. If the promise did not reject with an `Exception` or `Throwable`, then
* this function will throw an `UnexpectedValueException` instead.
* |
php | * @method $this start(int $value)
* @method $this limit(int $value)
* @method $this orderDirection(string $value)
* @method $this orderField(string $value)
* @method $this metadata()
*/
class Filter extends ResourceFilter
{
const ORDER_ASC = 'ASC';
const ORDER_DESC = 'DESC';
public static $snakeAttributes = true;
protected $fillable = [ |
php | 'company_branch_id',
];
public $orderBy = [];
// public function company() |
php | <div class="col-md-4">
<div class="box_prnt">
<div class="box-step">
<div class="step-number">
<p class="text-center number-count Poppins-Semi-Bold">3</p>
</div>
<i class="fa fa-sign-in fa-new"></i>
<p class="sings_t">Interact</p>
</div>
<h6>The generated Lorem Ipsum is therefore always free from repetition injected humour or non-characteristic words etc, on purpose (injected humour and the like). </h6>
</div>
</div>
<div class="col-md-12">
<div class="btn_get_start"> |
php | $this->newName = $newName;
}
public function performEdit(EditorBuffer $buffer)
{
if ($line = $this->getLinePropertyIsDeclaredOn()) {
$buffer->replaceString(
$line, |
php |
use App\Models\UserStatus;
trait UserStatusTraits{
public function setStatusToOnline($userId)
{
if(UserStatus::where('user_id',$userId)->count()==1)
{
UserStatus::where('user_id',$userId)->update(['online'=>true]);
return;
}
UserStatus::create(['user_id'=>$userId,'online'=>true]); |
php | $LVar['all_matched']='Regardless';
$LVar['no_class']='No class';
$LVar['parent']='Parent';
$LVar['homework_risk_1'] = "Hello Dear Parents";
$LVar['homework_risk_2'] = "on";
$LVar['homework_risk_3'] = "unpaid homework in order to achieve ";
$LVar['homework_risk_4'] = " times, please note that parent assist children learning situation, Sincerely the family peace and happiness.";
|
php | <?php
namespace Bambamboole\BladeCard;
use Laravel\Nova\Card;
class BladeCard extends Card
{
/** |
php | <input class="form-control " name="fecha" type="date" required="required"
data-validation-required-message="Ingrese un sintoma por favor">
</div>
</div>
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">
<div class="form-group">
<label>Descripcion</label>
<textarea name="descripcion" cols="5" rows="5" class="form-control"></textarea>
</div>
</div>
<hr width="1500" style="background: #99999961;"> |
php | * @category Libraries
* @author <NAME>
* @link http://dev7studios.com
* @version 1.0
*/
|
php | <div class="clearfix"> </div>
</div>
<div class="w3-address-grid">
<div class="w3-address-left">
<i class="fa fa-map-marker" aria-hidden="true"></i>
</div>
<div class="w3-address-right">
<h6>Location</h6>
<p>Broome St, NY 10002,California, USA.</p>
</div>
<div class="clearfix"> </div>
</div>
</div> |
php | */
public function store(JobsCreateRequest $request)
{
$request->validate([
'company' => 'required|max:75', |
php |
app('App\Logic\ImageRepository')-> delete($admin->image);
Storage::delete('uploads/images/'. $admin->image);
$admin->delete();
return response()->json(['message' => 'تمت العملية بنجاح', 'status' => true], 200);
} |
php |
public function getTimestamp()
{
return $this->decorated->getTimestamp();
}
public function setTime($hour, $minute, $second = 0, $microseconds = 0)
{
return $this->decorated->setTime($hour, $minute, $second, $microseconds); |
php | {
if ('dummyDate' === $property
&& \in_array($rootResource, [Dummy::class, DummyDocument::class], true)
&& Type::BUILTIN_TYPE_OBJECT === $type->getBuiltinType()
&& is_a($type->getClassName(), \DateTimeInterface::class, true)
) { |
php | * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Guennichi\PerformistBundle\DependencyInjection;
|
php | $transaction->delivery_payload = $request->all();
$transaction->save();
}
}
|
php | "store" => isset($field[3]) ? $field[3] == 'true' : false
);
$es_fields[isset($field[0]) ? $field[0] : 'title'] = $es_field;
}
// print_r($es_fields); exit; |
php | class CreateCollectionDetailsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
// tabel detil pengumpulan untuk detil mahasiswa siapa saja yang bisa mengumpulkan
Schema::create('collection_details', function (Blueprint $table) {
$table->id();
$table->foreignId('collection_id')->constrained('skpi_collections')->onUpdate('cascade')->onDelete('cascade'); |
php |
<!-- INI UNTUK NAMPILIN TABEL DIBAWAH KOLOM INPUTAN -->
<!-- <div class="form-group">
<?=
GridInput::widget ([
'allModels' => $model->bimbinganDetails,
'model' => \frontend\modules\pa\models\BimbinganDetail::className(),
'form' => $form, |
php | * @package coffeephp\event
* @author <NAME> <<EMAIL>>
* @since 2020-09-03
*/
final class EventRegistry implements EventRegistryInterface
{
/**
* A map of event object IDs to event objects, used to prevent garbage collection.
* |
php |
namespace App;
use Illuminate\Database\Eloquent\Model;
class Ocupacion extends Model
{
protected $table = 'ocupacion';
protected $primaryKey = 'Id_Ocupacion';
public $timestamps = false;
} |
php | /**
* Deletes an existing Post model.
* If deletion is successful, the browser will be redirected to the 'index' page.
* @param integer $id
* @return mixed
* @throws NotFoundHttpException if the model cannot be found
*/
public function actionDelete($id)
{
$id = Utils::decrypt($id);
$transaction = Yii::$app->db->beginTransaction();
$blogPost = $this->findModel($id);
try {
$blogPost->delete(); |
php |
<section class="w-full flex justify-center ">
<div class="relative w-full aspect-square max-w-lg max-h-96 flex overflow-x-auto snap-x snap-mandatory select-none">
@foreach ($urls as $url)
<div class="h-full w-full min-w-full flex justify-center items-center snap-center" >
<img src="{{ url('recipe/'.$url->recipe_id.'/image/'.$url->id) }}" class="w-full h-full object-contain" />
</div>
@endforeach
|
php | $encrypt_msg = (string) $xml->Encrypt;
$signature = business_wechat_sha1($token, $timestamp, $nonce, $encrypt_msg);
if ($signature != $msg_signature) {
throw new Exception('ValidateSignatureError');
}
return business_wechat_prpcrypt_decrypt($encoding_AES_key, $encrypt_msg, $corpid);
}/*}}}*/
function business_wechat_encrypt_message($xml, $timestamp, $nonce) |
php |
return array(
'about_consumables_title' => '关于耗材',
'about_consumables_text' => '所谓耗材是指从购买后会慢慢消耗并最终用尽的物品,例如打印机墨水,复印纸等等。',
'checkout' => '领取耗材给使用者',
'consumable_name' => '耗材名称',
'create' => '创建耗材',
'item_no' => '项目编号', |
php | $('[data-id="button__id__saoChep_tienDoHT"]').append('<i class="fa fa-copy"></i>');
$($('[data-id="button__id__saoChep_tienDoHT"]').children()[0]).remove();
$('[data-id="button__id__saoChep_tienDoHT"]').attr('data-placement', 'left');
/*Export excel button*/
$($($('[data-id="div__id__button_group"]')[count]).children()[1]).attr('data-id', 'button__id__excel_tienDoHT');
$('[data-id="button__id__excel_tienDoHT"]').removeClass('btn-sm'); |
php | foreach (array_keys($array) as $k) {
if ($k !== $i)
return false;
$i++;
}
return true;
} |
php | /**
* 生成用户令牌
*/
public function createUserToken($user_id){
$where=[ |
php | 'message' => 'Data tidak ditemukan',
'data' => []
], REST_Controller::HTTP_OK);
}
}
public function index_post()
{
$this->form_validation->set_data($this->post());
$this->form_validation->set_rules('name', 'Nama', 'required');
$this->form_validation->set_rules('email', 'Email', 'required|valid_email');
$this->form_validation->set_rules('body', 'Komentar', 'required');
if ($this->form_validation->run() == false) { |
php | //get id from child array(data)
$creditTypeValue['credit_type_id'] = $saveCreditType['credit_type_id'];
//return success message if data have been successfully save to database
return (new DataAction)->StoreData(CreditTypeValue::class,[],"",$creditTypeValue);
}else{
//if data doesn't saved to database this will return success false and message why data not save
return $saveCreditType;
} |
php | </div>
<div class="container-fluid">
<!-- ============================================================== -->
<!-- Start Page Content -->
<!-- ============================================================== -->
<div class="row">
<div class="col-md-12"> |
php | <input name="dateBill" type="text" id="billDate" hidden>
<input name="igvBill" type="number" value="{{ $igv }}" hidden>
<input name="totalBill" type="number" class="send-bill" hidden>
<input name="backBill" type="number" class="back" hidden>
<input name="clientBill" type="number" class="idclient" hidden>
<input name="razonBill" type="text" class="razonClient" hidden>
<input name="rucBill" type="number" class="rucClient" hidden>
<input name="nameBill" type="text" class="nameClient" hidden>
<input name="numberBill" type="text" class="numberBillClient" hidden>
<input name="subtotalBill" type="text" class="subtotalClient" hidden>
<input name="direccionBill" type="text" class="direccionClient" hidden>
<div class="row">
<div class="col"> |
php | }
/**
* @param typeFieldDataHistory[] $FieldData
* @return \FilippoToso\Travelport\UProfile\typeFieldGroupDataHistory
*/
public function setFieldData(array $FieldData = null)
{
$this->FieldData = $FieldData; |
php | <div class="mb-3">
<div class="pt-4">
<h5 class="mb-3">The total amount of</h5>
<ul class="list-group list-group-flush">
<li class="list-group-item d-flex justify-content-between align-items-center border-0 px-0 mb-3">
<div>
<strong>The total amount of</strong>
<strong>
<p class="mb-0">(including VAT)</p>
</strong>
</div> |
php | //Retreives variable from XMLHttpRequest
$q = $_GET['disastertype_nat'];
$p = $_GET['disastertype_tech'];
$b = $_GET['b'];
//MySQL queries to select data from columns in the disaster table that matches the input variable of the user
|
php |
public function test_it_counts_all_plugins()
{
$this->repository->addLocation($this->stubsValidPath);
$this->assertEquals(2, $this->repository->count());
}
public function test_it_finds_a_plugin()
{
$this->repository->addLocation($this->stubsValidPath);
$this->assertInstanceOf(Plugin::class, $this->repository->find('PluginTwo')); |
php | @show {{-- The custom css --}}
</head>
<body>
|
php | echo "<option value='" . $region['ID'] . "'>" . $region['DESCRIPCION'] . "</option>";
}
}
} ?>
</select>
</div>
</div>
<div class="col-sm-12 col-xs-12 col-lg-3 col-md-3">
<div class="form-group">
<label for="ciudad">Ciudad:</label>
<select name="ciudad" id="panel_ciudad">
<?php if (is_array($ciudades)) {
foreach ($ciudades as $ciudad) {
if ($ciudad['ID'] == $local[0]->ID_CIUDAD) {
echo "<option selected value='" . $ciudad['ID'] . "'>" . $ciudad['DESCRIPCION'] . "</option>"; |
php | * @return array
*/
public function query(): array
{
return [
'parcels' => Parcel::paginate()
];
}
/**
* Button commands.
* |
php | <label for="exampleInputEmail1">Asal Surat</label>
<div class="col-md-8 col-sm-6 col-xs-12">
<input name="asal_surat" type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="<NAME>at" value="{{$smasuk->asal_surat}}">
</div>
</div>
<div class="form-group">
<label for="exampleInputEmail1">Tanggal Surat</label> |
php | protected $data = array();
/**
* Constructs a new ConfigSingleImportForm.
*
* @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
* The entity manager.
* @param \Drupal\Core\Config\StorageInterface $config_storage |
php | $slug = Sentinel::getUser()->roles()->first()->slug;
if ($slug == 'admin')
{
return redirect('/admin-home');
}
elseif ($slug == 'manager') |
php | {
$produit=Produit::all();
$response=APIHelpers::createAPIResponse(false,200,"",$produit);
return response()->json($response,200);
}
/** |
php | 'uses' => 'HomeController@index'
]);
Route::get('/profile', [
'middleware' => 'auth',
'uses' => 'UsersController@profile'
]);
Route::post('/saveProfile', [
'middleware' => 'auth',
'uses' => 'UsersController@saveProfile'
]);
|
php | namespace Drupal\openapi\OpenApiGenerator;
use Drupal\rest\Plugin\rest\resource\EntityResource;
use Drupal\rest\RestResourceConfigInterface;
/**
* Common functions for inspecting REST resources.
*/
trait RestInspectionTrait {
/**
* Gets entity types that are enabled for rest.
* |
php | */
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(array(
'application' => null,
));
}
/**
* @inheritdoc
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{ |
php | use yii\widgets\Pjax;
use himiklab\yii2\recaptcha\ReCaptcha;
?>
<style>
.loader_more{
text-align: center;
}
|
php | {
/**
* Check cURL request from tpay server after payment.
* This method check server ip, required fields and md5 checksum sent by payment server.
* Display information to prevent sending repeated notifications.
*
* @return mixed
*
* @throws TException
*/
public function handleNotification()
{
Util::log('Card notification', "POST params: \n" . print_r($_POST, true)); |
php |
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateNullableForScheduledBatches extends Migration
{
/**
* Run the migrations. |
php | <div class="mb-3 row">
<label for="email" class="col-sm-2 col-form-label">Email</label>
<div class="col-sm-10">
<input type="email" class="form-control" id="email" value="{{$user['email']}}" name="email">
</div>
</div>
<div class="mb-3 row">
<label for="type" class="form-label">User Type</label>
<div class="col-sm-10">
<select class="form-select" name="type" id="type">
<option value="admin" {{$user['type']=="admin"? "selected": ""}}>Admin</option>
<option value="member" {{$user['type']=="member"? "selected": ""}}>Member</option> |
php | $query->where('permission', 'not like', 'category%')
->where('permission', 'not like', 'switch.%');
}]);
}
}
return $query->where('id', $inputs['id'])->first();
} |
php | @if ($buttonText == 'Update')
<delete-confirm-button
label="Delete"
:data-set="{{ $timer }}"
classes="btn is-outlined"
path="/timers"
message="Are you sure you want to delete this Timer? This action is not undoable."
title="Are You Sure?"
>
</delete-confirm-button>
@endif
<a href="{{ ($buttonText == 'Add') ? route('timers.index', $project->id) : route('timers.index', $timer->project_id) }}" class="mr-3 btn is-outlined">Cancel</a>
<button type="submit" class="btn is-primary">{{ $buttonText }} Timer</button>
</div>
</div> |
php | <h5 class="center"><a class ="btn brand"href = "logout.php">Log Out</a></h2>
</section>
<?php include('templates/footer.php');?>
</html>
|
php |
public $taps = [
'homebrew/dupes', 'homebrew/versions', 'homebrew/homebrew-php'
];
/**
* Create a new PHP FPM class instance. |
php | <a class="btn btn-info" href="{{ route('board.edit', $board->board_id) }}"><i class="fa fa-lg fa-edit"></i></a>
<!-- <a class="btn btn-warning" href="#"><i class="fa fa-lg fa-trash"></i></a> -->
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@endsection
@section('footer_scripts')
<!-- Data table plugin--> |
php | */
public function store(CreatereceptorRequest $request)
{
$input = $request->all();
$receptor = $this->receptorRepository->create($input);
Flash::success('Receptor registrado con exito.'); |
php | * Reverse the migrations.
*
* @return void
*/
public function down() |
php |
class KecamatanSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void |
php | <div class="col-sm-3">
{!! Form::text('ciudad', null, ['class' => 'form-control', 'required' => 'required', 'placeholder' => 'Ciudad']) !!}
{!! $errors->first('ciudad', '<p class="help-block">:message</p>') !!}
</div>
</div>
{!! Form::hidden('val_user', 'S', ['class' => 'form-control', 'required' => 'required']) !!}
<div class="form-group">
<div class="col-sm-offset-2 col-sm-3">
{!! Form::submit('Actualizar', ['class' => 'btn btn-primary form-control']) !!}
</div>
</div>
{!! Form::close() !!}
|
php | */
public function verify(string $code, string $verifiable)
{
if ($this->isTestVerifiable($verifiable)) {
return $this->isTestCode($code);
}
$codeIsValid = VerificationCode::query()
->for($verifiable)
->notExpired()
->cursor()
->contains(function ($verificationCode) use ($code) { |
php | } catch (JWTException $e) {
return response()->json(
['error' => 'could_not_create_token'],
Response::HTTP_UNAUTHORIZED
);
}
$user = $auth->setToken($token)->authenticate();
if ($user->isBanned()) {
$auth->invalidate();
return response()->json(
['error' => 'user_is_banned'], |
php | </label>
<div class="input-underline"></div>
</div>
</div>
</div> |
php | {
use HasFactory;
protected $table="angajati_profile_social";
// Anulare coloane created_at si updated_at
public $timestamps = false; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.