text stringlengths 2 1.03M |
|---|
<?php
namespace Jauntin\PdfPlatformSdk\Document;
use Jauntin\PdfPlatformSdk\ResponseData;
class GetDocumentLinksResponseData extends ResponseData
{
public string $url;
public string $status;
} |
<?php
/**
* Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* This file is licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License. A copy of
* the License is located at
*
* http://aws.amazon.com/apache2.0/
... |
<!DOCTYPE html>
<html lang="en">
<?php
session_start();
if (!isset($_SESSION['nisn'])) {
header('Location:index.php');
}
?>
<?php
include '../koneksi/koneksi.php';
$id_jenissoal = $_GET['id_jenissoal'];
?>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="v... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateProductsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('products', fun... |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<div>
... |
<?php
namespace Brouwkuyp\Bundle\ServiceBundle\Entity;
use Brouwkuyp\Bundle\LogicBundle\Model\Equipment\Unit as BaseUnit;
/**
* Unit
*/
class Unit extends BaseUnit
{
/**
* @var integer
*/
protected $id;
/**
* Get id
*
* @return integer
*/
public function getId()
{... |
<?php $this->load->view('default/header') ?>
<td valign="top" align="left">
<script type="text/javascript">
$(function() {
//set tabbed windows
$(function() { $("#tabs").tabs(); });
//set numeric only in input box
//------------------------------------
// Button Action
//------------------------... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class TotalAmountController extends Controller
{
//
public function index(){
$donorlist = DB::table('donor_names')->get();
$Amount = DB::table('funds')
->where('Amount','>',50000000)
->get();
$To... |
<?php
namespace Buggl\MainBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* BeforeYouGo
*
* @ORM\Table(name="before_you_go")
* @ORM\Entity(repositoryClass="Buggl\MainBundle\Repository\BeforeYouGoRepository")
*/
class BeforeYouGo
{
/**
* @var integer
*
* @ORM\Column(name="id", type="intege... |
<style type="text/css">
.help-panel {
margin-left: 14px;
margin-right: 14px;
}
.help-panel .col-md-2 div,
.help-panel .col-md-3 div {
background-color:#777;
color:#fff;
width:28px;
text-align:center;
padding-top:2px;
padding-bottom:2px;
font-weight:bold;
... |
<?php
namespace Tworzenieweb\SqlProvisioner\Check;
use Swift_Message;
use Tworzenieweb\SqlProvisioner\Config\EmailConfig;
use Tworzenieweb\SqlProvisioner\Database\Connection;
use Tworzenieweb\SqlProvisioner\Model\Candidate;
use Tworzenieweb\SqlProvisioner\Service\Mailer;
use Tworzenieweb\SqlProvisioner\View\View;
cl... |
<?php
namespace App\Shop\Carts\Contracts;
interface Buyable
{
/**
* Get the identifier of the Buyable item.
*
* @return int|string
*/
public function getBuyableIdentifier($options = null);
/**
* Get the description or title of the Buyable item.
*
* @return string
*... |
@extends('layouts.app')
@section('header')
<div class="col-md-12">
<div class="page-header">
<h3>users #{{$user->id}}</h3>
</div>
<a class="btn btn-link" href="{{ route('users.index') }}">
<i class="glyphicon glyphicon-backward"></i> Regresar
</a>
</div>
@endsection
@section('content')
<div ... |
<?php /** @noinspection PhpUndefinedVariableInspection */?>
<section class="content-header">
<h1>
<?= wpn_lang('submodule_title'); ?>
<small><?= wpn_lang('submodule_description'); ?></small>
</h1>
<ol class="breadcrumb">
<li><a href="<?= site_url('admin/dashboard'); ?>"><i class="fa ... |
<?php
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... |
<?php
namespace HL7\FHIR\STU3\PHPFHIRTests\FHIRElement;
/*!
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: November 18th, 2019 08:27+0000
*
* PHPFHIR Copyright:
*
* Copyri... |
<?php
// autoload_files.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'a4a119a56e50fbb293281d9a48007e0e' => $vendorDir . '/symfony/polyfill-php80/bootstrap.php',
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/... |
<?php declare(strict_types=1);
namespace Swoft\Bean;
use InvalidArgumentException;
use ReflectionClass;
use ReflectionException;
use Swoft\Annotation\Exception\AnnotationException;
use Swoft\Bean\Annotation\Mapping\Bean;
use Swoft\Bean\Contract\ContainerInterface;
use Swoft\Bean\Contract\HandlerInterface;
use Swoft\B... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Str;
use Jenssegers\Date\Date;
use Laravelista\Comments\Commen... |
<?php
namespace Tests\AppBundle\Controller\Dtp\Backend;
use AppBundle\Controller\Dtp\Backend\TournamentController;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class TournamentControllerTest extends WebTestCase
{
public function testCreateWithAuthentication()
{
$client = static::createClient(... |
<style>
table {
width: 100%;
border-collapse: collapse;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
}
th, td {
padding: 10px;
text-align: left;
border-bottom: 1px solid #ddd;
}
th {
background-color: #4CAF50;
color: whi... |
<?php
/**
* Created by PhpStorm.
* User: zhoule
* Date: 2019/10/14 0014
* Time: 16:28
*/
namespace app\design\kernel\Bridge;
class SonyBrand extends Brand
{
public function run()
{
foreach ($this->software as $item){
$item->run();
}
}
} |
@extends('student.layout.base')
@push('links')
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
@endpush
@section('body')
<section class="content-header">
<h1> Policy<small>Form</small> </h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> ... |
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* These middleware are run during every request to your application.
*
* @var array
*/
protected $middleware ... |
<?php
namespace aop\request;
/**
* ALIPAY API: alipay.overseas.open.preorder.create request
*
* @author auto create
* @since 1.0, 2021-08-16 15:39:59
*/
class AlipayOverseasOpenPreorderCreateRequest
{
/**
* 预下单
**/
private $bizContent;
private $apiParas = array();
private $terminalType;
private $termina... |
<!DOCTYPE html>
<html>
<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="">
<title>{{ trans('admin.title') }}</title>
<link... |
<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<title>Laravel|Socket</title>
</head>
<body>
<ul id="messages">
<li v-repeat="user: users">@{{user}}</li>
</ul>
<script src="https://cdnjs.cloudflare.com/ajax/libs/s... |
<section class="content">
<div class="row">
<div class="col-md-12">
<div class="card mt-5">
<div class="card-header">
<h3 class="card-title"style="margin-top:10px;">Tabel Penjualan</h3>
<div class="pull-right" >
<a href="<?=site_url('penjualan/ta... |
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
<?php
namespace app\common\model;
use think\Model;
class Goods extends Model
{
protected $table='goods';
protected $autoWriteTimestamp=true;
public function querys($limit,$sarr,$page){
return $this->order('gid','desc')
->where($sarr)->paginate($limit,false,[
'pag... |
<?php
namespace App\Http\Requests\Back;
use Illuminate\Foundation\Http\FormRequest;
use App\Models\Back\Ti;
class UpdateTiRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return tru... |
<?php
################################################################################
## 1. Настройки
################################################################################
### 1.1. База данных
$DATA_ROOT = dirname($_SERVER["DOCUMENT_ROOT"]).DIRECTORY_SEPARATOR;
$DB_DSN = "sqlite:{$DATA_ROOT}sample.sqlite3";... |
<div class="page-header">
<i class="fa fa-credit-card fa-2x"></i> <span style="font-size:18px;">TIPOS DE PAGO</span>
<a data-toggle="modal" href="#myModal" class="btn btn-success pull-right"><i class="fa fa-plus"></i> Agregar</a>
<div class="modal fade" id="myModal" tabindex="-1" role="dia... |
<?php
namespace app\modules\eproject\models;
use Yii;
/**
* This is the model class for table "epro_project_type".
*
* @property integer $id
* @property string $name
* @property integer $crby
* @property integer $udby
* @property string $crtime
* @property string $udtime
*/
class ProjectType extends \yii\db... |
@extends('layouts.pme')
@section('title','Clients')
@section('page-title')
<div class="row">
<div class="col-sm-12">
<div class="btn-group pull-right m-t-15">
<button type="button" class="btn btn-default dropdown-toggle waves-effect waves-light" da... |
<?php
namespace App\Http\Controllers\Api;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\User;
class UserController extends Controller
{
public function get(Request $request)
{
$user_id = $request->get("uid", 0);
$user = User::find($user_id);
return $user;
}
} |
<?php
return [
/* 上传图片配置项 */
"imageActionName" => "uploadimage",
/* 执行上传图片的action名称 */
"imageFieldName" => "upfile",
/* 提交的图片表单名称 */
"imageMaxSize" => 2048000,
/* 上传大小限制,单位B */
"imageAllowFiles" => [
".png",
".jpg",
".jpeg",
".gif",
".bmp"
],
... |
<?php
session_start();
require 'Config/Config.php';
if(strstr($_SESSION['setor'],'Projeto') !== false){
}else{
header("Location: login.php");
}
if(isset($_POST['nome'])) {
$nome = $_POST['nome'];
$logradouro = $_POST['logradouro'];
$bairro = $_POST['bairro'];
$cidade = $_POST['cidade'];
$fon... |
<?php
namespace Admin\Controller;
use Think\Controller;
class ReportAccountController extends CommonController {
private $Account = '';
public function _initialize() {
parent::_initialize();
$this->Account = D('Account');
}
public function index() {
//查询条件
$this->set... |
<?php
namespace App\Events;
use App\Models\User;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class SubscriptionExpiredEvent... |
@extends('layouts.main')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12">
<div class="card">
<div class="card-header"> Mes Informations</div>
<div class="card-body">
<ul>
... |
<?php
use yii\helpers\Inflector;
use yii\helpers\StringHelper;
/* @var $this \yii\web\View $this */
/* @var $generator \asinfotrack\yii2\toolbox\gii\crud\Generator */
echo "<?php\n";
?>
use yii\helpers\Html;
/* @var $this \<?= ltrim($generator->viewBaseClass, '\\') ?> */
/* @var $model \<?= ltrim($generator->modelCl... |
<?php
namespace Webkul\User\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Webkul\User\Http\Controllers\Controller;
use Hash;
/**
* Admin user account controller
*
* @author Jitendra Singh <jitendra@webkul.com>
* @copyright 2018 Webkul Software Pvt Ltd (http://www.webkul.com)... |
@extends('carnival')
@section('content')
<body>
<!--
=============================================
top navigation bar
=============================================
-->
@include('site_includes.topbar')
<!-- top navigation bar FINISH-->
<!--
========================... |
<?php
/* @Framework/Form/button_row.html.php */
class __TwigTemplate_54f539ecbc4ff93285dea8e4d830a2a00b0d59e07e53e8cb79c92a48ddf770a2 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Str;
use App\Lokasi;
class LokasiController extends Controller
{
public function __construct(){
$this->middleware('auth');
$this->middleware('admin');
}
public function index(){
$batas =... |
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENS... |
<?php
namespace App\Http\Controllers;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Http\JsonResponse;
use Illuminate\Support\Facades\Auth;
class LoginController extends Controller
{
public function login(Request $request)
{
$request->validate([
'... |
<!-- Ingresar Datos de Presupuesto de Ingresos y Egresos, Programa Presupuestario, Informes de Gobierno, Recomendaciones, Plan Anual de Evaluación -->
<div class="col-sm-12 col-md-12 col-lg-12 col-xl-12">
<!-- Contenido -->
<br>
<div class="card">
<div class="card-header card__header-modified text-... |
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function... |
<?php
use Illuminate\Http\Request;
//Auth::loginUsingId(1);
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are l... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>TLmobile | Admin Dashboard</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta content="Responsive bootstrap 4 admin template" name="description">
<meta content="Coderthemes" name="author">
<me... |
<?php
/**
* Copyright 2010 - 2017, Cake Development Corporation (https://www.cakedc.com)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2010 - 2017, Cake Development Corporation (https://www.cakedc.com)
* @license MIT License (http:/... |
<?php namespace HolgerBaumann\News\Updates;
use October\Rain\Database\Updates\Migration;
use Schema;
class CreatePostsTable extends Migration
{
public function up()
{
Schema::create('news_posts', function($table)
{
$table->engine = 'InnoDB';
$table->increments('id');
... |
<!-- Id Field -->
<div class="form-group">
{!! Form::label('id', 'Id:') !!}
<p>{!! $products->id !!}</p>
</div>
<!-- Name Field -->
<div class="form-group">
{!! Form::label('name', 'Name:') !!}
<p>{!! $products->name !!}</p>
</div>
<!-- Number Field -->
<div class="form-group">
{!! Form::label('nu... |
<?php
namespace Container2oRP5bu;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getSylius_Repository_CustomerGro... |
<?php
namespace Home\Controller;
use Think\Controller\RestController;
class UploadController extends RestController{
public function upload($token){
header("Access-Control-Allow-Origin:*");
$Model = M();
switch($this->_method) {
case 'post':{
$config = array(
... |
<?php
/**
* Unit test class for the ValidFunctionName sniff.
*
* @author Greg Sherwood <gsherwood@squiz.net>
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
*/
namespace PHP_CodeSniffer\Standards\PEAR\Tests... |
<!-- footer start here -->
<div class="footer-agile">
<div class="container">
<div class="footer-btm-agileinfo">
<div class="col-md-3 col-xs-3 footer-grid w3social">
<h3>Our Links</h3>
<ul>
<li><a href="">Home</a></li>
<li><a href="" >About</a></li>
<li><a href="">Portfolio</a></li... |
<?php
namespace Oxa\Sonata\UserBundle\Admin;
use Oxa\Sonata\AdminBundle\Admin\OxaAdmin;
use Oxa\Sonata\UserBundle\Entity\GroupTranslation;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Route\RouteCollection;
use Sonata\UserBundle\Admin\Model\GroupAd... |
<?php
namespace App\Exceptions;
use Exception;
use InvalidArgumentException;
use Illuminate\Session\TokenMismatchException;
use Illuminate\Auth\AuthenticationException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler
{
/**
* A list of the exception ty... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="" />
<meta name="author" content... |
@extends('layouts.master')
@section('content')
<h1>Productos <a href="{{ url('/producto/create') }}" class="btn btn-primary pull-right btn-sm">Crear Producto</a></h1>
<hr>
<div class="table">
<table id="example" class="table table-condensed table-bordered table-striped">
<thead>
... |
<?php /*
* Copyright (C) 2017 All rights reserved.
*
* @File ServiceCorpTest.php
* @Brief
* @Author abelzhu, abelzhu@tencent.com, sugarfishes
* @Version 1.0
* @Date 2017-12-26
*
*/
namespace sugarfishes\corpWechat\api\examples;
use Exception;
use sugarfishes\corpWechat\api\src\CorpAPI;
use sugarfishes\cor... |
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
<?php
namespace Joaosalless\Holiday\Test;
use Joaosalless\Holiday\Provider\BR\BR;
use Joaosalless\Holiday\Provider\BR\States\SP\Cities\SPO;
use Joaosalless\Holiday\Util;
class UtilTest extends \PHPUnit_Framework_TestCase
{
/**
* @var Util
*/
protected $service;
/**
* {@inheritDoc}
*/... |
<?php
namespace App\Models;
use App\Models\Register;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Jenssegers\Mongodb\Eloquent\Model;
class Course extends Model
{
use HasFactory;
public function registers()
{
return $this->hasMany(Register::class,'idcourse','_id');
}
/... |
<?php
namespace Laravel\Dusk\Console;
use Illuminate\Console\Command;
class InstallCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'dusk:install';
/**
* The console command description.
*
* @var s... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddPropertyToUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', fun... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Sale extends Model
{
protected $fillable = [
'client_id',
'user_id',
'sale_date',
'tax',
'total',
'status',
];
public function user(){
return $this->belongsTo(User::class);
}
... |
<?php
namespace App\Shared;
use App\Traits\LoggingTrait;
use HnhDigital\CliHelper\CommandInternalsTrait;
use HnhDigital\CliHelper\OutputTrait;
use LaravelZero\Framework\Commands\Command as ZeroCommand;
class Command extends ZeroCommand
{
use OutputTrait;
use LoggingTrait;
use CommandInternalsTrait;
... |
<?php
class MenuController extends \BaseController {
public function zakazani_termini(){
$data = DB::table('termini')->where('odradjen', '=', 0)
->orderBy('datum', 'ASC')
->orderBy('vreme', 'ASC')
->get();
if (empty($_GET['str'])) {
$_GET['str'] = 1;
}
return View::make('zakaz... |
<?php
/**
* 测试用控制器
* User: xjyplayer
* Date: 2019/1/20
* Time: 12:53
*/
namespace app\test\controller;
use app\common\lib\auth\IAuth;
class MyApp
{
public function getJWTToken($user_id = 12){
$date = [
'user_id' => '12',
];
echo IAuth::createJWTToken($date);
}
p... |
<base href="{{ asset('') }}">
<div marginheight="0" marginwidth="0" style="background:#f0f0f0">
<div id="wrapper" style="background-color:#f0f0f0">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="600"
style="margin:0 auto;width:600px!important;min-width:600px!important" ... |
<?php
namespace app\models\Shop;
use app\services\Subscribe;
use cs\services\BitMask;
use yii\db\Query;
class TreeNode extends \cs\base\DbRecord
{
const TABLE = 'gs_unions_shop_tree';
} |
<?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
| ... |
<?php
namespace app\index\model;
//导入模型类
use think\Model;
use app\index\model\QnasPending;
use app\index\model\Transactions;
use app\index\model\Users;
use app\index\model\Message;
class Qnas extends Model {
// 设置当前模型对应的完整数据表名称
protected $table = 'BLT_qna';
//在子类重写父类的初始化方法initialize()
protected function ini... |
<?php
use Faker\Generator as Faker;
$factory->define(App\Models\Status::class, function (Faker $faker) {
$date_time = $faker->date . '' . $faker->time;
return [
'content' => $faker->text(),
'created_at' => $date_time,
'updated_at' => $date_time,
];
}); |
<?php
namespace frontend\models\order_consist;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use frontend\models\order_consist\OrderConsist;
use frontend\models\orders\Orders;
/**
* OrderConsistSearch represents the model behind the search form about `frontend\models\order_consist\OrderConsist`.
*/... |
<?php
namespace App\Models;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Bavix\Wallet\Traits\HasWallet;
use Bavix\Wallet\Interfaces\Wallet;
class User exte... |
<div class="row">
{!! Form::model($merk, ['url' => $url, 'method' => $method]) !!}
<div class="col-xs-12 col-md-12">
<div class="form-group">
{!! Form::label('id_merk', 'id merk') !!}
{!! Form::text('id_merk', null, [
'class' => 'form-con... |
<div class="banner_2">
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<?php $i=0; ?>
@foreach($slide as $sl)
<li data-target="#carouselExampleIndicators" data-slide-to="{{$i}}"
@if($i ==0)
... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
// \App\Models\User::factory(10)->create();
$this->call([
AdminTableSeeder:... |
<?php
/**
* Elgg groups plugin edit action.
*
* @package ElggGroups
*/
elgg_make_sticky_form('groups');
/**
* wrapper for recursive array walk decoding
*
* @param string &$v value
*
* @return string
*/
function profile_array_decoder(&$v) {
$v = _elgg_html_decode($v);
}
// Get group fields
$input = array... |
<?php
namespace FApi\exception;
use Exception;
use FApi\Response;
/**
* 路由异常
*
* @author Mon 985558837@qq.com
*/
class JumpException extends Exception
{
/**
* 响应类实例
*
* @var Response
*/
protected $response;
/**
* 构造方法
*
* @param Response $response 响应类
*/
p... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Login extends CI_Controller {
function __construct(){
parent::__construct();
//validasi jika user belum login
$this->data['CI'] =& get_instance();
$this->load->helper(array('form', 'url'));
$this->load->model('M_l... |
<!DOCTYPE html>
<html lang="zxx" class="no-js">
<head>
<!-- Mobile Specific Meta -->
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Favicon-->
<link rel="shortcut icon" href="{{asset('/frontend')}}/img/fav.png">
<!-- Author Meta -->
<meta name="author" content=... |
<?php
if ($edit != "") {
$business_support_slider_id = $edit->business_support_slider_id;
$business_support_photos_title = $edit->business_support_photos_title;
$business_support_photos_text = $edit->business_support_photos_text;
$image = $edit->business_support_photos;
$type = $edit->type;
$sta... |
<html>
<head>
<title>Your Website Title</title>
<!-- You can use Open Graph tags to customize link previews.
Learn more: https://developers.facebook.com/docs/sharing/webmasters -->
<meta property="og:url" content="http://onehome.sg/blog/site/test" >
<meta property="og:type" content="websit... |
<?php
namespace AppBundle\Controller;
use AppBundle\WebsiteNotification;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
class HoursContro... |
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2019/3/5 0005
* Time: 15:36
*/
namespace app\system\validate;
use think\Validate;
class VActivity extends Validate
{
protected $rule = [
'activity_name' => 'require',
'activity_start' => 'require',
'activity_end' =... |
<?php
namespace skrtdev\NovaGram;
trait Methods{
/**
* Use this method to receive incoming updates using long polling (wiki).
* An Array of Update objects is returned.
*
* @param bool $json_payload Whether to use json payload for this method.
*
* @return skrtdev\Telegram\Update[]
... |
<?php
// autoload_classmap.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'App\\Console\\Kernel' => $baseDir . '/app/Console/Kernel.php',
'App\\Exceptions\\Handler' => $baseDir . '/app/Exceptions/Handler.php',
'App\\Http\\Controllers\\Aut... |
@extends('layouts.template')
@section('title', 'Genres')
@section('main')
<h1>Genres</h1>
@include('shared.alert')
<p>
<a href="/admin/genres/create" class="btn btn-outline-success">
<i class="fas fa-plus-circle mr-1"></i>Create new genre
</a>
</p>
<div class="table-res... |
<?php
return [
'router' => [
'routes' => [
],
],
'controller_plugins' => [
'factories' => [
ShoppingCart\Controller\Plugin\ShoppingCart::class => ShoppingCart\Factory\ShoppingCartFactory::class,
],
'aliases' => [
'ShoppingCart' => Shoppin... |
<?php
namespace App\Http\Controllers\Api\V1\Admin;
use App\Http\Controllers\Controller;
use App\Http\Controllers\Traits\MediaUploadingTrait;
use App\Http\Requests\StoreVideoRequest;
use App\Http\Requests\UpdateVideoRequest;
use App\Http\Resources\Admin\VideoResource;
use App\Models\Video;
use Gate;
use Illuminate\Htt... |
<?php
namespace App\Http\Controllers\Mahasiswa;
use Auth;
use File;
use App\Laporan;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class LaporanController extends Controller
{
public function index()
{
$laporan = Laporan::where('user_id', 1)->orderBy('created_at', 'desc')->get();
... |
<?php
namespace Goose\Images;
/**
* Locally Stored Images
*
* @package Goose\Images
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
*/
class LocallyStoredImage {
/**
* @param mixed[] $options
*/
public function __construct($options = []) {
foreach ($options as $... |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "detail".
*
* @property int $id
* @property string $tag
* @property string $headline
*/
class Detail extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'deta... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.